diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..04da043f461adc1e7f123a5edff133479cb2cdef --- /dev/null +++ b/.gitattributes @@ -0,0 +1,93 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +_framework/dotnet.native.rtfjaicvhp.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/icudt_CJK.tjcz0u77k5.dat filter=lfs diff=lfs merge=lfs -text +_framework/icudt_CJK.tjcz0u77k5.dat.br filter=lfs diff=lfs merge=lfs -text +_framework/icudt_EFIGS.tptq2av103.dat filter=lfs diff=lfs merge=lfs -text +_framework/icudt_EFIGS.tptq2av103.dat.br filter=lfs diff=lfs merge=lfs -text +_framework/icudt_no_CJK.lfu7j35m59.dat filter=lfs diff=lfs merge=lfs -text +_framework/icudt_no_CJK.lfu7j35m59.dat.br filter=lfs diff=lfs merge=lfs -text +_framework/ILGPU.hh469695zc.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.Codecs.4az1el8ia6.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.EBML.xdne5e0w64.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.ILGPU.fuxb6lz6el.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.ILGPU.ML.9usgbtl1ls.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.ILGPU.ML.Kernels.32rqe3oaz7.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.MultiMedia.omfwfbvzp1.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.Phonemizer.14wgzuo4bh.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.SpawnJS.li761i2n6z.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.Core.b7k44ae8kb.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.ML.ula38wzxn6.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Studio.dobkx6cxzg.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/System.Private.CoreLib.jxzjjd418f.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/System.Private.Xml.u94bl2dvp8.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/System.Text.Json.wmn8nrdgsp.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/System.Text.RegularExpressions.5f6os8d0wv.wasm.br filter=lfs diff=lfs merge=lfs -text +examples/example.png filter=lfs diff=lfs merge=lfs -text +examples/example_inpaint.png filter=lfs diff=lfs merge=lfs -text +_framework/dotnet.native.a8ztq4aqg2.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.Core.abygs8i0pv.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.ML.rbb9gtli8o.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Studio.x6iftgse6j.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/dotnet.native.mm6f5lm5eg.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.Core.dxdnt8bcer.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.ML.c1dhxhtvmm.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Studio.q24o3uygaw.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/dotnet.native.81lj8ak7g0.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.Core.euk05e5wt9.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.ML.shgf6ekwmw.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Studio.o9zz1ggm9e.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/dotnet.native.6948hfs75e.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/ILGPU.lbeymlaqbz.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.Codecs.hf0tdrr42b.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.ILGPU.ML.j1zfb2mr3k.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.ILGPU.ML.Kernels.391q7al9vs.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.ILGPU.v7r0292kmo.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.SpawnJS.7rauvzflz1.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.Core.i10j5fm6p6.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.ML.jwcp2dhqic.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Studio.sgcz28bkwh.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/dotnet.native.qa5b69bgaq.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/ILGPU.obaeemdvxg.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.Codecs.9u5l43fglr.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.ILGPU.17m3tmnaun.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.ILGPU.ML.Kernels.hdha89l645.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.ILGPU.ML.pdvwzvdu6e.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnDev.SpawnJS.686kwtpghu.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.Core.johaj1vmk0.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Nodes.ML.a38jpktpf1.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/SpawnGen.Studio.gq9yb704d0.wasm.br filter=lfs diff=lfs merge=lfs -text +_framework/System.Private.CoreLib.fha1ivutny.wasm.br filter=lfs diff=lfs merge=lfs -text diff --git a/404.html b/404.html new file mode 100644 index 0000000000000000000000000000000000000000..93233ac0cfe6bce7888cebb440474a24cc99e376 --- /dev/null +++ b/404.html @@ -0,0 +1,254 @@ + + + + + + + SpawnGen Studio + + + + + + +
+
Loading SpawnGen Studio...
+
+
+ An unhandled error has occurred. + Reload + x +
+ + + + + + + diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4eef1fec5793ac0e8c5f501c0948310278d4e592 --- /dev/null +++ b/README.md @@ -0,0 +1,48 @@ +--- +title: SpawnGen +emoji: 🧩 +colorFrom: indigo +colorTo: purple +sdk: static +app_file: index.html +pinned: false +license: mit +short_description: ComfyUI-style node graphs, run on your GPU in the browser +tags: + - webgpu + - comfyui + - node-graph + - text-to-image + - text-to-video + - image-to-video + - image-to-3d + - blazor +models: + - stabilityai/sd-turbo + - stabilityai/sdxl-turbo + - LostBeard/FLUX.2-klein-4B-q4-ILGPU + - LostBeard/flux-3-image-klein-q4-ILGPU + - Lightricks/LTX-2 + - Comfy-Org/Z-Image-Turbo + - Comfy-Org/ltx-2 + - onnx-community/depth-anything-v2-small + - onnx-community/Kokoro-82M-v1.0-ONNX + - istupakov/parakeet-tdt-0.6b-v3-onnx + - briaai/RMBG-1.4 + - Xenova/movenet-singlepose-lightning + - salim4n/yolov8n-detect-onnx + - Qwen/Qwen3-4B +--- + +# SpawnGen + +A ComfyUI-class node-graph studio written in C#, running **entirely in your browser on your GPU** (WebGPU): no server does the inference. +ComfyUI workflows and templates open and run as they do in ComfyUI; models download on first use (from Hugging Face) and stay cached in +the browser. + +- **Examples**: text to image (SD-Turbo, SD 1.5, FLUX.2 / FLUX 3 Klein), image to image, inpainting, text to video and picture to video + (LTX-Video 2B), image to 3D (TRELLIS.2), depth, pose and object detection, background removal, speech. +- **Templates**: ComfyUI's template catalog, each marked with what this browser can run. +- Needs a browser with WebGPU (Chrome or Edge). Large models need a GPU with enough memory; the first run downloads the weights. + +Source: [github.com/LostBeard/SpawnGen](https://github.com/LostBeard/SpawnGen) (MIT). Built on SpawnDev.ILGPU and SpawnDev.ILGPU.ML. diff --git a/SpawnDev.SpawnJS.zrbbeqadpn.lib.module.js b/SpawnDev.SpawnJS.zrbbeqadpn.lib.module.js new file mode 100644 index 0000000000000000000000000000000000000000..8be6cee784e69a773d7662cd2008f6411293311a --- /dev/null +++ b/SpawnDev.SpawnJS.zrbbeqadpn.lib.module.js @@ -0,0 +1,1537 @@ +'strict'; + +// SpawnJSInterop - the Javascript half of SpawnJS. +// +// Architecture: every JS value that .Net needs to reference is kept in an id-keyed table +// (spawnJSObjects) and addressed from .Net by that numeric id. .Net never receives a live JS object +// handle (no Microsoft JSObject), only ids and primitives - which is what lets the .Net side avoid +// JSObject and its disposal quirk entirely. .Net "holds" a value (spawnJSObjectHold -> id) and later +// "releases" it (spawnJSObjectRelease) so it can be garbage-collected. +// +// Negative ids are reserved sentinels resolved without a table lookup: +// -1 globalThis, -2 undefined, -3 null, -4 the spawnJSObjects table, SpawnJSInterop. +// +// Calls flow through _spawnJSInteropCall (sync) / _spawnJSInteropCallAsync (async). The whole call - which static +// method here, the returnType code (see ReturnType.cs), every argument - is written by .Net onto its call tape +// (JSTape.cs) in .Net memory and crosses ONCE: the call reads it straight off the WASM heap and writes the result +// back over the same frame. Each call carries its dotnetId and frame address, so nothing here is shared between +// .Net instances beyond this class. +(function () { + if (globalThis.SpawnJSInterop) return; + class SpawnJSInterop { + // enables verbose logging + static verbose = globalThis.spawnJSInteropVerbose; + // ArrayBufferView constructors + static HeapViewCtors = [ + globalThis.BigInt64Array, // 0: BigInt64Array + globalThis.BigUint64Array, // 1: BigUInt64Array + globalThis.Float16Array, // 2: Float16Array + globalThis.Float32Array, // 3: Float32Array + globalThis.Float64Array, // 4: Float64Array + globalThis.Int16Array, // 5: Int16Array + globalThis.Int32Array, // 6: Int32Array + globalThis.Int8Array, // 7: Int8Array + globalThis.Uint16Array, // 8: Uint16Array + globalThis.Uint32Array, // 9: Uint32Array + globalThis.Uint8Array, // 10: Uint8Array + globalThis.Uint8ClampedArray, // 11: Uint8ClampedArray + globalThis.DataView // 12: DataView + ]; + static _revivers = []; + static _replacers = []; + // method names for index based calling as an alternative to string + static _methodMapNames = []; + // methods mapped by index for index based calling as an alternative to string + static _methodMap = []; + // The id -> JS value table. Holds every value .Net currently references. + static spawnJSObjects = {}; + // Monotonic id source; never reused, so a stale .Net id can never collide with a live value. + static _sjsObjectIdNext = 0; + // .Net Wasm app instance infos + static _instances = {}; + // .Net callbacks + static _callbacks = {}; + static _detachedSentinelId = null; + // static constructor + static { + // SpawnJSInterop.registerReviver('__reviverTest', (key, value) => { + // if (SpawnJSInterop.verbose) console.log('[SpawnJSInterop] reviver test', key, value); + // return value; + // }); + // SpawnJSInterop.registerReplacer('__replacerTest', (key, value) => { + // if (SpawnJSInterop.verbose) console.log('[SpawnJSInterop] replacer test', key, value); + // return value; + // }); + SpawnJSInterop.refreshMethodMap(); + // detachedHeap sentinel + this._detachedSentinelId = setInterval(() => SpawnJSInterop.detachedEventCheck(), 500); + } + + // JSImports + // Methods accessed via JSImport only send and recieve basic + // data types and are used to support the marshalling framework + // that allows working with much more advanced data types. + + // JSImport + // double _registerInstance( + // JSObject dotnetInstance, + // [JSMarshalAs] Action onMethodAdded, + // [JSMarshalAs>] Action onAsyncResolvedVoid, + // [JSMarshalAs>] Action onAsyncResolvedDouble, + // [JSMarshalAs>] Action onAsyncResolvedBool, + // [JSMarshalAs>] Action onAsyncResolvedString, + // [JSMarshalAs>] Action onAsyncResolvedDoubleNullable, + // [JSMarshalAs>] Action onAsyncResolvedBooleanNullable, + // [JSMarshalAs>] Action onAsyncResolvedInt32, + // [JSMarshalAs>] Action onAsyncResolvedInt32Nullable, + // [JSMarshalAs>] Action onDetachedHeap, + // [JSMarshalAs>] Action onCallback, + // [JSMarshalAs>] Action onAsyncResolvedTape) + static _registerInstance( + dotnet, + onMethodAdded, + resolveVoid, + resolveDouble, + resolveBoolean, + resolveString, + resolveDoubleNullable, + resolveBooleanNullable, + resolveInt32, + resolveInt32Nullable, + onDetachedHeap, + handleCallback, + resolveTape + ) { + if (!dotnet) throw new Error('dotnet not set'); + var instanceInfo = SpawnJSInterop._getInstaceFromDotNet(dotnet); + if (instanceInfo) return instanceInfo.dotnetId; + + var dotnetId = SpawnJSInterop.spawnJSObjectHold(dotnet); + + // attach the heap buffer to instanceInfo so it can be monitored for detach events + var heapBuffer = SpawnJSInterop.wasmMemoryBuffer(dotnet); + + var instanceInfo = { heapBuffer, dotnet, dotnetId, onMethodAdded, resolveVoid, resolveDouble, resolveBoolean, resolveString, resolveDoubleNullable, resolveBooleanNullable, resolveInt32, resolveInt32Nullable, handleCallback, onDetachedHeap, resolveTape }; + SpawnJSInterop._instances[dotnetId] = instanceInfo; + + instanceInfo.heapBufferSize = heapBuffer.byteLength; + instanceInfo.getHeap = () => { + if (instanceInfo.heapBuffer.detached) { + if (SpawnJSInterop.verbose) console.log(`Detached heap detected for: ${dotnetId}`); + // get the new heap buffer + instanceInfo.heapBuffer = SpawnJSInterop.wasmMemoryBuffer(dotnet); + const oldSize = instanceInfo.heapBufferSize; + instanceInfo.heapBufferSize = instanceInfo.heapBuffer.byteLength; + // notify the instance + instanceInfo.onDetachedHeap(oldSize, instanceInfo.heapBuffer.byteLength); + } + return instanceInfo.heapBuffer; + }; + + if (SpawnJSInterop.verbose) console.log('[SpawnJSInterop] Instance registered', instanceInfo); + return dotnetId; + } + // Call tape value tags - JSTape.Tag* in JSTape.cs must match + static TapeTag = { Undefined: 0, Null: 1, Number: 2, Boolean: 3, String: 4, Ref: 5, Callback: 6, Absent: 8, Object: 9, Shape: 10, Array: 11, Numbers: 12, HeapView: 13, Record: 14, Revive: 15 }; + // TagNumbers kinds - JSTape.NumberKind must match + static TapeNumberCtors = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array]; + // what a member written as TagAbsent reads as: the property is not assigned + static _tapeAbsent = Object.freeze({}); + + // Main .Net to JS entrypoint (synchronous) + // The frame at address holds the whole call (see JSTape.cs). The result is written back over the frame and + // the return value is its byte length - or minus the bytes it needs when it does not fit in capacity, in + // which case it is kept on the instance for _spawnJSInteropCallResult. + // JSImport + // int _spawnJSInteropCall(double dotnetId, double address, int length, int capacity); + static _spawnJSInteropCall(dotnetId, address, length, capacity) { + // no detachedEventCheck(): _tapeViews checks this instance's heap, and walking every OTHER instance on + // every call was redundant - each is checked on its own calls and by the 500 ms timer + var instance = SpawnJSInterop.getInstace(dotnetId); + var call = SpawnJSInterop._tapeReadCall(instance, address, length, dotnetId); + var ret = call.target(...call.args); + ret = SpawnJSInterop.replaceValue(null, ret, false); + return SpawnJSInterop._tapeWriteResult(instance, call.returnType, ret, address, capacity); + } + // The result that did not fit behind its frame + // JSImport + // int _spawnJSInteropCallResult(double dotnetId, double address, int capacity); + static _spawnJSInteropCallResult(dotnetId, address, capacity) { + var instance = SpawnJSInterop.getInstace(dotnetId); + var bytes = instance.tapePendingResult; + instance.tapePendingResult = undefined; + if (!bytes) throw new Error('SpawnJSInterop: no tape result is being held'); + if (bytes.byteLength > capacity) throw new Error(`SpawnJSInterop: a held tape result of ${bytes.byteLength} bytes does not fit in ${capacity}`); + var views = SpawnJSInterop._tapeViews(instance, address + bytes.byteLength); + new Uint8Array(views.buffer, address, bytes.byteLength).set(bytes); + return bytes.byteLength; + } + // Main .Net to JS entrypoint (asynchronous) + // Reads the frame and starts the call before returning, because .Net releases the frame as soon as this returns. + // Returns 1 when the frame was read and the call started, 0 when it could not be read - that failure has already + // gone to the resolver, so the awaiting Task fails rather than hanging. + // JSImport + // int _spawnJSInteropCallAsync(double dotnetId, double asyncCallId, double address, int length); + static _spawnJSInteropCallAsync(dotnetId, asyncCallId, address, length) { + var instance = SpawnJSInterop.getInstace(dotnetId); + var returnType = SpawnJSInterop._tapeViews(instance, address + length).f64[(address >>> 3) + 1]; + var call; + try { + call = SpawnJSInterop._tapeReadCall(instance, address, length, dotnetId); + } catch (ex) { + SpawnJSInterop._resolveAsync(instance, returnType, asyncCallId, null, SpawnJSInterop.errorToString(ex)); + return 0; + } + SpawnJSInterop._runAsync(instance, returnType, asyncCallId, call); + return 1; + } + static async _runAsync(instance, returnType, asyncCallId, call) { + var error = null; + var ret = null; + var heldBytes = -1; + try { + ret = call.target(...call.args); + ret = await ret; + ret = SpawnJSInterop.replaceValue(null, ret, false); + if (returnType > 10) { + // a composite schema: encoded here and held; .Net fetches it with _spawnJSInteropCallResult + heldBytes = SpawnJSInterop._tapeHoldResult(instance, SpawnJSInterop._tapeSchema(instance, returnType), ret); + } else { + // prepare using returnType + ret = SpawnJSInterop._serializeToNet(returnType, ret); + } + } catch (ex) { + error = SpawnJSInterop.errorToString(ex); + ret = null; + } + if (heldBytes >= 0) instance.resolveTape(asyncCallId, heldBytes, null); + else SpawnJSInterop._resolveAsync(instance, returnType, asyncCallId, ret, error); + } + static _resolveAsync(instance, returnType, asyncCallId, ret, error) { + if (returnType > 10) { + // a composite schema that failed: nothing is held + instance.resolveTape(asyncCallId, 0, error ?? 'SpawnJSInterop: the call produced no result'); + return; + } + switch (returnType) { + case 0: // void + instance.resolveVoid(asyncCallId, error); + break; + case 1: // Double + instance.resolveDouble(asyncCallId, ret, error); + break; + case 2: // Boolean + instance.resolveBoolean(asyncCallId, ret, error); + break; + case 3: // DoubleNullable + instance.resolveDoubleNullable(asyncCallId, ret, error); + break; + case 4: // BooleanNullable + instance.resolveBooleanNullable(asyncCallId, ret, error); + break; + case 5: // String + instance.resolveString(asyncCallId, ret, error); + break; + case 6: // SpawnJSObject + instance.resolveDouble(asyncCallId, ret, error); + break; + case 7: // SpawnJSObjectNonNullable + instance.resolveDouble(asyncCallId, ret, error); + break; + case 8: // Json + instance.resolveString(asyncCallId, ret, error); + break; + case 9: // Int32 + instance.resolveInt32(asyncCallId, ret, error); + break; + case 10: // Int32Nullable + instance.resolveInt32Nullable(asyncCallId, ret, error); + break; + default: + throw new Error(`Unsupported returnType ${returnType}`); + break; + } + } + // The heap views a tape is read through. Kept on the instance - never a page global - and rebuilt when the + // heap buffer changes: growth detaches it, and a shared (threaded) heap's buffer does not detach but can be + // shorter than the memory, so end is checked too. + static _tapeViews(instance, end) { + var buffer = instance.getHeap(); + if (buffer.byteLength < end) { + buffer = instance.heapBuffer = SpawnJSInterop.wasmMemoryBuffer(instance.dotnet); + instance.heapBufferSize = buffer.byteLength; + } + var views = instance.tapeViews; + if (!views || views.buffer !== buffer) { + views = instance.tapeViews = { buffer, f64: new Float64Array(buffer), i32: new Int32Array(buffer), u16: new Uint16Array(buffer) }; + } + return views; + } + // Reads a call frame: header, then one tagged value per argument, each passed through the revivers as the + // v2 argument array was. + static _tapeReadCall(instance, address, length, dotnetId) { + var views = SpawnJSInterop._tapeViews(instance, address + length); + var f64 = views.f64; + var p = address >>> 3; + var methodIndex = f64[p]; + var returnType = f64[p + 1]; + var argCount = f64[p + 2]; + // one reader per call: a nested call (a reviver can run .Net) gets its own + var reader = { instance, dotnetId, address, length, views, p: p + 3 }; + var args = new Array(argCount); + for (var i = 0; i < argCount; i++) { + var value = SpawnJSInterop._tapeRead(reader); + args[i] = SpawnJSInterop.reviveValue(i, value === SpawnJSInterop._tapeAbsent ? undefined : value, false); + } + // then the definitions of any schema the result is written by (JSTape.WriteSchemaDefinitions) + var end = (address + length) >>> 3; + while (reader.p < end) SpawnJSInterop._tapeReadSchemaDefinition(reader); + var target = SpawnJSInterop._methodMap[methodIndex]; + if (!target) throw new Error(`SpawnJSInterop: no method at index ${methodIndex}`); + return { target, returnType, args }; + } + // Reads one tagged value at reader.p and advances it. Object members and array elements go through the + // revivers with their key, as v2's per-property set did. + static _tapeRead(reader) { + // a reviver can run .Net (a heap view refresh reports the detach), which can grow the heap + if (reader.views.buffer.detached) reader.views = SpawnJSInterop._tapeViews(reader.instance, reader.address + reader.length); + var f64 = reader.views.f64; + var tag = f64[reader.p++]; + switch (tag) { + case 0: return undefined; + case 1: return null; + case 2: return f64[reader.p++]; + case 3: return f64[reader.p++] !== 0; + case 4: return SpawnJSInterop._tapeReadChars(reader); + case 5: return SpawnJSInterop.spawnJSObjectGet(f64[reader.p++]); + case 6: { + var callbackId = f64[reader.p++]; + var once = f64[reader.p++] !== 0; + // the schemas its arguments are written by (defined after this frame's arguments when new) + var argumentCount = f64[reader.p++]; + var argumentSchemas = new Array(argumentCount); + for (var i = 0; i < argumentCount; i++) argumentSchemas[i] = f64[reader.p++]; + return SpawnJSInterop._callbackFunction(reader.dotnetId, callbackId, once, argumentSchemas); + } + case 8: return SpawnJSInterop._tapeAbsent; + case 9: { + var names = reader.instance.tapeShapes?.[f64[reader.p]]; + if (!names) throw new Error(`SpawnJSInterop: unknown tape shape ${f64[reader.p]}`); + reader.p++; + var obj = {}; + for (var i = 0; i < names.length; i++) { + var value = SpawnJSInterop._tapeRead(reader); + if (value !== SpawnJSInterop._tapeAbsent) obj[names[i]] = SpawnJSInterop.reviveValue(names[i], value, false); + } + return obj; + } + case 10: { + // a shape definition - kept per instance, since each runtime numbers its own - then the value it + // precedes. The same definition can arrive again until .Net knows a call carrying it completed. + var shapeId = f64[reader.p++]; + var count = f64[reader.p++]; + var names = new Array(count); + for (var i = 0; i < count; i++) names[i] = SpawnJSInterop._tapeReadChars(reader); + (reader.instance.tapeShapes ??= [])[shapeId] = names; + return SpawnJSInterop._tapeRead(reader); + } + case 11: { + var count = f64[reader.p++]; + var array = new Array(count); + for (var i = 0; i < count; i++) { + var value = SpawnJSInterop._tapeRead(reader); + array[i] = SpawnJSInterop.reviveValue(i, value === SpawnJSInterop._tapeAbsent ? undefined : value, false); + } + return array; + } + case 12: { + var ctor = SpawnJSInterop.TapeNumberCtors[f64[reader.p++]]; + var count = f64[reader.p++]; + var view = new ctor(reader.views.buffer, reader.p * 8, count); + reader.p += (count * ctor.BYTES_PER_ELEMENT + 7) >>> 3; + // a plain Array, as element-by-element writing produced; a TypedArray stays opt in + return Array.from(view); + } + case 14: { + var count = reader.views.f64[reader.p++]; + var record = {}; + for (var i = 0; i < count; i++) { + var key = SpawnJSInterop._tapeReadChars(reader); + var value = SpawnJSInterop._tapeRead(reader); + record[key] = SpawnJSInterop.reviveValue(key, value === SpawnJSInterop._tapeAbsent ? undefined : value, false); + } + return record; + } + case 15: { + var reviver = SpawnJSInterop._methodMap[reader.views.f64[reader.p++]]; + if (!reviver) throw new Error('SpawnJSInterop: tape reviver not found'); + // (key, value, directCall) - the v2 property reviver convention; there is no property key here + return reviver(null, SpawnJSInterop._tapeRead(reader), true); + } + case 13: { + var f = reader.views.f64; + var viewType = f[reader.p], offset = f[reader.p + 1], count = f[reader.p + 2], copy = f[reader.p + 3] !== 0; + reader.p += 4; + return SpawnJSInterop._heapView(reader.dotnetId, viewType, offset, count, copy); + } + default: throw new Error(`SpawnJSInterop: unknown tape tag ${tag} at cell ${reader.p - 1}`); + } + } + // length, then UTF-16 code units padded to a cell + static _tapeReadChars(reader) { + var length = reader.views.f64[reader.p++]; + var value = SpawnJSInterop._tapeString(reader.views.u16, reader.p * 4, length); + reader.p += (length + 3) >>> 2; + return value; + } + // String.fromCharCode keeps every UTF-16 code unit exactly - a lone surrogate included, which a TextDecoder + // would replace. Chunked, because apply() has an argument count limit. + static _tapeString(u16, index, length) { + if (length <= 1024) return String.fromCharCode.apply(null, u16.subarray(index, index + length)); + var parts = []; + for (var i = 0; i < length; i += 1024) { + parts.push(String.fromCharCode.apply(null, u16.subarray(index + i, index + Math.min(i + 1024, length)))); + } + return parts.join(''); + } + // ---- results: written back by the schema .Net reads them with (JSSchema.cs, JSTapeReader.cs) ---- + // Ids 0-10 are the built-in ReturnType kinds; composite schemas are defined per instance, after a call's arguments. + static _builtinSchemas = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(kind => Object.freeze({ kind })); + // thrown by a writer over .Net memory that is out of room (only a string can be; it is written again) + static _tapeOverflow = Object.freeze({ tapeOverflow: true }); + static _tapeSchema(instance, id) { + if (id <= 10) return SpawnJSInterop._builtinSchemas[id]; + var schema = instance.tapeSchemas?.[id]; + if (!schema) throw new Error(`SpawnJSInterop: unknown tape schema ${id}`); + return schema; + } + // TagSchema, id, kind, then per kind - member / element schemas are ids, resolved when a value is written, so a + // schema can refer to one defined after it, or to itself + static _tapeReadSchemaDefinition(reader) { + if (reader.views.buffer.detached) reader.views = SpawnJSInterop._tapeViews(reader.instance, reader.address + reader.length); + var f64 = reader.views.f64; + var tag = f64[reader.p++]; + if (tag !== 16) throw new Error(`SpawnJSInterop: expected a tape schema definition, found tag ${tag}`); + var id = f64[reader.p++]; + var schema = { kind: f64[reader.p++] }; + switch (schema.kind) { + case 16: { + var count = f64[reader.p++]; + schema.names = new Array(count); + for (var i = 0; i < count; i++) schema.names[i] = SpawnJSInterop._tapeReadChars(reader); + schema.members = new Array(count); + for (var i = 0; i < count; i++) schema.members[i] = reader.views.f64[reader.p++]; + break; + } + case 20: { + var count = f64[reader.p++]; + schema.members = new Array(count); + for (var i = 0; i < count; i++) schema.members[i] = f64[reader.p++]; + break; + } + case 17: case 19: schema.element = f64[reader.p++]; break; + case 18: schema.numberKind = f64[reader.p++]; break; + } + (reader.instance.tapeSchemas ??= [])[id] = schema; + } + // Writes a call's result back over its own frame. A built-in kind goes straight into .Net memory (only a string + // can outgrow the frame's segment); a composite is written into Javascript memory first, then copied - it can + // hold references and run getters, so it is written exactly once. A result that does not fit is held for + // _spawnJSInteropCallResult, and the return value is minus its size. + static _tapeWriteResult(instance, schemaId, ret, address, capacity) { + var schema = SpawnJSInterop._tapeSchema(instance, schemaId); + if (schema.kind === 0) return 0; + if (schemaId <= 10) { + var views = SpawnJSInterop._tapeViews(instance, address + capacity); + var w = { buffer: views.buffer, f64: views.f64, i32: views.i32, u16: views.u16, p: address >>> 3, end: (address + capacity) >>> 3, scratch: false }; + try { + SpawnJSInterop._tapeEncode(instance, w, schema, ret); + return (w.p - (address >>> 3)) * 8; + } catch (ex) { + if (ex !== SpawnJSInterop._tapeOverflow) throw ex; + } + } + var s = SpawnJSInterop._tapeScratchWriter(instance); + try { + SpawnJSInterop._tapeEncode(instance, s, schema, ret); + var bytes = s.p * 8; + if (bytes <= capacity) { + var heap = SpawnJSInterop._tapeViews(instance, address + bytes); + new Uint8Array(heap.buffer, address, bytes).set(new Uint8Array(s.buffer, 0, bytes)); + return bytes; + } + instance.tapePendingResult = new Uint8Array(s.buffer.slice(0, bytes)); + return -bytes; + } finally { + SpawnJSInterop._tapeScratchRelease(instance, s); + } + } + // encodes a result and holds it for _spawnJSInteropCallResult; returns its size + static _tapeHoldResult(instance, schema, value) { + var s = SpawnJSInterop._tapeScratchWriter(instance); + try { + SpawnJSInterop._tapeEncode(instance, s, schema, value); + instance.tapePendingResult = new Uint8Array(s.buffer.slice(0, s.p * 8)); + return s.p * 8; + } finally { + SpawnJSInterop._tapeScratchRelease(instance, s); + } + } + // Javascript-side result buffers, pooled per instance (a nested call's result uses its own) + static _tapeScratchWriter(instance) { + var w = instance.tapeScratch?.pop(); + if (!w) { + w = { scratch: true, p: 0 }; + SpawnJSInterop._tapeScratchResize(w, 512); + } + w.p = 0; + return w; + } + static _tapeScratchRelease(instance, w) { + // a very large one is dropped rather than kept for the life of the page + if (w.end <= 1 << 20) (instance.tapeScratch ??= []).push(w); + } + static _tapeScratchResize(w, cells) { + var buffer = new ArrayBuffer(cells * 8); + if (w.buffer) new Uint8Array(buffer).set(new Uint8Array(w.buffer, 0, w.p * 8)); + w.buffer = buffer; + w.f64 = new Float64Array(buffer); + w.i32 = new Int32Array(buffer); + w.u16 = new Uint16Array(buffer); + w.end = cells; + } + static _tapeNeed(w, cells) { + if (w.p + cells <= w.end) return; + if (!w.scratch) throw SpawnJSInterop._tapeOverflow; + SpawnJSInterop._tapeScratchResize(w, Math.max(w.end * 2, w.p + cells)); + } + // One value by its schema. The built-in kinds convert exactly as v2's typed returns did: null/undefined read + // as 0 / false, a number is stored through a Float64Array (ToNumber) and an int through an Int32Array (ToInt32). + // A composite reads each member / element with that member's schema - what v2's per-property Get read. + static _tapeEncode(instance, w, schema, v) { + var isNull = v === null || v === undefined; + switch (schema.kind) { + case 0: return; + case 1: + SpawnJSInterop._tapeNeed(w, 1); + w.f64[w.p++] = isNull ? 0 : v; + return; + case 2: + SpawnJSInterop._tapeNeed(w, 1); + w.f64[w.p++] = v ? 1 : 0; + return; + case 3: + if (isNull) { SpawnJSInterop._tapeNeed(w, 1); w.f64[w.p++] = 1; return; } + SpawnJSInterop._tapeNeed(w, 2); + w.f64[w.p++] = 2; + w.f64[w.p++] = v; + return; + case 4: + if (isNull) { SpawnJSInterop._tapeNeed(w, 1); w.f64[w.p++] = 1; return; } + SpawnJSInterop._tapeNeed(w, 2); + w.f64[w.p++] = 3; + w.f64[w.p++] = v ? 1 : 0; + return; + case 5: + if (!isNull && typeof v !== 'string') v = Object(v).toString(); + SpawnJSInterop._tapeEncodeString(w, isNull ? null : v); + return; + case 6: case 7: + SpawnJSInterop._tapeNeed(w, 1); + w.f64[w.p++] = SpawnJSInterop.spawnJSObjectHold(v); + return; + case 8: + SpawnJSInterop._tapeEncodeString(w, JSON.stringify(v)); + return; + case 9: + SpawnJSInterop._tapeNeed(w, 1); + w.i32[w.p * 2] = isNull ? 0 : v; + w.p++; + return; + case 10: + if (isNull) { SpawnJSInterop._tapeNeed(w, 1); w.f64[w.p++] = 1; return; } + SpawnJSInterop._tapeNeed(w, 2); + w.f64[w.p] = 2; + w.i32[(w.p + 1) * 2] = v; + w.p += 2; + return; + case 16: { + if (isNull) { SpawnJSInterop._tapeNeed(w, 1); w.f64[w.p++] = 1; return; } + SpawnJSInterop._tapeNeed(w, 1); + w.f64[w.p++] = 9; + var names = schema.names, members = schema.members; + for (var i = 0; i < names.length; i++) SpawnJSInterop._tapeEncode(instance, w, SpawnJSInterop._tapeSchema(instance, members[i]), v[names[i]]); + return; + } + case 17: { + if (isNull) { SpawnJSInterop._tapeNeed(w, 1); w.f64[w.p++] = 1; return; } + var count = Number(v.length) || 0; + SpawnJSInterop._tapeNeed(w, 2); + w.f64[w.p++] = 11; + w.f64[w.p++] = count; + var element = SpawnJSInterop._tapeSchema(instance, schema.element); + for (var i = 0; i < count; i++) SpawnJSInterop._tapeEncode(instance, w, element, v[i]); + return; + } + case 18: { + if (isNull) { SpawnJSInterop._tapeNeed(w, 1); w.f64[w.p++] = 1; return; } + var count = Number(v.length) || 0; + var int32 = schema.numberKind === 9; + var cells = int32 ? (count + 1) >>> 1 : count; + SpawnJSInterop._tapeNeed(w, 2 + cells); + w.f64[w.p++] = 12; + w.f64[w.p++] = count; + // element by element, not typedArray.set(): an undefined element must read as 0, as Get read it + if (int32) { + var view = new Int32Array(w.buffer, w.p * 8, count); + for (var i = 0; i < count; i++) { var e = v[i]; view[i] = e === null || e === undefined ? 0 : e; } + } else { + var view = new Float64Array(w.buffer, w.p * 8, count); + for (var i = 0; i < count; i++) { var e = v[i]; view[i] = e === null || e === undefined ? 0 : e; } + } + w.p += cells; + return; + } + case 19: { + if (isNull) { SpawnJSInterop._tapeNeed(w, 1); w.f64[w.p++] = 1; return; } + // own enumerable keys - inherited ones belong to the prototype chain, not the record + var keys = Object.keys(v); + SpawnJSInterop._tapeNeed(w, 2); + w.f64[w.p++] = 14; + w.f64[w.p++] = keys.length; + var element = SpawnJSInterop._tapeSchema(instance, schema.element); + for (var i = 0; i < keys.length; i++) { + SpawnJSInterop._tapeEncodeChars(w, keys[i]); + SpawnJSInterop._tapeEncode(instance, w, element, v[keys[i]]); + } + return; + } + case 20: { + if (isNull) { SpawnJSInterop._tapeNeed(w, 1); w.f64[w.p++] = 1; return; } + var members = schema.members; + SpawnJSInterop._tapeNeed(w, 2); + w.f64[w.p++] = 11; + w.f64[w.p++] = members.length; + for (var i = 0; i < members.length; i++) SpawnJSInterop._tapeEncode(instance, w, SpawnJSInterop._tapeSchema(instance, members[i]), v[i]); + return; + } + case 21: { + if (isNull) { SpawnJSInterop._tapeNeed(w, 1); w.f64[w.p++] = 1; return; } + var bytes = v instanceof ArrayBuffer ? new Uint8Array(v) + : ArrayBuffer.isView(v) ? new Uint8Array(v.buffer, v.byteOffset, v.byteLength) + : null; + if (!bytes) throw new TypeError('SpawnJSInterop: expected an ArrayBuffer or ArrayBufferView'); + var cells = (bytes.length + 7) >>> 3; + SpawnJSInterop._tapeNeed(w, 2 + cells); + w.f64[w.p++] = 12; + w.f64[w.p++] = bytes.length; + new Uint8Array(w.buffer, w.p * 8, bytes.length).set(bytes); + w.p += cells; + return; + } + } + throw new Error(`SpawnJSInterop: unsupported tape schema kind ${schema.kind}`); + } + // null, or tag, length, UTF-16 code units + static _tapeEncodeString(w, value) { + if (value === null || value === undefined) { + SpawnJSInterop._tapeNeed(w, 1); + w.f64[w.p++] = 1; + return; + } + SpawnJSInterop._tapeNeed(w, 1); + w.f64[w.p++] = 4; + SpawnJSInterop._tapeEncodeChars(w, value); + } + // length, UTF-16 code units padded to a cell + static _tapeEncodeChars(w, value) { + var length = value.length; + SpawnJSInterop._tapeNeed(w, 1 + ((length + 3) >>> 2)); + w.f64[w.p++] = length; + var u16 = w.u16; + var index = w.p * 4; + for (var i = 0; i < length; i++) u16[index + i] = value.charCodeAt(i); + w.p += (length + 3) >>> 2; + } + // refreshes the method map by looking for any new methods and adds them + // JSImport + // string[] _refreshMethodMap(); + static refreshMethodMap() { + var changed = false; + var keys = Reflect.ownKeys(SpawnJSInterop); + for (const pName of keys) { + if (SpawnJSInterop._methodMapNames.indexOf(pName) !== -1) continue; + var propVal = SpawnJSInterop[pName]; + if (typeof propVal === 'function') { + var fn = propVal.bind(SpawnJSInterop); + changed = true; + SpawnJSInterop._methodMap.push(fn); + SpawnJSInterop._methodMapNames.push(pName); + if (pName.indexOf('__reviver') === 0) { + SpawnJSInterop._revivers.push(fn); + } else if (pName.indexOf('__replacer') === 0) { + SpawnJSInterop._replacers.push(fn); + } + } + } + if (changed) { + // notify existing instances + for (const dotnetIdExisting in SpawnJSInterop._instances) { + if (Object.hasOwn(SpawnJSInterop._instances, dotnetIdExisting)) { + var existingInfo = SpawnJSInterop._instances[dotnetIdExisting]; + try { + existingInfo.onMethodAdded(); + } catch { } + } + } + } + return SpawnJSInterop._methodMapNames; + } + // JSImport + // void _releaseCallback(double dotnetId, double callbackId); + static releaseCallback(dotnetId, callbackId) { + var callbackIdPair = `${dotnetId}_${callbackId}`; + delete SpawnJSInterop._callbacks[callbackIdPair]; + } + // removes the object from the hold and returns it + // JSImport + // void SpawnJSObjectRelease(double sjsId); + // bool SpawnJSObjectReleaseBoolean(double sjsId); + // double SpawnJSObjectReleaseDouble(double sjsId); + // int SpawnJSObjectReleaseInt32(double sjsId); + // bool? SpawnJSObjectReleaseBooleanNullable(double sjsId); + // int? SpawnJSObjectReleaseInt32Nullable(double sjsId); + // double? SpawnJSObjectReleaseDoubleNullable(double sjsId); + static spawnJSObjectRelease(sjsId) { + var ret = SpawnJSInterop.spawnJSObjectGet(sjsId); + delete SpawnJSInterop.spawnJSObjects[sjsId]; + if (SpawnJSInterop.verbose) console.log('spawnJSObjectRelease. Count:', Object.keys(SpawnJSInterop.spawnJSObjects).length, 'Id:', sjsId); + return ret; + } + // removes the object from the hold, JSON.stringifies it and returns it + // JSImport + // string SpawnJSObjectReleaseJson(double sjsId); + static spawnJSObjectReleaseAsJson(sjsId) { + var ret = SpawnJSInterop.spawnJSObjectGet(sjsId); + delete SpawnJSInterop.spawnJSObjects[sjsId]; + return JSON.stringify(ret); + } + // returns true if the item id exists in the hold + // JSImport + // bool SpawnJSObjectHoldExists(double sjsId); + static spawnJSObjectHoldExists(sjsId) { + switch (sjsId) { + case -1: return true; + case -2: return true; + case -3: return true; + case -4: return true; + case -5: return true; + } + return sjsId in SpawnJSInterop.spawnJSObjects; + } + // returns string + // JSImport + // string _getTypeInfo(double sjsId); + static getTypeInfo(sjsId) { + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + var jsClass = Object.prototype.toString.call(obj).split(' ')[1].slice(0, -1); + var jsType = typeof (obj); + return `${jsType} ${jsClass}`; + } + + // ************************************************************************************** + // SpawnJSObjectReference imports + // Note: only `string key` imports shown. Also exists: `double key`, `int key` + // ************************************************************************************** + + // property info + // returns string or null if the property was not found + // JSImport + // string _propertyTypeInfo(double sjsId, string key); + static propertyTypeInfo(sjsId, key) { + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + var { parent, propertyName, shortCircuit } = SpawnJSInterop.pathObjectInfo(obj, key); + if (shortCircuit) return null; + if (!SpawnJSInterop._in(propertyName, parent)) return null; + var value = parent[propertyName]; + var jsClass = Object.prototype.toString.call(value).split(' ')[1].slice(0, -1); + var jsType = typeof (value); + return `${jsType} ${jsClass}`; + } + // deletes property + // JSImport + // bool _propertyDelete(double sjsId, string key); + static propertyDelete(sjsId, key) { + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + if (obj === void 0 || obj === null) throw new Error('obj null or undefined'); + var { parent, propertyName, shortCircuit } = SpawnJSInterop.pathObjectInfo(obj, key); + if (shortCircuit) return true; + return delete parent[propertyName]; + } + // returns bool if the key is in the target + // JSImport + // bool _propertyIn(double sjsId, string key); + static propertyIn(sjsId, key) { + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + if (obj === void 0 || obj === null) throw new Error('obj null or undefined'); + var { parent, propertyName, shortCircuit } = SpawnJSInterop.pathObjectInfo(obj, key); + if (shortCircuit) return false; + return SpawnJSInterop._in(propertyName, parent); + } + // get a property + // InteropCall (dispatched through the call tape) + static propertyGet(sjsId, key) { + var ret = undefined; + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + var pathInfo = SpawnJSInterop.pathObjectInfo(obj, key); + if (pathInfo.shortCircuit) return ret; + if (typeof pathInfo.target === 'function') { + ret = pathInfo.target.bind(pathInfo.parent); + } else { + ret = pathInfo.target; + } + return ret; + } + // set property + // InteropCall (dispatched through the call tape) + static propertySet(sjsId, key, value) { + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + if (obj === void 0 || obj === null) throw new Error('obj null or undefined'); + var { parent, propertyName, shortCircuit } = SpawnJSInterop.pathObjectInfo(obj, key); + if (shortCircuit) return; + // revivers + value = SpawnJSInterop.reviveValue(propertyName, value, false); + parent[propertyName] = value; + } + // A view of - or with copy, a copy of - .Net memory. A live view carries its _heapViewInfo so the heap view + // reviver can rebuild it after the heap grows. Built when the tape reads a TagHeapView. + static _heapView(dotnetId, viewType, offset, length, copy) { + // create the heapView meta data + var heapViewInfo = { dotnetId, viewType, offset, length, copy }; + // viewType is an INDEX into HeapViewCtors, and index 0 (BigInt64Array) is a real value - a + // falsy check would read it as "missing" and silently rewrite it. The default is the + // Uint8Array index, not its name: this value is used as an index, never as a lookup key. + if (heapViewInfo.viewType === undefined || heapViewInfo.viewType === null) heapViewInfo.viewType = 10; + heapViewInfo.instance = SpawnJSInterop.getInstace(heapViewInfo.dotnetId); + heapViewInfo.dotnet = SpawnJSInterop.spawnJSObjectGet(heapViewInfo.dotnetId); + heapViewInfo.sizeHistory = []; + heapViewInfo.ctor = SpawnJSInterop.getArrayBufferViewConstructor(heapViewInfo.viewType); + // refresh the heapView + return SpawnJSInterop.heapViewRefresh(heapViewInfo); + } + // The Javascript function that invokes a .Net Callback, created once per callback and reused + // .Net gives each instance a pinned buffer that a callback's arguments are written into before it calls .Net + // JSImport + // void _registerInbound(double dotnetId, double address, int cells); + static _registerInbound(dotnetId, address, cells) { + // cell 0 carries the offset of the arguments of the callback being called + SpawnJSInterop.getInstace(dotnetId).inbound = { address, cells, top: 1 }; + } + // Writes a callback's arguments by their schemas into the instance's inbound buffer, as a stack (a callback can + // run inside another), and puts their offset in cell 0. Arguments too large for the space left are held for + // _spawnJSInteropCallResult instead, and cell 0 is minus their size. Returns the top to restore afterwards. + static _tapeWriteInbound(instance, argumentSchemas, args) { + var inbound = instance.inbound; + var top = inbound.top; + var s = SpawnJSInterop._tapeScratchWriter(instance); + try { + for (var i = 0; i < argumentSchemas.length; i++) { + SpawnJSInterop._tapeEncode(instance, s, SpawnJSInterop._tapeSchema(instance, argumentSchemas[i]), args[i]); + } + var views = SpawnJSInterop._tapeViews(instance, inbound.address + inbound.cells * 8); + var offset; + if (top + s.p <= inbound.cells) { + new Uint8Array(views.buffer, inbound.address + top * 8, s.p * 8).set(new Uint8Array(s.buffer, 0, s.p * 8)); + offset = top; + inbound.top = top + s.p; + } else { + instance.tapePendingResult = new Uint8Array(s.buffer.slice(0, s.p * 8)); + offset = -(s.p * 8); + } + views.f64[inbound.address >>> 3] = offset; + } finally { + SpawnJSInterop._tapeScratchRelease(instance, s); + } + return top; + } + static _callbackFunction(dotnetId, callbackId, once, argumentSchemas) { + if (!callbackId || !dotnetId) { + return null; + } + // get callback id that is globally unique + var callbackIdPair = `${dotnetId}_${callbackId}`; + // check if it exists and createa new function if not + var value = SpawnJSInterop._callbacks[callbackIdPair]; + if (!value) { + value = function (...args) { + // check if the callback has been removed + if (!SpawnJSInterop._callbacks[callbackIdPair]) { + return; + } + // get the SpawnJSRuntime instance's method that is used to report the callback + var instance = SpawnJSInterop.getInstace(dotnetId); + var { handleCallback } = instance; + // get argsCnt because after when we call handleCallback .Net will write + // the return value to at the end of the array after the last argument (index argsCnt) + // unless the return value should be undefined + var argsCnt = args.length; + // get a temporary hold of the args (released after we notify SpawnJSRuntime) + var argsId = SpawnJSInterop.spawnJSObjectHold(args); + // ⚠️ try/finally, NOT straight-line. .Net deliberately does not release this slot + // itself - that would cost an extra crossing per callback - so the ONLY release is + // here. If handleCallback throws (any exception escaping the .Net handler crosses + // back through here) a straight-line release is SKIPPED and the args array is + // stranded in spawnJSObjects for the life of the page. Same for the `once` cleanup: + // a one-shot callback that threw would never be removed and would keep firing. + // MEASURED 2026-09-02: dumping the table mid-run in the ML demo showed ~30 stranded + // empty arrays alongside the retained adapters. + // the arguments go to .Net memory now, so the call below is the only crossing they need + var inboundTop = SpawnJSInterop._tapeWriteInbound(instance, argumentSchemas ?? [], args); + try { + // notify SpawnJSRuntime with the argsId and the cnt + handleCallback(callbackId, argsId, argsCnt); + } finally { + instance.inbound.top = inboundTop; + // release the args + SpawnJSInterop.spawnJSObjectRelease(argsId); + // if it was a 1 time use callback, release it + if (once) delete SpawnJSInterop._callbacks[callbackIdPair]; + } + // return what is in index argsCnt (the designated place .Net will write to if there is a return value) + return args[argsCnt]; + }; + SpawnJSInterop._callbacks[callbackIdPair] = value; + } + return value; + } + + // Interop Calls + // Interop calls are calls made indirectly via _spawnJSInteropCall and _spawnJSInteropCallAsync. + // Because they go through those methods they can return and recieve any data type the marshallers support + + // call a property constructor + // InteropCall + // SpawnJSObjectReference + // + static propertyNewApply(sjsId, key, args) { + var ret = undefined; + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + var pathInfo = SpawnJSInterop.pathObjectInfo(obj, key); + if (pathInfo.shortCircuit) return ret; + var ret = !args ? new pathInfo.target() : new pathInfo.target(...args); + return ret; + } + // call a property constructor + // InteropCall + // SpawnJSObjectReference + // + static propertyNew(sjsId, key, ...args) { + var ret = undefined; + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + var pathInfo = SpawnJSInterop.pathObjectInfo(obj, key); + if (pathInfo.shortCircuit) return ret; + var ret = !args ? new pathInfo.target() : new pathInfo.target(...args); + return ret; + } + // call a property + // InteropCall + // SpawnJSObjectReference + // + static propertyCallApply(sjsId, key, args) { + var ret = undefined; + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + var pathInfo = SpawnJSInterop.pathObjectInfo(obj, key); + if (pathInfo.shortCircuit) return ret; + var ret = pathInfo.target.apply(pathInfo.parent, args); + if (typeof ret === 'function') { + ret = ret.bind(pathInfo.parent); + } + return ret; + } + // call a property + // InteropCall + // SpawnJSObjectReference + // + static propertyCall(sjsId, key, ...args) { + var ret = undefined; + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + var pathInfo = SpawnJSInterop.pathObjectInfo(obj, key); + if (pathInfo.shortCircuit) return ret; + var ret = pathInfo.target.apply(pathInfo.parent, args); + if (typeof ret === 'function') { + ret = ret.bind(pathInfo.parent); + } + return ret; + } + // useful when .Net Wasm wants to clonme a JSObjectReference or simply convert from one type to another + // InteropCall + // SpawnJSObjectReference + // + static returnMe(value) { + return value; + } + // InteropCall + // ByteArrayMarshaller + // + static writeArrayBufferViewToHeap(dotnetId, arrayBufferView, srcOffset, destOffset, byteLength) { + if (!arrayBufferView) throw new Error('writeArrayBufferViewToHeap arrayBufferView is required'); + if (byteLength === 0) return 0; + var srcLength = arrayBufferView.byteLength; + if (byteLength == -1) byteLength = srcLength; + if (byteLength < -1) throw new Error('Invalid byteLength'); + // get the .Net heap + var instance = SpawnJSInterop.getInstace(dotnetId); + var buffer = instance.getHeap(); + var bufferView = new Uint8Array(buffer, destOffset, byteLength); + // get a view of the exact source we want + var offset = arrayBufferView.byteOffset + srcOffset; + var sourceView = new Uint8Array(arrayBufferView.buffer, offset, byteLength); + // copy to the .Net heap + bufferView.set(sourceView); + // return the bytes copied + return byteLength; + } + // called using Call<> + // InteropCall + // TaskMarshaller + // + static propertySetNewPromise(sjsId, key) { + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + if (obj === void 0 || obj === null) throw new Error('obj null or undefined'); + var { parent, propertyName, shortCircuit } = SpawnJSInterop.pathObjectInfo(obj, key); + if (shortCircuit) return; + var promise = SpawnJSInterop.newEasyPromise(); + parent[propertyName] = promise; + return promise; + } + // called using Call<> + // InteropCall + // TaskMarshaller + // + static propertySetResolvedPromise(sjsId, key, value) { + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + if (obj === void 0 || obj === null) throw new Error('obj null or undefined'); + var { parent, propertyName, shortCircuit } = SpawnJSInterop.pathObjectInfo(obj, key); + if (shortCircuit) return; + parent[propertyName] = Promise.resolve(value); + } + // called using Call<> + // InteropCall + // TaskMarshaller + // + static propertySetRejectedPromise(sjsId, key, value) { + var obj = SpawnJSInterop.spawnJSObjectGet(sjsId); + if (obj === void 0 || obj === null) throw new Error('obj null or undefined'); + var { parent, propertyName, shortCircuit } = SpawnJSInterop.pathObjectInfo(obj, key); + if (shortCircuit) return; + parent[propertyName] = Promise.reject(value); + } + // InteropCall + // SpawnJSRuntime + // + static getHeapSize(dotnetId) { + var instance = SpawnJSInterop.getInstace(dotnetId); + var buffer = instance.getHeap(); + return buffer.byteLength; + } + // full ? strict equality : loose equality + // InteropCall + // SpawnJSRuntime + // + static objectEquals(obj1, obj2, full) { + return full ? obj1 === obj2 : obj1 == obj2; + } + + static detachedEventCheck() { + for (const dotnetIdExisting in SpawnJSInterop._instances) { + if (Object.hasOwn(SpawnJSInterop._instances, dotnetIdExisting)) { + var instanceInfo = SpawnJSInterop._instances[dotnetIdExisting]; + instanceInfo.getHeap(); + } + } + } + static getInstace(dotnetId) { + return SpawnJSInterop._instances[dotnetId]; + } + static _getInstaceFromDotNet(dotnet) { + for (const dotnetIdExisting in SpawnJSInterop._instances) { + if (Object.hasOwn(SpawnJSInterop._instances, dotnetIdExisting)) { + var existingInfo = SpawnJSInterop._instances[dotnetIdExisting]; + if (existingInfo.dotnet == dotnet) { + return existingInfo; + } + } + } + } + static __replacerJson(key, value, directCall) { + if (directCall) value = JSON.stringify(value); + return value; + } + static __reviverJson(key, value, directCall) { + if (directCall) value = JSON.parse(value); + return value; + } + static _unregisterInstance(dotnetId) { + delete SpawnJSInterop._instances[dotnetId]; + } + static _getMappedMethodNames() { + return SpawnJSInterop._methodMapNames; + } + // array of { name, reviver } + static registerReplacers(replacers) { + var cnt = 0; + if (!replacers) return cnt; + for (var replacerObj of replacers) { + var succ = SpawnJSInterop.registerReplacer(replacerObj.name, replacerObj.replacer); + if (succ) cnt++; + } + return cnt; + } + static registerReplacer(name, replacer) { + if (name.indexOf('__replacer') !== 0) throw new Error('Replacer names must start with __replacer'); + if (SpawnJSInterop[name]) { + // already exists. fail quitely as it could just mean another app loaded that uses the same replacers + return false; + } + SpawnJSInterop[name] = replacer; + SpawnJSInterop.refreshMethodMap(); + return true; + } + // array of { name, reviver } + static registerRevivers(revivers) { + var cnt = 0; + if (!revivers) return cnt; + for (var reviverObj of revivers) { + var succ = SpawnJSInterop.registerReviver(reviverObj.name, reviverObj.reviver); + if (succ) cnt++; + } + return cnt; + } + static registerReviver(name, reviver) { + if (name.indexOf('__reviver') !== 0) throw new Error('Reviver names must start with __reviver'); + if (SpawnJSInterop[name]) { + // already exists. fail quitely as it could just mean another app loaded that uses the same revivers + return false; + } + SpawnJSInterop[name] = reviver; + SpawnJSInterop.refreshMethodMap(); + return true; + } + // puts objectToHold (value of ANY type) into spawnJSObjects and returns the id + // the object will stay held until released and it must be released to prevent memory leaks + static spawnJSObjectHold(objectToHold) { + if (objectToHold === globalThis) return -1; + if (objectToHold === undefined) return -2; + if (objectToHold === null) return -3; + if (objectToHold === SpawnJSInterop.spawnJSObjects) return -4; + if (objectToHold === SpawnJSInterop) return -5; + var sjsId = ++SpawnJSInterop._sjsObjectIdNext; + SpawnJSInterop.spawnJSObjects[sjsId] = objectToHold; + if (SpawnJSInterop.verbose) console.log('spawnJSObjectHold. Count:', Object.keys(SpawnJSInterop.spawnJSObjects).length, 'Id:', sjsId, 'Object:', objectToHold); + return sjsId; + } + // get an object from the hold + static spawnJSObjectGet(sjsId) { + switch (sjsId) { + case -1: return globalThis; + case -2: return undefined; + case -3: return null; + case -4: return SpawnJSInterop.spawnJSObjects; + case -5: return SpawnJSInterop; + } + if (!SpawnJSInterop.spawnJSObjectHoldExists(sjsId)) { + throw new Error('SpawnJSObjectGet object not found.'); + } + var ret = SpawnJSInterop.spawnJSObjects[sjsId]; + // passive revive (allows things like refreshing heap views) + ret = SpawnJSInterop.reviveValue(null, ret, false); + return ret; + }// get an obejct from the hold and replace it with a new one + static spawnJSObjectGetAndReplace(sjsId, newValue) { + switch (sjsId) { + case -1: return globalThis; + case -2: return undefined; + case -3: return null; + case -4: return SpawnJSInterop.spawnJSObjects; + case -5: return SpawnJSInterop; + } + if (!SpawnJSInterop.spawnJSObjectHoldExists(sjsId)) { + throw new Error('SpawnJSObjectGet object not found.'); + } + var ret = SpawnJSInterop.spawnJSObjects[sjsId]; + SpawnJSInterop.spawnJSObjects[sjsId] = newValue; + return ret; + } + static heapViewRefresh(heapViewInfo) { + var needsCreate = !heapViewInfo.buffer; + var needsRefresh = !heapViewInfo.buffer || heapViewInfo.buffer.detached; + if (needsRefresh) { + var instance = SpawnJSInterop.getInstace(heapViewInfo.dotnetId); + heapViewInfo.buffer = instance.getHeap(); + var value = null; + var length = heapViewInfo.length === -1 ? /* entire buffer */ heapViewInfo.buffer.byteLength - heapViewInfo.offset : heapViewInfo.length; + if (heapViewInfo.viewType === 13) { + // ArrayBuffer requested + if (heapViewInfo.copy) { + // create a copy + value = heapViewInfo.buffer.slice(heapViewInfo.offset, heapViewInfo.offset + length); + } else { + // can't use offet and length when not copying the heap asn ArrayBuffer view + if (heapViewInfo.offset != 0) throw new Error('Offset and length not supported creating an ArrayBuffer heap view without a copy'); + value = heapViewInfo.buffer; + } + } else if (heapViewInfo.viewType === 14) { + // SharedArrayBuffer requested + if (heapViewInfo.copy) { + // create a copy + var uint8ArrayHeap = new Uint8Array(heapViewInfo.buffer, heapViewInfo.offset, length); + value = new globalThis.SharedArrayBuffer(length); + var uint8ArrayDest = new Uint8Array(value); + value.set(uint8ArrayHeap); + } else { + // can't get a live SharedArrayBuffer view of the heap + throw new Error('Cannot get a live SharedArrayBuffer view of the heap'); + } + } else { + // ArrayBufferView (TypedArray or DataView) + var liveView = new heapViewInfo.ctor(heapViewInfo.buffer, heapViewInfo.offset, length); + value = heapViewInfo.copy ? liveView.slice() : liveView; + } + // copies do not get (or need) their view refreshed as it will not detach + if (!heapViewInfo.copy) value._heapViewInfo = heapViewInfo; + heapViewInfo.bufferLength = heapViewInfo.buffer.byteLength; + heapViewInfo.sizeHistory.push(heapViewInfo.bufferLength); + heapViewInfo.value = value; + if (SpawnJSInterop.verbose) { + if (!needsCreate) console.log('Heapview refreshed:', heapViewInfo); + else console.log('Heapview created:', heapViewInfo); + } + } + return heapViewInfo.value; + } + static getArrayBufferViewConstructor(viewType) { + var ctor = SpawnJSInterop.HeapViewCtors[viewType]; + if (viewType === 13 || viewType === 14) return null; // ArrayBuffer + if (!ctor) throw new Error(`Unsupported or missing ArrayBufferView constructor for enum index: ${viewType}`); + return ctor; + } + static __replacerHeapView(key, value, directCall, reviverConfig) { + if (directCall) { + if (value && typeof value === 'object' && SpawnJSInterop._in('_heapViewInfo', value)) { + // .Net wants HeapViewDescriptor + //SpawnJSInterop.heapViewRefresh(heapViewInfo); + } + } + return value; + } + static __reviverHeapView(key, value, directCall, reviverConfig) { + if (!directCall && value && typeof value === 'object' && SpawnJSInterop._in('_heapViewInfo', value)) { + // auto-reattach if needed + // this allows creating a fresh HeapView if needed on `set` and `call` (with the exception of call reattach only working if the view is in teh root args list. no object walking is done) + var heapViewInfo = value._heapViewInfo; + value = SpawnJSInterop.heapViewRefresh(heapViewInfo); + } + return value; + } + // tape revivers (JSTape.WriteRevived) for a Task that completed before it was written + static promiseResolved(key, value) { return Promise.resolve(value); } + static promiseRejected(key, value) { return Promise.reject(value); } + // create a new Promsie with the resolve and reject methods attached to the promise for easy calling from .Net + static newEasyPromise() { + var _resolve = null; + var _reject = null; + var promise = new Promise((resolve, reject) => { + _resolve = resolve; + _reject = reject; + }); + promise.resolve = _resolve; + promise.reject = _reject; + return promise + } + // Reviver used by BigIntegerMarshaller: a BigInteger crosses as its decimal string, because a JS + // number cannot hold one exactly, and is revived into a real BigInt here. + // Revivers are called as (key, value, directCall) by the tape (TagRevive, JSTape.WriteRevived) - a plain + // (value) signature would silently revive the PROPERTY NAME instead of the value. + static stringToBigInt(key, value) { + if (!globalThis.BigInt) throw new Error('BigInt not supported on this platform'); + return value === undefined || value === null ? null : globalThis.BigInt(value); + } + // object constructor names + // returns string[] + static getConstructorNames(obj) { + var constructorNames = []; + if (obj === void 0 || obj === null) return constructorNames; + var o = obj; + var cName; + while (1) { + o = Object.getPrototypeOf(o); + cName = o?.constructor?.name; + if (!cName) break; + if (constructorNames.indexOf(cName) !== -1) continue; + constructorNames.push(cName); + } + return constructorNames; + } + // returns string[] of the target's property names. + // hasOwnProperty true restricts to the object's own enumerable keys (Object.keys); false walks the + // prototype chain too, which is what you need to enumerate a DOM object's API rather than just the + // handful of own properties it happens to carry. + static objectKeys(target, hasOwnProperty) { + if (target === void 0 || target === null) return []; + if (hasOwnProperty) return Object.keys(target); + var keys = []; + for (var key in target) { + if (keys.indexOf(key) === -1) keys.push(key); + } + return keys; + } + // Pipe the value through each reviver sequentially; a reviver that drops the value (undefined) skips the rest. + // A plain loop: this runs for every argument of every call, and reduce() allocated a closure each time. + static reviveValue(key, value, directCall) { + var revivers = SpawnJSInterop._revivers; + for (var i = 0; i < revivers.length && value !== undefined; i++) { + value = revivers[i](key, value, directCall); // directCall tells the reviver this is a call revive as opposed to a propertySet revive + } + return value; + } + static replaceValue(key, value, directCall) { + var replacers = SpawnJSInterop._replacers; + for (var i = 0; i < replacers.length && value !== undefined; i++) { + value = replacers[i](key, value, directCall); + } + return value; + } + // returns the types the object inherits from + // returns string[] + static getPropertyConstructorNames(parent, key) { + return SpawnJSInterop.getConstructorNames(parent[key]); + } + // converts to an error string or returns a generic error string. + // A NAMED error (Error subclasses, DOMException - NotFoundError, NotAllowedError, AbortError ... - + // and OverconstrainedError, which often has an EMPTY message) is sent as + // "\u0001" + name + "\u0002" + message so .Net can rebuild a JSException with its Name + // (JSException.FromInteropError). Only the message used to be sent: the name was lost, and an + // empty-message OverconstrainedError from getUserMedia arrived as a blank exception. + static errorToString(error) { + if (!error) return "Unknown error"; + if (typeof error === 'string') return error; + let name = null; + let message = null; + if (typeof error === 'object') { + try { if (typeof error.name === 'string' && error.name) name = error.name; } catch { } + try { if (typeof error.message === 'string') message = error.message; } catch { } + if (message === null && !(error instanceof Error)) { + try { message = JSON.stringify(error); } catch { message = String(error); } + } + // OverconstrainedError reports the failing constraint separately + try { if (typeof error.constraint === 'string' && error.constraint) message = (message ? message + ' ' : '') + '(constraint: ' + error.constraint + ')'; } catch { } + } + else { + message = String(error); + } + if (!message) message = name ? '' : 'Unknown error'; + return name ? '\u0001' + name + '\u0002' + message : message; + } + // Main .Net to JS entrypoint + static async _spawnJSInteropLoadExportsAsync(dotnetId, assemblyName) { + var dotnet = SpawnJSInterop.spawnJSObjectGet(dotnetId); + var assemblyExports = await dotnet.getAssemblyExports(assemblyName); + var spawnJSExports = assemblyName.split('.').reduce((acc, key) => acc[key], assemblyExports); + dotnet.spawnJSExports = spawnJSExports; + } + // prepares the variable for .Net based on returnType + static _serializeToNet(returnType, ret) { + switch (returnType) { + case 0: // void + return; + case 6: // SpawnJSObject - Number + case 7: // SpawnJSObjectNonNullable - Number + return SpawnJSInterop.spawnJSObjectHold(ret); + case 8: // Json + return JSON.stringify(ret); + case 1: // Double + case 2: // Boolean + case 3: // DoubleNullable + case 4: // BooleanNullable + case 9: // Int32 + case 10: // Int32Nullable + return ret; + case 5: // String + if (ret && typeof ret !== 'string') { + ret = Object(ret).toString(); + } + return ret; + } + // the default is to return as is + return ret; + } + static wasmMemoryBuffer(dotnet) { + var found = SpawnJSInterop.#findWasmMemory(dotnet); + if (!found) throw new Error('SpawnJSInterop: could not reach the WebAssembly memory buffer'); + return found.buffer; + } + // returns the name of the path the memory buffer was found under, or '' if it was not found + static wasmMemoryBufferSource(dotnet) { + var found = SpawnJSInterop.#findWasmMemory(dotnet); + return found ? found.source : ''; + } + static #findWasmMemory(dotnet) { + var rt = dotnet; + if (!rt) return null; + var candidates = [ + ['Module.HEAPU8.buffer', () => rt.Module?.HEAPU8?.buffer], + ['Module.wasmMemory.buffer', () => rt.Module?.wasmMemory?.buffer], + ['localHeapViewU8().buffer', () => rt.localHeapViewU8?.()?.buffer], + ['getHeapU8().buffer', () => rt.getHeapU8?.()?.buffer], + ]; + for (var i = 0; i < candidates.length; i++) { + var buffer; + try { buffer = candidates[i][1](); } catch (ex) { continue; } + if (buffer && typeof buffer.byteLength === 'number' && buffer.byteLength > 0) { + return { buffer: buffer, source: candidates[i][0] }; + } + } + return null; + } + // safely checks for a property existence + // safely means will not throw, which is needed as simply checking for a + // a proeprty can throw an exception (notably on cross-origin windows) + static _in(key, obj) { + if (obj === null || obj === void 0) return false; + try { + return key in Object(obj); + } catch { } + return false; + } + // returns the path info based on a base object and a property path: `window?.location.href` + static pathObjectInfo(rootObject, path) { + if (rootObject === null || rootObject === void 0) { + // callers must call with the globalThis if they wish to use it as the rootObject. + throw new Error('spawnJSInterop.pathObjectInfo error: rootObject cannot be null'); + } + var parent = rootObject; + var target; + var propertyName; + var shortCircuit = false; + if (typeof path === 'string' && !(SpawnJSInterop._in(path, parent))) { + var parts = path.split('.'); + propertyName = parts[parts.length - 1]; + var part; + for (var i = 0; i < parts.length - 1; i++) { + part = parts[i]; + if (part[part.length - 1] === '?') { + // ? null conditonal found + // if parent does not exist allow undefined/null parent instead of throwing exception + part = part.substring(0, part.length - 1); + parent = parent[part]; + if (parent === void 0 || parent === null) { + shortCircuit = true; + break; + } + } + else { + parent = parent[part]; + } + } + if (!shortCircuit) { + target = parent[propertyName]; + } + } + else { + propertyName = path; + target = parent[propertyName]; + } + return { + shortCircuit, // bool - true if the pathfinding short circuited due to a null-conditional + parent, // any - only null or undefined if short circuited due to a null-conditional + propertyName, // any + target, // any + }; + } + + // The URL this app was LOADED from - the origin of its own main.* / _framework, NOT the host + // page's document.baseURI. Under a CDN load the page and the app live at different URLs, and every + // worker entry (main.classic.js / main.module.js / _framework/*) must resolve against the APP's + // origin. document.baseURI is a page-coupled Blazor-ism that hands back the page root instead. + // + // Derived per-runtime from THIS app's OWN dotnetRuntime, so two SpawnJS apps loaded from different + // origins on one page each get their own base - a module-scope import.meta.url could not, because + // the class-definition guard means app B's lib.module.js body never re-runs. + // + // Fail-loud multi-candidate, the same shape as #findWasmMemory: the runtime exposes its origin + // under different shapes across scopes/versions, so every known shape is tried and the one that + // worked is reportable via appBaseUriSource(). Returns '' if none resolve, so the caller can fall + // back rather than silently build worker URLs against a wrong base. + static appBaseUri(dotnet) { + var found = this.#findAppBaseUri(dotnet); + return found ? found.uri : ''; + } + // Which candidate produced appBaseUri(), or '' - diagnostic, mirrors wasmMemoryBufferSource(). + static appBaseUriSource(dotnet) { + var found = this.#findAppBaseUri(dotnet); + return found ? found.source : ''; + } + static import(src) { + return import(src); + } + // The app-root normalizer, exposed so it is diagnosable and testable directly. The test suite + // drives THIS function rather than a copy of the logic, so the production path is what is covered. + static appRootFromLoadUrl(raw) { + return this.#appRootFromLoadUrl(raw); + } + // Normalizes a URL some runtime artifact was loaded from into the app root, with a trailing slash. + // + // Every boot artifact - the runtime entry (dotnet.js / dotnet..js) and every resource + // in the boot manifest (.wasm/.dll assemblies, ICU .dat/.blat, .pdb symbols) - lives in the app's + // framework folder, so the app root is that folder's PARENT. Anything else was loaded from the app + // root itself: a bundled entrypoint (main.classic.js / main.module.js) sits beside index.html, and + // that is what SpawnDev.SpawnJS.WebWorkers bundles before 2.1.9 reported here. + // + // The framework folder is identified by WHAT was loaded, never by what the folder is NAMED. It is + // "_framework" in a normal publish, but a published app may rename it - WebWorkers' + // SpawnJSWebWorkersFrameworkFolderName does exactly that, because a browser extension may not have + // a root folder starting with '_'. Matching the literal name returned the framework folder itself + // as the app root there, and every URL built on it (worker entrypoints above all) resolved one + // level too deep. + static #appRootFromLoadUrl(raw) { + if (typeof raw !== 'string' || raw.length === 0) return ''; + if (raw.startsWith('blob:')) return ''; + var url; + try { url = new URL(raw, self?.location?.href); } catch (ex) { return ''; } + var segments = url.pathname.split('/'); // leading '' from the root slash + var file = segments.pop(); // '' when the url already names a directory + // A boot artifact is one level below the app root, whatever its folder is called. Guarded on + // length so an artifact served from the origin root cannot walk above it. + if (file && this.#isBootArtifact(file) && segments.length > 1) segments.pop(); + return url.origin + segments.join('/') + '/'; + } + // True for the runtime entry and for boot-manifest resources - the files that only ever live in + // the app's framework folder. Deliberately does NOT match a bundled entrypoint (main.*.js), which + // sits at the app root. + static #isBootArtifact(fileName) { + return /^dotnet(\..+)?\.m?js$/i.test(fileName) + || /\.(wasm|dll|dat|blat|pdb)$/i.test(fileName); + } + static #findAppBaseUri(dotnet) { + if (!dotnet) return null; + var candidates = [ + // PROVEN primary (measured across scopes): dotnet.js's own module URL, i.e. + // appRoot/_framework/dotnet..js - itself import.meta-derived, so it is the real CDN + // origin under a CDN load, not the host page. Can be a blob: URL in some worker configs, + // which #appRootFromLoadUrl rejects so the resolver falls through to the next candidate. + ['Module.mainScriptUrlOrBlob', () => dotnet.Module?.mainScriptUrlOrBlob], + // Robust backup: every boot resource carries an absolute resolvedUrl (appRoot/_framework/*), + // always populated even when mainScriptUrlOrBlob is a blob. + ['getConfig().resources.assembly[0].resolvedUrl', () => dotnet.getConfig?.()?.resources?.assembly?.[0]?.resolvedUrl], + ]; + for (var i = 0; i < candidates.length; i++) { + var raw; + try { raw = candidates[i][1](); } catch (ex) { continue; } + var uri = this.#appRootFromLoadUrl(raw); + if (uri) return { uri: uri, source: candidates[i][0] }; + } + return null; + } + } + globalThis.SpawnJSInterop = SpawnJSInterop; +})(); \ No newline at end of file diff --git a/_content/SpawnDev.Blazor.BootRecovery/SpawnDev.Blazor.BootRecovery.7rjy3ukk5v.lib.module.js b/_content/SpawnDev.Blazor.BootRecovery/SpawnDev.Blazor.BootRecovery.7rjy3ukk5v.lib.module.js new file mode 100644 index 0000000000000000000000000000000000000000..853d5c1ed6355bee680f60f6c753add97a772aed --- /dev/null +++ b/_content/SpawnDev.Blazor.BootRecovery/SpawnDev.Blazor.BootRecovery.7rjy3ukk5v.lib.module.js @@ -0,0 +1,83 @@ +// SpawnDev.Blazor.BootRecovery +// +// WORKAROUND: dotnet/runtime#135090 (https://github.com/dotnet/runtime/issues/135090). TEMPORARY: remove this package once the +// .NET runtime retries failed boot resources with cache: "reload" itself. +// +// THE BUG: the .NET WebAssembly loader fetches every fingerprinted boot resource (assemblies, dotnet.native.wasm, ICU, pdb) with +// fetch(url, { cache: "force-cache", integrity }). If the browser's HTTP cache ever stored an error for one of those URLs (a 503 from +// the host during a deploy or outage, a 404, an empty 200), "force-cache" returns that stored response on every later load, without +// asking the server again. The integrity check rejects it, the app fails to boot, and it keeps failing after the server is healthy: +// a hard reload does not help (the explicit cache mode wins over the reload's cache bypass), and Blazor sets +// enableDownloadRetry: false, so nothing retries. A visitor is stuck until the browser evicts the entry. +// +// THE FIX: while this initializer is loaded, a fetch that was sent with cache: "force-cache" and failed (rejected, e.g. the +// integrity check, or answered with a non-2xx status) is sent ONCE more with cache: "reload". Everything else the runtime chose +// (integrity, credentials, headers) is kept, so a resource is still verified against its hash. "reload" goes to the network and +// replaces the bad cache entry, so the next load is a normal cache hit again. A healthy cached start does not change at all: a +// successful force-cache response is returned untouched. If the retry fails too (the server really is down) its result is +// returned and the app fails exactly as it would have. +// +// HOW IT LOADS: Blazor imports every referenced package's .lib.module.js ("JS initializer") from onConfigLoaded, +// before the runtime starts downloading its boot resources, and the runtime calls globalThis.fetch at call time. So referencing +// this package is enough: no Program.cs or index.html change. The wrapper is installed when this module is evaluated, and the +// initializer hooks below only make sure of it. + +const STATE_KEY = Symbol.for('SpawnDev.Blazor.BootRecovery'); + +function urlOf(input) { + if (typeof input === 'string') return input; + if (input && typeof input.url === 'string') return input.url; // Request + return String(input); // URL or anything with toString() +} + +// ⚠️ The installer is a plain, NON-exported function declaration, and nothing in this module calls an exported function by name. +// SpawnDev.BlazorJS.WebWorkers (when a worker cannot use dynamic import, or the app has an import map, i.e. every .NET 10 template app) +// rewrites this module's source: `export function X()` becomes `_exportsOverride.X = function X()`, a function EXPRESSION, which +// leaves no `X` binding in the module scope. 1.0.0 called its exported installBootRecovery() at the top level, so in such a worker the +// module threw "ReferenceError: installBootRecovery is not defined" and the worker failed to boot (found by Data, 2026-11-22). A +// plain declaration is not rewritten and stays hoisted, so this works with that patcher and without it. +function install() { + const g = globalThis; + if (g[STATE_KEY]) return g[STATE_KEY]; + const originalFetch = g.fetch; + if (typeof originalFetch !== 'function') return null; + const state = { originalFetch, recovered: [] }; + + const recoveringFetch = async function (input, init) { + // Only requests that explicitly asked for "force-cache" can be pinned to a stored error. Everything else goes straight + // through, unchanged (same arguments, same this-binding as a plain fetch call). + if (!init || init.cache !== 'force-cache') return originalFetch.call(g, input, init); + let reason; + try { + const response = await originalFetch.call(g, input, init); + if (response.ok) return response; + reason = `HTTP ${response.status}`; + } catch (e) { + reason = (e && e.message) || String(e); // integrity mismatch / network failure: TypeError "Failed to fetch" + } + const url = urlOf(input); + // One retry, from the network, keeping every other option (integrity included). Its outcome is final either way. + const retried = await originalFetch.call(g, input, { ...init, cache: 'reload' }); + state.recovered.push({ url, reason, status: retried.status }); + if (retried.ok) + console.warn(`[SpawnDev.Blazor.BootRecovery] recovered '${url}' (cached response failed: ${reason}); re-fetched with cache: "reload" (dotnet/runtime#135090).`); + return retried; + }; + g.fetch = recoveringFetch; + g[STATE_KEY] = state; + return state; +} + +/** + * Installs the recovering fetch wrapper on globalThis once (idempotent, also across copies of this module). + * @returns {{ originalFetch: Function, recovered: Array<{url: string, reason: string, status: number}> } | null} + */ +export function installBootRecovery() { return install(); } + +// Install as soon as Blazor imports this module. +install(); + +// Blazor initializer hooks. Blazor calls the WebAssembly-specific hook when present, the classic one otherwise; both only ensure +// the wrapper is installed (for example if something replaced fetch between the import and the start). +export function beforeWebAssemblyStart() { install(); } +export function beforeStart() { install(); } diff --git a/_content/SpawnDev.ILGPU/glWorker.js b/_content/SpawnDev.ILGPU/glWorker.js new file mode 100644 index 0000000000000000000000000000000000000000..d1f583f1473d554975d9114dcf7702e7e6d96344 --- /dev/null +++ b/_content/SpawnDev.ILGPU/glWorker.js @@ -0,0 +1,1020 @@ +'use strict'; +let gl = null; +let canvas = null; +const programCache = {}; +// programId -> the compile or link error of a program that failed. The accelerator sends a program's source and +// varying names with its FIRST dispatch only, so a later dispatch of a failed program must repeat that error. +const failedPrograms = {}; + +// ---- GPU-resident buffer registry ---- +// Maps bufferId → { texture, width, height, glslType, byteSize, data: Uint8Array } +const bufferRegistry = {}; + +// ---- float scalar uniform decode ---- +// float/double scalar uniforms arrive as their int32 BIT PATTERN (WebGLAccelerator.EncodeUniformScalarValue): +// the .NET→JS dispatch message is JSON-marshaled and System.Text.Json rejects float ±inf/NaN, so the bits +// travel as a JSON-safe int and we reconstruct the exact float here. ±inf/NaN round-trip bit-perfectly. +const _f32rein = new Float32Array(1); +const _i32rein = new Int32Array(_f32rein.buffer); +function _bitsToFloat(bits) { _i32rein[0] = bits | 0; return _f32rein[0]; } + +// ---- Cached GL objects (reused across dispatches) ---- +let cachedTFBuffer = null; +let cachedTFBufferSize = 0; +let cachedTFObject = null; +let cachedDummyVBO = null; +let cachedDummyVBOSize = 0; +let cachedDummyVAO = null; + +self.onmessage = function (e) { + const msg = e.data; + switch (msg.type) { + case 'init': + canvas = msg.canvas; + if (!canvas) { + console.error('[GLWorker] INIT FAILED: No canvas received'); + return; + } + gl = canvas.getContext('webgl2'); + if (!gl) { + console.error('[GLWorker] INIT FAILED: Could not create WebGL2 context'); + } else { + // Required to render to R32F/RGBA32F color attachments (GPGPU scatter of float buffers). + // Integer formats (R32I/R32UI) are color-renderable in core WebGL2 without this. + gl.getExtension('EXT_color_buffer_float'); + } + // Monitor context loss/restoration + canvas.addEventListener('webglcontextlost', function (ev) { + ev.preventDefault(); // allows potential context restoration + self.postMessage({ type: 'contextlost' }); + }); + canvas.addEventListener('webglcontextrestored', function () { + gl = canvas.getContext('webgl2'); + // programs and the cached GL objects belonged to the lost context; the accelerator re-sends sources + for (const id in programCache) delete programCache[id]; + for (const id in failedPrograms) delete failedPrograms[id]; + for (const t in scatterPrograms) delete scatterPrograms[t]; + scatterFBO = null; + maxTexSizeCache = 0; + cachedTFBuffer = null; + cachedTFBufferSize = 0; + cachedTFObject = null; + cachedDummyVBO = null; + cachedDummyVBOSize = 0; + cachedDummyVAO = null; + self.postMessage({ type: 'contextrestored' }); + }); + break; + + case 'allocBuffer': + handleAllocBuffer(msg); + break; + + case 'uploadBuffer': + handleUploadBuffer(msg); + break; + + case 'readbackBuffer': + handleReadbackBuffer(msg); + break; + + case 'freeBuffer': + handleFreeBuffer(msg); + break; + + case 'copyBuffer': + handleCopyBuffer(msg); + break; + + case 'retypeBuffer': + handleRetypeBuffer(msg); + break; + + case 'dispatch': + try { + const result = dispatchKernel(msg); + self.postMessage(result.message, result.transferList); + } catch (err) { + console.error('[GLWorker] dispatch error:', err.message, err.stack); + self.postMessage({ + done: false, dispatchId: msg.dispatchId, + error: err.message + '\n' + err.stack + }); + } + break; + + case 'blitBuffer': + handleBlitBuffer(msg); + break; + + case 'scatter': + try { + handleScatter(msg); + } catch (err) { + console.error('[GLWorker] scatter error:', err.message, err.stack); + self.postMessage({ done: false, dispatchId: msg.dispatchId, error: err.message + '\n' + err.stack }); + } + break; + } +}; + +// ---- GPGPU scatter (render points to a texture; dst[destIdx[i]] = src[i]) ---- +// WebGL2 transform feedback is gather-only (an invocation writes only its own output slot). +// Scatter writes to a COMPUTED position by rasterizing one GL_POINT per element at the dest texel +// and letting the fragment shader write the value to the dst texture (the render target). This stays +// GPU-side: the result lives in the dst buffer's texture; we mark the CPU mirror stale and read it +// back lazily only if the host actually reads the buffer (handleReadbackBuffer). +const scatterPrograms = {}; // glslType -> { program, locs } +let scatterFBO = null; + +function getOrCompileScatterProgram(glslType) { + if (scatterPrograms[glslType]) return scatterPrograms[glslType]; + const isInt = glslType === 'int'; + const isUint = glslType === 'uint'; + const samp = isInt ? 'isampler2D' : isUint ? 'usampler2D' : 'sampler2D'; + const valType = isInt ? 'int' : isUint ? 'uint' : 'float'; + const vs = `#version 300 es +precision highp float; precision highp int; +uniform highp ${samp} u_src; +uniform highp isampler2D u_dest; +uniform int u_srcTileW; uniform int u_destTileW; uniform int u_dstW; uniform int u_dstH; uniform int u_cpe; +flat out ${valType} v_val; +void main() { + // i is the int-SLOT index (0..n*cpe-1). cpe=1 -> one texel per element (32-bit). cpe=2 -> two + // texels per element (i64/f64 stored as [lo,hi] pairs): element = i/cpe, component = i%cpe. + int i = gl_VertexID; + int sx = i % u_srcTileW; int sy = i / u_srcTileW; + ${valType} val = texelFetch(u_src, ivec2(sx, sy), 0).r; + int element = i / u_cpe; + int comp = i - element * u_cpe; + int di = element % u_destTileW; int dj = element / u_destTileW; + int destElem = texelFetch(u_dest, ivec2(di, dj), 0).r; + int dest = destElem * u_cpe + comp; + int tx = dest % u_dstW; int ty = dest / u_dstW; + float ndcx = (float(tx) + 0.5) / float(u_dstW) * 2.0 - 1.0; + float ndcy = (float(ty) + 0.5) / float(u_dstH) * 2.0 - 1.0; + gl_Position = vec4(ndcx, ndcy, 0.0, 1.0); + gl_PointSize = 1.0; + v_val = val; +}`; + const vec4Type = isInt ? 'ivec4' : isUint ? 'uvec4' : 'vec4'; + const zero = isInt ? '0' : isUint ? '0u' : '0.0'; + const fs = `#version 300 es +precision highp float; precision highp int; +flat in ${valType} v_val; +layout(location = 0) out highp ${vec4Type} o_val; +void main() { o_val = ${vec4Type}(v_val, ${zero}, ${zero}, ${zero}); }`; + + function compile(type, src) { + const s = gl.createShader(type); + gl.shaderSource(s, src); gl.compileShader(s); + if (!gl.getShaderParameter(s, gl.COMPILE_STATUS)) + throw new Error('[scatter ' + glslType + '] shader compile: ' + gl.getShaderInfoLog(s) + '\n' + src); + return s; + } + const program = gl.createProgram(); + gl.attachShader(program, compile(gl.VERTEX_SHADER, vs)); + gl.attachShader(program, compile(gl.FRAGMENT_SHADER, fs)); + gl.linkProgram(program); + if (!gl.getProgramParameter(program, gl.LINK_STATUS)) + throw new Error('[scatter ' + glslType + '] link: ' + gl.getProgramInfoLog(program)); + const locs = { + u_src: gl.getUniformLocation(program, 'u_src'), + u_dest: gl.getUniformLocation(program, 'u_dest'), + u_srcTileW: gl.getUniformLocation(program, 'u_srcTileW'), + u_destTileW: gl.getUniformLocation(program, 'u_destTileW'), + u_dstW: gl.getUniformLocation(program, 'u_dstW'), + u_dstH: gl.getUniformLocation(program, 'u_dstH'), + u_cpe: gl.getUniformLocation(program, 'u_cpe'), + }; + const entry = { program, locs }; + scatterPrograms[glslType] = entry; + return entry; +} + +function handleScatter(msg) { + const { dstBufferId, srcBufferId, destBufferId, n } = msg; + const cpe = msg.cpe || 1; // texels per element: 1 for 32-bit, 2 for i64/f64 + while (gl.getError() !== 0) { } + const dst = bufferRegistry[dstBufferId]; + const src = bufferRegistry[srcBufferId]; + const dest = bufferRegistry[destBufferId]; + if (!dst || !src || !dest) throw new Error('scatter: unknown buffer(s)'); + + const glslType = dst.glslType || 'float'; + const sp = getOrCompileScatterProgram(glslType); + gl.useProgram(sp.program); + + gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D, src.texture); gl.uniform1i(sp.locs.u_src, 0); + gl.activeTexture(gl.TEXTURE1); gl.bindTexture(gl.TEXTURE_2D, dest.texture); gl.uniform1i(sp.locs.u_dest, 1); + gl.uniform1i(sp.locs.u_srcTileW, src.width); + gl.uniform1i(sp.locs.u_destTileW, dest.width); + gl.uniform1i(sp.locs.u_dstW, dst.width); + gl.uniform1i(sp.locs.u_dstH, dst.height); + gl.uniform1i(sp.locs.u_cpe, cpe); + + // Render directly into the dst buffer's texture (the next op reads this — zero-copy). + if (!scatterFBO) scatterFBO = gl.createFramebuffer(); + gl.bindFramebuffer(gl.FRAMEBUFFER, scatterFBO); + gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, dst.texture, 0); + const fbStatus = gl.checkFramebufferStatus(gl.FRAMEBUFFER); + if (fbStatus !== gl.FRAMEBUFFER_COMPLETE) { + gl.bindFramebuffer(gl.FRAMEBUFFER, null); + throw new Error('scatter: incomplete FBO status=' + fbStatus + ' glslType=' + glslType + + ' (R32F render targets need EXT_color_buffer_float; R32I/R32UI are core-renderable)'); + } + gl.drawBuffers([gl.COLOR_ATTACHMENT0]); + gl.viewport(0, 0, dst.width, dst.height); + gl.disable(gl.RASTERIZER_DISCARD); + gl.disable(gl.BLEND); // blending is illegal for integer color buffers + gl.disable(gl.DEPTH_TEST); + gl.disable(gl.SCISSOR_TEST); + gl.disable(gl.CULL_FACE); + gl.colorMask(true, true, true, true); + gl.drawArrays(gl.POINTS, 0, n * cpe); // n*cpe int-slots (one point per texel) + gl.bindFramebuffer(gl.FRAMEBUFFER, null); + + // Result lives in dst.texture (zero-copy); refresh the CPU mirror lazily on host readback. + dst.dataStale = true; +} + +// ---- Buffer Registry Operations ---- + +// The widest texture this device takes (gl.MAX_TEXTURE_SIZE), at most 16384. It was a fixed 16384: on a device whose limit is +// lower every buffer over that many texels got an illegal texture (INVALID_VALUE) and no kernel could read it - Chrome with +// --disable-gpu (SwiftShader, MAX_TEXTURE_SIZE 8192), SD-Turbo in SpawnGen (Lore, 2026-11-20). Kernels take the width as the +// u_paramN_tileW uniform, so any width works. Reset on context restore. +let maxTexSizeCache = 0; +function maxTextureSize() { + if (!maxTexSizeCache) { + const reported = gl ? gl.getParameter(gl.MAX_TEXTURE_SIZE) : 0; + maxTexSizeCache = Math.min(16384, reported > 0 ? reported : 4096); // 4096: WebGL2's guaranteed minimum is 2048, 4096 is universal + } + return maxTexSizeCache; +} + +function computeTiling(byteSize) { + const texelCount = Math.ceil(byteSize / 4); + const maxTexSize = maxTextureSize(); + let width, height; + if (texelCount > maxTexSize) { + width = maxTexSize; + height = Math.ceil(texelCount / width); + } else { + width = texelCount; + height = 1; + } + return { width, height, totalTexels: width * height }; +} + +function createTextureForEntry(entry) { + const tex = gl.createTexture(); + gl.bindTexture(gl.TEXTURE_2D, tex); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); + uploadTextureData(tex, entry); + return tex; +} + +// GL error codes by name, for messages a person can act on. +function glErrorName(e) { + switch (e) { + case 0x0500: return 'INVALID_ENUM'; + case 0x0501: return 'INVALID_VALUE'; + case 0x0502: return 'INVALID_OPERATION'; + case 0x0505: return 'OUT_OF_MEMORY'; + case 0x0506: return 'INVALID_FRAMEBUFFER_OPERATION'; + case 0x9242: return 'CONTEXT_LOST_WEBGL'; + default: return '0x' + e.toString(16); + } +} + +// Every pending GL error, as names (empty when there are none). getError returns one flag per call until none is left. +function drainGlErrors() { + const names = []; + for (let e = gl.getError(), guard = 0; e !== 0 && guard < 16; e = gl.getError(), guard++) names.push(glErrorName(e)); + return names; +} + +function uploadTextureData(tex, entry) { + gl.bindTexture(gl.TEXTURE_2D, tex); + const totalTexels = entry.width * entry.height; + if (entry.glslType === 'int') { + gl.texImage2D(gl.TEXTURE_2D, 0, gl.R32I, entry.width, entry.height, 0, + gl.RED_INTEGER, gl.INT, new Int32Array(entry.data.buffer, 0, totalTexels)); + } else if (entry.glslType === 'uint') { + gl.texImage2D(gl.TEXTURE_2D, 0, gl.R32UI, entry.width, entry.height, 0, + gl.RED_INTEGER, gl.UNSIGNED_INT, new Uint32Array(entry.data.buffer, 0, totalTexels)); + } else { + gl.texImage2D(gl.TEXTURE_2D, 0, gl.R32F, entry.width, entry.height, 0, + gl.RED, gl.FLOAT, new Float32Array(entry.data.buffer, 0, totalTexels)); + } + // A failed upload (OUT_OF_MEMORY when many large textures are alive) leaves the texture without valid contents, and nothing used to + // say so: the error flag was discarded by the next dispatch's drain and kernels read the texture as if it were the buffer + // (DeviceVectorIndex after growth, 2026-11-01). Record it on the buffer; a dispatch that binds the buffer throws with it. + const errs = drainGlErrors(); + entry.glError = errs.length > 0 ? errs.join(', ') + ' uploading its ' + entry.width + 'x' + entry.height + ' ' + (entry.glslType || 'float') + ' texture' + + (entry.height > maxTextureSize() + ? ' (taller than the MAX_TEXTURE_SIZE of this device, ' + maxTextureSize() + ': one buffer holds at most ' + (maxTextureSize() * maxTextureSize() * 4) + ' bytes on it)' + : '') : null; +} + +function handleAllocBuffer(msg) { + const { bufferId, byteSize, glslType } = msg; + const { width, height, totalTexels } = computeTiling(byteSize); + const data = new Uint8Array(totalTexels * 4); // zero-filled + const entry = { texture: null, width, height, glslType: glslType || 'float', byteSize, data }; + entry.texture = createTextureForEntry(entry); + bufferRegistry[bufferId] = entry; +} + +function handleUploadBuffer(msg) { + const { bufferId, buffer, byteOffset, byteLength, dstByteOffset } = msg; + const entry = bufferRegistry[bufferId]; + if (!entry) { + console.error('[GLWorker] uploadBuffer: unknown bufferId', bufferId); + return; + } + const srcData = new Uint8Array(buffer, byteOffset || 0, byteLength || buffer.byteLength); + if (dstByteOffset !== undefined && dstByteOffset !== null) { + // PARTIAL host write (MemSet / CopyFromCPU / CopyFromJS on a range) into a buffer that already lives + // here. Only that range changes: the rest of entry.data is the post-kernel state, which the host's + // own mirror does not have. A whole-buffer upload of the host mirror is what used to wipe it. + ensureCpuFresh(entry); + entry.data.set(srcData, dstByteOffset); + uploadTextureData(entry.texture, entry); + entry.dataStale = false; + return; + } + entry.data.set(srcData); + // Zero-fill padding + if (srcData.length < entry.data.length) { + entry.data.fill(0, srcData.length); + } + uploadTextureData(entry.texture, entry); + entry.dataStale = false; // CPU mirror + GPU texture now consistent +} + +// Lazily refresh the CPU mirror (entry.data) from the GPU texture when it was last written by a +// scatter (render-to-texture) and not yet read back. This is the ONLY readPixels — intermediate +// scatter results stay GPU-side and are never read back. +// A buffer created before any kernel bound it (by a device copy, a scatter, a memset) got the default 'float' texture; a kernel that +// then reads it as int / uint binds an isampler2D / usampler2D to an R32F texture, and the draw fails with INVALID_OPERATION, which used +// to read back as "nothing stored" (DeviceVectorIndex's grown valid buffer, 2026-11-01). Re-create the texture in the type the kernel +// declares, from the same raw bytes: entry.data holds the 32-bit words whatever the format, so no value changes. +function handleRetypeBuffer(msg) { + const entry = bufferRegistry[msg.bufferId]; + if (!entry) { console.error('[GLWorker] retypeBuffer: unknown bufferId', msg.bufferId); return; } + if (entry.glslType === msg.glslType) return; + ensureCpuFresh(entry); // a scatter may have left the newest bytes only in the texture + entry.glslType = msg.glslType; + uploadTextureData(entry.texture, entry); +} + +function ensureCpuFresh(entry) { + if (!entry || !entry.dataStale) return; + if (!scatterFBO) scatterFBO = gl.createFramebuffer(); + gl.bindFramebuffer(gl.FRAMEBUFFER, scatterFBO); + gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, entry.texture, 0); + const total = entry.width * entry.height; + let format, type, view; + if (entry.glslType === 'int') { format = gl.RED_INTEGER; type = gl.INT; view = new Int32Array(entry.data.buffer, 0, total); } + else if (entry.glslType === 'uint') { format = gl.RED_INTEGER; type = gl.UNSIGNED_INT; view = new Uint32Array(entry.data.buffer, 0, total); } + else { format = gl.RED; type = gl.FLOAT; view = new Float32Array(entry.data.buffer, 0, total); } + gl.readPixels(0, 0, entry.width, entry.height, format, type, view); + gl.bindFramebuffer(gl.FRAMEBUFFER, null); + entry.dataStale = false; +} + +function handleReadbackBuffer(msg) { + const { bufferId, requestId } = msg; + const entry = bufferRegistry[bufferId]; + if (!entry) { + self.postMessage({ type: 'readbackResult', requestId, bufferId, error: 'unknown bufferId' }); + return; + } + ensureCpuFresh(entry); // pull a scattered result back to the CPU mirror only when actually read + // Create a copy of the data to transfer back + const copy = new ArrayBuffer(entry.byteSize); + new Uint8Array(copy).set(new Uint8Array(entry.data.buffer, 0, entry.byteSize)); + self.postMessage({ type: 'readbackResult', requestId, bufferId, buffer: copy }, [copy]); +} + +function handleFreeBuffer(msg) { + const { bufferId } = msg; + const entry = bufferRegistry[bufferId]; + if (entry) { + if (entry.texture) gl.deleteTexture(entry.texture); + delete bufferRegistry[bufferId]; + } +} + +// Worker-side GPU->GPU copy. The CPU-side _backingArray is never refreshed +// after a kernel TF write (only the worker's entry.data is), so routing +// CopyTo/CopyFrom GPU->GPU through the main thread reads stale zeros from +// _backingArray and produces a destination of zeros. By doing the copy +// here (worker's entry.data -> worker's entry.data) the canonical +// post-kernel state is preserved, then we re-upload the destination +// texture so subsequent dispatches see the new data. +function handleCopyBuffer(msg) { + const { srcBufferId, srcByteOffset, dstBufferId, dstByteOffset, byteLength } = msg; + const srcEntry = bufferRegistry[srcBufferId]; + const dstEntry = bufferRegistry[dstBufferId]; + if (!srcEntry || !dstEntry) { + console.error('[GLWorker] copyBuffer: unknown bufferId(s)', srcBufferId, dstBufferId); + return; + } + ensureCpuFresh(srcEntry); // a scattered source must be pulled back before a CPU-side copy + const srcOff = srcByteOffset | 0; + const dstOff = dstByteOffset | 0; + const len = byteLength | 0; + // Bounds clamp - never overrun either typed array. + const srcEnd = Math.min(srcOff + len, srcEntry.data.length); + const copyLen = Math.max(0, srcEnd - srcOff); + if (copyLen <= 0) return; + if (dstOff + copyLen > dstEntry.data.length) { + console.error('[GLWorker] copyBuffer: destination overrun', dstOff, copyLen, dstEntry.data.length); + return; + } + dstEntry.data.set(srcEntry.data.subarray(srcOff, srcOff + copyLen), dstOff); + // Push the new bytes to the destination texture so subsequent kernel + // dispatches reading via texelFetch see the updated values. + uploadTextureData(dstEntry.texture, dstEntry); + dstEntry.dataStale = false; // CPU mirror + GPU texture now consistent +} + +// ---- Shader Compilation ---- + +// source / varyingNames are null after a program's first dispatch: the cached entry (or the cached error) answers. +function getOrCompileProgram(programId, source, varyingNames) { + const cached = programCache[programId]; + if (cached && !cached.disposed && (source == null || cached.source === source)) { + return cached; + } + if (source == null) { + if (programId in failedPrograms) throw new Error(failedPrograms[programId]); + throw new Error('GL worker: program ' + programId + ' is not compiled and its source was not sent'); + } + try { + return compileProgram(programId, source, varyingNames || []); + } catch (e) { + failedPrograms[programId] = e.message; + throw e; + } +} + +function compileProgram(programId, source, varyingNames) { + const cached = programCache[programId]; + if (cached && !cached.disposed) { + gl.deleteProgram(cached.program); + gl.deleteShader(cached.vs); + gl.deleteShader(cached.fs); + cached.disposed = true; + } + + const vs = gl.createShader(gl.VERTEX_SHADER); + gl.shaderSource(vs, source); + gl.compileShader(vs); + if (!gl.getShaderParameter(vs, gl.COMPILE_STATUS)) { + const log = gl.getShaderInfoLog(vs); + gl.deleteShader(vs); + throw new Error('Vertex shader compile error: ' + log); + } + + const fsSource = '#version 300 es\nprecision mediump float;\nvoid main() {}\n'; + const fs = gl.createShader(gl.FRAGMENT_SHADER); + gl.shaderSource(fs, fsSource); + gl.compileShader(fs); + if (!gl.getShaderParameter(fs, gl.COMPILE_STATUS)) { + const log = gl.getShaderInfoLog(fs); + gl.deleteShader(vs); + gl.deleteShader(fs); + throw new Error('Fragment shader compile error: ' + log); + } + + const program = gl.createProgram(); + gl.attachShader(program, vs); + gl.attachShader(program, fs); + + if (varyingNames && varyingNames.length > 0) { + gl.transformFeedbackVaryings(program, varyingNames, gl.INTERLEAVED_ATTRIBS); + } + + gl.linkProgram(program); + if (!gl.getProgramParameter(program, gl.LINK_STATUS)) { + const log = gl.getProgramInfoLog(program); + gl.deleteShader(vs); + gl.deleteShader(fs); + gl.deleteProgram(program); + throw new Error('Program link error: ' + log); + } + + const entry = { program, vs, fs, uniformCache: {}, disposed: false, source, varyingNames }; + programCache[programId] = entry; + return entry; +} + +function getUniformLoc(cached, name) { + if (name in cached.uniformCache) return cached.uniformCache[name]; + const loc = gl.getUniformLocation(cached.program, name); + cached.uniformCache[name] = loc; + return loc; +} + +// ---- Kernel Dispatch ---- + +function dispatchKernel(msg) { + const { dispatchId, programId, source, varyingNames, totalVertices, dimX, dimY, dimZ, strides, outputs } = msg; + const kernelParams = msg.params; + + // Errors left by earlier GL calls: they used to be discarded here without a trace. A failed texture upload is recorded on its buffer + // (and refuses the dispatch that binds it, below); anything else is reported so it cannot hide. + const staleErrors = drainGlErrors(); + if (staleErrors.length > 0) console.error('[GLWorker] GL error(s) pending before dispatch ' + dispatchId + ': ' + staleErrors.join(', ')); + + // ---- Step 1: Get or compile program ---- + const cached = getOrCompileProgram(programId, source, varyingNames); + gl.useProgram(cached.program); + + // ---- ANGLE f64 workaround: set u_one = 1.0 ---- + const uOneLoc = getUniformLoc(cached, 'u_one'); + if (uOneLoc !== null) gl.uniform1f(uOneLoc, 1.0); + + // ---- Loop guard: every generated loop runs `_loopN < u_loopLimit` (GLSLCodeGenerator). A uniform so + // D3D's FXC cannot see a trip count (its loop analysis is superlinear in the body); int max so no + // real loop is ever cut short. Absent (null) when the shader has no loops. + const uLoopLimitLoc = getUniformLoc(cached, 'u_loopLimit'); + if (uLoopLimitLoc !== null) gl.uniform1i(uLoopLimitLoc, 2147483647); + + // ---- Step 2: Dimension uniforms ---- + const dimWLoc = getUniformLoc(cached, 'u_dimWidth'); + if (dimWLoc) gl.uniform1i(dimWLoc, dimX); + const dimHLoc = getUniformLoc(cached, 'u_dimHeight'); + if (dimHLoc) gl.uniform1i(dimHLoc, dimY); + + // Grid/group dimension uniforms (for Grid.IdxX/Y, Group.IdxX, Group.DimX) + const groupDimXLoc = getUniformLoc(cached, 'u_groupDimX'); + if (groupDimXLoc) gl.uniform1i(groupDimXLoc, msg.groupDimX || 1); + const gridDimXLoc = getUniformLoc(cached, 'u_gridDimX'); + if (gridDimXLoc) gl.uniform1i(gridDimXLoc, msg.gridDimX || 1); + const gridDimYLoc = getUniformLoc(cached, 'u_gridDimY'); + if (gridDimYLoc) gl.uniform1i(gridDimYLoc, msg.gridDimY || 1); + + // ---- Step 3: Bind parameters ---- + let textureUnit = 0; + const bufferParamMap = []; // Track which params map to which bufferIds + + // Resolve a param index to its uniform-name prefix. + // Direct param: paramIndex < 1000 -> "u_param{N}". + // Body-struct synthetic field: paramIndex >= 1000 -> "u_param{realN}_f{fi}" + // where realN = floor(paramIndex/1000)-1 and fi = paramIndex % 1000. Matches + // GLSLKernelFunctionGenerator.GetParamBindingName. + function resolveParamPrefix(paramIndex) { + if (paramIndex >= 1000) { + const realN = Math.floor(paramIndex / 1000) - 1; + const fi = paramIndex % 1000; + return 'u_param' + realN + '_f' + fi; + } + return 'u_param' + paramIndex; + } + + for (const p of kernelParams) { + if (p.kind === 'buffer_ref') { + // GPU-resident buffer — bind existing texture from registry + const entry = bufferRegistry[p.bufferId]; + if (!entry) throw new Error('Unknown bufferId: ' + p.bufferId); + if (entry.glError) + throw new Error('WebGL: buffer ' + p.bufferId + ' (kernel parameter ' + p.paramIndex + ') has no valid GPU texture (' + entry.glError + + '), so this kernel cannot read it. Too many large buffers alive at once? Dispose buffers that are no longer needed.'); + + const texUnit = textureUnit++; + const uniformPrefix = resolveParamPrefix(p.paramIndex); + const uniformLoc = getUniformLoc(cached, uniformPrefix); + + if (uniformLoc !== null) { + gl.activeTexture(gl.TEXTURE0 + texUnit); + gl.bindTexture(gl.TEXTURE_2D, entry.texture); + gl.uniform1i(uniformLoc, texUnit); + + // Tile width uniform + const tileWLoc = getUniformLoc(cached, uniformPrefix + '_tileW'); + if (tileWLoc) gl.uniform1i(tileWLoc, entry.width); + } + + // Element count uniform for GetViewLength support + if (p.elementCount !== undefined) { + const lenLoc = getUniformLoc(cached, uniformPrefix + '_length'); + if (lenLoc !== null) gl.uniform1i(lenLoc, p.elementCount | 0); + } + + // SubView element offset — added to texelFetch indices when buffer is a SubView. + // Always set the uniform (including 0) so a prior dispatch's non-zero value + // doesn't leak across dispatches. WebGL uniforms persist on the program object + // across draw calls; if the previous dispatch with the same kernel had + // elementOffset=N (non-zero), the next dispatch with elementOffset=0 would + // read at offset N. Surfaced 2026-05-04 by Data's StyleMosaic Gather + // first-divergent-node trace where node 55 Gather output was 0 on WebGL while + // matching WebGPU exactly through node 54 (which read SubView(0, ...) and + // set the offset uniform to 0 implicitly via default; subsequent ops that + // read SubView(non-zero, ...) leaked their offset back into Gather's read). + const offsetLoc = getUniformLoc(cached, uniformPrefix + '_offset'); + if (offsetLoc !== null) gl.uniform1i(offsetLoc, (p.elementOffset | 0)); + + // Stride uniforms for ArrayView2D/3D + if (strides && strides[p.paramIndex]) { + const dims = strides[p.paramIndex]; + const strideLoc = getUniformLoc(cached, uniformPrefix + '_stride[0]'); + if (strideLoc !== null) { + gl.uniform1iv(strideLoc, new Int32Array(dims)); + } + } + + bufferParamMap.push({ bufferId: p.bufferId, paramIndex: p.paramIndex }); + + } else if (p.kind === 'scalar') { + const uniformName = resolveParamPrefix(p.paramIndex); + const loc = getUniformLoc(cached, uniformName); + if (loc !== null) { + if (p.scalarType === 'int' || p.scalarType === 'bool' || p.scalarType === 'byte' + || p.scalarType === 'sbyte' || p.scalarType === 'short' || p.scalarType === 'ushort' + || p.scalarType === 'long') { + gl.uniform1i(loc, p.value | 0); + } else if (p.scalarType === 'uint' || p.scalarType === 'ulong') { + gl.uniform1ui(loc, p.value >>> 0); + } else if (p.scalarType === 'float' || p.scalarType === 'double') { + gl.uniform1f(loc, _bitsToFloat(p.value)); // value is the float's int32 bit pattern + } else { + console.warn('[GLWorker] Unknown scalar type:', p.scalarType, 'param:', p.paramIndex); + } + } + } else if (p.kind === 'scalar_emu64') { + const emuPrefix = resolveParamPrefix(p.paramIndex); + const loLoc = getUniformLoc(cached, emuPrefix + '_lo'); + const hiLoc = getUniformLoc(cached, emuPrefix + '_hi'); + if (loLoc !== null) gl.uniform1ui(loLoc, p.lo >>> 0); + if (hiLoc !== null) gl.uniform1ui(hiLoc, p.hi >>> 0); + } else if (p.kind === 'struct') { + for (const f of p.fields) { + const fieldLoc = getUniformLoc(cached, 'u_param' + p.paramIndex + '.' + f.path); + if (fieldLoc !== null) { + if (f.scalarType === 'int' || f.scalarType === 'bool') { + gl.uniform1i(fieldLoc, f.value | 0); + } else if (f.scalarType === 'uint') { + gl.uniform1ui(fieldLoc, f.value >>> 0); + } else { + gl.uniform1f(fieldLoc, _bitsToFloat(f.value)); // float field: int32 bit pattern + } + } + } + } + } + + // ---- Step 4: Transform Feedback setup ---- + let tfBuffer = null; + let transformFeedback = null; + // from the program cache: the message carries varying names with the program's first dispatch only + const vNames = cached.varyingNames || []; + + if (vNames.length > 0) { + const tfFloatCount = totalVertices * vNames.length; + const tfByteSize = tfFloatCount * 4; + + if (!cachedTFBuffer || cachedTFBufferSize < tfByteSize) { + if (cachedTFBuffer) gl.deleteBuffer(cachedTFBuffer); + cachedTFBuffer = gl.createBuffer(); + cachedTFBufferSize = tfByteSize; + gl.bindBuffer(gl.TRANSFORM_FEEDBACK_BUFFER, cachedTFBuffer); + gl.bufferData(gl.TRANSFORM_FEEDBACK_BUFFER, tfByteSize, gl.DYNAMIC_READ); + } else { + gl.bindBuffer(gl.TRANSFORM_FEEDBACK_BUFFER, cachedTFBuffer); + } + tfBuffer = cachedTFBuffer; + + if (!cachedTFObject) { + cachedTFObject = gl.createTransformFeedback(); + } + transformFeedback = cachedTFObject; + gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, transformFeedback); + gl.bindBufferBase(gl.TRANSFORM_FEEDBACK_BUFFER, 0, tfBuffer); + } + + // ---- Step 5: Dispatch via DrawArrays ---- + if (!cachedDummyVAO) { + cachedDummyVAO = gl.createVertexArray(); + } + gl.bindVertexArray(cachedDummyVAO); + + if (!cachedDummyVBO || cachedDummyVBOSize < totalVertices * 4) { + if (cachedDummyVBO) gl.deleteBuffer(cachedDummyVBO); + cachedDummyVBO = gl.createBuffer(); + cachedDummyVBOSize = totalVertices * 4; + gl.bindBuffer(gl.ARRAY_BUFFER, cachedDummyVBO); + gl.bufferData(gl.ARRAY_BUFFER, cachedDummyVBOSize, gl.STATIC_DRAW); + gl.enableVertexAttribArray(0); + gl.vertexAttribPointer(0, 1, gl.FLOAT, false, 0, 0); + } else { + gl.bindBuffer(gl.ARRAY_BUFFER, cachedDummyVBO); + } + + gl.enable(gl.RASTERIZER_DISCARD); + if (transformFeedback) gl.beginTransformFeedback(gl.POINTS); + gl.drawArrays(gl.POINTS, 0, totalVertices); + if (transformFeedback) gl.endTransformFeedback(); + gl.disable(gl.RASTERIZER_DISCARD); + // A draw that FAILED wrote nothing, and its transform feedback buffer reads back as "no store site stored", so every output kept + // its old value and the dispatch looked successful (DeviceVectorIndex scores: all the fresh buffer's zeros, 2026-11-01). + const drawErrors = drainGlErrors(); + + // Unbind TF before readback (WebGL2 spec requirement) + if (transformFeedback) { + gl.bindBufferBase(gl.TRANSFORM_FEEDBACK_BUFFER, 0, null); + gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, null); + } + + // ---- Step 6: TF Readback → update GPU-resident buffers ---- + // A readback that refuses the dispatch (a store site with two elements, an address out of bounds) must still + // finish the GL state below: the error used to skip it, the TF buffer stayed bound, and the NEXT dispatch read this + // dispatch's records (StoreAddress_OffSlotStore after StoreAddress_OneSiteManyElements). + let readbackError = null; + if (drawErrors.length > 0) { + const src = cached.source || ''; + const bound = bufferParamMap.map(function (b) { + const e = bufferRegistry[b.bufferId]; + const m = src.match(new RegExp('uniform\\s+(?:highp\\s+|mediump\\s+|lowp\\s+)?(\\w*sampler2D)\\s+' + resolveParamPrefix(b.paramIndex) + '\\s*;')); + return resolveParamPrefix(b.paramIndex) + ': ' + (m ? m[1] : '?') + ' over ' + (e ? (e.glslType || 'float') + ' ' + e.width + 'x' + e.height : 'no buffer'); + }); + readbackError = new Error('WebGL: the kernel draw failed (' + drawErrors.join(', ') + ' over ' + totalVertices + ' vertices); its results were not written. ' + + 'Bound buffers (shader sampler over texture format): ' + bound.join('; ')); + } + if (!readbackError && tfBuffer && vNames.length > 0 && outputs && outputs.length > 0) { + // gl.finish() blocks until all submitted GL commands (including TF) complete. + // Note: ANGLE emits a cosmetic "READ-usage buffer" warning here because it + // doesn't track gl.finish() as a fence. This warning is harmless — the GPU + // has completed all writes before we read. Using async fenceSync would + // eliminate the warning but adds unacceptable scheduling overhead for + // real-time rendering (~4-50ms per dispatch). + gl.finish(); + + gl.bindBuffer(gl.TRANSFORM_FEEDBACK_BUFFER, tfBuffer); + const tfElemCount = totalVertices * vNames.length; + // Read as raw bytes via Uint8Array — passing Float32Array as the destination + // makes Chrome canonicalize specific bit patterns through the float view + // (observed 2026-05-04: writing 0x80000000u via TF reads back as 0x80000001 + // when getBufferSubData destination is Float32Array; Uint8Array preserves + // the bit pattern exactly). Tests23_BareUintShift / NormalizeShape_BareCondition + // surfaced this — see _DevComms/SpawnDev.ILGPU. + const readbackBytes = new Uint8Array(tfElemCount * 4); + gl.getBufferSubData(gl.TRANSFORM_FEEDBACK_BUFFER, 0, readbackBytes); + const readbackFloat = new Float32Array(readbackBytes.buffer); + const varyingCount = vNames.length; + const strideBytes = varyingCount * 4; + + // Set of bufferIds that were modified (need texture re-upload) + const modifiedBufferIds = new Set(); + + // The element vertex v's store of output `out` targets, or -1 when that store site did not store in v. A store + // site's value lands at its group base + siteConst (GLSLKernelFunctionGenerator.EmitStoreAddressVaryings); a + // varying without a base (baseIndex < 0) is the vertex's own element (slot within a positional record). + // Plans/webgl-store-addresses-2026-10-26.md: before this every value landed at the vertex's own element. + const int32All = new Int32Array(readbackBytes.buffer); + const strideWords = varyingCount; + // Elements a dispatch does not store keep the values in the CPU mirror, which is then re-uploaded whole: a + // mirror a scatter left stale must be read back first, or that upload would revert the scatter's results. + for (let oi = 0; oi < outputs.length; oi++) { + if (!outputs[oi].isAtomicVote) ensureCpuFresh(bufferRegistry[outputs[oi].bufferId]); + } + function storeElement(out, v, elemCount) { + if (out.baseIndex < 0) { + const own = v * (out.storeCount || 1) + (out.storeSlot >= 0 ? out.storeSlot : 0); + return own < elemCount ? own : -1; + } + if ((int32All[v * strideWords + out.maskIndex] & out.maskBit) === 0) return -1; + const base = int32All[v * strideWords + out.baseIndex]; + if (base === -2) + throw new Error('WebGL: a store site of output ' + out.varyingName + ' wrote two different elements in one thread (vertex ' + v + + '). Transform feedback captures one element per store site per thread; a kernel that scatters several elements from one store needs WebGPU/Wasm/desktop (AcceleratorRequirements.RequiresScatterStores).'); + const e = base + out.siteConst; + if (e < 0 || e >= elemCount) + throw new Error('WebGL: output ' + out.varyingName + ' stored element ' + e + ' outside its view of ' + elemCount + ' elements (vertex ' + v + ')'); + return e; + } + + try { + for (let oi = 0; oi < outputs.length; oi++) { + const out = outputs[oi]; + + // Atomic vote: each thread emitted its increment amount; sum all and add to buffer[element]. + // This emulates Atomic.Add without true GPU atomics (WebGL2 vertex shader limitation). + if (out.isAtomicVote) { + const entry = bufferRegistry[out.bufferId]; + if (!entry) continue; + const destView = entry.data; + const writeOffset = out.writeByteOffset; + // Sum all per-vertex vote values (stored as int in the TF buffer) + const int32TF = new Int32Array(readbackFloat.buffer); + let sum = 0; + for (let v = 0; v < totalVertices; v++) { + sum += int32TF[(v * strideBytes + out.outputIndex * 4) >> 2]; + } + // Accumulate (not replace) the target buffer element using Int32 arithmetic + const destInt32 = new Int32Array(destView.buffer); + const destIdx = writeOffset >> 2; + destInt32[destIdx] = destInt32[destIdx] + sum; + modifiedBufferIds.add(out.bufferId); + continue; + } + + // Skip 'hi' emulated varyings (read with their 'lo' counterpart) + if (out.isEmulated && out.emulatedSuffix === 'hi') continue; + + // Find the registry entry for this output + const entry = bufferRegistry[out.bufferId]; + if (!entry) continue; + const destView = entry.data; + const writeOffset = out.writeByteOffset; + + if (out.fieldIndex >= 0) { + // Struct field output - either a plain scalar field, or the 'lo' half of a + // 64-bit emulated field ('hi' halves were already skipped above). Checked + // BEFORE the plain isEmulated/'lo' branch below because a struct field's + // lo varying also has isEmulated=true, but must NOT go through the flat + // (non-struct) 8-bytes-per-vertex reconstruction - it's one field of a + // larger per-vertex struct record, at its own byte offset within it. + // + // Run the whole-struct reconstruction exactly once, triggered by the first + // (lowest outputIndex) struct-field varying for this param. + const structVaryings = outputs.filter(o => o.paramIndex === out.paramIndex && o.fieldIndex >= 0); + if (structVaryings[0].outputIndex !== out.outputIndex) continue; + + // One representative varying per logical field (its 'lo' half for an + // emulated 64-bit field, the field itself otherwise), in field order. Each + // carries the field's REAL byte offset and size inside the element and the + // element size, from ILGPU's struct layout (GLSLKernelFunctionGenerator + // StructLeaf) - alignment padding included, so { int; long; } puts the long at + // byte 8. Only the field's own bytes are written: a sub-4-byte field copies the + // low bytes of its 32-bit varying and never touches its neighbours. + const maxFieldIndex = Math.max(...structVaryings.map(o => o.fieldIndex)); + const fieldsInOrder = []; + for (let f = 0; f <= maxFieldIndex; f++) { + const forField = structVaryings.filter(o => o.fieldIndex === f); + fieldsInOrder.push(forField.find(o => o.emulatedSuffix === 'lo') || forField[0]); + } + const fieldByteWidths = fieldsInOrder.map(o => o.fieldByteSize); + const structElemSize = fieldsInOrder[0].structByteSize; + const fieldByteOffsets = fieldsInOrder.map(o => o.fieldByteOffset); + + const viewElems = Math.floor(out.writeLengthBytes / structElemSize); + for (let v = 0; v < totalVertices; v++) { + const e = storeElement(fieldsInOrder[0], v, viewElems); + if (e < 0) continue; + for (let fi = 0; fi < fieldsInOrder.length; fi++) { + const fieldOut = fieldsInOrder[fi]; + const dstOff = writeOffset + e * structElemSize + fieldByteOffsets[fi]; + const srcOff = v * strideBytes + fieldOut.outputIndex * 4; + if (srcOff + 4 > readbackBytes.length) continue; + const loBytes = Math.min(fieldByteWidths[fi], 4); + for (let b = 0; b < loBytes; b++) destView[dstOff + b] = readbackBytes[srcOff + b]; + if (fieldByteWidths[fi] === 8) { + const hiSrc = v * strideBytes + (fieldOut.outputIndex + 1) * 4; + destView[dstOff + 4] = readbackBytes[hiSrc]; + destView[dstOff + 5] = readbackBytes[hiSrc + 1]; + destView[dstOff + 6] = readbackBytes[hiSrc + 2]; + destView[dstOff + 7] = readbackBytes[hiSrc + 3]; + } + } + } + } else if (out.isEmulated && out.emulatedSuffix === 'lo') { + // A thread that stores MULTIPLE emulated-64-bit elements into this buffer + // (positional multi-store, e.g. digest[base+0..3] = o0..o3, each 8 bytes) gets + // one lo/hi varying PAIR per slot (EmitOutputVaryings' emuStoreCount branch) - + // place each slot at its own offset within the per-vertex record instead of + // always writeOffset + v*8 (which only ever wrote slot 0's storage location, + // repeatedly, for every slot - the actual root cause of the "Compress ref + // write-back" symptom: every store after the first silently overwrote the same + // 8 bytes, so only the LAST store's value ever reached the host, discovered and + // fixed 2026-09-22 with a minimal repro that reproduced it standalone, no ref + // params or fn-def calls needed at all). + const hiOutIdx = out.outputIndex + 1; + const viewElems = Math.floor(out.writeLengthBytes / 8); + for (let v = 0; v < totalVertices; v++) { + const e = storeElement(out, v, viewElems); + if (e < 0) continue; + const loSrc = v * strideBytes + out.outputIndex * 4; + const hiSrc = v * strideBytes + hiOutIdx * 4; + const dst = writeOffset + e * 8; + destView[dst] = readbackBytes[loSrc]; + destView[dst + 1] = readbackBytes[loSrc + 1]; + destView[dst + 2] = readbackBytes[loSrc + 2]; + destView[dst + 3] = readbackBytes[loSrc + 3]; + destView[dst + 4] = readbackBytes[hiSrc]; + destView[dst + 5] = readbackBytes[hiSrc + 1]; + destView[dst + 6] = readbackBytes[hiSrc + 2]; + destView[dst + 7] = readbackBytes[hiSrc + 3]; + } + } else if (out.fieldIndex < 0) { + + // Sub-word packing: TF outputs one i32 per element, but the destination + // buffer stores packed sub-word values (e.g. 2 shorts per i32). + // Pack by reading each TF i32 and writing only the sub-word portion. + if (out.subWordElementSize && out.subWordElementSize < 4) { + const swSize = out.subWordElementSize; + const viewElems = Math.floor(out.writeLengthBytes / swSize); + for (let v = 0; v < totalVertices; v++) { + const e = storeElement(out, v, viewElems); + if (e < 0) continue; + const srcIdx = (v * strideBytes + out.outputIndex * 4) >> 2; + const val = int32All[srcIdx]; + const dstOff = writeOffset + e * swSize; + if (swSize === 2) { + // Pack as 16-bit (little-endian) + destView[dstOff] = val & 0xFF; + destView[dstOff + 1] = (val >> 8) & 0xFF; + } else if (swSize === 1) { + destView[dstOff] = val & 0xFF; + } + } + } else if (out.baseIndex < 0 && (out.storeCount || 1) === 1 && ((destView.byteOffset + writeOffset) & 3) === 0) { + // Vertex v's value is element v (an own-element output, GLSLKernelFunctionGenerator + // _ownElementOutputs): one typed copy instead of a per-element call and four byte copies, + // which cost as much as the readback itself (WebGL 1.4M radix sort: 5.7 s of 800 dispatches). + const n = Math.min(totalVertices, Math.floor(out.writeLengthBytes / 4)); + const dst32 = new Int32Array(destView.buffer, destView.byteOffset + writeOffset, n); + if (strideWords === 1) dst32.set(int32All.subarray(0, n)); + else { + const o = out.outputIndex; + for (let v = 0; v < n; v++) dst32[v] = int32All[v * strideWords + o]; + } + } else { + const viewElems = Math.floor(out.writeLengthBytes / 4); + for (let v = 0; v < totalVertices; v++) { + const e = storeElement(out, v, viewElems); + if (e < 0) continue; + const srcOff = v * strideBytes + out.outputIndex * 4; + const dstOff = writeOffset + e * 4; + if (srcOff + 4 <= readbackBytes.length) { + destView[dstOff] = readbackBytes[srcOff]; + destView[dstOff + 1] = readbackBytes[srcOff + 1]; + destView[dstOff + 2] = readbackBytes[srcOff + 2]; + destView[dstOff + 3] = readbackBytes[srcOff + 3]; + } + } + } + } + + modifiedBufferIds.add(out.bufferId); + } + + } catch (err) { + readbackError = err; + } + gl.bindBuffer(gl.TRANSFORM_FEEDBACK_BUFFER, null); + + // Re-upload modified buffers to their GPU textures (GPU-resident update; also after a refused readback, so + // the CPU mirror and the texture agree) + for (const bid of modifiedBufferIds) { + const entry = bufferRegistry[bid]; + if (entry) { + uploadTextureData(entry.texture, entry); + } + } + + } + + gl.useProgram(null); + // A context lost DURING the dispatch (driver reset, GPU hang) reads back an all-zero transform feedback buffer: no + // store-site bit set, so every element kept its old value and the dispatch looked successful (SpawnDev.Codecs + // VorbisResidueAccumulateGpu_Type2: target came back untouched, nothing refused). The webglcontextlost event comes + // later, asynchronously; isContextLost() is the synchronous answer. + if (!readbackError && gl.isContextLost()) + readbackError = new Error('WebGL: the context was lost during this dispatch (GPU reset or driver crash); its results were not written.'); + if (readbackError) throw readbackError; + + // No ArrayBuffer transfers — data stays GPU-resident in the worker + return { + message: { done: true, dispatchId }, + transferList: [] + }; +} + +// ---- ImageBitmap blit ---- +// Creates an ImageBitmap from an RGBA pixel buffer and transfers it to the main thread. +// The browser compositor manages the bitmap as a GPU texture — no pixel copy on transfer. +function handleBlitBuffer(msg) { + const { bufferId, width, height, requestId } = msg; + const entry = bufferRegistry[bufferId]; + if (!entry) { + self.postMessage({ type: 'blitResult', requestId, error: 'unknown bufferId' }); + return; + } + // entry.data is always current after dispatch (TF readback keeps it in sync). + // Wrap as Uint8ClampedArray for ImageData — no copy, just a typed view. + const rgba = new Uint8ClampedArray(entry.data.buffer, 0, width * height * 4); + const imageData = new ImageData(rgba, width, height); + createImageBitmap(imageData).then(function(bitmap) { + self.postMessage({ type: 'blitResult', requestId, bitmap }, [bitmap]); + }).catch(function(err) { + self.postMessage({ type: 'blitResult', requestId, error: err.message }); + }); +} diff --git a/_content/SpawnDev.ILGPU/webgpuDispatchPlan.js b/_content/SpawnDev.ILGPU/webgpuDispatchPlan.js new file mode 100644 index 0000000000000000000000000000000000000000..a159438713f307dcf614e188ba8a05f75749ed20 --- /dev/null +++ b/_content/SpawnDev.ILGPU/webgpuDispatchPlan.js @@ -0,0 +1,408 @@ +'use strict'; +// SpawnDev.ILGPU WebGPU dispatch-plan replay helper (loaded on demand via dynamic import of +// _content/SpawnDev.ILGPU/webgpuDispatchPlan.js - the glWorker.js static-asset pattern). +// +// A dispatch plan is a flat JS array of 7-element tagged records: +// [0, pipeline, bindGroup, x, y, z, submitAfter] - compute dispatch (submitAfter 1 = end the +// command buffer right after it: the NVIDIA +// large-function-array WORKAROUND, +// https://github.com/LostBeard/SpawnDev.ILGPU/issues/10) +// [1, srcBuffer, srcOffset, dstBuffer, dstOffset, size, 0] - copyBufferToBuffer +// [2, buffer, offset, size, 0, 0, 0] - clearBuffer (zero-fill) +// It is recorded ONCE by WebGPUDispatchPlan during a capture forward (the plan array holding the +// GPU objects is what keeps them alive - .NET-side wrapper disposal is irrelevant), then replayed +// here with a SINGLE .NET->JS interop crossing per forward: this loop re-encodes every operation +// into one command encoder in pure JS (microseconds per entry) and submits one command buffer. +// This is the browser twin of CUDA graph replay - WebGPU has no graph API, but the command encoder +// IS the graph recorder, and WebGPU guarantees ordering with implicit synchronization between +// passes/copies on the same queue. +(() => { + // Bind-group cache generation size (per device). Two generations: a lookup that misses the current one but hits the + // previous one promotes the group; when the current generation passes this size it becomes the previous one and the + // old previous one is dropped. So a group used at least once per generation is never dropped, while groups of a + // shape no longer in use age out. MEASURED 2026-10-02 (Anaglyphohol DAv3 video): one input shape is ~2.8k distinct + // groups, but the adaptive depth level cycles through many shapes (55k groups in all) - a single map cleared at a + // cap kept dropping the hot shape (20% hits); with generations the hot shapes stay. + const BG_GEN_MAX = 8192; + const api = { + // JS-side timing of the most recent replay() call on this page: encodeMs = the re-encode + // loop (createCommandEncoder .. last op), submitMs = enc.finish() + queue.submit(). GPU + // EXECUTION is not included - it completes asynchronously after submit (await + // onSubmittedWorkDone / SynchronizeAsync for that). Reading performance.now() is ~free, + // so this records unconditionally; .NET fetches it on demand only. + last: { ops: 0, encodeMs: 0, submitMs: 0 }, + // Per-device staging buffer for submitBatch's ordered host uploads (tag 4). Grows, never shrinks. + _staging: new WeakMap(), + // Per-device bind-group cache for submitBatch (api.bindGroupReuse): key = layout id + every entry's + // (binding, buffer id, offset, size) -> GPUBindGroup, in two generations of up to BG_GEN_MAX (see there), so a + // workload whose buffers churn costs a bounded amount of memory. bgHits/bgMisses are cumulative counters. + _bindGroups: new WeakMap(), + bgHits: 0, + bgMisses: 0, + bgDrops: 0, // generations started (first use per device, then one per rotation) + bgLastKey: '', // the most recent miss's key (diagnostic) + // ── Interop cost probes ───────────────────────────────────────────────────────────────── + // These do NOTHING on purpose. device.createBindGroup measured 1.14 ms per call in a Kokoro + // pass (2,117 ms of 2,128 ms of the whole bind-group phase), and "1.14 ms" has three possible + // owners with three different fixes: the .NET->JS crossing itself, MARSHALLING the descriptor + // (its members are walked and rebuilt as a JS object per call - a layout reference, an entries + // array, and a nested resource object per entry - so the cost scales with members), or Dawn's + // own validation. A no-op crossing brackets the first; a no-op crossing that still marshals the + // descriptor brackets the first two; whatever the real call costs beyond that is Dawn's. + // noopDescriptor touches .entries.length so the marshalled object cannot be optimised away. + noop(x) { return x | 0; }, + // WebGPUBackend.BatchSinglePass -> submitBatch (see there). Set from C# when the switch changes. + setSinglePass(v) { api.singlePass = !!v; return 0; }, + // WebGPUBackend.BatchBindGroupReuse -> submitBatch's bind-group cache. Turning it off drops every cached group. + setBindGroupReuse(v) { api.bindGroupReuse = !!v; if (!api.bindGroupReuse) api._bindGroups = new WeakMap(); return 0; }, + // DIAGNOSTIC ABLATION (WebGPUBackend.DiagSubmitAblation; results are garbage while set): 2 = skip createBindGroup + // + the dispatch encode, 3 = return without doing anything. (A "skip only the scalar writes" mode ran every + // kernel on stale loop bounds and HUNG the GPU - DXGI_ERROR_DEVICE_HUNG; 2 vs 3 measures the writes safely.) + setAblation(v) { api.ablation = v | 0; return 0; }, + noopDescriptor(desc) { return desc && desc.entries ? desc.entries.length : 0; }, + + // The SpawnJS instance whose wasm heap submitHeader reads (C# passes SpawnJSRuntime.DotnetInstance.Id once). + // getHeap() returns the CURRENT heap buffer - it re-fetches it after memory growth detached the old one. + setHeapSource(dotnetId) { api._heapInst = globalThis.SpawnJSInterop.getInstace(dotnetId); return 0; }, + // The batch submit's entry from WebGPUStream.SubmitBatch: ONE number crosses - the heap address of a pinned + // Float64 header - and everything else is read from the wasm heap here: + // [0] device id [1] records addr [2] record count [3] data addr [4] data byte length + // [5] maxPassesPerSubmit [6] upload bytes [7..10] arenaR id, bytes, arenaW id, bytes + // [11] single pass (0/1) [12] ablation [13] bind-group reuse (0/1) + // The records and data arrays are pinned C# arrays (never moved), so views over the heap at their + // addresses ARE the arrays - nothing is copied and no HeapView object is created per submit. + submitHeader(hdrAddr) { + const heap = api._heapInst.getHeap(); + const h = new Float64Array(heap, hdrAddr, 14); + api.singlePass = h[11] !== 0; + api.ablation = h[12] | 0; + const reuse = h[13] !== 0; + if (reuse !== (api.bindGroupReuse !== false)) api.setBindGroupReuse(reuse); + const device = globalThis.SpawnJSInterop.spawnJSObjects[h[0]]; + if (!device) throw new Error(`ilgpuWebGPUPlan.submitHeader: device (SpawnJS id ${h[0]}) is not held`); + const n = h[2]; + const rec = new Float64Array(heap, h[1], n); + const data = new Uint8Array(heap, h[3], h[4]); + return api.submitBatch(device, rec, n, data, h[5], h[6], h[7], h[8], h[9], h[10]); + }, + + // Rewrite the dstOffset (slot [i*7+4]) of copy entries in place - the patch surface for + // parameterized replay (e.g. a KV-cache append whose destination row advances per decode + // token). Entries must be tag-1 copies; throws otherwise (a wrong index would silently + // corrupt a dispatch record). + patchCopyDst(plan, entryIndices, newDstOffsets) { + for (let k = 0; k < entryIndices.length; k++) { + const i = entryIndices[k] * 7; + if (plan[i] !== 1) throw new Error(`patchCopyDst: entry ${entryIndices[k]} is tag ${plan[i]}, not a copy`); + plan[i + 4] = newDstOffsets[k]; + } + }, + // Submits the accelerator's PLAIN (uncaptured) dispatch batch: WebGPUStream appends numeric + // records while kernels are dispatched and hands the whole batch over in ONE crossing here, where + // the bind groups are created and every op is encoded. Every GPU object is named by its SpawnJS + // hold id and resolved from SpawnJSInterop.spawnJSObjects, so no descriptor is ever marshalled - + // SpawnJS builds a nested .NET object one property Set per member, ~40 crossings for a bind-group + // descriptor, which is what made createBindGroup the largest host cost of a graph forward. + // Records (Float64Array `rec`, first `n` values): + // [0, pipelineId, layoutId, nEntries, x, y, z, (binding, bufferId, offset, size) * nEntries] + // [1, srcId, srcOffset, dstId, dstOffset, size] copyBufferToBuffer + // [2, bufferId, offset, size] clearBuffer + // [3, bufferId, bufferOffset, dataOffset, size] queue.writeBuffer from `data` (Uint8Array) + // [4, bufferId, bufferOffset, dataOffset, size] ORDERED host upload: copyBufferToBuffer from the + // staging copy of `data`, encoded in record order + // A tag-3 write is issued when it is reached, so it precedes the submit of the command buffer holding + // the dispatch that reads it - the same order as the per-dispatch path (write now, submit later). It + // is only for buffers the batch alone uses (per-dispatch scalar/stride/lock buffers). + // A tag-4 upload targets an ordinary buffer that earlier records in the batch may still read, so it + // must land exactly where it sits in the batch: `data` is written ONCE into a persistent staging + // buffer and each upload is a copyBufferToBuffer in record order. Reusing the staging buffer across + // batches is safe because queue.writeBuffer executes after all previously submitted work. + // Command buffers are split every maxPassesPerSubmit dispatches (see replay() for why). + // SCALAR ARENAS (WebGPUBackend.BatchScalarArena): the batch's per-dispatch scalars are 256-byte slots of two + // arena buffers (arenaRId: read-only bindings, arenaWId: read_write struct scalars; 0 = unused). Their used + // prefixes are the LAST arenaRBytes + arenaWBytes bytes of `data` and are written FIRST, before any command + // buffer of this batch is submitted - every slot is used once per batch, so one write per arena is exact. + // BIND-GROUP REUSE (api.bindGroupReuse): a bind group is immutable and SpawnJS hold ids are never reused, so + // two dispatch records with equal layout + entries can share one; with the arenas the keys repeat every frame. + // ONE COMPUTE PASS FOR A RUN OF DISPATCHES (api.singlePass, set from WebGPUBackend.BatchSinglePass - default + // true): consecutive dispatch records share an open pass; it is ended before an encoder-level command (copy, + // clear, upload) and at every submit, and setPipeline is skipped when the pipeline repeats. Ordering is the + // spec's, not ours: every dispatch in a compute pass is its OWN usage scope, so a storage write by one dispatch + // is visible to the next exactly as across passes - the implementation inserts the barrier. What a pass per + // dispatch added was a beginComputePass/end pair (and a fresh pass state) for each of ~800 dispatches a frame. + // Returns the number of records processed. + submitBatch(device, rec, n, data, maxPassesPerSubmit, uploadBytes, arenaRId, arenaRBytes, arenaWId, arenaWBytes) { + const ablation = api.ablation | 0; + if (ablation === 3) return 0; + const objs = globalThis.SpawnJSInterop.spawnJSObjects; + const obj = (id, what, at) => { + const o = objs[id]; + if (o === undefined || o === null) + throw new Error(`ilgpuWebGPUPlan.submitBatch: ${what} (SpawnJS id ${id}) at record ${at} is not held - it was disposed while a dispatch still referenced it`); + return o; + }; + const cap = (maxPassesPerSubmit > 0) ? (maxPassesPerSubmit | 0) : 0x7fffffff; + const queue = device.queue; + let staging = null; + if (uploadBytes > 0) { + staging = api._staging.get(device); + if (!staging || staging.size < uploadBytes) { + if (staging) staging.destroy(); // its last readers were submitted; destroy waits for them + let size = 65536; + while (size < uploadBytes) size *= 2; + staging = device.createBuffer({ label: 'ilgpu-batch-upload-staging', size, usage: GPUBufferUsage.COPY_SRC | GPUBufferUsage.COPY_DST }); + api._staging.set(device, staging); + } + queue.writeBuffer(staging, 0, data, 0, uploadBytes); + } + const arenaOff = data.length - (arenaRBytes | 0) - (arenaWBytes | 0); + if (arenaRBytes > 0) queue.writeBuffer(obj(arenaRId, 'scalar arena', -1), 0, data, arenaOff, arenaRBytes); + if (arenaWBytes > 0) queue.writeBuffer(obj(arenaWId, 'scalar arena (read_write)', -1), 0, data, arenaOff + arenaRBytes, arenaWBytes); + let bgCache = null; + if (api.bindGroupReuse !== false) { + bgCache = api._bindGroups.get(device); + if (!bgCache) { bgCache = { cur: new Map(), prev: new Map() }; api._bindGroups.set(device, bgCache); api.bgDrops++; } + else if (bgCache.cur.size > BG_GEN_MAX) { bgCache.prev = bgCache.cur; bgCache.cur = new Map(); api.bgDrops++; } + } + const single = api.singlePass !== false; + let enc = null, passes = 0, ops = 0; + let pass = null, passPipeline = null; + const endPass = () => { if (pass !== null) { pass.end(); pass = null; passPipeline = null; } }; + for (let i = 0; i < n; ops++) { + const tag = rec[i]; + if (tag === 0 && ablation === 2) { + i += 7 + 4 * rec[i + 3]; + } else if (tag === 0) { + const ne = rec[i + 3]; + const j0 = i + 7, jEnd = j0 + 4 * ne; + let bindGroup, key; + if (bgCache !== null) { + key = '' + rec[i + 2]; + for (let j = j0; j < jEnd; j++) key += ',' + rec[j]; + bindGroup = bgCache.cur.get(key); + if (bindGroup === undefined) { + bindGroup = bgCache.prev.get(key); + if (bindGroup !== undefined) bgCache.cur.set(key, bindGroup); + } + } + if (bindGroup === undefined) { + const entries = new Array(ne); + for (let e = 0, j = j0; e < ne; e++, j += 4) + entries[e] = { binding: rec[j], resource: { buffer: obj(rec[j + 1], 'buffer', i), offset: rec[j + 2], size: rec[j + 3] } }; + bindGroup = device.createBindGroup({ layout: obj(rec[i + 2], 'bind group layout', i), entries }); + if (bgCache !== null) { bgCache.cur.set(key, bindGroup); api.bgMisses++; api.bgLastKey = key; } + } else api.bgHits++; + const j = jEnd; + if (enc === null) enc = device.createCommandEncoder(); + const pipeline = obj(rec[i + 1], 'pipeline', i); + if (single) { + if (pass === null) pass = enc.beginComputePass(); + if (pipeline !== passPipeline) { pass.setPipeline(pipeline); passPipeline = pipeline; } + pass.setBindGroup(0, bindGroup); + pass.dispatchWorkgroups(rec[i + 4], rec[i + 5], rec[i + 6]); + } else { + const p1 = enc.beginComputePass(); + p1.setPipeline(pipeline); + p1.setBindGroup(0, bindGroup); + p1.dispatchWorkgroups(rec[i + 4], rec[i + 5], rec[i + 6]); + p1.end(); + } + i = j; + if (++passes >= cap) { endPass(); queue.submit([enc.finish()]); enc = null; passes = 0; } + } else if (tag === 1) { + endPass(); + if (enc === null) enc = device.createCommandEncoder(); + enc.copyBufferToBuffer(obj(rec[i + 1], 'copy source', i), rec[i + 2], obj(rec[i + 3], 'copy destination', i), rec[i + 4], rec[i + 5]); + i += 6; + } else if (tag === 2) { + endPass(); + if (enc === null) enc = device.createCommandEncoder(); + enc.clearBuffer(obj(rec[i + 1], 'clear target', i), rec[i + 2], rec[i + 3]); + i += 4; + } else if (tag === 3) { + queue.writeBuffer(obj(rec[i + 1], 'write target', i), rec[i + 2], data, rec[i + 3], rec[i + 4]); + i += 5; + } else if (tag === 4) { + endPass(); + if (enc === null) enc = device.createCommandEncoder(); + enc.copyBufferToBuffer(staging, rec[i + 3], obj(rec[i + 1], 'upload target', i), rec[i + 2], rec[i + 4]); + i += 5; + } else { + throw new Error(`ilgpuWebGPUPlan.submitBatch: bad record tag ${tag} at ${i}`); + } + } + endPass(); + if (enc !== null) queue.submit([enc.finish()]); + return ops; + }, + + // Replays a recorded plan on the given device: one pass per dispatch (pass-per-dispatch keeps + // storage-buffer write->read ordering guarantees airtight), copies/clears encoded inline in + // captured order, submitted in BATCHES of maxPassesPerSubmit compute passes. + // Returns the number of operations encoded. + // + // 🔴 WHY THIS BATCHES INSTEAD OF SUBMITTING ONCE. It used to encode the whole plan into a + // single command encoder and issue one queue.submit(). That is fine for a small plan and it + // LOSES THE DEVICE for a large one: MEASURED 2026-09-15, Kokoro at input_ids[1,360] replayed + // and Chrome came back "WebGPU device has been lost and cannot accept commands" - the GPU + // watchdog killing a single command buffer that ran too long. A 35-token Kokoro plan is + // already 3,155 dispatches; the 360-token one is several times that, in ONE buffer, with no + // point at which the driver can preempt. + // + // The uncaptured path never had this problem because WebGPUStream flushes as it goes - the + // library's own documented rule is "if dispatching many kernels (>50), call Flush() every + // 16-32 dispatches". Capture replay was the one path that ignored it. Splitting into several + // command buffers changes nothing about ordering: buffers submitted to the same queue execute + // in submission order, and the implicit inter-pass synchronization is per-queue, not + // per-buffer. + replay(device, plan, maxPassesPerSubmit) { + const t0 = performance.now(); + const cap = (maxPassesPerSubmit > 0) ? (maxPassesPerSubmit | 0) : 0x7fffffff; + const n = plan.length; + let enc = device.createCommandEncoder(); + let passesInBatch = 0; + let submitMs = 0; + const flush = () => { + const s0 = performance.now(); + device.queue.submit([enc.finish()]); + submitMs += performance.now() - s0; + passesInBatch = 0; + }; + for (let i = 0; i < n; i += 7) { + const tag = plan[i]; + if (tag === 0) { + const pass = enc.beginComputePass(); + pass.setPipeline(plan[i + 1]); + pass.setBindGroup(0, plan[i + 2]); + pass.dispatchWorkgroups(plan[i + 3], plan[i + 4], plan[i + 5]); + pass.end(); + // Close the batch only BETWEEN operations, never inside a pass. A dispatch marked submitAfter + // (WORKAROUND, issue #10) must not share its command buffer with anything after it. + ++passesInBatch; + if (plan[i + 6] === 1 || passesInBatch >= cap) { + flush(); + enc = device.createCommandEncoder(); + } + } else if (tag === 1) { + enc.copyBufferToBuffer(plan[i + 1], plan[i + 2], plan[i + 3], plan[i + 4], plan[i + 5]); + } else if (tag === 2) { + enc.clearBuffer(plan[i + 1], plan[i + 2], plan[i + 3]); + } + } + const t1 = performance.now(); + flush(); // the tail (a no-op encoder submits an empty buffer, which is legal) + api.last.ops = n / 7; + api.last.encodeMs = (t1 - t0) - submitMs; + api.last.submitMs = submitMs; + return n / 7; + }, + // Replays the plan with per-pass GPU timestamps and returns a JSON string aggregating GPU + // time by pipeline label (the kernel name). Requires the device to have 'timestamp-query' + // (requested by ILGPU device init when the adapter supports it) - returns + // {"supported":false} otherwise. One timestamp at the START of each compute pass plus the + // END of the last pass: passes execute back-to-back on the queue, so t[k+1]-t[k] is pass + // k's duration (encoder-level copies/clears between passes are attributed to the preceding + // pass - negligible). Chunked across query sets (4096 timestamps max each). NOTE: Chrome + // quantizes timestamps to 100us unless --enable-webgpu-developer-features - the total + // (last-first) telescopes exactly either way, but fine per-kernel attribution wants the + // flag. Waits for GPU completion internally (the resolve readback maps after the work). + async replayTimed(device, plan) { + if (!device.features.has('timestamp-query')) + return JSON.stringify({ supported: false, reason: "device lacks timestamp-query" }); + const n = plan.length; + const passIdx = []; // plan record offset of each compute pass + for (let i = 0; i < n; i += 7) if (plan[i] === 0) passIdx.push(i); + const passes = passIdx.length; + if (passes === 0) + return JSON.stringify({ supported: false, reason: "plan has no compute passes" }); + const QS_CAP = 4096; + const stamps = passes + 1; + const querySets = []; + for (let remaining = stamps; remaining > 0; remaining -= QS_CAP) + querySets.push(device.createQuerySet({ type: 'timestamp', count: Math.min(remaining, QS_CAP) })); + const qsOf = k => querySets[Math.floor(k / QS_CAP)]; + const qiOf = k => k % QS_CAP; + + let enc = device.createCommandEncoder(); + // The last pass also writes the closing timestamp (its end). timestampWrites targets ONE + // query set, so if that end index would land in the next chunk (passes ≡ 0 mod 4096), + // skip it - the last pass then simply has no duration row (correct, just one row short). + const hasClosingStamp = Math.floor(passes / QS_CAP) === Math.floor((passes - 1) / QS_CAP); + const measuredPasses = hasClosingStamp ? passes : passes - 1; + let k = 0; + for (let i = 0; i < n; i += 7) { + const tag = plan[i]; + if (tag === 0) { + const tw = { querySet: qsOf(k), beginningOfPassWriteIndex: qiOf(k) }; + if (k === passes - 1 && hasClosingStamp) + tw.endOfPassWriteIndex = qiOf(k + 1); + const pass = enc.beginComputePass({ timestampWrites: tw }); + pass.setPipeline(plan[i + 1]); + pass.setBindGroup(0, plan[i + 2]); + pass.dispatchWorkgroups(plan[i + 3], plan[i + 4], plan[i + 5]); + pass.end(); + k++; + // WORKAROUND (issue #10): keep the live path's submit boundary. Query sets are device objects, so + // the resolve in the final command buffer still reads every timestamp written before it. + if (plan[i + 6] === 1) { + device.queue.submit([enc.finish()]); + enc = device.createCommandEncoder(); + } + } else if (tag === 1) { + enc.copyBufferToBuffer(plan[i + 1], plan[i + 2], plan[i + 3], plan[i + 4], plan[i + 5]); + } else if (tag === 2) { + enc.clearBuffer(plan[i + 1], plan[i + 2], plan[i + 3]); + } + } + // Resolve every query set into one buffer, then copy to a mappable readback buffer. + const resolveBuf = device.createBuffer({ size: stamps * 8, usage: GPUBufferUsage.QUERY_RESOLVE | GPUBufferUsage.COPY_SRC }); + const readBuf = device.createBuffer({ size: stamps * 8, usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.MAP_READ }); + for (let s = 0, ofs = 0; s < querySets.length; s++) { + enc.resolveQuerySet(querySets[s], 0, querySets[s].count, resolveBuf, ofs); + ofs += querySets[s].count * 8; + } + enc.copyBufferToBuffer(resolveBuf, 0, readBuf, 0, stamps * 8); + device.queue.submit([enc.finish()]); + await readBuf.mapAsync(GPUMapMode.READ); + const t = new BigUint64Array(readBuf.getMappedRange().slice(0)); + readBuf.unmap(); + readBuf.destroy(); resolveBuf.destroy(); + for (const qs of querySets) qs.destroy(); + + // Aggregate pass durations by pipeline label, and keep each pass as a row in plan order with its workgroup + // counts (which SHAPE of a kernel is slow: e.g. a GEMM's late small layers launching too few workgroups). + const byLabel = new Map(); + const dispatches = []; + let totalNs = 0; + for (let p = 0; p < measuredPasses; p++) { + const durNs = Number(t[p + 1] - t[p]); + const at = passIdx[p]; + const label = plan[at + 1].label || '(unlabeled)'; + const valid = durNs >= 0; // guard against wrap/invalid + dispatches.push({ label, ms: valid ? +(durNs / 1e6).toFixed(4) : null, wg: [plan[at + 3], plan[at + 4], plan[at + 5]] }); + if (!valid) continue; + totalNs += durNs; + const e = byLabel.get(label) || { ms: 0, count: 0, maxMs: 0 }; + e.ms += durNs / 1e6; e.count++; e.maxMs = Math.max(e.maxMs, durNs / 1e6); + byLabel.set(label, e); + } + const kernels = [...byLabel.entries()] + .map(([label, e]) => ({ label, ms: +e.ms.toFixed(3), count: e.count, maxMs: +e.maxMs.toFixed(3) })) + .sort((a, b) => b.ms - a.ms); + return JSON.stringify({ + supported: true, passes, ops: n / 7, + totalMs: +(totalNs / 1e6).toFixed(3), + spanMs: +(Number(t[measuredPasses] - t[0]) / 1e6).toFixed(3), + kernels, + dispatches + }); + } + }; + // Register - but never downgrade. A second copy of this module (another URL, an old cached file) must not + // replace a newer one already in use: the library looks up ilgpuWebGPUPlan.submitBatch on every flush. + // Bump HELPER_VERSION whenever the api's surface changes. + const HELPER_VERSION = 6; // 2: submitBatch (plain-dispatch record batches, ordered uploads); 3: single-pass runs, setSinglePass; 4: scalar arenas, bind-group reuse; 5: submitHeader (pinned heap header); 6: replayTimed per-pass rows (dispatches) + api.version = HELPER_VERSION; + const existing = globalThis.ilgpuWebGPUPlan; + if (!existing || !(existing.version >= HELPER_VERSION)) globalThis.ilgpuWebGPUPlan = api; +})(); diff --git a/_framework/ILGPU.Algorithms.ffei46c8ng.wasm.gz b/_framework/ILGPU.Algorithms.ffei46c8ng.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..0bfb18c9313adaca079c8aa0ffca79ddfefa909b --- /dev/null +++ b/_framework/ILGPU.Algorithms.ffei46c8ng.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f25498d4f612e010b11f231ab2be335b172a851d22d8b452de18ffaba2d483ff +size 22402 diff --git a/_framework/ILGPU.k78gepz5ei.wasm.gz b/_framework/ILGPU.k78gepz5ei.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..86758183271fe5d2114d6f7d8693d245509821f0 --- /dev/null +++ b/_framework/ILGPU.k78gepz5ei.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22bae2b0771a8aa8e9a3e106e4ece40772919fbc5e6a8534c1591970e8a8e659 +size 506681 diff --git a/_framework/Microsoft.AspNetCore.Components.Web.cmuc7bdjac.wasm.gz b/_framework/Microsoft.AspNetCore.Components.Web.cmuc7bdjac.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..e8fa2260f9fbb4601cc66ccd189f15e23fd6b0cf --- /dev/null +++ b/_framework/Microsoft.AspNetCore.Components.Web.cmuc7bdjac.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86b3dd578ae8e46a7b89c68f103e9c14a85fb76e223920cff6ac86bedd55a441 +size 28231 diff --git a/_framework/Microsoft.AspNetCore.Components.WebAssembly.iea6k79bon.wasm.gz b/_framework/Microsoft.AspNetCore.Components.WebAssembly.iea6k79bon.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..9c4c6ed1345f8a643052cce856f48b17f902baed --- /dev/null +++ b/_framework/Microsoft.AspNetCore.Components.WebAssembly.iea6k79bon.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73f479308561f11f6c7727f7e383f46055b8e6cfa2a6452c1b646e12bca490fd +size 49972 diff --git a/_framework/Microsoft.AspNetCore.Components.irsccstbtv.wasm.gz b/_framework/Microsoft.AspNetCore.Components.irsccstbtv.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..ca292fa2e6b2fbee9b06e5acbb05cd858a078345 --- /dev/null +++ b/_framework/Microsoft.AspNetCore.Components.irsccstbtv.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5283e6f68a60d357d6c35eb29e6f313a961c45ccbe2d178483ef5046def0475b +size 110557 diff --git a/_framework/Microsoft.Extensions.Configuration.Abstractions.wslsrredsq.wasm.gz b/_framework/Microsoft.Extensions.Configuration.Abstractions.wslsrredsq.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..fb607ec8e80655477344f7003457312a168ddd98 --- /dev/null +++ b/_framework/Microsoft.Extensions.Configuration.Abstractions.wslsrredsq.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d162efb609ea061afb94d43d914c9afd6bfd06506e32c3e6124f8a9f8a2ef99 +size 2698 diff --git a/_framework/Microsoft.Extensions.Configuration.Json.dmmcgk01r0.wasm.gz b/_framework/Microsoft.Extensions.Configuration.Json.dmmcgk01r0.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..8beda138114c06fd838592c1c54e451b316b6eb9 --- /dev/null +++ b/_framework/Microsoft.Extensions.Configuration.Json.dmmcgk01r0.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d77f10dc1fb571eac1225471953dd41e4a1ed23c22192ecadf1cbb615dbd1181 +size 4762 diff --git a/_framework/Microsoft.Extensions.Configuration.rgjmp347zf.wasm.gz b/_framework/Microsoft.Extensions.Configuration.rgjmp347zf.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..2b138e4b2bd66d0ea6ec9f9654cf8d16042399dd --- /dev/null +++ b/_framework/Microsoft.Extensions.Configuration.rgjmp347zf.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2fb72ff395eb03c95f070729077a2c0e6f8ad96508a28d2a8232e87cbbf8326 +size 4167 diff --git a/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.d95iifg76m.wasm.gz b/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.d95iifg76m.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..d5b8faef46f9340ef94feddce71c81efd828b7b3 --- /dev/null +++ b/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.d95iifg76m.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55d3d29f507b7624fa2fab78056ed21a306e0065804b8ecaf9a5e0771689d8f1 +size 13206 diff --git a/_framework/Microsoft.Extensions.DependencyInjection.mvfec3p7kh.wasm.gz b/_framework/Microsoft.Extensions.DependencyInjection.mvfec3p7kh.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..7ef355571e59b2a5bd6ddf2736f714c536f5e035 --- /dev/null +++ b/_framework/Microsoft.Extensions.DependencyInjection.mvfec3p7kh.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fbdf1b10cd968650d7c5f54b9794025581adb7ea79cb1adde6650b90005fe526 +size 22442 diff --git a/_framework/Microsoft.Extensions.Logging.5w9ia7xlgq.wasm.gz b/_framework/Microsoft.Extensions.Logging.5w9ia7xlgq.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..7ee08b45442d040fb09dc4c795e06224bf6a67ba --- /dev/null +++ b/_framework/Microsoft.Extensions.Logging.5w9ia7xlgq.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aae8809175f256fefd479894e0ff6006b3b3eae0e27aa1692207ee07e31972fe +size 8627 diff --git a/_framework/Microsoft.Extensions.Logging.Abstractions.xx3hs6cn2q.wasm.gz b/_framework/Microsoft.Extensions.Logging.Abstractions.xx3hs6cn2q.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..5ccca32f916d16f7a0a021a00100cd27e4d99142 --- /dev/null +++ b/_framework/Microsoft.Extensions.Logging.Abstractions.xx3hs6cn2q.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48d05d5ce63088dd0b23798456cf3d8942c49cac0ac69f23c588c055bcb2c0de +size 12564 diff --git a/_framework/Microsoft.Extensions.Options.espvvlqak1.wasm.gz b/_framework/Microsoft.Extensions.Options.espvvlqak1.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..d7aba248126004989515e5f47f090bc0343263e0 --- /dev/null +++ b/_framework/Microsoft.Extensions.Options.espvvlqak1.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b086d423f7b99db8bbf606b353d3b5b9358e2bf51c349e055285f8838e117fb +size 8150 diff --git a/_framework/Microsoft.Extensions.Primitives.crxdkm6t9l.wasm.gz b/_framework/Microsoft.Extensions.Primitives.crxdkm6t9l.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..4dc37a5657aa1ebf6d255571dcf01bb22368fa6f --- /dev/null +++ b/_framework/Microsoft.Extensions.Primitives.crxdkm6t9l.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aca61a0f270479230d4b1270e796a7cd81d4080de862fda359033fc259dfd49a +size 5158 diff --git a/_framework/Microsoft.JSInterop.0523xs2ej1.wasm.gz b/_framework/Microsoft.JSInterop.0523xs2ej1.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..1dda414ab3752d415eb82f233c8496d7bbd8d851 --- /dev/null +++ b/_framework/Microsoft.JSInterop.0523xs2ej1.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:213c66b5c20b7faa0a2ddca7ad0ec0658a8fb6cc30cef90ea5bcd1ed926f1233 +size 21422 diff --git a/_framework/Microsoft.JSInterop.WebAssembly.5ql0ra5mpq.wasm.gz b/_framework/Microsoft.JSInterop.WebAssembly.5ql0ra5mpq.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..e27b0d57a4e776fe1948fae676877bb9bdb297dd --- /dev/null +++ b/_framework/Microsoft.JSInterop.WebAssembly.5ql0ra5mpq.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:252ab1c7b0b3a7c67d65f641f5ec942f3fcfcc39ca39fb901304e26593445a7a +size 5636 diff --git a/_framework/SpawnDev.BackgroundServices.1yeryblw74.wasm.gz b/_framework/SpawnDev.BackgroundServices.1yeryblw74.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..87548ab06fe275320348c7f41882fcc10a1c2a0e --- /dev/null +++ b/_framework/SpawnDev.BackgroundServices.1yeryblw74.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:947d1c299d5a6ddce9201ca017fbc8df7278245fbfdec97ac0c89b4a898cb7df +size 32526 diff --git a/_framework/SpawnDev.Blazor.BootRecovery.wqj5nz7x99.wasm.gz b/_framework/SpawnDev.Blazor.BootRecovery.wqj5nz7x99.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..c861d4d9aa40c88a65004c077a11883e9f2387ad --- /dev/null +++ b/_framework/SpawnDev.Blazor.BootRecovery.wqj5nz7x99.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:284efa3bfea1ca5a0d9882c29cfc49260bcb725c9cb07087bbae12d6dde66c42 +size 9673 diff --git a/_framework/SpawnDev.Codecs.xofv24znhd.wasm.gz b/_framework/SpawnDev.Codecs.xofv24znhd.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..0427ac8f793ed921d5ba33a42cda6fe4f4598831 --- /dev/null +++ b/_framework/SpawnDev.Codecs.xofv24znhd.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee0a1ef3aab5032d05465cf821290911f1356db1755545b66073e851fad87de7 +size 3650706 diff --git a/_framework/SpawnDev.EBML.xdne5e0w64.wasm.gz b/_framework/SpawnDev.EBML.xdne5e0w64.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..1d7cf461e60065b492dbc10417f13be85568c394 --- /dev/null +++ b/_framework/SpawnDev.EBML.xdne5e0w64.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2aea025ec965d9c5e22a6a07e5dfa14c07859fc0c70ebe97b979a04c560df9fd +size 154241 diff --git a/_framework/SpawnDev.ILGPU.6mjayrscgw.wasm.gz b/_framework/SpawnDev.ILGPU.6mjayrscgw.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..baf36a3921d093c3f3066d7b3bd4f4e0c92cf4ed --- /dev/null +++ b/_framework/SpawnDev.ILGPU.6mjayrscgw.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8ed3e63e657611119e28f064b23d319ffc132ebced44273417522fcdff38d30 +size 1821971 diff --git a/_framework/SpawnDev.ILGPU.ML.2gzqxw91d8.wasm.gz b/_framework/SpawnDev.ILGPU.ML.2gzqxw91d8.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..c9eae51252ab645f7d461ae62725e282a28bb3e5 --- /dev/null +++ b/_framework/SpawnDev.ILGPU.ML.2gzqxw91d8.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11ded34378ce8da7a27fc1cf3c2544c3752bae5c68894279e9e5c2c23b9ed510 +size 4102976 diff --git a/_framework/SpawnDev.ILGPU.ML.Kernels.xas971tlmk.wasm.gz b/_framework/SpawnDev.ILGPU.ML.Kernels.xas971tlmk.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..9445fe2b980762a5414467e16e589e86ece3df7c --- /dev/null +++ b/_framework/SpawnDev.ILGPU.ML.Kernels.xas971tlmk.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67dd9619eda3db6796907190f17e5d78cf0f9e3e2f185ca7488f84848af8f9ca +size 718097 diff --git a/_framework/SpawnDev.MultiMedia.omfwfbvzp1.wasm.gz b/_framework/SpawnDev.MultiMedia.omfwfbvzp1.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..53557c345f8692ea00062a1ae231bb19e7880463 --- /dev/null +++ b/_framework/SpawnDev.MultiMedia.omfwfbvzp1.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b25b3c09bb6a2bd050dd9864a3936953e02b14e3fc104fa3935a8712e7692a2d +size 164220 diff --git a/_framework/SpawnDev.PatchStreams.fa7qoyfxjz.wasm.gz b/_framework/SpawnDev.PatchStreams.fa7qoyfxjz.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..729ab78a90a69b8111c62f2eaf685830caf62367 --- /dev/null +++ b/_framework/SpawnDev.PatchStreams.fa7qoyfxjz.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28904938ed8d93ca4eae855d612c3da7a2128b769a475a50366d54d28a182a32 +size 39873 diff --git a/_framework/SpawnDev.Phonemizer.14wgzuo4bh.wasm.gz b/_framework/SpawnDev.Phonemizer.14wgzuo4bh.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..c76ed19361644c01dfe61f8a7102761dd234bbda --- /dev/null +++ b/_framework/SpawnDev.Phonemizer.14wgzuo4bh.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c58fe5d9d3545cb8e124cd91aea1aee3b667338d681b4a664f05e450bd22a2f +size 1474813 diff --git a/_framework/SpawnDev.SpawnJS.Blazor.pmbh2dtfc3.wasm.gz b/_framework/SpawnDev.SpawnJS.Blazor.pmbh2dtfc3.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..f9160ba43837b602073001ad5d94d33aed070416 --- /dev/null +++ b/_framework/SpawnDev.SpawnJS.Blazor.pmbh2dtfc3.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ee9e0f73ba1140f493fd760c105b3202b66bfdf1da59150f1106fe2398936a5 +size 15810 diff --git a/_framework/SpawnDev.SpawnJS.obwsmd2ii3.wasm.gz b/_framework/SpawnDev.SpawnJS.obwsmd2ii3.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..30fe1688cdb978c6520627d9da8afe1e803067f5 --- /dev/null +++ b/_framework/SpawnDev.SpawnJS.obwsmd2ii3.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a2387101296195939cfbed2614688f52911d01b5850e93320a946488340e24a +size 1471276 diff --git a/_framework/SpawnGen.Editor.ysklqo5dvy.wasm.gz b/_framework/SpawnGen.Editor.ysklqo5dvy.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..ed77277ba8054004ed5041e8ff42e846bd08a5db --- /dev/null +++ b/_framework/SpawnGen.Editor.ysklqo5dvy.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d7cb62f34bbd5b8c16bc7200eaa6b40a35bc6c0268f558042e7d65961cecd0f +size 123171 diff --git a/_framework/SpawnGen.Engine.963inzh8su.wasm.gz b/_framework/SpawnGen.Engine.963inzh8su.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..1fb144532bbc6cb9e66b01cbbf8392b1cc2564f9 --- /dev/null +++ b/_framework/SpawnGen.Engine.963inzh8su.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc417b6cd752e7dbbab591a53e0ee86b2570a81eec7d0bc1e5ee1caf84f277ae +size 76961 diff --git a/_framework/SpawnGen.Glsl.gumig0hdrg.wasm.gz b/_framework/SpawnGen.Glsl.gumig0hdrg.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..d7e81041658c8bb2e304a12b2795e8bc6d7c6df9 --- /dev/null +++ b/_framework/SpawnGen.Glsl.gumig0hdrg.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da717294b231d08ead5f7bbe98f38afdf75825c31456eec374bcd9199385f16f +size 54422 diff --git a/_framework/SpawnGen.Nodes.Core.nefbdvknei.wasm.gz b/_framework/SpawnGen.Nodes.Core.nefbdvknei.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..7fdcd9a6be1506adcfacf8a695e2fd5330fea176 --- /dev/null +++ b/_framework/SpawnGen.Nodes.Core.nefbdvknei.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa5b1a25ecfe89e31a1b78afa5a9572d22df7133b75a5d1d5dfbcac13c34daf9 +size 353765 diff --git a/_framework/SpawnGen.Nodes.ML.m5uycdlwtd.wasm.gz b/_framework/SpawnGen.Nodes.ML.m5uycdlwtd.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..cc7ce8b38c06089e55185557fc07c160d1a129ad --- /dev/null +++ b/_framework/SpawnGen.Nodes.ML.m5uycdlwtd.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7cd36ae79c15c1cc8c8d77234f793ea1b5a0567247976b6545c643046e623f2c +size 348653 diff --git a/_framework/SpawnGen.Runtime.75kyqfga9w.wasm.gz b/_framework/SpawnGen.Runtime.75kyqfga9w.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..18d27f610e47abec9a7eb7578256bd310d443fdb --- /dev/null +++ b/_framework/SpawnGen.Runtime.75kyqfga9w.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d759af4fc1c1017f51c432be489c98b65f7c8990a55ac4ea5688abe8ebf1a5f2 +size 17072 diff --git a/_framework/SpawnGen.Studio.r201i5b3vg.wasm.gz b/_framework/SpawnGen.Studio.r201i5b3vg.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..0ca8ec9ee982efb4f64f11de0e4439663f6a3d07 --- /dev/null +++ b/_framework/SpawnGen.Studio.r201i5b3vg.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d54143271d95ce92a031fc9efb7bae8e9c1ca14d40a9e254a8f25e70ed91d1cf +size 177164 diff --git a/_framework/System.Collections.Concurrent.ff7cq2nm1d.wasm.gz b/_framework/System.Collections.Concurrent.ff7cq2nm1d.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..1c9349ed5725661c1e11a8aaff44866801a6b15a --- /dev/null +++ b/_framework/System.Collections.Concurrent.ff7cq2nm1d.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da739802d5b28f0690047b305fea70225a82eda20744a052e2afb432d1d0520c +size 14291 diff --git a/_framework/System.Collections.Immutable.wgf13aswj8.wasm.gz b/_framework/System.Collections.Immutable.wgf13aswj8.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..4dd847679da434bdf2f5dc7ea01784cf852d329d --- /dev/null +++ b/_framework/System.Collections.Immutable.wgf13aswj8.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:304119e9a4ec0690edcc8708a7df28d41af163914d8d726abcab2adf6c107e10 +size 33831 diff --git a/_framework/System.Collections.NonGeneric.hsozm72ati.wasm.gz b/_framework/System.Collections.NonGeneric.hsozm72ati.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..5b71db5af94902865fefd8e240712b02e2a093d6 --- /dev/null +++ b/_framework/System.Collections.NonGeneric.hsozm72ati.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c8e321c03e6b4eab32c0755e4ba5d22f18eef6ff6a0681fb66295a9ed3b042c +size 3244 diff --git a/_framework/System.Collections.Specialized.f7h3kag6r1.wasm.gz b/_framework/System.Collections.Specialized.f7h3kag6r1.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..a76a37e308572aea7f6a24b273c686021461f937 --- /dev/null +++ b/_framework/System.Collections.Specialized.f7h3kag6r1.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:adefb2dc8feff1a714574c19792f504aec1563674795d26195e62846d15dcc0c +size 4374 diff --git a/_framework/System.Collections.aw6c0lqys1.wasm.gz b/_framework/System.Collections.aw6c0lqys1.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..a57d01aea839ab80821874c76d9dd56f1a2b1a33 --- /dev/null +++ b/_framework/System.Collections.aw6c0lqys1.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d55d23bd6c88f3ab0e1a65f4b7c30ad6a1b491cb131a9b80860bfd4013a0410 +size 25742 diff --git a/_framework/System.ComponentModel.Annotations.nftdtj3wv1.wasm.gz b/_framework/System.ComponentModel.Annotations.nftdtj3wv1.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..cc1703c60af60e316c88f4c36057c2430a239fac --- /dev/null +++ b/_framework/System.ComponentModel.Annotations.nftdtj3wv1.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd7063454e5e673efe55d39f9b4e4f32fabf3aca4e08569ce93ad3d14323403e +size 2357 diff --git a/_framework/System.ComponentModel.Primitives.5z48w2rdnk.wasm.gz b/_framework/System.ComponentModel.Primitives.5z48w2rdnk.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..339779d1c71a02f590a933b5b3a9c5843107bcb3 --- /dev/null +++ b/_framework/System.ComponentModel.Primitives.5z48w2rdnk.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a17e4a38d7297a7e51881aa8224cfdd9af5b433907489f43718f6cad6ec70c86 +size 3027 diff --git a/_framework/System.ComponentModel.TypeConverter.wyfjsyv15c.wasm.gz b/_framework/System.ComponentModel.TypeConverter.wyfjsyv15c.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..81c733e97f3440bb9c22a7eb91a0eb9fa41abd97 --- /dev/null +++ b/_framework/System.ComponentModel.TypeConverter.wyfjsyv15c.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:138d6f234533f5bd7b704b81f803bcab27a1d23f177ec6b8cb30c5c534a1f504 +size 19669 diff --git a/_framework/System.ComponentModel.s232flgnjt.wasm.gz b/_framework/System.ComponentModel.s232flgnjt.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..22545e0881ea89948eec17cd9287bbe41365b8bb --- /dev/null +++ b/_framework/System.ComponentModel.s232flgnjt.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff30cc937f54509bd555321e890f6363887df5a56f7853e8bba015162f96fe93 +size 1937 diff --git a/_framework/System.Console.xaf8v5wlms.wasm.gz b/_framework/System.Console.xaf8v5wlms.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..1d46bc9dd7f406499bbc0426e602fd227ec1e097 --- /dev/null +++ b/_framework/System.Console.xaf8v5wlms.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c678a3c816d0c72545f94cbb0dc06ef0804aeac0c8fcb4a1bc44ba5ca718448 +size 7238 diff --git a/_framework/System.Diagnostics.DiagnosticSource.wi2m9kb6j2.wasm.gz b/_framework/System.Diagnostics.DiagnosticSource.wi2m9kb6j2.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..680e5fd3b58f95e918302eddf221d76ab28fbe84 --- /dev/null +++ b/_framework/System.Diagnostics.DiagnosticSource.wi2m9kb6j2.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d89ac7742bc0f105ca18593007d0e725b21d3a6539e8840f8bc012ee1aa749b7 +size 18843 diff --git a/_framework/System.Diagnostics.TraceSource.jas6ciz43q.wasm.gz b/_framework/System.Diagnostics.TraceSource.jas6ciz43q.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..5e70c1052cec90eccb4f3ab66c6ee0ef3e5e35f3 --- /dev/null +++ b/_framework/System.Diagnostics.TraceSource.jas6ciz43q.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8780b5288e679010c27eabe68148faebee7759c28fced56d7ee0f20f231594d +size 5892 diff --git a/_framework/System.IO.Compression.7wlgl6q4q0.wasm.gz b/_framework/System.IO.Compression.7wlgl6q4q0.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..74a4e7e1d12a8e4fb1c1f9e3aec1a3adc61b680d --- /dev/null +++ b/_framework/System.IO.Compression.7wlgl6q4q0.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:761da85617a52730a55cf455ad0ca45c098cc90ad9ae8531b1f933342889f418 +size 47105 diff --git a/_framework/System.IO.MemoryMappedFiles.8pzepydqnq.wasm.gz b/_framework/System.IO.MemoryMappedFiles.8pzepydqnq.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..110557bb429edf270fff2345c20f28ed03eacad5 --- /dev/null +++ b/_framework/System.IO.MemoryMappedFiles.8pzepydqnq.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9258a8855334e6ea9bc50a1daff5dd63a27981f621af4d07fff9adde051c90c +size 11806 diff --git a/_framework/System.IO.Pipelines.uxxioc395v.wasm.gz b/_framework/System.IO.Pipelines.uxxioc395v.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..38894b954280d556409fd53ac0fba8d1d1b1512c --- /dev/null +++ b/_framework/System.IO.Pipelines.uxxioc395v.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d86f2a8754336a53578d41c8a5827ab9e2126d34155479eaed2223bf01a7fce +size 3037 diff --git a/_framework/System.Linq.o3ju26b5hx.wasm.gz b/_framework/System.Linq.o3ju26b5hx.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..c3106202f7cb66217e3ddd80b15ab38340ff12b6 --- /dev/null +++ b/_framework/System.Linq.o3ju26b5hx.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d26e654e26bfe0e9a522c93df1d998f648a8d9abc2de268281ae04d1b7e2cdf +size 39047 diff --git a/_framework/System.Memory.d58xhirxya.wasm.gz b/_framework/System.Memory.d58xhirxya.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..48cb02a823818ed5cd810f9013e8575a81498035 --- /dev/null +++ b/_framework/System.Memory.d58xhirxya.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b04343435709989b6868233fe49b19948ac73448a78385d727ed7c98b072a4cf +size 7749 diff --git a/_framework/System.Net.Http.Json.hx5auf8ye0.wasm.gz b/_framework/System.Net.Http.Json.hx5auf8ye0.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..284562eaf63e3d822ec233e7a26d89f8c25ea268 --- /dev/null +++ b/_framework/System.Net.Http.Json.hx5auf8ye0.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29ce2caea0c09347a19b19e4b5ba616236956b80f101b073ae6cfbdf426aa40d +size 10621 diff --git a/_framework/System.Net.Http.psud7m7x26.wasm.gz b/_framework/System.Net.Http.psud7m7x26.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..814b46a0bcbab987fe2aaae405473d28b43ce72e --- /dev/null +++ b/_framework/System.Net.Http.psud7m7x26.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a15b4dbb26111949509de168837d26a642ebfc4776638689c6a1aa104e32e27 +size 65437 diff --git a/_framework/System.Net.Primitives.laa2o30cj4.wasm.gz b/_framework/System.Net.Primitives.laa2o30cj4.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..f6fa559b0555efde1a7aa539950d8f211ee41cc5 --- /dev/null +++ b/_framework/System.Net.Primitives.laa2o30cj4.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c69dace6a3a7a33a1b4e58d8f0f70d94af6d980016dc26388a15f7348471e36 +size 3355 diff --git a/_framework/System.Net.WebSockets.Client.jgyk2r45hq.wasm.gz b/_framework/System.Net.WebSockets.Client.jgyk2r45hq.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..306b5c1a316031befe46c48f0cc22ec7b9ddd0cc --- /dev/null +++ b/_framework/System.Net.WebSockets.Client.jgyk2r45hq.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f0721db07142e4ad46e72e4a372f2f9e956cf70fc823ddb04485e9315f625ce +size 11095 diff --git a/_framework/System.Net.WebSockets.pty5fhsh63.wasm.gz b/_framework/System.Net.WebSockets.pty5fhsh63.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..af26a37404027636c8ffec7a202af08ad8339884 --- /dev/null +++ b/_framework/System.Net.WebSockets.pty5fhsh63.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56b308c107d58b0140fc279d38658ea586940b665f322d33b120ad573530ae5e +size 4298 diff --git a/_framework/System.ObjectModel.uz5l7z8bk8.wasm.gz b/_framework/System.ObjectModel.uz5l7z8bk8.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..20ae1967786969f76798f59b50870bf7347eb9a7 --- /dev/null +++ b/_framework/System.ObjectModel.uz5l7z8bk8.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca02621cd07b63f31ef200730b29fe23135303c40d9c6512a57426c8c3249281 +size 2557 diff --git a/_framework/System.Private.CoreLib.mjvdlgja0y.wasm.gz b/_framework/System.Private.CoreLib.mjvdlgja0y.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..519c51bc7e099782abe5cc57565086b529dd978e --- /dev/null +++ b/_framework/System.Private.CoreLib.mjvdlgja0y.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4c1af359a2583fa226e6846fb537b0cfa6cfc64fd89243811f385f43799ca30 +size 753329 diff --git a/_framework/System.Private.Uri.dq15cozieu.wasm.gz b/_framework/System.Private.Uri.dq15cozieu.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..e79a9d66baf040c4d1f5328b167514c3aac60140 --- /dev/null +++ b/_framework/System.Private.Uri.dq15cozieu.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d622323399f303af9dd97242da65093eb894ebe12b23c74b0059641441fab21 +size 31910 diff --git a/_framework/System.Private.Xml.Linq.x7pddrotmb.wasm.gz b/_framework/System.Private.Xml.Linq.x7pddrotmb.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..25958be24b74a8f8ab336ac13992f731c6a2a7a1 --- /dev/null +++ b/_framework/System.Private.Xml.Linq.x7pddrotmb.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9b08f8860370147ff4abf73fbc6264b9460841587a6e669d8822677a32fb3ff +size 14218 diff --git a/_framework/System.Private.Xml.u94bl2dvp8.wasm.gz b/_framework/System.Private.Xml.u94bl2dvp8.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..8b83fa8c7f41c76bcd529926cc8c99e7393f13b8 --- /dev/null +++ b/_framework/System.Private.Xml.u94bl2dvp8.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cddf70652f477c0be60fd8b5dab655ea84c72322a6b18f0dd3ae4b44fa32b949 +size 165890 diff --git a/_framework/System.Reflection.Emit.0b1ladh0wq.wasm.gz b/_framework/System.Reflection.Emit.0b1ladh0wq.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..31e48592f7248e9d80a42b11f6699c2e6fbde1bd --- /dev/null +++ b/_framework/System.Reflection.Emit.0b1ladh0wq.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8def4e3c026e9b3c7694092a8dcfb0ae771eff1718fb60737c2b3f4e9f2ebe9b +size 32209 diff --git a/_framework/System.Reflection.Emit.ILGeneration.5agvqjhgro.wasm.gz b/_framework/System.Reflection.Emit.ILGeneration.5agvqjhgro.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..3609181e707d0de30b9fb48447cc575d76d020fd --- /dev/null +++ b/_framework/System.Reflection.Emit.ILGeneration.5agvqjhgro.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0da6a15339adc1ff6ed61de415d8c373e7eae0e0deb35d9485902b913ac1ce4 +size 1926 diff --git a/_framework/System.Reflection.Metadata.g8rwrnaoa9.wasm.gz b/_framework/System.Reflection.Metadata.g8rwrnaoa9.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..4b5e01041eef30f421f01cafb0f5c0ff15a9582c --- /dev/null +++ b/_framework/System.Reflection.Metadata.g8rwrnaoa9.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab70ff1dc942aa10cf2b973b8cd07d8bfe6f770b537f078ea3cbe6abdd2db871 +size 75486 diff --git a/_framework/System.Reflection.Primitives.n4vvjn3p23.wasm.gz b/_framework/System.Reflection.Primitives.n4vvjn3p23.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..f432cef5ab42390bfb3f886c6790e31a27440619 --- /dev/null +++ b/_framework/System.Reflection.Primitives.n4vvjn3p23.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ecd3941c16a45dcde598fbb973be9a2d41628ec1451efb59a2a409fafc60cc2 +size 1898 diff --git a/_framework/System.Runtime.21tsxuipge.wasm.gz b/_framework/System.Runtime.21tsxuipge.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..1442d763a5ecfb7f8c11c382d3bf829a4e8d0bba --- /dev/null +++ b/_framework/System.Runtime.21tsxuipge.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:feae67475a290a9139e90c50f92b228399feec9468b45cf3f32055e9f46e4d5c +size 4620 diff --git a/_framework/System.Runtime.InteropServices.JavaScript.d464kmk1ac.wasm.gz b/_framework/System.Runtime.InteropServices.JavaScript.d464kmk1ac.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..b6452440785b7c86bcaf3efd7932ab944e41a1ab --- /dev/null +++ b/_framework/System.Runtime.InteropServices.JavaScript.d464kmk1ac.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de94d10c0343a4f57e74e5acbc451dbb1f85dea45c4770053c3641ab32be8670 +size 20880 diff --git a/_framework/System.Runtime.InteropServices.zwchjc25pl.wasm.gz b/_framework/System.Runtime.InteropServices.zwchjc25pl.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..8b429abd95dc34b4cc7c14b2f8e80d023d6cb6f7 --- /dev/null +++ b/_framework/System.Runtime.InteropServices.zwchjc25pl.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eeefa633538c666089e44d885cc244a9fe77a34ec401d6764814ad9e77938e25 +size 3428 diff --git a/_framework/System.Runtime.Loader.ock30he81m.wasm.gz b/_framework/System.Runtime.Loader.ock30he81m.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..86cb44b844d057871463886d0384a2cbc9f4911c --- /dev/null +++ b/_framework/System.Runtime.Loader.ock30he81m.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3703ce83e1cc3607b1c304abfb16372544f98423d25739d0aadc1e43020f078c +size 1875 diff --git a/_framework/System.Runtime.Numerics.q5zaws913d.wasm.gz b/_framework/System.Runtime.Numerics.q5zaws913d.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..1e9943cbf8900f7e508ca53c38c95ac6c5903279 --- /dev/null +++ b/_framework/System.Runtime.Numerics.q5zaws913d.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6d2cdcc06279c8e00d958e6ee50ffd88d4ae5f37661419caf9162e77b7346d8 +size 36783 diff --git a/_framework/System.Security.Cryptography.1t4xn1xy0x.wasm.gz b/_framework/System.Security.Cryptography.1t4xn1xy0x.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..3a0bfba8e6a70dfb805912ce5b096e1849e3b452 --- /dev/null +++ b/_framework/System.Security.Cryptography.1t4xn1xy0x.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aec10e6c8a467304aea8878847793b891405728529d06b22dcfbb72df2aace1d +size 11424 diff --git a/_framework/System.Text.Encoding.Extensions.mo66izveyc.wasm.gz b/_framework/System.Text.Encoding.Extensions.mo66izveyc.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..86093e89d14263f879b2cd6559f9ae0a4c344fbf --- /dev/null +++ b/_framework/System.Text.Encoding.Extensions.mo66izveyc.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:954b2aa036a2d9591039e461a7651285ade8e52b3ed2ab3983e906c51936d06e +size 1904 diff --git a/_framework/System.Text.Encodings.Web.tji6rumfic.wasm.gz b/_framework/System.Text.Encodings.Web.tji6rumfic.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..b9a05ace0da9ef12dabee9044ae41c155bc8c9be --- /dev/null +++ b/_framework/System.Text.Encodings.Web.tji6rumfic.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e6cea7e23b4fdc6c5592a912f7f0a233f9d6beef27612109f4c3cb57b88b58ca +size 11250 diff --git a/_framework/System.Text.Json.tmbe5ju12l.wasm.gz b/_framework/System.Text.Json.tmbe5ju12l.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..93a2e4ca20cb47031a29f78bd5222ebea4ff2087 --- /dev/null +++ b/_framework/System.Text.Json.tmbe5ju12l.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed842b5fac8de91ee80ae5d2391ec26e259f7ac9d34a8ec41d9135abb00b02eb +size 160661 diff --git a/_framework/System.Text.RegularExpressions.5f6os8d0wv.wasm.gz b/_framework/System.Text.RegularExpressions.5f6os8d0wv.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..db808b3467cc88f5785319d254fa9e122e392463 --- /dev/null +++ b/_framework/System.Text.RegularExpressions.5f6os8d0wv.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6520a1f83e35a3601b9549491a43055940ad8065f1dc8c7d13d5b523b211cee7 +size 119870 diff --git a/_framework/System.Threading.Tasks.Parallel.r9rdy25k8s.wasm.gz b/_framework/System.Threading.Tasks.Parallel.r9rdy25k8s.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..04ca0d9c2a33b83eb46de1f3fae12a6abb1a39d9 --- /dev/null +++ b/_framework/System.Threading.Tasks.Parallel.r9rdy25k8s.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:583b562e0dcc353736044b3aa821e68b037449f1f7f38c4b3c48626831b381b7 +size 9282 diff --git a/_framework/System.Threading.Thread.u9w6y2s95v.wasm.gz b/_framework/System.Threading.Thread.u9w6y2s95v.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..2ef9a0d6c9ed3315c4011d3207145e48f14c6e5f --- /dev/null +++ b/_framework/System.Threading.Thread.u9w6y2s95v.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93d429cdf00a786c2e8a1c9fe9747fabfd2b278c7b6cec25a7b39a59ab6bfc2d +size 1884 diff --git a/_framework/System.Threading.cqof8b7mz4.wasm.gz b/_framework/System.Threading.cqof8b7mz4.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..9cac9c0d0ae9279c127f5d5cc026b82fb0255cd3 --- /dev/null +++ b/_framework/System.Threading.cqof8b7mz4.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb500a749d77a4929a025bc743ec0ddbf0ba9c0e902e391476cee0d78b9b3b15 +size 4443 diff --git a/_framework/System.Xml.Linq.6wuwtpojma.wasm.gz b/_framework/System.Xml.Linq.6wuwtpojma.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..9f2296f53734016077faa7da581562fa79fe5719 --- /dev/null +++ b/_framework/System.Xml.Linq.6wuwtpojma.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99148da4482a28c1f5cf2abdddcd8fa2ae19b85e9def58ca3ec3026184b43d5b +size 1625 diff --git a/_framework/System.Xml.XDocument.amngb6ohpq.wasm.gz b/_framework/System.Xml.XDocument.amngb6ohpq.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..2d3d2573c892ff67663ee96d988d375734843cca --- /dev/null +++ b/_framework/System.Xml.XDocument.amngb6ohpq.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0f70e7599008d4c170b3cfdc9c03c06f8a4a0736248a0cbefd1d6b111dd9a8c +size 1880 diff --git a/_framework/System.bzv2fdl90t.wasm.gz b/_framework/System.bzv2fdl90t.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..6944d487cdbb112495a54e95b7ffb8b24840b1cf --- /dev/null +++ b/_framework/System.bzv2fdl90t.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d3ecb5851c32c62399aab133c0b5a3f6d6b63a84f9ce960a51fd441c26de91d +size 1684 diff --git a/_framework/blazor.webassembly.js b/_framework/blazor.webassembly.js new file mode 100644 index 0000000000000000000000000000000000000000..d64fc6772f6c55a99c52174bebafa3cc61d6ad21 --- /dev/null +++ b/_framework/blazor.webassembly.js @@ -0,0 +1 @@ +!function(){"use strict";var e;let t;var n,r;!function(e){const t=[],n="__jsObjectId",r="__dotNetObject",o="__byte[]",i="__dotNetStream",s="__jsStreamReferenceLength";let a,c,l;class u{constructor(e){this._jsObject=e,this._cachedHandlers=new Map}resolveInvocationHandler(e,t){var n;const r=null===(n=this._cachedHandlers.get(e))||void 0===n?void 0:n[t];if(r)return r;const[o,i]=I(this._jsObject,e),s=function(e,t,n,r){switch(n){case l.FunctionCall:const n=e[t];if(n instanceof Function)return n.bind(e);throw new Error(`The value '${r}' is not a function.`);case l.ConstructorCall:const o=e[t];if(o instanceof Function){const t=o.bind(e);return(...e)=>new t(...e)}throw new Error(`The value '${r}' is not a function.`);case l.GetValue:if(!function(e,t){if(!(t in e))return!1;for(;void 0!==e;){const n=Object.getOwnPropertyDescriptor(e,t);if(n)return!!n.hasOwnProperty("value")||n.hasOwnProperty("get")&&"function"==typeof n.get;e=Object.getPrototypeOf(e)}return!1}(e,t))throw new Error(`The property '${r}' is not defined or is not readable.`);return()=>e[t];case l.SetValue:if(!function(e,t){if(!(t in e))return Object.isExtensible(e);for(;void 0!==e;){const n=Object.getOwnPropertyDescriptor(e,t);if(n)return!(!n.hasOwnProperty("value")||!n.writable)||n.hasOwnProperty("set")&&"function"==typeof n.set;e=Object.getPrototypeOf(e)}return!1}(e,t))throw new Error(`The property '${r}' is not writable.`);return(...n)=>e[t]=n[0]}}(o,i,t,e);return this.addHandlerToCache(e,s,t),s}getWrappedObject(){return this._jsObject}addHandlerToCache(e,t,n){const r=this._cachedHandlers.get(e);r?r[n]=t:this._cachedHandlers.set(e,{[n]:t})}}!function(e){e[e.FunctionCall=1]="FunctionCall",e[e.ConstructorCall=2]="ConstructorCall",e[e.GetValue=3]="GetValue",e[e.SetValue=4]="SetValue"}(l=e.JSCallType||(e.JSCallType={}));const d=0,f={[d]:new u(window)};f[0]._cachedHandlers.set("import",{[l.FunctionCall]:e=>("string"==typeof e&&e.startsWith("./")&&(e=new URL(e.substring(2),document.baseURI).toString()),import(e))});let m,h=1;function p(e){t.push(e)}function b(e){if(null==e)return{[n]:-1};if(e&&("object"==typeof e||e instanceof Function)){f[h]=new u(e);const t={[n]:h};return h++,t}throw new Error(`Cannot create a JSObjectReference from the value '${e}'.`)}function g(e){let t=-1;if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Blob)t=e.size;else{if(!(e.buffer instanceof ArrayBuffer))throw new Error("Supplied value is not a typed array or blob.");if(void 0===e.byteLength)throw new Error(`Cannot create a JSStreamReference from the value '${e}' as it doesn't have a byteLength.`);t=e.byteLength}const r={[s]:t};try{const t=b(e);r[n]=t[n]}catch(t){throw new Error(`Cannot create a JSStreamReference from the value '${e}'.`)}return r}function v(e,n){c=e;const r=n?JSON.parse(n,(e,n)=>t.reduce((t,n)=>n(e,t),n)):null;return c=void 0,r}function y(){if(void 0===a)throw new Error("No call dispatcher has been set.");if(null===a)throw new Error("There are multiple .NET runtimes present, so a default dispatcher could not be resolved. Use DotNetObject to invoke .NET instance methods.");return a}e.attachDispatcher=function(e){const t=new w(e);return void 0===a?a=t:a&&(a=null),t},e.attachReviver=p,e.invokeMethod=function(e,t,...n){return y().invokeDotNetStaticMethod(e,t,...n)},e.invokeMethodAsync=function(e,t,...n){return y().invokeDotNetStaticMethodAsync(e,t,...n)},e.createJSObjectReference=b,e.createJSStreamReference=g,e.disposeJSObjectReference=function(e){const t=e&&e[n];"number"==typeof t&&-1!==t&&C(t)},function(e){e[e.Default=0]="Default",e[e.JSObjectReference=1]="JSObjectReference",e[e.JSStreamReference=2]="JSStreamReference",e[e.JSVoidResult=3]="JSVoidResult"}(m=e.JSCallResultType||(e.JSCallResultType={}));class w{constructor(e){this._dotNetCallDispatcher=e,this._byteArraysToBeRevived=new Map,this._pendingDotNetToJSStreams=new Map,this._pendingAsyncCalls={},this._nextAsyncCallId=1}getDotNetCallDispatcher(){return this._dotNetCallDispatcher}invokeJSFromDotNet(e,t,n,r,o){const i=D(this.processJSCall(r,e,o,t),n);return null==i?null:_(this,i)}async beginInvokeJSFromDotNet(e,t,n,r,o,i){try{const s=this.processJSCall(o,t,i,n);if(e){const t=_(this,[e,!0,D(await s,r)]);this._dotNetCallDispatcher.endInvokeJSFromDotNet(e,!0,t)}}catch(t){if(e){const n=JSON.stringify([e,!1,E(t)]);this._dotNetCallDispatcher.endInvokeJSFromDotNet(e,!1,n)}}}processJSCall(e,t,n,r){var o;const i=null!==(o=v(this,r))&&void 0!==o?o:[];return S(t,e,n)(...i)}endInvokeDotNetFromJS(e,t,n){const r=t?v(this,n):new Error(n);this.completePendingCall(parseInt(e,10),t,r)}invokeDotNetStaticMethod(e,t,...n){return this.invokeDotNetMethod(e,t,null,n)}invokeDotNetStaticMethodAsync(e,t,...n){return this.invokeDotNetMethodAsync(e,t,null,n)}invokeDotNetMethod(e,t,n,r){if(this._dotNetCallDispatcher.invokeDotNetFromJS){const o=_(this,r),i=this._dotNetCallDispatcher.invokeDotNetFromJS(e,t,n,o);return i?v(this,i):null}throw new Error("The current dispatcher does not support synchronous calls from JS to .NET. Use invokeDotNetMethodAsync instead.")}invokeDotNetMethodAsync(e,t,n,r){if(e&&n)throw new Error(`For instance method calls, assemblyName should be null. Received '${e}'.`);const o=this._nextAsyncCallId++,i=new Promise((e,t)=>{this._pendingAsyncCalls[o]={resolve:e,reject:t}});try{const i=_(this,r);this._dotNetCallDispatcher.beginInvokeDotNetFromJS(o,e,t,n,i)}catch(e){this.completePendingCall(o,!1,e)}return i}receiveByteArray(e,t){this._byteArraysToBeRevived.set(e,t)}processByteArray(e){const t=this._byteArraysToBeRevived.get(e);return t?(this._byteArraysToBeRevived.delete(e),t):null}supplyDotNetStream(e,t){if(this._pendingDotNetToJSStreams.has(e)){const n=this._pendingDotNetToJSStreams.get(e);this._pendingDotNetToJSStreams.delete(e),n.resolve(t)}else{const n=new R;n.resolve(t),this._pendingDotNetToJSStreams.set(e,n)}}getDotNetStreamPromise(e){let t;if(this._pendingDotNetToJSStreams.has(e))t=this._pendingDotNetToJSStreams.get(e).streamPromise,this._pendingDotNetToJSStreams.delete(e);else{const n=new R;this._pendingDotNetToJSStreams.set(e,n),t=n.streamPromise}return t}completePendingCall(e,t,n){if(!this._pendingAsyncCalls.hasOwnProperty(e))throw new Error(`There is no pending async call with ID ${e}.`);const r=this._pendingAsyncCalls[e];delete this._pendingAsyncCalls[e],t?r.resolve(n):r.reject(n)}}function E(e){return e instanceof Error?`${e.message}\n${e.stack}`:e?e.toString():"null"}function S(e,t,n){const r=f[t];if(r)return r.resolveInvocationHandler(e,null!=n?n:l.FunctionCall);throw new Error(`JS object instance with ID ${t} does not exist (has it been disposed?).`)}function C(e){delete f[e]}function I(e,t){const n=t.split(".");let r=e;for(let e=0;econsole.error(e))}serializeAsArg(){return{[r]:this._id}}}e.DotNetObject=A,p(function(e,t){if(t&&"object"==typeof t){if(t.hasOwnProperty(r))return new A(t[r],c);if(t.hasOwnProperty(n)){const e=t[n],r=f[e];if(r)return r.getWrappedObject();throw new Error(`JS object instance with Id '${e}' does not exist. It may have been disposed.`)}if(t.hasOwnProperty(o)){const e=t[o],n=c.processByteArray(e);if(void 0===n)throw new Error(`Byte array index '${e}' does not exist.`);return n}if(t.hasOwnProperty(i)){const e=t[i],n=c.getDotNetStreamPromise(e);return new N(n)}}return t});class N{constructor(e){this._streamPromise=e}stream(){return this._streamPromise}async arrayBuffer(){return new Response(await this.stream()).arrayBuffer()}}class R{constructor(){this.streamPromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}function D(e,t){switch(t){case m.Default:return e;case m.JSObjectReference:return b(e);case m.JSStreamReference:return g(e);case m.JSVoidResult:return null;default:throw new Error(`Invalid JS call result type '${t}'.`)}}let k=0;function _(e,t){k=0,c=e;const n=JSON.stringify(t,O);return c=void 0,n}function O(e,t){if(t instanceof A)return t.serializeAsArg();if(t instanceof Uint8Array){c.getDotNetCallDispatcher().sendByteArray(k,t);const e={[o]:k};return k++,e}return t}}(e||(e={})),function(e){e[e.prependFrame=1]="prependFrame",e[e.removeFrame=2]="removeFrame",e[e.setAttribute=3]="setAttribute",e[e.removeAttribute=4]="removeAttribute",e[e.updateText=5]="updateText",e[e.stepIn=6]="stepIn",e[e.stepOut=7]="stepOut",e[e.updateMarkup=8]="updateMarkup",e[e.permutationListEntry=9]="permutationListEntry",e[e.permutationListEnd=10]="permutationListEnd"}(n||(n={})),function(e){e[e.element=1]="element",e[e.text=2]="text",e[e.attribute=3]="attribute",e[e.component=4]="component",e[e.region=5]="region",e[e.elementReferenceCapture=6]="elementReferenceCapture",e[e.markup=8]="markup",e[e.namedEvent=10]="namedEvent"}(r||(r={}));class o{constructor(e,t){this.componentId=e,this.fieldValue=t}static fromEvent(e,t){const n=t.target;if(n instanceof Element){const t=function(e){return e instanceof HTMLInputElement?e.type&&"checkbox"===e.type.toLowerCase()?{value:e.checked}:{value:e.value}:e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?{value:e.value}:null}(n);if(t)return new o(e,t.value)}return null}}const i=new Map,s=new Map,a=[];function c(e){return i.get(e)}function l(e){const t=i.get(e);return t?.browserEventName||e}function u(e,t){e.forEach(e=>i.set(e,t))}function d(e){const t=[];for(let n=0;ne.selected).map(e=>e.value)}}{const e=function(e){return!!e&&"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}(t);return{value:e?!!t.checked:t.value}}}}),u(["copy","cut","paste"],{createEventArgs:e=>({type:e.type})}),u(["drag","dragend","dragenter","dragleave","dragover","dragstart","drop"],{createEventArgs:e=>{return{...f(t=e),dataTransfer:t.dataTransfer?{dropEffect:t.dataTransfer.dropEffect,effectAllowed:t.dataTransfer.effectAllowed,files:Array.from(t.dataTransfer.files).map(e=>e.name),items:Array.from(t.dataTransfer.items).map(e=>({kind:e.kind,type:e.type})),types:t.dataTransfer.types}:null};var t}}),u(["focus","blur","focusin","focusout"],{createEventArgs:e=>({type:e.type})}),u(["keydown","keyup","keypress"],{createEventArgs:e=>{return{key:(t=e).key,code:t.code,location:t.location,repeat:t.repeat,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,type:t.type,isComposing:t.isComposing};var t}}),u(["contextmenu","click","mouseover","mouseout","mousemove","mousedown","mouseup","mouseleave","mouseenter","dblclick"],{createEventArgs:e=>f(e)}),u(["error"],{createEventArgs:e=>{return{message:(t=e).message,filename:t.filename,lineno:t.lineno,colno:t.colno,type:t.type};var t}}),u(["loadstart","timeout","abort","load","loadend","progress"],{createEventArgs:e=>{return{lengthComputable:(t=e).lengthComputable,loaded:t.loaded,total:t.total,type:t.type};var t}}),u(["touchcancel","touchend","touchmove","touchenter","touchleave","touchstart"],{createEventArgs:e=>{return{detail:(t=e).detail,touches:d(t.touches),targetTouches:d(t.targetTouches),changedTouches:d(t.changedTouches),ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,type:t.type};var t}}),u(["gotpointercapture","lostpointercapture","pointercancel","pointerdown","pointerenter","pointerleave","pointermove","pointerout","pointerover","pointerup"],{createEventArgs:e=>{return{...f(t=e),pointerId:t.pointerId,width:t.width,height:t.height,pressure:t.pressure,tiltX:t.tiltX,tiltY:t.tiltY,pointerType:t.pointerType,isPrimary:t.isPrimary};var t}}),u(["wheel","mousewheel"],{createEventArgs:e=>{return{...f(t=e),deltaX:t.deltaX,deltaY:t.deltaY,deltaZ:t.deltaZ,deltaMode:t.deltaMode};var t}}),u(["cancel","close","toggle"],{createEventArgs:()=>({})});const m=["date","datetime-local","month","time","week"],h=new Map;let p,b,g=0;const v={async add(e,t,n){if(!n)throw new Error("initialParameters must be an object, even if empty.");const r="__bl-dynamic-root:"+(++g).toString();h.set(r,e);const o=await E().invokeMethodAsync("AddRootComponent",t,r),i=new w(o,b[t]);return await i.setParameters(n),i}};class y{invoke(e){return this._callback(e)}setCallback(t){this._selfJSObjectReference||(this._selfJSObjectReference=e.createJSObjectReference(this)),this._callback=t}getJSObjectReference(){return this._selfJSObjectReference}dispose(){this._selfJSObjectReference&&e.disposeJSObjectReference(this._selfJSObjectReference)}}class w{constructor(e,t){this._jsEventCallbackWrappers=new Map,this._componentId=e;for(const e of t)"eventcallback"===e.type&&this._jsEventCallbackWrappers.set(e.name.toLowerCase(),new y)}setParameters(e){const t={},n=Object.entries(e||{}),r=n.length;for(const[e,r]of n){const n=this._jsEventCallbackWrappers.get(e.toLowerCase());n&&r?(n.setCallback(r),t[e]=n.getJSObjectReference()):t[e]=r}return E().invokeMethodAsync("SetRootComponentParameters",this._componentId,r,t)}async dispose(){if(null!==this._componentId){await E().invokeMethodAsync("RemoveRootComponent",this._componentId),this._componentId=null;for(const e of this._jsEventCallbackWrappers.values())e.dispose()}}}function E(){if(!p)throw new Error("Dynamic root components have not been enabled in this application.");return p}const S=new Map,C=[],I=new Map;function A(e){return S.has(e)}function N(e,t,n){return D(e,t.eventHandlerId,()=>R(e).invokeMethodAsync("DispatchEventAsync",t,n))}function R(e){const t=S.get(e);if(!t)throw new Error(`No interop methods are registered for renderer ${e}`);return t}let D=(e,t,n)=>n();const k=x(["abort","blur","cancel","canplay","canplaythrough","change","close","cuechange","durationchange","emptied","ended","error","focus","load","loadeddata","loadedmetadata","loadend","loadstart","mouseenter","mouseleave","pointerenter","pointerleave","pause","play","playing","progress","ratechange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeupdate","toggle","unload","volumechange","waiting","DOMNodeInsertedIntoDocument","DOMNodeRemovedFromDocument"]),_={submit:!0},O=x(["click","dblclick","mousedown","mousemove","mouseup"]);class T{static{this.nextEventDelegatorId=0}constructor(e){this.browserRendererId=e,this.afterClickCallbacks=[];const t=++T.nextEventDelegatorId;this.eventsCollectionKey=`_blazorEvents_${t}`,this.eventInfoStore=new L(this.onGlobalEvent.bind(this))}setListener(e,t,n,r){const o=this.getEventHandlerInfosForElement(e,!0),i=o.getHandler(t);if(i)this.eventInfoStore.update(i.eventHandlerId,n);else{const i={element:e,eventName:t,eventHandlerId:n,renderingComponentId:r};this.eventInfoStore.add(i),o.setHandler(t,i)}}getHandler(e){return this.eventInfoStore.get(e)}removeListener(e){const t=this.eventInfoStore.remove(e);if(t){const e=t.element,n=this.getEventHandlerInfosForElement(e,!1);n&&n.removeHandler(t.eventName)}}removeListenersForElement(e){const t=this.getEventHandlerInfosForElement(e,!1);if(t){for(const e of t.enumerateHandlers())this.eventInfoStore.remove(e.eventHandlerId);delete e[this.eventsCollectionKey]}}notifyAfterClick(e){this.afterClickCallbacks.push(e),this.eventInfoStore.addGlobalListener("click")}setStopPropagation(e,t,n){const r=this.getEventHandlerInfosForElement(e,!0),o=r.stopPropagation(t);r.stopPropagation(t,n),!o&&n?this.eventInfoStore.addGlobalListener(t):o&&!n&&this.eventInfoStore.decrementCountByEventName(t)}setPreventDefault(e,t,n){const r=this.getEventHandlerInfosForElement(e,!0),o=r.preventDefault(t);r.preventDefault(t,n),!o&&n?this.eventInfoStore.addActiveGlobalListener(t):o&&!n&&this.eventInfoStore.decrementCountByEventName(t)}onGlobalEvent(e){if(!(e.target instanceof Element))return;if(!A(this.browserRendererId))return;this.dispatchGlobalEventToAllElements(e.type,e);const t=(n=e.type,s.get(n));var n;t&&t.forEach(t=>this.dispatchGlobalEventToAllElements(t,e)),"click"===e.type&&this.afterClickCallbacks.forEach(t=>t(e))}dispatchGlobalEventToAllElements(e,t){const n=t.composedPath();let r=n.shift(),i=null,s=!1;const a=Object.prototype.hasOwnProperty.call(k,e);let l=!1;for(;r;){const u=r,d=this.getEventHandlerInfosForElement(u,!1);if(d){const n=d.getHandler(e);if(n&&!M(u,t.type)){if(!s){const n=c(e);i=n?.createEventArgs?n.createEventArgs(t):{},s=!0}Object.prototype.hasOwnProperty.call(_,t.type)&&t.preventDefault(),N(this.browserRendererId,{eventHandlerId:n.eventHandlerId,eventName:e,eventFieldInfo:o.fromEvent(n.renderingComponentId,t)},i)}d.stopPropagation(e)&&(l=!0),d.preventDefault(e)&&t.preventDefault()}r=a||l?void 0:n.shift()}}getEventHandlerInfosForElement(e,t){return Object.prototype.hasOwnProperty.call(e,this.eventsCollectionKey)?e[this.eventsCollectionKey]:t?e[this.eventsCollectionKey]=new F:null}}class L{constructor(e){this.globalListener=e,this.infosByEventHandlerId={},this.countByEventName={},a.push(this.handleEventNameAliasAdded.bind(this))}add(e){if(this.infosByEventHandlerId[e.eventHandlerId])throw new Error(`Event ${e.eventHandlerId} is already tracked`);this.infosByEventHandlerId[e.eventHandlerId]=e,this.addGlobalListener(e.eventName)}get(e){return this.infosByEventHandlerId[e]}addGlobalListener(e){if(e=l(e),Object.prototype.hasOwnProperty.call(this.countByEventName,e))this.countByEventName[e]++;else{this.countByEventName[e]=1;const t=Object.prototype.hasOwnProperty.call(k,e);document.addEventListener(e,this.globalListener,t)}}addActiveGlobalListener(e){e=l(e),Object.prototype.hasOwnProperty.call(this.countByEventName,e)?(this.countByEventName[e]++,document.removeEventListener(e,this.globalListener)):this.countByEventName[e]=1;const t=Object.prototype.hasOwnProperty.call(k,e);document.addEventListener(e,this.globalListener,{capture:t,passive:!1})}update(e,t){if(Object.prototype.hasOwnProperty.call(this.infosByEventHandlerId,t))throw new Error(`Event ${t} is already tracked`);const n=this.infosByEventHandlerId[e];delete this.infosByEventHandlerId[e],n.eventHandlerId=t,this.infosByEventHandlerId[t]=n}remove(e){const t=this.infosByEventHandlerId[e];if(t){delete this.infosByEventHandlerId[e];const n=l(t.eventName);this.decrementCountByEventName(n)}return t}decrementCountByEventName(e){0===--this.countByEventName[e]&&(delete this.countByEventName[e],document.removeEventListener(e,this.globalListener))}handleEventNameAliasAdded(e,t){if(Object.prototype.hasOwnProperty.call(this.countByEventName,e)){const n=this.countByEventName[e];delete this.countByEventName[e],document.removeEventListener(e,this.globalListener),this.addGlobalListener(t),this.countByEventName[t]+=n-1}}}class F{constructor(){this.handlers={},this.preventDefaultFlags=null,this.stopPropagationFlags=null}*enumerateHandlers(){for(const e in this.handlers)Object.prototype.hasOwnProperty.call(this.handlers,e)&&(yield this.handlers[e])}getHandler(e){return Object.prototype.hasOwnProperty.call(this.handlers,e)?this.handlers[e]:null}setHandler(e,t){this.handlers[e]=t}removeHandler(e){delete this.handlers[e]}preventDefault(e,t){return void 0!==t&&(this.preventDefaultFlags=this.preventDefaultFlags||{},this.preventDefaultFlags[e]=t),!!this.preventDefaultFlags&&this.preventDefaultFlags[e]}stopPropagation(e,t){return void 0!==t&&(this.stopPropagationFlags=this.stopPropagationFlags||{},this.stopPropagationFlags[e]=t),!!this.stopPropagationFlags&&this.stopPropagationFlags[e]}}function x(e){const t={};return e.forEach(e=>{t[e]=!0}),t}function M(e,t){return(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&Object.prototype.hasOwnProperty.call(O,t)&&e.disabled}const P=/^\s*Blazor-WebAssembly-Component-State:(?[a-zA-Z0-9+/=]+)$/,B=/^\s*Blazor-WebAssembly:[^{]*(?.*)$/;function H(e,t,n="state"){if(e.nodeType===Node.COMMENT_NODE){const r=e.textContent||"",o=t.exec(r),i=o&&o.groups&&o.groups[n];return i&&e.parentNode?.removeChild(e),i}if(!e.hasChildNodes())return;const r=e.childNodes;for(let e=0;e.*)$/);function z(e,t){const n=e.currentElement;var r,o,i;if(n&&n.nodeType===Node.COMMENT_NODE&&n.textContent){const s=J.exec(n.textContent),a=s&&s.groups&&s.groups.descriptor;if(!a)return;!function(e){if(e.parentNode instanceof Document)throw new Error("Root components cannot be marked as interactive. The element must be rendered statically so that scripts are not evaluated multiple times.")}(n);try{const s=function(e){const t=JSON.parse(e),{type:n}=t;if("server"!==n&&"webassembly"!==n&&"auto"!==n)throw new Error(`Invalid component type '${n}'.`);return t}(a),c=function(e,t,n){const{prerenderId:r}=e;if(r){for(;n.next()&&n.currentElement;){const e=n.currentElement;if(e.nodeType!==Node.COMMENT_NODE)continue;if(!e.textContent)continue;const t=J.exec(e.textContent),o=t&&t[1];if(o)return V(o,r),e}throw new Error(`Could not find an end component comment for '${t}'.`)}}(s,n,e);if(t!==s.type)return;switch(s.type){case"webassembly":return o=n,i=c,U(r=s),{...r,uniqueId:W++,start:o,end:i};case"server":return function(e,t,n){return $(e),{...e,uniqueId:W++,start:t,end:n}}(s,n,c);case"auto":return function(e,t,n){return $(e),U(e),{...e,uniqueId:W++,start:t,end:n}}(s,n,c)}}catch(e){throw new Error(`Found malformed component comment at ${n.textContent}`)}}}let W=0;function $(e){const{descriptor:t,sequence:n}=e;if(!t)throw new Error("descriptor must be defined when using a descriptor.");if(void 0===n)throw new Error("sequence must be defined when using a descriptor.");if(!Number.isInteger(n))throw new Error(`Error parsing the sequence '${n}' for component '${JSON.stringify(e)}'`)}function U(e){const{assembly:t,typeName:n}=e;if(!t)throw new Error("assembly must be defined when using a descriptor.");if(!n)throw new Error("typeName must be defined when using a descriptor.");e.parameterDefinitions=e.parameterDefinitions&&atob(e.parameterDefinitions),e.parameterValues=e.parameterValues&&atob(e.parameterValues)}function V(e,t){const n=JSON.parse(e);if(1!==Object.keys(n).length)throw new Error(`Invalid end of component comment: '${e}'`);const r=n.prerenderId;if(!r)throw new Error(`End of component comment must have a value for the prerendered property: '${e}'`);if(r!==t)throw new Error(`End of component comment prerendered property must match the start comment prerender id: '${t}', '${r}'`)}class K{constructor(e){this.childNodes=e,this.currentIndex=-1,this.length=e.length}next(){return this.currentIndex++,this.currentIndex0){if(!t)throw new Error("New logical elements must start empty, or allowExistingContents must be true");e.childNodes.forEach(t=>{if(function(e){if(e.nodeType!==Node.COMMENT_NODE)return!1;const t=e.textContent||"";return t.trim().startsWith("Blazor-Server-Component-State:")||t.trim().startsWith("Blazor-WebAssembly-Component-State:")||t.trim().startsWith("Blazor-Web-Initializers:")||t.trim().startsWith("Blazor-WebAssembly:")}(t))return;const r=q(t,!0);r[X]=e,n.push(r)})}return e[G]=n,e}function Z(e){const t=ie(e);for(;t.length;)te(e,0)}function Q(e,t){const n=document.createComment("!");return ee(n,e,t),n}function ee(e,t,n){const r=e;let o=e;if(e instanceof Comment){const t=ie(r);if(t?.length>0){const t=de(r),n=new Range;n.setStartBefore(e),n.setEndAfter(t),o=n.extractContents()}}const i=ne(r);if(i){const e=ie(i),t=Array.prototype.indexOf.call(e,r);e.splice(t,1),delete r[X]}const s=ie(t);if(n0;)te(n,0)}const r=n;r.parentNode.removeChild(r)}function ne(e){return e[X]||null}function re(e,t){return ie(e)[t]}function oe(e){const t=le(e);return"http://www.w3.org/2000/svg"===t.namespaceURI&&"foreignObject"!==t.tagName}function ie(e){return e[G]}function se(e){const t=ie(ne(e));return t[Array.prototype.indexOf.call(t,e)+1]||null}function*ae(e){const t=ie(e);for(const e of t)yield*ae(e);yield e}function ce(e,t){const n=ie(e);t.forEach(e=>{e.moveRangeStart=n[e.fromSiblingIndex],e.moveRangeEnd=de(e.moveRangeStart)}),t.forEach(t=>{const r=document.createComment("marker");t.moveToBeforeMarker=r;const o=n[t.toSiblingIndex+1];o?o.parentNode.insertBefore(r,o):ue(r,e)}),t.forEach(e=>{const t=e.moveToBeforeMarker,n=t.parentNode,r=e.moveRangeStart,o=e.moveRangeEnd;let i=r;for(;i;){const e=i.nextSibling;if(n.insertBefore(i,t),i===o)break;i=e}n.removeChild(t)}),t.forEach(e=>{n[e.toSiblingIndex]=e.moveRangeStart})}function le(e){if(e instanceof Element||e instanceof DocumentFragment)return e;if(e instanceof Comment)return e.parentNode;throw new Error("Not a valid logical element")}function ue(e,t){if(t instanceof Element||t instanceof DocumentFragment)t.appendChild(e);else{if(!(t instanceof Comment))throw new Error(`Cannot append node because the parent is not a valid logical element. Parent: ${t}`);{const n=se(t);n?n.parentNode.insertBefore(e,n):ue(e,ne(t))}}}function de(e){if(e instanceof Element||e instanceof DocumentFragment)return e;const t=se(e);if(t)return t.previousSibling;{const t=ne(e);return t instanceof Element||t instanceof DocumentFragment?t.lastChild:de(t)}}function fe(e){return`_bl_${e}`}const me="__internalId";e.attachReviver((e,t)=>t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,me)&&"string"==typeof t[me]?function(e){const t=`[${fe(e)}]`;return document.querySelector(t)}(t[me]):t);const he="_blazorDeferredValue";function pe(e){return"select-multiple"===e.type}function be(e,t){e.value=t||""}function ge(e,t){e instanceof HTMLSelectElement?pe(e)?function(e,t){t||=[];for(let n=0;n{Me()&&function(e){if(0!==e.button||function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e))return;if(e.defaultPrevented)return;const t=function(e){const t=e.composedPath&&e.composedPath();if(t)for(let e=0;e{const t=document.createElement("script");t.textContent=e.textContent,e.getAttributeNames().forEach(n=>{t.setAttribute(n,e.getAttribute(n))}),e.parentNode.replaceChild(t,e)}),ye.content));var s;let a=0;for(;i.firstChild;)ee(i.firstChild,o,a++)}applyAttribute(e,t,n,r){const o=e.frameReader,i=o.attributeName(r),s=o.attributeEventHandlerId(r);if(s){const e=Re(i);return void this.eventDelegator.setListener(n,e,s,t)}const a=o.attributeValue(r);this.setOrRemoveAttributeOrProperty(n,i,a)}insertFrameRange(e,t,n,r,o,i,s){const a=r;for(let a=i;adocument.baseURI,getLocationHref:()=>location.href,scrollToElement:Fe};function Ue(e,t,n=!1){const r=xe(e);!t.forceLoad&&Le(r)?Ve(r,!1,t.replaceHistoryEntry,t.historyEntryState,n):function(e,t){if(location.href===e){const t=e+"?";history.replaceState(null,"",t),location.replace(e)}else t?location.replace(e):location.href=e}(e,t.replaceHistoryEntry)}async function Ve(e,t,n,r=void 0,o=!1){if(Xe(),function(e,t){const n=new URL(e),r=new URL(t);return n.origin===r.origin&&n.pathname===r.pathname&&n.search===r.search&&""!==r.hash}(location.href,e))return Ke(e,n,r),void function(e){const t=e.indexOf("#");t!==e.length-1&&Fe(e.substring(t+1))}(e);const i=Qe();(o||!i?.hasLocationChangingEventListeners||await Ye(e,r,t,i))&&(function(e,t){const n=new URL(e),r=new URL(t);return n.protocol===r.protocol&&n.host===r.host&&n.port===r.port&&n.pathname===r.pathname}(e,location.href)||(Oe=!0),Ke(e,n,r),await qe(t))}function Ke(e,t,n=void 0){t?history.replaceState({userState:n,_index:He},"",e):(He++,history.pushState({userState:n,_index:He},"",e))}function Ge(e){return new Promise(t=>{const n=ze;ze=()=>{ze=n,t()},history.go(e)})}function Xe(){We&&(We(!1),We=null)}function Ye(e,t,n,r){return new Promise(o=>{Xe(),je++,We=o,r.locationChanging(je,e,t,n)})}async function qe(e,t){const n=location.href;await Promise.all(Array.from(Je,async([t,r])=>{A(t)&&await r.locationChanged(n,history.state?.userState,e)}))}async function Ze(e){ze&&(Me(),1)&&await ze(e),He=history.state?._index??0}function Qe(){const e=Pe();if(void 0!==e)return Je.get(e)}const et={focus:function(e,t){if(e instanceof HTMLElement)e.focus({preventScroll:t});else{if(!(e instanceof SVGElement))throw new Error("Unable to focus an invalid element.");if(!e.hasAttribute("tabindex"))throw new Error("Unable to focus an SVG element that does not have a tabindex.");e.focus({preventScroll:t})}},focusBySelector:function(e){const t=document.querySelector(e);t&&(t.hasAttribute("tabindex")||(t.tabIndex=-1),t.focus({preventScroll:!0}))}},tt={init:function(e,t,n,r=50){if(!(t&&n&&t.isConnected&&n.isConnected))return;const o=rt(t);(o||document.documentElement).style.overflowAnchor="none";const i=document.createRange();f(n.parentElement)&&(t.style.display="table-row",n.style.display="table-row");const s=new IntersectionObserver(function(r){r.forEach(r=>{if(!r.isIntersecting)return;if(!t.isConnected||!n.isConnected)return;i.setStartAfter(t),i.setEndBefore(n);const o=i.getBoundingClientRect().height,s=r.rootBounds?.height;r.target===t?e.invokeMethodAsync("OnSpacerBeforeVisible",r.intersectionRect.top-r.boundingClientRect.top,o,s):r.target===n&&n.offsetHeight>0&&e.invokeMethodAsync("OnSpacerAfterVisible",r.boundingClientRect.bottom-r.intersectionRect.bottom,o,s)})},{root:o,rootMargin:`${r}px`});s.observe(t),s.observe(n);const a=d(t),c=d(n),{observersByDotNetObjectId:l,id:u}=ot(e);function d(e){const t={attributes:!0},n=new MutationObserver((n,r)=>{e.isConnected&&(f(e.parentElement)&&(r.disconnect(),e.style.display="table-row",r.observe(e,t)),s.unobserve(e),s.observe(e))});return n.observe(e,t),n}function f(e){return null!==e&&(e instanceof HTMLTableElement&&""===e.style.display||"table"===e.style.display||e instanceof HTMLTableSectionElement&&""===e.style.display||"table-row-group"===e.style.display)}l[u]={intersectionObserver:s,mutationObserverBefore:a,mutationObserverAfter:c}},dispose:function(e){const{observersByDotNetObjectId:t,id:n}=ot(e),r=t[n];r&&(r.intersectionObserver.disconnect(),r.mutationObserverBefore.disconnect(),r.mutationObserverAfter.disconnect(),delete t[n]),e.dispose()}},nt=Symbol();function rt(e){return e&&e!==document.body&&e!==document.documentElement?"visible"!==getComputedStyle(e).overflowY?e:rt(e.parentElement):null}function ot(e){const t=e._callDispatcher,n=e._id;return t[nt]??={},{observersByDotNetObjectId:t[nt],id:n}}const it={getAndRemoveExistingTitle:function(){const e=document.head?document.head.getElementsByTagName("title"):[];if(0===e.length)return null;let t=null;for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.previousSibling;o instanceof Comment&&null!==ne(o)||(null===t&&(t=r.textContent),r.parentNode?.removeChild(r))}return t}},st={init:function(e,t){t._blazorInputFileNextFileId=0,t.addEventListener("click",function(){t.value=""}),t.addEventListener("change",function(){t._blazorFilesById={};const n=Array.prototype.map.call(t.files,function(e){const n={id:++t._blazorInputFileNextFileId,lastModified:new Date(e.lastModified).toISOString(),name:e.name,size:e.size,contentType:e.type,readPromise:void 0,arrayBuffer:void 0,blob:e};return t._blazorFilesById[n.id]=n,n});e.invokeMethodAsync("NotifyChange",n)})},toImageFile:async function(e,t,n,r,o){const i=at(e,t),s=await new Promise(function(e){const t=new Image;t.onload=function(){URL.revokeObjectURL(t.src),e(t)},t.onerror=function(){t.onerror=null,URL.revokeObjectURL(t.src)},t.src=URL.createObjectURL(i.blob)}),a=await new Promise(function(e){const t=Math.min(1,r/s.width),i=Math.min(1,o/s.height),a=Math.min(t,i),c=document.createElement("canvas");c.width=Math.round(s.width*a),c.height=Math.round(s.height*a),c.getContext("2d")?.drawImage(s,0,0,c.width,c.height),c.toBlob(e,n)}),c={id:++e._blazorInputFileNextFileId,lastModified:i.lastModified,name:i.name,size:a?.size||0,contentType:n,blob:a||i.blob};return e._blazorFilesById[c.id]=c,c},readFileData:async function(e,t){return at(e,t).blob}};function at(e,t){const n=e._blazorFilesById[t];if(!n)throw new Error(`There is no file with ID ${t}. The file list may have changed. See https://aka.ms/aspnet/blazor-input-file-multiple-selections.`);return n}const ct=new Set,lt={enableNavigationPrompt:function(e){0===ct.size&&window.addEventListener("beforeunload",ut),ct.add(e)},disableNavigationPrompt:function(e){ct.delete(e),0===ct.size&&window.removeEventListener("beforeunload",ut)}};function ut(e){e.preventDefault(),e.returnValue=!0}const dt=new Map,ft={navigateTo:function(e,t,n=!1){Ue(e,t instanceof Object?t:{forceLoad:t,replaceHistoryEntry:n})},registerCustomEventType:function(e,t){if(!t)throw new Error("The options parameter is required.");if(i.has(e))throw new Error(`The event '${e}' is already registered.`);if(t.browserEventName){const n=s.get(t.browserEventName);n?n.push(e):s.set(t.browserEventName,[e]),a.forEach(n=>n(e,t.browserEventName))}i.set(e,t)},rootComponents:v,runtime:{},_internal:{navigationManager:$e,domWrapper:et,Virtualize:tt,PageTitle:it,InputFile:st,NavigationLock:lt,getJSDataStreamChunk:async function(e,t,n){return e instanceof Blob?await async function(e,t,n){const r=e.slice(t,t+n),o=await r.arrayBuffer();return new Uint8Array(o)}(e,t,n):function(e,t,n){return new Uint8Array(e.buffer,e.byteOffset+t,n)}(e,t,n)},attachWebRendererInterop:function(t,n,r,o){if(S.has(t))throw new Error(`Interop methods are already registered for renderer ${t}`);S.set(t,n),r&&o&&Object.keys(r).length>0&&function(t,n,r){if(p)throw new Error("Dynamic root components have already been enabled.");p=t,b=n;for(const[t,o]of Object.entries(r)){const r=e.findJSFunction(t,0);for(const e of o)r(e,n[e])}}(R(t),r,o),I.get(t)?.[0]?.(),function(e){for(const t of C)t(e)}(t)}}};window.Blazor=ft;const mt=navigator,ht=mt.userAgentData&&mt.userAgentData.brands,pt=ht&&ht.length>0?ht.some(e=>"Google Chrome"===e.brand||"Microsoft Edge"===e.brand||"Chromium"===e.brand):window.chrome,bt=mt.userAgentData?.platform??navigator.platform;function gt(e){return 0!==e.debugLevel&&(pt||navigator.userAgent.includes("Firefox"))}let vt=!1;function yt(){const e=document.querySelector("#blazor-error-ui");e&&(e.style.display="block"),vt||(vt=!0,document.querySelectorAll("#blazor-error-ui .reload").forEach(e=>{e.onclick=function(e){location.reload(),e.preventDefault()}}),document.querySelectorAll("#blazor-error-ui .dismiss").forEach(e=>{e.onclick=function(e){const t=document.querySelector("#blazor-error-ui");t&&(t.style.display="none"),e.preventDefault()}}))}var wt,Et;!function(e){e[e.Default=0]="Default",e[e.Server=1]="Server",e[e.WebAssembly=2]="WebAssembly",e[e.WebView=3]="WebView"}(wt||(wt={})),function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"}(Et||(Et={}));class St{constructor(e=!0,t,n,r=0){this.singleRuntime=e,this.logger=t,this.webRendererId=r,this.afterStartedCallbacks=[],n&&this.afterStartedCallbacks.push(...n)}async importInitializersAsync(e,t){await Promise.all(e.map(e=>async function(e,n){let r;var o;n.moduleExports||(o=n.name,r=new URL(o,document.baseURI).toString(),n.moduleExports=await import(r));const i=n.moduleExports;if(void 0!==i){if(e.singleRuntime){const{beforeStart:n,afterStarted:r,beforeWebAssemblyStart:o,afterWebAssemblyStarted:a,beforeServerStart:c,afterServerStarted:l}=i;let u=n;e.webRendererId===wt.Server&&c&&(u=c),e.webRendererId===wt.WebAssembly&&o&&(u=o);let d=r;return e.webRendererId===wt.Server&&l&&(d=l),e.webRendererId===wt.WebAssembly&&a&&(d=a),s(e,u,d,t)}return function(e,t,n){const o=n[0],{beforeStart:i,afterStarted:a,beforeWebStart:c,afterWebStarted:l,beforeWebAssemblyStart:u,afterWebAssemblyStarted:d,beforeServerStart:f,afterServerStarted:m}=t,h=!(c||l||u||d||f||m||!i&&!a),p=h&&o.enableClassicInitializers;if(h&&!o.enableClassicInitializers)e.logger?.log(Et.Warning,`Initializer '${r}' will be ignored because multiple runtimes are available. Use 'before(Web|WebAssembly|Server)Start' and 'after(Web|WebAssembly|Server)Started' instead.`);else if(p)return s(e,i,a,n);if(function(e){e.webAssembly?e.webAssembly.initializers||(e.webAssembly.initializers={beforeStart:[],afterStarted:[]}):e.webAssembly={initializers:{beforeStart:[],afterStarted:[]}},e.circuit?e.circuit.initializers||(e.circuit.initializers={beforeStart:[],afterStarted:[]}):e.circuit={initializers:{beforeStart:[],afterStarted:[]}}}(o),u&&o.webAssembly.initializers.beforeStart.push(u),d&&o.webAssembly.initializers.afterStarted.push(d),f&&o.circuit.initializers.beforeStart.push(f),m&&o.circuit.initializers.afterStarted.push(m),l&&e.afterStartedCallbacks.push(l),c)return c(o)}(e,i,t)}function s(e,t,n,r){if(n&&e.afterStartedCallbacks.push(n),t)return t(...r)}}(this,e)))}async invokeAfterStartedCallbacks(e){const t=(n=this.webRendererId,I.get(n)?.[1]);var n;t&&await t,await Promise.all(this.afterStartedCallbacks.map(t=>t(e)))}}let Ct,It,At,Nt,Rt=null;const Dt={load:function(e,t){return async function(e,t){const{dotnet:n}=await async function(e){if("undefined"==typeof WebAssembly||!WebAssembly.validate)throw new Error("This browser does not support WebAssembly.");if(e.loadBootResource){const t="dotnetjs",n=e.loadBootResource(t,"dotnet.js","_framework/dotnet.js","","js-module-dotnet");if("string"==typeof n){const e=new URL(n,document.baseURI).toString();return await import(e)}if(n)throw new Error(`For a ${t} resource, custom loaders must supply a URI string.`)}return await import("./dotnet.js")}(e),r=function(e,t){const n={maxParallelDownloads:1e6,enableDownloadRetry:!1};e.environment&&(n.applicationEnvironment=e.environment);const r={...window.Module||{},onConfigLoaded:async n=>{n.environmentVariables||(n.environmentVariables={}),"sharded"===n.globalizationMode&&(n.environmentVariables.__BLAZOR_SHARDED_ICU="1"),ft._internal.getApplicationEnvironment=()=>n.applicationEnvironment,t?.(n),Nt=await async function(e,t){if(e.initializers)return await Promise.all(e.initializers.beforeStart.map(t=>t(e))),new St(!1,void 0,e.initializers.afterStarted,wt.WebAssembly);{const n=[e,t.resources?.extensions??{}],r=new St(!0,void 0,void 0,wt.WebAssembly),o=t?.resources?.libraryInitializers;let i;return i=o?"length"in o?o:Object.keys(o).map(e=>({name:e})):[],await r.importInitializersAsync(i,n),r}}(e,n)},onDownloadResourceProgress:kt,config:n,out:Ot,err:Tt};return r}(e,t);e.applicationCulture&&n.withApplicationCulture(e.applicationCulture),e.environment&&n.withApplicationEnvironment(e.environment),e.loadBootResource&&n.withResourceLoader(e.loadBootResource),n.withModuleConfig(r),e.configureRuntime&&e.configureRuntime(n),At=await n.create()}(e,t)},start:function(){return async function(){if(!At)throw new Error("The runtime must be loaded it gets configured.");const{setModuleImports:t,INTERNAL:n,getConfig:r,invokeLibraryInitializers:o}=At;It=n,function(e){const t=bt.match(/^Mac/i)?"Cmd":"Alt";gt(e)&&console.info(`Debugging hotkey: Shift+${t}+D (when application has focus)`),document.addEventListener("keydown",t=>{t.shiftKey&&(t.metaKey||t.altKey)&&"KeyD"===t.code&&(gt(e)?navigator.userAgent.includes("Firefox")?async function(){const e=await fetch(`_framework/debug?url=${encodeURIComponent(location.href)}&isFirefox=true`);200!==e.status&&console.warn(await e.text())}():pt?function(){const e=document.createElement("a");e.href=`_framework/debug?url=${encodeURIComponent(location.href)}`,e.target="_blank",e.rel="noopener noreferrer",e.click()}():console.error("Currently, only Microsoft Edge (80+), Google Chrome, or Chromium, are supported for debugging."):console.error("Cannot start debugging, because the application was not compiled with debugging enabled."))})}(r()),ft.runtime=At,ft._internal.dotNetCriticalError=Tt,t("blazor-internal",{Blazor:{_internal:ft._internal}});const i=await At.getAssemblyExports("Microsoft.AspNetCore.Components.WebAssembly");return Object.assign(ft._internal,{dotNetExports:{...i.Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime}}),Ct=e.attachDispatcher({beginInvokeDotNetFromJS:(e,t,n,r,o)=>{if(Lt(),!r&&!t)throw new Error("Either assemblyName or dotNetObjectId must have a non null value.");const i=r?r.toString():t;ft._internal.dotNetExports.BeginInvokeDotNet(e?e.toString():null,i,n,o)},endInvokeJSFromDotNet:(e,t,n)=>{ft._internal.dotNetExports.EndInvokeJS(n)},sendByteArray:(e,t)=>{ft._internal.dotNetExports.ReceiveByteArrayFromJS(e,t)},invokeDotNetFromJS:(e,t,n,r)=>(Lt(),ft._internal.dotNetExports.InvokeDotNet(e||null,t,n??0,r))}),{invokeLibraryInitializers:o}}()},callEntryPoint:async function(){try{await At.runMain(At.getConfig().mainAssemblyName,[])}catch(e){console.error(e),yt()}},getArrayEntryPtr:function(e,t,n){const r=function(e){return e+12}(e)+4+t*n;return r},getObjectFieldsBaseAddress:function(e){return e+8},readInt16Field:function(e,t){return At.getHeapI16(e+(t||0))},readInt32Field:function(e,t){return At.getHeapI32(e+(t||0))},readUint64Field:function(e,t){return At.getHeapU52(e+(t||0))},readObjectField:function(e,t){return At.getHeapU32(e+(t||0))},readStringField:function(e,t,n){const r=At.getHeapU32(e+(t||0));if(0===r)return null;if(n){const e=It.monoObjectAsBoolOrNullUnsafe(r);if("boolean"==typeof e)return e?"":null}return It.monoStringToStringUnsafe(r)},readStructField:function(e,t){return e+(t||0)},beginHeapLock:function(){return Lt(),Rt=Ft.create(),Rt},invokeWhenHeapUnlocked:function(e){Rt?Rt.enqueuePostReleaseAction(e):e()}};function kt(e,t){const n=e/t*100;document.documentElement.style.setProperty("--blazor-load-percentage",`${n}%`),document.documentElement.style.setProperty("--blazor-load-percentage-text",`"${Math.floor(n)}%"`)}const _t=["DEBUGGING ENABLED"],Ot=e=>_t.indexOf(e)<0&&console.log(e),Tt=e=>{console.error(e||"(null)"),yt()};function Lt(){if(Rt)throw new Error("Assertion failed - heap is currently locked")}class Ft{enqueuePostReleaseAction(e){this.postReleaseActions||(this.postReleaseActions=[]),this.postReleaseActions.push(e)}release(){if(Rt!==this)throw new Error("Trying to release a lock which isn't current");for(It.mono_wasm_gc_unlock(),Rt=null;this.postReleaseActions?.length;)this.postReleaseActions.shift()(),Lt()}static create(){return It.mono_wasm_gc_lock(),new Ft}}class xt{constructor(e){this.batchAddress=e,this.arrayRangeReader=Mt,this.arrayBuilderSegmentReader=Pt,this.diffReader=Bt,this.editReader=Ht,this.frameReader=jt}updatedComponents(){return t.readStructField(this.batchAddress,0)}referenceFrames(){return t.readStructField(this.batchAddress,Mt.structLength)}disposedComponentIds(){return t.readStructField(this.batchAddress,2*Mt.structLength)}disposedEventHandlerIds(){return t.readStructField(this.batchAddress,3*Mt.structLength)}updatedComponentsEntry(e,t){return Jt(e,t,Bt.structLength)}referenceFramesEntry(e,t){return Jt(e,t,jt.structLength)}disposedComponentIdsEntry(e,n){const r=Jt(e,n,4);return t.readInt32Field(r)}disposedEventHandlerIdsEntry(e,n){const r=Jt(e,n,8);return t.readUint64Field(r)}}const Mt={structLength:8,values:e=>t.readObjectField(e,0),count:e=>t.readInt32Field(e,4)},Pt={structLength:12,values:e=>{const n=t.readObjectField(e,0),r=t.getObjectFieldsBaseAddress(n);return t.readObjectField(r,0)},offset:e=>t.readInt32Field(e,4),count:e=>t.readInt32Field(e,8)},Bt={structLength:4+Pt.structLength,componentId:e=>t.readInt32Field(e,0),edits:e=>t.readStructField(e,4),editsEntry:(e,t)=>Jt(e,t,Ht.structLength)},Ht={structLength:20,editType:e=>t.readInt32Field(e,0),siblingIndex:e=>t.readInt32Field(e,4),newTreeIndex:e=>t.readInt32Field(e,8),moveToSiblingIndex:e=>t.readInt32Field(e,8),removedAttributeName:e=>t.readStringField(e,16)},jt={structLength:36,frameType:e=>t.readInt16Field(e,4),subtreeLength:e=>t.readInt32Field(e,8),elementReferenceCaptureId:e=>t.readStringField(e,16),componentId:e=>t.readInt32Field(e,12),elementName:e=>t.readStringField(e,16),textContent:e=>t.readStringField(e,16),markupContent:e=>t.readStringField(e,16),attributeName:e=>t.readStringField(e,16),attributeValue:e=>t.readStringField(e,24,!0),attributeEventHandlerId:e=>t.readUint64Field(e,8)};function Jt(e,n,r){return t.getArrayEntryPtr(e,n,r)}class zt{constructor(e){this.componentManager=e}resolveRegisteredElement(e){const t=Number.parseInt(e);if(!Number.isNaN(t))return function(e){const{start:t,end:n}=e,r=t[Y];if(r){if(r!==e)throw new Error("The start component comment was already associated with another component descriptor.");return t}const o=t.parentNode;if(!o)throw new Error(`Comment not connected to the DOM ${t.textContent}`);const i=q(o,!0),s=ie(i);t[X]=i,t[Y]=e;const a=q(t);if(n){const e=ie(a),r=Array.prototype.indexOf.call(s,a)+1;let o=null;for(;o!==n;){const n=s.splice(r,1)[0];if(!n)throw new Error("Could not find the end component comment in the parent logical node list");n[X]=t,e.push(n),o=n}}return a}(this.componentManager.resolveRootComponent(t))}getParameterValues(e){return this.componentManager.initialComponents[e].parameterValues}getParameterDefinitions(e){return this.componentManager.initialComponents[e].parameterDefinitions}getTypeName(e){return this.componentManager.initialComponents[e].typeName}getAssembly(e){return this.componentManager.initialComponents[e].assembly}getCount(){return this.componentManager.initialComponents.length}}let Wt,$t,Ut,Vt;new Promise(e=>{Vt=e});const Kt=new Promise(e=>{});let Gt;const Xt=new Promise(e=>{Gt=e});function Yt(e){if(Wt)throw new Error("WebAssembly options have already been configured.");!async function(e){const t=await e;Wt=t,Gt()}(e)}function qt(e,t){if(void 0!==Ut)throw new Error("Blazor WebAssembly has already started.");return Ut=new Promise(Zt.bind(null,e,t)),Ut}async function Zt(e,n,r,o){(function(){if(window.parent!==window&&!window.opener&&window.frameElement){const e=window.sessionStorage&&window.sessionStorage["Microsoft.AspNetCore.Components.WebAssembly.Authentication.CachedAuthSettings"],t=e&&JSON.parse(e);return t&&t.redirect_uri&&location.href.startsWith(t.redirect_uri)}return!1})()&&await new Promise(()=>{});const i=Qt(n);!function(){const e=D;D=(t,n,r)=>{((e,t,n)=>{const r=function(e){return De[e]}(e);r?.eventDelegator.getHandler(t)&&Dt.invokeWhenHeapUnlocked(n)})(t,n,()=>e(t,n,r))}}(),ft._internal.invokeJSJson=en,ft._internal.endInvokeDotNetFromJS=tn,ft._internal.receiveWebAssemblyDotNetDataStream=nn,ft._internal.receiveByteArray=rn;const s=(t=Dt,t);ft.platform=s,ft._internal.renderBatch=(e,t)=>{const n=Dt.beginHeapLock();try{!function(e,t){const n=De[e];if(!n)throw new Error(`There is no browser renderer with ID ${e}.`);const r=t.arrayRangeReader,o=t.updatedComponents(),i=r.values(o),s=r.count(o),a=t.referenceFrames(),c=r.values(a),l=t.diffReader;for(let e=0;e{await Ct.invokeDotNetStaticMethodAsync("Microsoft.AspNetCore.Components.WebAssembly","NotifyLocationChanged",e,t,n)},async(e,t,n,r)=>{const o=await Ct.invokeDotNetStaticMethodAsync("Microsoft.AspNetCore.Components.WebAssembly","NotifyLocationChangingAsync",t,n,r);ft._internal.navigationManager.endLocationChanging(e,o)});const a=new zt(e);ft._internal.registeredComponents={getRegisteredComponentsCount:()=>a.getCount(),getAssembly:e=>a.getAssembly(e),getTypeName:e=>a.getTypeName(e),getParameterDefinitions:e=>a.getParameterDefinitions(e)||"",getParameterValues:e=>a.getParameterValues(e)||""},ft._internal.getPersistedState=()=>H(document,P)||"",ft._internal.getInitialComponentsUpdate=()=>Kt,ft._internal.updateRootComponents=(e,t)=>{ft._internal.dotNetExports?.UpdateRootComponentsCore(e,t)},ft._internal.endUpdateRootComponents=t=>e.onAfterUpdateRootComponents?.(t),ft._internal.attachRootComponentToElement=(e,t,n)=>{const r=a.resolveRegisteredElement(e);r?Te(n,r,t,!1):function(e,t,n){const r="::before";let o=!1;if(e.endsWith("::after"))e=e.slice(0,-7),o=!0;else if(e.endsWith(r))throw new Error(`The '${r}' selector is not supported.`);const i=function(e){const t=h.get(e);if(t)return h.delete(e),t}(e)||document.querySelector(e);if(!i)throw new Error(`Could not find any element matching selector '${e}'.`);Te(n,q(i,!0),t,o)}(e,t,n)};try{await i,await s.start()}catch(e){throw new Error(`Failed to start platform. Reason: ${e}`)}s.callEntryPoint(),Nt.invokeAfterStartedCallbacks(ft),r()}function Qt(e){return $t??=(async()=>{await Xt;const t=Wt??{};t.environment||(t.environment=e?.environmentName??void 0);const n=Wt?.configureRuntime;t.configureRuntime=t=>{n?.(t),e?.environmentVariables&&t.withEnvironmentVariables(e.environmentVariables)},await Dt.load(t,Vt)})(),$t}function en(e,t,n,r,o,i){return 0!==o?(Ct.beginInvokeJSFromDotNet(o,e,r,n,t,i),null):Ct.invokeJSFromDotNet(e,r,n,t,i)}function tn(e,t,n){Ct.endInvokeDotNetFromJS(e,t,n)}function nn(e,t,n,r){!function(e,t,n,r,o){let i=dt.get(t);if(!i){const n=new ReadableStream({start(e){dt.set(t,e),i=e}});e.supplyDotNetStream(t,n)}if(o)i.error(o),dt.delete(t);else if(0===r)i.close(),dt.delete(t);else{const e=n.length===r?n:new Uint8Array(n.buffer,n.byteOffset,r);i.enqueue(e)}}(Ct,e,t,n,r)}function rn(e,t){Ct.receiveByteArray(e,t)}class on{constructor(e){this.initialComponents=e}resolveRootComponent(e){return this.initialComponents[e]}}class sn{constructor(){this._eventListeners=new Map}static create(e){const t=new sn;return e.addEventListener=t.addEventListener.bind(t),e.removeEventListener=t.removeEventListener.bind(t),t}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){this._eventListeners.get(e)?.delete(t)}dispatchEvent(e,t){const n=this._eventListeners.get(e);if(!n)return;const r={...t,type:e};for(const e of n)e(r)}}let an=!1;async function cn(e){if(an)throw new Error("Blazor has already started.");an=!0,Yt(Promise.resolve(e||{})),sn.create(ft);const t=j(document,"webassembly"),n=function(){const e=H(document,B,"options");if(e)return JSON.parse(e)}(),r=new on(t);await qt(r,n)}ft.start=cn,window.DotNet=e,document&&document.currentScript&&"false"!==document.currentScript.getAttribute("autostart")&&cn().catch(Tt)}(); diff --git a/_framework/dotnet.js b/_framework/dotnet.js new file mode 100644 index 0000000000000000000000000000000000000000..e45ac169ac34ea3e5f835983c52e60f8afb9c5df --- /dev/null +++ b/_framework/dotnet.js @@ -0,0 +1,602 @@ +//! Licensed to the .NET Foundation under one or more agreements. +//! The .NET Foundation licenses this file to you under the MIT license. + +var e=!1;const t=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11])),o=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,15,1,13,0,65,1,253,15,65,2,253,15,253,128,2,11])),n=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),r=Symbol.for("wasm promise_control");function i(e,t){let o=null;const n=new Promise((function(n,r){o={isDone:!1,promise:null,resolve:t=>{o.isDone||(o.isDone=!0,n(t),e&&e())},reject:e=>{o.isDone||(o.isDone=!0,r(e),t&&t())}}}));o.promise=n;const i=n;return i[r]=o,{promise:i,promise_control:o}}function s(e){return e[r]}function a(e){e&&function(e){return void 0!==e[r]}(e)||Be(!1,"Promise is not controllable")}const l="__mono_message__",c=["debug","log","trace","warn","info","error"],d="MONO_WASM: ";let u,f,m,g,p,h;function w(e){g=e}function b(e){if(Pe.diagnosticTracing){const t="function"==typeof e?e():e;console.debug(d+t)}}function y(e,...t){console.info(d+e,...t)}function v(e,...t){console.info(e,...t)}function E(e,...t){console.warn(d+e,...t)}function _(e,...t){if(t&&t.length>0&&t[0]&&"object"==typeof t[0]){if(t[0].silent)return;if(t[0].toString)return void console.error(d+e,t[0].toString())}console.error(d+e,...t)}function x(e,t,o){return function(...n){try{let r=n[0];if(void 0===r)r="undefined";else if(null===r)r="null";else if("function"==typeof r)r=r.toString();else if("string"!=typeof r)try{r=JSON.stringify(r)}catch(e){r=r.toString()}t(o?JSON.stringify({method:e,payload:r,arguments:n.slice(1)}):[e+r,...n.slice(1)])}catch(e){m.error(`proxyConsole failed: ${e}`)}}}function j(e,t,o){f=t,g=e,m={...t};const n=`${o}/console`.replace("https://","wss://").replace("http://","ws://");u=new WebSocket(n),u.addEventListener("error",A),u.addEventListener("close",S),function(){for(const e of c)f[e]=x(`console.${e}`,T,!0)}()}function R(e){let t=30;const o=()=>{u?0==u.bufferedAmount||0==t?(e&&v(e),function(){for(const e of c)f[e]=x(`console.${e}`,m.log,!1)}(),u.removeEventListener("error",A),u.removeEventListener("close",S),u.close(1e3,e),u=void 0):(t--,globalThis.setTimeout(o,100)):e&&m&&m.log(e)};o()}function T(e){u&&u.readyState===WebSocket.OPEN?u.send(e):m.log(e)}function A(e){m.error(`[${g}] proxy console websocket error: ${e}`,e)}function S(e){m.debug(`[${g}] proxy console websocket closed: ${e}`,e)}function D(){Pe.preferredIcuAsset=O(Pe.config);let e="invariant"==Pe.config.globalizationMode;if(!e)if(Pe.preferredIcuAsset)Pe.diagnosticTracing&&b("ICU data archive(s) available, disabling invariant mode");else{if("custom"===Pe.config.globalizationMode||"all"===Pe.config.globalizationMode||"sharded"===Pe.config.globalizationMode){const e="invariant globalization mode is inactive and no ICU data archives are available";throw _(`ERROR: ${e}`),new Error(e)}Pe.diagnosticTracing&&b("ICU data archive(s) not available, using invariant globalization mode"),e=!0,Pe.preferredIcuAsset=null}const t="DOTNET_SYSTEM_GLOBALIZATION_INVARIANT",o=Pe.config.environmentVariables;if(void 0===o[t]&&e&&(o[t]="1"),void 0===o.TZ)try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone||null;e&&(o.TZ=e)}catch(e){y("failed to detect timezone, will fallback to UTC")}}function O(e){var t;if((null===(t=e.resources)||void 0===t?void 0:t.icu)&&"invariant"!=e.globalizationMode){const t=e.applicationCulture||(ke?globalThis.navigator&&globalThis.navigator.languages&&globalThis.navigator.languages[0]:Intl.DateTimeFormat().resolvedOptions().locale),o=e.resources.icu;let n=null;if("custom"===e.globalizationMode){if(o.length>=1)return o[0].name}else t&&"all"!==e.globalizationMode?"sharded"===e.globalizationMode&&(n=function(e){const t=e.split("-")[0];return"en"===t||["fr","fr-FR","it","it-IT","de","de-DE","es","es-ES"].includes(e)?"icudt_EFIGS.dat":["zh","ko","ja"].includes(t)?"icudt_CJK.dat":"icudt_no_CJK.dat"}(t)):n="icudt.dat";if(n)for(let e=0;enull},url:e,arrayBuffer:()=>r,json:()=>JSON.parse(r),text:()=>{throw new Error("NotImplementedException")}}}if(o)return globalThis.fetch(e,t||{credentials:"same-origin"});if("function"==typeof read)return{ok:!0,url:e,headers:{length:0,get:()=>null},arrayBuffer:()=>new Uint8Array(read(e,"binary")),json:()=>JSON.parse(read(e,"utf8")),text:()=>read(e,"utf8")}}catch(t){return{ok:!1,url:e,status:500,headers:{length:0,get:()=>null},statusText:"ERR28: "+t,arrayBuffer:()=>{throw t},json:()=>{throw t},text:()=>{throw t}}}throw new Error("No fetch implementation available")}function I(e){return"string"!=typeof e&&Be(!1,"url must be a string"),!M(e)&&0!==e.indexOf("./")&&0!==e.indexOf("../")&&globalThis.URL&&globalThis.document&&globalThis.document.baseURI&&(e=new URL(e,globalThis.document.baseURI).toString()),e}const U=/^[a-zA-Z][a-zA-Z\d+\-.]*?:\/\//,P=/[a-zA-Z]:[\\/]/;function M(e){return Se||Ie?e.startsWith("/")||e.startsWith("\\")||-1!==e.indexOf("///")||P.test(e):U.test(e)}let L,N=0;const $=[],z=[],W=new Map,F={"js-module-threads":!0,"js-module-runtime":!0,"js-module-dotnet":!0,"js-module-native":!0,"js-module-diagnostics":!0},B={...F,"js-module-library-initializer":!0},V={...F,dotnetwasm:!0,heap:!0,manifest:!0},q={...B,manifest:!0},H={...B,dotnetwasm:!0},J={dotnetwasm:!0,symbols:!0},Z={...B,dotnetwasm:!0,symbols:!0},Q={symbols:!0};function G(e){return!("icu"==e.behavior&&e.name!=Pe.preferredIcuAsset)}function K(e,t,o){null!=t||(t=[]),Be(1==t.length,`Expect to have one ${o} asset in resources`);const n=t[0];return n.behavior=o,X(n),e.push(n),n}function X(e){V[e.behavior]&&W.set(e.behavior,e)}function Y(e){Be(V[e],`Unknown single asset behavior ${e}`);const t=W.get(e);if(t&&!t.resolvedUrl)if(t.resolvedUrl=Pe.locateFile(t.name),F[t.behavior]){const e=ge(t);e?("string"!=typeof e&&Be(!1,"loadBootResource response for 'dotnetjs' type should be a URL string"),t.resolvedUrl=e):t.resolvedUrl=ce(t.resolvedUrl,t.behavior)}else if("dotnetwasm"!==t.behavior)throw new Error(`Unknown single asset behavior ${e}`);return t}function ee(e){const t=Y(e);return Be(t,`Single asset for ${e} not found`),t}let te=!1;async function oe(){if(!te){te=!0,Pe.diagnosticTracing&&b("mono_download_assets");try{const e=[],t=[],o=(e,t)=>{!Z[e.behavior]&&G(e)&&Pe.expected_instantiated_assets_count++,!H[e.behavior]&&G(e)&&(Pe.expected_downloaded_assets_count++,t.push(se(e)))};for(const t of $)o(t,e);for(const e of z)o(e,t);Pe.allDownloadsQueued.promise_control.resolve(),Promise.all([...e,...t]).then((()=>{Pe.allDownloadsFinished.promise_control.resolve()})).catch((e=>{throw Pe.err("Error in mono_download_assets: "+e),Xe(1,e),e})),await Pe.runtimeModuleLoaded.promise;const n=async e=>{const t=await e;if(t.buffer){if(!Z[t.behavior]){t.buffer&&"object"==typeof t.buffer||Be(!1,"asset buffer must be array-like or buffer-like or promise of these"),"string"!=typeof t.resolvedUrl&&Be(!1,"resolvedUrl must be string");const e=t.resolvedUrl,o=await t.buffer,n=new Uint8Array(o);pe(t),await Ue.beforeOnRuntimeInitialized.promise,Ue.instantiate_asset(t,e,n)}}else J[t.behavior]?("symbols"===t.behavior&&(await Ue.instantiate_symbols_asset(t),pe(t)),J[t.behavior]&&++Pe.actual_downloaded_assets_count):(t.isOptional||Be(!1,"Expected asset to have the downloaded buffer"),!H[t.behavior]&&G(t)&&Pe.expected_downloaded_assets_count--,!Z[t.behavior]&&G(t)&&Pe.expected_instantiated_assets_count--)},r=[],i=[];for(const t of e)r.push(n(t));for(const e of t)i.push(n(e));Promise.all(r).then((()=>{Ce||Ue.coreAssetsInMemory.promise_control.resolve()})).catch((e=>{throw Pe.err("Error in mono_download_assets: "+e),Xe(1,e),e})),Promise.all(i).then((async()=>{Ce||(await Ue.coreAssetsInMemory.promise,Ue.allAssetsInMemory.promise_control.resolve())})).catch((e=>{throw Pe.err("Error in mono_download_assets: "+e),Xe(1,e),e}))}catch(e){throw Pe.err("Error in mono_download_assets: "+e),e}}}let ne=!1;function re(){if(ne)return;ne=!0;const e=Pe.config,t=[];if(e.assets)for(const t of e.assets)"object"!=typeof t&&Be(!1,`asset must be object, it was ${typeof t} : ${t}`),"string"!=typeof t.behavior&&Be(!1,"asset behavior must be known string"),"string"!=typeof t.name&&Be(!1,"asset name must be string"),t.resolvedUrl&&"string"!=typeof t.resolvedUrl&&Be(!1,"asset resolvedUrl could be string"),t.hash&&"string"!=typeof t.hash&&Be(!1,"asset resolvedUrl could be string"),t.pendingDownload&&"object"!=typeof t.pendingDownload&&Be(!1,"asset pendingDownload could be object"),t.isCore?$.push(t):z.push(t),X(t);else if(e.resources){const o=e.resources;o.wasmNative||Be(!1,"resources.wasmNative must be defined"),o.jsModuleNative||Be(!1,"resources.jsModuleNative must be defined"),o.jsModuleRuntime||Be(!1,"resources.jsModuleRuntime must be defined"),K(z,o.wasmNative,"dotnetwasm"),K(t,o.jsModuleNative,"js-module-native"),K(t,o.jsModuleRuntime,"js-module-runtime"),o.jsModuleDiagnostics&&K(t,o.jsModuleDiagnostics,"js-module-diagnostics");const n=(e,t,o)=>{const n=e;n.behavior=t,o?(n.isCore=!0,$.push(n)):z.push(n)};if(o.coreAssembly)for(let e=0;eglobalThis.setTimeout(e,100))),Pe.diagnosticTracing&&b(`Retrying download (2) '${e.name}' after delay`),await ae(e)}}}async function ae(e){for(;L;)await L.promise;try{++N,N==Pe.maxParallelDownloads&&(Pe.diagnosticTracing&&b("Throttling further parallel downloads"),L=i());const t=await async function(e){if(e.pendingDownload&&(e.pendingDownloadInternal=e.pendingDownload),e.pendingDownloadInternal&&e.pendingDownloadInternal.response)return e.pendingDownloadInternal.response;if(e.buffer){const t=await e.buffer;return e.resolvedUrl||(e.resolvedUrl="undefined://"+e.name),e.pendingDownloadInternal={url:e.resolvedUrl,name:e.name,response:Promise.resolve({ok:!0,arrayBuffer:()=>t,json:()=>JSON.parse(new TextDecoder("utf-8").decode(t)),text:()=>{throw new Error("NotImplementedException")},headers:{get:()=>{}}})},e.pendingDownloadInternal.response}const t=e.loadRemote&&Pe.config.remoteSources?Pe.config.remoteSources:[""];let o;for(let n of t){n=n.trim(),"./"===n&&(n="");const t=le(e,n);e.name===t?Pe.diagnosticTracing&&b(`Attempting to download '${t}'`):Pe.diagnosticTracing&&b(`Attempting to download '${t}' for ${e.name}`);try{e.resolvedUrl=t;const n=fe(e);if(e.pendingDownloadInternal=n,o=await n.response,!o||!o.ok)continue;return o}catch(e){o||(o={ok:!1,url:t,status:0,statusText:""+e});continue}}const n=e.isOptional||e.name.match(/\.pdb$/)&&Pe.config.ignorePdbLoadErrors;if(o||Be(!1,`Response undefined ${e.name}`),!n){const t=new Error(`download '${o.url}' for ${e.name} failed ${o.status} ${o.statusText}`);throw t.status=o.status,t}y(`optional download '${o.url}' for ${e.name} failed ${o.status} ${o.statusText}`)}(e);return t?(J[e.behavior]||(e.buffer=await t.arrayBuffer(),++Pe.actual_downloaded_assets_count),e):e}finally{if(--N,L&&N==Pe.maxParallelDownloads-1){Pe.diagnosticTracing&&b("Resuming more parallel downloads");const e=L;L=void 0,e.promise_control.resolve()}}}function le(e,t){let o;return null==t&&Be(!1,`sourcePrefix must be provided for ${e.name}`),e.resolvedUrl?o=e.resolvedUrl:(o=""===t?"assembly"===e.behavior||"pdb"===e.behavior?e.name:"resource"===e.behavior&&e.culture&&""!==e.culture?`${e.culture}/${e.name}`:e.name:t+e.name,o=ce(Pe.locateFile(o),e.behavior)),o&&"string"==typeof o||Be(!1,"attemptUrl need to be path or url string"),o}function ce(e,t){return Pe.modulesUniqueQuery&&q[t]&&(e+=Pe.modulesUniqueQuery),e}let de=0;const ue=new Set;function fe(e){try{e.resolvedUrl||Be(!1,"Request's resolvedUrl must be set");const t=function(e){let t=e.resolvedUrl;if(Pe.loadBootResource){const o=ge(e);if(o instanceof Promise)return o;"string"==typeof o&&(t=o)}const o={};return e.cache?o.cache=e.cache:Pe.config.disableNoCacheFetch||(o.cache="no-cache"),e.useCredentials?o.credentials="include":!Pe.config.disableIntegrityCheck&&e.hash&&(o.integrity=e.hash),Pe.fetch_like(t,o)}(e),o={name:e.name,url:e.resolvedUrl,response:t};return ue.add(e.name),o.response.then((()=>{"assembly"==e.behavior&&Pe.loadedAssemblies.push(e.name),de++,Pe.onDownloadResourceProgress&&Pe.onDownloadResourceProgress(de,ue.size)})),o}catch(t){const o={ok:!1,url:e.resolvedUrl,status:500,statusText:"ERR29: "+t,arrayBuffer:()=>{throw t},json:()=>{throw t}};return{name:e.name,url:e.resolvedUrl,response:Promise.resolve(o)}}}const me={resource:"assembly",assembly:"assembly",pdb:"pdb",icu:"globalization",vfs:"configuration",manifest:"manifest",dotnetwasm:"dotnetwasm","js-module-dotnet":"dotnetjs","js-module-native":"dotnetjs","js-module-runtime":"dotnetjs","js-module-threads":"dotnetjs"};function ge(e){var t;if(Pe.loadBootResource){const o=null!==(t=e.hash)&&void 0!==t?t:"",n=e.resolvedUrl,r=me[e.behavior];if(r){const t=Pe.loadBootResource(r,e.name,n,o,e.behavior);return"string"==typeof t?I(t):t}}}function pe(e){e.pendingDownloadInternal=null,e.pendingDownload=null,e.buffer=null,e.moduleExports=null}function he(e){let t=e.lastIndexOf("/");return t>=0&&t++,e.substring(t)}async function we(e){e&&await Promise.all((null!=e?e:[]).map((e=>async function(e){try{const t=e.name;if(!e.moduleExports){const o=ce(Pe.locateFile(t),"js-module-library-initializer");Pe.diagnosticTracing&&b(`Attempting to import '${o}' for ${e}`),e.moduleExports=await import(/*! webpackIgnore: true */o)}Pe.libraryInitializers.push({scriptName:t,exports:e.moduleExports})}catch(t){E(`Failed to import library initializer '${e}': ${t}`)}}(e))))}async function be(e,t){if(!Pe.libraryInitializers)return;const o=[];for(let n=0;nr.exports[e](...t))))}await Promise.all(o)}async function ye(e,t,o){try{await o()}catch(o){throw E(`Failed to invoke '${t}' on library initializer '${e}': ${o}`),Xe(1,o),o}}function ve(e,t){if(e===t)return e;const o={...t};return void 0!==o.assets&&o.assets!==e.assets&&(o.assets=[...e.assets||[],...o.assets||[]]),void 0!==o.resources&&(o.resources=_e(e.resources||{assembly:[],jsModuleNative:[],jsModuleRuntime:[],wasmNative:[]},o.resources)),void 0!==o.environmentVariables&&(o.environmentVariables={...e.environmentVariables||{},...o.environmentVariables||{}}),void 0!==o.runtimeOptions&&o.runtimeOptions!==e.runtimeOptions&&(o.runtimeOptions=[...e.runtimeOptions||[],...o.runtimeOptions||[]]),Object.assign(e,o)}function Ee(e,t){if(e===t)return e;const o={...t};return o.config&&(e.config||(e.config={}),o.config=ve(e.config,o.config)),Object.assign(e,o)}function _e(e,t){if(e===t)return e;const o={...t};return void 0!==o.coreAssembly&&(o.coreAssembly=[...e.coreAssembly||[],...o.coreAssembly||[]]),void 0!==o.assembly&&(o.assembly=[...e.assembly||[],...o.assembly||[]]),void 0!==o.lazyAssembly&&(o.lazyAssembly=[...e.lazyAssembly||[],...o.lazyAssembly||[]]),void 0!==o.corePdb&&(o.corePdb=[...e.corePdb||[],...o.corePdb||[]]),void 0!==o.pdb&&(o.pdb=[...e.pdb||[],...o.pdb||[]]),void 0!==o.jsModuleWorker&&(o.jsModuleWorker=[...e.jsModuleWorker||[],...o.jsModuleWorker||[]]),void 0!==o.jsModuleNative&&(o.jsModuleNative=[...e.jsModuleNative||[],...o.jsModuleNative||[]]),void 0!==o.jsModuleDiagnostics&&(o.jsModuleDiagnostics=[...e.jsModuleDiagnostics||[],...o.jsModuleDiagnostics||[]]),void 0!==o.jsModuleRuntime&&(o.jsModuleRuntime=[...e.jsModuleRuntime||[],...o.jsModuleRuntime||[]]),void 0!==o.wasmSymbols&&(o.wasmSymbols=[...e.wasmSymbols||[],...o.wasmSymbols||[]]),void 0!==o.wasmNative&&(o.wasmNative=[...e.wasmNative||[],...o.wasmNative||[]]),void 0!==o.icu&&(o.icu=[...e.icu||[],...o.icu||[]]),void 0!==o.satelliteResources&&(o.satelliteResources=function(e,t){if(e===t)return e;for(const o in t)e[o]=[...e[o]||[],...t[o]||[]];return e}(e.satelliteResources||{},o.satelliteResources||{})),void 0!==o.modulesAfterConfigLoaded&&(o.modulesAfterConfigLoaded=[...e.modulesAfterConfigLoaded||[],...o.modulesAfterConfigLoaded||[]]),void 0!==o.modulesAfterRuntimeReady&&(o.modulesAfterRuntimeReady=[...e.modulesAfterRuntimeReady||[],...o.modulesAfterRuntimeReady||[]]),void 0!==o.extensions&&(o.extensions={...e.extensions||{},...o.extensions||{}}),void 0!==o.vfs&&(o.vfs=[...e.vfs||[],...o.vfs||[]]),Object.assign(e,o)}function xe(){const e=Pe.config;if(e.environmentVariables=e.environmentVariables||{},e.runtimeOptions=e.runtimeOptions||[],e.resources=e.resources||{assembly:[],jsModuleNative:[],jsModuleWorker:[],jsModuleRuntime:[],wasmNative:[],vfs:[],satelliteResources:{}},e.assets){Pe.diagnosticTracing&&b("config.assets is deprecated, use config.resources instead");for(const t of e.assets){const o={};switch(t.behavior){case"assembly":o.assembly=[t];break;case"pdb":o.pdb=[t];break;case"resource":o.satelliteResources={},o.satelliteResources[t.culture]=[t];break;case"icu":o.icu=[t];break;case"symbols":o.wasmSymbols=[t];break;case"vfs":o.vfs=[t];break;case"dotnetwasm":o.wasmNative=[t];break;case"js-module-threads":o.jsModuleWorker=[t];break;case"js-module-runtime":o.jsModuleRuntime=[t];break;case"js-module-native":o.jsModuleNative=[t];break;case"js-module-diagnostics":o.jsModuleDiagnostics=[t];break;case"js-module-dotnet":break;default:throw new Error(`Unexpected behavior ${t.behavior} of asset ${t.name}`)}_e(e.resources,o)}}e.debugLevel,e.applicationEnvironment||(e.applicationEnvironment="Production"),e.applicationCulture&&(e.environmentVariables.LANG=`${e.applicationCulture}.UTF-8`),Ue.diagnosticTracing=Pe.diagnosticTracing=!!e.diagnosticTracing,Ue.waitForDebugger=e.waitForDebugger,Pe.maxParallelDownloads=e.maxParallelDownloads||Pe.maxParallelDownloads,Pe.enableDownloadRetry=void 0!==e.enableDownloadRetry?e.enableDownloadRetry:Pe.enableDownloadRetry}let je=!1;async function Re(e){var t;if(je)return void await Pe.afterConfigLoaded.promise;let o;try{if(e.configSrc||Pe.config&&0!==Object.keys(Pe.config).length&&(Pe.config.assets||Pe.config.resources)||(e.configSrc="dotnet.boot.js"),o=e.configSrc,je=!0,o&&(Pe.diagnosticTracing&&b("mono_wasm_load_config"),await async function(e){const t=e.configSrc,o=Pe.locateFile(t);let n=null;void 0!==Pe.loadBootResource&&(n=Pe.loadBootResource("manifest",t,o,"","manifest"));let r,i=null;if(n)if("string"==typeof n)n.includes(".json")?(i=await s(I(n)),r=await Ae(i)):r=(await import(I(n))).config;else{const e=await n;"function"==typeof e.json?(i=e,r=await Ae(i)):r=e.config}else o.includes(".json")?(i=await s(ce(o,"manifest")),r=await Ae(i)):r=(await import(ce(o,"manifest"))).config;function s(e){return Pe.fetch_like(e,{method:"GET",credentials:"include",cache:"no-cache"})}Pe.config.applicationEnvironment&&(r.applicationEnvironment=Pe.config.applicationEnvironment),ve(Pe.config,r)}(e)),xe(),await we(null===(t=Pe.config.resources)||void 0===t?void 0:t.modulesAfterConfigLoaded),await be("onRuntimeConfigLoaded",[Pe.config]),e.onConfigLoaded)try{await e.onConfigLoaded(Pe.config,Le),xe()}catch(e){throw _("onConfigLoaded() failed",e),e}xe(),Pe.afterConfigLoaded.promise_control.resolve(Pe.config)}catch(t){const n=`Failed to load config file ${o} ${t} ${null==t?void 0:t.stack}`;throw Pe.config=e.config=Object.assign(Pe.config,{message:n,error:t,isError:!0}),Xe(1,new Error(n)),t}}function Te(){return!!globalThis.navigator&&(Pe.isChromium||Pe.isFirefox)}async function Ae(e){const t=Pe.config,o=await e.json();t.applicationEnvironment||o.applicationEnvironment||(o.applicationEnvironment=e.headers.get("Blazor-Environment")||e.headers.get("DotNet-Environment")||void 0),o.environmentVariables||(o.environmentVariables={});const n=e.headers.get("DOTNET-MODIFIABLE-ASSEMBLIES");n&&(o.environmentVariables.DOTNET_MODIFIABLE_ASSEMBLIES=n);const r=e.headers.get("ASPNETCORE-BROWSER-TOOLS");return r&&(o.environmentVariables.__ASPNETCORE_BROWSER_TOOLS=r),o}"function"!=typeof importScripts||globalThis.onmessage||(globalThis.dotnetSidecar=!0);const Se="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,De="function"==typeof importScripts,Oe=De&&"undefined"!=typeof dotnetSidecar,Ce=De&&!Oe,ke="object"==typeof window||De&&!Se,Ie=!ke&&!Se;let Ue={},Pe={},Me={},Le={},Ne={},$e=!1;const ze={},We={config:ze},Fe={mono:{},binding:{},internal:Ne,module:We,loaderHelpers:Pe,runtimeHelpers:Ue,diagnosticHelpers:Me,api:Le};function Be(e,t){if(e)return;const o="Assert failed: "+("function"==typeof t?t():t),n=new Error(o);_(o,n),Ue.nativeAbort(n)}function Ve(){return void 0!==Pe.exitCode}function qe(){return Ue.runtimeReady&&!Ve()}function He(){Ve()&&Be(!1,`.NET runtime already exited with ${Pe.exitCode} ${Pe.exitReason}. You can use runtime.runMain() which doesn't exit the runtime.`),Ue.runtimeReady||Be(!1,".NET runtime didn't start yet. Please call dotnet.create() first.")}function Je(){ke&&(globalThis.addEventListener("unhandledrejection",et),globalThis.addEventListener("error",tt))}let Ze,Qe;function Ge(e){Qe&&Qe(e),Xe(e,Pe.exitReason)}function Ke(e){Ze&&Ze(e||Pe.exitReason),Xe(1,e||Pe.exitReason)}function Xe(t,o){var n,r;const i=o&&"object"==typeof o;t=i&&"number"==typeof o.status?o.status:void 0===t?-1:t;const s=i&&"string"==typeof o.message?o.message:""+o;(o=i?o:Ue.ExitStatus?function(e,t){const o=new Ue.ExitStatus(e);return o.message=t,o.toString=()=>t,o}(t,s):new Error("Exit with code "+t+" "+s)).status=t,o.message||(o.message=s);const a=""+(o.stack||(new Error).stack);try{Object.defineProperty(o,"stack",{get:()=>a})}catch(e){}const l=!!o.silent;if(o.silent=!0,Ve())Pe.diagnosticTracing&&b("mono_exit called after exit");else{try{We.onAbort==Ke&&(We.onAbort=Ze),We.onExit==Ge&&(We.onExit=Qe),ke&&(globalThis.removeEventListener("unhandledrejection",et),globalThis.removeEventListener("error",tt)),Ue.runtimeReady?(Ue.jiterpreter_dump_stats&&Ue.jiterpreter_dump_stats(!1),0===t&&(null===(n=Pe.config)||void 0===n?void 0:n.interopCleanupOnExit)&&Ue.forceDisposeProxies(!0,!0),e&&0!==t&&(null===(r=Pe.config)||void 0===r||r.dumpThreadsOnNonZeroExit)):(Pe.diagnosticTracing&&b(`abort_startup, reason: ${o}`),function(e){Pe.allDownloadsQueued.promise_control.reject(e),Pe.allDownloadsFinished.promise_control.reject(e),Pe.afterConfigLoaded.promise_control.reject(e),Pe.wasmCompilePromise.promise_control.reject(e),Pe.runtimeModuleLoaded.promise_control.reject(e),Ue.dotnetReady&&(Ue.dotnetReady.promise_control.reject(e),Ue.afterInstantiateWasm.promise_control.reject(e),Ue.beforePreInit.promise_control.reject(e),Ue.afterPreInit.promise_control.reject(e),Ue.afterPreRun.promise_control.reject(e),Ue.beforeOnRuntimeInitialized.promise_control.reject(e),Ue.afterOnRuntimeInitialized.promise_control.reject(e),Ue.afterPostRun.promise_control.reject(e))}(o))}catch(e){E("mono_exit A failed",e)}try{l||(function(e,t){if(0!==e&&t){const e=Ue.ExitStatus&&t instanceof Ue.ExitStatus?b:_;"string"==typeof t?e(t):(void 0===t.stack&&(t.stack=(new Error).stack+""),t.message?e(Ue.stringify_as_error_with_stack?Ue.stringify_as_error_with_stack(t.message+"\n"+t.stack):t.message+"\n"+t.stack):e(JSON.stringify(t)))}!Ce&&Pe.config&&(Pe.config.logExitCode?Pe.config.forwardConsoleLogsToWS?R("WASM EXIT "+e):v("WASM EXIT "+e):Pe.config.forwardConsoleLogsToWS&&R())}(t,o),function(e){if(ke&&!Ce&&Pe.config&&Pe.config.appendElementOnExit&&document){const t=document.createElement("label");t.id="tests_done",0!==e&&(t.style.background="red"),t.innerHTML=""+e,document.body.appendChild(t)}}(t))}catch(e){E("mono_exit B failed",e)}Pe.exitCode=t,Pe.exitReason||(Pe.exitReason=o),!Ce&&Ue.runtimeReady&&We.runtimeKeepalivePop()}if(Pe.config&&Pe.config.asyncFlushOnExit&&0===t)throw(async()=>{try{await async function(){try{const e=await import(/*! webpackIgnore: true */"process"),t=e=>new Promise(((t,o)=>{e.on("error",o),e.end("","utf8",t)})),o=t(e.stderr),n=t(e.stdout);let r;const i=new Promise((e=>{r=setTimeout((()=>e("timeout")),1e3)}));await Promise.race([Promise.all([n,o]),i]),clearTimeout(r)}catch(e){_(`flushing std* streams failed: ${e}`)}}()}finally{Ye(t,o)}})(),o;Ye(t,o)}function Ye(e,t){if(Ue.runtimeReady&&Ue.nativeExit)try{Ue.nativeExit(e)}catch(e){!Ue.ExitStatus||e instanceof Ue.ExitStatus||E("set_exit_code_and_quit_now failed: "+e.toString())}if(0!==e||!ke)throw Se&&Ne.process?Ne.process.exit(e):Ue.quit&&Ue.quit(e,t),t}function et(e){ot(e,e.reason,"rejection")}function tt(e){ot(e,e.error,"error")}function ot(e,t,o){e.preventDefault();try{t||(t=new Error("Unhandled "+o)),void 0===t.stack&&(t.stack=(new Error).stack),t.stack=t.stack+"",t.silent||(_("Unhandled error:",t),Xe(1,t))}catch(e){}}!function(e){if($e)throw new Error("Loader module already loaded");$e=!0,Ue=e.runtimeHelpers,Pe=e.loaderHelpers,Me=e.diagnosticHelpers,Le=e.api,Ne=e.internal,Object.assign(Le,{INTERNAL:Ne,invokeLibraryInitializers:be}),Object.assign(e.module,{config:ve(ze,{environmentVariables:{}})});const r={mono_wasm_bindings_is_ready:!1,config:e.module.config,diagnosticTracing:!1,nativeAbort:e=>{throw e||new Error("abort")},nativeExit:e=>{throw new Error("exit:"+e)}},l={gitHash:"8e0f8ed2312954727f8919d7d1c2f78b483b4ee7",config:e.module.config,diagnosticTracing:!1,maxParallelDownloads:16,enableDownloadRetry:!0,_loaded_files:[],loadedFiles:[],loadedAssemblies:[],libraryInitializers:[],workerNextNumber:1,actual_downloaded_assets_count:0,actual_instantiated_assets_count:0,expected_downloaded_assets_count:0,expected_instantiated_assets_count:0,afterConfigLoaded:i(),allDownloadsQueued:i(),allDownloadsFinished:i(),wasmCompilePromise:i(),runtimeModuleLoaded:i(),loadingWorkers:i(),is_exited:Ve,is_runtime_running:qe,assert_runtime_running:He,mono_exit:Xe,createPromiseController:i,getPromiseController:s,assertIsControllablePromise:a,mono_download_assets:oe,resolve_single_asset_path:ee,setup_proxy_console:j,set_thread_prefix:w,installUnhandledErrorHandler:Je,retrieve_asset_download:ie,invokeLibraryInitializers:be,isDebuggingSupported:Te,exceptions:t,simd:n,relaxedSimd:o};Object.assign(Ue,r),Object.assign(Pe,l)}(Fe);let nt,rt,it,st=!1,at=!1;async function lt(e){if(!at){if(at=!0,ke&&Pe.config.forwardConsoleLogsToWS&&void 0!==globalThis.WebSocket&&j("main",globalThis.console,globalThis.location.origin),We||Be(!1,"Null moduleConfig"),Pe.config||Be(!1,"Null moduleConfig.config"),"function"==typeof e){const t=e(Fe.api);if(t.ready)throw new Error("Module.ready couldn't be redefined.");Object.assign(We,t),Ee(We,t)}else{if("object"!=typeof e)throw new Error("Can't use moduleFactory callback of createDotnetRuntime function.");Ee(We,e)}await async function(e){if(Se){const e=await import(/*! webpackIgnore: true */"process"),t=14;if(e.versions.node.split(".")[0]0&&(Pe.modulesUniqueQuery=t.substring(o)),Pe.scriptUrl=t.replace(/\\/g,"/").replace(/[?#].*/,""),Pe.scriptDirectory=(n=Pe.scriptUrl).slice(0,n.lastIndexOf("/"))+"/",Pe.locateFile=e=>"URL"in globalThis&&globalThis.URL!==C?new URL(e,Pe.scriptDirectory).toString():M(e)?e:Pe.scriptDirectory+e,Pe.fetch_like=k,Pe.out=console.log,Pe.err=console.error,Pe.onDownloadResourceProgress=e.onDownloadResourceProgress,ke&&globalThis.navigator){const e=globalThis.navigator,t=e.userAgentData&&e.userAgentData.brands;t&&t.length>0?Pe.isChromium=t.some((e=>"Google Chrome"===e.brand||"Microsoft Edge"===e.brand||"Chromium"===e.brand)):e.userAgent&&(Pe.isChromium=e.userAgent.includes("Chrome"),Pe.isFirefox=e.userAgent.includes("Firefox"))}Ne.require=Se?await import(/*! webpackIgnore: true */"module").then((e=>e.createRequire(/*! webpackIgnore: true */import.meta.url))):Promise.resolve((()=>{throw new Error("require not supported")})),void 0===globalThis.URL&&(globalThis.URL=C)}(We)}}async function ct(e){return await lt(e),Ze=We.onAbort,Qe=We.onExit,We.onAbort=Ke,We.onExit=Ge,We.ENVIRONMENT_IS_PTHREAD?async function(){(function(){const e=new MessageChannel,t=e.port1,o=e.port2;t.addEventListener("message",(e=>{var n,r;n=JSON.parse(e.data.config),r=JSON.parse(e.data.monoThreadInfo),st?Pe.diagnosticTracing&&b("mono config already received"):(ve(Pe.config,n),Ue.monoThreadInfo=r,xe(),Pe.diagnosticTracing&&b("mono config received"),st=!0,Pe.afterConfigLoaded.promise_control.resolve(Pe.config),ke&&n.forwardConsoleLogsToWS&&void 0!==globalThis.WebSocket&&Pe.setup_proxy_console("worker-idle",console,globalThis.location.origin)),t.close(),o.close()}),{once:!0}),t.start(),self.postMessage({[l]:{monoCmd:"preload",port:o}},[o])})(),await Pe.afterConfigLoaded.promise,function(){const e=Pe.config;e.assets||Be(!1,"config.assets must be defined");for(const t of e.assets)X(t),Q[t.behavior]&&z.push(t)}(),setTimeout((async()=>{try{await oe()}catch(e){Xe(1,e)}}),0);const e=dt(),t=await Promise.all(e);return await ut(t),We}():async function(){var e;await Re(We),re();const t=dt();(async function(){try{const e=ee("dotnetwasm");await se(e),e&&e.pendingDownloadInternal&&e.pendingDownloadInternal.response||Be(!1,"Can't load dotnet.native.wasm");const t=await e.pendingDownloadInternal.response,o=t.headers&&t.headers.get?t.headers.get("Content-Type"):void 0;let n;if("function"==typeof WebAssembly.compileStreaming&&"application/wasm"===o)n=await WebAssembly.compileStreaming(t);else{ke&&"application/wasm"!==o&&E('WebAssembly resource does not have the expected content type "application/wasm", so falling back to slower ArrayBuffer instantiation.');const e=await t.arrayBuffer();Pe.diagnosticTracing&&b("instantiate_wasm_module buffered"),n=Ie?await Promise.resolve(new WebAssembly.Module(e)):await WebAssembly.compile(e)}e.pendingDownloadInternal=null,e.pendingDownload=null,e.buffer=null,e.moduleExports=null,Pe.wasmCompilePromise.promise_control.resolve(n)}catch(e){Pe.wasmCompilePromise.promise_control.reject(e)}})(),setTimeout((async()=>{try{D(),await oe()}catch(e){Xe(1,e)}}),0);const o=await Promise.all(t);return await ut(o),await Ue.dotnetReady.promise,await we(null===(e=Pe.config.resources)||void 0===e?void 0:e.modulesAfterRuntimeReady),await be("onRuntimeReady",[Fe.api]),Le}()}function dt(){const e=ee("js-module-runtime"),t=ee("js-module-native");if(nt&&rt)return[nt,rt,it];"object"==typeof e.moduleExports?nt=e.moduleExports:(Pe.diagnosticTracing&&b(`Attempting to import '${e.resolvedUrl}' for ${e.name}`),nt=import(/*! webpackIgnore: true */e.resolvedUrl)),"object"==typeof t.moduleExports?rt=t.moduleExports:(Pe.diagnosticTracing&&b(`Attempting to import '${t.resolvedUrl}' for ${t.name}`),rt=import(/*! webpackIgnore: true */t.resolvedUrl));const o=Y("js-module-diagnostics");return o&&("object"==typeof o.moduleExports?it=o.moduleExports:(Pe.diagnosticTracing&&b(`Attempting to import '${o.resolvedUrl}' for ${o.name}`),it=import(/*! webpackIgnore: true */o.resolvedUrl))),[nt,rt,it]}async function ut(e){const{initializeExports:t,initializeReplacements:o,configureRuntimeStartup:n,configureEmscriptenStartup:r,configureWorkerStartup:i,setRuntimeGlobals:s,passEmscriptenInternals:a}=e[0],{default:l}=e[1],c=e[2];s(Fe),t(Fe),c&&c.setRuntimeGlobals(Fe),await n(We),Pe.runtimeModuleLoaded.promise_control.resolve(),l((e=>(Object.assign(We,{ready:e.ready,__dotnet_runtime:{initializeReplacements:o,configureEmscriptenStartup:r,configureWorkerStartup:i,passEmscriptenInternals:a}}),We))).catch((e=>{if(e.message&&e.message.toLowerCase().includes("out of memory"))throw new Error(".NET runtime has failed to start, because too much memory was requested. Please decrease the memory by adjusting EmccMaximumHeapSize. See also https://aka.ms/dotnet-wasm-features");throw e}))}const ft=new class{withModuleConfig(e){try{return Ee(We,e),this}catch(e){throw Xe(1,e),e}}withOnConfigLoaded(e){try{return Ee(We,{onConfigLoaded:e}),this}catch(e){throw Xe(1,e),e}}withConsoleForwarding(){try{return ve(ze,{forwardConsoleLogsToWS:!0}),this}catch(e){throw Xe(1,e),e}}withExitOnUnhandledError(){try{return ve(ze,{exitOnUnhandledError:!0}),Je(),this}catch(e){throw Xe(1,e),e}}withAsyncFlushOnExit(){try{return ve(ze,{asyncFlushOnExit:!0}),this}catch(e){throw Xe(1,e),e}}withExitCodeLogging(){try{return ve(ze,{logExitCode:!0}),this}catch(e){throw Xe(1,e),e}}withElementOnExit(){try{return ve(ze,{appendElementOnExit:!0}),this}catch(e){throw Xe(1,e),e}}withInteropCleanupOnExit(){try{return ve(ze,{interopCleanupOnExit:!0}),this}catch(e){throw Xe(1,e),e}}withDumpThreadsOnNonZeroExit(){try{return ve(ze,{dumpThreadsOnNonZeroExit:!0}),this}catch(e){throw Xe(1,e),e}}withWaitingForDebugger(e){try{return ve(ze,{waitForDebugger:e}),this}catch(e){throw Xe(1,e),e}}withInterpreterPgo(e,t){try{return ve(ze,{interpreterPgo:e,interpreterPgoSaveDelay:t}),ze.runtimeOptions?ze.runtimeOptions.push("--interp-pgo-recording"):ze.runtimeOptions=["--interp-pgo-recording"],this}catch(e){throw Xe(1,e),e}}withConfig(e){try{return ve(ze,e),this}catch(e){throw Xe(1,e),e}}withConfigSrc(e){try{return e&&"string"==typeof e||Be(!1,"must be file path or URL"),Ee(We,{configSrc:e}),this}catch(e){throw Xe(1,e),e}}withVirtualWorkingDirectory(e){try{return e&&"string"==typeof e||Be(!1,"must be directory path"),ve(ze,{virtualWorkingDirectory:e}),this}catch(e){throw Xe(1,e),e}}withEnvironmentVariable(e,t){try{const o={};return o[e]=t,ve(ze,{environmentVariables:o}),this}catch(e){throw Xe(1,e),e}}withEnvironmentVariables(e){try{return e&&"object"==typeof e||Be(!1,"must be dictionary object"),ve(ze,{environmentVariables:e}),this}catch(e){throw Xe(1,e),e}}withDiagnosticTracing(e){try{return"boolean"!=typeof e&&Be(!1,"must be boolean"),ve(ze,{diagnosticTracing:e}),this}catch(e){throw Xe(1,e),e}}withDebugging(e){try{return null!=e&&"number"==typeof e||Be(!1,"must be number"),ve(ze,{debugLevel:e}),this}catch(e){throw Xe(1,e),e}}withApplicationArguments(...e){try{return e&&Array.isArray(e)||Be(!1,"must be array of strings"),ve(ze,{applicationArguments:e}),this}catch(e){throw Xe(1,e),e}}withRuntimeOptions(e){try{return e&&Array.isArray(e)||Be(!1,"must be array of strings"),ze.runtimeOptions?ze.runtimeOptions.push(...e):ze.runtimeOptions=e,this}catch(e){throw Xe(1,e),e}}withMainAssembly(e){try{return ve(ze,{mainAssemblyName:e}),this}catch(e){throw Xe(1,e),e}}withApplicationArgumentsFromQuery(){try{if(!globalThis.window)throw new Error("Missing window to the query parameters from");if(void 0===globalThis.URLSearchParams)throw new Error("URLSearchParams is supported");const e=new URLSearchParams(globalThis.window.location.search).getAll("arg");return this.withApplicationArguments(...e)}catch(e){throw Xe(1,e),e}}withApplicationEnvironment(e){try{return ve(ze,{applicationEnvironment:e}),this}catch(e){throw Xe(1,e),e}}withApplicationCulture(e){try{return ve(ze,{applicationCulture:e}),this}catch(e){throw Xe(1,e),e}}withResourceLoader(e){try{return Pe.loadBootResource=e,this}catch(e){throw Xe(1,e),e}}async download(){try{await async function(){lt(We),await Re(We),re(),D(),oe(),await Pe.allDownloadsFinished.promise}()}catch(e){throw Xe(1,e),e}}async create(){try{return this.instance||(this.instance=await async function(){return await ct(We),Fe.api}()),this.instance}catch(e){throw Xe(1,e),e}}async run(){try{return We.config||Be(!1,"Null moduleConfig.config"),this.instance||await this.create(),this.instance.runMainAndExit()}catch(e){throw Xe(1,e),e}}},mt=Xe,gt=ct;Ie||"function"==typeof globalThis.URL||Be(!1,"This browser/engine doesn't support URL API. Please use a modern version. See also https://aka.ms/dotnet-wasm-features"),"function"!=typeof globalThis.BigInt64Array&&Be(!1,"This browser/engine doesn't support BigInt64Array API. Please use a modern version. See also https://aka.ms/dotnet-wasm-features"),ft.withConfig(/*json-start*/{ + "mainAssemblyName": "SpawnGen.Studio", + "resources": { + "hash": "sha256-tsaXt0RjOEnCGQ/Vd3E304+E1Rxo2sQ6iFIMPWC9mbw=", + "jsModuleNative": [ + { + "name": "dotnet.native.7ix07ov1rs.js" + } + ], + "jsModuleRuntime": [ + { + "name": "dotnet.runtime.v2rwe8u38b.js" + } + ], + "wasmNative": [ + { + "name": "dotnet.native.xu8yur87de.wasm", + "hash": "sha256-pzTWxMesa2HbyQ/b6qxfscoVXBHrUjV71JrPc2hXVIs=", + "cache": "force-cache" + } + ], + "icu": [ + { + "virtualPath": "icudt_CJK.dat", + "name": "icudt_CJK.tjcz0u77k5.dat", + "hash": "sha256-SZLtQnRc0JkwqHab0VUVP7T3uBPSeYzxzDnpxPpUnHk=", + "cache": "force-cache" + }, + { + "virtualPath": "icudt_EFIGS.dat", + "name": "icudt_EFIGS.tptq2av103.dat", + "hash": "sha256-8fItetYY8kQ0ww6oxwTLiT3oXlBwHKumbeP2pRF4yTc=", + "cache": "force-cache" + }, + { + "virtualPath": "icudt_no_CJK.dat", + "name": "icudt_no_CJK.lfu7j35m59.dat", + "hash": "sha256-L7sV7NEYP37/Qr2FPCePo5cJqRgTXRwGHuwF5Q+0Nfs=", + "cache": "force-cache" + } + ], + "coreAssembly": [ + { + "virtualPath": "ILGPU.Algorithms.wasm", + "name": "ILGPU.Algorithms.ffei46c8ng.wasm", + "hash": "sha256-dcpuiYaIg46MLfbYws04mK79tzFgdtFjZXi1YrN8OlY=", + "cache": "force-cache" + }, + { + "virtualPath": "ILGPU.wasm", + "name": "ILGPU.k78gepz5ei.wasm", + "hash": "sha256-kM/499sy9lIOcIgb5s54/1NbmuBt71U3Ge5ZFj5+s8U=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.AspNetCore.Components.Web.wasm", + "name": "Microsoft.AspNetCore.Components.Web.cmuc7bdjac.wasm", + "hash": "sha256-BClOkbOaeuQYWlup/gWmMaf815h4ZZVIMW6iOmhEjRA=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.AspNetCore.Components.WebAssembly.wasm", + "name": "Microsoft.AspNetCore.Components.WebAssembly.iea6k79bon.wasm", + "hash": "sha256-KtqXm4amHgcG2bz5pOVpmDrkD3wkF6qeCoTORKedHoc=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.AspNetCore.Components.wasm", + "name": "Microsoft.AspNetCore.Components.irsccstbtv.wasm", + "hash": "sha256-YtdeYqpjTErZfb7rChll3LvbwrtJuG2kEYNZba6qQ+o=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.Extensions.Configuration.Abstractions.wasm", + "name": "Microsoft.Extensions.Configuration.Abstractions.wslsrredsq.wasm", + "hash": "sha256-YMQXBk4jrVc9OaTp+/KtO0wrrkF0KurH384yJ5BMY6o=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.Extensions.Configuration.Json.wasm", + "name": "Microsoft.Extensions.Configuration.Json.dmmcgk01r0.wasm", + "hash": "sha256-hR3hJyllFhcAJODYJ4O/15D7zPKt4rm31ndgrYDdAXM=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.Extensions.Configuration.wasm", + "name": "Microsoft.Extensions.Configuration.rgjmp347zf.wasm", + "hash": "sha256-C7GPXPXoVldDMNqp7glnbWRY3LqQV22sIZt68+o3YTM=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.Extensions.DependencyInjection.Abstractions.wasm", + "name": "Microsoft.Extensions.DependencyInjection.Abstractions.d95iifg76m.wasm", + "hash": "sha256-IZlcZ7BDlmhlJwQlgt1OKXiaNcKhh4L7bYE2O5m9I3Y=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.Extensions.DependencyInjection.wasm", + "name": "Microsoft.Extensions.DependencyInjection.mvfec3p7kh.wasm", + "hash": "sha256-HvD9sPVg/Oq+t0ZsxIGM/S/59SHLYTu8ZEjxT59bRCc=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.Extensions.Logging.Abstractions.wasm", + "name": "Microsoft.Extensions.Logging.Abstractions.xx3hs6cn2q.wasm", + "hash": "sha256-NSLwO1ByZjJg7zilLOVI+R9FN3kKGhABqtcmSJDKxS8=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.Extensions.Logging.wasm", + "name": "Microsoft.Extensions.Logging.5w9ia7xlgq.wasm", + "hash": "sha256-lRjcnCHTmTMrXGDBaGeTpsqaIN8HKNvcCHj+b6hrj5Q=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.Extensions.Options.wasm", + "name": "Microsoft.Extensions.Options.espvvlqak1.wasm", + "hash": "sha256-TqcuRfsHDo1I9fA6NleVgI/6BwkPHpdQbhJJ7PXpJ7Q=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.Extensions.Primitives.wasm", + "name": "Microsoft.Extensions.Primitives.crxdkm6t9l.wasm", + "hash": "sha256-KDipvixud3wtosnTZ5tXsIUx4dF6DiSZ4kK8quRG+xo=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.JSInterop.WebAssembly.wasm", + "name": "Microsoft.JSInterop.WebAssembly.5ql0ra5mpq.wasm", + "hash": "sha256-A1+r9KkQJ1Kkm98VWekGd8z84GzOPdY9wh/SHfyyQg4=", + "cache": "force-cache" + }, + { + "virtualPath": "Microsoft.JSInterop.wasm", + "name": "Microsoft.JSInterop.0523xs2ej1.wasm", + "hash": "sha256-bIHZr/r3k4ORlS0vawlQLe6xT3DKr3SBm6bwZ0jaIGI=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.BackgroundServices.wasm", + "name": "SpawnDev.BackgroundServices.1yeryblw74.wasm", + "hash": "sha256-l700IkrNgn3VOTRpLDeYJmH14vPVY1zHyc320gtyX7I=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.Blazor.BootRecovery.wasm", + "name": "SpawnDev.Blazor.BootRecovery.wqj5nz7x99.wasm", + "hash": "sha256-OIbSBjsFdzV6bQcyAjQpXPNy+igSjwn+E1dadtwbEQg=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.Codecs.wasm", + "name": "SpawnDev.Codecs.xofv24znhd.wasm", + "hash": "sha256-z9xf2LZbfr758EatrDAarvJ28Yx7g9lZbJwIyFb4TUg=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.EBML.wasm", + "name": "SpawnDev.EBML.xdne5e0w64.wasm", + "hash": "sha256-5YpdLHDoqPd+xf4biHq10a2Yqlu0hvvhrEVvkQdKqSI=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.ILGPU.wasm", + "name": "SpawnDev.ILGPU.6mjayrscgw.wasm", + "hash": "sha256-zu8OSO76c45l542WPCFXLn7jJyRboB94VEH6Afu3+MU=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.ILGPU.ML.wasm", + "name": "SpawnDev.ILGPU.ML.2gzqxw91d8.wasm", + "hash": "sha256-DrlHHy28jhi1fKWj0XL9gWoVQGbwA+lwCJYg6sBYsZw=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.ILGPU.ML.Kernels.wasm", + "name": "SpawnDev.ILGPU.ML.Kernels.xas971tlmk.wasm", + "hash": "sha256-d+2kBO2tnmSQK9NENSKIbH+XD4xJMaqpZphAxipeRIM=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.MultiMedia.wasm", + "name": "SpawnDev.MultiMedia.omfwfbvzp1.wasm", + "hash": "sha256-4L1QL++C+xCaskMPiZTAiijPM41BzGb0fJbyVBNQ+3w=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.PatchStreams.wasm", + "name": "SpawnDev.PatchStreams.fa7qoyfxjz.wasm", + "hash": "sha256-Z7fKzwb4VsF64m9m+lOXhQ/uckfUZL+GoG7EPtCEMTA=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.Phonemizer.wasm", + "name": "SpawnDev.Phonemizer.14wgzuo4bh.wasm", + "hash": "sha256-kcENO2+R5892LdGC1a0z9ODjlnQ8XlKWaxgbtvWZq24=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.SpawnJS.Blazor.wasm", + "name": "SpawnDev.SpawnJS.Blazor.pmbh2dtfc3.wasm", + "hash": "sha256-34STFUzH722x0QJSJouUtvetlutsc/GGNCpB9stRPVo=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnDev.SpawnJS.wasm", + "name": "SpawnDev.SpawnJS.obwsmd2ii3.wasm", + "hash": "sha256-pFx/oCnjud8CPi8TV2IHTArxNx4BCZM5uyaoH+5DIpI=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnGen.Editor.wasm", + "name": "SpawnGen.Editor.ysklqo5dvy.wasm", + "hash": "sha256-kqakc/ev1o8ILAtqJgc2PFUyCtzm6O5dKk0In+wVj4U=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnGen.Engine.wasm", + "name": "SpawnGen.Engine.963inzh8su.wasm", + "hash": "sha256-byzLdFKLtcDNPGCghWsJFqymHCMbnhnoa7nMmp1C/V8=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnGen.Glsl.wasm", + "name": "SpawnGen.Glsl.gumig0hdrg.wasm", + "hash": "sha256-2Fsk9Id6y3zFN6svx4q6m1jyyVTxaAXGXe54ie3Lhyo=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnGen.Nodes.Core.wasm", + "name": "SpawnGen.Nodes.Core.nefbdvknei.wasm", + "hash": "sha256-vyvq69X3Tx8B0JJdQlYlBxXfY9qk7YzFB1vVhhusBDg=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnGen.Nodes.ML.wasm", + "name": "SpawnGen.Nodes.ML.m5uycdlwtd.wasm", + "hash": "sha256-1gLk41WnISLz+7XX3vvg29262akFhyuXfh3P/MoJfjU=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnGen.Runtime.wasm", + "name": "SpawnGen.Runtime.75kyqfga9w.wasm", + "hash": "sha256-he/05Dh/kliY76RS5df+cxJn5ccBa15mfQr4Qob2Was=", + "cache": "force-cache" + }, + { + "virtualPath": "SpawnGen.Studio.wasm", + "name": "SpawnGen.Studio.r201i5b3vg.wasm", + "hash": "sha256-XVPts82dUvjBMn5GU4pUNRSVdBYEEqOQNv/U+8thpgY=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Collections.wasm", + "name": "System.Collections.aw6c0lqys1.wasm", + "hash": "sha256-Fr5rmX+Lsdrrx+poINytJLIAHw+4ne7iOJT4+L9x+zo=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Collections.Concurrent.wasm", + "name": "System.Collections.Concurrent.ff7cq2nm1d.wasm", + "hash": "sha256-Zb3OG0FNx8PNUjDqmkhSMgarSlxqZeBkF8ZW59LjSog=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Collections.Immutable.wasm", + "name": "System.Collections.Immutable.wgf13aswj8.wasm", + "hash": "sha256-cPA2Fveq7qrzx0N2MsedzNUKssktUwh5GjrTnbIFDbY=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Collections.NonGeneric.wasm", + "name": "System.Collections.NonGeneric.hsozm72ati.wasm", + "hash": "sha256-v6Xm0vLrlzeeRU/t09TDWuy7NHRwn2+gpF/erW0SZ28=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Collections.Specialized.wasm", + "name": "System.Collections.Specialized.f7h3kag6r1.wasm", + "hash": "sha256-JQrNukJHE2mFJcIMl86Fg+JFDZTC6edk31oBGlpx0Sc=", + "cache": "force-cache" + }, + { + "virtualPath": "System.ComponentModel.Annotations.wasm", + "name": "System.ComponentModel.Annotations.nftdtj3wv1.wasm", + "hash": "sha256-Q2/DZ4bYmNEnBq5b/Aa9b36f85AZ47avWZ5PgU+t1F8=", + "cache": "force-cache" + }, + { + "virtualPath": "System.ComponentModel.Primitives.wasm", + "name": "System.ComponentModel.Primitives.5z48w2rdnk.wasm", + "hash": "sha256-z9y5yzUQR8b6lxYQurUjVJNy84XU3h2MkgYFgAdYtK0=", + "cache": "force-cache" + }, + { + "virtualPath": "System.ComponentModel.TypeConverter.wasm", + "name": "System.ComponentModel.TypeConverter.wyfjsyv15c.wasm", + "hash": "sha256-aJREs0D22BGUTCJ8/vbCnXaGKBVHcLmmsMs+BuqBjP4=", + "cache": "force-cache" + }, + { + "virtualPath": "System.ComponentModel.wasm", + "name": "System.ComponentModel.s232flgnjt.wasm", + "hash": "sha256-7OA+WnxIg5TssRh+xjETpuPUwNjf1b2sxNwMEornP6I=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Console.wasm", + "name": "System.Console.xaf8v5wlms.wasm", + "hash": "sha256-hw3HsUnpjSz2ydyIIQ0VKSTBBLPREKEzHHn0Q5hCOaA=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Diagnostics.DiagnosticSource.wasm", + "name": "System.Diagnostics.DiagnosticSource.wi2m9kb6j2.wasm", + "hash": "sha256-uKCOUOUzTly6jKWNqmhYk6Ws4dognajGCcOLNAcvEUQ=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Diagnostics.TraceSource.wasm", + "name": "System.Diagnostics.TraceSource.jas6ciz43q.wasm", + "hash": "sha256-RefkRXiXymzxWFVVTB6lA/7hjX1SkcrSZsD9nQnyb/Q=", + "cache": "force-cache" + }, + { + "virtualPath": "System.IO.Compression.wasm", + "name": "System.IO.Compression.7wlgl6q4q0.wasm", + "hash": "sha256-KYCfMg4MylyID28mPeadTD0G50i2GGxak+XoazTWzqw=", + "cache": "force-cache" + }, + { + "virtualPath": "System.IO.MemoryMappedFiles.wasm", + "name": "System.IO.MemoryMappedFiles.8pzepydqnq.wasm", + "hash": "sha256-xIKVRWNW3QLZBnei1eEMRrjduStg53zYsYHvxl2P9tQ=", + "cache": "force-cache" + }, + { + "virtualPath": "System.IO.Pipelines.wasm", + "name": "System.IO.Pipelines.uxxioc395v.wasm", + "hash": "sha256-rks9bzzEZcDnCFUQSH7It96zMLr50b8rgM/gMgStZNw=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Linq.wasm", + "name": "System.Linq.o3ju26b5hx.wasm", + "hash": "sha256-NMYqpW75rLo4JlECO11mbU8XiX/abysJxYrAag2tNj8=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Memory.wasm", + "name": "System.Memory.d58xhirxya.wasm", + "hash": "sha256-gdCRdEE7HUYOk2Cbs5Tstg6PBnYBcUUjEKReF87puwk=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Net.Http.Json.wasm", + "name": "System.Net.Http.Json.hx5auf8ye0.wasm", + "hash": "sha256-hbZS4mJV1dpV2ocHVTQ3SEVvl3ejjNEg3KJAbakY33Q=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Net.Http.wasm", + "name": "System.Net.Http.psud7m7x26.wasm", + "hash": "sha256-KQyR6mF+AfxExqicPk4pibwR2+w2MtCkeNvvqUtA620=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Net.Primitives.wasm", + "name": "System.Net.Primitives.laa2o30cj4.wasm", + "hash": "sha256-naQGUHMR3exFVw/SHwPtOAD9q6Ei01lRotpocmxYixc=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Net.WebSockets.Client.wasm", + "name": "System.Net.WebSockets.Client.jgyk2r45hq.wasm", + "hash": "sha256-jQbSLgZa3nuzogDvEu3GVshYD8n7VnZFc+OdAtFPQ9Y=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Net.WebSockets.wasm", + "name": "System.Net.WebSockets.pty5fhsh63.wasm", + "hash": "sha256-jZLjvWvJa1cs27DcFZBbk3RDaX/o3m3VvcWUAZcsA+o=", + "cache": "force-cache" + }, + { + "virtualPath": "System.ObjectModel.wasm", + "name": "System.ObjectModel.uz5l7z8bk8.wasm", + "hash": "sha256-ZttfWjEmQ5birCd1k1gnMiKHxfu2FqK3rrWozVgl52Y=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Private.CoreLib.wasm", + "name": "System.Private.CoreLib.mjvdlgja0y.wasm", + "hash": "sha256-8gWTGzezwZFYRbcg4GoUCtRND8gt1yL6o/z3e0J9OZM=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Private.Uri.wasm", + "name": "System.Private.Uri.dq15cozieu.wasm", + "hash": "sha256-BTR8/wsQQklxUKv+Sb5q4bh+UbHmgH3pbPZdAF8jcX4=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Private.Xml.wasm", + "name": "System.Private.Xml.u94bl2dvp8.wasm", + "hash": "sha256-nggS+/1Auv3xNpww+3iX91PavSgQjJpbuKyat51qfD0=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Private.Xml.Linq.wasm", + "name": "System.Private.Xml.Linq.x7pddrotmb.wasm", + "hash": "sha256-7fk+3Kaxum8dYkfblx4Dh/FmmUTmzEkH0pCDIkxypac=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Reflection.Emit.ILGeneration.wasm", + "name": "System.Reflection.Emit.ILGeneration.5agvqjhgro.wasm", + "hash": "sha256-Lfr5z5Q0id8Imk5cQ+qsVNYjhWHANsQ4dmXjxxWcZjo=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Reflection.Emit.wasm", + "name": "System.Reflection.Emit.0b1ladh0wq.wasm", + "hash": "sha256-3KfBMZ/jxtIjfRIFiAwF9rGvXIvR0goHKVrFJHIuSps=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Reflection.Metadata.wasm", + "name": "System.Reflection.Metadata.g8rwrnaoa9.wasm", + "hash": "sha256-4Kh6j93gfr5uwR23L0qAc2yukUu4wkaC48KrPDuulZo=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Reflection.Primitives.wasm", + "name": "System.Reflection.Primitives.n4vvjn3p23.wasm", + "hash": "sha256-V84BLVSiiio1TpZoEkTOtmD6sWk4h0A0RcglyII/5uU=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Runtime.InteropServices.wasm", + "name": "System.Runtime.InteropServices.zwchjc25pl.wasm", + "hash": "sha256-o15FSJzObFtmrC6Hzzg0tYKiNGuLHSyBCRTAhxXy6hA=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Runtime.InteropServices.JavaScript.wasm", + "name": "System.Runtime.InteropServices.JavaScript.d464kmk1ac.wasm", + "hash": "sha256-A9yst7f9/rLPwbjb5i11Ll7BgeVtYnIYAtSamCpGLU4=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Runtime.Loader.wasm", + "name": "System.Runtime.Loader.ock30he81m.wasm", + "hash": "sha256-yE01g1YFhbVV40Si5PWRjdVseo2FhA6YszwCj/hOORw=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Runtime.Numerics.wasm", + "name": "System.Runtime.Numerics.q5zaws913d.wasm", + "hash": "sha256-frDi641bGftR5PERbpEXpxMm+0dPyyQxDYfgr3HKs+o=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Runtime.wasm", + "name": "System.Runtime.21tsxuipge.wasm", + "hash": "sha256-CiVTwGrjyJSs1yFKrDwMNJNCGYSpScB9JgQDPKOlTeQ=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Security.Cryptography.wasm", + "name": "System.Security.Cryptography.1t4xn1xy0x.wasm", + "hash": "sha256-a74mPKjz7BaaugiEqOA2D7CX64A2dIwNC4dyB6AqOGM=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Text.Encoding.Extensions.wasm", + "name": "System.Text.Encoding.Extensions.mo66izveyc.wasm", + "hash": "sha256-VpUCQaTNaREDT50lAsX742wZT+Rk57MCHP1uZOh955Q=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Text.Encodings.Web.wasm", + "name": "System.Text.Encodings.Web.tji6rumfic.wasm", + "hash": "sha256-afZKxu1+WRQL9F17RxBJWcSdSDi4nkU8lyUhv7e15m0=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Text.Json.wasm", + "name": "System.Text.Json.tmbe5ju12l.wasm", + "hash": "sha256-m1xT5tQIjZzXzw5RgOAV9KH9G9XdXRFk+p25yGYqT0E=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Text.RegularExpressions.wasm", + "name": "System.Text.RegularExpressions.5f6os8d0wv.wasm", + "hash": "sha256-fz3sTyyGMJDLGAsa8eYnE6q+cuce8VIXi0lKrMtl2TU=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Threading.Tasks.Parallel.wasm", + "name": "System.Threading.Tasks.Parallel.r9rdy25k8s.wasm", + "hash": "sha256-sTr5ry0m4EWFofxIFPxqGWt5/mI+CWgXKRQXNu13Qgc=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Threading.Thread.wasm", + "name": "System.Threading.Thread.u9w6y2s95v.wasm", + "hash": "sha256-4pI4NhMAd0VzFwe/28LVtScV64G7MRO7LTQjxCErieU=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Threading.wasm", + "name": "System.Threading.cqof8b7mz4.wasm", + "hash": "sha256-DNGc/0QMtgjIMWe/xa/14doTkBhJ/d4OyjsJ3bE2N8c=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Xml.Linq.wasm", + "name": "System.Xml.Linq.6wuwtpojma.wasm", + "hash": "sha256-mhrhqbcdU5bX1y5th/2l7O/RTTxzxI2wcDTxJp2SrvY=", + "cache": "force-cache" + }, + { + "virtualPath": "System.Xml.XDocument.wasm", + "name": "System.Xml.XDocument.amngb6ohpq.wasm", + "hash": "sha256-bqFdFIsO9q+nAGTyP1ksn+0fZ35M1ORQrN5R/BCUKLc=", + "cache": "force-cache" + }, + { + "virtualPath": "System.wasm", + "name": "System.bzv2fdl90t.wasm", + "hash": "sha256-mZ7y24m4d4nPhekDCaX/s4ndZUg4tuEzoGPjRPw1Xsw=", + "cache": "force-cache" + } + ], + "assembly": [], + "libraryInitializers": [ + { + "name": "_content/SpawnDev.Blazor.BootRecovery/SpawnDev.Blazor.BootRecovery.7rjy3ukk5v.lib.module.js" + }, + { + "name": "SpawnDev.SpawnJS.zrbbeqadpn.lib.module.js" + } + ], + "modulesAfterConfigLoaded": [ + { + "name": "../_content/SpawnDev.Blazor.BootRecovery/SpawnDev.Blazor.BootRecovery.7rjy3ukk5v.lib.module.js" + } + ], + "modulesAfterRuntimeReady": [ + { + "name": "../SpawnDev.SpawnJS.zrbbeqadpn.lib.module.js" + } + ] + }, + "debugLevel": 0, + "linkerEnabled": true, + "globalizationMode": "sharded", + "extensions": { + "blazor": {} + }, + "runtimeConfig": { + "runtimeOptions": { + "configProperties": { + "Microsoft.AspNetCore.Components.Routing.RegexConstraintSupport": false, + "Microsoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmability": true, + "System.ComponentModel.DefaultValueAttribute.IsSupported": false, + "System.ComponentModel.Design.IDesignerHost.IsSupported": false, + "System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization": false, + "System.ComponentModel.TypeDescriptor.IsComObjectDescriptorSupported": false, + "System.Data.DataSet.XmlSerializationIsSupported": false, + "System.Diagnostics.Debugger.IsSupported": false, + "System.Diagnostics.Metrics.Meter.IsSupported": false, + "System.Diagnostics.Tracing.EventSource.IsSupported": false, + "System.GC.Server": true, + "System.Globalization.Invariant": false, + "System.TimeZoneInfo.Invariant": false, + "System.Linq.Enumerable.IsSizeOptimized": true, + "System.Net.Http.EnableActivityPropagation": false, + "System.Net.Http.WasmEnableStreamingResponse": true, + "System.Net.SocketsHttpHandler.Http3Support": false, + "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, + "System.Resources.ResourceManager.AllowCustomResourceTypes": false, + "System.Resources.UseSystemResourceKeys": true, + "System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeSupported": true, + "System.Runtime.InteropServices.BuiltInComInterop.IsSupported": false, + "System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting": false, + "System.Runtime.InteropServices.EnableCppCLIHostActivation": false, + "System.Runtime.InteropServices.Marshalling.EnableGeneratedComInterfaceComImportInterop": false, + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false, + "System.StartupHookProvider.IsSupported": false, + "System.Text.Encoding.EnableUnsafeUTF7Encoding": false, + "System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault": true, + "System.Threading.Thread.EnableAutoreleasePool": false, + "Microsoft.AspNetCore.Components.Endpoints.NavigationManager.DisableThrowNavigationException": false + } + } + } +}/*json-end*/);export{gt as default,ft as dotnet,mt as exit}; diff --git a/_framework/dotnet.native.7ix07ov1rs.js b/_framework/dotnet.native.7ix07ov1rs.js new file mode 100644 index 0000000000000000000000000000000000000000..9caa53cb8199e06861fbce027332d982005c4937 --- /dev/null +++ b/_framework/dotnet.native.7ix07ov1rs.js @@ -0,0 +1,6724 @@ + +var createDotnetRuntime = (() => { + var _scriptDir = import.meta.url; + + return ( +async function(moduleArg = {}) { + +// include: shell.js +// The Module object: Our interface to the outside world. We import +// and export values on it. There are various ways Module can be used: +// 1. Not defined. We create it here +// 2. A function parameter, function(Module) { ..generated code.. } +// 3. pre-run appended it, var Module = {}; ..generated code.. +// 4. External script tag defines var Module. +// We need to check if Module already exists (e.g. case 3 above). +// Substitution will be replaced with actual code on later stage of the build, +// this way Closure Compiler will not mangle it (e.g. case 4. above). +// Note that if you want to run closure, and also to use Module +// after the generated code, you will need to define var Module = {}; +// before the code. Then that object will be used in the code, and you +// can continue to use Module afterwards as well. +var Module = moduleArg; + +// Set up the promise that indicates the Module is initialized +var readyPromiseResolve, readyPromiseReject; +Module['ready'] = new Promise((resolve, reject) => { + readyPromiseResolve = resolve; + readyPromiseReject = reject; +}); + +// --pre-jses are emitted after the Module integration code, so that they can +// refer to Module (if they choose; they can also define Module) +// include: /usr/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/10.0.15/runtimes/browser-wasm/native/src/es6/dotnet.es6.pre.js +if (_nativeModuleLoaded) throw new Error("Native module already loaded"); +_nativeModuleLoaded = true; +createDotnetRuntime = Module = moduleArg(Module); +// end include: /usr/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/10.0.15/runtimes/browser-wasm/native/src/es6/dotnet.es6.pre.js + + +// Sometimes an existing Module object exists with properties +// meant to overwrite the default module functionality. Here +// we collect those properties and reapply _after_ we configure +// the current environment's defaults to avoid having to be so +// defensive during initialization. +var moduleOverrides = Object.assign({}, Module); + +var arguments_ = []; +var thisProgram = './this.program'; +var quit_ = (status, toThrow) => { + throw toThrow; +}; + +// Determine the runtime environment we are in. You can customize this by +// setting the ENVIRONMENT setting at compile time (see settings.js). + +// Attempt to auto-detect the environment +var ENVIRONMENT_IS_WEB = typeof window == 'object'; +var ENVIRONMENT_IS_WORKER = typeof importScripts == 'function'; +// N.b. Electron.js environment is simultaneously a NODE-environment, but +// also a web environment. +var ENVIRONMENT_IS_NODE = typeof process == 'object' && typeof process.versions == 'object' && typeof process.versions.node == 'string'; +var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER; + +// `/` should be present at the end if `scriptDirectory` is not empty +var scriptDirectory = ''; +function locateFile(path) { + if (Module['locateFile']) { + return Module['locateFile'](path, scriptDirectory); + } + return scriptDirectory + path; +} + +// Hooks that are implemented differently in different runtime environments. +var read_, + readAsync, + readBinary; + +if (ENVIRONMENT_IS_NODE) { + + // `require()` is no-op in an ESM module, use `createRequire()` to construct + // the require()` function. This is only necessary for multi-environment + // builds, `-sENVIRONMENT=node` emits a static import declaration instead. + // TODO: Swap all `require()`'s with `import()`'s? + const { createRequire } = await import('module'); + /** @suppress{duplicate} */ + var require = createRequire(import.meta.url); + // These modules will usually be used on Node.js. Load them eagerly to avoid + // the complexity of lazy-loading. + var fs = require('fs'); + var nodePath = require('path'); + + if (ENVIRONMENT_IS_WORKER) { + scriptDirectory = nodePath.dirname(scriptDirectory) + '/'; + } else { + // EXPORT_ES6 + ENVIRONMENT_IS_NODE always requires use of import.meta.url, + // since there's no way getting the current absolute path of the module when + // support for that is not available. + scriptDirectory = require('url').fileURLToPath(new URL('./', import.meta.url)); // includes trailing slash + } + +// include: node_shell_read.js +read_ = (filename, binary) => { + // We need to re-wrap `file://` strings to URLs. Normalizing isn't + // necessary in that case, the path should already be absolute. + filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename); + return fs.readFileSync(filename, binary ? undefined : 'utf8'); +}; + +readBinary = (filename) => { + var ret = read_(filename, true); + if (!ret.buffer) { + ret = new Uint8Array(ret); + } + return ret; +}; + +readAsync = (filename, onload, onerror, binary = true) => { + // See the comment in the `read_` function. + filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename); + fs.readFile(filename, binary ? undefined : 'utf8', (err, data) => { + if (err) onerror(err); + else onload(binary ? data.buffer : data); + }); +}; +// end include: node_shell_read.js + if (!Module['thisProgram'] && process.argv.length > 1) { + thisProgram = process.argv[1].replace(/\\/g, '/'); + } + + arguments_ = process.argv.slice(2); + + // MODULARIZE will export the module in the proper place outside, we don't need to export here + + quit_ = (status, toThrow) => { + process.exitCode = status; + throw toThrow; + }; + +} else +if (ENVIRONMENT_IS_SHELL) { + + if (typeof read != 'undefined') { + read_ = read; + } + + readBinary = (f) => { + if (typeof readbuffer == 'function') { + return new Uint8Array(readbuffer(f)); + } + let data = read(f, 'binary'); + assert(typeof data == 'object'); + return data; + }; + + readAsync = (f, onload, onerror) => { + setTimeout(() => onload(readBinary(f))); + }; + + if (typeof clearTimeout == 'undefined') { + globalThis.clearTimeout = (id) => {}; + } + + if (typeof setTimeout == 'undefined') { + // spidermonkey lacks setTimeout but we use it above in readAsync. + globalThis.setTimeout = (f) => (typeof f == 'function') ? f() : abort(); + } + + if (typeof scriptArgs != 'undefined') { + arguments_ = scriptArgs; + } else if (typeof arguments != 'undefined') { + arguments_ = arguments; + } + + if (typeof quit == 'function') { + quit_ = (status, toThrow) => { + // Unlike node which has process.exitCode, d8 has no such mechanism. So we + // have no way to set the exit code and then let the program exit with + // that code when it naturally stops running (say, when all setTimeouts + // have completed). For that reason, we must call `quit` - the only way to + // set the exit code - but quit also halts immediately. To increase + // consistency with node (and the web) we schedule the actual quit call + // using a setTimeout to give the current stack and any exception handlers + // a chance to run. This enables features such as addOnPostRun (which + // expected to be able to run code after main returns). + setTimeout(() => { + if (!(toThrow instanceof ExitStatus)) { + let toLog = toThrow; + if (toThrow && typeof toThrow == 'object' && toThrow.stack) { + toLog = [toThrow, toThrow.stack]; + } + err(`exiting due to exception: ${toLog}`); + } + quit(status); + }); + throw toThrow; + }; + } + + if (typeof print != 'undefined') { + // Prefer to use print/printErr where they exist, as they usually work better. + if (typeof console == 'undefined') console = /** @type{!Console} */({}); + console.log = /** @type{!function(this:Console, ...*): undefined} */ (print); + console.warn = console.error = /** @type{!function(this:Console, ...*): undefined} */ (typeof printErr != 'undefined' ? printErr : print); + } + +} else + +// Note that this includes Node.js workers when relevant (pthreads is enabled). +// Node.js workers are detected as a combination of ENVIRONMENT_IS_WORKER and +// ENVIRONMENT_IS_NODE. +if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) { + if (ENVIRONMENT_IS_WORKER) { // Check worker, not web, since window could be polyfilled + scriptDirectory = self.location.href; + } else if (typeof document != 'undefined' && document.currentScript) { // web + scriptDirectory = document.currentScript.src; + } + // When MODULARIZE, this JS may be executed later, after document.currentScript + // is gone, so we saved it, and we use it here instead of any other info. + if (_scriptDir) { + scriptDirectory = _scriptDir; + } + // blob urls look like blob:http://site.com/etc/etc and we cannot infer anything from them. + // otherwise, slice off the final part of the url to find the script directory. + // if scriptDirectory does not contain a slash, lastIndexOf will return -1, + // and scriptDirectory will correctly be replaced with an empty string. + // If scriptDirectory contains a query (starting with ?) or a fragment (starting with #), + // they are removed because they could contain a slash. + if (scriptDirectory.startsWith('blob:')) { + scriptDirectory = ''; + } else { + scriptDirectory = scriptDirectory.substr(0, scriptDirectory.replace(/[?#].*/, '').lastIndexOf('/')+1); + } + + // Differentiate the Web Worker from the Node Worker case, as reading must + // be done differently. + { +// include: web_or_worker_shell_read.js +read_ = (url) => { + var xhr = new XMLHttpRequest(); + xhr.open('GET', url, false); + xhr.send(null); + return xhr.responseText; + } + + if (ENVIRONMENT_IS_WORKER) { + readBinary = (url) => { + var xhr = new XMLHttpRequest(); + xhr.open('GET', url, false); + xhr.responseType = 'arraybuffer'; + xhr.send(null); + return new Uint8Array(/** @type{!ArrayBuffer} */(xhr.response)); + }; + } + + readAsync = (url, onload, onerror) => { + var xhr = new XMLHttpRequest(); + xhr.open('GET', url, true); + xhr.responseType = 'arraybuffer'; + xhr.onload = () => { + if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0 + onload(xhr.response); + return; + } + onerror(); + }; + xhr.onerror = onerror; + xhr.send(null); + } + +// end include: web_or_worker_shell_read.js + } +} else +{ +} + +var out = Module['print'] || console.log.bind(console); +var err = Module['printErr'] || console.error.bind(console); + +// Merge back in the overrides +Object.assign(Module, moduleOverrides); +// Free the object hierarchy contained in the overrides, this lets the GC +// reclaim data used. +moduleOverrides = null; + +// Emit code to handle expected values on the Module object. This applies Module.x +// to the proper local x. This has two benefits: first, we only emit it if it is +// expected to arrive, and second, by using a local everywhere else that can be +// minified. + +if (Module['arguments']) arguments_ = Module['arguments']; + +if (Module['thisProgram']) thisProgram = Module['thisProgram']; + +if (Module['quit']) quit_ = Module['quit']; + +// perform assertions in shell.js after we set up out() and err(), as otherwise if an assertion fails it cannot print the message +// end include: shell.js + +// include: preamble.js +// === Preamble library stuff === + +// Documentation for the public APIs defined in this file must be updated in: +// site/source/docs/api_reference/preamble.js.rst +// A prebuilt local version of the documentation is available at: +// site/build/text/docs/api_reference/preamble.js.txt +// You can also build docs locally as HTML or other formats in site/ +// An online HTML version (which may be of a different version of Emscripten) +// is up at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html + +var wasmBinary; +if (Module['wasmBinary']) wasmBinary = Module['wasmBinary']; + +// include: base64Utils.js +// include: polyfill/atob.js +// Copied from https://github.com/strophe/strophejs/blob/e06d027/src/polyfills.js#L149 + +// This code was written by Tyler Akins and has been placed in the +// public domain. It would be nice if you left this header intact. +// Base64 code from Tyler Akins -- http://rumkin.com + +if (typeof atob == 'undefined') { + if (typeof global != 'undefined' && typeof globalThis == 'undefined') { + globalThis = global; + } + + /** + * Decodes a base64 string. + * @param {string} input The string to decode. + */ + globalThis.atob = function(input) { + var keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; + + var output = ''; + var chr1, chr2, chr3; + var enc1, enc2, enc3, enc4; + var i = 0; + // remove all characters that are not A-Z, a-z, 0-9, +, /, or = + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); + do { + enc1 = keyStr.indexOf(input.charAt(i++)); + enc2 = keyStr.indexOf(input.charAt(i++)); + enc3 = keyStr.indexOf(input.charAt(i++)); + enc4 = keyStr.indexOf(input.charAt(i++)); + + chr1 = (enc1 << 2) | (enc2 >> 4); + chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); + chr3 = ((enc3 & 3) << 6) | enc4; + + output = output + String.fromCharCode(chr1); + + if (enc3 !== 64) { + output = output + String.fromCharCode(chr2); + } + if (enc4 !== 64) { + output = output + String.fromCharCode(chr3); + } + } while (i < input.length); + return output; + }; +} +// end include: polyfill/atob.js +// Converts a string of base64 into a byte array (Uint8Array). +function intArrayFromBase64(s) { + if (typeof ENVIRONMENT_IS_NODE != 'undefined' && ENVIRONMENT_IS_NODE) { + var buf = Buffer.from(s, 'base64'); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.length); + } + + var decoded = atob(s); + var bytes = new Uint8Array(decoded.length); + for (var i = 0 ; i < decoded.length ; ++i) { + bytes[i] = decoded.charCodeAt(i); + } + return bytes; +} + +// If filename is a base64 data URI, parses and returns data (Buffer on node, +// Uint8Array otherwise). If filename is not a base64 data URI, returns undefined. +function tryParseAsDataURI(filename) { + if (!isDataURI(filename)) { + return; + } + + return intArrayFromBase64(filename.slice(dataURIPrefix.length)); +} +// end include: base64Utils.js +// Wasm globals + +var wasmMemory; + +//======================================== +// Runtime essentials +//======================================== + +// whether we are quitting the application. no code should run after this. +// set in exit() and abort() +var ABORT = false; + +// set by exit() and abort(). Passed to 'onExit' handler. +// NOTE: This is also used as the process return code code in shell environments +// but only when noExitRuntime is false. +var EXITSTATUS; + +// In STRICT mode, we only define assert() when ASSERTIONS is set. i.e. we +// don't define it at all in release modes. This matches the behaviour of +// MINIMAL_RUNTIME. +// TODO(sbc): Make this the default even without STRICT enabled. +/** @type {function(*, string=)} */ +function assert(condition, text) { + if (!condition) { + // This build was created without ASSERTIONS defined. `assert()` should not + // ever be called in this configuration but in case there are callers in + // the wild leave this simple abort() implementation here for now. + abort(text); + } +} + +// Memory management + +var HEAP, +/** @type {!Int8Array} */ + HEAP8, +/** @type {!Uint8Array} */ + HEAPU8, +/** @type {!Int16Array} */ + HEAP16, +/** @type {!Uint16Array} */ + HEAPU16, +/** @type {!Int32Array} */ + HEAP32, +/** @type {!Uint32Array} */ + HEAPU32, +/** @type {!Float32Array} */ + HEAPF32, +/* BigInt64Array type is not correctly defined in closure +/** not-@type {!BigInt64Array} */ + HEAP64, +/* BigUInt64Array type is not correctly defined in closure +/** not-t@type {!BigUint64Array} */ + HEAPU64, +/** @type {!Float64Array} */ + HEAPF64; + +// include: runtime_shared.js +function updateMemoryViews() { + var b = wasmMemory.buffer; + Module['HEAP8'] = HEAP8 = new Int8Array(b); + Module['HEAP16'] = HEAP16 = new Int16Array(b); + Module['HEAPU8'] = HEAPU8 = new Uint8Array(b); + Module['HEAPU16'] = HEAPU16 = new Uint16Array(b); + Module['HEAP32'] = HEAP32 = new Int32Array(b); + Module['HEAPU32'] = HEAPU32 = new Uint32Array(b); + Module['HEAPF32'] = HEAPF32 = new Float32Array(b); + Module['HEAPF64'] = HEAPF64 = new Float64Array(b); + Module['HEAP64'] = HEAP64 = new BigInt64Array(b); + Module['HEAPU64'] = HEAPU64 = new BigUint64Array(b); +} +// end include: runtime_shared.js +// include: runtime_stack_check.js +// end include: runtime_stack_check.js +// include: runtime_assertions.js +// end include: runtime_assertions.js +var __ATPRERUN__ = []; // functions called before the runtime is initialized +var __ATINIT__ = []; // functions called during startup +var __ATEXIT__ = []; // functions called during shutdown +var __ATPOSTRUN__ = []; // functions called after the main() is called + +var runtimeInitialized = false; + +var runtimeExited = false; + +function preRun() { + if (Module['preRun']) { + if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']]; + while (Module['preRun'].length) { + addOnPreRun(Module['preRun'].shift()); + } + } + callRuntimeCallbacks(__ATPRERUN__); +} + +function initRuntime() { + runtimeInitialized = true; + + +if (!Module['noFSInit'] && !FS.init.initialized) + FS.init(); +FS.ignorePermissions = false; + +TTY.init(); +SOCKFS.root = FS.mount(SOCKFS, {}, null); + callRuntimeCallbacks(__ATINIT__); +} + +function exitRuntime() { + ___funcs_on_exit(); // Native atexit() functions + callRuntimeCallbacks(__ATEXIT__); + FS.quit(); +TTY.shutdown(); + runtimeExited = true; +} + +function postRun() { + + if (Module['postRun']) { + if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']]; + while (Module['postRun'].length) { + addOnPostRun(Module['postRun'].shift()); + } + } + + callRuntimeCallbacks(__ATPOSTRUN__); +} + +function addOnPreRun(cb) { + __ATPRERUN__.unshift(cb); +} + +function addOnInit(cb) { + __ATINIT__.unshift(cb); +} + +function addOnExit(cb) { + __ATEXIT__.unshift(cb); +} + +function addOnPostRun(cb) { + __ATPOSTRUN__.unshift(cb); +} + +// include: runtime_math.js +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/imul + +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/fround + +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32 + +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc + +// end include: runtime_math.js +// A counter of dependencies for calling run(). If we need to +// do asynchronous work before running, increment this and +// decrement it. Incrementing must happen in a place like +// Module.preRun (used by emcc to add file preloading). +// Note that you can add dependencies in preRun, even though +// it happens right before run - run will be postponed until +// the dependencies are met. +var runDependencies = 0; +var runDependencyWatcher = null; +var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled + +function getUniqueRunDependency(id) { + return id; +} + +function addRunDependency(id) { + runDependencies++; + + Module['monitorRunDependencies']?.(runDependencies); + +} + +function removeRunDependency(id) { + runDependencies--; + + Module['monitorRunDependencies']?.(runDependencies); + + if (runDependencies == 0) { + if (runDependencyWatcher !== null) { + clearInterval(runDependencyWatcher); + runDependencyWatcher = null; + } + if (dependenciesFulfilled) { + var callback = dependenciesFulfilled; + dependenciesFulfilled = null; + callback(); // can add another dependenciesFulfilled + } + } +} + +/** @param {string|number=} what */ +function abort(what) { + Module['onAbort']?.(what); + + what = 'Aborted(' + what + ')'; + // TODO(sbc): Should we remove printing and leave it up to whoever + // catches the exception? + err(what); + + ABORT = true; + EXITSTATUS = 1; + + what += '. Build with -sASSERTIONS for more info.'; + + // Use a wasm runtime error, because a JS error might be seen as a foreign + // exception, which means we'd run destructors on it. We need the error to + // simply make the program stop. + // FIXME This approach does not work in Wasm EH because it currently does not assume + // all RuntimeErrors are from traps; it decides whether a RuntimeError is from + // a trap or not based on a hidden field within the object. So at the moment + // we don't have a way of throwing a wasm trap from JS. TODO Make a JS API that + // allows this in the wasm spec. + + // Suppress closure compiler warning here. Closure compiler's builtin extern + // definition for WebAssembly.RuntimeError claims it takes no arguments even + // though it can. + // TODO(https://github.com/google/closure-compiler/pull/3913): Remove if/when upstream closure gets fixed. + // See above, in the meantime, we resort to wasm code for trapping. + // + // In case abort() is called before the module is initialized, wasmExports + // and its exported '__trap' function is not available, in which case we throw + // a RuntimeError. + // + // We trap instead of throwing RuntimeError to prevent infinite-looping in + // Wasm EH code (because RuntimeError is considered as a foreign exception and + // caught by 'catch_all'), but in case throwing RuntimeError is fine because + // the module has not even been instantiated, even less running. + if (runtimeInitialized) { + ___trap(); + } + /** @suppress {checkTypes} */ + var e = new WebAssembly.RuntimeError(what); + + readyPromiseReject(e); + // Throw the error whether or not MODULARIZE is set because abort is used + // in code paths apart from instantiation where an exception is expected + // to be thrown when abort is called. + throw e; +} + +// include: memoryprofiler.js +// end include: memoryprofiler.js +// include: URIUtils.js +// Prefix of data URIs emitted by SINGLE_FILE and related options. +var dataURIPrefix = 'data:application/octet-stream;base64,'; + +/** + * Indicates whether filename is a base64 data URI. + * @noinline + */ +var isDataURI = (filename) => filename.startsWith(dataURIPrefix); + +/** + * Indicates whether filename is delivered via file protocol (as opposed to http/https) + * @noinline + */ +var isFileURI = (filename) => filename.startsWith('file://'); +// end include: URIUtils.js +// include: runtime_exceptions.js +// end include: runtime_exceptions.js +var wasmBinaryFile; +if (Module['locateFile']) { + wasmBinaryFile = 'dotnet.native.wasm'; + if (!isDataURI(wasmBinaryFile)) { + wasmBinaryFile = locateFile(wasmBinaryFile); + } +} else { + if (ENVIRONMENT_IS_SHELL) + wasmBinaryFile = 'dotnet.native.wasm'; + else + // Use bundler-friendly `new URL(..., import.meta.url)` pattern; works in browsers too. + wasmBinaryFile = new URL('dotnet.native.wasm', import.meta.url).href; +} + +function getBinarySync(file) { + if (file == wasmBinaryFile && wasmBinary) { + return new Uint8Array(wasmBinary); + } + if (readBinary) { + return readBinary(file); + } + throw 'both async and sync fetching of the wasm failed'; +} + +function getBinaryPromise(binaryFile) { + // If we don't have the binary yet, try to load it asynchronously. + // Fetch has some additional restrictions over XHR, like it can't be used on a file:// url. + // See https://github.com/github/fetch/pull/92#issuecomment-140665932 + // Cordova or Electron apps are typically loaded from a file:// url. + // So use fetch if it is available and the url is not a file, otherwise fall back to XHR. + if (!wasmBinary + && (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER)) { + if (typeof fetch == 'function' + && !isFileURI(binaryFile) + ) { + return fetch(binaryFile, { credentials: 'same-origin' }).then((response) => { + if (!response['ok']) { + throw `failed to load wasm binary file at '${binaryFile}'`; + } + return response['arrayBuffer'](); + }).catch(() => getBinarySync(binaryFile)); + } + else if (readAsync) { + // fetch is not available or url is file => try XHR (readAsync uses XHR internally) + return new Promise((resolve, reject) => { + readAsync(binaryFile, (response) => resolve(new Uint8Array(/** @type{!ArrayBuffer} */(response))), reject) + }); + } + } + + // Otherwise, getBinarySync should be able to get it synchronously + return Promise.resolve().then(() => getBinarySync(binaryFile)); +} + +function instantiateArrayBuffer(binaryFile, imports, receiver) { + return getBinaryPromise(binaryFile).then((binary) => { + return WebAssembly.instantiate(binary, imports); + }).then(receiver, (reason) => { + err(`failed to asynchronously prepare wasm: ${reason}`); + + abort(reason); + }); +} + +function instantiateAsync(binary, binaryFile, imports, callback) { + if (!binary && + typeof WebAssembly.instantiateStreaming == 'function' && + !isDataURI(binaryFile) && + // Don't use streaming for file:// delivered objects in a webview, fetch them synchronously. + !isFileURI(binaryFile) && + // Avoid instantiateStreaming() on Node.js environment for now, as while + // Node.js v18.1.0 implements it, it does not have a full fetch() + // implementation yet. + // + // Reference: + // https://github.com/emscripten-core/emscripten/pull/16917 + !ENVIRONMENT_IS_NODE && + typeof fetch == 'function') { + return fetch(binaryFile, { credentials: 'same-origin' }).then((response) => { + // Suppress closure warning here since the upstream definition for + // instantiateStreaming only allows Promise rather than + // an actual Response. + // TODO(https://github.com/google/closure-compiler/pull/3913): Remove if/when upstream closure is fixed. + /** @suppress {checkTypes} */ + var result = WebAssembly.instantiateStreaming(response, imports); + + return result.then( + callback, + function(reason) { + // We expect the most common failure cause to be a bad MIME type for the binary, + // in which case falling back to ArrayBuffer instantiation should work. + err(`wasm streaming compile failed: ${reason}`); + err('falling back to ArrayBuffer instantiation'); + return instantiateArrayBuffer(binaryFile, imports, callback); + }); + }); + } + return instantiateArrayBuffer(binaryFile, imports, callback); +} + +// Create the wasm instance. +// Receives the wasm imports, returns the exports. +function createWasm() { + // prepare imports + var info = { + 'env': wasmImports, + 'wasi_snapshot_preview1': wasmImports, + }; + // Load the wasm module and create an instance of using native support in the JS engine. + // handle a generated wasm instance, receiving its exports and + // performing other necessary setup + /** @param {WebAssembly.Module=} module*/ + function receiveInstance(instance, module) { + wasmExports = instance.exports; + + Module['wasmExports'] = wasmExports; + + wasmMemory = wasmExports['memory']; + + updateMemoryViews(); + + wasmTable = wasmExports['__indirect_function_table']; + + + addOnInit(wasmExports['__wasm_call_ctors']); + + removeRunDependency('wasm-instantiate'); + return wasmExports; + } + // wait for the pthread pool (if any) + addRunDependency('wasm-instantiate'); + + // Prefer streaming instantiation if available. + function receiveInstantiationResult(result) { + // 'result' is a ResultObject object which has both the module and instance. + // receiveInstance() will swap in the exports (to Module.asm) so they can be called + // TODO: Due to Closure regression https://github.com/google/closure-compiler/issues/3193, the above line no longer optimizes out down to the following line. + // When the regression is fixed, can restore the above PTHREADS-enabled path. + receiveInstance(result['instance']); + } + + // User shell pages can write their own Module.instantiateWasm = function(imports, successCallback) callback + // to manually instantiate the Wasm module themselves. This allows pages to + // run the instantiation parallel to any other async startup actions they are + // performing. + // Also pthreads and wasm workers initialize the wasm instance through this + // path. + if (Module['instantiateWasm']) { + + try { + return Module['instantiateWasm'](info, receiveInstance); + } catch(e) { + err(`Module.instantiateWasm callback failed with error: ${e}`); + // If instantiation fails, reject the module ready promise. + readyPromiseReject(e); + } + } + + // If instantiation fails, reject the module ready promise. + instantiateAsync(wasmBinary, wasmBinaryFile, info, receiveInstantiationResult).catch(readyPromiseReject); + return {}; // no exports yet; we'll fill them in later +} + +// include: runtime_debug.js +// end include: runtime_debug.js +// === Body === +// end include: preamble.js + + + /** @constructor */ + function ExitStatus(status) { + this.name = 'ExitStatus'; + this.message = `Program terminated with exit(${status})`; + this.status = status; + } + + var callRuntimeCallbacks = (callbacks) => { + while (callbacks.length > 0) { + // Pass the module as the first argument. + callbacks.shift()(Module); + } + }; + + + /** + * @param {number} ptr + * @param {string} type + */ + function getValue(ptr, type = 'i8') { + if (type.endsWith('*')) type = '*'; + switch (type) { + case 'i1': return HEAP8[ptr]; + case 'i8': return HEAP8[ptr]; + case 'i16': return HEAP16[((ptr)>>1)]; + case 'i32': return HEAP32[((ptr)>>2)]; + case 'i64': return HEAP64[((ptr)>>3)]; + case 'float': return HEAPF32[((ptr)>>2)]; + case 'double': return HEAPF64[((ptr)>>3)]; + case '*': return HEAPU32[((ptr)>>2)]; + default: abort(`invalid type for getValue: ${type}`); + } + } + + var noExitRuntime = Module['noExitRuntime'] || false; + + + /** + * @param {number} ptr + * @param {number} value + * @param {string} type + */ + function setValue(ptr, value, type = 'i8') { + if (type.endsWith('*')) type = '*'; + switch (type) { + case 'i1': HEAP8[ptr] = value; break; + case 'i8': HEAP8[ptr] = value; break; + case 'i16': HEAP16[((ptr)>>1)] = value; break; + case 'i32': HEAP32[((ptr)>>2)] = value; break; + case 'i64': HEAP64[((ptr)>>3)] = BigInt(value); break; + case 'float': HEAPF32[((ptr)>>2)] = value; break; + case 'double': HEAPF64[((ptr)>>3)] = value; break; + case '*': HEAPU32[((ptr)>>2)] = value; break; + default: abort(`invalid type for setValue: ${type}`); + } + } + + var UTF8Decoder = typeof TextDecoder != 'undefined' ? new TextDecoder('utf8') : undefined; + + /** + * Given a pointer 'idx' to a null-terminated UTF8-encoded string in the given + * array that contains uint8 values, returns a copy of that string as a + * Javascript String object. + * heapOrArray is either a regular array, or a JavaScript typed array view. + * @param {number} idx + * @param {number=} maxBytesToRead + * @return {string} + */ + var UTF8ArrayToString = (heapOrArray, idx, maxBytesToRead) => { + var endIdx = idx + maxBytesToRead; + var endPtr = idx; + // TextDecoder needs to know the byte length in advance, it doesn't stop on + // null terminator by itself. Also, use the length info to avoid running tiny + // strings through TextDecoder, since .subarray() allocates garbage. + // (As a tiny code save trick, compare endPtr against endIdx using a negation, + // so that undefined means Infinity) + while (heapOrArray[endPtr] && !(endPtr >= endIdx)) ++endPtr; + + if (endPtr - idx > 16 && heapOrArray.buffer && UTF8Decoder) { + return UTF8Decoder.decode(heapOrArray.subarray(idx, endPtr)); + } + var str = ''; + // If building with TextDecoder, we have already computed the string length + // above, so test loop end condition against that + while (idx < endPtr) { + // For UTF8 byte structure, see: + // http://en.wikipedia.org/wiki/UTF-8#Description + // https://www.ietf.org/rfc/rfc2279.txt + // https://tools.ietf.org/html/rfc3629 + var u0 = heapOrArray[idx++]; + if (!(u0 & 0x80)) { str += String.fromCharCode(u0); continue; } + var u1 = heapOrArray[idx++] & 63; + if ((u0 & 0xE0) == 0xC0) { str += String.fromCharCode(((u0 & 31) << 6) | u1); continue; } + var u2 = heapOrArray[idx++] & 63; + if ((u0 & 0xF0) == 0xE0) { + u0 = ((u0 & 15) << 12) | (u1 << 6) | u2; + } else { + u0 = ((u0 & 7) << 18) | (u1 << 12) | (u2 << 6) | (heapOrArray[idx++] & 63); + } + + if (u0 < 0x10000) { + str += String.fromCharCode(u0); + } else { + var ch = u0 - 0x10000; + str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF)); + } + } + return str; + }; + + /** + * Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the + * emscripten HEAP, returns a copy of that string as a Javascript String object. + * + * @param {number} ptr + * @param {number=} maxBytesToRead - An optional length that specifies the + * maximum number of bytes to read. You can omit this parameter to scan the + * string until the first 0 byte. If maxBytesToRead is passed, and the string + * at [ptr, ptr+maxBytesToReadr[ contains a null byte in the middle, then the + * string will cut short at that byte index (i.e. maxBytesToRead will not + * produce a string of exact length [ptr, ptr+maxBytesToRead[) N.B. mixing + * frequent uses of UTF8ToString() with and without maxBytesToRead may throw + * JS JIT optimizations off, so it is worth to consider consistently using one + * @return {string} + */ + var UTF8ToString = (ptr, maxBytesToRead) => { + return ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead) : ''; + }; + var ___assert_fail = (condition, filename, line, func) => { + abort(`Assertion failed: ${UTF8ToString(condition)}, at: ` + [filename ? UTF8ToString(filename) : 'unknown filename', line, func ? UTF8ToString(func) : 'unknown function']); + }; + + var PATH = { + isAbs:(path) => path.charAt(0) === '/', + splitPath:(filename) => { + var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/; + return splitPathRe.exec(filename).slice(1); + }, + normalizeArray:(parts, allowAboveRoot) => { + // if the path tries to go above the root, `up` ends up > 0 + var up = 0; + for (var i = parts.length - 1; i >= 0; i--) { + var last = parts[i]; + if (last === '.') { + parts.splice(i, 1); + } else if (last === '..') { + parts.splice(i, 1); + up++; + } else if (up) { + parts.splice(i, 1); + up--; + } + } + // if the path is allowed to go above the root, restore leading ..s + if (allowAboveRoot) { + for (; up; up--) { + parts.unshift('..'); + } + } + return parts; + }, + normalize:(path) => { + var isAbsolute = PATH.isAbs(path), + trailingSlash = path.substr(-1) === '/'; + // Normalize the path + path = PATH.normalizeArray(path.split('/').filter((p) => !!p), !isAbsolute).join('/'); + if (!path && !isAbsolute) { + path = '.'; + } + if (path && trailingSlash) { + path += '/'; + } + return (isAbsolute ? '/' : '') + path; + }, + dirname:(path) => { + var result = PATH.splitPath(path), + root = result[0], + dir = result[1]; + if (!root && !dir) { + // No dirname whatsoever + return '.'; + } + if (dir) { + // It has a dirname, strip trailing slash + dir = dir.substr(0, dir.length - 1); + } + return root + dir; + }, + basename:(path) => { + // EMSCRIPTEN return '/'' for '/', not an empty string + if (path === '/') return '/'; + path = PATH.normalize(path); + path = path.replace(/\/$/, ""); + var lastSlash = path.lastIndexOf('/'); + if (lastSlash === -1) return path; + return path.substr(lastSlash+1); + }, + join:(...paths) => PATH.normalize(paths.join('/')), + join2:(l, r) => PATH.normalize(l + '/' + r), + }; + + var initRandomFill = () => { + if (typeof crypto == 'object' && typeof crypto['getRandomValues'] == 'function') { + // for modern web browsers + return (view) => crypto.getRandomValues(view); + } else + if (ENVIRONMENT_IS_NODE) { + // for nodejs with or without crypto support included + try { + var crypto_module = require('crypto'); + var randomFillSync = crypto_module['randomFillSync']; + if (randomFillSync) { + // nodejs with LTS crypto support + return (view) => crypto_module['randomFillSync'](view); + } + // very old nodejs with the original crypto API + var randomBytes = crypto_module['randomBytes']; + return (view) => ( + view.set(randomBytes(view.byteLength)), + // Return the original view to match modern native implementations. + view + ); + } catch (e) { + // nodejs doesn't have crypto support + } + } + // we couldn't find a proper implementation, as Math.random() is not suitable for /dev/random, see emscripten-core/emscripten/pull/7096 + abort('initRandomDevice'); + }; + var randomFill = (view) => { + // Lazily init on the first invocation. + return (randomFill = initRandomFill())(view); + }; + + + + var PATH_FS = { + resolve:(...args) => { + var resolvedPath = '', + resolvedAbsolute = false; + for (var i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) { + var path = (i >= 0) ? args[i] : FS.cwd(); + // Skip empty and invalid entries + if (typeof path != 'string') { + throw new TypeError('Arguments to path.resolve must be strings'); + } else if (!path) { + return ''; // an invalid portion invalidates the whole thing + } + resolvedPath = path + '/' + resolvedPath; + resolvedAbsolute = PATH.isAbs(path); + } + // At this point the path should be resolved to a full absolute path, but + // handle relative paths to be safe (might happen when process.cwd() fails) + resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter((p) => !!p), !resolvedAbsolute).join('/'); + return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.'; + }, + relative:(from, to) => { + from = PATH_FS.resolve(from).substr(1); + to = PATH_FS.resolve(to).substr(1); + function trim(arr) { + var start = 0; + for (; start < arr.length; start++) { + if (arr[start] !== '') break; + } + var end = arr.length - 1; + for (; end >= 0; end--) { + if (arr[end] !== '') break; + } + if (start > end) return []; + return arr.slice(start, end - start + 1); + } + var fromParts = trim(from.split('/')); + var toParts = trim(to.split('/')); + var length = Math.min(fromParts.length, toParts.length); + var samePartsLength = length; + for (var i = 0; i < length; i++) { + if (fromParts[i] !== toParts[i]) { + samePartsLength = i; + break; + } + } + var outputParts = []; + for (var i = samePartsLength; i < fromParts.length; i++) { + outputParts.push('..'); + } + outputParts = outputParts.concat(toParts.slice(samePartsLength)); + return outputParts.join('/'); + }, + }; + + + + var FS_stdin_getChar_buffer = []; + + var lengthBytesUTF8 = (str) => { + var len = 0; + for (var i = 0; i < str.length; ++i) { + // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code + // unit, not a Unicode code point of the character! So decode + // UTF16->UTF32->UTF8. + // See http://unicode.org/faq/utf_bom.html#utf16-3 + var c = str.charCodeAt(i); // possibly a lead surrogate + if (c <= 0x7F) { + len++; + } else if (c <= 0x7FF) { + len += 2; + } else if (c >= 0xD800 && c <= 0xDFFF) { + len += 4; ++i; + } else { + len += 3; + } + } + return len; + }; + + var stringToUTF8Array = (str, heap, outIdx, maxBytesToWrite) => { + // Parameter maxBytesToWrite is not optional. Negative values, 0, null, + // undefined and false each don't write out any bytes. + if (!(maxBytesToWrite > 0)) + return 0; + + var startIdx = outIdx; + var endIdx = outIdx + maxBytesToWrite - 1; // -1 for string null terminator. + for (var i = 0; i < str.length; ++i) { + // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code + // unit, not a Unicode code point of the character! So decode + // UTF16->UTF32->UTF8. + // See http://unicode.org/faq/utf_bom.html#utf16-3 + // For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description + // and https://www.ietf.org/rfc/rfc2279.txt + // and https://tools.ietf.org/html/rfc3629 + var u = str.charCodeAt(i); // possibly a lead surrogate + if (u >= 0xD800 && u <= 0xDFFF) { + var u1 = str.charCodeAt(++i); + u = 0x10000 + ((u & 0x3FF) << 10) | (u1 & 0x3FF); + } + if (u <= 0x7F) { + if (outIdx >= endIdx) break; + heap[outIdx++] = u; + } else if (u <= 0x7FF) { + if (outIdx + 1 >= endIdx) break; + heap[outIdx++] = 0xC0 | (u >> 6); + heap[outIdx++] = 0x80 | (u & 63); + } else if (u <= 0xFFFF) { + if (outIdx + 2 >= endIdx) break; + heap[outIdx++] = 0xE0 | (u >> 12); + heap[outIdx++] = 0x80 | ((u >> 6) & 63); + heap[outIdx++] = 0x80 | (u & 63); + } else { + if (outIdx + 3 >= endIdx) break; + heap[outIdx++] = 0xF0 | (u >> 18); + heap[outIdx++] = 0x80 | ((u >> 12) & 63); + heap[outIdx++] = 0x80 | ((u >> 6) & 63); + heap[outIdx++] = 0x80 | (u & 63); + } + } + // Null-terminate the pointer to the buffer. + heap[outIdx] = 0; + return outIdx - startIdx; + }; + /** @type {function(string, boolean=, number=)} */ + function intArrayFromString(stringy, dontAddNull, length) { + var len = length > 0 ? length : lengthBytesUTF8(stringy)+1; + var u8array = new Array(len); + var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length); + if (dontAddNull) u8array.length = numBytesWritten; + return u8array; + } + var FS_stdin_getChar = () => { + if (!FS_stdin_getChar_buffer.length) { + var result = null; + if (ENVIRONMENT_IS_NODE) { + // we will read data by chunks of BUFSIZE + var BUFSIZE = 256; + var buf = Buffer.alloc(BUFSIZE); + var bytesRead = 0; + + // For some reason we must suppress a closure warning here, even though + // fd definitely exists on process.stdin, and is even the proper way to + // get the fd of stdin, + // https://github.com/nodejs/help/issues/2136#issuecomment-523649904 + // This started to happen after moving this logic out of library_tty.js, + // so it is related to the surrounding code in some unclear manner. + /** @suppress {missingProperties} */ + var fd = process.stdin.fd; + + try { + bytesRead = fs.readSync(fd, buf); + } catch(e) { + // Cross-platform differences: on Windows, reading EOF throws an exception, but on other OSes, + // reading EOF returns 0. Uniformize behavior by treating the EOF exception to return 0. + if (e.toString().includes('EOF')) bytesRead = 0; + else throw e; + } + + if (bytesRead > 0) { + result = buf.slice(0, bytesRead).toString('utf-8'); + } else { + result = null; + } + } else + if (typeof window != 'undefined' && + typeof window.prompt == 'function') { + // Browser. + result = window.prompt('Input: '); // returns null on cancel + if (result !== null) { + result += '\n'; + } + } else if (typeof readline == 'function') { + // Command line. + result = readline(); + if (result !== null) { + result += '\n'; + } + } + if (!result) { + return null; + } + FS_stdin_getChar_buffer = intArrayFromString(result, true); + } + return FS_stdin_getChar_buffer.shift(); + }; + var TTY = { + ttys:[], + init() { + // https://github.com/emscripten-core/emscripten/pull/1555 + // if (ENVIRONMENT_IS_NODE) { + // // currently, FS.init does not distinguish if process.stdin is a file or TTY + // // device, it always assumes it's a TTY device. because of this, we're forcing + // // process.stdin to UTF8 encoding to at least make stdin reading compatible + // // with text files until FS.init can be refactored. + // process.stdin.setEncoding('utf8'); + // } + }, + shutdown() { + // https://github.com/emscripten-core/emscripten/pull/1555 + // if (ENVIRONMENT_IS_NODE) { + // // inolen: any idea as to why node -e 'process.stdin.read()' wouldn't exit immediately (with process.stdin being a tty)? + // // isaacs: because now it's reading from the stream, you've expressed interest in it, so that read() kicks off a _read() which creates a ReadReq operation + // // inolen: I thought read() in that case was a synchronous operation that just grabbed some amount of buffered data if it exists? + // // isaacs: it is. but it also triggers a _read() call, which calls readStart() on the handle + // // isaacs: do process.stdin.pause() and i'd think it'd probably close the pending call + // process.stdin.pause(); + // } + }, + register(dev, ops) { + TTY.ttys[dev] = { input: [], output: [], ops: ops }; + FS.registerDevice(dev, TTY.stream_ops); + }, + stream_ops:{ + open(stream) { + var tty = TTY.ttys[stream.node.rdev]; + if (!tty) { + throw new FS.ErrnoError(43); + } + stream.tty = tty; + stream.seekable = false; + }, + close(stream) { + // flush any pending line data + stream.tty.ops.fsync(stream.tty); + }, + fsync(stream) { + stream.tty.ops.fsync(stream.tty); + }, + read(stream, buffer, offset, length, pos /* ignored */) { + if (!stream.tty || !stream.tty.ops.get_char) { + throw new FS.ErrnoError(60); + } + var bytesRead = 0; + for (var i = 0; i < length; i++) { + var result; + try { + result = stream.tty.ops.get_char(stream.tty); + } catch (e) { + throw new FS.ErrnoError(29); + } + if (result === undefined && bytesRead === 0) { + throw new FS.ErrnoError(6); + } + if (result === null || result === undefined) break; + bytesRead++; + buffer[offset+i] = result; + } + if (bytesRead) { + stream.node.timestamp = Date.now(); + } + return bytesRead; + }, + write(stream, buffer, offset, length, pos) { + if (!stream.tty || !stream.tty.ops.put_char) { + throw new FS.ErrnoError(60); + } + try { + for (var i = 0; i < length; i++) { + stream.tty.ops.put_char(stream.tty, buffer[offset+i]); + } + } catch (e) { + throw new FS.ErrnoError(29); + } + if (length) { + stream.node.timestamp = Date.now(); + } + return i; + }, + }, + default_tty_ops:{ + get_char(tty) { + return FS_stdin_getChar(); + }, + put_char(tty, val) { + if (val === null || val === 10) { + out(UTF8ArrayToString(tty.output, 0)); + tty.output = []; + } else { + if (val != 0) tty.output.push(val); // val == 0 would cut text output off in the middle. + } + }, + fsync(tty) { + if (tty.output && tty.output.length > 0) { + out(UTF8ArrayToString(tty.output, 0)); + tty.output = []; + } + }, + ioctl_tcgets(tty) { + // typical setting + return { + c_iflag: 25856, + c_oflag: 5, + c_cflag: 191, + c_lflag: 35387, + c_cc: [ + 0x03, 0x1c, 0x7f, 0x15, 0x04, 0x00, 0x01, 0x00, 0x11, 0x13, 0x1a, 0x00, + 0x12, 0x0f, 0x17, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + ] + }; + }, + ioctl_tcsets(tty, optional_actions, data) { + // currently just ignore + return 0; + }, + ioctl_tiocgwinsz(tty) { + return [24, 80]; + }, + }, + default_tty1_ops:{ + put_char(tty, val) { + if (val === null || val === 10) { + err(UTF8ArrayToString(tty.output, 0)); + tty.output = []; + } else { + if (val != 0) tty.output.push(val); + } + }, + fsync(tty) { + if (tty.output && tty.output.length > 0) { + err(UTF8ArrayToString(tty.output, 0)); + tty.output = []; + } + }, + }, + }; + + + var zeroMemory = (address, size) => { + HEAPU8.fill(0, address, address + size); + return address; + }; + + var alignMemory = (size, alignment) => { + return Math.ceil(size / alignment) * alignment; + }; + var mmapAlloc = (size) => { + size = alignMemory(size, 65536); + var ptr = _emscripten_builtin_memalign(65536, size); + if (!ptr) return 0; + return zeroMemory(ptr, size); + }; + var MEMFS = { + ops_table:null, + mount(mount) { + return MEMFS.createNode(null, '/', 16384 | 511 /* 0777 */, 0); + }, + createNode(parent, name, mode, dev) { + if (FS.isBlkdev(mode) || FS.isFIFO(mode)) { + // no supported + throw new FS.ErrnoError(63); + } + MEMFS.ops_table ||= { + dir: { + node: { + getattr: MEMFS.node_ops.getattr, + setattr: MEMFS.node_ops.setattr, + lookup: MEMFS.node_ops.lookup, + mknod: MEMFS.node_ops.mknod, + rename: MEMFS.node_ops.rename, + unlink: MEMFS.node_ops.unlink, + rmdir: MEMFS.node_ops.rmdir, + readdir: MEMFS.node_ops.readdir, + symlink: MEMFS.node_ops.symlink + }, + stream: { + llseek: MEMFS.stream_ops.llseek + } + }, + file: { + node: { + getattr: MEMFS.node_ops.getattr, + setattr: MEMFS.node_ops.setattr + }, + stream: { + llseek: MEMFS.stream_ops.llseek, + read: MEMFS.stream_ops.read, + write: MEMFS.stream_ops.write, + allocate: MEMFS.stream_ops.allocate, + mmap: MEMFS.stream_ops.mmap, + msync: MEMFS.stream_ops.msync + } + }, + link: { + node: { + getattr: MEMFS.node_ops.getattr, + setattr: MEMFS.node_ops.setattr, + readlink: MEMFS.node_ops.readlink + }, + stream: {} + }, + chrdev: { + node: { + getattr: MEMFS.node_ops.getattr, + setattr: MEMFS.node_ops.setattr + }, + stream: FS.chrdev_stream_ops + } + }; + var node = FS.createNode(parent, name, mode, dev); + if (FS.isDir(node.mode)) { + node.node_ops = MEMFS.ops_table.dir.node; + node.stream_ops = MEMFS.ops_table.dir.stream; + node.contents = {}; + } else if (FS.isFile(node.mode)) { + node.node_ops = MEMFS.ops_table.file.node; + node.stream_ops = MEMFS.ops_table.file.stream; + node.usedBytes = 0; // The actual number of bytes used in the typed array, as opposed to contents.length which gives the whole capacity. + // When the byte data of the file is populated, this will point to either a typed array, or a normal JS array. Typed arrays are preferred + // for performance, and used by default. However, typed arrays are not resizable like normal JS arrays are, so there is a small disk size + // penalty involved for appending file writes that continuously grow a file similar to std::vector capacity vs used -scheme. + node.contents = null; + } else if (FS.isLink(node.mode)) { + node.node_ops = MEMFS.ops_table.link.node; + node.stream_ops = MEMFS.ops_table.link.stream; + } else if (FS.isChrdev(node.mode)) { + node.node_ops = MEMFS.ops_table.chrdev.node; + node.stream_ops = MEMFS.ops_table.chrdev.stream; + } + node.timestamp = Date.now(); + // add the new node to the parent + if (parent) { + parent.contents[name] = node; + parent.timestamp = node.timestamp; + } + return node; + }, + getFileDataAsTypedArray(node) { + if (!node.contents) return new Uint8Array(0); + if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes); // Make sure to not return excess unused bytes. + return new Uint8Array(node.contents); + }, + expandFileStorage(node, newCapacity) { + var prevCapacity = node.contents ? node.contents.length : 0; + if (prevCapacity >= newCapacity) return; // No need to expand, the storage was already large enough. + // Don't expand strictly to the given requested limit if it's only a very small increase, but instead geometrically grow capacity. + // For small filesizes (<1MB), perform size*2 geometric increase, but for large sizes, do a much more conservative size*1.125 increase to + // avoid overshooting the allocation cap by a very large margin. + var CAPACITY_DOUBLING_MAX = 1024 * 1024; + newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2.0 : 1.125)) >>> 0); + if (prevCapacity != 0) newCapacity = Math.max(newCapacity, 256); // At minimum allocate 256b for each file when expanding. + var oldContents = node.contents; + node.contents = new Uint8Array(newCapacity); // Allocate new storage. + if (node.usedBytes > 0) node.contents.set(oldContents.subarray(0, node.usedBytes), 0); // Copy old data over to the new storage. + }, + resizeFileStorage(node, newSize) { + if (node.usedBytes == newSize) return; + if (newSize == 0) { + node.contents = null; // Fully decommit when requesting a resize to zero. + node.usedBytes = 0; + } else { + var oldContents = node.contents; + node.contents = new Uint8Array(newSize); // Allocate new storage. + if (oldContents) { + node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes))); // Copy old data over to the new storage. + } + node.usedBytes = newSize; + } + }, + node_ops:{ + getattr(node) { + var attr = {}; + // device numbers reuse inode numbers. + attr.dev = FS.isChrdev(node.mode) ? node.id : 1; + attr.ino = node.id; + attr.mode = node.mode; + attr.nlink = 1; + attr.uid = 0; + attr.gid = 0; + attr.rdev = node.rdev; + if (FS.isDir(node.mode)) { + attr.size = 4096; + } else if (FS.isFile(node.mode)) { + attr.size = node.usedBytes; + } else if (FS.isLink(node.mode)) { + attr.size = node.link.length; + } else { + attr.size = 0; + } + attr.atime = new Date(node.timestamp); + attr.mtime = new Date(node.timestamp); + attr.ctime = new Date(node.timestamp); + // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize), + // but this is not required by the standard. + attr.blksize = 4096; + attr.blocks = Math.ceil(attr.size / attr.blksize); + return attr; + }, + setattr(node, attr) { + if (attr.mode !== undefined) { + node.mode = attr.mode; + } + if (attr.timestamp !== undefined) { + node.timestamp = attr.timestamp; + } + if (attr.size !== undefined) { + MEMFS.resizeFileStorage(node, attr.size); + } + }, + lookup(parent, name) { + throw FS.genericErrors[44]; + }, + mknod(parent, name, mode, dev) { + return MEMFS.createNode(parent, name, mode, dev); + }, + rename(old_node, new_dir, new_name) { + // if we're overwriting a directory at new_name, make sure it's empty. + if (FS.isDir(old_node.mode)) { + var new_node; + try { + new_node = FS.lookupNode(new_dir, new_name); + } catch (e) { + } + if (new_node) { + for (var i in new_node.contents) { + throw new FS.ErrnoError(55); + } + } + } + // do the internal rewiring + delete old_node.parent.contents[old_node.name]; + old_node.parent.timestamp = Date.now() + old_node.name = new_name; + new_dir.contents[new_name] = old_node; + new_dir.timestamp = old_node.parent.timestamp; + old_node.parent = new_dir; + }, + unlink(parent, name) { + delete parent.contents[name]; + parent.timestamp = Date.now(); + }, + rmdir(parent, name) { + var node = FS.lookupNode(parent, name); + for (var i in node.contents) { + throw new FS.ErrnoError(55); + } + delete parent.contents[name]; + parent.timestamp = Date.now(); + }, + readdir(node) { + var entries = ['.', '..']; + for (var key of Object.keys(node.contents)) { + entries.push(key); + } + return entries; + }, + symlink(parent, newname, oldpath) { + var node = MEMFS.createNode(parent, newname, 511 /* 0777 */ | 40960, 0); + node.link = oldpath; + return node; + }, + readlink(node) { + if (!FS.isLink(node.mode)) { + throw new FS.ErrnoError(28); + } + return node.link; + }, + }, + stream_ops:{ + read(stream, buffer, offset, length, position) { + var contents = stream.node.contents; + if (position >= stream.node.usedBytes) return 0; + var size = Math.min(stream.node.usedBytes - position, length); + if (size > 8 && contents.subarray) { // non-trivial, and typed array + buffer.set(contents.subarray(position, position + size), offset); + } else { + for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i]; + } + return size; + }, + write(stream, buffer, offset, length, position, canOwn) { + // If the buffer is located in main memory (HEAP), and if + // memory can grow, we can't hold on to references of the + // memory buffer, as they may get invalidated. That means we + // need to do copy its contents. + if (buffer.buffer === HEAP8.buffer) { + canOwn = false; + } + + if (!length) return 0; + var node = stream.node; + node.timestamp = Date.now(); + + if (buffer.subarray && (!node.contents || node.contents.subarray)) { // This write is from a typed array to a typed array? + if (canOwn) { + node.contents = buffer.subarray(offset, offset + length); + node.usedBytes = length; + return length; + } else if (node.usedBytes === 0 && position === 0) { // If this is a simple first write to an empty file, do a fast set since we don't need to care about old data. + node.contents = buffer.slice(offset, offset + length); + node.usedBytes = length; + return length; + } else if (position + length <= node.usedBytes) { // Writing to an already allocated and used subrange of the file? + node.contents.set(buffer.subarray(offset, offset + length), position); + return length; + } + } + + // Appending to an existing file and we need to reallocate, or source data did not come as a typed array. + MEMFS.expandFileStorage(node, position+length); + if (node.contents.subarray && buffer.subarray) { + // Use typed array write which is available. + node.contents.set(buffer.subarray(offset, offset + length), position); + } else { + for (var i = 0; i < length; i++) { + node.contents[position + i] = buffer[offset + i]; // Or fall back to manual write if not. + } + } + node.usedBytes = Math.max(node.usedBytes, position + length); + return length; + }, + llseek(stream, offset, whence) { + var position = offset; + if (whence === 1) { + position += stream.position; + } else if (whence === 2) { + if (FS.isFile(stream.node.mode)) { + position += stream.node.usedBytes; + } + } + if (position < 0) { + throw new FS.ErrnoError(28); + } + return position; + }, + allocate(stream, offset, length) { + MEMFS.expandFileStorage(stream.node, offset + length); + stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length); + }, + mmap(stream, length, position, prot, flags) { + if (!FS.isFile(stream.node.mode)) { + throw new FS.ErrnoError(43); + } + var ptr; + var allocated; + var contents = stream.node.contents; + // Only make a new copy when MAP_PRIVATE is specified. + if (!(flags & 2) && contents.buffer === HEAP8.buffer) { + // We can't emulate MAP_SHARED when the file is not backed by the + // buffer we're mapping to (e.g. the HEAP buffer). + allocated = false; + ptr = contents.byteOffset; + } else { + // Try to avoid unnecessary slices. + if (position > 0 || position + length < contents.length) { + if (contents.subarray) { + contents = contents.subarray(position, position + length); + } else { + contents = Array.prototype.slice.call(contents, position, position + length); + } + } + allocated = true; + ptr = mmapAlloc(length); + if (!ptr) { + throw new FS.ErrnoError(48); + } + HEAP8.set(contents, ptr); + } + return { ptr, allocated }; + }, + msync(stream, buffer, offset, length, mmapFlags) { + MEMFS.stream_ops.write(stream, buffer, 0, length, offset, false); + // should we check if bytesWritten and length are the same? + return 0; + }, + }, + }; + + /** @param {boolean=} noRunDep */ + var asyncLoad = (url, onload, onerror, noRunDep) => { + var dep = !noRunDep ? getUniqueRunDependency(`al ${url}`) : ''; + readAsync(url, (arrayBuffer) => { + onload(new Uint8Array(arrayBuffer)); + if (dep) removeRunDependency(dep); + }, (event) => { + if (onerror) { + onerror(); + } else { + throw `Loading data file "${url}" failed.`; + } + }); + if (dep) addRunDependency(dep); + }; + + + var FS_createDataFile = (parent, name, fileData, canRead, canWrite, canOwn) => { + FS.createDataFile(parent, name, fileData, canRead, canWrite, canOwn); + }; + + var preloadPlugins = Module['preloadPlugins'] || []; + var FS_handledByPreloadPlugin = (byteArray, fullname, finish, onerror) => { + // Ensure plugins are ready. + if (typeof Browser != 'undefined') Browser.init(); + + var handled = false; + preloadPlugins.forEach((plugin) => { + if (handled) return; + if (plugin['canHandle'](fullname)) { + plugin['handle'](byteArray, fullname, finish, onerror); + handled = true; + } + }); + return handled; + }; + var FS_createPreloadedFile = (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) => { + // TODO we should allow people to just pass in a complete filename instead + // of parent and name being that we just join them anyways + var fullname = name ? PATH_FS.resolve(PATH.join2(parent, name)) : parent; + var dep = getUniqueRunDependency(`cp ${fullname}`); // might have several active requests for the same fullname + function processData(byteArray) { + function finish(byteArray) { + preFinish?.(); + if (!dontCreateFile) { + FS_createDataFile(parent, name, byteArray, canRead, canWrite, canOwn); + } + onload?.(); + removeRunDependency(dep); + } + if (FS_handledByPreloadPlugin(byteArray, fullname, finish, () => { + onerror?.(); + removeRunDependency(dep); + })) { + return; + } + finish(byteArray); + } + addRunDependency(dep); + if (typeof url == 'string') { + asyncLoad(url, processData, onerror); + } else { + processData(url); + } + }; + + var FS_modeStringToFlags = (str) => { + var flagModes = { + 'r': 0, + 'r+': 2, + 'w': 512 | 64 | 1, + 'w+': 512 | 64 | 2, + 'a': 1024 | 64 | 1, + 'a+': 1024 | 64 | 2, + }; + var flags = flagModes[str]; + if (typeof flags == 'undefined') { + throw new Error(`Unknown file open mode: ${str}`); + } + return flags; + }; + + var FS_getMode = (canRead, canWrite) => { + var mode = 0; + if (canRead) mode |= 292 | 73; + if (canWrite) mode |= 146; + return mode; + }; + + + + var FS = { + root:null, + mounts:[], + devices:{ + }, + streams:[], + nextInode:1, + nameTable:null, + currentPath:"/", + initialized:false, + ignorePermissions:true, + ErrnoError:class { + // We set the `name` property to be able to identify `FS.ErrnoError` + // - the `name` is a standard ECMA-262 property of error objects. Kind of good to have it anyway. + // - when using PROXYFS, an error can come from an underlying FS + // as different FS objects have their own FS.ErrnoError each, + // the test `err instanceof FS.ErrnoError` won't detect an error coming from another filesystem, causing bugs. + // we'll use the reliable test `err.name == "ErrnoError"` instead + constructor(errno) { + // TODO(sbc): Use the inline member declaration syntax once we + // support it in acorn and closure. + this.name = 'ErrnoError'; + this.errno = errno; + } + }, + genericErrors:{ + }, + filesystems:null, + syncFSRequests:0, + FSStream:class { + constructor() { + // TODO(https://github.com/emscripten-core/emscripten/issues/21414): + // Use inline field declarations. + this.shared = {}; + } + get object() { + return this.node; + } + set object(val) { + this.node = val; + } + get isRead() { + return (this.flags & 2097155) !== 1; + } + get isWrite() { + return (this.flags & 2097155) !== 0; + } + get isAppend() { + return (this.flags & 1024); + } + get flags() { + return this.shared.flags; + } + set flags(val) { + this.shared.flags = val; + } + get position() { + return this.shared.position; + } + set position(val) { + this.shared.position = val; + } + }, + FSNode:class { + constructor(parent, name, mode, rdev) { + if (!parent) { + parent = this; // root node sets parent to itself + } + this.parent = parent; + this.mount = parent.mount; + this.mounted = null; + this.id = FS.nextInode++; + this.name = name; + this.mode = mode; + this.node_ops = {}; + this.stream_ops = {}; + this.rdev = rdev; + this.readMode = 292/*292*/ | 73/*73*/; + this.writeMode = 146/*146*/; + } + get read() { + return (this.mode & this.readMode) === this.readMode; + } + set read(val) { + val ? this.mode |= this.readMode : this.mode &= ~this.readMode; + } + get write() { + return (this.mode & this.writeMode) === this.writeMode; + } + set write(val) { + val ? this.mode |= this.writeMode : this.mode &= ~this.writeMode; + } + get isFolder() { + return FS.isDir(this.mode); + } + get isDevice() { + return FS.isChrdev(this.mode); + } + }, + lookupPath(path, opts = {}) { + path = PATH_FS.resolve(path); + + if (!path) return { path: '', node: null }; + + var defaults = { + follow_mount: true, + recurse_count: 0 + }; + opts = Object.assign(defaults, opts) + + if (opts.recurse_count > 8) { // max recursive lookup of 8 + throw new FS.ErrnoError(32); + } + + // split the absolute path + var parts = path.split('/').filter((p) => !!p); + + // start at the root + var current = FS.root; + var current_path = '/'; + + for (var i = 0; i < parts.length; i++) { + var islast = (i === parts.length-1); + if (islast && opts.parent) { + // stop resolving + break; + } + + current = FS.lookupNode(current, parts[i]); + current_path = PATH.join2(current_path, parts[i]); + + // jump to the mount's root node if this is a mountpoint + if (FS.isMountpoint(current)) { + if (!islast || (islast && opts.follow_mount)) { + current = current.mounted.root; + } + } + + // by default, lookupPath will not follow a symlink if it is the final path component. + // setting opts.follow = true will override this behavior. + if (!islast || opts.follow) { + var count = 0; + while (FS.isLink(current.mode)) { + var link = FS.readlink(current_path); + current_path = PATH_FS.resolve(PATH.dirname(current_path), link); + + var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count + 1 }); + current = lookup.node; + + if (count++ > 40) { // limit max consecutive symlinks to 40 (SYMLOOP_MAX). + throw new FS.ErrnoError(32); + } + } + } + } + + return { path: current_path, node: current }; + }, + getPath(node) { + var path; + while (true) { + if (FS.isRoot(node)) { + var mount = node.mount.mountpoint; + if (!path) return mount; + return mount[mount.length-1] !== '/' ? `${mount}/${path}` : mount + path; + } + path = path ? `${node.name}/${path}` : node.name; + node = node.parent; + } + }, + hashName(parentid, name) { + var hash = 0; + + for (var i = 0; i < name.length; i++) { + hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0; + } + return ((parentid + hash) >>> 0) % FS.nameTable.length; + }, + hashAddNode(node) { + var hash = FS.hashName(node.parent.id, node.name); + node.name_next = FS.nameTable[hash]; + FS.nameTable[hash] = node; + }, + hashRemoveNode(node) { + var hash = FS.hashName(node.parent.id, node.name); + if (FS.nameTable[hash] === node) { + FS.nameTable[hash] = node.name_next; + } else { + var current = FS.nameTable[hash]; + while (current) { + if (current.name_next === node) { + current.name_next = node.name_next; + break; + } + current = current.name_next; + } + } + }, + lookupNode(parent, name) { + var errCode = FS.mayLookup(parent); + if (errCode) { + throw new FS.ErrnoError(errCode); + } + var hash = FS.hashName(parent.id, name); + for (var node = FS.nameTable[hash]; node; node = node.name_next) { + var nodeName = node.name; + if (node.parent.id === parent.id && nodeName === name) { + return node; + } + } + // if we failed to find it in the cache, call into the VFS + return FS.lookup(parent, name); + }, + createNode(parent, name, mode, rdev) { + var node = new FS.FSNode(parent, name, mode, rdev); + + FS.hashAddNode(node); + + return node; + }, + destroyNode(node) { + FS.hashRemoveNode(node); + }, + isRoot(node) { + return node === node.parent; + }, + isMountpoint(node) { + return !!node.mounted; + }, + isFile(mode) { + return (mode & 61440) === 32768; + }, + isDir(mode) { + return (mode & 61440) === 16384; + }, + isLink(mode) { + return (mode & 61440) === 40960; + }, + isChrdev(mode) { + return (mode & 61440) === 8192; + }, + isBlkdev(mode) { + return (mode & 61440) === 24576; + }, + isFIFO(mode) { + return (mode & 61440) === 4096; + }, + isSocket(mode) { + return (mode & 49152) === 49152; + }, + flagsToPermissionString(flag) { + var perms = ['r', 'w', 'rw'][flag & 3]; + if ((flag & 512)) { + perms += 'w'; + } + return perms; + }, + nodePermissions(node, perms) { + if (FS.ignorePermissions) { + return 0; + } + // return 0 if any user, group or owner bits are set. + if (perms.includes('r') && !(node.mode & 292)) { + return 2; + } else if (perms.includes('w') && !(node.mode & 146)) { + return 2; + } else if (perms.includes('x') && !(node.mode & 73)) { + return 2; + } + return 0; + }, + mayLookup(dir) { + if (!FS.isDir(dir.mode)) return 54; + var errCode = FS.nodePermissions(dir, 'x'); + if (errCode) return errCode; + if (!dir.node_ops.lookup) return 2; + return 0; + }, + mayCreate(dir, name) { + try { + var node = FS.lookupNode(dir, name); + return 20; + } catch (e) { + } + return FS.nodePermissions(dir, 'wx'); + }, + mayDelete(dir, name, isdir) { + var node; + try { + node = FS.lookupNode(dir, name); + } catch (e) { + return e.errno; + } + var errCode = FS.nodePermissions(dir, 'wx'); + if (errCode) { + return errCode; + } + if (isdir) { + if (!FS.isDir(node.mode)) { + return 54; + } + if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) { + return 10; + } + } else { + if (FS.isDir(node.mode)) { + return 31; + } + } + return 0; + }, + mayOpen(node, flags) { + if (!node) { + return 44; + } + if (FS.isLink(node.mode)) { + return 32; + } else if (FS.isDir(node.mode)) { + if (FS.flagsToPermissionString(flags) !== 'r' || // opening for write + (flags & 512)) { // TODO: check for O_SEARCH? (== search for dir only) + return 31; + } + } + return FS.nodePermissions(node, FS.flagsToPermissionString(flags)); + }, + MAX_OPEN_FDS:4096, + nextfd() { + for (var fd = 0; fd <= FS.MAX_OPEN_FDS; fd++) { + if (!FS.streams[fd]) { + return fd; + } + } + throw new FS.ErrnoError(33); + }, + getStreamChecked(fd) { + var stream = FS.getStream(fd); + if (!stream) { + throw new FS.ErrnoError(8); + } + return stream; + }, + getStream:(fd) => FS.streams[fd], + createStream(stream, fd = -1) { + + // clone it, so we can return an instance of FSStream + stream = Object.assign(new FS.FSStream(), stream); + if (fd == -1) { + fd = FS.nextfd(); + } + stream.fd = fd; + FS.streams[fd] = stream; + return stream; + }, + closeStream(fd) { + FS.streams[fd] = null; + }, + dupStream(origStream, fd = -1) { + var stream = FS.createStream(origStream, fd); + stream.stream_ops?.dup?.(stream); + return stream; + }, + chrdev_stream_ops:{ + open(stream) { + var device = FS.getDevice(stream.node.rdev); + // override node's stream ops with the device's + stream.stream_ops = device.stream_ops; + // forward the open call + stream.stream_ops.open?.(stream); + }, + llseek() { + throw new FS.ErrnoError(70); + }, + }, + major:(dev) => ((dev) >> 8), + minor:(dev) => ((dev) & 0xff), + makedev:(ma, mi) => ((ma) << 8 | (mi)), + registerDevice(dev, ops) { + FS.devices[dev] = { stream_ops: ops }; + }, + getDevice:(dev) => FS.devices[dev], + getMounts(mount) { + var mounts = []; + var check = [mount]; + + while (check.length) { + var m = check.pop(); + + mounts.push(m); + + check.push(...m.mounts); + } + + return mounts; + }, + syncfs(populate, callback) { + if (typeof populate == 'function') { + callback = populate; + populate = false; + } + + FS.syncFSRequests++; + + if (FS.syncFSRequests > 1) { + err(`warning: ${FS.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`); + } + + var mounts = FS.getMounts(FS.root.mount); + var completed = 0; + + function doCallback(errCode) { + FS.syncFSRequests--; + return callback(errCode); + } + + function done(errCode) { + if (errCode) { + if (!done.errored) { + done.errored = true; + return doCallback(errCode); + } + return; + } + if (++completed >= mounts.length) { + doCallback(null); + } + }; + + // sync all mounts + mounts.forEach((mount) => { + if (!mount.type.syncfs) { + return done(null); + } + mount.type.syncfs(mount, populate, done); + }); + }, + mount(type, opts, mountpoint) { + var root = mountpoint === '/'; + var pseudo = !mountpoint; + var node; + + if (root && FS.root) { + throw new FS.ErrnoError(10); + } else if (!root && !pseudo) { + var lookup = FS.lookupPath(mountpoint, { follow_mount: false }); + + mountpoint = lookup.path; // use the absolute path + node = lookup.node; + + if (FS.isMountpoint(node)) { + throw new FS.ErrnoError(10); + } + + if (!FS.isDir(node.mode)) { + throw new FS.ErrnoError(54); + } + } + + var mount = { + type, + opts, + mountpoint, + mounts: [] + }; + + // create a root node for the fs + var mountRoot = type.mount(mount); + mountRoot.mount = mount; + mount.root = mountRoot; + + if (root) { + FS.root = mountRoot; + } else if (node) { + // set as a mountpoint + node.mounted = mount; + + // add the new mount to the current mount's children + if (node.mount) { + node.mount.mounts.push(mount); + } + } + + return mountRoot; + }, + unmount(mountpoint) { + var lookup = FS.lookupPath(mountpoint, { follow_mount: false }); + + if (!FS.isMountpoint(lookup.node)) { + throw new FS.ErrnoError(28); + } + + // destroy the nodes for this mount, and all its child mounts + var node = lookup.node; + var mount = node.mounted; + var mounts = FS.getMounts(mount); + + Object.keys(FS.nameTable).forEach((hash) => { + var current = FS.nameTable[hash]; + + while (current) { + var next = current.name_next; + + if (mounts.includes(current.mount)) { + FS.destroyNode(current); + } + + current = next; + } + }); + + // no longer a mountpoint + node.mounted = null; + + // remove this mount from the child mounts + var idx = node.mount.mounts.indexOf(mount); + node.mount.mounts.splice(idx, 1); + }, + lookup(parent, name) { + return parent.node_ops.lookup(parent, name); + }, + mknod(path, mode, dev) { + var lookup = FS.lookupPath(path, { parent: true }); + var parent = lookup.node; + var name = PATH.basename(path); + if (!name || name === '.' || name === '..') { + throw new FS.ErrnoError(28); + } + var errCode = FS.mayCreate(parent, name); + if (errCode) { + throw new FS.ErrnoError(errCode); + } + if (!parent.node_ops.mknod) { + throw new FS.ErrnoError(63); + } + return parent.node_ops.mknod(parent, name, mode, dev); + }, + create(path, mode) { + mode = mode !== undefined ? mode : 438 /* 0666 */; + mode &= 4095; + mode |= 32768; + return FS.mknod(path, mode, 0); + }, + mkdir(path, mode) { + mode = mode !== undefined ? mode : 511 /* 0777 */; + mode &= 511 | 512; + mode |= 16384; + return FS.mknod(path, mode, 0); + }, + mkdirTree(path, mode) { + var dirs = path.split('/'); + var d = ''; + for (var i = 0; i < dirs.length; ++i) { + if (!dirs[i]) continue; + d += '/' + dirs[i]; + try { + FS.mkdir(d, mode); + } catch(e) { + if (e.errno != 20) throw e; + } + } + }, + mkdev(path, mode, dev) { + if (typeof dev == 'undefined') { + dev = mode; + mode = 438 /* 0666 */; + } + mode |= 8192; + return FS.mknod(path, mode, dev); + }, + symlink(oldpath, newpath) { + if (!PATH_FS.resolve(oldpath)) { + throw new FS.ErrnoError(44); + } + var lookup = FS.lookupPath(newpath, { parent: true }); + var parent = lookup.node; + if (!parent) { + throw new FS.ErrnoError(44); + } + var newname = PATH.basename(newpath); + var errCode = FS.mayCreate(parent, newname); + if (errCode) { + throw new FS.ErrnoError(errCode); + } + if (!parent.node_ops.symlink) { + throw new FS.ErrnoError(63); + } + return parent.node_ops.symlink(parent, newname, oldpath); + }, + rename(old_path, new_path) { + var old_dirname = PATH.dirname(old_path); + var new_dirname = PATH.dirname(new_path); + var old_name = PATH.basename(old_path); + var new_name = PATH.basename(new_path); + // parents must exist + var lookup, old_dir, new_dir; + + // let the errors from non existent directories percolate up + lookup = FS.lookupPath(old_path, { parent: true }); + old_dir = lookup.node; + lookup = FS.lookupPath(new_path, { parent: true }); + new_dir = lookup.node; + + if (!old_dir || !new_dir) throw new FS.ErrnoError(44); + // need to be part of the same mount + if (old_dir.mount !== new_dir.mount) { + throw new FS.ErrnoError(75); + } + // source must exist + var old_node = FS.lookupNode(old_dir, old_name); + // old path should not be an ancestor of the new path + var relative = PATH_FS.relative(old_path, new_dirname); + if (relative.charAt(0) !== '.') { + throw new FS.ErrnoError(28); + } + // new path should not be an ancestor of the old path + relative = PATH_FS.relative(new_path, old_dirname); + if (relative.charAt(0) !== '.') { + throw new FS.ErrnoError(55); + } + // see if the new path already exists + var new_node; + try { + new_node = FS.lookupNode(new_dir, new_name); + } catch (e) { + // not fatal + } + // early out if nothing needs to change + if (old_node === new_node) { + return; + } + // we'll need to delete the old entry + var isdir = FS.isDir(old_node.mode); + var errCode = FS.mayDelete(old_dir, old_name, isdir); + if (errCode) { + throw new FS.ErrnoError(errCode); + } + // need delete permissions if we'll be overwriting. + // need create permissions if new doesn't already exist. + errCode = new_node ? + FS.mayDelete(new_dir, new_name, isdir) : + FS.mayCreate(new_dir, new_name); + if (errCode) { + throw new FS.ErrnoError(errCode); + } + if (!old_dir.node_ops.rename) { + throw new FS.ErrnoError(63); + } + if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) { + throw new FS.ErrnoError(10); + } + // if we are going to change the parent, check write permissions + if (new_dir !== old_dir) { + errCode = FS.nodePermissions(old_dir, 'w'); + if (errCode) { + throw new FS.ErrnoError(errCode); + } + } + // remove the node from the lookup hash + FS.hashRemoveNode(old_node); + // do the underlying fs rename + try { + old_dir.node_ops.rename(old_node, new_dir, new_name); + } catch (e) { + throw e; + } finally { + // add the node back to the hash (in case node_ops.rename + // changed its name) + FS.hashAddNode(old_node); + } + }, + rmdir(path) { + var lookup = FS.lookupPath(path, { parent: true }); + var parent = lookup.node; + var name = PATH.basename(path); + var node = FS.lookupNode(parent, name); + var errCode = FS.mayDelete(parent, name, true); + if (errCode) { + throw new FS.ErrnoError(errCode); + } + if (!parent.node_ops.rmdir) { + throw new FS.ErrnoError(63); + } + if (FS.isMountpoint(node)) { + throw new FS.ErrnoError(10); + } + parent.node_ops.rmdir(parent, name); + FS.destroyNode(node); + }, + readdir(path) { + var lookup = FS.lookupPath(path, { follow: true }); + var node = lookup.node; + if (!node.node_ops.readdir) { + throw new FS.ErrnoError(54); + } + return node.node_ops.readdir(node); + }, + unlink(path) { + var lookup = FS.lookupPath(path, { parent: true }); + var parent = lookup.node; + if (!parent) { + throw new FS.ErrnoError(44); + } + var name = PATH.basename(path); + var node = FS.lookupNode(parent, name); + var errCode = FS.mayDelete(parent, name, false); + if (errCode) { + // According to POSIX, we should map EISDIR to EPERM, but + // we instead do what Linux does (and we must, as we use + // the musl linux libc). + throw new FS.ErrnoError(errCode); + } + if (!parent.node_ops.unlink) { + throw new FS.ErrnoError(63); + } + if (FS.isMountpoint(node)) { + throw new FS.ErrnoError(10); + } + parent.node_ops.unlink(parent, name); + FS.destroyNode(node); + }, + readlink(path) { + var lookup = FS.lookupPath(path); + var link = lookup.node; + if (!link) { + throw new FS.ErrnoError(44); + } + if (!link.node_ops.readlink) { + throw new FS.ErrnoError(28); + } + return PATH_FS.resolve(FS.getPath(link.parent), link.node_ops.readlink(link)); + }, + stat(path, dontFollow) { + var lookup = FS.lookupPath(path, { follow: !dontFollow }); + var node = lookup.node; + if (!node) { + throw new FS.ErrnoError(44); + } + if (!node.node_ops.getattr) { + throw new FS.ErrnoError(63); + } + return node.node_ops.getattr(node); + }, + lstat(path) { + return FS.stat(path, true); + }, + chmod(path, mode, dontFollow) { + var node; + if (typeof path == 'string') { + var lookup = FS.lookupPath(path, { follow: !dontFollow }); + node = lookup.node; + } else { + node = path; + } + if (!node.node_ops.setattr) { + throw new FS.ErrnoError(63); + } + node.node_ops.setattr(node, { + mode: (mode & 4095) | (node.mode & ~4095), + timestamp: Date.now() + }); + }, + lchmod(path, mode) { + FS.chmod(path, mode, true); + }, + fchmod(fd, mode) { + var stream = FS.getStreamChecked(fd); + FS.chmod(stream.node, mode); + }, + chown(path, uid, gid, dontFollow) { + var node; + if (typeof path == 'string') { + var lookup = FS.lookupPath(path, { follow: !dontFollow }); + node = lookup.node; + } else { + node = path; + } + if (!node.node_ops.setattr) { + throw new FS.ErrnoError(63); + } + node.node_ops.setattr(node, { + timestamp: Date.now() + // we ignore the uid / gid for now + }); + }, + lchown(path, uid, gid) { + FS.chown(path, uid, gid, true); + }, + fchown(fd, uid, gid) { + var stream = FS.getStreamChecked(fd); + FS.chown(stream.node, uid, gid); + }, + truncate(path, len) { + if (len < 0) { + throw new FS.ErrnoError(28); + } + var node; + if (typeof path == 'string') { + var lookup = FS.lookupPath(path, { follow: true }); + node = lookup.node; + } else { + node = path; + } + if (!node.node_ops.setattr) { + throw new FS.ErrnoError(63); + } + if (FS.isDir(node.mode)) { + throw new FS.ErrnoError(31); + } + if (!FS.isFile(node.mode)) { + throw new FS.ErrnoError(28); + } + var errCode = FS.nodePermissions(node, 'w'); + if (errCode) { + throw new FS.ErrnoError(errCode); + } + node.node_ops.setattr(node, { + size: len, + timestamp: Date.now() + }); + }, + ftruncate(fd, len) { + var stream = FS.getStreamChecked(fd); + if ((stream.flags & 2097155) === 0) { + throw new FS.ErrnoError(28); + } + FS.truncate(stream.node, len); + }, + utime(path, atime, mtime) { + var lookup = FS.lookupPath(path, { follow: true }); + var node = lookup.node; + node.node_ops.setattr(node, { + timestamp: Math.max(atime, mtime) + }); + }, + open(path, flags, mode) { + if (path === "") { + throw new FS.ErrnoError(44); + } + flags = typeof flags == 'string' ? FS_modeStringToFlags(flags) : flags; + mode = typeof mode == 'undefined' ? 438 /* 0666 */ : mode; + if ((flags & 64)) { + mode = (mode & 4095) | 32768; + } else { + mode = 0; + } + var node; + if (typeof path == 'object') { + node = path; + } else { + path = PATH.normalize(path); + try { + var lookup = FS.lookupPath(path, { + follow: !(flags & 131072) + }); + node = lookup.node; + } catch (e) { + // ignore + } + } + // perhaps we need to create the node + var created = false; + if ((flags & 64)) { + if (node) { + // if O_CREAT and O_EXCL are set, error out if the node already exists + if ((flags & 128)) { + throw new FS.ErrnoError(20); + } + } else { + // node doesn't exist, try to create it + node = FS.mknod(path, mode, 0); + created = true; + } + } + if (!node) { + throw new FS.ErrnoError(44); + } + // can't truncate a device + if (FS.isChrdev(node.mode)) { + flags &= ~512; + } + // if asked only for a directory, then this must be one + if ((flags & 65536) && !FS.isDir(node.mode)) { + throw new FS.ErrnoError(54); + } + // check permissions, if this is not a file we just created now (it is ok to + // create and write to a file with read-only permissions; it is read-only + // for later use) + if (!created) { + var errCode = FS.mayOpen(node, flags); + if (errCode) { + throw new FS.ErrnoError(errCode); + } + } + // do truncation if necessary + if ((flags & 512) && !created) { + FS.truncate(node, 0); + } + // we've already handled these, don't pass down to the underlying vfs + flags &= ~(128 | 512 | 131072); + + // register the stream with the filesystem + var stream = FS.createStream({ + node, + path: FS.getPath(node), // we want the absolute path to the node + flags, + seekable: true, + position: 0, + stream_ops: node.stream_ops, + // used by the file family libc calls (fopen, fwrite, ferror, etc.) + ungotten: [], + error: false + }); + // call the new stream's open function + if (stream.stream_ops.open) { + stream.stream_ops.open(stream); + } + if (Module['logReadFiles'] && !(flags & 1)) { + if (!FS.readFiles) FS.readFiles = {}; + if (!(path in FS.readFiles)) { + FS.readFiles[path] = 1; + } + } + return stream; + }, + close(stream) { + if (FS.isClosed(stream)) { + throw new FS.ErrnoError(8); + } + if (stream.getdents) stream.getdents = null; // free readdir state + try { + if (stream.stream_ops.close) { + stream.stream_ops.close(stream); + } + } catch (e) { + throw e; + } finally { + FS.closeStream(stream.fd); + } + stream.fd = null; + }, + isClosed(stream) { + return stream.fd === null; + }, + llseek(stream, offset, whence) { + if (FS.isClosed(stream)) { + throw new FS.ErrnoError(8); + } + if (!stream.seekable || !stream.stream_ops.llseek) { + throw new FS.ErrnoError(70); + } + if (whence != 0 && whence != 1 && whence != 2) { + throw new FS.ErrnoError(28); + } + stream.position = stream.stream_ops.llseek(stream, offset, whence); + stream.ungotten = []; + return stream.position; + }, + read(stream, buffer, offset, length, position) { + if (length < 0 || position < 0) { + throw new FS.ErrnoError(28); + } + if (FS.isClosed(stream)) { + throw new FS.ErrnoError(8); + } + if ((stream.flags & 2097155) === 1) { + throw new FS.ErrnoError(8); + } + if (FS.isDir(stream.node.mode)) { + throw new FS.ErrnoError(31); + } + if (!stream.stream_ops.read) { + throw new FS.ErrnoError(28); + } + var seeking = typeof position != 'undefined'; + if (!seeking) { + position = stream.position; + } else if (!stream.seekable) { + throw new FS.ErrnoError(70); + } + var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position); + if (!seeking) stream.position += bytesRead; + return bytesRead; + }, + write(stream, buffer, offset, length, position, canOwn) { + if (length < 0 || position < 0) { + throw new FS.ErrnoError(28); + } + if (FS.isClosed(stream)) { + throw new FS.ErrnoError(8); + } + if ((stream.flags & 2097155) === 0) { + throw new FS.ErrnoError(8); + } + if (FS.isDir(stream.node.mode)) { + throw new FS.ErrnoError(31); + } + if (!stream.stream_ops.write) { + throw new FS.ErrnoError(28); + } + if (stream.seekable && stream.flags & 1024) { + // seek to the end before writing in append mode + FS.llseek(stream, 0, 2); + } + var seeking = typeof position != 'undefined'; + if (!seeking) { + position = stream.position; + } else if (!stream.seekable) { + throw new FS.ErrnoError(70); + } + var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn); + if (!seeking) stream.position += bytesWritten; + return bytesWritten; + }, + allocate(stream, offset, length) { + if (FS.isClosed(stream)) { + throw new FS.ErrnoError(8); + } + if (offset < 0 || length <= 0) { + throw new FS.ErrnoError(28); + } + if ((stream.flags & 2097155) === 0) { + throw new FS.ErrnoError(8); + } + if (!FS.isFile(stream.node.mode) && !FS.isDir(stream.node.mode)) { + throw new FS.ErrnoError(43); + } + if (!stream.stream_ops.allocate) { + throw new FS.ErrnoError(138); + } + stream.stream_ops.allocate(stream, offset, length); + }, + mmap(stream, length, position, prot, flags) { + // User requests writing to file (prot & PROT_WRITE != 0). + // Checking if we have permissions to write to the file unless + // MAP_PRIVATE flag is set. According to POSIX spec it is possible + // to write to file opened in read-only mode with MAP_PRIVATE flag, + // as all modifications will be visible only in the memory of + // the current process. + if ((prot & 2) !== 0 + && (flags & 2) === 0 + && (stream.flags & 2097155) !== 2) { + throw new FS.ErrnoError(2); + } + if ((stream.flags & 2097155) === 1) { + throw new FS.ErrnoError(2); + } + if (!stream.stream_ops.mmap) { + throw new FS.ErrnoError(43); + } + return stream.stream_ops.mmap(stream, length, position, prot, flags); + }, + msync(stream, buffer, offset, length, mmapFlags) { + if (!stream.stream_ops.msync) { + return 0; + } + return stream.stream_ops.msync(stream, buffer, offset, length, mmapFlags); + }, + ioctl(stream, cmd, arg) { + if (!stream.stream_ops.ioctl) { + throw new FS.ErrnoError(59); + } + return stream.stream_ops.ioctl(stream, cmd, arg); + }, + readFile(path, opts = {}) { + opts.flags = opts.flags || 0; + opts.encoding = opts.encoding || 'binary'; + if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') { + throw new Error(`Invalid encoding type "${opts.encoding}"`); + } + var ret; + var stream = FS.open(path, opts.flags); + var stat = FS.stat(path); + var length = stat.size; + var buf = new Uint8Array(length); + FS.read(stream, buf, 0, length, 0); + if (opts.encoding === 'utf8') { + ret = UTF8ArrayToString(buf, 0); + } else if (opts.encoding === 'binary') { + ret = buf; + } + FS.close(stream); + return ret; + }, + writeFile(path, data, opts = {}) { + opts.flags = opts.flags || 577; + var stream = FS.open(path, opts.flags, opts.mode); + if (typeof data == 'string') { + var buf = new Uint8Array(lengthBytesUTF8(data)+1); + var actualNumBytes = stringToUTF8Array(data, buf, 0, buf.length); + FS.write(stream, buf, 0, actualNumBytes, undefined, opts.canOwn); + } else if (ArrayBuffer.isView(data)) { + FS.write(stream, data, 0, data.byteLength, undefined, opts.canOwn); + } else { + throw new Error('Unsupported data type'); + } + FS.close(stream); + }, + cwd:() => FS.currentPath, + chdir(path) { + var lookup = FS.lookupPath(path, { follow: true }); + if (lookup.node === null) { + throw new FS.ErrnoError(44); + } + if (!FS.isDir(lookup.node.mode)) { + throw new FS.ErrnoError(54); + } + var errCode = FS.nodePermissions(lookup.node, 'x'); + if (errCode) { + throw new FS.ErrnoError(errCode); + } + FS.currentPath = lookup.path; + }, + createDefaultDirectories() { + FS.mkdir('/tmp'); + FS.mkdir('/home'); + FS.mkdir('/home/web_user'); + }, + createDefaultDevices() { + // create /dev + FS.mkdir('/dev'); + // setup /dev/null + FS.registerDevice(FS.makedev(1, 3), { + read: () => 0, + write: (stream, buffer, offset, length, pos) => length, + }); + FS.mkdev('/dev/null', FS.makedev(1, 3)); + // setup /dev/tty and /dev/tty1 + // stderr needs to print output using err() rather than out() + // so we register a second tty just for it. + TTY.register(FS.makedev(5, 0), TTY.default_tty_ops); + TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops); + FS.mkdev('/dev/tty', FS.makedev(5, 0)); + FS.mkdev('/dev/tty1', FS.makedev(6, 0)); + // setup /dev/[u]random + // use a buffer to avoid overhead of individual crypto calls per byte + var randomBuffer = new Uint8Array(1024), randomLeft = 0; + var randomByte = () => { + if (randomLeft === 0) { + randomLeft = randomFill(randomBuffer).byteLength; + } + return randomBuffer[--randomLeft]; + }; + FS.createDevice('/dev', 'random', randomByte); + FS.createDevice('/dev', 'urandom', randomByte); + // we're not going to emulate the actual shm device, + // just create the tmp dirs that reside in it commonly + FS.mkdir('/dev/shm'); + FS.mkdir('/dev/shm/tmp'); + }, + createSpecialDirectories() { + // create /proc/self/fd which allows /proc/self/fd/6 => readlink gives the + // name of the stream for fd 6 (see test_unistd_ttyname) + FS.mkdir('/proc'); + var proc_self = FS.mkdir('/proc/self'); + FS.mkdir('/proc/self/fd'); + FS.mount({ + mount() { + var node = FS.createNode(proc_self, 'fd', 16384 | 511 /* 0777 */, 73); + node.node_ops = { + lookup(parent, name) { + var fd = +name; + var stream = FS.getStreamChecked(fd); + var ret = { + parent: null, + mount: { mountpoint: 'fake' }, + node_ops: { readlink: () => stream.path }, + }; + ret.parent = ret; // make it look like a simple root node + return ret; + } + }; + return node; + } + }, {}, '/proc/self/fd'); + }, + createStandardStreams() { + // TODO deprecate the old functionality of a single + // input / output callback and that utilizes FS.createDevice + // and instead require a unique set of stream ops + + // by default, we symlink the standard streams to the + // default tty devices. however, if the standard streams + // have been overwritten we create a unique device for + // them instead. + if (Module['stdin']) { + FS.createDevice('/dev', 'stdin', Module['stdin']); + } else { + FS.symlink('/dev/tty', '/dev/stdin'); + } + if (Module['stdout']) { + FS.createDevice('/dev', 'stdout', null, Module['stdout']); + } else { + FS.symlink('/dev/tty', '/dev/stdout'); + } + if (Module['stderr']) { + FS.createDevice('/dev', 'stderr', null, Module['stderr']); + } else { + FS.symlink('/dev/tty1', '/dev/stderr'); + } + + // open default streams for the stdin, stdout and stderr devices + var stdin = FS.open('/dev/stdin', 0); + var stdout = FS.open('/dev/stdout', 1); + var stderr = FS.open('/dev/stderr', 1); + }, + staticInit() { + // Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info) + [44].forEach((code) => { + FS.genericErrors[code] = new FS.ErrnoError(code); + FS.genericErrors[code].stack = ''; + }); + + FS.nameTable = new Array(4096); + + FS.mount(MEMFS, {}, '/'); + + FS.createDefaultDirectories(); + FS.createDefaultDevices(); + FS.createSpecialDirectories(); + + FS.filesystems = { + 'MEMFS': MEMFS, + }; + }, + init(input, output, error) { + FS.init.initialized = true; + + // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here + Module['stdin'] = input || Module['stdin']; + Module['stdout'] = output || Module['stdout']; + Module['stderr'] = error || Module['stderr']; + + FS.createStandardStreams(); + }, + quit() { + FS.init.initialized = false; + // force-flush all streams, so we get musl std streams printed out + _fflush(0); + // close all of our streams + for (var i = 0; i < FS.streams.length; i++) { + var stream = FS.streams[i]; + if (!stream) { + continue; + } + FS.close(stream); + } + }, + findObject(path, dontResolveLastLink) { + var ret = FS.analyzePath(path, dontResolveLastLink); + if (!ret.exists) { + return null; + } + return ret.object; + }, + analyzePath(path, dontResolveLastLink) { + // operate from within the context of the symlink's target + try { + var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink }); + path = lookup.path; + } catch (e) { + } + var ret = { + isRoot: false, exists: false, error: 0, name: null, path: null, object: null, + parentExists: false, parentPath: null, parentObject: null + }; + try { + var lookup = FS.lookupPath(path, { parent: true }); + ret.parentExists = true; + ret.parentPath = lookup.path; + ret.parentObject = lookup.node; + ret.name = PATH.basename(path); + lookup = FS.lookupPath(path, { follow: !dontResolveLastLink }); + ret.exists = true; + ret.path = lookup.path; + ret.object = lookup.node; + ret.name = lookup.node.name; + ret.isRoot = lookup.path === '/'; + } catch (e) { + ret.error = e.errno; + }; + return ret; + }, + createPath(parent, path, canRead, canWrite) { + parent = typeof parent == 'string' ? parent : FS.getPath(parent); + var parts = path.split('/').reverse(); + while (parts.length) { + var part = parts.pop(); + if (!part) continue; + var current = PATH.join2(parent, part); + try { + FS.mkdir(current); + } catch (e) { + // ignore EEXIST + } + parent = current; + } + return current; + }, + createFile(parent, name, properties, canRead, canWrite) { + var path = PATH.join2(typeof parent == 'string' ? parent : FS.getPath(parent), name); + var mode = FS_getMode(canRead, canWrite); + return FS.create(path, mode); + }, + createDataFile(parent, name, data, canRead, canWrite, canOwn) { + var path = name; + if (parent) { + parent = typeof parent == 'string' ? parent : FS.getPath(parent); + path = name ? PATH.join2(parent, name) : parent; + } + var mode = FS_getMode(canRead, canWrite); + var node = FS.create(path, mode); + if (data) { + if (typeof data == 'string') { + var arr = new Array(data.length); + for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i); + data = arr; + } + // make sure we can write to the file + FS.chmod(node, mode | 146); + var stream = FS.open(node, 577); + FS.write(stream, data, 0, data.length, 0, canOwn); + FS.close(stream); + FS.chmod(node, mode); + } + }, + createDevice(parent, name, input, output) { + var path = PATH.join2(typeof parent == 'string' ? parent : FS.getPath(parent), name); + var mode = FS_getMode(!!input, !!output); + if (!FS.createDevice.major) FS.createDevice.major = 64; + var dev = FS.makedev(FS.createDevice.major++, 0); + // Create a fake device that a set of stream ops to emulate + // the old behavior. + FS.registerDevice(dev, { + open(stream) { + stream.seekable = false; + }, + close(stream) { + // flush any pending line data + if (output?.buffer?.length) { + output(10); + } + }, + read(stream, buffer, offset, length, pos /* ignored */) { + var bytesRead = 0; + for (var i = 0; i < length; i++) { + var result; + try { + result = input(); + } catch (e) { + throw new FS.ErrnoError(29); + } + if (result === undefined && bytesRead === 0) { + throw new FS.ErrnoError(6); + } + if (result === null || result === undefined) break; + bytesRead++; + buffer[offset+i] = result; + } + if (bytesRead) { + stream.node.timestamp = Date.now(); + } + return bytesRead; + }, + write(stream, buffer, offset, length, pos) { + for (var i = 0; i < length; i++) { + try { + output(buffer[offset+i]); + } catch (e) { + throw new FS.ErrnoError(29); + } + } + if (length) { + stream.node.timestamp = Date.now(); + } + return i; + } + }); + return FS.mkdev(path, mode, dev); + }, + forceLoadFile(obj) { + if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true; + if (typeof XMLHttpRequest != 'undefined') { + throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread."); + } else if (read_) { + // Command-line. + try { + // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as + // read() will try to parse UTF8. + obj.contents = intArrayFromString(read_(obj.url), true); + obj.usedBytes = obj.contents.length; + } catch (e) { + throw new FS.ErrnoError(29); + } + } else { + throw new Error('Cannot load without read() or XMLHttpRequest.'); + } + }, + createLazyFile(parent, name, url, canRead, canWrite) { + // Lazy chunked Uint8Array (implements get and length from Uint8Array). + // Actual getting is abstracted away for eventual reuse. + class LazyUint8Array { + constructor() { + this.lengthKnown = false; + this.chunks = []; // Loaded chunks. Index is the chunk number + } + get(idx) { + if (idx > this.length-1 || idx < 0) { + return undefined; + } + var chunkOffset = idx % this.chunkSize; + var chunkNum = (idx / this.chunkSize)|0; + return this.getter(chunkNum)[chunkOffset]; + } + setDataGetter(getter) { + this.getter = getter; + } + cacheLength() { + // Find length + var xhr = new XMLHttpRequest(); + xhr.open('HEAD', url, false); + xhr.send(null); + if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status); + var datalength = Number(xhr.getResponseHeader("Content-length")); + var header; + var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes"; + var usesGzip = (header = xhr.getResponseHeader("Content-Encoding")) && header === "gzip"; + + var chunkSize = 1024*1024; // Chunk size in bytes + + if (!hasByteServing) chunkSize = datalength; + + // Function to get a range from the remote URL. + var doXHR = (from, to) => { + if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!"); + if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!"); + + // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available. + var xhr = new XMLHttpRequest(); + xhr.open('GET', url, false); + if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to); + + // Some hints to the browser that we want binary data. + xhr.responseType = 'arraybuffer'; + if (xhr.overrideMimeType) { + xhr.overrideMimeType('text/plain; charset=x-user-defined'); + } + + xhr.send(null); + if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status); + if (xhr.response !== undefined) { + return new Uint8Array(/** @type{Array} */(xhr.response || [])); + } + return intArrayFromString(xhr.responseText || '', true); + }; + var lazyArray = this; + lazyArray.setDataGetter((chunkNum) => { + var start = chunkNum * chunkSize; + var end = (chunkNum+1) * chunkSize - 1; // including this byte + end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block + if (typeof lazyArray.chunks[chunkNum] == 'undefined') { + lazyArray.chunks[chunkNum] = doXHR(start, end); + } + if (typeof lazyArray.chunks[chunkNum] == 'undefined') throw new Error('doXHR failed!'); + return lazyArray.chunks[chunkNum]; + }); + + if (usesGzip || !datalength) { + // if the server uses gzip or doesn't supply the length, we have to download the whole file to get the (uncompressed) length + chunkSize = datalength = 1; // this will force getter(0)/doXHR do download the whole file + datalength = this.getter(0).length; + chunkSize = datalength; + out("LazyFiles on gzip forces download of the whole file when length is accessed"); + } + + this._length = datalength; + this._chunkSize = chunkSize; + this.lengthKnown = true; + } + get length() { + if (!this.lengthKnown) { + this.cacheLength(); + } + return this._length; + } + get chunkSize() { + if (!this.lengthKnown) { + this.cacheLength(); + } + return this._chunkSize; + } + } + + if (typeof XMLHttpRequest != 'undefined') { + if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc'; + var lazyArray = new LazyUint8Array(); + var properties = { isDevice: false, contents: lazyArray }; + } else { + var properties = { isDevice: false, url: url }; + } + + var node = FS.createFile(parent, name, properties, canRead, canWrite); + // This is a total hack, but I want to get this lazy file code out of the + // core of MEMFS. If we want to keep this lazy file concept I feel it should + // be its own thin LAZYFS proxying calls to MEMFS. + if (properties.contents) { + node.contents = properties.contents; + } else if (properties.url) { + node.contents = null; + node.url = properties.url; + } + // Add a function that defers querying the file size until it is asked the first time. + Object.defineProperties(node, { + usedBytes: { + get: function() { return this.contents.length; } + } + }); + // override each stream op with one that tries to force load the lazy file first + var stream_ops = {}; + var keys = Object.keys(node.stream_ops); + keys.forEach((key) => { + var fn = node.stream_ops[key]; + stream_ops[key] = (...args) => { + FS.forceLoadFile(node); + return fn(...args); + }; + }); + function writeChunks(stream, buffer, offset, length, position) { + var contents = stream.node.contents; + if (position >= contents.length) + return 0; + var size = Math.min(contents.length - position, length); + if (contents.slice) { // normal array + for (var i = 0; i < size; i++) { + buffer[offset + i] = contents[position + i]; + } + } else { + for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR + buffer[offset + i] = contents.get(position + i); + } + } + return size; + } + // use a custom read function + stream_ops.read = (stream, buffer, offset, length, position) => { + FS.forceLoadFile(node); + return writeChunks(stream, buffer, offset, length, position) + }; + // use a custom mmap function + stream_ops.mmap = (stream, length, position, prot, flags) => { + FS.forceLoadFile(node); + var ptr = mmapAlloc(length); + if (!ptr) { + throw new FS.ErrnoError(48); + } + writeChunks(stream, HEAP8, ptr, length, position); + return { ptr, allocated: true }; + }; + node.stream_ops = stream_ops; + return node; + }, + }; + + var SYSCALLS = { + DEFAULT_POLLMASK:5, + calculateAt(dirfd, path, allowEmpty) { + if (PATH.isAbs(path)) { + return path; + } + // relative path + var dir; + if (dirfd === -100) { + dir = FS.cwd(); + } else { + var dirstream = SYSCALLS.getStreamFromFD(dirfd); + dir = dirstream.path; + } + if (path.length == 0) { + if (!allowEmpty) { + throw new FS.ErrnoError(44);; + } + return dir; + } + return PATH.join2(dir, path); + }, + doStat(func, path, buf) { + var stat = func(path); + HEAP32[((buf)>>2)] = stat.dev; + HEAP32[(((buf)+(4))>>2)] = stat.mode; + HEAPU32[(((buf)+(8))>>2)] = stat.nlink; + HEAP32[(((buf)+(12))>>2)] = stat.uid; + HEAP32[(((buf)+(16))>>2)] = stat.gid; + HEAP32[(((buf)+(20))>>2)] = stat.rdev; + HEAP64[(((buf)+(24))>>3)] = BigInt(stat.size); + HEAP32[(((buf)+(32))>>2)] = 4096; + HEAP32[(((buf)+(36))>>2)] = stat.blocks; + var atime = stat.atime.getTime(); + var mtime = stat.mtime.getTime(); + var ctime = stat.ctime.getTime(); + HEAP64[(((buf)+(40))>>3)] = BigInt(Math.floor(atime / 1000)); + HEAPU32[(((buf)+(48))>>2)] = (atime % 1000) * 1000; + HEAP64[(((buf)+(56))>>3)] = BigInt(Math.floor(mtime / 1000)); + HEAPU32[(((buf)+(64))>>2)] = (mtime % 1000) * 1000; + HEAP64[(((buf)+(72))>>3)] = BigInt(Math.floor(ctime / 1000)); + HEAPU32[(((buf)+(80))>>2)] = (ctime % 1000) * 1000; + HEAP64[(((buf)+(88))>>3)] = BigInt(stat.ino); + return 0; + }, + doMsync(addr, stream, len, flags, offset) { + if (!FS.isFile(stream.node.mode)) { + throw new FS.ErrnoError(43); + } + if (flags & 2) { + // MAP_PRIVATE calls need not to be synced back to underlying fs + return 0; + } + var buffer = HEAPU8.slice(addr, addr + len); + FS.msync(stream, buffer, offset, len, flags); + }, + varargs:undefined, + get() { + // the `+` prepended here is necessary to convince the JSCompiler that varargs is indeed a number. + var ret = HEAP32[((+SYSCALLS.varargs)>>2)]; + SYSCALLS.varargs += 4; + return ret; + }, + getp() { return SYSCALLS.get() }, + getStr(ptr) { + var ret = UTF8ToString(ptr); + return ret; + }, + getStreamFromFD(fd) { + var stream = FS.getStreamChecked(fd); + return stream; + }, + }; + function ___syscall_chmod(path, mode) { + try { + + path = SYSCALLS.getStr(path); + FS.chmod(path, mode); + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + var SOCKFS = { + mount(mount) { + // If Module['websocket'] has already been defined (e.g. for configuring + // the subprotocol/url) use that, if not initialise it to a new object. + Module['websocket'] = (Module['websocket'] && + ('object' === typeof Module['websocket'])) ? Module['websocket'] : {}; + + // Add the Event registration mechanism to the exported websocket configuration + // object so we can register network callbacks from native JavaScript too. + // For more documentation see system/include/emscripten/emscripten.h + Module['websocket']._callbacks = {}; + Module['websocket']['on'] = /** @this{Object} */ function(event, callback) { + if ('function' === typeof callback) { + this._callbacks[event] = callback; + } + return this; + }; + + Module['websocket'].emit = /** @this{Object} */ function(event, param) { + if ('function' === typeof this._callbacks[event]) { + this._callbacks[event].call(this, param); + } + }; + + // If debug is enabled register simple default logging callbacks for each Event. + + return FS.createNode(null, '/', 16384 | 511 /* 0777 */, 0); + }, + createSocket(family, type, protocol) { + type &= ~526336; // Some applications may pass it; it makes no sense for a single process. + var streaming = type == 1; + if (streaming && protocol && protocol != 6) { + throw new FS.ErrnoError(66); // if SOCK_STREAM, must be tcp or 0. + } + + // create our internal socket structure + var sock = { + family, + type, + protocol, + server: null, + error: null, // Used in getsockopt for SOL_SOCKET/SO_ERROR test + peers: {}, + pending: [], + recv_queue: [], + sock_ops: SOCKFS.websocket_sock_ops + }; + + // create the filesystem node to store the socket structure + var name = SOCKFS.nextname(); + var node = FS.createNode(SOCKFS.root, name, 49152, 0); + node.sock = sock; + + // and the wrapping stream that enables library functions such + // as read and write to indirectly interact with the socket + var stream = FS.createStream({ + path: name, + node, + flags: 2, + seekable: false, + stream_ops: SOCKFS.stream_ops + }); + + // map the new stream to the socket structure (sockets have a 1:1 + // relationship with a stream) + sock.stream = stream; + + return sock; + }, + getSocket(fd) { + var stream = FS.getStream(fd); + if (!stream || !FS.isSocket(stream.node.mode)) { + return null; + } + return stream.node.sock; + }, + stream_ops:{ + poll(stream) { + var sock = stream.node.sock; + return sock.sock_ops.poll(sock); + }, + ioctl(stream, request, varargs) { + var sock = stream.node.sock; + return sock.sock_ops.ioctl(sock, request, varargs); + }, + read(stream, buffer, offset, length, position /* ignored */) { + var sock = stream.node.sock; + var msg = sock.sock_ops.recvmsg(sock, length); + if (!msg) { + // socket is closed + return 0; + } + buffer.set(msg.buffer, offset); + return msg.buffer.length; + }, + write(stream, buffer, offset, length, position /* ignored */) { + var sock = stream.node.sock; + return sock.sock_ops.sendmsg(sock, buffer, offset, length); + }, + close(stream) { + var sock = stream.node.sock; + sock.sock_ops.close(sock); + }, + }, + nextname() { + if (!SOCKFS.nextname.current) { + SOCKFS.nextname.current = 0; + } + return 'socket[' + (SOCKFS.nextname.current++) + ']'; + }, + websocket_sock_ops:{ + createPeer(sock, addr, port) { + var ws; + + if (typeof addr == 'object') { + ws = addr; + addr = null; + port = null; + } + + if (ws) { + // for sockets that've already connected (e.g. we're the server) + // we can inspect the _socket property for the address + if (ws._socket) { + addr = ws._socket.remoteAddress; + port = ws._socket.remotePort; + } + // if we're just now initializing a connection to the remote, + // inspect the url property + else { + var result = /ws[s]?:\/\/([^:]+):(\d+)/.exec(ws.url); + if (!result) { + throw new Error('WebSocket URL must be in the format ws(s)://address:port'); + } + addr = result[1]; + port = parseInt(result[2], 10); + } + } else { + // create the actual websocket object and connect + try { + // runtimeConfig gets set to true if WebSocket runtime configuration is available. + var runtimeConfig = (Module['websocket'] && ('object' === typeof Module['websocket'])); + + // The default value is 'ws://' the replace is needed because the compiler replaces '//' comments with '#' + // comments without checking context, so we'd end up with ws:#, the replace swaps the '#' for '//' again. + var url = 'ws:#'.replace('#', '//'); + + if (runtimeConfig) { + if ('string' === typeof Module['websocket']['url']) { + url = Module['websocket']['url']; // Fetch runtime WebSocket URL config. + } + } + + if (url === 'ws://' || url === 'wss://') { // Is the supplied URL config just a prefix, if so complete it. + var parts = addr.split('/'); + url = url + parts[0] + ":" + port + "/" + parts.slice(1).join('/'); + } + + // Make the WebSocket subprotocol (Sec-WebSocket-Protocol) default to binary if no configuration is set. + var subProtocols = 'binary'; // The default value is 'binary' + + if (runtimeConfig) { + if ('string' === typeof Module['websocket']['subprotocol']) { + subProtocols = Module['websocket']['subprotocol']; // Fetch runtime WebSocket subprotocol config. + } + } + + // The default WebSocket options + var opts = undefined; + + if (subProtocols !== 'null') { + // The regex trims the string (removes spaces at the beginning and end, then splits the string by + // , into an Array. Whitespace removal is important for Websockify and ws. + subProtocols = subProtocols.replace(/^ +| +$/g,"").split(/ *, */); + + opts = subProtocols; + } + + // some webservers (azure) does not support subprotocol header + if (runtimeConfig && null === Module['websocket']['subprotocol']) { + subProtocols = 'null'; + opts = undefined; + } + + // If node we use the ws library. + var WebSocketConstructor; + if (ENVIRONMENT_IS_NODE) { + WebSocketConstructor = /** @type{(typeof WebSocket)} */(require('ws')); + } else + { + WebSocketConstructor = WebSocket; + } + ws = new WebSocketConstructor(url, opts); + ws.binaryType = 'arraybuffer'; + } catch (e) { + throw new FS.ErrnoError(23); + } + } + + var peer = { + addr, + port, + socket: ws, + dgram_send_queue: [] + }; + + SOCKFS.websocket_sock_ops.addPeer(sock, peer); + SOCKFS.websocket_sock_ops.handlePeerEvents(sock, peer); + + // if this is a bound dgram socket, send the port number first to allow + // us to override the ephemeral port reported to us by remotePort on the + // remote end. + if (sock.type === 2 && typeof sock.sport != 'undefined') { + peer.dgram_send_queue.push(new Uint8Array([ + 255, 255, 255, 255, + 'p'.charCodeAt(0), 'o'.charCodeAt(0), 'r'.charCodeAt(0), 't'.charCodeAt(0), + ((sock.sport & 0xff00) >> 8) , (sock.sport & 0xff) + ])); + } + + return peer; + }, + getPeer(sock, addr, port) { + return sock.peers[addr + ':' + port]; + }, + addPeer(sock, peer) { + sock.peers[peer.addr + ':' + peer.port] = peer; + }, + removePeer(sock, peer) { + delete sock.peers[peer.addr + ':' + peer.port]; + }, + handlePeerEvents(sock, peer) { + var first = true; + + var handleOpen = function () { + + Module['websocket'].emit('open', sock.stream.fd); + + try { + var queued = peer.dgram_send_queue.shift(); + while (queued) { + peer.socket.send(queued); + queued = peer.dgram_send_queue.shift(); + } + } catch (e) { + // not much we can do here in the way of proper error handling as we've already + // lied and said this data was sent. shut it down. + peer.socket.close(); + } + }; + + function handleMessage(data) { + if (typeof data == 'string') { + var encoder = new TextEncoder(); // should be utf-8 + data = encoder.encode(data); // make a typed array from the string + } else { + assert(data.byteLength !== undefined); // must receive an ArrayBuffer + if (data.byteLength == 0) { + // An empty ArrayBuffer will emit a pseudo disconnect event + // as recv/recvmsg will return zero which indicates that a socket + // has performed a shutdown although the connection has not been disconnected yet. + return; + } + data = new Uint8Array(data); // make a typed array view on the array buffer + } + + // if this is the port message, override the peer's port with it + var wasfirst = first; + first = false; + if (wasfirst && + data.length === 10 && + data[0] === 255 && data[1] === 255 && data[2] === 255 && data[3] === 255 && + data[4] === 'p'.charCodeAt(0) && data[5] === 'o'.charCodeAt(0) && data[6] === 'r'.charCodeAt(0) && data[7] === 't'.charCodeAt(0)) { + // update the peer's port and it's key in the peer map + var newport = ((data[8] << 8) | data[9]); + SOCKFS.websocket_sock_ops.removePeer(sock, peer); + peer.port = newport; + SOCKFS.websocket_sock_ops.addPeer(sock, peer); + return; + } + + sock.recv_queue.push({ addr: peer.addr, port: peer.port, data: data }); + Module['websocket'].emit('message', sock.stream.fd); + }; + + if (ENVIRONMENT_IS_NODE) { + peer.socket.on('open', handleOpen); + peer.socket.on('message', function(data, isBinary) { + if (!isBinary) { + return; + } + handleMessage((new Uint8Array(data)).buffer); // copy from node Buffer -> ArrayBuffer + }); + peer.socket.on('close', function() { + Module['websocket'].emit('close', sock.stream.fd); + }); + peer.socket.on('error', function(error) { + // Although the ws library may pass errors that may be more descriptive than + // ECONNREFUSED they are not necessarily the expected error code e.g. + // ENOTFOUND on getaddrinfo seems to be node.js specific, so using ECONNREFUSED + // is still probably the most useful thing to do. + sock.error = 14; // Used in getsockopt for SOL_SOCKET/SO_ERROR test. + Module['websocket'].emit('error', [sock.stream.fd, sock.error, 'ECONNREFUSED: Connection refused']); + // don't throw + }); + } else { + peer.socket.onopen = handleOpen; + peer.socket.onclose = function() { + Module['websocket'].emit('close', sock.stream.fd); + }; + peer.socket.onmessage = function peer_socket_onmessage(event) { + handleMessage(event.data); + }; + peer.socket.onerror = function(error) { + // The WebSocket spec only allows a 'simple event' to be thrown on error, + // so we only really know as much as ECONNREFUSED. + sock.error = 14; // Used in getsockopt for SOL_SOCKET/SO_ERROR test. + Module['websocket'].emit('error', [sock.stream.fd, sock.error, 'ECONNREFUSED: Connection refused']); + }; + } + }, + poll(sock) { + if (sock.type === 1 && sock.server) { + // listen sockets should only say they're available for reading + // if there are pending clients. + return sock.pending.length ? (64 | 1) : 0; + } + + var mask = 0; + var dest = sock.type === 1 ? // we only care about the socket state for connection-based sockets + SOCKFS.websocket_sock_ops.getPeer(sock, sock.daddr, sock.dport) : + null; + + if (sock.recv_queue.length || + !dest || // connection-less sockets are always ready to read + (dest && dest.socket.readyState === dest.socket.CLOSING) || + (dest && dest.socket.readyState === dest.socket.CLOSED)) { // let recv return 0 once closed + mask |= (64 | 1); + } + + if (!dest || // connection-less sockets are always ready to write + (dest && dest.socket.readyState === dest.socket.OPEN)) { + mask |= 4; + } + + if ((dest && dest.socket.readyState === dest.socket.CLOSING) || + (dest && dest.socket.readyState === dest.socket.CLOSED)) { + mask |= 16; + } + + return mask; + }, + ioctl(sock, request, arg) { + switch (request) { + case 21531: + var bytes = 0; + if (sock.recv_queue.length) { + bytes = sock.recv_queue[0].data.length; + } + HEAP32[((arg)>>2)] = bytes; + return 0; + default: + return 28; + } + }, + close(sock) { + // if we've spawned a listen server, close it + if (sock.server) { + try { + sock.server.close(); + } catch (e) { + } + sock.server = null; + } + // close any peer connections + var peers = Object.keys(sock.peers); + for (var i = 0; i < peers.length; i++) { + var peer = sock.peers[peers[i]]; + try { + peer.socket.close(); + } catch (e) { + } + SOCKFS.websocket_sock_ops.removePeer(sock, peer); + } + return 0; + }, + bind(sock, addr, port) { + if (typeof sock.saddr != 'undefined' || typeof sock.sport != 'undefined') { + throw new FS.ErrnoError(28); // already bound + } + sock.saddr = addr; + sock.sport = port; + // in order to emulate dgram sockets, we need to launch a listen server when + // binding on a connection-less socket + // note: this is only required on the server side + if (sock.type === 2) { + // close the existing server if it exists + if (sock.server) { + sock.server.close(); + sock.server = null; + } + // swallow error operation not supported error that occurs when binding in the + // browser where this isn't supported + try { + sock.sock_ops.listen(sock, 0); + } catch (e) { + if (!(e.name === 'ErrnoError')) throw e; + if (e.errno !== 138) throw e; + } + } + }, + connect(sock, addr, port) { + if (sock.server) { + throw new FS.ErrnoError(138); + } + + // TODO autobind + // if (!sock.addr && sock.type == 2) { + // } + + // early out if we're already connected / in the middle of connecting + if (typeof sock.daddr != 'undefined' && typeof sock.dport != 'undefined') { + var dest = SOCKFS.websocket_sock_ops.getPeer(sock, sock.daddr, sock.dport); + if (dest) { + if (dest.socket.readyState === dest.socket.CONNECTING) { + throw new FS.ErrnoError(7); + } else { + throw new FS.ErrnoError(30); + } + } + } + + // add the socket to our peer list and set our + // destination address / port to match + var peer = SOCKFS.websocket_sock_ops.createPeer(sock, addr, port); + sock.daddr = peer.addr; + sock.dport = peer.port; + + // always "fail" in non-blocking mode + throw new FS.ErrnoError(26); + }, + listen(sock, backlog) { + if (!ENVIRONMENT_IS_NODE) { + throw new FS.ErrnoError(138); + } + if (sock.server) { + throw new FS.ErrnoError(28); // already listening + } + var WebSocketServer = require('ws').Server; + var host = sock.saddr; + sock.server = new WebSocketServer({ + host, + port: sock.sport + // TODO support backlog + }); + Module['websocket'].emit('listen', sock.stream.fd); // Send Event with listen fd. + + sock.server.on('connection', function(ws) { + if (sock.type === 1) { + var newsock = SOCKFS.createSocket(sock.family, sock.type, sock.protocol); + + // create a peer on the new socket + var peer = SOCKFS.websocket_sock_ops.createPeer(newsock, ws); + newsock.daddr = peer.addr; + newsock.dport = peer.port; + + // push to queue for accept to pick up + sock.pending.push(newsock); + Module['websocket'].emit('connection', newsock.stream.fd); + } else { + // create a peer on the listen socket so calling sendto + // with the listen socket and an address will resolve + // to the correct client + SOCKFS.websocket_sock_ops.createPeer(sock, ws); + Module['websocket'].emit('connection', sock.stream.fd); + } + }); + sock.server.on('close', function() { + Module['websocket'].emit('close', sock.stream.fd); + sock.server = null; + }); + sock.server.on('error', function(error) { + // Although the ws library may pass errors that may be more descriptive than + // ECONNREFUSED they are not necessarily the expected error code e.g. + // ENOTFOUND on getaddrinfo seems to be node.js specific, so using EHOSTUNREACH + // is still probably the most useful thing to do. This error shouldn't + // occur in a well written app as errors should get trapped in the compiled + // app's own getaddrinfo call. + sock.error = 23; // Used in getsockopt for SOL_SOCKET/SO_ERROR test. + Module['websocket'].emit('error', [sock.stream.fd, sock.error, 'EHOSTUNREACH: Host is unreachable']); + // don't throw + }); + }, + accept(listensock) { + if (!listensock.server || !listensock.pending.length) { + throw new FS.ErrnoError(28); + } + var newsock = listensock.pending.shift(); + newsock.stream.flags = listensock.stream.flags; + return newsock; + }, + getname(sock, peer) { + var addr, port; + if (peer) { + if (sock.daddr === undefined || sock.dport === undefined) { + throw new FS.ErrnoError(53); + } + addr = sock.daddr; + port = sock.dport; + } else { + // TODO saddr and sport will be set for bind()'d UDP sockets, but what + // should we be returning for TCP sockets that've been connect()'d? + addr = sock.saddr || 0; + port = sock.sport || 0; + } + return { addr, port }; + }, + sendmsg(sock, buffer, offset, length, addr, port) { + if (sock.type === 2) { + // connection-less sockets will honor the message address, + // and otherwise fall back to the bound destination address + if (addr === undefined || port === undefined) { + addr = sock.daddr; + port = sock.dport; + } + // if there was no address to fall back to, error out + if (addr === undefined || port === undefined) { + throw new FS.ErrnoError(17); + } + } else { + // connection-based sockets will only use the bound + addr = sock.daddr; + port = sock.dport; + } + + // find the peer for the destination address + var dest = SOCKFS.websocket_sock_ops.getPeer(sock, addr, port); + + // early out if not connected with a connection-based socket + if (sock.type === 1) { + if (!dest || dest.socket.readyState === dest.socket.CLOSING || dest.socket.readyState === dest.socket.CLOSED) { + throw new FS.ErrnoError(53); + } else if (dest.socket.readyState === dest.socket.CONNECTING) { + throw new FS.ErrnoError(6); + } + } + + // create a copy of the incoming data to send, as the WebSocket API + // doesn't work entirely with an ArrayBufferView, it'll just send + // the entire underlying buffer + if (ArrayBuffer.isView(buffer)) { + offset += buffer.byteOffset; + buffer = buffer.buffer; + } + + var data; + data = buffer.slice(offset, offset + length); + + // if we're emulating a connection-less dgram socket and don't have + // a cached connection, queue the buffer to send upon connect and + // lie, saying the data was sent now. + if (sock.type === 2) { + if (!dest || dest.socket.readyState !== dest.socket.OPEN) { + // if we're not connected, open a new connection + if (!dest || dest.socket.readyState === dest.socket.CLOSING || dest.socket.readyState === dest.socket.CLOSED) { + dest = SOCKFS.websocket_sock_ops.createPeer(sock, addr, port); + } + dest.dgram_send_queue.push(data); + return length; + } + } + + try { + // send the actual data + dest.socket.send(data); + return length; + } catch (e) { + throw new FS.ErrnoError(28); + } + }, + recvmsg(sock, length) { + // http://pubs.opengroup.org/onlinepubs/7908799/xns/recvmsg.html + if (sock.type === 1 && sock.server) { + // tcp servers should not be recv()'ing on the listen socket + throw new FS.ErrnoError(53); + } + + var queued = sock.recv_queue.shift(); + if (!queued) { + if (sock.type === 1) { + var dest = SOCKFS.websocket_sock_ops.getPeer(sock, sock.daddr, sock.dport); + + if (!dest) { + // if we have a destination address but are not connected, error out + throw new FS.ErrnoError(53); + } + if (dest.socket.readyState === dest.socket.CLOSING || dest.socket.readyState === dest.socket.CLOSED) { + // return null if the socket has closed + return null; + } + // else, our socket is in a valid state but truly has nothing available + throw new FS.ErrnoError(6); + } + throw new FS.ErrnoError(6); + } + + // queued.data will be an ArrayBuffer if it's unadulterated, but if it's + // requeued TCP data it'll be an ArrayBufferView + var queuedLength = queued.data.byteLength || queued.data.length; + var queuedOffset = queued.data.byteOffset || 0; + var queuedBuffer = queued.data.buffer || queued.data; + var bytesRead = Math.min(length, queuedLength); + var res = { + buffer: new Uint8Array(queuedBuffer, queuedOffset, bytesRead), + addr: queued.addr, + port: queued.port + }; + + // push back any unread data for TCP connections + if (sock.type === 1 && bytesRead < queuedLength) { + var bytesRemaining = queuedLength - bytesRead; + queued.data = new Uint8Array(queuedBuffer, queuedOffset + bytesRead, bytesRemaining); + sock.recv_queue.unshift(queued); + } + + return res; + }, + }, + }; + + var getSocketFromFD = (fd) => { + var socket = SOCKFS.getSocket(fd); + if (!socket) throw new FS.ErrnoError(8); + return socket; + }; + + var Sockets = { + BUFFER_SIZE:10240, + MAX_BUFFER_SIZE:10485760, + nextFd:1, + fds:{ + }, + nextport:1, + maxport:65535, + peer:null, + connections:{ + }, + portmap:{ + }, + localAddr:4261412874, + addrPool:[33554442,50331658,67108874,83886090,100663306,117440522,134217738,150994954,167772170,184549386,201326602,218103818,234881034], + }; + + var inetNtop4 = (addr) => { + return (addr & 0xff) + '.' + ((addr >> 8) & 0xff) + '.' + ((addr >> 16) & 0xff) + '.' + ((addr >> 24) & 0xff) + }; + + + var inetNtop6 = (ints) => { + // ref: http://www.ietf.org/rfc/rfc2373.txt - section 2.5.4 + // Format for IPv4 compatible and mapped 128-bit IPv6 Addresses + // 128-bits are split into eight 16-bit words + // stored in network byte order (big-endian) + // | 80 bits | 16 | 32 bits | + // +-----------------------------------------------------------------+ + // | 10 bytes | 2 | 4 bytes | + // +--------------------------------------+--------------------------+ + // + 5 words | 1 | 2 words | + // +--------------------------------------+--------------------------+ + // |0000..............................0000|0000| IPv4 ADDRESS | (compatible) + // +--------------------------------------+----+---------------------+ + // |0000..............................0000|FFFF| IPv4 ADDRESS | (mapped) + // +--------------------------------------+----+---------------------+ + var str = ""; + var word = 0; + var longest = 0; + var lastzero = 0; + var zstart = 0; + var len = 0; + var i = 0; + var parts = [ + ints[0] & 0xffff, + (ints[0] >> 16), + ints[1] & 0xffff, + (ints[1] >> 16), + ints[2] & 0xffff, + (ints[2] >> 16), + ints[3] & 0xffff, + (ints[3] >> 16) + ]; + + // Handle IPv4-compatible, IPv4-mapped, loopback and any/unspecified addresses + + var hasipv4 = true; + var v4part = ""; + // check if the 10 high-order bytes are all zeros (first 5 words) + for (i = 0; i < 5; i++) { + if (parts[i] !== 0) { hasipv4 = false; break; } + } + + if (hasipv4) { + // low-order 32-bits store an IPv4 address (bytes 13 to 16) (last 2 words) + v4part = inetNtop4(parts[6] | (parts[7] << 16)); + // IPv4-mapped IPv6 address if 16-bit value (bytes 11 and 12) == 0xFFFF (6th word) + if (parts[5] === -1) { + str = "::ffff:"; + str += v4part; + return str; + } + // IPv4-compatible IPv6 address if 16-bit value (bytes 11 and 12) == 0x0000 (6th word) + if (parts[5] === 0) { + str = "::"; + //special case IPv6 addresses + if (v4part === "0.0.0.0") v4part = ""; // any/unspecified address + if (v4part === "0.0.0.1") v4part = "1";// loopback address + str += v4part; + return str; + } + } + + // Handle all other IPv6 addresses + + // first run to find the longest contiguous zero words + for (word = 0; word < 8; word++) { + if (parts[word] === 0) { + if (word - lastzero > 1) { + len = 0; + } + lastzero = word; + len++; + } + if (len > longest) { + longest = len; + zstart = word - longest + 1; + } + } + + for (word = 0; word < 8; word++) { + if (longest > 1) { + // compress contiguous zeros - to produce "::" + if (parts[word] === 0 && word >= zstart && word < (zstart + longest) ) { + if (word === zstart) { + str += ":"; + if (zstart === 0) str += ":"; //leading zeros case + } + continue; + } + } + // converts 16-bit words from big-endian to little-endian before converting to hex string + str += Number(_ntohs(parts[word] & 0xffff)).toString(16); + str += word < 7 ? ":" : ""; + } + return str; + }; + + var readSockaddr = (sa, salen) => { + // family / port offsets are common to both sockaddr_in and sockaddr_in6 + var family = HEAP16[((sa)>>1)]; + var port = _ntohs(HEAPU16[(((sa)+(2))>>1)]); + var addr; + + switch (family) { + case 2: + if (salen !== 16) { + return { errno: 28 }; + } + addr = HEAP32[(((sa)+(4))>>2)]; + addr = inetNtop4(addr); + break; + case 10: + if (salen !== 28) { + return { errno: 28 }; + } + addr = [ + HEAP32[(((sa)+(8))>>2)], + HEAP32[(((sa)+(12))>>2)], + HEAP32[(((sa)+(16))>>2)], + HEAP32[(((sa)+(20))>>2)] + ]; + addr = inetNtop6(addr); + break; + default: + return { errno: 5 }; + } + + return { family: family, addr: addr, port: port }; + }; + + + var inetPton4 = (str) => { + var b = str.split('.'); + for (var i = 0; i < 4; i++) { + var tmp = Number(b[i]); + if (isNaN(tmp)) return null; + b[i] = tmp; + } + return (b[0] | (b[1] << 8) | (b[2] << 16) | (b[3] << 24)) >>> 0; + }; + + + /** @suppress {checkTypes} */ + var jstoi_q = (str) => parseInt(str); + var inetPton6 = (str) => { + var words; + var w, offset, z, i; + /* http://home.deds.nl/~aeron/regex/ */ + var valid6regx = /^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i + var parts = []; + if (!valid6regx.test(str)) { + return null; + } + if (str === "::") { + return [0, 0, 0, 0, 0, 0, 0, 0]; + } + // Z placeholder to keep track of zeros when splitting the string on ":" + if (str.startsWith("::")) { + str = str.replace("::", "Z:"); // leading zeros case + } else { + str = str.replace("::", ":Z:"); + } + + if (str.indexOf(".") > 0) { + // parse IPv4 embedded stress + str = str.replace(new RegExp('[.]', 'g'), ":"); + words = str.split(":"); + words[words.length-4] = jstoi_q(words[words.length-4]) + jstoi_q(words[words.length-3])*256; + words[words.length-3] = jstoi_q(words[words.length-2]) + jstoi_q(words[words.length-1])*256; + words = words.slice(0, words.length-2); + } else { + words = str.split(":"); + } + + offset = 0; z = 0; + for (w=0; w < words.length; w++) { + if (typeof words[w] == 'string') { + if (words[w] === 'Z') { + // compressed zeros - write appropriate number of zero words + for (z = 0; z < (8 - words.length+1); z++) { + parts[w+z] = 0; + } + offset = z-1; + } else { + // parse hex to field to 16-bit value and write it in network byte-order + parts[w+offset] = _htons(parseInt(words[w],16)); + } + } else { + // parsed IPv4 words + parts[w+offset] = words[w]; + } + } + return [ + (parts[1] << 16) | parts[0], + (parts[3] << 16) | parts[2], + (parts[5] << 16) | parts[4], + (parts[7] << 16) | parts[6] + ]; + }; + var DNS = { + address_map:{ + id:1, + addrs:{ + }, + names:{ + }, + }, + lookup_name(name) { + // If the name is already a valid ipv4 / ipv6 address, don't generate a fake one. + var res = inetPton4(name); + if (res !== null) { + return name; + } + res = inetPton6(name); + if (res !== null) { + return name; + } + + // See if this name is already mapped. + var addr; + + if (DNS.address_map.addrs[name]) { + addr = DNS.address_map.addrs[name]; + } else { + var id = DNS.address_map.id++; + assert(id < 65535, 'exceeded max address mappings of 65535'); + + addr = '172.29.' + (id & 0xff) + '.' + (id & 0xff00); + + DNS.address_map.names[addr] = name; + DNS.address_map.addrs[name] = addr; + } + + return addr; + }, + lookup_addr(addr) { + if (DNS.address_map.names[addr]) { + return DNS.address_map.names[addr]; + } + + return null; + }, + }; + /** @param {boolean=} allowNull */ + var getSocketAddress = (addrp, addrlen, allowNull) => { + if (allowNull && addrp === 0) return null; + var info = readSockaddr(addrp, addrlen); + if (info.errno) throw new FS.ErrnoError(info.errno); + info.addr = DNS.lookup_addr(info.addr) || info.addr; + return info; + }; + function ___syscall_connect(fd, addr, addrlen, d1, d2, d3) { + try { + + var sock = getSocketFromFD(fd); + var info = getSocketAddress(addr, addrlen); + sock.sock_ops.connect(sock, info.addr, info.port); + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_faccessat(dirfd, path, amode, flags) { + try { + + path = SYSCALLS.getStr(path); + path = SYSCALLS.calculateAt(dirfd, path); + if (amode & ~7) { + // need a valid mode + return -28; + } + var lookup = FS.lookupPath(path, { follow: true }); + var node = lookup.node; + if (!node) { + return -44; + } + var perms = ''; + if (amode & 4) perms += 'r'; + if (amode & 2) perms += 'w'; + if (amode & 1) perms += 'x'; + if (perms /* otherwise, they've just passed F_OK */ && FS.nodePermissions(node, perms)) { + return -2; + } + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + var ___syscall_fadvise64 = (fd, offset, len, advice) => { + return 0; // your advice is important to us (but we can't use it) + }; + + function ___syscall_fchmod(fd, mode) { + try { + + FS.fchmod(fd, mode); + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_fcntl64(fd, cmd, varargs) { + SYSCALLS.varargs = varargs; + try { + + var stream = SYSCALLS.getStreamFromFD(fd); + switch (cmd) { + case 0: { + var arg = SYSCALLS.get(); + if (arg < 0) { + return -28; + } + while (FS.streams[arg]) { + arg++; + } + var newStream; + newStream = FS.dupStream(stream, arg); + return newStream.fd; + } + case 1: + case 2: + return 0; // FD_CLOEXEC makes no sense for a single process. + case 3: + return stream.flags; + case 4: { + var arg = SYSCALLS.get(); + stream.flags |= arg; + return 0; + } + case 12: { + var arg = SYSCALLS.getp(); + var offset = 0; + // We're always unlocked. + HEAP16[(((arg)+(offset))>>1)] = 2; + return 0; + } + case 13: + case 14: + return 0; // Pretend that the locking is successful. + } + return -28; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_fstat64(fd, buf) { + try { + + var stream = SYSCALLS.getStreamFromFD(fd); + return SYSCALLS.doStat(FS.stat, stream.path, buf); + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_statfs64(path, size, buf) { + try { + + path = SYSCALLS.getStr(path); + // NOTE: None of the constants here are true. We're just returning safe and + // sane values. + HEAP32[(((buf)+(4))>>2)] = 4096; + HEAP32[(((buf)+(40))>>2)] = 4096; + HEAP32[(((buf)+(8))>>2)] = 1000000; + HEAP32[(((buf)+(12))>>2)] = 500000; + HEAP32[(((buf)+(16))>>2)] = 500000; + HEAP32[(((buf)+(20))>>2)] = FS.nextInode; + HEAP32[(((buf)+(24))>>2)] = 1000000; + HEAP32[(((buf)+(28))>>2)] = 42; + HEAP32[(((buf)+(44))>>2)] = 2; // ST_NOSUID + HEAP32[(((buf)+(36))>>2)] = 255; + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_fstatfs64(fd, size, buf) { + try { + + var stream = SYSCALLS.getStreamFromFD(fd); + return ___syscall_statfs64(0, size, buf); + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + var MAX_INT53 = 9007199254740992; + + var MIN_INT53 = -9007199254740992; + var bigintToI53Checked = (num) => (num < MIN_INT53 || num > MAX_INT53) ? NaN : Number(num); + function ___syscall_ftruncate64(fd, length) { + length = bigintToI53Checked(length); + + + try { + + if (isNaN(length)) return 61; + FS.ftruncate(fd, length); + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + ; + } + + + var stringToUTF8 = (str, outPtr, maxBytesToWrite) => { + return stringToUTF8Array(str, HEAPU8, outPtr, maxBytesToWrite); + }; + function ___syscall_getcwd(buf, size) { + try { + + if (size === 0) return -28; + var cwd = FS.cwd(); + var cwdLengthInBytes = lengthBytesUTF8(cwd) + 1; + if (size < cwdLengthInBytes) return -68; + stringToUTF8(cwd, buf, size); + return cwdLengthInBytes; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + + function ___syscall_getdents64(fd, dirp, count) { + try { + + var stream = SYSCALLS.getStreamFromFD(fd) + stream.getdents ||= FS.readdir(stream.path); + + var struct_size = 280; + var pos = 0; + var off = FS.llseek(stream, 0, 1); + + var idx = Math.floor(off / struct_size); + + while (idx < stream.getdents.length && pos + struct_size <= count) { + var id; + var type; + var name = stream.getdents[idx]; + if (name === '.') { + id = stream.node.id; + type = 4; // DT_DIR + } + else if (name === '..') { + var lookup = FS.lookupPath(stream.path, { parent: true }); + id = lookup.node.id; + type = 4; // DT_DIR + } + else { + var child = FS.lookupNode(stream.node, name); + id = child.id; + type = FS.isChrdev(child.mode) ? 2 : // DT_CHR, character device. + FS.isDir(child.mode) ? 4 : // DT_DIR, directory. + FS.isLink(child.mode) ? 10 : // DT_LNK, symbolic link. + 8; // DT_REG, regular file. + } + HEAP64[((dirp + pos)>>3)] = BigInt(id); + HEAP64[(((dirp + pos)+(8))>>3)] = BigInt((idx + 1) * struct_size); + HEAP16[(((dirp + pos)+(16))>>1)] = 280; + HEAP8[(dirp + pos)+(18)] = type; + stringToUTF8(name, dirp + pos + 19, 256); + pos += struct_size; + idx += 1; + } + FS.llseek(stream, idx * struct_size, 0); + return pos; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_ioctl(fd, op, varargs) { + SYSCALLS.varargs = varargs; + try { + + var stream = SYSCALLS.getStreamFromFD(fd); + switch (op) { + case 21509: { + if (!stream.tty) return -59; + return 0; + } + case 21505: { + if (!stream.tty) return -59; + if (stream.tty.ops.ioctl_tcgets) { + var termios = stream.tty.ops.ioctl_tcgets(stream); + var argp = SYSCALLS.getp(); + HEAP32[((argp)>>2)] = termios.c_iflag || 0; + HEAP32[(((argp)+(4))>>2)] = termios.c_oflag || 0; + HEAP32[(((argp)+(8))>>2)] = termios.c_cflag || 0; + HEAP32[(((argp)+(12))>>2)] = termios.c_lflag || 0; + for (var i = 0; i < 32; i++) { + HEAP8[(argp + i)+(17)] = termios.c_cc[i] || 0; + } + return 0; + } + return 0; + } + case 21510: + case 21511: + case 21512: { + if (!stream.tty) return -59; + return 0; // no-op, not actually adjusting terminal settings + } + case 21506: + case 21507: + case 21508: { + if (!stream.tty) return -59; + if (stream.tty.ops.ioctl_tcsets) { + var argp = SYSCALLS.getp(); + var c_iflag = HEAP32[((argp)>>2)]; + var c_oflag = HEAP32[(((argp)+(4))>>2)]; + var c_cflag = HEAP32[(((argp)+(8))>>2)]; + var c_lflag = HEAP32[(((argp)+(12))>>2)]; + var c_cc = [] + for (var i = 0; i < 32; i++) { + c_cc.push(HEAP8[(argp + i)+(17)]); + } + return stream.tty.ops.ioctl_tcsets(stream.tty, op, { c_iflag, c_oflag, c_cflag, c_lflag, c_cc }); + } + return 0; // no-op, not actually adjusting terminal settings + } + case 21519: { + if (!stream.tty) return -59; + var argp = SYSCALLS.getp(); + HEAP32[((argp)>>2)] = 0; + return 0; + } + case 21520: { + if (!stream.tty) return -59; + return -28; // not supported + } + case 21531: { + var argp = SYSCALLS.getp(); + return FS.ioctl(stream, op, argp); + } + case 21523: { + // TODO: in theory we should write to the winsize struct that gets + // passed in, but for now musl doesn't read anything on it + if (!stream.tty) return -59; + if (stream.tty.ops.ioctl_tiocgwinsz) { + var winsize = stream.tty.ops.ioctl_tiocgwinsz(stream.tty); + var argp = SYSCALLS.getp(); + HEAP16[((argp)>>1)] = winsize[0]; + HEAP16[(((argp)+(2))>>1)] = winsize[1]; + } + return 0; + } + case 21524: { + // TODO: technically, this ioctl call should change the window size. + // but, since emscripten doesn't have any concept of a terminal window + // yet, we'll just silently throw it away as we do TIOCGWINSZ + if (!stream.tty) return -59; + return 0; + } + case 21515: { + if (!stream.tty) return -59; + return 0; + } + default: return -28; // not supported + } + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_lstat64(path, buf) { + try { + + path = SYSCALLS.getStr(path); + return SYSCALLS.doStat(FS.lstat, path, buf); + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_mkdirat(dirfd, path, mode) { + try { + + path = SYSCALLS.getStr(path); + path = SYSCALLS.calculateAt(dirfd, path); + // remove a trailing slash, if one - /a/b/ has basename of '', but + // we want to create b in the context of this function + path = PATH.normalize(path); + if (path[path.length-1] === '/') path = path.substr(0, path.length-1); + FS.mkdir(path, mode, 0); + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_newfstatat(dirfd, path, buf, flags) { + try { + + path = SYSCALLS.getStr(path); + var nofollow = flags & 256; + var allowEmpty = flags & 4096; + flags = flags & (~6400); + path = SYSCALLS.calculateAt(dirfd, path, allowEmpty); + return SYSCALLS.doStat(nofollow ? FS.lstat : FS.stat, path, buf); + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_openat(dirfd, path, flags, varargs) { + SYSCALLS.varargs = varargs; + try { + + path = SYSCALLS.getStr(path); + path = SYSCALLS.calculateAt(dirfd, path); + var mode = varargs ? SYSCALLS.get() : 0; + return FS.open(path, flags, mode).fd; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + + + function ___syscall_readlinkat(dirfd, path, buf, bufsize) { + try { + + path = SYSCALLS.getStr(path); + path = SYSCALLS.calculateAt(dirfd, path); + if (bufsize <= 0) return -28; + var ret = FS.readlink(path); + + var len = Math.min(bufsize, lengthBytesUTF8(ret)); + var endChar = HEAP8[buf+len]; + stringToUTF8(ret, buf, bufsize+1); + // readlink is one of the rare functions that write out a C string, but does never append a null to the output buffer(!) + // stringToUTF8() always appends a null byte, so restore the character under the null byte after the write. + HEAP8[buf+len] = endChar; + return len; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_renameat(olddirfd, oldpath, newdirfd, newpath) { + try { + + oldpath = SYSCALLS.getStr(oldpath); + newpath = SYSCALLS.getStr(newpath); + oldpath = SYSCALLS.calculateAt(olddirfd, oldpath); + newpath = SYSCALLS.calculateAt(newdirfd, newpath); + FS.rename(oldpath, newpath); + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + + function ___syscall_sendto(fd, message, length, flags, addr, addr_len) { + try { + + var sock = getSocketFromFD(fd); + var dest = getSocketAddress(addr, addr_len, true); + if (!dest) { + // send, no address provided + return FS.write(sock.stream, HEAP8, message, length); + } + // sendto an address + return sock.sock_ops.sendmsg(sock, HEAP8, message, length, dest.addr, dest.port); + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_socket(domain, type, protocol) { + try { + + var sock = SOCKFS.createSocket(domain, type, protocol); + return sock.stream.fd; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_stat64(path, buf) { + try { + + path = SYSCALLS.getStr(path); + return SYSCALLS.doStat(FS.stat, path, buf); + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + function ___syscall_unlinkat(dirfd, path, flags) { + try { + + path = SYSCALLS.getStr(path); + path = SYSCALLS.calculateAt(dirfd, path); + if (flags === 0) { + FS.unlink(path); + } else if (flags === 512) { + FS.rmdir(path); + } else { + abort('Invalid flags passed to unlinkat'); + } + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + var readI53FromI64 = (ptr) => { + return HEAPU32[((ptr)>>2)] + HEAP32[(((ptr)+(4))>>2)] * 4294967296; + }; + + function ___syscall_utimensat(dirfd, path, times, flags) { + try { + + path = SYSCALLS.getStr(path); + path = SYSCALLS.calculateAt(dirfd, path, true); + if (!times) { + var atime = Date.now(); + var mtime = atime; + } else { + var seconds = readI53FromI64(times); + var nanoseconds = HEAP32[(((times)+(8))>>2)]; + atime = (seconds*1000) + (nanoseconds/(1000*1000)); + times += 16; + seconds = readI53FromI64(times); + nanoseconds = HEAP32[(((times)+(8))>>2)]; + mtime = (seconds*1000) + (nanoseconds/(1000*1000)); + } + FS.utime(path, atime, mtime); + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + } + + var nowIsMonotonic = 1; + var __emscripten_get_now_is_monotonic = () => nowIsMonotonic; + + function __gmtime_js(time, tmPtr) { + time = bigintToI53Checked(time); + + + var date = new Date(time * 1000); + HEAP32[((tmPtr)>>2)] = date.getUTCSeconds(); + HEAP32[(((tmPtr)+(4))>>2)] = date.getUTCMinutes(); + HEAP32[(((tmPtr)+(8))>>2)] = date.getUTCHours(); + HEAP32[(((tmPtr)+(12))>>2)] = date.getUTCDate(); + HEAP32[(((tmPtr)+(16))>>2)] = date.getUTCMonth(); + HEAP32[(((tmPtr)+(20))>>2)] = date.getUTCFullYear()-1900; + HEAP32[(((tmPtr)+(24))>>2)] = date.getUTCDay(); + var start = Date.UTC(date.getUTCFullYear(), 0, 1, 0, 0, 0, 0); + var yday = ((date.getTime() - start) / (1000 * 60 * 60 * 24))|0; + HEAP32[(((tmPtr)+(28))>>2)] = yday; + ; + } + + var isLeapYear = (year) => year%4 === 0 && (year%100 !== 0 || year%400 === 0); + + var MONTH_DAYS_LEAP_CUMULATIVE = [0,31,60,91,121,152,182,213,244,274,305,335]; + + var MONTH_DAYS_REGULAR_CUMULATIVE = [0,31,59,90,120,151,181,212,243,273,304,334]; + var ydayFromDate = (date) => { + var leap = isLeapYear(date.getFullYear()); + var monthDaysCumulative = (leap ? MONTH_DAYS_LEAP_CUMULATIVE : MONTH_DAYS_REGULAR_CUMULATIVE); + var yday = monthDaysCumulative[date.getMonth()] + date.getDate() - 1; // -1 since it's days since Jan 1 + + return yday; + }; + + function __localtime_js(time, tmPtr) { + time = bigintToI53Checked(time); + + + var date = new Date(time*1000); + HEAP32[((tmPtr)>>2)] = date.getSeconds(); + HEAP32[(((tmPtr)+(4))>>2)] = date.getMinutes(); + HEAP32[(((tmPtr)+(8))>>2)] = date.getHours(); + HEAP32[(((tmPtr)+(12))>>2)] = date.getDate(); + HEAP32[(((tmPtr)+(16))>>2)] = date.getMonth(); + HEAP32[(((tmPtr)+(20))>>2)] = date.getFullYear()-1900; + HEAP32[(((tmPtr)+(24))>>2)] = date.getDay(); + + var yday = ydayFromDate(date)|0; + HEAP32[(((tmPtr)+(28))>>2)] = yday; + HEAP32[(((tmPtr)+(36))>>2)] = -(date.getTimezoneOffset() * 60); + + // Attention: DST is in December in South, and some regions don't have DST at all. + var start = new Date(date.getFullYear(), 0, 1); + var summerOffset = new Date(date.getFullYear(), 6, 1).getTimezoneOffset(); + var winterOffset = start.getTimezoneOffset(); + var dst = (summerOffset != winterOffset && date.getTimezoneOffset() == Math.min(winterOffset, summerOffset))|0; + HEAP32[(((tmPtr)+(32))>>2)] = dst; + ; + } + + + + + + + function __mmap_js(len, prot, flags, fd, offset, allocated, addr) { + offset = bigintToI53Checked(offset); + + + try { + + if (isNaN(offset)) return 61; + var stream = SYSCALLS.getStreamFromFD(fd); + var res = FS.mmap(stream, len, offset, prot, flags); + var ptr = res.ptr; + HEAP32[((allocated)>>2)] = res.allocated; + HEAPU32[((addr)>>2)] = ptr; + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + ; + } + + + function __msync_js(addr, len, prot, flags, fd, offset) { + offset = bigintToI53Checked(offset); + + + try { + + if (isNaN(offset)) return 61; + SYSCALLS.doMsync(addr, SYSCALLS.getStreamFromFD(fd), len, flags, offset); + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + ; + } + + + function __munmap_js(addr, len, prot, flags, fd, offset) { + offset = bigintToI53Checked(offset); + + + try { + + var stream = SYSCALLS.getStreamFromFD(fd); + if (prot & 2) { + SYSCALLS.doMsync(addr, stream, len, flags, offset); + } + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return -e.errno; + } + ; + } + + var __tzset_js = (timezone, daylight, std_name, dst_name) => { + // TODO: Use (malleable) environment variables instead of system settings. + var currentYear = new Date().getFullYear(); + var winter = new Date(currentYear, 0, 1); + var summer = new Date(currentYear, 6, 1); + var winterOffset = winter.getTimezoneOffset(); + var summerOffset = summer.getTimezoneOffset(); + + // Local standard timezone offset. Local standard time is not adjusted for + // daylight savings. This code uses the fact that getTimezoneOffset returns + // a greater value during Standard Time versus Daylight Saving Time (DST). + // Thus it determines the expected output during Standard Time, and it + // compares whether the output of the given date the same (Standard) or less + // (DST). + var stdTimezoneOffset = Math.max(winterOffset, summerOffset); + + // timezone is specified as seconds west of UTC ("The external variable + // `timezone` shall be set to the difference, in seconds, between + // Coordinated Universal Time (UTC) and local standard time."), the same + // as returned by stdTimezoneOffset. + // See http://pubs.opengroup.org/onlinepubs/009695399/functions/tzset.html + HEAPU32[((timezone)>>2)] = stdTimezoneOffset * 60; + + HEAP32[((daylight)>>2)] = Number(winterOffset != summerOffset); + + function extractZone(date) { + var match = date.toTimeString().match(/\(([A-Za-z ]+)\)$/); + return match ? match[1] : "GMT"; + }; + var winterName = extractZone(winter); + var summerName = extractZone(summer); + if (summerOffset < winterOffset) { + // Northern hemisphere + stringToUTF8(winterName, std_name, 7); + stringToUTF8(summerName, dst_name, 7); + } else { + stringToUTF8(winterName, dst_name, 7); + stringToUTF8(summerName, std_name, 7); + } + }; + + var _abort = () => { + abort(''); + }; + + var _emscripten_date_now = () => Date.now(); + + + var runtimeKeepaliveCounter = 0; + var keepRuntimeAlive = () => noExitRuntime || runtimeKeepaliveCounter > 0; + var _proc_exit = (code) => { + EXITSTATUS = code; + if (!keepRuntimeAlive()) { + Module['onExit']?.(code); + ABORT = true; + } + quit_(code, new ExitStatus(code)); + }; + + /** @suppress {duplicate } */ + /** @param {boolean|number=} implicit */ + var exitJS = (status, implicit) => { + EXITSTATUS = status; + + if (!keepRuntimeAlive()) { + exitRuntime(); + } + + _proc_exit(status); + }; + var _exit = exitJS; + + var __emscripten_runtime_keepalive_clear = () => { + noExitRuntime = false; + runtimeKeepaliveCounter = 0; + }; + + var _emscripten_force_exit = (status) => { + __emscripten_runtime_keepalive_clear(); + _exit(status); + }; + Module['_emscripten_force_exit'] = _emscripten_force_exit; + + var getHeapMax = () => + // Stay one Wasm page short of 4GB: while e.g. Chrome is able to allocate + // full 4GB Wasm memories, the size will wrap back to 0 bytes in Wasm side + // for any code that deals with heap sizes, which would require special + // casing all heap size related code to treat 0 specially. + 2147483648; + var _emscripten_get_heap_max = () => getHeapMax(); + + var _emscripten_get_now; + // Modern environment where performance.now() is supported: + // N.B. a shorter form "_emscripten_get_now = performance.now;" is + // unfortunately not allowed even in current browsers (e.g. FF Nightly 75). + _emscripten_get_now = () => performance.now(); + ; + + var _emscripten_get_now_res = () => { // return resolution of get_now, in nanoseconds + if (ENVIRONMENT_IS_NODE) { + return 1; // nanoseconds + } + // Modern environment where performance.now() is supported: + return 1000; // microseconds (1/1000 of a millisecond) + }; + + + var growMemory = (size) => { + var b = wasmMemory.buffer; + var pages = (size - b.byteLength + 65535) / 65536; + try { + // round size grow request up to wasm page size (fixed 64KB per spec) + wasmMemory.grow(pages); // .grow() takes a delta compared to the previous size + updateMemoryViews(); + return 1 /*success*/; + } catch(e) { + } + // implicit 0 return to save code size (caller will cast "undefined" into 0 + // anyhow) + }; + var _emscripten_resize_heap = (requestedSize) => { + var oldSize = HEAPU8.length; + // With CAN_ADDRESS_2GB or MEMORY64, pointers are already unsigned. + requestedSize >>>= 0; + // With multithreaded builds, races can happen (another thread might increase the size + // in between), so return a failure, and let the caller retry. + + // Memory resize rules: + // 1. Always increase heap size to at least the requested size, rounded up + // to next page multiple. + // 2a. If MEMORY_GROWTH_LINEAR_STEP == -1, excessively resize the heap + // geometrically: increase the heap size according to + // MEMORY_GROWTH_GEOMETRIC_STEP factor (default +20%), At most + // overreserve by MEMORY_GROWTH_GEOMETRIC_CAP bytes (default 96MB). + // 2b. If MEMORY_GROWTH_LINEAR_STEP != -1, excessively resize the heap + // linearly: increase the heap size by at least + // MEMORY_GROWTH_LINEAR_STEP bytes. + // 3. Max size for the heap is capped at 2048MB-WASM_PAGE_SIZE, or by + // MAXIMUM_MEMORY, or by ASAN limit, depending on which is smallest + // 4. If we were unable to allocate as much memory, it may be due to + // over-eager decision to excessively reserve due to (3) above. + // Hence if an allocation fails, cut down on the amount of excess + // growth, in an attempt to succeed to perform a smaller allocation. + + // A limit is set for how much we can grow. We should not exceed that + // (the wasm binary specifies it, so if we tried, we'd fail anyhow). + var maxHeapSize = getHeapMax(); + if (requestedSize > maxHeapSize) { + return false; + } + + var alignUp = (x, multiple) => x + (multiple - x % multiple) % multiple; + + // Loop through potential heap size increases. If we attempt a too eager + // reservation that fails, cut down on the attempted size and reserve a + // smaller bump instead. (max 3 times, chosen somewhat arbitrarily) + for (var cutDown = 1; cutDown <= 4; cutDown *= 2) { + var overGrownHeapSize = oldSize * (1 + 0.2 / cutDown); // ensure geometric growth + // but limit overreserving (default to capping at +96MB overgrowth at most) + overGrownHeapSize = Math.min(overGrownHeapSize, requestedSize + 100663296 ); + + var newSize = Math.min(maxHeapSize, alignUp(Math.max(requestedSize, overGrownHeapSize), 65536)); + + var replacement = growMemory(newSize); + if (replacement) { + + return true; + } + } + return false; + }; + + var ENV = { + }; + + var getExecutableName = () => { + return thisProgram || './this.program'; + }; + var getEnvStrings = () => { + if (!getEnvStrings.strings) { + // Default values. + // Browser language detection #8751 + var lang = ((typeof navigator == 'object' && navigator.languages && navigator.languages[0]) || 'C').replace('-', '_') + '.UTF-8'; + var env = { + 'USER': 'web_user', + 'LOGNAME': 'web_user', + 'PATH': '/', + 'PWD': '/', + 'HOME': '/home/web_user', + 'LANG': lang, + '_': getExecutableName() + }; + // Apply the user-provided values, if any. + for (var x in ENV) { + // x is a key in ENV; if ENV[x] is undefined, that means it was + // explicitly set to be so. We allow user code to do that to + // force variables with default values to remain unset. + if (ENV[x] === undefined) delete env[x]; + else env[x] = ENV[x]; + } + var strings = []; + for (var x in env) { + strings.push(`${x}=${env[x]}`); + } + getEnvStrings.strings = strings; + } + return getEnvStrings.strings; + }; + + var stringToAscii = (str, buffer) => { + for (var i = 0; i < str.length; ++i) { + HEAP8[buffer++] = str.charCodeAt(i); + } + // Null-terminate the string + HEAP8[buffer] = 0; + }; + var _environ_get = (__environ, environ_buf) => { + var bufSize = 0; + getEnvStrings().forEach((string, i) => { + var ptr = environ_buf + bufSize; + HEAPU32[(((__environ)+(i*4))>>2)] = ptr; + stringToAscii(string, ptr); + bufSize += string.length + 1; + }); + return 0; + }; + + var _environ_sizes_get = (penviron_count, penviron_buf_size) => { + var strings = getEnvStrings(); + HEAPU32[((penviron_count)>>2)] = strings.length; + var bufSize = 0; + strings.forEach((string) => bufSize += string.length + 1); + HEAPU32[((penviron_buf_size)>>2)] = bufSize; + return 0; + }; + + + function _fd_close(fd) { + try { + + var stream = SYSCALLS.getStreamFromFD(fd); + FS.close(stream); + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return e.errno; + } + } + + function _fd_fdstat_get(fd, pbuf) { + try { + + var rightsBase = 0; + var rightsInheriting = 0; + var flags = 0; + { + var stream = SYSCALLS.getStreamFromFD(fd); + // All character devices are terminals (other things a Linux system would + // assume is a character device, like the mouse, we have special APIs for). + var type = stream.tty ? 2 : + FS.isDir(stream.mode) ? 3 : + FS.isLink(stream.mode) ? 7 : + 4; + } + HEAP8[pbuf] = type; + HEAP16[(((pbuf)+(2))>>1)] = flags; + HEAP64[(((pbuf)+(8))>>3)] = BigInt(rightsBase); + HEAP64[(((pbuf)+(16))>>3)] = BigInt(rightsInheriting); + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return e.errno; + } + } + + /** @param {number=} offset */ + var doReadv = (stream, iov, iovcnt, offset) => { + var ret = 0; + for (var i = 0; i < iovcnt; i++) { + var ptr = HEAPU32[((iov)>>2)]; + var len = HEAPU32[(((iov)+(4))>>2)]; + iov += 8; + var curr = FS.read(stream, HEAP8, ptr, len, offset); + if (curr < 0) return -1; + ret += curr; + if (curr < len) break; // nothing more to read + if (typeof offset !== 'undefined') { + offset += curr; + } + } + return ret; + }; + + + function _fd_pread(fd, iov, iovcnt, offset, pnum) { + offset = bigintToI53Checked(offset); + + + try { + + if (isNaN(offset)) return 61; + var stream = SYSCALLS.getStreamFromFD(fd) + var num = doReadv(stream, iov, iovcnt, offset); + HEAPU32[((pnum)>>2)] = num; + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return e.errno; + } + ; + } + + /** @param {number=} offset */ + var doWritev = (stream, iov, iovcnt, offset) => { + var ret = 0; + for (var i = 0; i < iovcnt; i++) { + var ptr = HEAPU32[((iov)>>2)]; + var len = HEAPU32[(((iov)+(4))>>2)]; + iov += 8; + var curr = FS.write(stream, HEAP8, ptr, len, offset); + if (curr < 0) return -1; + ret += curr; + if (typeof offset !== 'undefined') { + offset += curr; + } + } + return ret; + }; + + + function _fd_pwrite(fd, iov, iovcnt, offset, pnum) { + offset = bigintToI53Checked(offset); + + + try { + + if (isNaN(offset)) return 61; + var stream = SYSCALLS.getStreamFromFD(fd) + var num = doWritev(stream, iov, iovcnt, offset); + HEAPU32[((pnum)>>2)] = num; + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return e.errno; + } + ; + } + + + function _fd_read(fd, iov, iovcnt, pnum) { + try { + + var stream = SYSCALLS.getStreamFromFD(fd); + var num = doReadv(stream, iov, iovcnt); + HEAPU32[((pnum)>>2)] = num; + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return e.errno; + } + } + + + function _fd_seek(fd, offset, whence, newOffset) { + offset = bigintToI53Checked(offset); + + + try { + + if (isNaN(offset)) return 61; + var stream = SYSCALLS.getStreamFromFD(fd); + FS.llseek(stream, offset, whence); + HEAP64[((newOffset)>>3)] = BigInt(stream.position); + if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return e.errno; + } + ; + } + + function _fd_sync(fd) { + try { + + var stream = SYSCALLS.getStreamFromFD(fd); + if (stream.stream_ops?.fsync) { + return stream.stream_ops.fsync(stream); + } + return 0; // we can't do anything synchronously; the in-memory FS is already synced to + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return e.errno; + } + } + + + function _fd_write(fd, iov, iovcnt, pnum) { + try { + + var stream = SYSCALLS.getStreamFromFD(fd); + var num = doWritev(stream, iov, iovcnt); + HEAPU32[((pnum)>>2)] = num; + return 0; + } catch (e) { + if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e; + return e.errno; + } + } + + var DOTNET = { + setup:function setup(emscriptenBuildOptions) { + // USE_PTHREADS is emscripten's define symbol, which is passed to acorn optimizer, so we could use it here + const modulePThread = {}; + const ENVIRONMENT_IS_PTHREAD = false; + const dotnet_replacements = { + fetch: globalThis.fetch, + ENVIRONMENT_IS_WORKER, + require, + modulePThread, + scriptDirectory, + }; + + ENVIRONMENT_IS_WORKER = dotnet_replacements.ENVIRONMENT_IS_WORKER; + Module.__dotnet_runtime.initializeReplacements(dotnet_replacements); + noExitRuntime = dotnet_replacements.noExitRuntime; + fetch = dotnet_replacements.fetch; + require = dotnet_replacements.require; + _scriptDir = __dirname = scriptDirectory = dotnet_replacements.scriptDirectory; + Module.__dotnet_runtime.passEmscriptenInternals({ + isPThread: ENVIRONMENT_IS_PTHREAD, + quit_, ExitStatus, + updateMemoryViews, + getMemory: () => { return wasmMemory; }, + getWasmIndirectFunctionTable: () => { return wasmTable; }, + }, emscriptenBuildOptions); + + Module.__dotnet_runtime.configureEmscriptenStartup(Module); + }, + }; + function _mono_interp_flush_jitcall_queue( + ) { + return {runtime_idx:12};//mono_interp_flush_jitcall_queue + } + + function _mono_interp_invoke_wasm_jit_call_trampoline( + ) { + return {runtime_idx:11};//mono_interp_invoke_wasm_jit_call_trampoline + } + + function _mono_interp_jit_wasm_entry_trampoline( + ) { + return {runtime_idx:9};//mono_interp_jit_wasm_entry_trampoline + } + + function _mono_interp_jit_wasm_jit_call_trampoline( + ) { + return {runtime_idx:10};//mono_interp_jit_wasm_jit_call_trampoline + } + + function _mono_interp_record_interp_entry( + ) { + return {runtime_idx:8};//mono_interp_record_interp_entry + } + + function _mono_interp_tier_prepare_jiterpreter( + ) { + return {runtime_idx:7};//mono_interp_tier_prepare_jiterpreter + } + + function _mono_wasm_bind_js_import_ST( + ) { + return {runtime_idx:22};//mono_wasm_bind_js_import_ST + } + + function _mono_wasm_browser_entropy( + ) { + return {runtime_idx:18};//mono_wasm_browser_entropy + } + + function _mono_wasm_cancel_promise( + ) { + return {runtime_idx:26};//mono_wasm_cancel_promise + } + + function _mono_wasm_console_clear( + ) { + return {runtime_idx:20};//mono_wasm_console_clear + } + + function _mono_wasm_free_method_data( + ) { + return {runtime_idx:13};//mono_wasm_free_method_data + } + + function _mono_wasm_get_locale_info( + ) { + return {runtime_idx:27};//mono_wasm_get_locale_info + } + + function _mono_wasm_invoke_js_function( + ) { + return {runtime_idx:23};//mono_wasm_invoke_js_function + } + + function _mono_wasm_invoke_jsimport_ST( + ) { + return {runtime_idx:24};//mono_wasm_invoke_jsimport_ST + } + + function _mono_wasm_process_current_pid( + ) { + return {runtime_idx:19};//mono_wasm_process_current_pid + } + + function _mono_wasm_release_cs_owned_object( + ) { + return {runtime_idx:21};//mono_wasm_release_cs_owned_object + } + + function _mono_wasm_resolve_or_reject_promise( + ) { + return {runtime_idx:25};//mono_wasm_resolve_or_reject_promise + } + + function _mono_wasm_schedule_timer( + ) { + return {runtime_idx:0};//mono_wasm_schedule_timer + } + + function _mono_wasm_set_entrypoint_breakpoint( + ) { + return {runtime_idx:17};//mono_wasm_set_entrypoint_breakpoint + } + + function _mono_wasm_trace_logger( + ) { + return {runtime_idx:16};//mono_wasm_trace_logger + } + + function _schedule_background_exec( + ) { + return {runtime_idx:6};//schedule_background_exec + } + + + var arraySum = (array, index) => { + var sum = 0; + for (var i = 0; i <= index; sum += array[i++]) { + // no-op + } + return sum; + }; + + + var MONTH_DAYS_LEAP = [31,29,31,30,31,30,31,31,30,31,30,31]; + + var MONTH_DAYS_REGULAR = [31,28,31,30,31,30,31,31,30,31,30,31]; + var addDays = (date, days) => { + var newDate = new Date(date.getTime()); + while (days > 0) { + var leap = isLeapYear(newDate.getFullYear()); + var currentMonth = newDate.getMonth(); + var daysInCurrentMonth = (leap ? MONTH_DAYS_LEAP : MONTH_DAYS_REGULAR)[currentMonth]; + + if (days > daysInCurrentMonth-newDate.getDate()) { + // we spill over to next month + days -= (daysInCurrentMonth-newDate.getDate()+1); + newDate.setDate(1); + if (currentMonth < 11) { + newDate.setMonth(currentMonth+1) + } else { + newDate.setMonth(0); + newDate.setFullYear(newDate.getFullYear()+1); + } + } else { + // we stay in current month + newDate.setDate(newDate.getDate()+days); + return newDate; + } + } + + return newDate; + }; + + + + + var writeArrayToMemory = (array, buffer) => { + HEAP8.set(array, buffer); + }; + + var _strftime = (s, maxsize, format, tm) => { + // size_t strftime(char *restrict s, size_t maxsize, const char *restrict format, const struct tm *restrict timeptr); + // http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html + + var tm_zone = HEAPU32[(((tm)+(40))>>2)]; + + var date = { + tm_sec: HEAP32[((tm)>>2)], + tm_min: HEAP32[(((tm)+(4))>>2)], + tm_hour: HEAP32[(((tm)+(8))>>2)], + tm_mday: HEAP32[(((tm)+(12))>>2)], + tm_mon: HEAP32[(((tm)+(16))>>2)], + tm_year: HEAP32[(((tm)+(20))>>2)], + tm_wday: HEAP32[(((tm)+(24))>>2)], + tm_yday: HEAP32[(((tm)+(28))>>2)], + tm_isdst: HEAP32[(((tm)+(32))>>2)], + tm_gmtoff: HEAP32[(((tm)+(36))>>2)], + tm_zone: tm_zone ? UTF8ToString(tm_zone) : '' + }; + + + var pattern = UTF8ToString(format); + + // expand format + var EXPANSION_RULES_1 = { + '%c': '%a %b %d %H:%M:%S %Y', // Replaced by the locale's appropriate date and time representation - e.g., Mon Aug 3 14:02:01 2013 + '%D': '%m/%d/%y', // Equivalent to %m / %d / %y + '%F': '%Y-%m-%d', // Equivalent to %Y - %m - %d + '%h': '%b', // Equivalent to %b + '%r': '%I:%M:%S %p', // Replaced by the time in a.m. and p.m. notation + '%R': '%H:%M', // Replaced by the time in 24-hour notation + '%T': '%H:%M:%S', // Replaced by the time + '%x': '%m/%d/%y', // Replaced by the locale's appropriate date representation + '%X': '%H:%M:%S', // Replaced by the locale's appropriate time representation + // Modified Conversion Specifiers + '%Ec': '%c', // Replaced by the locale's alternative appropriate date and time representation. + '%EC': '%C', // Replaced by the name of the base year (period) in the locale's alternative representation. + '%Ex': '%m/%d/%y', // Replaced by the locale's alternative date representation. + '%EX': '%H:%M:%S', // Replaced by the locale's alternative time representation. + '%Ey': '%y', // Replaced by the offset from %EC (year only) in the locale's alternative representation. + '%EY': '%Y', // Replaced by the full alternative year representation. + '%Od': '%d', // Replaced by the day of the month, using the locale's alternative numeric symbols, filled as needed with leading zeros if there is any alternative symbol for zero; otherwise, with leading characters. + '%Oe': '%e', // Replaced by the day of the month, using the locale's alternative numeric symbols, filled as needed with leading characters. + '%OH': '%H', // Replaced by the hour (24-hour clock) using the locale's alternative numeric symbols. + '%OI': '%I', // Replaced by the hour (12-hour clock) using the locale's alternative numeric symbols. + '%Om': '%m', // Replaced by the month using the locale's alternative numeric symbols. + '%OM': '%M', // Replaced by the minutes using the locale's alternative numeric symbols. + '%OS': '%S', // Replaced by the seconds using the locale's alternative numeric symbols. + '%Ou': '%u', // Replaced by the weekday as a number in the locale's alternative representation (Monday=1). + '%OU': '%U', // Replaced by the week number of the year (Sunday as the first day of the week, rules corresponding to %U ) using the locale's alternative numeric symbols. + '%OV': '%V', // Replaced by the week number of the year (Monday as the first day of the week, rules corresponding to %V ) using the locale's alternative numeric symbols. + '%Ow': '%w', // Replaced by the number of the weekday (Sunday=0) using the locale's alternative numeric symbols. + '%OW': '%W', // Replaced by the week number of the year (Monday as the first day of the week) using the locale's alternative numeric symbols. + '%Oy': '%y', // Replaced by the year (offset from %C ) using the locale's alternative numeric symbols. + }; + for (var rule in EXPANSION_RULES_1) { + pattern = pattern.replace(new RegExp(rule, 'g'), EXPANSION_RULES_1[rule]); + } + + var WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; + var MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; + + function leadingSomething(value, digits, character) { + var str = typeof value == 'number' ? value.toString() : (value || ''); + while (str.length < digits) { + str = character[0]+str; + } + return str; + } + + function leadingNulls(value, digits) { + return leadingSomething(value, digits, '0'); + } + + function compareByDay(date1, date2) { + function sgn(value) { + return value < 0 ? -1 : (value > 0 ? 1 : 0); + } + + var compare; + if ((compare = sgn(date1.getFullYear()-date2.getFullYear())) === 0) { + if ((compare = sgn(date1.getMonth()-date2.getMonth())) === 0) { + compare = sgn(date1.getDate()-date2.getDate()); + } + } + return compare; + } + + function getFirstWeekStartDate(janFourth) { + switch (janFourth.getDay()) { + case 0: // Sunday + return new Date(janFourth.getFullYear()-1, 11, 29); + case 1: // Monday + return janFourth; + case 2: // Tuesday + return new Date(janFourth.getFullYear(), 0, 3); + case 3: // Wednesday + return new Date(janFourth.getFullYear(), 0, 2); + case 4: // Thursday + return new Date(janFourth.getFullYear(), 0, 1); + case 5: // Friday + return new Date(janFourth.getFullYear()-1, 11, 31); + case 6: // Saturday + return new Date(janFourth.getFullYear()-1, 11, 30); + } + } + + function getWeekBasedYear(date) { + var thisDate = addDays(new Date(date.tm_year+1900, 0, 1), date.tm_yday); + + var janFourthThisYear = new Date(thisDate.getFullYear(), 0, 4); + var janFourthNextYear = new Date(thisDate.getFullYear()+1, 0, 4); + + var firstWeekStartThisYear = getFirstWeekStartDate(janFourthThisYear); + var firstWeekStartNextYear = getFirstWeekStartDate(janFourthNextYear); + + if (compareByDay(firstWeekStartThisYear, thisDate) <= 0) { + // this date is after the start of the first week of this year + if (compareByDay(firstWeekStartNextYear, thisDate) <= 0) { + return thisDate.getFullYear()+1; + } + return thisDate.getFullYear(); + } + return thisDate.getFullYear()-1; + } + + var EXPANSION_RULES_2 = { + '%a': (date) => WEEKDAYS[date.tm_wday].substring(0,3) , + '%A': (date) => WEEKDAYS[date.tm_wday], + '%b': (date) => MONTHS[date.tm_mon].substring(0,3), + '%B': (date) => MONTHS[date.tm_mon], + '%C': (date) => { + var year = date.tm_year+1900; + return leadingNulls((year/100)|0,2); + }, + '%d': (date) => leadingNulls(date.tm_mday, 2), + '%e': (date) => leadingSomething(date.tm_mday, 2, ' '), + '%g': (date) => { + // %g, %G, and %V give values according to the ISO 8601:2000 standard week-based year. + // In this system, weeks begin on a Monday and week 1 of the year is the week that includes + // January 4th, which is also the week that includes the first Thursday of the year, and + // is also the first week that contains at least four days in the year. + // If the first Monday of January is the 2nd, 3rd, or 4th, the preceding days are part of + // the last week of the preceding year; thus, for Saturday 2nd January 1999, + // %G is replaced by 1998 and %V is replaced by 53. If December 29th, 30th, + // or 31st is a Monday, it and any following days are part of week 1 of the following year. + // Thus, for Tuesday 30th December 1997, %G is replaced by 1998 and %V is replaced by 01. + + return getWeekBasedYear(date).toString().substring(2); + }, + '%G': getWeekBasedYear, + '%H': (date) => leadingNulls(date.tm_hour, 2), + '%I': (date) => { + var twelveHour = date.tm_hour; + if (twelveHour == 0) twelveHour = 12; + else if (twelveHour > 12) twelveHour -= 12; + return leadingNulls(twelveHour, 2); + }, + '%j': (date) => { + // Day of the year (001-366) + return leadingNulls(date.tm_mday + arraySum(isLeapYear(date.tm_year+1900) ? MONTH_DAYS_LEAP : MONTH_DAYS_REGULAR, date.tm_mon-1), 3); + }, + '%m': (date) => leadingNulls(date.tm_mon+1, 2), + '%M': (date) => leadingNulls(date.tm_min, 2), + '%n': () => '\n', + '%p': (date) => { + if (date.tm_hour >= 0 && date.tm_hour < 12) { + return 'AM'; + } + return 'PM'; + }, + '%S': (date) => leadingNulls(date.tm_sec, 2), + '%t': () => '\t', + '%u': (date) => date.tm_wday || 7, + '%U': (date) => { + var days = date.tm_yday + 7 - date.tm_wday; + return leadingNulls(Math.floor(days / 7), 2); + }, + '%V': (date) => { + // Replaced by the week number of the year (Monday as the first day of the week) + // as a decimal number [01,53]. If the week containing 1 January has four + // or more days in the new year, then it is considered week 1. + // Otherwise, it is the last week of the previous year, and the next week is week 1. + // Both January 4th and the first Thursday of January are always in week 1. [ tm_year, tm_wday, tm_yday] + var val = Math.floor((date.tm_yday + 7 - (date.tm_wday + 6) % 7 ) / 7); + // If 1 Jan is just 1-3 days past Monday, the previous week + // is also in this year. + if ((date.tm_wday + 371 - date.tm_yday - 2) % 7 <= 2) { + val++; + } + if (!val) { + val = 52; + // If 31 December of prev year a Thursday, or Friday of a + // leap year, then the prev year has 53 weeks. + var dec31 = (date.tm_wday + 7 - date.tm_yday - 1) % 7; + if (dec31 == 4 || (dec31 == 5 && isLeapYear(date.tm_year%400-1))) { + val++; + } + } else if (val == 53) { + // If 1 January is not a Thursday, and not a Wednesday of a + // leap year, then this year has only 52 weeks. + var jan1 = (date.tm_wday + 371 - date.tm_yday) % 7; + if (jan1 != 4 && (jan1 != 3 || !isLeapYear(date.tm_year))) + val = 1; + } + return leadingNulls(val, 2); + }, + '%w': (date) => date.tm_wday, + '%W': (date) => { + var days = date.tm_yday + 7 - ((date.tm_wday + 6) % 7); + return leadingNulls(Math.floor(days / 7), 2); + }, + '%y': (date) => { + // Replaced by the last two digits of the year as a decimal number [00,99]. [ tm_year] + return (date.tm_year+1900).toString().substring(2); + }, + // Replaced by the year as a decimal number (for example, 1997). [ tm_year] + '%Y': (date) => date.tm_year+1900, + '%z': (date) => { + // Replaced by the offset from UTC in the ISO 8601:2000 standard format ( +hhmm or -hhmm ). + // For example, "-0430" means 4 hours 30 minutes behind UTC (west of Greenwich). + var off = date.tm_gmtoff; + var ahead = off >= 0; + off = Math.abs(off) / 60; + // convert from minutes into hhmm format (which means 60 minutes = 100 units) + off = (off / 60)*100 + (off % 60); + return (ahead ? '+' : '-') + String("0000" + off).slice(-4); + }, + '%Z': (date) => date.tm_zone, + '%%': () => '%' + }; + + // Replace %% with a pair of NULLs (which cannot occur in a C string), then + // re-inject them after processing. + pattern = pattern.replace(/%%/g, '\0\0') + for (var rule in EXPANSION_RULES_2) { + if (pattern.includes(rule)) { + pattern = pattern.replace(new RegExp(rule, 'g'), EXPANSION_RULES_2[rule](date)); + } + } + pattern = pattern.replace(/\0\0/g, '%') + + var bytes = intArrayFromString(pattern, false); + if (bytes.length > maxsize) { + return 0; + } + + writeArrayToMemory(bytes, s); + return bytes.length-1; + }; + + + + var getCFunc = (ident) => { + var func = Module['_' + ident]; // closure exported function + return func; + }; + + + + var stringToUTF8OnStack = (str) => { + var size = lengthBytesUTF8(str) + 1; + var ret = stackAlloc(size); + stringToUTF8(str, ret, size); + return ret; + }; + + + + + + /** + * @param {string|null=} returnType + * @param {Array=} argTypes + * @param {Arguments|Array=} args + * @param {Object=} opts + */ + var ccall = (ident, returnType, argTypes, args, opts) => { + // For fast lookup of conversion functions + var toC = { + 'string': (str) => { + var ret = 0; + if (str !== null && str !== undefined && str !== 0) { // null string + // at most 4 bytes per UTF-8 code point, +1 for the trailing '\0' + ret = stringToUTF8OnStack(str); + } + return ret; + }, + 'array': (arr) => { + var ret = stackAlloc(arr.length); + writeArrayToMemory(arr, ret); + return ret; + } + }; + + function convertReturnValue(ret) { + if (returnType === 'string') { + + return UTF8ToString(ret); + } + if (returnType === 'boolean') return Boolean(ret); + return ret; + } + + var func = getCFunc(ident); + var cArgs = []; + var stack = 0; + if (args) { + for (var i = 0; i < args.length; i++) { + var converter = toC[argTypes[i]]; + if (converter) { + if (stack === 0) stack = stackSave(); + cArgs[i] = converter(args[i]); + } else { + cArgs[i] = args[i]; + } + } + } + var ret = func(...cArgs); + function onDone(ret) { + if (stack !== 0) stackRestore(stack); + return convertReturnValue(ret); + } + + ret = onDone(ret); + return ret; + }; + + + + /** + * @param {string=} returnType + * @param {Array=} argTypes + * @param {Object=} opts + */ + var cwrap = (ident, returnType, argTypes, opts) => { + // When the function takes numbers and returns a number, we can just return + // the original function + var numericArgs = !argTypes || argTypes.every((type) => type === 'number' || type === 'boolean'); + var numericRet = returnType !== 'string'; + if (numericRet && numericArgs && !opts) { + return getCFunc(ident); + } + return (...args) => ccall(ident, returnType, argTypes, args, opts); + }; + + + + + + + + + var uleb128Encode = (n, target) => { + if (n < 128) { + target.push(n); + } else { + target.push((n % 128) | 128, n >> 7); + } + }; + + var sigToWasmTypes = (sig) => { + var typeNames = { + 'i': 'i32', + 'j': 'i64', + 'f': 'f32', + 'd': 'f64', + 'e': 'externref', + 'p': 'i32', + }; + var type = { + parameters: [], + results: sig[0] == 'v' ? [] : [typeNames[sig[0]]] + }; + for (var i = 1; i < sig.length; ++i) { + type.parameters.push(typeNames[sig[i]]); + } + return type; + }; + + var generateFuncType = (sig, target) => { + var sigRet = sig.slice(0, 1); + var sigParam = sig.slice(1); + var typeCodes = { + 'i': 0x7f, // i32 + 'p': 0x7f, // i32 + 'j': 0x7e, // i64 + 'f': 0x7d, // f32 + 'd': 0x7c, // f64 + 'e': 0x6f, // externref + }; + + // Parameters, length + signatures + target.push(0x60 /* form: func */); + uleb128Encode(sigParam.length, target); + for (var i = 0; i < sigParam.length; ++i) { + target.push(typeCodes[sigParam[i]]); + } + + // Return values, length + signatures + // With no multi-return in MVP, either 0 (void) or 1 (anything else) + if (sigRet == 'v') { + target.push(0x00); + } else { + target.push(0x01, typeCodes[sigRet]); + } + }; + var convertJsFunctionToWasm = (func, sig) => { + + // If the type reflection proposal is available, use the new + // "WebAssembly.Function" constructor. + // Otherwise, construct a minimal wasm module importing the JS function and + // re-exporting it. + if (typeof WebAssembly.Function == "function") { + return new WebAssembly.Function(sigToWasmTypes(sig), func); + } + + // The module is static, with the exception of the type section, which is + // generated based on the signature passed in. + var typeSectionBody = [ + 0x01, // count: 1 + ]; + generateFuncType(sig, typeSectionBody); + + // Rest of the module is static + var bytes = [ + 0x00, 0x61, 0x73, 0x6d, // magic ("\0asm") + 0x01, 0x00, 0x00, 0x00, // version: 1 + 0x01, // Type section code + ]; + // Write the overall length of the type section followed by the body + uleb128Encode(typeSectionBody.length, bytes); + bytes.push(...typeSectionBody); + + // The rest of the module is static + bytes.push( + 0x02, 0x07, // import section + // (import "e" "f" (func 0 (type 0))) + 0x01, 0x01, 0x65, 0x01, 0x66, 0x00, 0x00, + 0x07, 0x05, // export section + // (export "f" (func 0 (type 0))) + 0x01, 0x01, 0x66, 0x00, 0x00, + ); + + // We can compile this wasm module synchronously because it is very small. + // This accepts an import (at "e.f"), that it reroutes to an export (at "f") + var module = new WebAssembly.Module(new Uint8Array(bytes)); + var instance = new WebAssembly.Instance(module, { 'e': { 'f': func } }); + var wrappedFunc = instance.exports['f']; + return wrappedFunc; + }; + + var wasmTableMirror = []; + + var wasmTable; + var getWasmTableEntry = (funcPtr) => { + var func = wasmTableMirror[funcPtr]; + if (!func) { + if (funcPtr >= wasmTableMirror.length) wasmTableMirror.length = funcPtr + 1; + wasmTableMirror[funcPtr] = func = wasmTable.get(funcPtr); + } + return func; + }; + + var updateTableMap = (offset, count) => { + if (functionsInTableMap) { + for (var i = offset; i < offset + count; i++) { + var item = getWasmTableEntry(i); + // Ignore null values. + if (item) { + functionsInTableMap.set(item, i); + } + } + } + }; + + var functionsInTableMap; + + var getFunctionAddress = (func) => { + // First, create the map if this is the first use. + if (!functionsInTableMap) { + functionsInTableMap = new WeakMap(); + updateTableMap(0, wasmTable.length); + } + return functionsInTableMap.get(func) || 0; + }; + + + var freeTableIndexes = []; + + var getEmptyTableSlot = () => { + // Reuse a free index if there is one, otherwise grow. + if (freeTableIndexes.length) { + return freeTableIndexes.pop(); + } + // Grow the table + try { + wasmTable.grow(1); + } catch (err) { + if (!(err instanceof RangeError)) { + throw err; + } + throw 'Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.'; + } + return wasmTable.length - 1; + }; + + + + var setWasmTableEntry = (idx, func) => { + wasmTable.set(idx, func); + // With ABORT_ON_WASM_EXCEPTIONS wasmTable.get is overridden to return wrapped + // functions so we need to call it here to retrieve the potential wrapper correctly + // instead of just storing 'func' directly into wasmTableMirror + wasmTableMirror[idx] = wasmTable.get(idx); + }; + + /** @param {string=} sig */ + var addFunction = (func, sig) => { + // Check if the function is already in the table, to ensure each function + // gets a unique index. + var rtn = getFunctionAddress(func); + if (rtn) { + return rtn; + } + + // It's not in the table, add it now. + + var ret = getEmptyTableSlot(); + + // Set the new value. + try { + // Attempting to call this with JS function will cause of table.set() to fail + setWasmTableEntry(ret, func); + } catch (err) { + if (!(err instanceof TypeError)) { + throw err; + } + var wrapped = convertJsFunctionToWasm(func, sig); + setWasmTableEntry(ret, wrapped); + } + + functionsInTableMap.set(func, ret); + + return ret; + }; + + var handleException = (e) => { + // Certain exception types we do not treat as errors since they are used for + // internal control flow. + // 1. ExitStatus, which is thrown by exit() + // 2. "unwind", which is thrown by emscripten_unwind_to_js_event_loop() and others + // that wish to return to JS event loop. + if (e instanceof ExitStatus || e == 'unwind') { + return EXITSTATUS; + } + quit_(1, e); + }; + + + + var maybeExit = () => { + if (runtimeExited) { + return; + } + if (!keepRuntimeAlive()) { + try { + _exit(EXITSTATUS); + } catch (e) { + handleException(e); + } + } + }; + var callUserCallback = (func) => { + if (runtimeExited || ABORT) { + return; + } + try { + func(); + maybeExit(); + } catch (e) { + handleException(e); + } + }; + + var runtimeKeepalivePush = () => { + runtimeKeepaliveCounter += 1; + }; + + var runtimeKeepalivePop = () => { + runtimeKeepaliveCounter -= 1; + }; + /** @param {number=} timeout */ + var safeSetTimeout = (func, timeout) => { + runtimeKeepalivePush(); + return setTimeout(() => { + runtimeKeepalivePop(); + callUserCallback(func); + }, timeout); + }; + + + + + + + var FS_unlink = (path) => FS.unlink(path); + + FS.createPreloadedFile = FS_createPreloadedFile; + FS.staticInit();Module["FS_createPath"] = FS.createPath;Module["FS_createDataFile"] = FS.createDataFile;Module["FS_createPath"] = FS.createPath;Module["FS_createDataFile"] = FS.createDataFile;Module["FS_createPreloadedFile"] = FS.createPreloadedFile;Module["FS_unlink"] = FS.unlink;Module["FS_createLazyFile"] = FS.createLazyFile;Module["FS_createDevice"] = FS.createDevice;; +DOTNET.setup({ wasmEnableSIMD: true,wasmEnableEH: true,enableAotProfiler: false, enableDevToolsProfiler: false, enableLogProfiler: false, enableEventPipe: false, runAOTCompilation: true, wasmEnableThreads: false, gitHash: "8e0f8ed2312954727f8919d7d1c2f78b483b4ee7", });; +var wasmImports = { + /** @export */ + __assert_fail: ___assert_fail, + /** @export */ + __syscall_chmod: ___syscall_chmod, + /** @export */ + __syscall_connect: ___syscall_connect, + /** @export */ + __syscall_faccessat: ___syscall_faccessat, + /** @export */ + __syscall_fadvise64: ___syscall_fadvise64, + /** @export */ + __syscall_fchmod: ___syscall_fchmod, + /** @export */ + __syscall_fcntl64: ___syscall_fcntl64, + /** @export */ + __syscall_fstat64: ___syscall_fstat64, + /** @export */ + __syscall_fstatfs64: ___syscall_fstatfs64, + /** @export */ + __syscall_ftruncate64: ___syscall_ftruncate64, + /** @export */ + __syscall_getcwd: ___syscall_getcwd, + /** @export */ + __syscall_getdents64: ___syscall_getdents64, + /** @export */ + __syscall_ioctl: ___syscall_ioctl, + /** @export */ + __syscall_lstat64: ___syscall_lstat64, + /** @export */ + __syscall_mkdirat: ___syscall_mkdirat, + /** @export */ + __syscall_newfstatat: ___syscall_newfstatat, + /** @export */ + __syscall_openat: ___syscall_openat, + /** @export */ + __syscall_readlinkat: ___syscall_readlinkat, + /** @export */ + __syscall_renameat: ___syscall_renameat, + /** @export */ + __syscall_sendto: ___syscall_sendto, + /** @export */ + __syscall_socket: ___syscall_socket, + /** @export */ + __syscall_stat64: ___syscall_stat64, + /** @export */ + __syscall_unlinkat: ___syscall_unlinkat, + /** @export */ + __syscall_utimensat: ___syscall_utimensat, + /** @export */ + _emscripten_get_now_is_monotonic: __emscripten_get_now_is_monotonic, + /** @export */ + _gmtime_js: __gmtime_js, + /** @export */ + _localtime_js: __localtime_js, + /** @export */ + _mmap_js: __mmap_js, + /** @export */ + _msync_js: __msync_js, + /** @export */ + _munmap_js: __munmap_js, + /** @export */ + _tzset_js: __tzset_js, + /** @export */ + abort: _abort, + /** @export */ + emscripten_date_now: _emscripten_date_now, + /** @export */ + emscripten_force_exit: _emscripten_force_exit, + /** @export */ + emscripten_get_heap_max: _emscripten_get_heap_max, + /** @export */ + emscripten_get_now: _emscripten_get_now, + /** @export */ + emscripten_get_now_res: _emscripten_get_now_res, + /** @export */ + emscripten_resize_heap: _emscripten_resize_heap, + /** @export */ + environ_get: _environ_get, + /** @export */ + environ_sizes_get: _environ_sizes_get, + /** @export */ + exit: _exit, + /** @export */ + fd_close: _fd_close, + /** @export */ + fd_fdstat_get: _fd_fdstat_get, + /** @export */ + fd_pread: _fd_pread, + /** @export */ + fd_pwrite: _fd_pwrite, + /** @export */ + fd_read: _fd_read, + /** @export */ + fd_seek: _fd_seek, + /** @export */ + fd_sync: _fd_sync, + /** @export */ + fd_write: _fd_write, + /** @export */ + mono_interp_flush_jitcall_queue: _mono_interp_flush_jitcall_queue, + /** @export */ + mono_interp_invoke_wasm_jit_call_trampoline: _mono_interp_invoke_wasm_jit_call_trampoline, + /** @export */ + mono_interp_jit_wasm_entry_trampoline: _mono_interp_jit_wasm_entry_trampoline, + /** @export */ + mono_interp_jit_wasm_jit_call_trampoline: _mono_interp_jit_wasm_jit_call_trampoline, + /** @export */ + mono_interp_record_interp_entry: _mono_interp_record_interp_entry, + /** @export */ + mono_interp_tier_prepare_jiterpreter: _mono_interp_tier_prepare_jiterpreter, + /** @export */ + mono_wasm_bind_js_import_ST: _mono_wasm_bind_js_import_ST, + /** @export */ + mono_wasm_browser_entropy: _mono_wasm_browser_entropy, + /** @export */ + mono_wasm_cancel_promise: _mono_wasm_cancel_promise, + /** @export */ + mono_wasm_console_clear: _mono_wasm_console_clear, + /** @export */ + mono_wasm_free_method_data: _mono_wasm_free_method_data, + /** @export */ + mono_wasm_get_locale_info: _mono_wasm_get_locale_info, + /** @export */ + mono_wasm_invoke_js_function: _mono_wasm_invoke_js_function, + /** @export */ + mono_wasm_invoke_jsimport_ST: _mono_wasm_invoke_jsimport_ST, + /** @export */ + mono_wasm_process_current_pid: _mono_wasm_process_current_pid, + /** @export */ + mono_wasm_release_cs_owned_object: _mono_wasm_release_cs_owned_object, + /** @export */ + mono_wasm_resolve_or_reject_promise: _mono_wasm_resolve_or_reject_promise, + /** @export */ + mono_wasm_schedule_timer: _mono_wasm_schedule_timer, + /** @export */ + mono_wasm_set_entrypoint_breakpoint: _mono_wasm_set_entrypoint_breakpoint, + /** @export */ + mono_wasm_trace_logger: _mono_wasm_trace_logger, + /** @export */ + schedule_background_exec: _schedule_background_exec, + /** @export */ + strftime: _strftime +}; +var wasmExports = createWasm(); +var ___wasm_call_ctors = () => (___wasm_call_ctors = wasmExports['__wasm_call_ctors'])(); +var _mono_wasm_register_root = Module['_mono_wasm_register_root'] = (a0, a1, a2) => (_mono_wasm_register_root = Module['_mono_wasm_register_root'] = wasmExports['mono_wasm_register_root'])(a0, a1, a2); +var _mono_wasm_deregister_root = Module['_mono_wasm_deregister_root'] = (a0) => (_mono_wasm_deregister_root = Module['_mono_wasm_deregister_root'] = wasmExports['mono_wasm_deregister_root'])(a0); +var _mono_wasm_add_assembly = Module['_mono_wasm_add_assembly'] = (a0, a1, a2) => (_mono_wasm_add_assembly = Module['_mono_wasm_add_assembly'] = wasmExports['mono_wasm_add_assembly'])(a0, a1, a2); +var _mono_wasm_add_satellite_assembly = Module['_mono_wasm_add_satellite_assembly'] = (a0, a1, a2, a3) => (_mono_wasm_add_satellite_assembly = Module['_mono_wasm_add_satellite_assembly'] = wasmExports['mono_wasm_add_satellite_assembly'])(a0, a1, a2, a3); +var _malloc = Module['_malloc'] = (a0) => (_malloc = Module['_malloc'] = wasmExports['malloc'])(a0); +var _mono_wasm_setenv = Module['_mono_wasm_setenv'] = (a0, a1) => (_mono_wasm_setenv = Module['_mono_wasm_setenv'] = wasmExports['mono_wasm_setenv'])(a0, a1); +var _mono_wasm_getenv = Module['_mono_wasm_getenv'] = (a0) => (_mono_wasm_getenv = Module['_mono_wasm_getenv'] = wasmExports['mono_wasm_getenv'])(a0); +var _free = Module['_free'] = (a0) => (_free = Module['_free'] = wasmExports['free'])(a0); +var _mono_wasm_load_runtime = Module['_mono_wasm_load_runtime'] = (a0, a1, a2, a3) => (_mono_wasm_load_runtime = Module['_mono_wasm_load_runtime'] = wasmExports['mono_wasm_load_runtime'])(a0, a1, a2, a3); +var _mono_wasm_invoke_jsexport = Module['_mono_wasm_invoke_jsexport'] = (a0, a1) => (_mono_wasm_invoke_jsexport = Module['_mono_wasm_invoke_jsexport'] = wasmExports['mono_wasm_invoke_jsexport'])(a0, a1); +var _mono_wasm_string_from_utf16_ref = Module['_mono_wasm_string_from_utf16_ref'] = (a0, a1, a2) => (_mono_wasm_string_from_utf16_ref = Module['_mono_wasm_string_from_utf16_ref'] = wasmExports['mono_wasm_string_from_utf16_ref'])(a0, a1, a2); +var _mono_wasm_exec_regression = Module['_mono_wasm_exec_regression'] = (a0, a1) => (_mono_wasm_exec_regression = Module['_mono_wasm_exec_regression'] = wasmExports['mono_wasm_exec_regression'])(a0, a1); +var _mono_wasm_exit = Module['_mono_wasm_exit'] = (a0) => (_mono_wasm_exit = Module['_mono_wasm_exit'] = wasmExports['mono_wasm_exit'])(a0); +var _fflush = (a0) => (_fflush = wasmExports['fflush'])(a0); +var _mono_wasm_set_main_args = Module['_mono_wasm_set_main_args'] = (a0, a1) => (_mono_wasm_set_main_args = Module['_mono_wasm_set_main_args'] = wasmExports['mono_wasm_set_main_args'])(a0, a1); +var _mono_wasm_strdup = Module['_mono_wasm_strdup'] = (a0) => (_mono_wasm_strdup = Module['_mono_wasm_strdup'] = wasmExports['mono_wasm_strdup'])(a0); +var _mono_wasm_parse_runtime_options = Module['_mono_wasm_parse_runtime_options'] = (a0, a1) => (_mono_wasm_parse_runtime_options = Module['_mono_wasm_parse_runtime_options'] = wasmExports['mono_wasm_parse_runtime_options'])(a0, a1); +var _mono_wasm_intern_string_ref = Module['_mono_wasm_intern_string_ref'] = (a0) => (_mono_wasm_intern_string_ref = Module['_mono_wasm_intern_string_ref'] = wasmExports['mono_wasm_intern_string_ref'])(a0); +var _mono_wasm_string_get_data_ref = Module['_mono_wasm_string_get_data_ref'] = (a0, a1, a2, a3) => (_mono_wasm_string_get_data_ref = Module['_mono_wasm_string_get_data_ref'] = wasmExports['mono_wasm_string_get_data_ref'])(a0, a1, a2, a3); +var _mono_wasm_write_managed_pointer_unsafe = Module['_mono_wasm_write_managed_pointer_unsafe'] = (a0, a1) => (_mono_wasm_write_managed_pointer_unsafe = Module['_mono_wasm_write_managed_pointer_unsafe'] = wasmExports['mono_wasm_write_managed_pointer_unsafe'])(a0, a1); +var _mono_wasm_copy_managed_pointer = Module['_mono_wasm_copy_managed_pointer'] = (a0, a1) => (_mono_wasm_copy_managed_pointer = Module['_mono_wasm_copy_managed_pointer'] = wasmExports['mono_wasm_copy_managed_pointer'])(a0, a1); +var _mono_wasm_init_finalizer_thread = Module['_mono_wasm_init_finalizer_thread'] = () => (_mono_wasm_init_finalizer_thread = Module['_mono_wasm_init_finalizer_thread'] = wasmExports['mono_wasm_init_finalizer_thread'])(); +var _mono_wasm_i52_to_f64 = Module['_mono_wasm_i52_to_f64'] = (a0, a1) => (_mono_wasm_i52_to_f64 = Module['_mono_wasm_i52_to_f64'] = wasmExports['mono_wasm_i52_to_f64'])(a0, a1); +var _mono_wasm_u52_to_f64 = Module['_mono_wasm_u52_to_f64'] = (a0, a1) => (_mono_wasm_u52_to_f64 = Module['_mono_wasm_u52_to_f64'] = wasmExports['mono_wasm_u52_to_f64'])(a0, a1); +var _mono_wasm_f64_to_u52 = Module['_mono_wasm_f64_to_u52'] = (a0, a1) => (_mono_wasm_f64_to_u52 = Module['_mono_wasm_f64_to_u52'] = wasmExports['mono_wasm_f64_to_u52'])(a0, a1); +var _mono_wasm_f64_to_i52 = Module['_mono_wasm_f64_to_i52'] = (a0, a1) => (_mono_wasm_f64_to_i52 = Module['_mono_wasm_f64_to_i52'] = wasmExports['mono_wasm_f64_to_i52'])(a0, a1); +var _mono_wasm_method_get_full_name = Module['_mono_wasm_method_get_full_name'] = (a0) => (_mono_wasm_method_get_full_name = Module['_mono_wasm_method_get_full_name'] = wasmExports['mono_wasm_method_get_full_name'])(a0); +var _mono_wasm_method_get_name = Module['_mono_wasm_method_get_name'] = (a0) => (_mono_wasm_method_get_name = Module['_mono_wasm_method_get_name'] = wasmExports['mono_wasm_method_get_name'])(a0); +var _mono_wasm_method_get_name_ex = Module['_mono_wasm_method_get_name_ex'] = (a0) => (_mono_wasm_method_get_name_ex = Module['_mono_wasm_method_get_name_ex'] = wasmExports['mono_wasm_method_get_name_ex'])(a0); +var _mono_wasm_get_f32_unaligned = Module['_mono_wasm_get_f32_unaligned'] = (a0) => (_mono_wasm_get_f32_unaligned = Module['_mono_wasm_get_f32_unaligned'] = wasmExports['mono_wasm_get_f32_unaligned'])(a0); +var _mono_wasm_get_f64_unaligned = Module['_mono_wasm_get_f64_unaligned'] = (a0) => (_mono_wasm_get_f64_unaligned = Module['_mono_wasm_get_f64_unaligned'] = wasmExports['mono_wasm_get_f64_unaligned'])(a0); +var _mono_wasm_get_i32_unaligned = Module['_mono_wasm_get_i32_unaligned'] = (a0) => (_mono_wasm_get_i32_unaligned = Module['_mono_wasm_get_i32_unaligned'] = wasmExports['mono_wasm_get_i32_unaligned'])(a0); +var _mono_wasm_is_zero_page_reserved = Module['_mono_wasm_is_zero_page_reserved'] = () => (_mono_wasm_is_zero_page_reserved = Module['_mono_wasm_is_zero_page_reserved'] = wasmExports['mono_wasm_is_zero_page_reserved'])(); +var _mono_wasm_read_as_bool_or_null_unsafe = Module['_mono_wasm_read_as_bool_or_null_unsafe'] = (a0) => (_mono_wasm_read_as_bool_or_null_unsafe = Module['_mono_wasm_read_as_bool_or_null_unsafe'] = wasmExports['mono_wasm_read_as_bool_or_null_unsafe'])(a0); +var _mono_wasm_assembly_load = Module['_mono_wasm_assembly_load'] = (a0) => (_mono_wasm_assembly_load = Module['_mono_wasm_assembly_load'] = wasmExports['mono_wasm_assembly_load'])(a0); +var _mono_wasm_assembly_find_class = Module['_mono_wasm_assembly_find_class'] = (a0, a1, a2) => (_mono_wasm_assembly_find_class = Module['_mono_wasm_assembly_find_class'] = wasmExports['mono_wasm_assembly_find_class'])(a0, a1, a2); +var _mono_wasm_assembly_find_method = Module['_mono_wasm_assembly_find_method'] = (a0, a1, a2) => (_mono_wasm_assembly_find_method = Module['_mono_wasm_assembly_find_method'] = wasmExports['mono_wasm_assembly_find_method'])(a0, a1, a2); +var _pow = Module['_pow'] = (a0, a1) => (_pow = Module['_pow'] = wasmExports['pow'])(a0, a1); +var _memset = Module['_memset'] = (a0, a1, a2) => (_memset = Module['_memset'] = wasmExports['memset'])(a0, a1, a2); +var _mono_aot_Microsoft_AspNetCore_Components_get_method = Module['_mono_aot_Microsoft_AspNetCore_Components_get_method'] = (a0) => (_mono_aot_Microsoft_AspNetCore_Components_get_method = Module['_mono_aot_Microsoft_AspNetCore_Components_get_method'] = wasmExports['mono_aot_Microsoft_AspNetCore_Components_get_method'])(a0); +var _mono_aot_Microsoft_AspNetCore_Components_Web_get_method = Module['_mono_aot_Microsoft_AspNetCore_Components_Web_get_method'] = (a0) => (_mono_aot_Microsoft_AspNetCore_Components_Web_get_method = Module['_mono_aot_Microsoft_AspNetCore_Components_Web_get_method'] = wasmExports['mono_aot_Microsoft_AspNetCore_Components_Web_get_method'])(a0); +var _mono_aot_Microsoft_AspNetCore_Components_WebAssembly_get_method = Module['_mono_aot_Microsoft_AspNetCore_Components_WebAssembly_get_method'] = (a0) => (_mono_aot_Microsoft_AspNetCore_Components_WebAssembly_get_method = Module['_mono_aot_Microsoft_AspNetCore_Components_WebAssembly_get_method'] = wasmExports['mono_aot_Microsoft_AspNetCore_Components_WebAssembly_get_method'])(a0); +var _mono_aot_Microsoft_Extensions_Configuration_get_method = Module['_mono_aot_Microsoft_Extensions_Configuration_get_method'] = (a0) => (_mono_aot_Microsoft_Extensions_Configuration_get_method = Module['_mono_aot_Microsoft_Extensions_Configuration_get_method'] = wasmExports['mono_aot_Microsoft_Extensions_Configuration_get_method'])(a0); +var _mono_aot_Microsoft_Extensions_Configuration_Abstractions_get_method = Module['_mono_aot_Microsoft_Extensions_Configuration_Abstractions_get_method'] = (a0) => (_mono_aot_Microsoft_Extensions_Configuration_Abstractions_get_method = Module['_mono_aot_Microsoft_Extensions_Configuration_Abstractions_get_method'] = wasmExports['mono_aot_Microsoft_Extensions_Configuration_Abstractions_get_method'])(a0); +var _mono_aot_Microsoft_Extensions_Configuration_Json_get_method = Module['_mono_aot_Microsoft_Extensions_Configuration_Json_get_method'] = (a0) => (_mono_aot_Microsoft_Extensions_Configuration_Json_get_method = Module['_mono_aot_Microsoft_Extensions_Configuration_Json_get_method'] = wasmExports['mono_aot_Microsoft_Extensions_Configuration_Json_get_method'])(a0); +var _mono_aot_Microsoft_Extensions_DependencyInjection_get_method = Module['_mono_aot_Microsoft_Extensions_DependencyInjection_get_method'] = (a0) => (_mono_aot_Microsoft_Extensions_DependencyInjection_get_method = Module['_mono_aot_Microsoft_Extensions_DependencyInjection_get_method'] = wasmExports['mono_aot_Microsoft_Extensions_DependencyInjection_get_method'])(a0); +var _mono_aot_Microsoft_Extensions_DependencyInjection_Abstractions_get_method = Module['_mono_aot_Microsoft_Extensions_DependencyInjection_Abstractions_get_method'] = (a0) => (_mono_aot_Microsoft_Extensions_DependencyInjection_Abstractions_get_method = Module['_mono_aot_Microsoft_Extensions_DependencyInjection_Abstractions_get_method'] = wasmExports['mono_aot_Microsoft_Extensions_DependencyInjection_Abstractions_get_method'])(a0); +var _mono_aot_Microsoft_Extensions_Logging_get_method = Module['_mono_aot_Microsoft_Extensions_Logging_get_method'] = (a0) => (_mono_aot_Microsoft_Extensions_Logging_get_method = Module['_mono_aot_Microsoft_Extensions_Logging_get_method'] = wasmExports['mono_aot_Microsoft_Extensions_Logging_get_method'])(a0); +var _mono_aot_Microsoft_Extensions_Logging_Abstractions_get_method = Module['_mono_aot_Microsoft_Extensions_Logging_Abstractions_get_method'] = (a0) => (_mono_aot_Microsoft_Extensions_Logging_Abstractions_get_method = Module['_mono_aot_Microsoft_Extensions_Logging_Abstractions_get_method'] = wasmExports['mono_aot_Microsoft_Extensions_Logging_Abstractions_get_method'])(a0); +var _mono_aot_Microsoft_Extensions_Options_get_method = Module['_mono_aot_Microsoft_Extensions_Options_get_method'] = (a0) => (_mono_aot_Microsoft_Extensions_Options_get_method = Module['_mono_aot_Microsoft_Extensions_Options_get_method'] = wasmExports['mono_aot_Microsoft_Extensions_Options_get_method'])(a0); +var _mono_aot_Microsoft_Extensions_Primitives_get_method = Module['_mono_aot_Microsoft_Extensions_Primitives_get_method'] = (a0) => (_mono_aot_Microsoft_Extensions_Primitives_get_method = Module['_mono_aot_Microsoft_Extensions_Primitives_get_method'] = wasmExports['mono_aot_Microsoft_Extensions_Primitives_get_method'])(a0); +var _mono_aot_Microsoft_JSInterop_get_method = Module['_mono_aot_Microsoft_JSInterop_get_method'] = (a0) => (_mono_aot_Microsoft_JSInterop_get_method = Module['_mono_aot_Microsoft_JSInterop_get_method'] = wasmExports['mono_aot_Microsoft_JSInterop_get_method'])(a0); +var _mono_aot_SpawnDev_BackgroundServices_get_method = Module['_mono_aot_SpawnDev_BackgroundServices_get_method'] = (a0) => (_mono_aot_SpawnDev_BackgroundServices_get_method = Module['_mono_aot_SpawnDev_BackgroundServices_get_method'] = wasmExports['mono_aot_SpawnDev_BackgroundServices_get_method'])(a0); +var _mono_aot_SpawnDev_Blazor_BootRecovery_get_method = Module['_mono_aot_SpawnDev_Blazor_BootRecovery_get_method'] = (a0) => (_mono_aot_SpawnDev_Blazor_BootRecovery_get_method = Module['_mono_aot_SpawnDev_Blazor_BootRecovery_get_method'] = wasmExports['mono_aot_SpawnDev_Blazor_BootRecovery_get_method'])(a0); +var _sin = Module['_sin'] = (a0) => (_sin = Module['_sin'] = wasmExports['sin'])(a0); +var _sinf = Module['_sinf'] = (a0) => (_sinf = Module['_sinf'] = wasmExports['sinf'])(a0); +var _cosf = Module['_cosf'] = (a0) => (_cosf = Module['_cosf'] = wasmExports['cosf'])(a0); +var _cos = Module['_cos'] = (a0) => (_cos = Module['_cos'] = wasmExports['cos'])(a0); +var _log2f = Module['_log2f'] = (a0) => (_log2f = Module['_log2f'] = wasmExports['log2f'])(a0); +var _exp = Module['_exp'] = (a0) => (_exp = Module['_exp'] = wasmExports['exp'])(a0); +var _mono_aot_SpawnDev_Codecs_get_method = Module['_mono_aot_SpawnDev_Codecs_get_method'] = (a0) => (_mono_aot_SpawnDev_Codecs_get_method = Module['_mono_aot_SpawnDev_Codecs_get_method'] = wasmExports['mono_aot_SpawnDev_Codecs_get_method'])(a0); +var _mono_aot_SpawnDev_EBML_get_method = Module['_mono_aot_SpawnDev_EBML_get_method'] = (a0) => (_mono_aot_SpawnDev_EBML_get_method = Module['_mono_aot_SpawnDev_EBML_get_method'] = wasmExports['mono_aot_SpawnDev_EBML_get_method'])(a0); +var _powf = Module['_powf'] = (a0, a1) => (_powf = Module['_powf'] = wasmExports['powf'])(a0, a1); +var _mono_aot_SpawnDev_ILGPU_get_method = Module['_mono_aot_SpawnDev_ILGPU_get_method'] = (a0) => (_mono_aot_SpawnDev_ILGPU_get_method = Module['_mono_aot_SpawnDev_ILGPU_get_method'] = wasmExports['mono_aot_SpawnDev_ILGPU_get_method'])(a0); +var _log = Module['_log'] = (a0) => (_log = Module['_log'] = wasmExports['log'])(a0); +var _log10 = Module['_log10'] = (a0) => (_log10 = Module['_log10'] = wasmExports['log10'])(a0); +var _log10f = Module['_log10f'] = (a0) => (_log10f = Module['_log10f'] = wasmExports['log10f'])(a0); +var _log2 = Module['_log2'] = (a0) => (_log2 = Module['_log2'] = wasmExports['log2'])(a0); +var _expf = Module['_expf'] = (a0) => (_expf = Module['_expf'] = wasmExports['expf'])(a0); +var _fmaf = Module['_fmaf'] = (a0, a1, a2) => (_fmaf = Module['_fmaf'] = wasmExports['fmaf'])(a0, a1, a2); +var _mono_aot_ILGPU_Algorithms_get_method = Module['_mono_aot_ILGPU_Algorithms_get_method'] = (a0) => (_mono_aot_ILGPU_Algorithms_get_method = Module['_mono_aot_ILGPU_Algorithms_get_method'] = wasmExports['mono_aot_ILGPU_Algorithms_get_method'])(a0); +var _fma = Module['_fma'] = (a0, a1, a2) => (_fma = Module['_fma'] = wasmExports['fma'])(a0, a1, a2); +var _mono_aot_ILGPU_get_method = Module['_mono_aot_ILGPU_get_method'] = (a0) => (_mono_aot_ILGPU_get_method = Module['_mono_aot_ILGPU_get_method'] = wasmExports['mono_aot_ILGPU_get_method'])(a0); +var _mono_aot_SpawnDev_ILGPU_ML_get_method = Module['_mono_aot_SpawnDev_ILGPU_ML_get_method'] = (a0) => (_mono_aot_SpawnDev_ILGPU_ML_get_method = Module['_mono_aot_SpawnDev_ILGPU_ML_get_method'] = wasmExports['mono_aot_SpawnDev_ILGPU_ML_get_method'])(a0); +var _mono_aot_SpawnDev_MultiMedia_get_method = Module['_mono_aot_SpawnDev_MultiMedia_get_method'] = (a0) => (_mono_aot_SpawnDev_MultiMedia_get_method = Module['_mono_aot_SpawnDev_MultiMedia_get_method'] = wasmExports['mono_aot_SpawnDev_MultiMedia_get_method'])(a0); +var _mono_aot_SpawnDev_PatchStreams_get_method = Module['_mono_aot_SpawnDev_PatchStreams_get_method'] = (a0) => (_mono_aot_SpawnDev_PatchStreams_get_method = Module['_mono_aot_SpawnDev_PatchStreams_get_method'] = wasmExports['mono_aot_SpawnDev_PatchStreams_get_method'])(a0); +var _mono_aot_SpawnDev_Phonemizer_get_method = Module['_mono_aot_SpawnDev_Phonemizer_get_method'] = (a0) => (_mono_aot_SpawnDev_Phonemizer_get_method = Module['_mono_aot_SpawnDev_Phonemizer_get_method'] = wasmExports['mono_aot_SpawnDev_Phonemizer_get_method'])(a0); +var _mono_aot_SpawnDev_SpawnJS_get_method = Module['_mono_aot_SpawnDev_SpawnJS_get_method'] = (a0) => (_mono_aot_SpawnDev_SpawnJS_get_method = Module['_mono_aot_SpawnDev_SpawnJS_get_method'] = wasmExports['mono_aot_SpawnDev_SpawnJS_get_method'])(a0); +var _mono_aot_SpawnDev_SpawnJS_Blazor_get_method = Module['_mono_aot_SpawnDev_SpawnJS_Blazor_get_method'] = (a0) => (_mono_aot_SpawnDev_SpawnJS_Blazor_get_method = Module['_mono_aot_SpawnDev_SpawnJS_Blazor_get_method'] = wasmExports['mono_aot_SpawnDev_SpawnJS_Blazor_get_method'])(a0); +var _mono_aot_SpawnGen_Editor_get_method = Module['_mono_aot_SpawnGen_Editor_get_method'] = (a0) => (_mono_aot_SpawnGen_Editor_get_method = Module['_mono_aot_SpawnGen_Editor_get_method'] = wasmExports['mono_aot_SpawnGen_Editor_get_method'])(a0); +var _mono_aot_SpawnGen_Engine_get_method = Module['_mono_aot_SpawnGen_Engine_get_method'] = (a0) => (_mono_aot_SpawnGen_Engine_get_method = Module['_mono_aot_SpawnGen_Engine_get_method'] = wasmExports['mono_aot_SpawnGen_Engine_get_method'])(a0); +var _mono_aot_SpawnGen_Glsl_get_method = Module['_mono_aot_SpawnGen_Glsl_get_method'] = (a0) => (_mono_aot_SpawnGen_Glsl_get_method = Module['_mono_aot_SpawnGen_Glsl_get_method'] = wasmExports['mono_aot_SpawnGen_Glsl_get_method'])(a0); +var _mono_aot_SpawnGen_Nodes_Core_get_method = Module['_mono_aot_SpawnGen_Nodes_Core_get_method'] = (a0) => (_mono_aot_SpawnGen_Nodes_Core_get_method = Module['_mono_aot_SpawnGen_Nodes_Core_get_method'] = wasmExports['mono_aot_SpawnGen_Nodes_Core_get_method'])(a0); +var _mono_aot_SpawnGen_Nodes_ML_get_method = Module['_mono_aot_SpawnGen_Nodes_ML_get_method'] = (a0) => (_mono_aot_SpawnGen_Nodes_ML_get_method = Module['_mono_aot_SpawnGen_Nodes_ML_get_method'] = wasmExports['mono_aot_SpawnGen_Nodes_ML_get_method'])(a0); +var _mono_aot_SpawnGen_Runtime_get_method = Module['_mono_aot_SpawnGen_Runtime_get_method'] = (a0) => (_mono_aot_SpawnGen_Runtime_get_method = Module['_mono_aot_SpawnGen_Runtime_get_method'] = wasmExports['mono_aot_SpawnGen_Runtime_get_method'])(a0); +var _mono_aot_SpawnGen_Studio_get_method = Module['_mono_aot_SpawnGen_Studio_get_method'] = (a0) => (_mono_aot_SpawnGen_Studio_get_method = Module['_mono_aot_SpawnGen_Studio_get_method'] = wasmExports['mono_aot_SpawnGen_Studio_get_method'])(a0); +var _mono_aot_System_Collections_Concurrent_get_method = Module['_mono_aot_System_Collections_Concurrent_get_method'] = (a0) => (_mono_aot_System_Collections_Concurrent_get_method = Module['_mono_aot_System_Collections_Concurrent_get_method'] = wasmExports['mono_aot_System_Collections_Concurrent_get_method'])(a0); +var _mono_aot_System_Collections_Immutable_get_method = Module['_mono_aot_System_Collections_Immutable_get_method'] = (a0) => (_mono_aot_System_Collections_Immutable_get_method = Module['_mono_aot_System_Collections_Immutable_get_method'] = wasmExports['mono_aot_System_Collections_Immutable_get_method'])(a0); +var _mono_aot_System_Collections_NonGeneric_get_method = Module['_mono_aot_System_Collections_NonGeneric_get_method'] = (a0) => (_mono_aot_System_Collections_NonGeneric_get_method = Module['_mono_aot_System_Collections_NonGeneric_get_method'] = wasmExports['mono_aot_System_Collections_NonGeneric_get_method'])(a0); +var _mono_aot_System_Collections_Specialized_get_method = Module['_mono_aot_System_Collections_Specialized_get_method'] = (a0) => (_mono_aot_System_Collections_Specialized_get_method = Module['_mono_aot_System_Collections_Specialized_get_method'] = wasmExports['mono_aot_System_Collections_Specialized_get_method'])(a0); +var _mono_aot_System_Collections_get_method = Module['_mono_aot_System_Collections_get_method'] = (a0) => (_mono_aot_System_Collections_get_method = Module['_mono_aot_System_Collections_get_method'] = wasmExports['mono_aot_System_Collections_get_method'])(a0); +var _mono_aot_System_ComponentModel_Annotations_get_method = Module['_mono_aot_System_ComponentModel_Annotations_get_method'] = (a0) => (_mono_aot_System_ComponentModel_Annotations_get_method = Module['_mono_aot_System_ComponentModel_Annotations_get_method'] = wasmExports['mono_aot_System_ComponentModel_Annotations_get_method'])(a0); +var _mono_aot_System_ComponentModel_Primitives_get_method = Module['_mono_aot_System_ComponentModel_Primitives_get_method'] = (a0) => (_mono_aot_System_ComponentModel_Primitives_get_method = Module['_mono_aot_System_ComponentModel_Primitives_get_method'] = wasmExports['mono_aot_System_ComponentModel_Primitives_get_method'])(a0); +var _mono_aot_System_ComponentModel_TypeConverter_get_method = Module['_mono_aot_System_ComponentModel_TypeConverter_get_method'] = (a0) => (_mono_aot_System_ComponentModel_TypeConverter_get_method = Module['_mono_aot_System_ComponentModel_TypeConverter_get_method'] = wasmExports['mono_aot_System_ComponentModel_TypeConverter_get_method'])(a0); +var _mono_aot_System_ComponentModel_get_method = Module['_mono_aot_System_ComponentModel_get_method'] = (a0) => (_mono_aot_System_ComponentModel_get_method = Module['_mono_aot_System_ComponentModel_get_method'] = wasmExports['mono_aot_System_ComponentModel_get_method'])(a0); +var _mono_aot_System_Console_get_method = Module['_mono_aot_System_Console_get_method'] = (a0) => (_mono_aot_System_Console_get_method = Module['_mono_aot_System_Console_get_method'] = wasmExports['mono_aot_System_Console_get_method'])(a0); +var _mono_aot_System_Diagnostics_DiagnosticSource_get_method = Module['_mono_aot_System_Diagnostics_DiagnosticSource_get_method'] = (a0) => (_mono_aot_System_Diagnostics_DiagnosticSource_get_method = Module['_mono_aot_System_Diagnostics_DiagnosticSource_get_method'] = wasmExports['mono_aot_System_Diagnostics_DiagnosticSource_get_method'])(a0); +var _mono_aot_System_Diagnostics_TraceSource_get_method = Module['_mono_aot_System_Diagnostics_TraceSource_get_method'] = (a0) => (_mono_aot_System_Diagnostics_TraceSource_get_method = Module['_mono_aot_System_Diagnostics_TraceSource_get_method'] = wasmExports['mono_aot_System_Diagnostics_TraceSource_get_method'])(a0); +var _mono_aot_System_IO_Compression_get_method = Module['_mono_aot_System_IO_Compression_get_method'] = (a0) => (_mono_aot_System_IO_Compression_get_method = Module['_mono_aot_System_IO_Compression_get_method'] = wasmExports['mono_aot_System_IO_Compression_get_method'])(a0); +var _mono_aot_System_IO_MemoryMappedFiles_get_method = Module['_mono_aot_System_IO_MemoryMappedFiles_get_method'] = (a0) => (_mono_aot_System_IO_MemoryMappedFiles_get_method = Module['_mono_aot_System_IO_MemoryMappedFiles_get_method'] = wasmExports['mono_aot_System_IO_MemoryMappedFiles_get_method'])(a0); +var _mono_aot_System_IO_Pipelines_get_method = Module['_mono_aot_System_IO_Pipelines_get_method'] = (a0) => (_mono_aot_System_IO_Pipelines_get_method = Module['_mono_aot_System_IO_Pipelines_get_method'] = wasmExports['mono_aot_System_IO_Pipelines_get_method'])(a0); +var _mono_aot_System_Linq_get_method = Module['_mono_aot_System_Linq_get_method'] = (a0) => (_mono_aot_System_Linq_get_method = Module['_mono_aot_System_Linq_get_method'] = wasmExports['mono_aot_System_Linq_get_method'])(a0); +var _mono_aot_System_Memory_get_method = Module['_mono_aot_System_Memory_get_method'] = (a0) => (_mono_aot_System_Memory_get_method = Module['_mono_aot_System_Memory_get_method'] = wasmExports['mono_aot_System_Memory_get_method'])(a0); +var _mono_aot_System_Net_Http_Json_get_method = Module['_mono_aot_System_Net_Http_Json_get_method'] = (a0) => (_mono_aot_System_Net_Http_Json_get_method = Module['_mono_aot_System_Net_Http_Json_get_method'] = wasmExports['mono_aot_System_Net_Http_Json_get_method'])(a0); +var _mono_aot_System_Net_Http_get_method = Module['_mono_aot_System_Net_Http_get_method'] = (a0) => (_mono_aot_System_Net_Http_get_method = Module['_mono_aot_System_Net_Http_get_method'] = wasmExports['mono_aot_System_Net_Http_get_method'])(a0); +var _mono_aot_System_Net_Primitives_get_method = Module['_mono_aot_System_Net_Primitives_get_method'] = (a0) => (_mono_aot_System_Net_Primitives_get_method = Module['_mono_aot_System_Net_Primitives_get_method'] = wasmExports['mono_aot_System_Net_Primitives_get_method'])(a0); +var _mono_aot_System_Net_WebSockets_Client_get_method = Module['_mono_aot_System_Net_WebSockets_Client_get_method'] = (a0) => (_mono_aot_System_Net_WebSockets_Client_get_method = Module['_mono_aot_System_Net_WebSockets_Client_get_method'] = wasmExports['mono_aot_System_Net_WebSockets_Client_get_method'])(a0); +var _mono_aot_System_Net_WebSockets_get_method = Module['_mono_aot_System_Net_WebSockets_get_method'] = (a0) => (_mono_aot_System_Net_WebSockets_get_method = Module['_mono_aot_System_Net_WebSockets_get_method'] = wasmExports['mono_aot_System_Net_WebSockets_get_method'])(a0); +var _mono_aot_System_ObjectModel_get_method = Module['_mono_aot_System_ObjectModel_get_method'] = (a0) => (_mono_aot_System_ObjectModel_get_method = Module['_mono_aot_System_ObjectModel_get_method'] = wasmExports['mono_aot_System_ObjectModel_get_method'])(a0); +var _mono_aot_System_Private_Uri_get_method = Module['_mono_aot_System_Private_Uri_get_method'] = (a0) => (_mono_aot_System_Private_Uri_get_method = Module['_mono_aot_System_Private_Uri_get_method'] = wasmExports['mono_aot_System_Private_Uri_get_method'])(a0); +var _mono_aot_System_Private_Xml_Linq_get_method = Module['_mono_aot_System_Private_Xml_Linq_get_method'] = (a0) => (_mono_aot_System_Private_Xml_Linq_get_method = Module['_mono_aot_System_Private_Xml_Linq_get_method'] = wasmExports['mono_aot_System_Private_Xml_Linq_get_method'])(a0); +var _mono_aot_System_Private_Xml_get_method = Module['_mono_aot_System_Private_Xml_get_method'] = (a0) => (_mono_aot_System_Private_Xml_get_method = Module['_mono_aot_System_Private_Xml_get_method'] = wasmExports['mono_aot_System_Private_Xml_get_method'])(a0); +var _mono_aot_System_Reflection_Emit_ILGeneration_get_method = Module['_mono_aot_System_Reflection_Emit_ILGeneration_get_method'] = (a0) => (_mono_aot_System_Reflection_Emit_ILGeneration_get_method = Module['_mono_aot_System_Reflection_Emit_ILGeneration_get_method'] = wasmExports['mono_aot_System_Reflection_Emit_ILGeneration_get_method'])(a0); +var _mono_aot_System_Reflection_Emit_get_method = Module['_mono_aot_System_Reflection_Emit_get_method'] = (a0) => (_mono_aot_System_Reflection_Emit_get_method = Module['_mono_aot_System_Reflection_Emit_get_method'] = wasmExports['mono_aot_System_Reflection_Emit_get_method'])(a0); +var _mono_aot_System_Reflection_Metadata_get_method = Module['_mono_aot_System_Reflection_Metadata_get_method'] = (a0) => (_mono_aot_System_Reflection_Metadata_get_method = Module['_mono_aot_System_Reflection_Metadata_get_method'] = wasmExports['mono_aot_System_Reflection_Metadata_get_method'])(a0); +var _mono_aot_System_Reflection_Primitives_get_method = Module['_mono_aot_System_Reflection_Primitives_get_method'] = (a0) => (_mono_aot_System_Reflection_Primitives_get_method = Module['_mono_aot_System_Reflection_Primitives_get_method'] = wasmExports['mono_aot_System_Reflection_Primitives_get_method'])(a0); +var _mono_aot_System_Runtime_InteropServices_JavaScript_get_method = Module['_mono_aot_System_Runtime_InteropServices_JavaScript_get_method'] = (a0) => (_mono_aot_System_Runtime_InteropServices_JavaScript_get_method = Module['_mono_aot_System_Runtime_InteropServices_JavaScript_get_method'] = wasmExports['mono_aot_System_Runtime_InteropServices_JavaScript_get_method'])(a0); +var _mono_aot_System_Runtime_InteropServices_get_method = Module['_mono_aot_System_Runtime_InteropServices_get_method'] = (a0) => (_mono_aot_System_Runtime_InteropServices_get_method = Module['_mono_aot_System_Runtime_InteropServices_get_method'] = wasmExports['mono_aot_System_Runtime_InteropServices_get_method'])(a0); +var _mono_aot_System_Runtime_Loader_get_method = Module['_mono_aot_System_Runtime_Loader_get_method'] = (a0) => (_mono_aot_System_Runtime_Loader_get_method = Module['_mono_aot_System_Runtime_Loader_get_method'] = wasmExports['mono_aot_System_Runtime_Loader_get_method'])(a0); +var _mono_aot_System_Runtime_Numerics_get_method = Module['_mono_aot_System_Runtime_Numerics_get_method'] = (a0) => (_mono_aot_System_Runtime_Numerics_get_method = Module['_mono_aot_System_Runtime_Numerics_get_method'] = wasmExports['mono_aot_System_Runtime_Numerics_get_method'])(a0); +var _mono_aot_System_Runtime_get_method = Module['_mono_aot_System_Runtime_get_method'] = (a0) => (_mono_aot_System_Runtime_get_method = Module['_mono_aot_System_Runtime_get_method'] = wasmExports['mono_aot_System_Runtime_get_method'])(a0); +var _mono_aot_System_Security_Cryptography_get_method = Module['_mono_aot_System_Security_Cryptography_get_method'] = (a0) => (_mono_aot_System_Security_Cryptography_get_method = Module['_mono_aot_System_Security_Cryptography_get_method'] = wasmExports['mono_aot_System_Security_Cryptography_get_method'])(a0); +var _mono_aot_System_Text_Encoding_Extensions_get_method = Module['_mono_aot_System_Text_Encoding_Extensions_get_method'] = (a0) => (_mono_aot_System_Text_Encoding_Extensions_get_method = Module['_mono_aot_System_Text_Encoding_Extensions_get_method'] = wasmExports['mono_aot_System_Text_Encoding_Extensions_get_method'])(a0); +var _mono_aot_System_Text_Encodings_Web_get_method = Module['_mono_aot_System_Text_Encodings_Web_get_method'] = (a0) => (_mono_aot_System_Text_Encodings_Web_get_method = Module['_mono_aot_System_Text_Encodings_Web_get_method'] = wasmExports['mono_aot_System_Text_Encodings_Web_get_method'])(a0); +var _mono_aot_System_Text_Json_get_method = Module['_mono_aot_System_Text_Json_get_method'] = (a0) => (_mono_aot_System_Text_Json_get_method = Module['_mono_aot_System_Text_Json_get_method'] = wasmExports['mono_aot_System_Text_Json_get_method'])(a0); +var _mono_aot_System_Text_RegularExpressions_get_method = Module['_mono_aot_System_Text_RegularExpressions_get_method'] = (a0) => (_mono_aot_System_Text_RegularExpressions_get_method = Module['_mono_aot_System_Text_RegularExpressions_get_method'] = wasmExports['mono_aot_System_Text_RegularExpressions_get_method'])(a0); +var _mono_aot_System_Threading_Tasks_Parallel_get_method = Module['_mono_aot_System_Threading_Tasks_Parallel_get_method'] = (a0) => (_mono_aot_System_Threading_Tasks_Parallel_get_method = Module['_mono_aot_System_Threading_Tasks_Parallel_get_method'] = wasmExports['mono_aot_System_Threading_Tasks_Parallel_get_method'])(a0); +var _mono_aot_System_Threading_Thread_get_method = Module['_mono_aot_System_Threading_Thread_get_method'] = (a0) => (_mono_aot_System_Threading_Thread_get_method = Module['_mono_aot_System_Threading_Thread_get_method'] = wasmExports['mono_aot_System_Threading_Thread_get_method'])(a0); +var _mono_aot_System_Threading_get_method = Module['_mono_aot_System_Threading_get_method'] = (a0) => (_mono_aot_System_Threading_get_method = Module['_mono_aot_System_Threading_get_method'] = wasmExports['mono_aot_System_Threading_get_method'])(a0); +var _mono_aot_System_Xml_Linq_get_method = Module['_mono_aot_System_Xml_Linq_get_method'] = (a0) => (_mono_aot_System_Xml_Linq_get_method = Module['_mono_aot_System_Xml_Linq_get_method'] = wasmExports['mono_aot_System_Xml_Linq_get_method'])(a0); +var _mono_aot_System_Xml_XDocument_get_method = Module['_mono_aot_System_Xml_XDocument_get_method'] = (a0) => (_mono_aot_System_Xml_XDocument_get_method = Module['_mono_aot_System_Xml_XDocument_get_method'] = wasmExports['mono_aot_System_Xml_XDocument_get_method'])(a0); +var _mono_aot_System_get_method = Module['_mono_aot_System_get_method'] = (a0) => (_mono_aot_System_get_method = Module['_mono_aot_System_get_method'] = wasmExports['mono_aot_System_get_method'])(a0); +var _fmodf = Module['_fmodf'] = (a0, a1) => (_fmodf = Module['_fmodf'] = wasmExports['fmodf'])(a0, a1); +var _mono_aot_corlib_get_method = Module['_mono_aot_corlib_get_method'] = (a0) => (_mono_aot_corlib_get_method = Module['_mono_aot_corlib_get_method'] = wasmExports['mono_aot_corlib_get_method'])(a0); +var _mono_aot_aot_instances_get_method = Module['_mono_aot_aot_instances_get_method'] = (a0) => (_mono_aot_aot_instances_get_method = Module['_mono_aot_aot_instances_get_method'] = wasmExports['mono_aot_aot_instances_get_method'])(a0); +var _mono_wasm_send_dbg_command_with_parms = Module['_mono_wasm_send_dbg_command_with_parms'] = (a0, a1, a2, a3, a4, a5, a6) => (_mono_wasm_send_dbg_command_with_parms = Module['_mono_wasm_send_dbg_command_with_parms'] = wasmExports['mono_wasm_send_dbg_command_with_parms'])(a0, a1, a2, a3, a4, a5, a6); +var _mono_wasm_send_dbg_command = Module['_mono_wasm_send_dbg_command'] = (a0, a1, a2, a3, a4) => (_mono_wasm_send_dbg_command = Module['_mono_wasm_send_dbg_command'] = wasmExports['mono_wasm_send_dbg_command'])(a0, a1, a2, a3, a4); +var _mono_jiterp_register_jit_call_thunk = Module['_mono_jiterp_register_jit_call_thunk'] = (a0, a1) => (_mono_jiterp_register_jit_call_thunk = Module['_mono_jiterp_register_jit_call_thunk'] = wasmExports['mono_jiterp_register_jit_call_thunk'])(a0, a1); +var _mono_jiterp_stackval_to_data = Module['_mono_jiterp_stackval_to_data'] = (a0, a1, a2) => (_mono_jiterp_stackval_to_data = Module['_mono_jiterp_stackval_to_data'] = wasmExports['mono_jiterp_stackval_to_data'])(a0, a1, a2); +var _mono_jiterp_stackval_from_data = Module['_mono_jiterp_stackval_from_data'] = (a0, a1, a2) => (_mono_jiterp_stackval_from_data = Module['_mono_jiterp_stackval_from_data'] = wasmExports['mono_jiterp_stackval_from_data'])(a0, a1, a2); +var _mono_jiterp_get_arg_offset = Module['_mono_jiterp_get_arg_offset'] = (a0, a1, a2) => (_mono_jiterp_get_arg_offset = Module['_mono_jiterp_get_arg_offset'] = wasmExports['mono_jiterp_get_arg_offset'])(a0, a1, a2); +var _mono_jiterp_overflow_check_i4 = Module['_mono_jiterp_overflow_check_i4'] = (a0, a1, a2) => (_mono_jiterp_overflow_check_i4 = Module['_mono_jiterp_overflow_check_i4'] = wasmExports['mono_jiterp_overflow_check_i4'])(a0, a1, a2); +var _mono_jiterp_overflow_check_u4 = Module['_mono_jiterp_overflow_check_u4'] = (a0, a1, a2) => (_mono_jiterp_overflow_check_u4 = Module['_mono_jiterp_overflow_check_u4'] = wasmExports['mono_jiterp_overflow_check_u4'])(a0, a1, a2); +var _mono_jiterp_ld_delegate_method_ptr = Module['_mono_jiterp_ld_delegate_method_ptr'] = (a0, a1) => (_mono_jiterp_ld_delegate_method_ptr = Module['_mono_jiterp_ld_delegate_method_ptr'] = wasmExports['mono_jiterp_ld_delegate_method_ptr'])(a0, a1); +var _mono_jiterp_interp_entry = Module['_mono_jiterp_interp_entry'] = (a0, a1) => (_mono_jiterp_interp_entry = Module['_mono_jiterp_interp_entry'] = wasmExports['mono_jiterp_interp_entry'])(a0, a1); +var _fmod = Module['_fmod'] = (a0, a1) => (_fmod = Module['_fmod'] = wasmExports['fmod'])(a0, a1); +var _asin = Module['_asin'] = (a0) => (_asin = Module['_asin'] = wasmExports['asin'])(a0); +var _asinh = Module['_asinh'] = (a0) => (_asinh = Module['_asinh'] = wasmExports['asinh'])(a0); +var _acos = Module['_acos'] = (a0) => (_acos = Module['_acos'] = wasmExports['acos'])(a0); +var _acosh = Module['_acosh'] = (a0) => (_acosh = Module['_acosh'] = wasmExports['acosh'])(a0); +var _atan = Module['_atan'] = (a0) => (_atan = Module['_atan'] = wasmExports['atan'])(a0); +var _atanh = Module['_atanh'] = (a0) => (_atanh = Module['_atanh'] = wasmExports['atanh'])(a0); +var _cbrt = Module['_cbrt'] = (a0) => (_cbrt = Module['_cbrt'] = wasmExports['cbrt'])(a0); +var _cosh = Module['_cosh'] = (a0) => (_cosh = Module['_cosh'] = wasmExports['cosh'])(a0); +var _sinh = Module['_sinh'] = (a0) => (_sinh = Module['_sinh'] = wasmExports['sinh'])(a0); +var _tan = Module['_tan'] = (a0) => (_tan = Module['_tan'] = wasmExports['tan'])(a0); +var _tanh = Module['_tanh'] = (a0) => (_tanh = Module['_tanh'] = wasmExports['tanh'])(a0); +var _atan2 = Module['_atan2'] = (a0, a1) => (_atan2 = Module['_atan2'] = wasmExports['atan2'])(a0, a1); +var _asinf = Module['_asinf'] = (a0) => (_asinf = Module['_asinf'] = wasmExports['asinf'])(a0); +var _asinhf = Module['_asinhf'] = (a0) => (_asinhf = Module['_asinhf'] = wasmExports['asinhf'])(a0); +var _acosf = Module['_acosf'] = (a0) => (_acosf = Module['_acosf'] = wasmExports['acosf'])(a0); +var _acoshf = Module['_acoshf'] = (a0) => (_acoshf = Module['_acoshf'] = wasmExports['acoshf'])(a0); +var _atanf = Module['_atanf'] = (a0) => (_atanf = Module['_atanf'] = wasmExports['atanf'])(a0); +var _atanhf = Module['_atanhf'] = (a0) => (_atanhf = Module['_atanhf'] = wasmExports['atanhf'])(a0); +var _cbrtf = Module['_cbrtf'] = (a0) => (_cbrtf = Module['_cbrtf'] = wasmExports['cbrtf'])(a0); +var _coshf = Module['_coshf'] = (a0) => (_coshf = Module['_coshf'] = wasmExports['coshf'])(a0); +var _logf = Module['_logf'] = (a0) => (_logf = Module['_logf'] = wasmExports['logf'])(a0); +var _sinhf = Module['_sinhf'] = (a0) => (_sinhf = Module['_sinhf'] = wasmExports['sinhf'])(a0); +var _tanf = Module['_tanf'] = (a0) => (_tanf = Module['_tanf'] = wasmExports['tanf'])(a0); +var _tanhf = Module['_tanhf'] = (a0) => (_tanhf = Module['_tanhf'] = wasmExports['tanhf'])(a0); +var _atan2f = Module['_atan2f'] = (a0, a1) => (_atan2f = Module['_atan2f'] = wasmExports['atan2f'])(a0, a1); +var _mono_jiterp_get_polling_required_address = Module['_mono_jiterp_get_polling_required_address'] = () => (_mono_jiterp_get_polling_required_address = Module['_mono_jiterp_get_polling_required_address'] = wasmExports['mono_jiterp_get_polling_required_address'])(); +var _mono_jiterp_prof_enter = Module['_mono_jiterp_prof_enter'] = (a0, a1) => (_mono_jiterp_prof_enter = Module['_mono_jiterp_prof_enter'] = wasmExports['mono_jiterp_prof_enter'])(a0, a1); +var _mono_jiterp_prof_samplepoint = Module['_mono_jiterp_prof_samplepoint'] = (a0, a1) => (_mono_jiterp_prof_samplepoint = Module['_mono_jiterp_prof_samplepoint'] = wasmExports['mono_jiterp_prof_samplepoint'])(a0, a1); +var _mono_jiterp_prof_leave = Module['_mono_jiterp_prof_leave'] = (a0, a1) => (_mono_jiterp_prof_leave = Module['_mono_jiterp_prof_leave'] = wasmExports['mono_jiterp_prof_leave'])(a0, a1); +var _mono_jiterp_do_safepoint = Module['_mono_jiterp_do_safepoint'] = (a0, a1) => (_mono_jiterp_do_safepoint = Module['_mono_jiterp_do_safepoint'] = wasmExports['mono_jiterp_do_safepoint'])(a0, a1); +var _mono_jiterp_imethod_to_ftnptr = Module['_mono_jiterp_imethod_to_ftnptr'] = (a0) => (_mono_jiterp_imethod_to_ftnptr = Module['_mono_jiterp_imethod_to_ftnptr'] = wasmExports['mono_jiterp_imethod_to_ftnptr'])(a0); +var _mono_jiterp_enum_hasflag = Module['_mono_jiterp_enum_hasflag'] = (a0, a1, a2, a3) => (_mono_jiterp_enum_hasflag = Module['_mono_jiterp_enum_hasflag'] = wasmExports['mono_jiterp_enum_hasflag'])(a0, a1, a2, a3); +var _mono_jiterp_get_simd_intrinsic = Module['_mono_jiterp_get_simd_intrinsic'] = (a0, a1) => (_mono_jiterp_get_simd_intrinsic = Module['_mono_jiterp_get_simd_intrinsic'] = wasmExports['mono_jiterp_get_simd_intrinsic'])(a0, a1); +var _mono_jiterp_get_simd_opcode = Module['_mono_jiterp_get_simd_opcode'] = (a0, a1) => (_mono_jiterp_get_simd_opcode = Module['_mono_jiterp_get_simd_opcode'] = wasmExports['mono_jiterp_get_simd_opcode'])(a0, a1); +var _mono_jiterp_get_opcode_info = Module['_mono_jiterp_get_opcode_info'] = (a0, a1) => (_mono_jiterp_get_opcode_info = Module['_mono_jiterp_get_opcode_info'] = wasmExports['mono_jiterp_get_opcode_info'])(a0, a1); +var _mono_jiterp_placeholder_trace = Module['_mono_jiterp_placeholder_trace'] = (a0, a1, a2, a3) => (_mono_jiterp_placeholder_trace = Module['_mono_jiterp_placeholder_trace'] = wasmExports['mono_jiterp_placeholder_trace'])(a0, a1, a2, a3); +var _mono_jiterp_placeholder_jit_call = Module['_mono_jiterp_placeholder_jit_call'] = (a0, a1, a2, a3) => (_mono_jiterp_placeholder_jit_call = Module['_mono_jiterp_placeholder_jit_call'] = wasmExports['mono_jiterp_placeholder_jit_call'])(a0, a1, a2, a3); +var _mono_jiterp_get_interp_entry_func = Module['_mono_jiterp_get_interp_entry_func'] = (a0) => (_mono_jiterp_get_interp_entry_func = Module['_mono_jiterp_get_interp_entry_func'] = wasmExports['mono_jiterp_get_interp_entry_func'])(a0); +var _mono_jiterp_is_enabled = Module['_mono_jiterp_is_enabled'] = () => (_mono_jiterp_is_enabled = Module['_mono_jiterp_is_enabled'] = wasmExports['mono_jiterp_is_enabled'])(); +var _mono_jiterp_encode_leb64_ref = Module['_mono_jiterp_encode_leb64_ref'] = (a0, a1, a2) => (_mono_jiterp_encode_leb64_ref = Module['_mono_jiterp_encode_leb64_ref'] = wasmExports['mono_jiterp_encode_leb64_ref'])(a0, a1, a2); +var _mono_jiterp_encode_leb52 = Module['_mono_jiterp_encode_leb52'] = (a0, a1, a2) => (_mono_jiterp_encode_leb52 = Module['_mono_jiterp_encode_leb52'] = wasmExports['mono_jiterp_encode_leb52'])(a0, a1, a2); +var _mono_jiterp_encode_leb_signed_boundary = Module['_mono_jiterp_encode_leb_signed_boundary'] = (a0, a1, a2) => (_mono_jiterp_encode_leb_signed_boundary = Module['_mono_jiterp_encode_leb_signed_boundary'] = wasmExports['mono_jiterp_encode_leb_signed_boundary'])(a0, a1, a2); +var _mono_jiterp_increase_entry_count = Module['_mono_jiterp_increase_entry_count'] = (a0) => (_mono_jiterp_increase_entry_count = Module['_mono_jiterp_increase_entry_count'] = wasmExports['mono_jiterp_increase_entry_count'])(a0); +var _mono_jiterp_object_unbox = Module['_mono_jiterp_object_unbox'] = (a0) => (_mono_jiterp_object_unbox = Module['_mono_jiterp_object_unbox'] = wasmExports['mono_jiterp_object_unbox'])(a0); +var _mono_jiterp_type_is_byref = Module['_mono_jiterp_type_is_byref'] = (a0) => (_mono_jiterp_type_is_byref = Module['_mono_jiterp_type_is_byref'] = wasmExports['mono_jiterp_type_is_byref'])(a0); +var _mono_jiterp_value_copy = Module['_mono_jiterp_value_copy'] = (a0, a1, a2) => (_mono_jiterp_value_copy = Module['_mono_jiterp_value_copy'] = wasmExports['mono_jiterp_value_copy'])(a0, a1, a2); +var _mono_jiterp_try_newobj_inlined = Module['_mono_jiterp_try_newobj_inlined'] = (a0, a1) => (_mono_jiterp_try_newobj_inlined = Module['_mono_jiterp_try_newobj_inlined'] = wasmExports['mono_jiterp_try_newobj_inlined'])(a0, a1); +var _mono_jiterp_try_newstr = Module['_mono_jiterp_try_newstr'] = (a0, a1) => (_mono_jiterp_try_newstr = Module['_mono_jiterp_try_newstr'] = wasmExports['mono_jiterp_try_newstr'])(a0, a1); +var _mono_jiterp_try_newarr = Module['_mono_jiterp_try_newarr'] = (a0, a1, a2) => (_mono_jiterp_try_newarr = Module['_mono_jiterp_try_newarr'] = wasmExports['mono_jiterp_try_newarr'])(a0, a1, a2); +var _mono_jiterp_gettype_ref = Module['_mono_jiterp_gettype_ref'] = (a0, a1) => (_mono_jiterp_gettype_ref = Module['_mono_jiterp_gettype_ref'] = wasmExports['mono_jiterp_gettype_ref'])(a0, a1); +var _mono_jiterp_has_parent_fast = Module['_mono_jiterp_has_parent_fast'] = (a0, a1) => (_mono_jiterp_has_parent_fast = Module['_mono_jiterp_has_parent_fast'] = wasmExports['mono_jiterp_has_parent_fast'])(a0, a1); +var _mono_jiterp_implements_interface = Module['_mono_jiterp_implements_interface'] = (a0, a1) => (_mono_jiterp_implements_interface = Module['_mono_jiterp_implements_interface'] = wasmExports['mono_jiterp_implements_interface'])(a0, a1); +var _mono_jiterp_is_special_interface = Module['_mono_jiterp_is_special_interface'] = (a0) => (_mono_jiterp_is_special_interface = Module['_mono_jiterp_is_special_interface'] = wasmExports['mono_jiterp_is_special_interface'])(a0); +var _mono_jiterp_implements_special_interface = Module['_mono_jiterp_implements_special_interface'] = (a0, a1, a2) => (_mono_jiterp_implements_special_interface = Module['_mono_jiterp_implements_special_interface'] = wasmExports['mono_jiterp_implements_special_interface'])(a0, a1, a2); +var _mono_jiterp_cast_v2 = Module['_mono_jiterp_cast_v2'] = (a0, a1, a2, a3) => (_mono_jiterp_cast_v2 = Module['_mono_jiterp_cast_v2'] = wasmExports['mono_jiterp_cast_v2'])(a0, a1, a2, a3); +var _mono_jiterp_localloc = Module['_mono_jiterp_localloc'] = (a0, a1, a2) => (_mono_jiterp_localloc = Module['_mono_jiterp_localloc'] = wasmExports['mono_jiterp_localloc'])(a0, a1, a2); +var _mono_jiterp_ldtsflda = Module['_mono_jiterp_ldtsflda'] = (a0, a1) => (_mono_jiterp_ldtsflda = Module['_mono_jiterp_ldtsflda'] = wasmExports['mono_jiterp_ldtsflda'])(a0, a1); +var _mono_jiterp_box_ref = Module['_mono_jiterp_box_ref'] = (a0, a1, a2, a3) => (_mono_jiterp_box_ref = Module['_mono_jiterp_box_ref'] = wasmExports['mono_jiterp_box_ref'])(a0, a1, a2, a3); +var _mono_jiterp_conv = Module['_mono_jiterp_conv'] = (a0, a1, a2) => (_mono_jiterp_conv = Module['_mono_jiterp_conv'] = wasmExports['mono_jiterp_conv'])(a0, a1, a2); +var _mono_jiterp_relop_fp = Module['_mono_jiterp_relop_fp'] = (a0, a1, a2) => (_mono_jiterp_relop_fp = Module['_mono_jiterp_relop_fp'] = wasmExports['mono_jiterp_relop_fp'])(a0, a1, a2); +var _mono_jiterp_get_size_of_stackval = Module['_mono_jiterp_get_size_of_stackval'] = () => (_mono_jiterp_get_size_of_stackval = Module['_mono_jiterp_get_size_of_stackval'] = wasmExports['mono_jiterp_get_size_of_stackval'])(); +var _mono_jiterp_type_get_raw_value_size = Module['_mono_jiterp_type_get_raw_value_size'] = (a0) => (_mono_jiterp_type_get_raw_value_size = Module['_mono_jiterp_type_get_raw_value_size'] = wasmExports['mono_jiterp_type_get_raw_value_size'])(a0); +var _mono_jiterp_trace_bailout = Module['_mono_jiterp_trace_bailout'] = (a0) => (_mono_jiterp_trace_bailout = Module['_mono_jiterp_trace_bailout'] = wasmExports['mono_jiterp_trace_bailout'])(a0); +var _mono_jiterp_get_trace_bailout_count = Module['_mono_jiterp_get_trace_bailout_count'] = (a0) => (_mono_jiterp_get_trace_bailout_count = Module['_mono_jiterp_get_trace_bailout_count'] = wasmExports['mono_jiterp_get_trace_bailout_count'])(a0); +var _mono_jiterp_adjust_abort_count = Module['_mono_jiterp_adjust_abort_count'] = (a0, a1) => (_mono_jiterp_adjust_abort_count = Module['_mono_jiterp_adjust_abort_count'] = wasmExports['mono_jiterp_adjust_abort_count'])(a0, a1); +var _mono_jiterp_interp_entry_prologue = Module['_mono_jiterp_interp_entry_prologue'] = (a0, a1) => (_mono_jiterp_interp_entry_prologue = Module['_mono_jiterp_interp_entry_prologue'] = wasmExports['mono_jiterp_interp_entry_prologue'])(a0, a1); +var _mono_jiterp_get_opcode_value_table_entry = Module['_mono_jiterp_get_opcode_value_table_entry'] = (a0) => (_mono_jiterp_get_opcode_value_table_entry = Module['_mono_jiterp_get_opcode_value_table_entry'] = wasmExports['mono_jiterp_get_opcode_value_table_entry'])(a0); +var _mono_jiterp_get_trace_hit_count = Module['_mono_jiterp_get_trace_hit_count'] = (a0) => (_mono_jiterp_get_trace_hit_count = Module['_mono_jiterp_get_trace_hit_count'] = wasmExports['mono_jiterp_get_trace_hit_count'])(a0); +var _mono_jiterp_parse_option = Module['_mono_jiterp_parse_option'] = (a0) => (_mono_jiterp_parse_option = Module['_mono_jiterp_parse_option'] = wasmExports['mono_jiterp_parse_option'])(a0); +var _mono_jiterp_get_options_version = Module['_mono_jiterp_get_options_version'] = () => (_mono_jiterp_get_options_version = Module['_mono_jiterp_get_options_version'] = wasmExports['mono_jiterp_get_options_version'])(); +var _mono_jiterp_get_options_as_json = Module['_mono_jiterp_get_options_as_json'] = () => (_mono_jiterp_get_options_as_json = Module['_mono_jiterp_get_options_as_json'] = wasmExports['mono_jiterp_get_options_as_json'])(); +var _mono_jiterp_get_option_as_int = Module['_mono_jiterp_get_option_as_int'] = (a0) => (_mono_jiterp_get_option_as_int = Module['_mono_jiterp_get_option_as_int'] = wasmExports['mono_jiterp_get_option_as_int'])(a0); +var _mono_jiterp_object_has_component_size = Module['_mono_jiterp_object_has_component_size'] = (a0) => (_mono_jiterp_object_has_component_size = Module['_mono_jiterp_object_has_component_size'] = wasmExports['mono_jiterp_object_has_component_size'])(a0); +var _mono_jiterp_get_hashcode = Module['_mono_jiterp_get_hashcode'] = (a0) => (_mono_jiterp_get_hashcode = Module['_mono_jiterp_get_hashcode'] = wasmExports['mono_jiterp_get_hashcode'])(a0); +var _mono_jiterp_try_get_hashcode = Module['_mono_jiterp_try_get_hashcode'] = (a0) => (_mono_jiterp_try_get_hashcode = Module['_mono_jiterp_try_get_hashcode'] = wasmExports['mono_jiterp_try_get_hashcode'])(a0); +var _mono_jiterp_get_signature_has_this = Module['_mono_jiterp_get_signature_has_this'] = (a0) => (_mono_jiterp_get_signature_has_this = Module['_mono_jiterp_get_signature_has_this'] = wasmExports['mono_jiterp_get_signature_has_this'])(a0); +var _mono_jiterp_get_signature_return_type = Module['_mono_jiterp_get_signature_return_type'] = (a0) => (_mono_jiterp_get_signature_return_type = Module['_mono_jiterp_get_signature_return_type'] = wasmExports['mono_jiterp_get_signature_return_type'])(a0); +var _mono_jiterp_get_signature_param_count = Module['_mono_jiterp_get_signature_param_count'] = (a0) => (_mono_jiterp_get_signature_param_count = Module['_mono_jiterp_get_signature_param_count'] = wasmExports['mono_jiterp_get_signature_param_count'])(a0); +var _mono_jiterp_get_signature_params = Module['_mono_jiterp_get_signature_params'] = (a0) => (_mono_jiterp_get_signature_params = Module['_mono_jiterp_get_signature_params'] = wasmExports['mono_jiterp_get_signature_params'])(a0); +var _mono_jiterp_type_to_ldind = Module['_mono_jiterp_type_to_ldind'] = (a0) => (_mono_jiterp_type_to_ldind = Module['_mono_jiterp_type_to_ldind'] = wasmExports['mono_jiterp_type_to_ldind'])(a0); +var _mono_jiterp_type_to_stind = Module['_mono_jiterp_type_to_stind'] = (a0) => (_mono_jiterp_type_to_stind = Module['_mono_jiterp_type_to_stind'] = wasmExports['mono_jiterp_type_to_stind'])(a0); +var _mono_jiterp_get_array_rank = Module['_mono_jiterp_get_array_rank'] = (a0, a1) => (_mono_jiterp_get_array_rank = Module['_mono_jiterp_get_array_rank'] = wasmExports['mono_jiterp_get_array_rank'])(a0, a1); +var _mono_jiterp_get_array_element_size = Module['_mono_jiterp_get_array_element_size'] = (a0, a1) => (_mono_jiterp_get_array_element_size = Module['_mono_jiterp_get_array_element_size'] = wasmExports['mono_jiterp_get_array_element_size'])(a0, a1); +var _mono_jiterp_set_object_field = Module['_mono_jiterp_set_object_field'] = (a0, a1, a2, a3) => (_mono_jiterp_set_object_field = Module['_mono_jiterp_set_object_field'] = wasmExports['mono_jiterp_set_object_field'])(a0, a1, a2, a3); +var _mono_jiterp_debug_count = Module['_mono_jiterp_debug_count'] = () => (_mono_jiterp_debug_count = Module['_mono_jiterp_debug_count'] = wasmExports['mono_jiterp_debug_count'])(); +var _mono_jiterp_stelem_ref = Module['_mono_jiterp_stelem_ref'] = (a0, a1, a2) => (_mono_jiterp_stelem_ref = Module['_mono_jiterp_stelem_ref'] = wasmExports['mono_jiterp_stelem_ref'])(a0, a1, a2); +var _mono_jiterp_get_member_offset = Module['_mono_jiterp_get_member_offset'] = (a0) => (_mono_jiterp_get_member_offset = Module['_mono_jiterp_get_member_offset'] = wasmExports['mono_jiterp_get_member_offset'])(a0); +var _mono_jiterp_get_counter = Module['_mono_jiterp_get_counter'] = (a0) => (_mono_jiterp_get_counter = Module['_mono_jiterp_get_counter'] = wasmExports['mono_jiterp_get_counter'])(a0); +var _mono_jiterp_modify_counter = Module['_mono_jiterp_modify_counter'] = (a0, a1) => (_mono_jiterp_modify_counter = Module['_mono_jiterp_modify_counter'] = wasmExports['mono_jiterp_modify_counter'])(a0, a1); +var _mono_jiterp_write_number_unaligned = Module['_mono_jiterp_write_number_unaligned'] = (a0, a1, a2) => (_mono_jiterp_write_number_unaligned = Module['_mono_jiterp_write_number_unaligned'] = wasmExports['mono_jiterp_write_number_unaligned'])(a0, a1, a2); +var _mono_jiterp_get_rejected_trace_count = Module['_mono_jiterp_get_rejected_trace_count'] = () => (_mono_jiterp_get_rejected_trace_count = Module['_mono_jiterp_get_rejected_trace_count'] = wasmExports['mono_jiterp_get_rejected_trace_count'])(); +var _mono_jiterp_boost_back_branch_target = Module['_mono_jiterp_boost_back_branch_target'] = (a0) => (_mono_jiterp_boost_back_branch_target = Module['_mono_jiterp_boost_back_branch_target'] = wasmExports['mono_jiterp_boost_back_branch_target'])(a0); +var _mono_jiterp_is_imethod_var_address_taken = Module['_mono_jiterp_is_imethod_var_address_taken'] = (a0, a1) => (_mono_jiterp_is_imethod_var_address_taken = Module['_mono_jiterp_is_imethod_var_address_taken'] = wasmExports['mono_jiterp_is_imethod_var_address_taken'])(a0, a1); +var _mono_jiterp_initialize_table = Module['_mono_jiterp_initialize_table'] = (a0, a1, a2) => (_mono_jiterp_initialize_table = Module['_mono_jiterp_initialize_table'] = wasmExports['mono_jiterp_initialize_table'])(a0, a1, a2); +var _mono_jiterp_allocate_table_entry = Module['_mono_jiterp_allocate_table_entry'] = (a0) => (_mono_jiterp_allocate_table_entry = Module['_mono_jiterp_allocate_table_entry'] = wasmExports['mono_jiterp_allocate_table_entry'])(a0); +var _mono_jiterp_tlqueue_next = Module['_mono_jiterp_tlqueue_next'] = (a0) => (_mono_jiterp_tlqueue_next = Module['_mono_jiterp_tlqueue_next'] = wasmExports['mono_jiterp_tlqueue_next'])(a0); +var _mono_jiterp_tlqueue_add = Module['_mono_jiterp_tlqueue_add'] = (a0, a1) => (_mono_jiterp_tlqueue_add = Module['_mono_jiterp_tlqueue_add'] = wasmExports['mono_jiterp_tlqueue_add'])(a0, a1); +var _mono_jiterp_tlqueue_clear = Module['_mono_jiterp_tlqueue_clear'] = (a0) => (_mono_jiterp_tlqueue_clear = Module['_mono_jiterp_tlqueue_clear'] = wasmExports['mono_jiterp_tlqueue_clear'])(a0); +var _mono_interp_pgo_load_table = Module['_mono_interp_pgo_load_table'] = (a0, a1) => (_mono_interp_pgo_load_table = Module['_mono_interp_pgo_load_table'] = wasmExports['mono_interp_pgo_load_table'])(a0, a1); +var _mono_interp_pgo_save_table = Module['_mono_interp_pgo_save_table'] = (a0, a1) => (_mono_interp_pgo_save_table = Module['_mono_interp_pgo_save_table'] = wasmExports['mono_interp_pgo_save_table'])(a0, a1); +var _mono_llvm_cpp_catch_exception = Module['_mono_llvm_cpp_catch_exception'] = (a0, a1, a2) => (_mono_llvm_cpp_catch_exception = Module['_mono_llvm_cpp_catch_exception'] = wasmExports['mono_llvm_cpp_catch_exception'])(a0, a1, a2); +var _mono_jiterp_begin_catch = Module['_mono_jiterp_begin_catch'] = (a0) => (_mono_jiterp_begin_catch = Module['_mono_jiterp_begin_catch'] = wasmExports['mono_jiterp_begin_catch'])(a0); +var _mono_jiterp_end_catch = Module['_mono_jiterp_end_catch'] = () => (_mono_jiterp_end_catch = Module['_mono_jiterp_end_catch'] = wasmExports['mono_jiterp_end_catch'])(); +var _sbrk = Module['_sbrk'] = (a0) => (_sbrk = Module['_sbrk'] = wasmExports['sbrk'])(a0); +var _posix_memalign = Module['_posix_memalign'] = (a0, a1, a2) => (_posix_memalign = Module['_posix_memalign'] = wasmExports['posix_memalign'])(a0, a1, a2); +var _mono_background_exec = Module['_mono_background_exec'] = () => (_mono_background_exec = Module['_mono_background_exec'] = wasmExports['mono_background_exec'])(); +var _mono_wasm_ds_exec = Module['_mono_wasm_ds_exec'] = () => (_mono_wasm_ds_exec = Module['_mono_wasm_ds_exec'] = wasmExports['mono_wasm_ds_exec'])(); +var _mono_wasm_gc_lock = Module['_mono_wasm_gc_lock'] = () => (_mono_wasm_gc_lock = Module['_mono_wasm_gc_lock'] = wasmExports['mono_wasm_gc_lock'])(); +var _mono_wasm_gc_unlock = Module['_mono_wasm_gc_unlock'] = () => (_mono_wasm_gc_unlock = Module['_mono_wasm_gc_unlock'] = wasmExports['mono_wasm_gc_unlock'])(); +var _mono_print_method_from_ip = Module['_mono_print_method_from_ip'] = (a0) => (_mono_print_method_from_ip = Module['_mono_print_method_from_ip'] = wasmExports['mono_print_method_from_ip'])(a0); +var _mono_wasm_execute_timer = Module['_mono_wasm_execute_timer'] = () => (_mono_wasm_execute_timer = Module['_mono_wasm_execute_timer'] = wasmExports['mono_wasm_execute_timer'])(); +var _mono_wasm_load_icu_data = Module['_mono_wasm_load_icu_data'] = (a0) => (_mono_wasm_load_icu_data = Module['_mono_wasm_load_icu_data'] = wasmExports['mono_wasm_load_icu_data'])(a0); +var ___funcs_on_exit = () => (___funcs_on_exit = wasmExports['__funcs_on_exit'])(); +var _htons = Module['_htons'] = (a0) => (_htons = Module['_htons'] = wasmExports['htons'])(a0); +var _emscripten_builtin_memalign = (a0, a1) => (_emscripten_builtin_memalign = wasmExports['emscripten_builtin_memalign'])(a0, a1); +var _ntohs = Module['_ntohs'] = (a0) => (_ntohs = Module['_ntohs'] = wasmExports['ntohs'])(a0); +var _memalign = Module['_memalign'] = (a0, a1) => (_memalign = Module['_memalign'] = wasmExports['memalign'])(a0, a1); +var ___trap = () => (___trap = wasmExports['__trap'])(); +var stackSave = Module['stackSave'] = () => (stackSave = Module['stackSave'] = wasmExports['stackSave'])(); +var stackRestore = Module['stackRestore'] = (a0) => (stackRestore = Module['stackRestore'] = wasmExports['stackRestore'])(a0); +var stackAlloc = Module['stackAlloc'] = (a0) => (stackAlloc = Module['stackAlloc'] = wasmExports['stackAlloc'])(a0); + + +// include: postamble.js +// === Auto-generated postamble setup entry stuff === + +Module['addRunDependency'] = addRunDependency; +Module['removeRunDependency'] = removeRunDependency; +Module['FS_createPath'] = FS.createPath; +Module['FS_createLazyFile'] = FS.createLazyFile; +Module['FS_createDevice'] = FS.createDevice; +Module['out'] = out; +Module['err'] = err; +Module['abort'] = abort; +Module['wasmExports'] = wasmExports; +Module['runtimeKeepalivePush'] = runtimeKeepalivePush; +Module['runtimeKeepalivePop'] = runtimeKeepalivePop; +Module['maybeExit'] = maybeExit; +Module['ccall'] = ccall; +Module['cwrap'] = cwrap; +Module['addFunction'] = addFunction; +Module['setValue'] = setValue; +Module['getValue'] = getValue; +Module['UTF8ArrayToString'] = UTF8ArrayToString; +Module['UTF8ToString'] = UTF8ToString; +Module['stringToUTF8Array'] = stringToUTF8Array; +Module['lengthBytesUTF8'] = lengthBytesUTF8; +Module['safeSetTimeout'] = safeSetTimeout; +Module['FS_createPreloadedFile'] = FS.createPreloadedFile; +Module['FS'] = FS; +Module['FS_createDataFile'] = FS.createDataFile; +Module['FS_unlink'] = FS.unlink; + + +var calledRun; + +dependenciesFulfilled = function runCaller() { + // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false) + if (!calledRun) run(); + if (!calledRun) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled +}; + +function run() { + + if (runDependencies > 0) { + return; + } + + preRun(); + + // a preRun added a dependency, run will be called later + if (runDependencies > 0) { + return; + } + + function doRun() { + // run may have just been called through dependencies being fulfilled just in this very frame, + // or while the async setStatus time below was happening + if (calledRun) return; + calledRun = true; + Module['calledRun'] = true; + + if (ABORT) return; + + initRuntime(); + + readyPromiseResolve(Module); + if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized'](); + + postRun(); + } + + if (Module['setStatus']) { + Module['setStatus']('Running...'); + setTimeout(function() { + setTimeout(function() { + Module['setStatus'](''); + }, 1); + doRun(); + }, 1); + } else + { + doRun(); + } +} + +if (Module['preInit']) { + if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']]; + while (Module['preInit'].length > 0) { + Module['preInit'].pop()(); + } +} + +run(); + +// end include: postamble.js + + + + return moduleArg.ready +} +); +})(); +export default createDotnetRuntime; +var fetch = fetch || undefined; var require = require || undefined; var __dirname = __dirname || ''; var _nativeModuleLoaded = false; diff --git a/_framework/dotnet.native.xu8yur87de.wasm.gz b/_framework/dotnet.native.xu8yur87de.wasm.gz new file mode 100644 index 0000000000000000000000000000000000000000..0caa1f3e5492fda7b394b2a4714f21a70c7d5ae9 --- /dev/null +++ b/_framework/dotnet.native.xu8yur87de.wasm.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:527cdc9af49730a4cc66e16132265c4a9273bb42e91a256471c241a660a0775a +size 23638175 diff --git a/_framework/dotnet.runtime.v2rwe8u38b.js b/_framework/dotnet.runtime.v2rwe8u38b.js new file mode 100644 index 0000000000000000000000000000000000000000..0878b31f7fa54c0d7681d238217a4b7034db69e2 --- /dev/null +++ b/_framework/dotnet.runtime.v2rwe8u38b.js @@ -0,0 +1,4 @@ +//! Licensed to the .NET Foundation under one or more agreements. +//! The .NET Foundation licenses this file to you under the MIT license. +var e="10.0.15",t="Release",n=!1;const r=[[!0,"mono_wasm_register_root","number",["number","number","string"]],[!0,"mono_wasm_deregister_root",null,["number"]],[!0,"mono_wasm_string_get_data_ref",null,["number","number","number","number"]],[!0,"mono_wasm_set_is_debugger_attached","void",["bool"]],[!0,"mono_wasm_send_dbg_command","bool",["number","number","number","number","number"]],[!0,"mono_wasm_send_dbg_command_with_parms","bool",["number","number","number","number","number","number","string"]],[!0,"mono_wasm_setenv",null,["string","string"]],[!0,"mono_wasm_parse_runtime_options",null,["number","number"]],[!0,"mono_wasm_strdup","number",["string"]],[!0,"mono_background_exec",null,[]],[!0,"mono_wasm_ds_exec",null,[]],[!0,"mono_wasm_execute_timer",null,[]],[!0,"mono_wasm_load_icu_data","number",["number"]],[!1,"mono_wasm_add_assembly","number",["string","number","number"]],[!0,"mono_wasm_add_satellite_assembly","void",["string","string","number","number"]],[!1,"mono_wasm_load_runtime",null,["number","number","number","number"]],[!0,"mono_wasm_change_debugger_log_level","void",["number"]],[!0,"mono_wasm_assembly_load","number",["string"]],[!0,"mono_wasm_assembly_find_class","number",["number","string","string"]],[!0,"mono_wasm_assembly_find_method","number",["number","string","number"]],[!0,"mono_wasm_string_from_utf16_ref","void",["number","number","number"]],[!0,"mono_wasm_intern_string_ref","void",["number"]],[!1,"mono_wasm_exit","void",["number"]],[!0,"mono_wasm_getenv","number",["string"]],[!0,"mono_wasm_set_main_args","void",["number","number"]],[()=>!ct.emscriptenBuildOptions.enableAotProfiler,"mono_wasm_profiler_init_aot","void",["string"]],[()=>!ct.emscriptenBuildOptions.enableDevToolsProfiler,"mono_wasm_profiler_init_browser_devtools","void",["string"]],[()=>!ct.emscriptenBuildOptions.enableLogProfiler,"mono_wasm_profiler_init_log","void",["string"]],[!1,"mono_wasm_exec_regression","number",["number","string"]],[!1,"mono_wasm_invoke_jsexport","void",["number","number"]],[!0,"mono_wasm_write_managed_pointer_unsafe","void",["number","number"]],[!0,"mono_wasm_copy_managed_pointer","void",["number","number"]],[!0,"mono_wasm_i52_to_f64","number",["number","number"]],[!0,"mono_wasm_u52_to_f64","number",["number","number"]],[!0,"mono_wasm_f64_to_i52","number",["number","number"]],[!0,"mono_wasm_f64_to_u52","number",["number","number"]],[!0,"mono_wasm_method_get_name","number",["number"]],[!0,"mono_wasm_method_get_name_ex","number",["number"]],[!0,"mono_wasm_method_get_full_name","number",["number"]],[!0,"mono_wasm_gc_lock","void",[]],[!0,"mono_wasm_gc_unlock","void",[]],[!0,"mono_wasm_get_i32_unaligned","number",["number"]],[!0,"mono_wasm_get_f32_unaligned","number",["number"]],[!0,"mono_wasm_get_f64_unaligned","number",["number"]],[!0,"mono_wasm_read_as_bool_or_null_unsafe","number",["number"]],[!0,"mono_jiterp_trace_bailout","void",["number"]],[!0,"mono_jiterp_get_trace_bailout_count","number",["number"]],[!0,"mono_jiterp_value_copy","void",["number","number","number"]],[!0,"mono_jiterp_get_member_offset","number",["number"]],[!0,"mono_jiterp_encode_leb52","number",["number","number","number"]],[!0,"mono_jiterp_encode_leb64_ref","number",["number","number","number"]],[!0,"mono_jiterp_encode_leb_signed_boundary","number",["number","number","number"]],[!0,"mono_jiterp_write_number_unaligned","void",["number","number","number"]],[!0,"mono_jiterp_type_is_byref","number",["number"]],[!0,"mono_jiterp_get_size_of_stackval","number",[]],[!0,"mono_jiterp_parse_option","number",["string"]],[!0,"mono_jiterp_get_options_as_json","number",[]],[!0,"mono_jiterp_get_option_as_int","number",["string"]],[!0,"mono_jiterp_get_options_version","number",[]],[!0,"mono_jiterp_adjust_abort_count","number",["number","number"]],[!0,"mono_jiterp_register_jit_call_thunk","void",["number","number"]],[!0,"mono_jiterp_type_get_raw_value_size","number",["number"]],[!0,"mono_jiterp_get_signature_has_this","number",["number"]],[!0,"mono_jiterp_get_signature_return_type","number",["number"]],[!0,"mono_jiterp_get_signature_param_count","number",["number"]],[!0,"mono_jiterp_get_signature_params","number",["number"]],[!0,"mono_jiterp_type_to_ldind","number",["number"]],[!0,"mono_jiterp_type_to_stind","number",["number"]],[!0,"mono_jiterp_imethod_to_ftnptr","number",["number"]],[!0,"mono_jiterp_debug_count","number",[]],[!0,"mono_jiterp_get_trace_hit_count","number",["number"]],[!0,"mono_jiterp_get_polling_required_address","number",[]],[!0,"mono_jiterp_get_rejected_trace_count","number",[]],[!0,"mono_jiterp_boost_back_branch_target","void",["number"]],[!0,"mono_jiterp_is_imethod_var_address_taken","number",["number","number"]],[!0,"mono_jiterp_get_opcode_value_table_entry","number",["number"]],[!0,"mono_jiterp_get_simd_intrinsic","number",["number","number"]],[!0,"mono_jiterp_get_simd_opcode","number",["number","number"]],[!0,"mono_jiterp_get_arg_offset","number",["number","number","number"]],[!0,"mono_jiterp_get_opcode_info","number",["number","number"]],[!0,"mono_wasm_is_zero_page_reserved","number",[]],[!0,"mono_jiterp_is_special_interface","number",["number"]],[!0,"mono_jiterp_initialize_table","void",["number","number","number"]],[!0,"mono_jiterp_allocate_table_entry","number",["number"]],[!0,"mono_jiterp_get_interp_entry_func","number",["number"]],[!0,"mono_jiterp_get_counter","number",["number"]],[!0,"mono_jiterp_modify_counter","number",["number","number"]],[!0,"mono_jiterp_tlqueue_next","number",["number"]],[!0,"mono_jiterp_tlqueue_add","number",["number","number"]],[!0,"mono_jiterp_tlqueue_clear","void",["number"]],[!0,"mono_jiterp_begin_catch","void",["number"]],[!0,"mono_jiterp_end_catch","void",[]],[!0,"mono_interp_pgo_load_table","number",["number","number"]],[!0,"mono_interp_pgo_save_table","number",["number","number"]],[()=>!ct.emscriptenBuildOptions.enableEventPipe&&!ct.emscriptenBuildOptions.enableDevToolsProfiler,"mono_jiterp_prof_enter","void",["number","number"]],[()=>!ct.emscriptenBuildOptions.enableEventPipe&&!ct.emscriptenBuildOptions.enableDevToolsProfiler,"mono_jiterp_prof_samplepoint","void",["number","number"]],[()=>!ct.emscriptenBuildOptions.enableEventPipe&&!ct.emscriptenBuildOptions.enableDevToolsProfiler,"mono_jiterp_prof_leave","void",["number","number"]]],o={},s=o,a=o,i=["void","number",null];function c(e,t,n,r){let o=void 0===r&&i.indexOf(t)>=0&&(!n||n.every((e=>i.indexOf(e)>=0)))&&Ke.wasmExports?Ke.wasmExports[e]:void 0;if(o&&n&&o.length!==n.length&&(He(`argument count mismatch for cwrap ${e}`),o=void 0),"function"!=typeof o&&(o=Ke.cwrap(e,t,n,r)),"function"!=typeof o)throw new Error(`cwrap ${e} not found or not a function`);return o}const l=0,p=0,u=0,d=BigInt("9223372036854775807"),f=BigInt("-9223372036854775808");function _(e){return Ke._malloc(e)>>>0}function m(e){Ke._free(e)}function h(e,t,n){if(!Number.isSafeInteger(e))throw new Error(`Assert failed: Value is not an integer: ${e} (${typeof e})`);if(!(e>=t&&e<=n))throw new Error(`Assert failed: Overflow: value ${e} is out of ${t} ${n} range`)}function g(e,t){e=oe(e,0),K().fill(0,e,e+t)}function b(e,t){const n=!!t;"number"==typeof t&&h(t,0,1),Ke.HEAP32[e>>>2]=n?1:0}function y(e,t){const n=!!t;"number"==typeof t&&h(t,0,1),Ke.HEAPU8[e>>>0]=n?1:0}function w(e,t){h(t,0,255),Ke.HEAPU8[e>>>0]=t}function k(e,t){h(t,0,65535),Ke.HEAPU16[e>>>1]=t}function S(e,t){h(t,0,4294967295),Ke.HEAPU32[e>>>2]=t}function v(e,t){h(t,-128,127),Ke.HEAP8[e>>>0]=t}function U(e,t){h(t,-32768,32767),Ke.HEAP16[e>>>1]=t}function T(e,t){h(t,-2147483648,2147483647),Ke.HEAP32[e>>>2]=t}function E(e){if(0!==e)switch(e){case 1:throw new Error("value was not an integer");case 2:throw new Error("value out of range");default:throw new Error("unknown internal error")}}function x(e,t){if(!Number.isSafeInteger(t))throw new Error(`Assert failed: Value is not a safe integer: ${t} (${typeof t})`);E(o.mono_wasm_f64_to_i52(e,t))}function I(e,t){if(!Number.isSafeInteger(t))throw new Error(`Assert failed: Value is not a safe integer: ${t} (${typeof t})`);if(!(t>=0))throw new Error("Assert failed: Can't convert negative Number into UInt64");E(o.mono_wasm_f64_to_u52(e,t))}function A(e,t){if("bigint"!=typeof t)throw new Error(`Assert failed: Value is not an bigint: ${t} (${typeof t})`);if(!(t>=f&&t<=d))throw new Error(`Assert failed: Overflow: value ${t} is out of ${f} ${d} range`);Ke.HEAP64[e>>>3]=t}function j(e,t){if("number"!=typeof t)throw new Error(`Assert failed: Value is not a Number: ${t} (${typeof t})`);Ke.HEAPF32[e>>>2]=t}function $(e,t){if("number"!=typeof t)throw new Error(`Assert failed: Value is not a Number: ${t} (${typeof t})`);Ke.HEAPF64[e>>>3]=t}let L=!0;function R(e){const t=Ke.HEAPU32[e>>>2];return t>1&&L&&(L=!1,We(`getB32: value at ${e} is not a boolean, but a number: ${t}`)),!!t}function B(e){return!!Ke.HEAPU8[e>>>0]}function N(e){return Ke.HEAPU8[e>>>0]}function O(e){return Ke.HEAPU16[e>>>1]}function C(e){return Ke.HEAPU32[e>>>2]}function D(e,t){return e[t>>>2]}function F(e){return o.mono_wasm_get_i32_unaligned(e)}function P(e){return o.mono_wasm_get_i32_unaligned(e)>>>0}function M(e){return Ke.HEAP8[e>>>0]}function z(e){return Ke.HEAP16[e>>>1]}function V(e){return Ke.HEAP32[e>>>2]}function W(e){const t=o.mono_wasm_i52_to_f64(e,ct._i52_error_scratch_buffer);return E(V(ct._i52_error_scratch_buffer)),t}function H(e){const t=o.mono_wasm_u52_to_f64(e,ct._i52_error_scratch_buffer);return E(V(ct._i52_error_scratch_buffer)),t}function q(e){return Ke.HEAP64[e>>>3]}function G(e){return Ke.HEAPF32[e>>>2]}function J(e){return Ke.HEAPF64[e>>>3]}function X(){return Ke.HEAP8}function Q(){return Ke.HEAP16}function Y(){return Ke.HEAP32}function Z(){return Ke.HEAP64}function K(){return Ke.HEAPU8}function ee(){return Ke.HEAPU16}function te(){return Ke.HEAPU32}function ne(){return Ke.HEAPF32}function re(){return Ke.HEAPF64}function oe(e,t){return e>>>t}let se=!1;function ae(){if(se)throw new Error("GC is already locked");se=!0}function ie(){if(!se)throw new Error("GC is not locked");se=!1}const ce=8192;let le=null,pe=null,ue=0;const de=[],fe=[];function _e(e,t){if(e<=0)throw new Error("capacity >= 1");const n=4*(e|=0),r=_(n);if(r%4!=0)throw new Error("Malloc returned an unaligned offset");return g(r,n),new me(r,e,!0,t)}class me{constructor(e,t,n,r){const s=4*t;this.__offset=e>>>0,this.__offset32=e>>>2,this.__count=t,this.length=t,this.__handle=o.mono_wasm_register_root(e,s,r||"noname"),this.__ownsAllocation=n}_throw_index_out_of_range(){throw new Error("index out of range")}_check_in_range(e){(e>=this.__count||e<0)&&this._throw_index_out_of_range()}get_address(e){return this._check_in_range(e),this.__offset+4*e}get_address_32(e){return this._check_in_range(e),this.__offset32+e}get(e){this._check_in_range(e);const t=this.get_address_32(e);return te()[t]}set(e,t){const n=this.get_address(e);return o.mono_wasm_write_managed_pointer_unsafe(n,t),t}copy_value_from_address(e,t){const n=this.get_address(e);o.mono_wasm_copy_managed_pointer(n,t)}_unsafe_get(e){return te()[this.__offset32+e]}_unsafe_set(e,t){const n=this.__offset+e;o.mono_wasm_write_managed_pointer_unsafe(n,t)}clear(){this.__offset&&g(this.__offset,4*this.__count)}release(){this.__offset&&this.__ownsAllocation&&(o.mono_wasm_deregister_root(this.__offset),g(this.__offset,4*this.__count),m(this.__offset)),this.__handle=this.__offset=this.__count=this.__offset32=0}toString(){return`[root buffer @${this.get_address(0)}, size ${this.__count} ]`}}class he{constructor(e,t){this.__buffer=e,this.__index=t}get_address(){return this.__buffer.get_address(this.__index)}get_address_32(){return this.__buffer.get_address_32(this.__index)}get address(){return this.__buffer.get_address(this.__index)}get(){return this.__buffer._unsafe_get(this.__index)}set(e){const t=this.__buffer.get_address(this.__index);return o.mono_wasm_write_managed_pointer_unsafe(t,e),e}copy_from(e){const t=e.address,n=this.address;o.mono_wasm_copy_managed_pointer(n,t)}copy_to(e){const t=this.address,n=e.address;o.mono_wasm_copy_managed_pointer(n,t)}copy_from_address(e){const t=this.address;o.mono_wasm_copy_managed_pointer(t,e)}copy_to_address(e){const t=this.address;o.mono_wasm_copy_managed_pointer(e,t)}get value(){return this.get()}set value(e){this.set(e)}valueOf(){throw new Error("Implicit conversion of roots to pointers is no longer supported. Use .value or .address as appropriate")}clear(){const e=this.__buffer.get_address_32(this.__index);te()[e]=0}release(){if(!this.__buffer)throw new Error("No buffer");var e;de.length>128?(void 0!==(e=this.__index)&&(le.set(e,0),pe[ue]=e,ue++),this.__buffer=null,this.__index=0):(this.set(0),de.push(this))}toString(){return`[root @${this.address}]`}}class ge{constructor(e){this.__external_address=0,this.__external_address_32=0,this._set_address(e)}_set_address(e){this.__external_address=e>>>0,this.__external_address_32=e>>>2}get address(){return this.__external_address}get_address(){return this.__external_address}get_address_32(){return this.__external_address_32}get(){return te()[this.__external_address_32]}set(e){return o.mono_wasm_write_managed_pointer_unsafe(this.__external_address,e),e}copy_from(e){const t=e.address,n=this.__external_address;o.mono_wasm_copy_managed_pointer(n,t)}copy_to(e){const t=this.__external_address,n=e.address;o.mono_wasm_copy_managed_pointer(n,t)}copy_from_address(e){const t=this.__external_address;o.mono_wasm_copy_managed_pointer(t,e)}copy_to_address(e){const t=this.__external_address;o.mono_wasm_copy_managed_pointer(e,t)}get value(){return this.get()}set value(e){this.set(e)}valueOf(){throw new Error("Implicit conversion of roots to pointers is no longer supported. Use .value or .address as appropriate")}clear(){te()[this.__external_address>>>2]=0}release(){fe.length<128&&fe.push(this)}toString(){return`[external root @${this.address}]`}}const be=new Map,ye="";let we;const ke=new Map;let Se,ve,Ue,Te,Ee,xe=0,Ie=null,Ae=0;function je(e){if(void 0===Te){const t=Ke.lengthBytesUTF8(e),n=new Uint8Array(t);return Ke.stringToUTF8Array(e,n,0,t),n}return Te.encode(e)}function $e(e){const t=Ke.lengthBytesUTF8(e)+1,n=_(t),r=K().subarray(n,n+t);return Ke.stringToUTF8Array(e,r,0,t),r[t-1]=0,n}function Le(e){const t=K(),n=oe(e,0);return function(e,t,n){const r=(t=oe(t,0))+n;let o=t;for(;e[o]&&!(o>=r);)++o;if(o-t<=16)return Ke.UTF8ArrayToString(e,t,n);if(void 0===Ue)return Ke.UTF8ArrayToString(e,t,n);const s=Fe(e,t,o);return Ue.decode(s)}(t,n,t.length-n)}function Re(e,t){if(e=oe(e,0),t=oe(t,0),Se){const n=Fe(K(),e,t);return Se.decode(n)}return function(e,t){let n="";const r=ee();for(let o=e;o>>1];n+=String.fromCharCode(e)}return n}(e,t)}function Be(e,t,n){const r=ee(),o=n.length;for(let c=0;c>>1]=i,!((e+=2)>=t));c++);var s,a,i}function Ne(e){const t=2*(e.length+1),n=_(t);return g(n,2*e.length),Be(n,n+t,e),n}function Oe(e){if(e.value===p)return null;const t=we+0,n=we+4,r=we+8;let s;o.mono_wasm_string_get_data_ref(e.address,t,n,r);const a=te(),i=D(a,n),c=D(a,t),l=D(a,r);if(l&&(s=ke.get(e.value)),void 0===s&&(i&&c?(s=Re(c,c+i),l&&ke.set(e.value,s)):s=ye),void 0===s)throw new Error(`internal error when decoding string at location ${e.value}`);return s}function Ce(e,t){let n;if("symbol"==typeof e?(n=e.description,"string"!=typeof n&&(n=Symbol.keyFor(e)),"string"!=typeof n&&(n="")):"string"==typeof e&&(n=e),"string"!=typeof n)throw new Error(`Argument to stringToInternedMonoStringRoot must be a string but was ${e}`);if(0===n.length&&xe)return void t.set(xe);const r=be.get(n);r?t.set(r):(De(n,t),function(e,t,n){if(!t.value)throw new Error("null pointer passed to _store_string_in_intern_table");Ae>=8192&&(Ie=null),Ie||(Ie=_e(8192,"interned strings"),Ae=0);const r=Ie,s=Ae++;if(o.mono_wasm_intern_string_ref(t.address),!t.value)throw new Error("mono_wasm_intern_string_ref produced a null pointer");be.set(e,t.value),ke.set(t.value,e),0!==e.length||xe||(xe=t.value),r.copy_value_from_address(s,t.address)}(n,t))}function De(e,t){const n=2*(e.length+1),r=_(n);Be(r,r+n,e),o.mono_wasm_string_from_utf16_ref(r,e.length,t.address),m(r)}function Fe(e,t,n){return e.buffer,e.subarray(t>>>0,n>>>0)}function Pe(e){if(e===p)return null;Ee.value=e;const t=Oe(Ee);return Ee.value=p,t}let Me="MONO_WASM: ";function ze(e){if(ct.diagnosticTracing){const t="function"==typeof e?e():e;console.debug(Me+t)}}function Ve(e,...t){console.info(Me+e,...t)}function We(e,...t){console.warn(Me+e,...t)}function He(e,...t){if(t&&t.length>0&&t[0]&&"object"==typeof t[0]){if(t[0].silent)return;if(t[0].toString)return void console.error(Me+e,t[0].toString())}console.error(Me+e,...t)}const qe=new Map;let Ge;const Je=[];function Xe(e){try{if(Ye(),0==qe.size)return e;const t=e;for(let n=0;n{const n=t.find((e=>"object"==typeof e&&void 0!==e.replaceSection));if(void 0===n)return e;const r=n.funcNum,o=n.replaceSection,s=qe.get(Number(r));return void 0===s?e:e.replace(o,`${s} (${o})`)}));if(r!==t)return r}return t}catch(t){return console.debug(`failed to symbolicate: ${t}`),e}}function Qe(e){let t;return t="string"==typeof e?e:null==e||void 0===e.stack?(new Error).stack+"":e.stack+"",Xe(t)}function Ye(){if(!Ge)return;Je.push(/at (?[^:()]+:wasm-function\[(?\d+)\]:0x[a-fA-F\d]+)((?![^)a-fA-F\d])|$)/),Je.push(/(?:WASM \[[\da-zA-Z]+\], (?function #(?[\d]+) \(''\)))/),Je.push(/(?[a-z]+:\/\/[^ )]*:wasm-function\[(?\d+)\]:0x[a-fA-F\d]+)/),Je.push(/(?<[^ >]+>[.:]wasm-function\[(?[0-9]+)\])/);const e=Ge;Ge=void 0;try{e.split(/[\r\n]/).forEach((e=>{const t=e.split(/:/);t.length<2||(t[1]=t.splice(1).join(":"),qe.set(Number(t[0]),t[1]))})),lt.diagnosticTracing&&ze(`Loaded ${qe.size} symbols`)}catch(e){We(`Failed to load symbol map: ${e}`)}}function Ze(){return Ye(),[...qe.values()]}let Ke,et;const tt="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,nt="function"==typeof importScripts,rt=nt&&"undefined"!=typeof dotnetSidecar,ot=nt&&!rt,st="object"==typeof window||nt&&!tt,at=!st&&!tt;let it=null,ct=null,lt=null,pt=null,ut=!1;function dt(e,t){ct.emscriptenBuildOptions=t,e.isPThread,ct.quit=e.quit_,ct.ExitStatus=e.ExitStatus,ct.getMemory=e.getMemory,ct.getWasmIndirectFunctionTable=e.getWasmIndirectFunctionTable,ct.updateMemoryViews=e.updateMemoryViews}function ft(e){if(ut)throw new Error("Runtime module already loaded");ut=!0,Ke=e.module,et=e.internal,ct=e.runtimeHelpers,lt=e.loaderHelpers,pt=e.diagnosticHelpers,it=e.api;const t={gitHash:"8e0f8ed2312954727f8919d7d1c2f78b483b4ee7",coreAssetsInMemory:_t(),allAssetsInMemory:_t(),dotnetReady:_t(),afterInstantiateWasm:_t(),beforePreInit:_t(),afterPreInit:_t(),afterPreRun:_t(),beforeOnRuntimeInitialized:_t(),afterMonoStarted:_t(),afterDeputyReady:_t(),afterIOStarted:_t(),afterOnRuntimeInitialized:_t(),afterPostRun:_t(),nativeAbort:e=>{throw e||new Error("abort")},nativeExit:e=>{throw new Error("exit:"+e)}};Object.assign(ct,t),Object.assign(e.module.config,{}),Object.assign(e.api,{Module:e.module,...e.module}),Object.assign(e.api,{INTERNAL:e.internal})}function _t(e,t){return lt.createPromiseController(e,t)}function mt(e,t){if(e)return;const n="Assert failed: "+("function"==typeof t?t():t),r=new Error(n);He(n,r),ct.nativeAbort(r)}function ht(e,t,n){const r=function(e,t,n){let r,o=0;r=e.length-o;const s={read:function(){if(o>=r)return null;const t=e[o];return o+=1,t}};return Object.defineProperty(s,"eof",{get:function(){return o>=r},configurable:!0,enumerable:!0}),s}(e);let o="",s=0,a=0,i=0,c=0,l=0,p=0;for(;s=r.read(),a=r.read(),i=r.read(),null!==s;)null===a&&(a=0,l+=1),null===i&&(i=0,l+=1),p=s<<16|a<<8|i,c=(16777215&p)>>18,o+=gt[c],c=(262143&p)>>12,o+=gt[c],l<2&&(c=(4095&p)>>6,o+=gt[c]),2===l?o+="==":1===l?o+="=":(c=63&p,o+=gt[c]);return o}const gt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],bt=new Map;bt.remove=function(e){const t=this.get(e);return this.delete(e),t};let yt,wt,kt,St={},vt=0,Ut=-1;function mono_wasm_fire_debugger_agent_message_with_data_to_pause(e){console.assert(!0,`mono_wasm_fire_debugger_agent_message_with_data ${e}`);debugger}function Tt(e){e.length>Ut&&(yt&&m(yt),Ut=Math.max(e.length,Ut,256),yt=_(Ut));const t=atob(e),n=K();for(let e=0;ee.value)),e;if(void 0===t.dimensionsDetails||1===t.dimensionsDetails.length)return e=t.items.map((e=>e.value)),e}const n={};return Object.keys(t).forEach((e=>{const r=t[e];void 0!==r.get?Object.defineProperty(n,r.name,{get:()=>xt(r.get.id,r.get.commandSet,r.get.command,r.get.buffer),set:function(e){return Et(r.set.id,r.set.commandSet,r.set.command,r.set.buffer,r.set.length,r.set.valtype,e),!0}}):void 0!==r.set?Object.defineProperty(n,r.name,{get:()=>r.value,set:function(e){return Et(r.set.id,r.set.commandSet,r.set.command,r.set.buffer,r.set.length,r.set.valtype,e),!0}}):n[r.name]=r.value})),n}(t,n);const o=null!=e.arguments?e.arguments.map((e=>JSON.stringify(e.value))):[],s=`const fn = ${e.functionDeclaration}; return fn.apply(proxy, [${o}]);`,a=new Function("proxy",s)(r);if(void 0===a)return{type:"undefined"};if(Object(a)!==a)return"object"==typeof a&&null==a?{type:typeof a,subtype:`${a}`,value:null}:{type:typeof a,description:`${a}`,value:`${a}`};if(e.returnByValue&&null==a.subtype)return{type:"object",value:a};if(Object.getPrototypeOf(a)==Array.prototype){const e=Ot(a);return{type:"object",subtype:"array",className:"Array",description:`Array(${a.length})`,objectId:e}}return void 0!==a.value||void 0!==a.subtype?a:a==r?{type:"object",className:"Object",description:"Object",objectId:t}:{type:"object",className:"Object",description:"Object",objectId:Ot(a)}}function Nt(e,t={}){return function(e,t){if(!(e in St))throw new Error(`Could not find any object with id ${e}`);const n=St[e],r=Object.getOwnPropertyDescriptors(n);t.accessorPropertiesOnly&&Object.keys(r).forEach((e=>{void 0===r[e].get&&Reflect.deleteProperty(r,e)}));const o=[];return Object.keys(r).forEach((e=>{let t;const n=r[e];t="object"==typeof n.value?Object.assign({name:e},n):void 0!==n.value?{name:e,value:Object.assign({type:typeof n.value,description:""+n.value},n)}:void 0!==n.get?{name:e,get:{className:"Function",description:`get ${e} () {}`,type:"function"}}:{name:e,value:{type:"symbol",value:"",description:""}},o.push(t)})),{__value_as_json_string__:JSON.stringify(o)}}(`dotnet:cfo_res:${e}`,t)}function Ot(e){const t="dotnet:cfo_res:"+vt++;return St[t]=e,t}function Ct(e){e in St&&delete St[e]}let Dt=!1;function Ft(){if(Dt)return globalThis.performance.now()}function Pt(e,t,n){if(Dt&&e){const r=st?{start:e}:{startTime:e},o=n?`${t}${n} `:t;globalThis.performance.measure(o,r)}}const Mt=new Map;function zt(e,t,n){if(0===t||1===t||2===t||26===t)return;let r,o,s,a;o=to(Cn(e)),s=to(Dn(e)),a=to(Fn(e));const i=On(e);r=Vt(i),19===t&&(t=i);const c=Vt(t),l=Cn(e),p=n*In;return e=>c(e+p,l,r,o,s,a)}function Vt(e){if(0===e||1===e)return;const t=vn.get(e);return t&&"function"==typeof t||mt(!1,`ERR41: Unknown converter for type ${e}. ${Kr}`),t}function Wt(e){return 0==zn(e)?null:function(e){return e||mt(!1,"Null arg"),B(e)}(e)}function Ht(e){return 0==zn(e)?null:function(e){return e||mt(!1,"Null arg"),N(e)}(e)}function qt(e){return 0==zn(e)?null:function(e){return e||mt(!1,"Null arg"),O(e)}(e)}function Gt(e){return 0==zn(e)?null:function(e){return e||mt(!1,"Null arg"),z(e)}(e)}function Jt(e){return 0==zn(e)?null:function(e){return e||mt(!1,"Null arg"),V(e)}(e)}function Xt(e){return 0==zn(e)?null:function(e){return e||mt(!1,"Null arg"),J(e)}(e)}function Qt(e){return 0==zn(e)?null:function(e){return e||mt(!1,"Null arg"),q(e)}(e)}function Yt(e){return 0==zn(e)?null:function(e){return e||mt(!1,"Null arg"),G(e)}(e)}function Zt(e){return 0==zn(e)?null:function(e){return e||mt(!1,"Null arg"),J(e)}(e)}function Kt(e){return 0==zn(e)?null:Hn(e)}function en(){return null}function tn(e){return 0===zn(e)?null:function(e){e||mt(!1,"Null arg");const t=J(e);return new Date(t)}(e)}function nn(e,t,n,r,o,s){if(0===zn(e))return null;const a=Zn(e);let i=qr(a);return null==i&&(i=(e,t,i)=>function(e,t,n,r,o,s,a,i){lt.assert_runtime_running();const c=Ke.stackSave();try{const c=$n(6),l=Ln(c,2);if(Wn(l,14),Kn(l,e),s&&s(Ln(c,3),t),a&&a(Ln(c,4),n),i&&i(Ln(c,5),r),kn(yn.CallDelegate,c),o)return o(Ln(c,1))}finally{lt.is_runtime_running()&&Ke.stackRestore(c)}}(a,e,t,i,n,r,o,s),i.dispose=()=>{i.isDisposed||(i.isDisposed=!0,Vr(i,a))},i.isDisposed=!1,zr(i,a)),i}class rn{constructor(e,t){this.promise=e,this.resolve_or_reject=t}}function on(e,t,n){const r=zn(e);30==r&&mt(!1,"Unexpected Task type: TaskPreCreated");const o=cn(e,r,n);if(!1!==o)return o;const s=Qn(e),a=ln(n);return function(e,t){hr(),xr[0-t]=e,Object.isExtensible(e)&&(e[Cr]=t)}(a,s),a.promise}function sn(e,t,n){const r=ln(n);return Yn(e,Pr(r)),Wn(e,30),r.promise}function an(e,t,n){const r=Ln(e,1),o=zn(r);if(30===o)return n;Mr(Pr(n));const s=cn(r,o,t);return!1===s&&mt(!1,`Expected synchronous result, got: ${o}`),s}function cn(e,t,n){if(0===t)return null;if(29===t)return Promise.reject(un(e));if(28===t){const t=Vn(e);if(1===t)return Promise.resolve();Wn(e,t),n||(n=vn.get(t)),n||mt(!1,`Unknown sub_converter for type ${t}. ${Kr}`);const r=n(e);return Promise.resolve(r)}return!1}function ln(e){const{promise:t,promise_control:n}=lt.createPromiseController();return new rn(t,((t,r,o)=>{if(29===t){const e=un(o);n.reject(e)}else if(28===t){const t=zn(o);if(1===t)n.resolve(void 0);else{e||(e=vn.get(t)),e||mt(!1,`Unknown sub_converter for type ${t}. ${Kr}`);const r=e(o);n.resolve(r)}}else mt(!1,`Unexpected type ${t}`);Mr(r)}))}function pn(e){if(0==zn(e))return null;{const t=er(e);try{return Oe(t)}finally{t.release()}}}function un(e){const t=zn(e);if(0==t)return null;if(27==t)return Fr(Qn(e));const n=Zn(e);let r=qr(n);if(null==r){const t=pn(e);r=new ManagedError(t),zr(r,n)}return r}function dn(e){if(0==zn(e))return null;const t=Qn(e),n=Fr(t);return void 0===n&&mt(!1,`JS object JSHandle ${t} was not found`),n}function fn(e){const t=zn(e);if(0==t)return null;if(13==t)return Fr(Qn(e));if(21==t)return mn(e,Vn(e));if(14==t){const t=Zn(e);if(t===u)return null;let n=qr(t);return n||(n=new ManagedObject,zr(n,t)),n}const n=vn.get(t);return n||mt(!1,`Unknown converter for type ${t}. ${Kr}`),n(e)}function _n(e,t){return t||mt(!1,"Expected valid element_type parameter"),mn(e,t)}function mn(e,t){if(0==zn(e))return null;-1==rr(t)&&mt(!1,`Element type ${t} not supported`);const n=Hn(e),r=tr(e);let s=null;if(15==t){s=new Array(r);for(let e=0;e0?(t=fe.pop(),t._set_address(e)):t=new ge(e),t}(e)}function tr(e){return e||mt(!1,"Null arg"),V(e+8)}function nr(e,t){e||mt(!1,"Null arg"),T(e+8,t)}class ManagedObject{dispose(){Vr(this,u)}get isDisposed(){return this[Or]===u}toString(){return`CsObject(gc_handle: ${this[Or]})`}}class ManagedError extends Error{constructor(e){super(e),this.superStack=Object.getOwnPropertyDescriptor(this,"stack"),Object.defineProperty(this,"stack",{get:this.getManageStack})}getSuperStack(){if(this.superStack){if(void 0!==this.superStack.value)return this.superStack.value;if(void 0!==this.superStack.get)return this.superStack.get.call(this)}return super.stack}getManageStack(){if(this.managed_stack)return this.managed_stack;if(!lt.is_runtime_running())return this.managed_stack="... omitted managed stack trace.\n"+this.getSuperStack(),this.managed_stack;{const e=this[Or];if(e!==u){const t=function(e){lt.assert_runtime_running();const t=Ke.stackSave();try{const t=$n(3),n=Ln(t,2);return Wn(n,16),Kn(n,e),kn(yn.GetManagedStackTrace,t),pn(Ln(t,1))}finally{lt.is_runtime_running()&&Ke.stackRestore(t)}}(e);if(t)return this.managed_stack=t+"\n"+this.getSuperStack(),this.managed_stack}}return this.getSuperStack()}dispose(){Vr(this,u)}get isDisposed(){return this[Or]===u}}function rr(e){return 4==e?1:7==e?4:8==e||10==e?8:15==e||14==e||13==e?In:-1}class or{constructor(e,t,n){this._pointer=e,this._length=t,this._viewType=n,this._pointer=oe(e,0)}_unsafe_create_view(){const e=0==this._viewType?new Uint8Array(K().buffer,this._pointer,this._length):1==this._viewType?new Int32Array(Y().buffer,this._pointer,this._length):2==this._viewType?new Float64Array(re().buffer,this._pointer,this._length):null;if(!e)throw new Error("NotImplementedException");return e}set(e,t){if(this.isDisposed)throw new Error("Assert failed: ObjectDisposedException");const n=this._unsafe_create_view();if(!e||!n||e.constructor!==n.constructor)throw new Error(`Assert failed: Expected ${n.constructor}`);n.set(e,t)}copyTo(e,t){if(this.isDisposed)throw new Error("Assert failed: ObjectDisposedException");const n=this._unsafe_create_view();if(!e||!n||e.constructor!==n.constructor)throw new Error(`Assert failed: Expected ${n.constructor}`);const r=n.subarray(t);e.set(r)}slice(e,t){if(this.isDisposed)throw new Error("Assert failed: ObjectDisposedException");return this._unsafe_create_view().slice(e,t)}get length(){if(this.isDisposed)throw new Error("Assert failed: ObjectDisposedException");return this._length}get byteLength(){if(this.isDisposed)throw new Error("Assert failed: ObjectDisposedException");return 0==this._viewType?this._length:1==this._viewType?this._length<<2:2==this._viewType?this._length<<3:0}}class Span extends or{constructor(e,t,n){super(e,t,n),this.is_disposed=!1}dispose(){this.is_disposed=!0}get isDisposed(){return this.is_disposed}}class ArraySegment extends or{constructor(e,t,n){super(e,t,n)}dispose(){Vr(this,u)}get isDisposed(){return this[Or]===u}}const sr=[null];function ar(e){const t=e.args_count,r=e.arg_marshalers,o=e.res_converter,s=e.arg_cleanup,a=e.has_cleanup,i=e.fn,c=e.fqn;return e=null,function(l){const p=Ft();try{n&&e.isDisposed;const c=new Array(t);for(let e=0;e{const o=await n;return r&&(_r.set(e,o),lt.diagnosticTracing&&ze(`imported ES6 module '${e}' from '${t}'`)),o}))}function hr(){lt.assert_runtime_running(),ct.mono_wasm_bindings_is_ready||mt(!1,"The runtime must be initialized.")}function gr(e){e()}const br="function"==typeof globalThis.WeakRef;function yr(e){return br?new WeakRef(e):function(e){return{deref:()=>e,dispose:()=>{e=null}}}(e)}function wr(e,t,n,r,o,s,a){const i=`[${t}] ${n}.${r}:${o}`,c=Ft();lt.diagnosticTracing&&ze(`Binding [JSExport] ${n}.${r}:${o} from ${t} assembly`);const l=Mn(a);2!==l&&mt(!1,`Signature version ${l} mismatch.`);const p=Pn(a),u=new Array(p);for(let e=0;e0}function Nr(e){return e<-1}Ur&&(Tr=new globalThis.FinalizationRegistry(Hr));const Or=Symbol.for("wasm js_owned_gc_handle"),Cr=Symbol.for("wasm cs_owned_js_handle"),Dr=Symbol.for("wasm do_not_force_dispose");function Fr(e){return Br(e)?Er[e]:Rr(e)?xr[0-e]:null}function Pr(e){if(hr(),e[Cr])return e[Cr];const t=Ir.length?Ir.pop():Ar++;return Er[t]=e,Object.isExtensible(e)&&("function"==typeof e&&Object.prototype.hasOwnProperty.call(e,"prototype")||(e[Cr]=t)),t}function Mr(e){let t;Br(e)?(t=Er[e],Er[e]=void 0,Ir.push(e)):Rr(e)&&(t=xr[0-e],xr[0-e]=void 0),null==t&&mt(!1,"ObjectDisposedException"),void 0!==t[Cr]&&(t[Cr]=void 0)}function zr(e,t){hr(),e[Or]=t,Ur&&Tr.register(e,t,e);const n=yr(e);jr.set(t,n)}function Vr(e,t,r){var o;hr(),e&&(t=e[Or],e[Or]=u,Ur&&Tr.unregister(e)),t!==u&&jr.delete(t)&&!r&<.is_runtime_running()&&!Gr&&function(e){e||mt(!1,"Must be valid gc_handle"),lt.assert_runtime_running();const t=Ke.stackSave();try{const t=$n(3),r=Ln(t,2);Wn(r,14),Kn(r,e),n&&!Nr(e)&&bn.isUI||kn(yn.ReleaseJSOwnedObjectByGCHandle,t)}finally{lt.is_runtime_running()&&Ke.stackRestore(t)}}(t),Nr(t)&&(o=t,$r.push(o))}function Wr(e){const t=e[Or];if(t==u)throw new Error("Assert failed: ObjectDisposedException");return t}function Hr(e){lt.is_runtime_running()&&Vr(null,e)}function qr(e){if(!e)return null;const t=jr.get(e);return t?t.deref():null}let Gr=!1;function Jr(e,t){let n=!1,r=!1;Gr=!0;let o=0,s=0,a=0,i=0;const c=[...jr.keys()];for(const e of c){const r=jr.get(e),o=r&&r.deref();if(Ur&&o&&Tr.unregister(o),o){const s="boolean"==typeof o[Dr]&&o[Dr];if(t&&We(`Proxy of C# ${typeof o} with GCHandle ${e} was still alive. ${s?"keeping":"disposing"}.`),s)n=!0;else{const t=lt.getPromiseController(o);t&&t.reject(new Error("WebWorker which is origin of the Task is being terminated.")),"function"==typeof o.dispose&&o.dispose(),o[Or]===e&&(o[Or]=u),!br&&r&&r.dispose(),a++}}}n||(jr.clear(),Ur&&(Tr=new globalThis.FinalizationRegistry(Hr)));const l=(e,n)=>{const o=n[e],s=o&&"boolean"==typeof o[Dr]&&o[Dr];if(s||(n[e]=void 0),o)if(t&&We(`Proxy of JS ${typeof o} with JSHandle ${e} was still alive. ${s?"keeping":"disposing"}.`),s)r=!0;else{const t=lt.getPromiseController(o);t&&t.reject(new Error("WebWorker which is origin of the Task is being terminated.")),"function"==typeof o.dispose&&o.dispose(),o[Cr]===e&&(o[Cr]=void 0),i++}};for(let e=0;en.resolve(e))).catch((e=>n.reject(e))),t}const Yr=Symbol.for("wasm promise_holder");class Zr extends ManagedObject{constructor(e,t,n,r){super(),this.promise=e,this.gc_handle=t,this.promiseHolderPtr=n,this.res_converter=r,this.isResolved=!1,this.isPosted=!1,this.isPostponed=!1,this.data=null,this.reason=void 0}setIsResolving(){return!0}resolve(e){lt.is_runtime_running()?(this.isResolved&&mt(!1,"resolve could be called only once"),this.isDisposed&&mt(!1,"resolve is already disposed."),this.isResolved=!0,this.complete_task_wrapper(e,null)):lt.diagnosticTracing&&ze("This promise resolution can't be propagated to managed code, mono runtime already exited.")}reject(e){lt.is_runtime_running()?(e||(e=new Error),this.isResolved&&mt(!1,"reject could be called only once"),this.isDisposed&&mt(!1,"resolve is already disposed."),e[Yr],this.isResolved=!0,this.complete_task_wrapper(null,e)):lt.diagnosticTracing&&ze("This promise rejection can't be propagated to managed code, mono runtime already exited.")}cancel(){if(lt.is_runtime_running())if(this.isResolved&&mt(!1,"cancel could be called only once"),this.isDisposed&&mt(!1,"resolve is already disposed."),this.isPostponed)this.isResolved=!0,void 0!==this.reason?this.complete_task_wrapper(null,this.reason):this.complete_task_wrapper(this.data,null);else{const e=this.promise;lt.assertIsControllablePromise(e);const t=lt.getPromiseController(e),n=new Error("OperationCanceledException");n[Yr]=this,t.reject(n)}else lt.diagnosticTracing&&ze("This promise cancelation can't be propagated to managed code, mono runtime already exited.")}complete_task_wrapper(e,t){try{this.isPosted&&mt(!1,"Promise is already posted to managed."),this.isPosted=!0,Vr(this,this.gc_handle,!0),function(e,t,n,r){lt.assert_runtime_running();const o=Ke.stackSave();try{const o=$n(5),s=Ln(o,2);Wn(s,14),Kn(s,e);const a=Ln(o,3);if(t)wo(a,t);else{Wn(a,0);const e=Ln(o,4);r||mt(!1,"res_converter missing"),r(e,n)}wn(ct.ioThreadTID,yn.CompleteTask,o)}finally{lt.is_runtime_running()&&Ke.stackRestore(o)}}(this.gc_handle,t,e,this.res_converter||So)}catch(e){try{lt.mono_exit(1,e)}catch(e){}}}}const Kr="For more information see https://aka.ms/dotnet-wasm-jsinterop";function eo(e,t,n){if(0===t||1===t||2===t||26===t)return;let r,o,s,a;o=Vt(Cn(e)),s=Vt(Dn(e)),a=Vt(Fn(e));const i=On(e);r=to(i),19===t&&(t=i);const c=to(t),l=Cn(e),p=n*In;return(e,t)=>{c(e+p,t,l,r,o,s,a)}}function to(e){if(0===e||1===e)return;const t=Un.get(e);return t&&"function"==typeof t||mt(!1,`ERR30: Unknown converter for type ${e}`),t}function no(e,t){null==t?Wn(e,0):(Wn(e,3),qn(e,t))}function ro(e,t){null==t?Wn(e,0):(Wn(e,4),function(e,t){e||mt(!1,"Null arg"),w(e,t)}(e,t))}function oo(e,t){null==t?Wn(e,0):(Wn(e,5),function(e,t){e||mt(!1,"Null arg"),k(e,t)}(e,t))}function so(e,t){null==t?Wn(e,0):(Wn(e,6),function(e,t){e||mt(!1,"Null arg"),U(e,t)}(e,t))}function ao(e,t){null==t?Wn(e,0):(Wn(e,7),function(e,t){e||mt(!1,"Null arg"),T(e,t)}(e,t))}function io(e,t){null==t?Wn(e,0):(Wn(e,8),function(e,t){if(e||mt(!1,"Null arg"),!Number.isSafeInteger(t))throw new Error(`Assert failed: Value is not an integer: ${t} (${typeof t})`);$(e,t)}(e,t))}function co(e,t){null==t?Wn(e,0):(Wn(e,9),function(e,t){e||mt(!1,"Null arg"),A(e,t)}(e,t))}function lo(e,t){null==t?Wn(e,0):(Wn(e,10),Xn(e,t))}function po(e,t){null==t?Wn(e,0):(Wn(e,11),function(e,t){e||mt(!1,"Null arg"),j(e,t)}(e,t))}function uo(e,t){null==t?Wn(e,0):(Wn(e,12),Gn(e,t))}function fo(e,t){if(null==t)Wn(e,0);else{if(!(t instanceof Date))throw new Error("Assert failed: Value is not a Date");Wn(e,17),Jn(e,t)}}function _o(e,t){if(null==t)Wn(e,0);else{if(!(t instanceof Date))throw new Error("Assert failed: Value is not a Date");Wn(e,18),Jn(e,t)}}function mo(e,t){if(null==t)Wn(e,0);else{if(Wn(e,15),"string"!=typeof t)throw new Error("Assert failed: Value is not a String");ho(e,t)}}function ho(e,t){{const n=er(e);try{!function(e,t){if(t.clear(),null!==e)if("symbol"==typeof e)Ce(e,t);else{if("string"!=typeof e)throw new Error("Expected string argument, got "+typeof e);if(0===e.length)Ce(e,t);else{if(e.length<=256){const n=be.get(e);if(n)return void t.set(n)}De(e,t)}}}(t,n)}finally{n.release()}}}function go(e){Wn(e,0)}function bo(e,t,r,o,s,a,i){if(null==t)return void Wn(e,0);if(!(t&&t instanceof Function))throw new Error("Assert failed: Value is not a Function");const c=function(e){const r=Ln(e,0),l=Ln(e,1),p=Ln(e,2),u=Ln(e,3),d=Ln(e,4),f=ct.isPendingSynchronousCall;try{let e,r,f;n&&c.isDisposed,s&&(e=s(p)),a&&(r=a(u)),i&&(f=i(d)),ct.isPendingSynchronousCall=!0;const _=t(e,r,f);o&&o(l,_)}catch(e){wo(r,e)}finally{ct.isPendingSynchronousCall=f}};c[En]=!0,c.isDisposed=!1,c.dispose=()=>{c.isDisposed=!0},Yn(e,Pr(c)),Wn(e,25)}function yo(e,t,n,r){const o=30==zn(e);if(null==t)return void Wn(e,0);if(!Xr(t))throw new Error("Assert failed: Value is not a Promise");const s=o?Zn(e):$r.length?$r.pop():Lr--;o||(Kn(e,s),Wn(e,20));const a=new Zr(t,s,0,r);zr(a,s),t.then((e=>a.resolve(e)),(e=>a.reject(e)))}function wo(e,t){if(null==t)Wn(e,0);else if(t instanceof ManagedError)Wn(e,16),Kn(e,Wr(t));else{if("object"!=typeof t&&"string"!=typeof t)throw new Error("Assert failed: Value is not an Error "+typeof t);Wn(e,27),ho(e,t.toString());const n=t[Cr];Yn(e,n||Pr(t))}}function ko(e,t){if(null==t)Wn(e,0);else{if(void 0!==t[Or])throw new Error(`Assert failed: JSObject proxy of ManagedObject proxy is not supported. ${Kr}`);if("function"!=typeof t&&"object"!=typeof t)throw new Error(`Assert failed: JSObject proxy of ${typeof t} is not supported`);Wn(e,13),Yn(e,Pr(t))}}function So(e,t){if(null==t)Wn(e,0);else{const n=t[Or],r=typeof t;if(void 0===n)if("string"===r||"symbol"===r)Wn(e,15),ho(e,t);else if("number"===r)Wn(e,10),Xn(e,t);else{if("bigint"===r)throw new Error("NotImplementedException: bigint");if("boolean"===r)Wn(e,3),qn(e,t);else if(t instanceof Date)Wn(e,17),Jn(e,t);else if(t instanceof Error)wo(e,t);else if(t instanceof Uint8Array)Uo(e,t,4);else if(t instanceof Float64Array)Uo(e,t,10);else if(t instanceof Int32Array)Uo(e,t,7);else if(Array.isArray(t))Uo(e,t,14);else{if(t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array)throw new Error("NotImplementedException: TypedArray");if(Xr(t))yo(e,t);else{if(t instanceof Span)throw new Error("NotImplementedException: Span");if("object"!=r)throw new Error(`JSObject proxy is not supported for ${r} ${t}`);{const n=Pr(t);Wn(e,13),Yn(e,n)}}}}else{if(Wr(t),t instanceof ArraySegment)throw new Error("NotImplementedException: ArraySegment. "+Kr);if(t instanceof ManagedError)Wn(e,16),Kn(e,n);else{if(!(t instanceof ManagedObject))throw new Error("NotImplementedException "+r+". "+Kr);Wn(e,14),Kn(e,n)}}}}function vo(e,t,n){n||mt(!1,"Expected valid element_type parameter"),Uo(e,t,n)}function Uo(e,t,n){if(null==t)Wn(e,0);else{const r=rr(n);-1==r&&mt(!1,`Element type ${n} not supported`);const s=t.length,a=r*s,i=_(a);if(15==n){if(!Array.isArray(t))throw new Error("Assert failed: Value is not an Array");g(i,a),o.mono_wasm_register_root(i,a,"marshal_array_to_cs");for(let e=0;e{e&&"AbortError"!==e&&"AbortError"!==e.name&&ze("http muted: "+e)}))}function No(e){try{e.isAborted||(e.streamWriter&&(Bo(e.streamWriter.abort()),e.isAborted=!0),e.streamReader&&(Bo(e.streamReader.cancel()),e.isAborted=!0)),e.isAborted||e.abortController.signal.aborted||e.abortController.abort("AbortError")}catch(e){}}function Oo(e,t,n){n>0||mt(!1,"expected bufferLength > 0");const r=new Span(t,n,0).slice();return Qr((async()=>{e.streamWriter||mt(!1,"expected streamWriter"),e.responsePromise||mt(!1,"expected fetch promise");try{await e.streamWriter.ready,await e.streamWriter.write(r)}catch(e){throw new Error("BrowserHttpWriteStream.Rejected")}}))}function Co(e){return e||mt(!1,"expected controller"),Qr((async()=>{e.streamWriter||mt(!1,"expected streamWriter"),e.responsePromise||mt(!1,"expected fetch promise");try{await e.streamWriter.ready,await e.streamWriter.close()}catch(e){throw new Error("BrowserHttpWriteStream.Rejected")}}))}function Do(e,t,n,r,o,s){const a=new TransformStream;return e.streamWriter=a.writable.getWriter(),Bo(e.streamWriter.closed),Bo(e.streamWriter.ready),Po(e,t,n,r,o,s,a.readable)}function Fo(e,t,n,r,o,s,a,i){return Po(e,t,n,r,o,s,new Span(a,i,0).slice())}function Po(e,t,n,r,o,s,a){jo(),hr(),t&&"string"==typeof t||mt(!1,"expected url string"),n&&r&&Array.isArray(n)&&Array.isArray(r)&&n.length===r.length||mt(!1,"expected headerNames and headerValues arrays"),o&&s&&Array.isArray(o)&&Array.isArray(s)&&o.length===s.length||mt(!1,"expected headerNames and headerValues arrays");const i=new Headers;for(let e=0;elt.fetch_like(t,c).then((t=>(e.response=t,null))))),e.responsePromise.then((()=>{if(e.response||mt(!1,"expected response"),e.responseHeaderNames=[],e.responseHeaderValues=[],e.response.headers&&e.response.headers.entries){const t=e.response.headers.entries();for(const n of t)e.responseHeaderNames.push(n[0]),e.responseHeaderValues.push(n[1])}})).catch((()=>{})),e.responsePromise}function Mo(e){var t;return null===(t=e.response)||void 0===t?void 0:t.type}function zo(e){var t,n;return null!==(n=null===(t=e.response)||void 0===t?void 0:t.status)&&void 0!==n?n:0}function Vo(e){return e.responseHeaderNames||mt(!1,"expected responseHeaderNames"),e.responseHeaderNames}function Wo(e){return e.responseHeaderValues||mt(!1,"expected responseHeaderValues"),e.responseHeaderValues}function Ho(e){return Qr((async()=>{const t=await e.response.arrayBuffer();return e.responseBuffer=t,e.currentBufferOffset=0,t.byteLength}))}function qo(e,t){if(e||mt(!1,"expected controller"),e.responseBuffer||mt(!1,"expected resoved arrayBuffer"),null==e.currentBufferOffset&&mt(!1,"expected currentBufferOffset"),e.currentBufferOffset==e.responseBuffer.byteLength)return 0;const n=new Uint8Array(e.responseBuffer,e.currentBufferOffset);t.set(n,0);const r=Math.min(t.byteLength,n.byteLength);return e.currentBufferOffset+=r,r}function Go(e,t,n){const r=new Span(t,n,0);return Qr((async()=>{if(await e.responsePromise,e.response||mt(!1,"expected response"),!e.response.body)return 0;if(e.streamReader||(e.streamReader=e.response.body.getReader(),Bo(e.streamReader.closed)),e.currentStreamReaderChunk&&void 0!==e.currentBufferOffset||(e.currentStreamReaderChunk=await e.streamReader.read(),e.currentBufferOffset=0),e.currentStreamReaderChunk.done){if(e.isAborted)throw new Error("OperationCanceledException");return 0}const t=e.currentStreamReaderChunk.value.byteLength-e.currentBufferOffset;t>0||mt(!1,"expected remaining_source to be greater than 0");const n=Math.min(t,r.byteLength),o=e.currentStreamReaderChunk.value.subarray(e.currentBufferOffset,e.currentBufferOffset+n);return r.set(o,0),e.currentBufferOffset+=n,t==n&&(e.currentStreamReaderChunk=void 0),n}))}let Jo,Xo,Qo=0;function Yo(){if(!lt.isChromium)return;const e=(new Date).valueOf(),t=e+36e4;for(let n=Math.max(e+1e3,Qo);n=this.queue.length&&(this.queue=this.queue.slice(this.offset),this.offset=0),e}peek(){return this.queue.length>0?this.queue[this.offset]:void 0}drain(e){for(;this.getLength();)e(this.dequeue())}}const ts=Symbol.for("wasm ws_pending_send_buffer"),ns=Symbol.for("wasm ws_pending_send_buffer_offset"),rs=Symbol.for("wasm ws_pending_send_buffer_type"),os=Symbol.for("wasm ws_pending_receive_event_queue"),ss=Symbol.for("wasm ws_pending_receive_promise_queue"),as=Symbol.for("wasm ws_pending_open_promise"),is=Symbol.for("wasm wasm_ws_pending_open_promise_used"),cs=Symbol.for("wasm wasm_ws_pending_error"),ls=Symbol.for("wasm ws_pending_close_promises"),ps=Symbol.for("wasm ws_pending_send_promises"),us=Symbol.for("wasm ws_is_aborted"),ds=Symbol.for("wasm wasm_ws_close_sent"),fs=Symbol.for("wasm wasm_ws_close_received"),_s=Symbol.for("wasm ws_receive_status_ptr"),ms=65536,hs=new Uint8Array;function gs(e){var t,n;return e.readyState!=WebSocket.CLOSED?null!==(t=e.readyState)&&void 0!==t?t:-1:0==e[os].getLength()?null!==(n=e.readyState)&&void 0!==n?n:-1:e[ds]?WebSocket.CLOSING:WebSocket.OPEN}function bs(e,t,n){let r;!function(){if(at)throw new Error("WebSockets are not supported in shell JS engine.");if("function"!=typeof globalThis.WebSocket)throw new Error(tt?"Please install `ws` npm package to enable networking support. See also https://aka.ms/dotnet-wasm-features":"This browser doesn't support WebSocket API. Please use a modern browser. See also https://aka.ms/dotnet-wasm-features")}(),hr(),e&&"string"==typeof e||mt(!1,"ERR12: Invalid uri "+typeof e);try{r=new globalThis.WebSocket(e,t||void 0)}catch(e){throw We("WebSocket error in ws_wasm_create: "+e.toString()),e}const{promise_control:o}=_t();r[os]=new es,r[ss]=new es,r[as]=o,r[ps]=[],r[ls]=[],r[_s]=oe(n,0),r.binaryType="arraybuffer";const s=()=>{try{if(r[us])return;if(!lt.is_runtime_running())return;o.resolve(r),Yo()}catch(e){We("failed to propagate WebSocket open event: "+e.toString())}},a=e=>{try{if(r[us])return;if(!lt.is_runtime_running())return;!function(e,t){const n=e[os],r=e[ss];if("string"==typeof t.data)n.enqueue({type:0,data:je(t.data),offset:0});else{if("ArrayBuffer"!==t.data.constructor.name)throw new Error("ERR19: WebSocket receive expected ArrayBuffer");n.enqueue({type:1,data:new Uint8Array(t.data),offset:0})}if(r.getLength()&&n.getLength()>1)throw new Error("ERR21: Invalid WS state");for(;r.getLength()&&n.getLength();){const t=r.dequeue();Ts(e,n,t.buffer_ptr,t.buffer_length),t.resolve()}Yo()}(r,e),Yo()}catch(e){We("failed to propagate WebSocket message event: "+e.toString())}},i=e=>{try{if(r.removeEventListener("message",a),r[us])return;if(!lt.is_runtime_running())return;r[fs]=!0,r.close_status=e.code,r.close_status_description=e.reason,r[is]&&o.reject(new Error(e.reason));for(const e of r[ls])e.resolve();Ke.safeSetTimeout((()=>{r[ss].drain((e=>{T(n,0),T(n+4,2),T(n+8,1),e.resolve()}))}),0)}catch(e){We("failed to propagate WebSocket close event: "+e.toString())}},c=e=>{try{if(r[us])return;if(!lt.is_runtime_running())return;r.removeEventListener("message",a);const t=e.message?"WebSocket error: "+e.message:"WebSocket error";We(t),r[cs]=t,Us(r,new Error(t))}catch(e){We("failed to propagate WebSocket error event: "+e.toString())}};return r.addEventListener("message",a),r.addEventListener("open",s,{once:!0}),r.addEventListener("close",i,{once:!0}),r.addEventListener("error",c,{once:!0}),r.dispose=()=>{r.removeEventListener("message",a),r.removeEventListener("open",s),r.removeEventListener("close",i),r.removeEventListener("error",c),vs(r)},r}function ys(e){if(e||mt(!1,"ERR17: expected ws instance"),e[cs])return Es(e[cs]);const t=e[as];return e[is]=!0,t.promise}function ws(e,t,n,r,o){if(e||mt(!1,"ERR17: expected ws instance"),e[cs])return Es(e[cs]);if(e[us]||e[ds])return Es("InvalidState: The WebSocket is not connected.");if(e.readyState==WebSocket.CLOSED)return null;const s=function(e,t,n,r){let o=e[ts],s=0;const a=t.byteLength;if(o){if(s=e[ns],n=e[rs],0!==a){if(s+a>o.length){const n=new Uint8Array(1.5*(s+a+50));n.set(o,0),n.subarray(s).set(t),e[ts]=o=n}else o.subarray(s).set(t);s+=a,e[ns]=s}}else r?0!==a&&(o=t,s=a):(0!==a&&(o=t.slice(),s=a,e[ns]=s,e[ts]=o),e[rs]=n);return r?0==s||null==o?hs:0===n?function(e){return void 0===ve?Ke.UTF8ArrayToString(e,0,e.byteLength):ve.decode(e)}(Fe(o,0,s)):o.subarray(0,s):null}(e,new Uint8Array(K().buffer,oe(t,0),n),r,o);return o&&s?function(e,t){if(e.send(t),e[ts]=null,e.bufferedAmount{try{if(0===e.bufferedAmount)r.resolve();else{const t=e.readyState;if(t!=WebSocket.OPEN&&t!=WebSocket.CLOSING)r.reject(new Error(`InvalidState: ${t} The WebSocket is not connected.`));else if(!r.isDone)return globalThis.setTimeout(a,s),void(s=Math.min(1.5*s,1e3))}const t=o.indexOf(r);t>-1&&o.splice(t,1)}catch(e){We("WebSocket error in web_socket_send_and_wait: "+e.toString()),r.reject(e)}};return globalThis.setTimeout(a,0),n}(e,s):null}function ks(e,t,n){if(e||mt(!1,"ERR18: expected ws instance"),e[cs])return Es(e[cs]);if(e[us]){const t=e[_s];return T(t,0),T(t+4,2),T(t+8,1),null}const r=e[os],o=e[ss];if(r.getLength())return 0!=o.getLength()&&mt(!1,"ERR20: Invalid WS state"),Ts(e,r,t,n),null;if(e[fs]){const t=e[_s];return T(t,0),T(t+4,2),T(t+8,1),null}const{promise:s,promise_control:a}=_t(),i=a;return i.buffer_ptr=oe(t,0),i.buffer_length=n,o.enqueue(i),s}function Ss(e,t,n,r){if(e||mt(!1,"ERR19: expected ws instance"),e[us]||e[ds]||e.readyState==WebSocket.CLOSED)return null;if(e[cs])return Es(e[cs]);if(e[ds]=!0,r){const{promise:r,promise_control:o}=_t();return e[ls].push(o),"string"==typeof n?e.close(t,n):e.close(t),r}return"string"==typeof n?e.close(t,n):e.close(t),null}function vs(e){if(e||mt(!1,"ERR18: expected ws instance"),!e[us]&&!e[ds]){e[us]=!0,Us(e,new Error("OperationCanceledException"));try{e.close(1e3,"Connection was aborted.")}catch(e){We("WebSocket error in ws_wasm_abort: "+e.toString())}}}function Us(e,t){const n=e[as],r=e[is];n&&r&&n.reject(t);for(const n of e[ls])n.reject(t);for(const n of e[ps])n.reject(t);e[ss].drain((e=>{e.reject(t)}))}function Ts(e,t,n,r){const o=t.peek(),s=Math.min(r,o.data.length-o.offset);if(s>0){const e=o.data.subarray(o.offset,o.offset+s);new Uint8Array(K().buffer,oe(n,0),r).set(e,0),o.offset+=s}const a=o.data.length===o.offset?1:0;a&&t.dequeue();const i=e[_s];T(i,s),T(i+4,o.type),T(i+8,a)}function Es(e){return function(e){const{promise:t,promise_control:n}=_t();return e.then((e=>n.resolve(e))).catch((e=>n.reject(e))),t}(Promise.reject(new Error(e)))}function xs(e,t,n){lt.diagnosticTracing&&ze(`Loaded:${e.name} as ${e.behavior} size ${n.length} from ${t}`);const r=Ft(),s="string"==typeof e.virtualPath?e.virtualPath:e.name;let a=null;switch(e.behavior){case"dotnetwasm":case"js-module-threads":case"js-module-diagnostics":case"symbols":break;case"resource":case"assembly":case"pdb":lt._loaded_files.push({url:t,file:s});case"heap":case"icu":a=function(e){const t=e.length+16;let n=Ke._sbrk(t);if(n<=0){if(n=Ke._sbrk(t),n<=0)throw He(`sbrk failed to allocate ${t} bytes, and failed upon retry.`),new Error("Out of memory");We(`sbrk failed to allocate ${t} bytes, but succeeded upon retry!`)}return new Uint8Array(K().buffer,n,e.length).set(e),n}(n);break;case"vfs":{const e=s.lastIndexOf("/");let t=e>0?s.substring(0,e):null,r=e>0?s.substring(e+1):s;r.startsWith("/")&&(r=r.substring(1)),t?(t.startsWith("/")||(t="/"+t),ze(`Creating directory '${t}'`),Ke.FS_createPath("/",t,!0,!0)):t="/",lt.diagnosticTracing&&ze(`Creating file '${r}' in directory '${t}'`),Ke.FS_createDataFile(t,r,n,!0,!0,!0);break}default:throw new Error(`Unrecognized asset behavior:${e.behavior}, for asset ${e.name}`)}if("assembly"===e.behavior){if(!o.mono_wasm_add_assembly(s,a,n.length)){const e=lt._loaded_files.findIndex((e=>e.file==s));lt._loaded_files.splice(e,1)}}else"pdb"===e.behavior?o.mono_wasm_add_assembly(s,a,n.length):"icu"===e.behavior?function(e){if(!o.mono_wasm_load_icu_data(e))throw new Error("Failed to load ICU data")}(a):"resource"===e.behavior&&o.mono_wasm_add_satellite_assembly(s,e.culture||"",a,n.length);Pt(r,"mono.instantiateAsset:",e.name),++lt.actual_instantiated_assets_count}async function Is(e){try{const n=await e.pendingDownloadInternal.response;t=await n.text(),Ge&&mt(!1,"Another symbol map was already loaded"),Ge=t,lt.diagnosticTracing&&ze(`Deferred loading of ${t.length}ch symbol map`)}catch(t){Ve(`Error loading symbol file ${e.name}: ${JSON.stringify(t)}`)}var t}function As(){return lt.loadedFiles}const js={};function $s(e){let t=js[e];if("string"!=typeof t){const n=o.mono_jiterp_get_opcode_info(e,0);js[e]=t=Le(n)}return t}const Ls=2,Rs=64,Bs=64,Ns=-2147483648,Os={};class Cs{constructor(){this.locals=new Map,this.permanentFunctionTypeCount=0,this.permanentFunctionTypes={},this.permanentFunctionTypesByShape={},this.permanentFunctionTypesByIndex={},this.functionTypesByIndex={},this.permanentImportedFunctionCount=0,this.permanentImportedFunctions={},this.nextImportIndex=0,this.functions=[],this.estimatedExportBytes=0,this.frame=0,this.traceBuf=[],this.branchTargets=new Set,this.backBranchOffsets=[],this.callHandlerReturnAddresses=[],this.backBranchTraceLevel=0,this.compressImportNames=!1,this.lockImports=!1,this._assignParameterIndices=e=>{let t=0;for(const n in e)this.locals.set(n,t),t++;return t},this.stack=[new Ds],this.clear(),this.cfg=new Fs(this),this.defineType("__cpp_exception",{ptr:127},64,!0)}clear(){if(this.options=fa(),this.options.maxModuleSize>=24576)throw new Error(`blobBuilderCapacity 24576 is not large enough for jiterpreter-max-module-size of ${this.options.maxModuleSize}`);this.stackSize=1,this.inSection=!1,this.inFunction=!1,this.lockImports=!1,this.locals.clear(),this.functionTypeCount=this.permanentFunctionTypeCount,this.functionTypes=Object.create(this.permanentFunctionTypes),this.functionTypesByShape=Object.create(this.permanentFunctionTypesByShape),this.functionTypesByIndex=Object.create(this.permanentFunctionTypesByIndex),this.nextImportIndex=0,this.importedFunctionCount=0,this.importedFunctions=Object.create(this.permanentImportedFunctions);for(const e in this.importedFunctions)this.importedFunctions[e].index=void 0;this.functions.length=0,this.estimatedExportBytes=0,this.argumentCount=0,this.current.clear(),this.traceBuf.length=0,this.branchTargets.clear(),this.activeBlocks=0,this.backBranchOffsets.length=0,this.callHandlerReturnAddresses.length=0,this.allowNullCheckOptimization=this.options.eliminateNullChecks,this.containsSimd=!1,this.containsAtomics=!1}_push(){this.stackSize++,this.stackSize>=this.stack.length&&this.stack.push(new Ds),this.current.clear()}_pop(e){if(this.stackSize<=1)throw new Error("Stack empty");const t=this.current;return this.stackSize--,e?(this.appendULeb(t.size),t.copyTo(this.current),null):t.getArrayView(!1).slice(0,t.size)}setImportFunction(e,t){const n=this.importedFunctions[e];if(!n)throw new Error("No import named "+e);n.func=t}getExceptionTag(){const e=Ke.wasmExports.__cpp_exception;return void 0!==e&&(e instanceof WebAssembly.Tag||mt(!1,`expected __cpp_exception export from dotnet.wasm to be WebAssembly.Tag but was ${e}`)),e}getWasmImports(){const e=ct.getMemory();e instanceof WebAssembly.Memory||mt(!1,`expected heap import to be WebAssembly.Memory but was ${e}`);const t=this.getExceptionTag(),n={m:{h:e}};t&&(n.x={e:t});const r=this.getImportsToEmit();for(let e=0;e>>0||e>255)throw new Error(`Byte out of range: ${e}`);return this.current.appendU8(e)}appendSimd(e,t){return this.current.appendU8(253),0|e||0===e&&!0===t||mt(!1,"Expected non-v128_load simd opcode or allowLoad==true"),this.current.appendULeb(e)}appendAtomic(e,t){return this.current.appendU8(254),0|e||0===e&&!0===t||mt(!1,"Expected non-notify atomic opcode or allowNotify==true"),this.current.appendU8(e)}appendU32(e){return this.current.appendU32(e)}appendF32(e){return this.current.appendF32(e)}appendF64(e){return this.current.appendF64(e)}appendBoundaryValue(e,t){return this.current.appendBoundaryValue(e,t)}appendULeb(e){return this.current.appendULeb(e)}appendLeb(e){return this.current.appendLeb(e)}appendLebRef(e,t){return this.current.appendLebRef(e,t)}appendBytes(e){return this.current.appendBytes(e)}appendName(e){return this.current.appendName(e)}ret(e){this.ip_const(e),this.appendU8(15)}i32_const(e){this.appendU8(65),this.appendLeb(e)}ptr_const(e){this.appendU8(65),this.appendLeb(0|e)}ip_const(e){this.appendU8(65),this.appendLeb(e-this.base)}i52_const(e){this.appendU8(66),this.appendLeb(e)}v128_const(e){if(0===e)this.local("v128_zero");else{if("object"!=typeof e)throw new Error("Expected v128_const arg to be 0 or a Uint8Array");{16!==e.byteLength&&mt(!1,"Expected v128_const arg to be 16 bytes in size");let t=!0;for(let n=0;n<16;n++)0!==e[n]&&(t=!1);t?this.local("v128_zero"):(this.appendSimd(12),this.appendBytes(e))}}}defineType(e,t,n,r){if(this.functionTypes[e])throw new Error(`Function type ${e} already defined`);if(r&&this.functionTypeCount>this.permanentFunctionTypeCount)throw new Error("New permanent function types cannot be defined after non-permanent ones");let o="";for(const e in t)o+=t[e]+",";o+=n;let s=this.functionTypesByShape[o];"number"!=typeof s&&(s=this.functionTypeCount++,r?(this.permanentFunctionTypeCount++,this.permanentFunctionTypesByShape[o]=s,this.permanentFunctionTypesByIndex[s]=[t,Object.values(t).length,n]):(this.functionTypesByShape[o]=s,this.functionTypesByIndex[s]=[t,Object.values(t).length,n]));const a=[s,t,n,`(${JSON.stringify(t)}) -> ${n}`,r];return r?this.permanentFunctionTypes[e]=a:this.functionTypes[e]=a,s}generateTypeSection(){this.beginSection(1),this.appendULeb(this.functionTypeCount);for(let e=0;ee.index-t.index)),e}_generateImportSection(e){const t=this.getImportsToEmit();if(this.lockImports=!0,!1!==e)throw new Error("function table imports are disabled");const n=void 0!==this.getExceptionTag();this.beginSection(2),this.appendULeb(1+(n?1:0)+t.length+(!1!==e?1:0));for(let e=0;e0)throw new Error("New permanent imports cannot be defined after any indexes have been assigned");const s=this.functionTypes[n];if(!s)throw new Error("No function type named "+n);if(r&&!s[4])throw new Error("A permanent import must have a permanent function type");const a=s[0],i=r?this.permanentImportedFunctions:this.importedFunctions;if("number"==typeof o&&(o=qs().get(o)),"function"!=typeof o&&void 0!==o)throw new Error(`Value passed for imported function ${t} was not a function or valid function pointer or undefined`);return i[t]={index:void 0,typeIndex:a,module:e,name:t,func:o}}markImportAsUsed(e){const t=this.importedFunctions[e];if(!t)throw new Error("No imported function named "+e);"number"!=typeof t.index&&(t.index=this.importedFunctionCount++)}getTypeIndex(e){const t=this.functionTypes[e];if(!t)throw new Error("No type named "+e);return t[0]}defineFunction(e,t){const n={index:this.functions.length,name:e.name,typeName:e.type,typeIndex:this.getTypeIndex(e.type),export:e.export,locals:e.locals,generator:t,error:null,blob:null};return this.functions.push(n),n.export&&(this.estimatedExportBytes+=n.name.length+8),n}emitImportsAndFunctions(e){let t=0;for(let e=0;e0)throw new Error(`${this.activeBlocks} unclosed block(s) at end of function`);const t=this._pop(e);return this.inFunction=!1,t}block(e,t){const n=this.appendU8(t||2);return e?this.appendU8(e):this.appendU8(64),this.activeBlocks++,n}endBlock(){if(this.activeBlocks<=0)throw new Error("No blocks active");this.activeBlocks--,this.appendU8(11)}arg(e,t){const n="string"==typeof e?this.locals.has(e)?this.locals.get(e):void 0:e;if("number"!=typeof n)throw new Error("No local named "+e);t&&this.appendU8(t),this.appendULeb(n)}local(e,t){const n="string"==typeof e?this.locals.has(e)?this.locals.get(e):void 0:e+this.argumentCount;if("number"!=typeof n)throw new Error("No local named "+e);t?this.appendU8(t):this.appendU8(32),this.appendULeb(n)}appendMemarg(e,t){this.appendULeb(t),this.appendULeb(e>>>0)}lea(e,t){"string"==typeof e?this.local(e):this.ptr_const(e),this.i32_const(t),this.appendU8(106)}getArrayView(e,t){if(!0!==t&&this.stackSize>1)throw new Error("Jiterpreter block stack not empty");return this.stack[0].getArrayView(e)}}class Ds{constructor(){this.textBuf=new Uint8Array(1024),this.capacity=24576,this.buffer=_(this.capacity),this.buffer||mt(!1,"Failed to allocate 24576b buffer for BlobBuilder"),K().fill(0,this.buffer,this.buffer+this.capacity),this.size=0,this.clear(),"function"==typeof TextEncoder&&(this.encoder=new TextEncoder)}clear(){this.size=0}appendU8(e){if(this.size>=this.capacity)throw new Error("Buffer full");const t=this.size;return K()[this.buffer+this.size++]=e,t}appendU32(e){const t=this.size;return o.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,0),this.size+=4,t}appendI32(e){const t=this.size;return o.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,1),this.size+=4,t}appendF32(e){const t=this.size;return o.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,2),this.size+=4,t}appendF64(e){const t=this.size;return o.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,3),this.size+=8,t}appendBoundaryValue(e,t){if(this.size+8>=this.capacity)throw new Error("Buffer full");const n=o.mono_jiterp_encode_leb_signed_boundary(this.buffer+this.size,e,t);if(n<1)throw new Error(`Failed to encode ${e} bit boundary value with sign ${t}`);return this.size+=n,n}appendULeb(e){if("number"!=typeof e&&mt(!1,`appendULeb expected number but got ${e}`),e>=0||mt(!1,"cannot pass negative value to appendULeb"),e<127){if(this.size+1>=this.capacity)throw new Error("Buffer full");return this.appendU8(e),1}if(this.size+8>=this.capacity)throw new Error("Buffer full");const t=o.mono_jiterp_encode_leb52(this.buffer+this.size,e,0);if(t<1)throw new Error(`Failed to encode value '${e}' as unsigned leb`);return this.size+=t,t}appendLeb(e){if("number"!=typeof e&&mt(!1,`appendLeb expected number but got ${e}`),this.size+8>=this.capacity)throw new Error("Buffer full");const t=o.mono_jiterp_encode_leb52(this.buffer+this.size,e,1);if(t<1)throw new Error(`Failed to encode value '${e}' as signed leb`);return this.size+=t,t}appendLebRef(e,t){if(this.size+8>=this.capacity)throw new Error("Buffer full");const n=o.mono_jiterp_encode_leb64_ref(this.buffer+this.size,e,t?1:0);if(n<1)throw new Error("Failed to encode value as leb");return this.size+=n,n}copyTo(e,t){if("number"!=typeof t&&(t=this.size),e.size+t>=e.capacity)throw new Error("Destination buffer full");K().copyWithin(e.buffer+e.size,this.buffer,this.buffer+t),e.size+=t}appendBytes(e,t){const n=this.size,r=K(),o="number"!=typeof t?e.length:t;if(this.size+o>=this.capacity)throw new Error("Buffer full");return e.buffer===r.buffer?(r.copyWithin(this.buffer+n,e.byteOffset,e.byteOffset+o),this.size+=o):("number"==typeof t&&(e=new Uint8Array(e.buffer,e.byteOffset,t)),this.getArrayView(!0).set(e,this.size),this.size+=e.length),n}appendName(e){let t=e.length,n=1===e.length?e.charCodeAt(0):-1;if(n>127&&(n=-1),t&&n<0)if(this.encoder)t=this.encoder.encodeInto(e,this.textBuf).written||0;else for(let n=0;n127)throw new Error("Out of range character and no TextEncoder available");this.textBuf[n]=t}this.appendULeb(t),n>=0?this.appendU8(n):t>1&&this.appendBytes(this.textBuf,t)}getArrayView(e){return new Uint8Array(K().buffer,this.buffer,e?this.capacity:this.size)}}class Fs{constructor(e){this.segments=[],this.backBranchTargets=null,this.lastSegmentEnd=0,this.overheadBytes=0,this.blockStack=[],this.backDispatchOffsets=[],this.dispatchTable=new Map,this.observedBackBranchTargets=new Set,this.trace=0,this.builder=e}initialize(e,t,n){this.segments.length=0,this.blockStack.length=0,this.startOfBody=e,this.backBranchTargets=t,this.base=this.builder.base,this.ip=this.lastSegmentStartIp=this.firstOpcodeIp=this.builder.base,this.lastSegmentEnd=0,this.overheadBytes=10,this.dispatchTable.clear(),this.observedBackBranchTargets.clear(),this.trace=n,this.backDispatchOffsets.length=0}entry(e){this.entryIp=e;const t=o.mono_jiterp_get_opcode_info(676,1);return this.firstOpcodeIp=e+2*t,this.appendBlob(),1!==this.segments.length&&mt(!1,"expected 1 segment"),"blob"!==this.segments[0].type&&mt(!1,"expected blob"),this.entryBlob=this.segments[0],this.segments.length=0,this.overheadBytes+=9,this.backBranchTargets&&(this.overheadBytes+=20,this.overheadBytes+=this.backBranchTargets.length),this.firstOpcodeIp}appendBlob(){this.builder.current.size!==this.lastSegmentEnd&&(this.segments.push({type:"blob",ip:this.lastSegmentStartIp,start:this.lastSegmentEnd,length:this.builder.current.size-this.lastSegmentEnd}),this.lastSegmentStartIp=this.ip,this.lastSegmentEnd=this.builder.current.size,this.overheadBytes+=2)}startBranchBlock(e,t){this.appendBlob(),this.segments.push({type:"branch-block-header",ip:e,isBackBranchTarget:t}),this.overheadBytes+=1}branch(e,t,n){t&&this.observedBackBranchTargets.add(e),this.appendBlob(),this.segments.push({type:"branch",from:this.ip,target:e,isBackward:t,branchType:n}),this.overheadBytes+=4,t&&(this.overheadBytes+=4)}jumpTable(e,t){this.appendBlob(),this.segments.push({type:"jump-table",from:this.ip,targets:e,fallthrough:t}),this.overheadBytes+=4,this.overheadBytes+=e.length,this.overheadBytes+=24}emitBlob(e,t){const n=t.subarray(e.start,e.start+e.length);this.builder.appendBytes(n)}generate(){this.appendBlob();const e=this.builder.endFunction(!1);this.builder._push(),this.builder.base=this.base,this.emitBlob(this.entryBlob,e),this.backBranchTargets&&this.builder.block(64,3);for(let e=0;ee-t));for(let e=0;e0&&Ve("No back branch targets were reachable after filtering");else if(1===this.backDispatchOffsets.length)this.trace>0&&(this.backDispatchOffsets[0]===this.entryIp?Ve(`Exactly one back dispatch offset and it was the entry point 0x${this.entryIp.toString(16)}`):Ve(`Exactly one back dispatch offset and it was 0x${this.backDispatchOffsets[0].toString(16)}`)),this.builder.local("disp"),this.builder.appendU8(13),this.builder.appendULeb(this.blockStack.indexOf(this.backDispatchOffsets[0]));else{this.trace>0&&Ve(`${this.backDispatchOffsets.length} back branch offsets after filtering.`),this.builder.block(64),this.builder.block(64),this.builder.local("disp"),this.builder.appendU8(14),this.builder.appendULeb(this.backDispatchOffsets.length+1),this.builder.appendULeb(1);for(let e=0;e0&&this.blockStack.push(0)}this.trace>1&&Ve(`blockStack=${this.blockStack}`);for(let t=0;t=0?(da(13,1),this.builder.appendULeb(n+e)):(da(14,1),this.trace>0&&Ve(`Switch target ${t} not found in block stack ${this.blockStack}`),this.builder.appendULeb(0))}const t=this.blockStack.indexOf(n.fallthrough);t>=0?(da(13,1),this.builder.appendULeb(t+e)):(da(14,1),this.trace>0&&Ve(`Switch fallthrough ${n.fallthrough} not found in block stack ${this.blockStack}`),this.builder.appendULeb(0)),this.builder.appendU8(0);break}case"branch":{const e=n.isBackward?0:n.target;let t,r=this.blockStack.indexOf(e),o=!1;if(n.isBackward&&(this.dispatchTable.has(n.target)?(t=this.dispatchTable.get(n.target),this.trace>1&&Ve(`backward br from ${n.from.toString(16)} to ${n.target.toString(16)}: disp=${t}`),o=!0):(this.trace>0&&Ve(`br from ${n.from.toString(16)} to ${n.target.toString(16)} failed: back branch target not in dispatch table`),r=-1)),r>=0||o){let e=0;switch(n.branchType){case 2:this.builder,n.from,void 0!==t&&(this.builder.i32_const(t),this.builder.local("disp",33)),this.builder.appendU8(12);break;case 3:this.builder.block(64,4),this.builder,n.from,void 0!==t&&(this.builder.i32_const(t),this.builder.local("disp",33)),this.builder.appendU8(12),e=1;break;case 0:void 0!==t&&(this.builder.i32_const(t),this.builder.local("disp",33)),this.builder.appendU8(12);break;case 1:void 0!==t?(this.builder.block(64,4),this.builder.i32_const(t),this.builder.local("disp",33),e=1,this.builder.appendU8(12)):this.builder.appendU8(13);break;default:throw new Error("Unimplemented branch type")}this.builder.appendULeb(e+r),e&&this.builder.endBlock(),this.trace>1&&Ve(`br from ${n.from.toString(16)} to ${n.target.toString(16)} breaking out ${e+r+1} level(s)`)}else{if(this.trace>0){const e=this.base;n.target>=e&&n.target1&&Ve(`br from ${n.from.toString(16)} to ${n.target.toString(16)} failed (outside of trace 0x${e.toString(16)} - 0x${this.exitIp.toString(16)})`)}const e=1===n.branchType||3===n.branchType;e&&this.builder.block(64,4),Ws(this.builder,n.target,4),e&&this.builder.endBlock()}break}default:throw new Error("unreachable")}}return this.backBranchTargets&&(this.blockStack.length<=1||mt(!1,"expected one or zero entries in the block stack at the end"),this.blockStack.length&&this.blockStack.shift(),this.builder.endBlock()),0!==this.blockStack.length&&mt(!1,`expected block stack to be empty at end of function but it was ${this.blockStack}`),this.builder.ip_const(this.exitIp),this.builder.appendU8(15),this.builder.appendU8(11),this.builder._pop(!1)}}let Ps;const Ms={},zs=globalThis.performance&&globalThis.performance.now?globalThis.performance.now.bind(globalThis.performance):Date.now;function Vs(e,t,n){let r;switch(n){case 633:r="prof_enter";break;case 634:r="prof_samplepoint";break;case 635:case 636:r="prof_leave";break;default:throw new Error(`Unimplemented profiler event ${n}`)}e.local("frame"),e.ptr_const(t),e.callImport(r)}function Ws(e,t,n){e.ip_const(t),e.options.countBailouts&&(e.i32_const(e.traceIndex),e.i32_const(n),e.callImport("bailout")),e.appendU8(15)}function Hs(e,t,n,r){e.local("cinfo"),e.block(64,4),e.local("cinfo"),e.local("disp"),e.appendU8(54),e.appendMemarg(ea(19),0),n<=e.options.monitoringLongDistance+2&&(e.local("cinfo"),e.i32_const(n),e.appendU8(54),e.appendMemarg(ea(20),0)),e.endBlock(),e.ip_const(t),e.options.countBailouts&&(e.i32_const(e.traceIndex),e.i32_const(r),e.callImport("bailout")),e.appendU8(15)}function qs(){if(Ps||(Ps=ct.getWasmIndirectFunctionTable()),!Ps)throw new Error("Module did not export the indirect function table");return Ps}function Gs(e,t){t||mt(!1,"Attempting to set null function into table");const n=o.mono_jiterp_allocate_table_entry(e);return n>0&&qs().set(n,t),n}function Js(e,t,n,r,o){if(r<=0)return o&&e.appendU8(26),!0;if(r>=Rs)return!1;const s=o?"memop_dest":"pLocals";o&&e.local(s,33);let a=o?0:t;if(e.options.enableSimd){const t=16;for(;r>=t;)e.local(s),e.v128_const(0),e.appendSimd(11),e.appendMemarg(a,0),a+=t,r-=t}for(;r>=8;)e.local(s),e.i52_const(0),e.appendU8(55),e.appendMemarg(a,0),a+=8,r-=8;for(;r>=1;){e.local(s),e.i32_const(0);let t=r%4;switch(t){case 0:t=4,e.appendU8(54);break;case 1:e.appendU8(58);break;case 3:case 2:t=2,e.appendU8(59)}e.appendMemarg(a,0),a+=t,r-=t}return!0}function Xs(e,t,n){Js(e,0,0,n,!0)||(e.i32_const(t),e.i32_const(n),e.appendU8(252),e.appendU8(11),e.appendU8(0))}function Qs(e,t,n,r,o,s,a){if(r<=0)return o&&(e.appendU8(26),e.appendU8(26)),!0;if(r>=Bs)return!1;o?(s=s||"memop_dest",a=a||"memop_src",e.local(a,33),e.local(s,33)):s&&a||(s=a="pLocals");let i=o?0:t,c=o?0:n;if(e.options.enableSimd){const t=16;for(;r>=t;)e.local(s),e.local(a),e.appendSimd(0,!0),e.appendMemarg(c,0),e.appendSimd(11),e.appendMemarg(i,0),i+=t,c+=t,r-=t}for(;r>=8;)e.local(s),e.local(a),e.appendU8(41),e.appendMemarg(c,0),e.appendU8(55),e.appendMemarg(i,0),i+=8,c+=8,r-=8;for(;r>=1;){let t,n,o=r%4;switch(o){case 0:o=4,t=40,n=54;break;default:case 1:o=1,t=44,n=58;break;case 3:case 2:o=2,t=46,n=59}e.local(s),e.local(a),e.appendU8(t),e.appendMemarg(c,0),e.appendU8(n),e.appendMemarg(i,0),c+=o,i+=o,r-=o}return!0}function Ys(e,t){return Qs(e,0,0,t,!0)||(e.i32_const(t),e.appendU8(252),e.appendU8(10),e.appendU8(0),e.appendU8(0)),!0}function Zs(){const e=da(5,1);e>=Ls&&(Ve(`Disabling jiterpreter after ${e} failures`),pa({enableTraces:!1,enableInterpEntry:!1,enableJitCall:!1}))}const Ks={};function ea(e){const t=Ks[e];return void 0===t?Ks[e]=o.mono_jiterp_get_member_offset(e):t}function ta(e){const t=Ke.wasmExports[e];if("function"!=typeof t)throw new Error(`raw cwrap ${e} not found`);return t}const na={};function ra(e){let t=na[e];return"number"!=typeof t&&(t=na[e]=o.mono_jiterp_get_opcode_value_table_entry(e)),t}function oa(e,t){return[e,e,t]}let sa;function aa(){if(!o.mono_wasm_is_zero_page_reserved())return!1;if(!0===sa)return!1;const e=te();for(let t=0;t<8;t++)if(0!==e[t])return!1===sa&&He(`Zero page optimizations are enabled but garbage appeared in memory at address ${4*t}: ${e[t]}`),sa=!0,!1;return sa=!1,!0}const ia={enableTraces:"jiterpreter-traces-enabled",enableInterpEntry:"jiterpreter-interp-entry-enabled",enableJitCall:"jiterpreter-jit-call-enabled",enableBackwardBranches:"jiterpreter-backward-branch-entries-enabled",enableCallResume:"jiterpreter-call-resume-enabled",enableWasmEh:"jiterpreter-wasm-eh-enabled",enableSimd:"jiterpreter-simd-enabled",enableAtomics:"jiterpreter-atomics-enabled",zeroPageOptimization:"jiterpreter-zero-page-optimization",cprop:"jiterpreter-constant-propagation",enableStats:"jiterpreter-stats-enabled",disableHeuristic:"jiterpreter-disable-heuristic",estimateHeat:"jiterpreter-estimate-heat",countBailouts:"jiterpreter-count-bailouts",dumpTraces:"jiterpreter-dump-traces",eliminateNullChecks:"jiterpreter-eliminate-null-checks",noExitBackwardBranches:"jiterpreter-backward-branches-enabled",directJitCalls:"jiterpreter-direct-jit-calls",minimumTraceValue:"jiterpreter-minimum-trace-value",minimumTraceHitCount:"jiterpreter-minimum-trace-hit-count",monitoringPeriod:"jiterpreter-trace-monitoring-period",monitoringShortDistance:"jiterpreter-trace-monitoring-short-distance",monitoringLongDistance:"jiterpreter-trace-monitoring-long-distance",monitoringMaxAveragePenalty:"jiterpreter-trace-monitoring-max-average-penalty",backBranchBoost:"jiterpreter-back-branch-boost",jitCallHitCount:"jiterpreter-jit-call-hit-count",jitCallFlushThreshold:"jiterpreter-jit-call-queue-flush-threshold",interpEntryHitCount:"jiterpreter-interp-entry-hit-count",interpEntryFlushThreshold:"jiterpreter-interp-entry-queue-flush-threshold",wasmBytesLimit:"jiterpreter-wasm-bytes-limit",tableSize:"jiterpreter-table-size",aotTableSize:"jiterpreter-aot-table-size",maxModuleSize:"jiterpreter-max-module-size",maxSwitchSize:"jiterpreter-max-switch-size"};let ca=-1,la={};function pa(e){for(const t in e){const n=ia[t];if(!n){He(`Unrecognized jiterpreter option: ${t}`);continue}const r=e[t];"boolean"==typeof r?o.mono_jiterp_parse_option((r?"--":"--no-")+n):"number"==typeof r?o.mono_jiterp_parse_option(`--${n}=${r}`):He(`Jiterpreter option must be a boolean or a number but was ${typeof r} '${r}'`)}}function ua(e){return o.mono_jiterp_get_counter(e)}function da(e,t){return o.mono_jiterp_modify_counter(e,t)}function fa(){const e=o.mono_jiterp_get_options_version();return e!==ca&&(function(){la={};for(const e in ia){const t=o.mono_jiterp_get_option_as_int(ia[e]);t!==Ns?la[e]=t:Ve(`Failed to retrieve value of option ${ia[e]}`)}}(),ca=e),la}function _a(e,t,n,r){const s=qs(),a=t,i=a+n-1;return i= ${s.length}`),s.set(a,r),o.mono_jiterp_initialize_table(e,a,i),t+n}let ma=!1;const ha=["Unknown","InterpreterTiering","NullCheck","VtableNotInitialized","Branch","BackwardBranch","ConditionalBranch","ConditionalBackwardBranch","ComplexBranch","ArrayLoadFailed","ArrayStoreFailed","StringOperationFailed","DivideByZero","Overflow","Return","Call","Throw","AllocFailed","SpanOperationFailed","CastFailed","SafepointBranchTaken","UnboxFailed","CallDelegate","Debugging","Icall","UnexpectedRetIp","LeaveCheck","SwitchSize","SwitchTarget"],ga={2:["V128_I1_NEGATION","V128_I2_NEGATION","V128_I4_NEGATION","V128_ONES_COMPLEMENT","V128_U2_WIDEN_LOWER","V128_U2_WIDEN_UPPER","V128_I1_CREATE_SCALAR","V128_I2_CREATE_SCALAR","V128_I4_CREATE_SCALAR","V128_I8_CREATE_SCALAR","V128_I1_EXTRACT_MSB","V128_I2_EXTRACT_MSB","V128_I4_EXTRACT_MSB","V128_I8_EXTRACT_MSB","V128_I1_CREATE","V128_I2_CREATE","V128_I4_CREATE","V128_I8_CREATE","SplatX1","SplatX2","SplatX4","SplatX8","NegateD1","NegateD2","NegateD4","NegateD8","NegateR4","NegateR8","SqrtR4","SqrtR8","CeilingR4","CeilingR8","FloorR4","FloorR8","TruncateR4","TruncateR8","RoundToNearestR4","RoundToNearestR8","NotANY","AnyTrueANY","AllTrueD1","AllTrueD2","AllTrueD4","AllTrueD8","PopCountU1","BitmaskD1","BitmaskD2","BitmaskD4","BitmaskD8","AddPairwiseWideningI1","AddPairwiseWideningU1","AddPairwiseWideningI2","AddPairwiseWideningU2","AbsI1","AbsI2","AbsI4","AbsI8","AbsR4","AbsR8","ConvertToSingleI4","ConvertToSingleU4","ConvertToSingleR8","ConvertToDoubleLowerI4","ConvertToDoubleLowerU4","ConvertToDoubleLowerR4","ConvertToInt32SaturateR4","ConvertToUInt32SaturateR4","ConvertToInt32SaturateR8","ConvertToUInt32SaturateR8","SignExtendWideningLowerD1","SignExtendWideningLowerD2","SignExtendWideningLowerD4","SignExtendWideningUpperD1","SignExtendWideningUpperD2","SignExtendWideningUpperD4","ZeroExtendWideningLowerD1","ZeroExtendWideningLowerD2","ZeroExtendWideningLowerD4","ZeroExtendWideningUpperD1","ZeroExtendWideningUpperD2","ZeroExtendWideningUpperD4","LoadVector128ANY","LoadScalarVector128X4","LoadScalarVector128X8","LoadScalarAndSplatVector128X1","LoadScalarAndSplatVector128X2","LoadScalarAndSplatVector128X4","LoadScalarAndSplatVector128X8","LoadWideningVector128I1","LoadWideningVector128U1","LoadWideningVector128I2","LoadWideningVector128U2","LoadWideningVector128I4","LoadWideningVector128U4"],3:["V128_I1_ADD","V128_I2_ADD","V128_I4_ADD","V128_R4_ADD","V128_I1_SUB","V128_I2_SUB","V128_I4_SUB","V128_R4_SUB","V128_BITWISE_AND","V128_BITWISE_OR","V128_BITWISE_EQUALITY","V128_BITWISE_INEQUALITY","V128_R4_FLOAT_EQUALITY","V128_R8_FLOAT_EQUALITY","V128_EXCLUSIVE_OR","V128_I1_MULTIPLY","V128_I2_MULTIPLY","V128_I4_MULTIPLY","V128_R4_MULTIPLY","V128_R4_DIVISION","V128_I1_LEFT_SHIFT","V128_I2_LEFT_SHIFT","V128_I4_LEFT_SHIFT","V128_I8_LEFT_SHIFT","V128_I1_RIGHT_SHIFT","V128_I2_RIGHT_SHIFT","V128_I4_RIGHT_SHIFT","V128_I1_URIGHT_SHIFT","V128_I2_URIGHT_SHIFT","V128_I4_URIGHT_SHIFT","V128_I8_URIGHT_SHIFT","V128_U1_NARROW","V128_U1_GREATER_THAN","V128_I1_LESS_THAN","V128_U1_LESS_THAN","V128_I2_LESS_THAN","V128_I1_EQUALS","V128_I2_EQUALS","V128_I4_EQUALS","V128_R4_EQUALS","V128_I8_EQUALS","V128_I1_EQUALS_ANY","V128_I2_EQUALS_ANY","V128_I4_EQUALS_ANY","V128_I8_EQUALS_ANY","V128_AND_NOT","V128_U2_LESS_THAN_EQUAL","V128_I1_SHUFFLE","V128_I2_SHUFFLE","V128_I4_SHUFFLE","V128_I8_SHUFFLE","ExtractScalarI1","ExtractScalarU1","ExtractScalarI2","ExtractScalarU2","ExtractScalarD4","ExtractScalarD8","ExtractScalarR4","ExtractScalarR8","SwizzleD1","AddD1","AddD2","AddD4","AddD8","AddR4","AddR8","SubtractD1","SubtractD2","SubtractD4","SubtractD8","SubtractR4","SubtractR8","MultiplyD2","MultiplyD4","MultiplyD8","MultiplyR4","MultiplyR8","DivideR4","DivideR8","DotI2","ShiftLeftD1","ShiftLeftD2","ShiftLeftD4","ShiftLeftD8","ShiftRightArithmeticD1","ShiftRightArithmeticD2","ShiftRightArithmeticD4","ShiftRightArithmeticD8","ShiftRightLogicalD1","ShiftRightLogicalD2","ShiftRightLogicalD4","ShiftRightLogicalD8","AndANY","AndNotANY","OrANY","XorANY","CompareEqualD1","CompareEqualD2","CompareEqualD4","CompareEqualD8","CompareEqualR4","CompareEqualR8","CompareNotEqualD1","CompareNotEqualD2","CompareNotEqualD4","CompareNotEqualD8","CompareNotEqualR4","CompareNotEqualR8","CompareLessThanI1","CompareLessThanU1","CompareLessThanI2","CompareLessThanU2","CompareLessThanI4","CompareLessThanU4","CompareLessThanI8","CompareLessThanR4","CompareLessThanR8","CompareLessThanOrEqualI1","CompareLessThanOrEqualU1","CompareLessThanOrEqualI2","CompareLessThanOrEqualU2","CompareLessThanOrEqualI4","CompareLessThanOrEqualU4","CompareLessThanOrEqualI8","CompareLessThanOrEqualR4","CompareLessThanOrEqualR8","CompareGreaterThanI1","CompareGreaterThanU1","CompareGreaterThanI2","CompareGreaterThanU2","CompareGreaterThanI4","CompareGreaterThanU4","CompareGreaterThanI8","CompareGreaterThanR4","CompareGreaterThanR8","CompareGreaterThanOrEqualI1","CompareGreaterThanOrEqualU1","CompareGreaterThanOrEqualI2","CompareGreaterThanOrEqualU2","CompareGreaterThanOrEqualI4","CompareGreaterThanOrEqualU4","CompareGreaterThanOrEqualI8","CompareGreaterThanOrEqualR4","CompareGreaterThanOrEqualR8","ConvertNarrowingSaturateSignedI2","ConvertNarrowingSaturateSignedI4","ConvertNarrowingSaturateUnsignedI2","ConvertNarrowingSaturateUnsignedI4","MultiplyWideningLowerI1","MultiplyWideningLowerI2","MultiplyWideningLowerI4","MultiplyWideningLowerU1","MultiplyWideningLowerU2","MultiplyWideningLowerU4","MultiplyWideningUpperI1","MultiplyWideningUpperI2","MultiplyWideningUpperI4","MultiplyWideningUpperU1","MultiplyWideningUpperU2","MultiplyWideningUpperU4","AddSaturateI1","AddSaturateU1","AddSaturateI2","AddSaturateU2","SubtractSaturateI1","SubtractSaturateU1","SubtractSaturateI2","SubtractSaturateU2","MultiplyRoundedSaturateQ15I2","MinI1","MinI2","MinI4","MinU1","MinU2","MinU4","MaxI1","MaxI2","MaxI4","MaxU1","MaxU2","MaxU4","AverageRoundedU1","AverageRoundedU2","MinR4","MinR8","MaxR4","MaxR8","PseudoMinR4","PseudoMinR8","PseudoMaxR4","PseudoMaxR8","StoreANY"],4:["V128_CONDITIONAL_SELECT","ReplaceScalarD1","ReplaceScalarD2","ReplaceScalarD4","ReplaceScalarD8","ReplaceScalarR4","ReplaceScalarR8","ShuffleD1","BitwiseSelectANY","LoadScalarAndInsertX1","LoadScalarAndInsertX2","LoadScalarAndInsertX4","LoadScalarAndInsertX8","StoreSelectedScalarX1","StoreSelectedScalarX2","StoreSelectedScalarX4","StoreSelectedScalarX8"]},ba={13:[65,0],14:[65,1]},ya={456:168,462:174,457:170,463:176},wa={508:[69,40,54],428:[106,40,54],430:[107,40,54],432:[107,40,54],436:[115,40,54],429:[124,41,55],431:[125,41,55],433:[125,41,55],437:[133,41,55],511:[106,40,54],515:[108,40,54],513:[124,41,55],517:[126,41,55],434:[140,42,56],435:[154,43,57],464:[178,40,56],467:[183,40,57],438:[184,40,57],465:[180,41,56],468:[185,41,57],439:[186,41,57],469:[187,42,57],466:[182,43,56],460:[1,52,55],461:[1,53,55],444:[113,40,54],452:[113,40,54],440:[117,40,54],448:[117,40,54],445:[113,41,54],453:[113,41,54],441:[117,41,54],449:[117,41,54],525:[116,40,54],526:[134,41,55],527:[117,40,54],528:[135,41,55],523:[118,40,54],524:[136,41,55],640:[119,40,54],641:[137,41,55],642:[120,40,54],643:[138,41,55],644:[103,40,54],646:[104,40,54],648:[105,40,54],645:[121,41,55],647:[122,41,55],649:[123,41,55],512:[106,40,54],516:[108,40,54],514:[124,41,55],518:[126,41,55],519:[113,40,54],520:[113,40,54],521:[114,40,54],522:[114,40,54]},ka={394:187,395:1,398:187,399:1,402:187,403:1,406:187,407:1,412:187,413:1,416:187,417:1,426:187,427:1,420:187,421:1,65536:187,65537:187,65535:187,65539:1,65540:1,65538:1},Sa={344:[106,40,54],362:[106,40,54],364:[106,40,54],348:[107,40,54],352:[108,40,54],366:[108,40,54],368:[108,40,54],356:[109,40,54],360:[110,40,54],380:[111,40,54],384:[112,40,54],374:[113,40,54],376:[114,40,54],378:[115,40,54],388:[116,40,54],390:[117,40,54],386:[118,40,54],345:[124,41,55],349:[125,41,55],353:[126,41,55],357:[127,41,55],381:[129,41,55],361:[128,41,55],385:[130,41,55],375:[131,41,55],377:[132,41,55],379:[133,41,55],389:[134,41,55],391:[135,41,55],387:[136,41,55],346:[146,42,56],350:[147,42,56],354:[148,42,56],358:[149,42,56],347:[160,43,57],351:[161,43,57],355:[162,43,57],359:[163,43,57],392:[70,40,54],396:[71,40,54],414:[72,40,54],400:[74,40,54],418:[76,40,54],404:[78,40,54],424:[73,40,54],410:[75,40,54],422:[77,40,54],408:[79,40,54],393:[81,41,54],397:[82,41,54],415:[83,41,54],401:[85,41,54],419:[87,41,54],405:[89,41,54],425:[84,41,54],411:[86,41,54],423:[88,41,54],409:[90,41,54]},va={187:392,207:396,195:400,215:410,199:414,223:424,191:404,211:408,203:418,219:422,231:[392,!1,!0],241:[396,!1,!0],235:[400,!1,!0],245:[410,!1,!0],237:[414,!1,!0],249:[424,!1,!0],233:[404,!1,!0],243:[408,!1,!0],239:[418,!1,!0],247:[422,!1,!0],251:[392,65,!0],261:[396,65,!0],255:[400,65,!0],265:[410,65,!0],257:[414,65,!0],269:[424,65,!0],253:[404,65,!0],263:[408,65,!0],259:[418,65,!0],267:[422,65,!0],188:393,208:397,196:401,216:411,200:415,224:425,192:405,212:409,204:419,220:423,252:[393,66,!0],256:[401,66,!0],266:[411,66,!0],258:[415,66,!0],270:[425,66,!0],254:[405,66,!0],264:[409,66,!0],260:[419,66,!0],268:[423,66,!0],189:394,209:65535,197:402,217:412,201:416,225:426,193:406,213:65536,205:420,221:65537,190:395,210:65538,198:403,218:413,202:417,226:427,194:407,214:65539,206:421,222:65540},Ua={599:[!0,!1,159],626:[!0,!0,145],586:[!0,!1,155],613:[!0,!0,141],592:[!0,!1,156],619:[!0,!0,142],603:[!0,!1,153],630:[!0,!0,139],581:[!0,!1,"acos"],608:[!0,!0,"acosf"],582:[!0,!1,"acosh"],609:[!0,!0,"acoshf"],587:[!0,!1,"cos"],614:[!0,!0,"cosf"],579:[!0,!1,"asin"],606:[!0,!0,"asinf"],580:[!0,!1,"asinh"],607:[!0,!0,"asinhf"],598:[!0,!1,"sin"],625:[!0,!0,"sinf"],583:[!0,!1,"atan"],610:[!0,!0,"atanf"],584:[!0,!1,"atanh"],611:[!0,!0,"atanhf"],601:[!0,!1,"tan"],628:[!0,!0,"tanf"],588:[!0,!1,"cbrt"],615:[!0,!0,"cbrtf"],590:[!0,!1,"exp"],617:[!0,!0,"expf"],593:[!0,!1,"log"],620:[!0,!0,"logf"],594:[!0,!1,"log2"],621:[!0,!0,"log2f"],595:[!0,!1,"log10"],622:[!0,!0,"log10f"],604:[!1,!1,164],631:[!1,!0,150],605:[!1,!1,165],632:[!1,!0,151],585:[!1,!1,"atan2"],612:[!1,!0,"atan2f"],596:[!1,!1,"pow"],623:[!1,!0,"powf"],383:[!1,!1,"fmod"],382:[!1,!0,"fmodf"]},Ta={560:[67,0,0],561:[67,192,0],562:[68,0,1],563:[68,193,1],564:[65,0,2],565:[66,0,3]},Ea={566:[74,0,0],567:[74,192,0],568:[75,0,1],569:[75,193,1],570:[72,0,2],571:[73,0,3]},xa={653:1,654:2,655:4,656:8},Ia={653:44,654:46,655:40,656:41},Aa={653:58,654:59,655:54,656:55},ja=new Set([20,21,22,23,24,25,26,27,28,29,30,80,81,82,83,84,85,86,87,88,89,90,91]),$a={51:[16,54],52:[16,54],53:[8,54],54:[8,54],55:[4,54],57:[4,56],56:[2,55],58:[2,57]},La={1:[16,40],2:[8,40],3:[4,40],5:[4,42],4:[2,41],6:[2,43]},Ra=new Set([81,84,85,86,87,82,83,88,89,90,91,92,93]),Ba={13:[16],14:[8],15:[4],16:[2]},Na={10:100,11:132,12:164,13:196,45:100,46:132,47:164,48:196},Oa={6:[44,23],7:[46,26],8:[40,28],9:[41,30]};function Ca(e,t){return O(e+2*t)}function Da(e,t){return z(e+2*t)}function Fa(e,t){return P(e+2*t)}function Pa(e,t){return F(e+2*t)}function Ma(e){return P(e+ea(4))}function za(e,t){const n=P(Ma(e)+ea(5));return P(n+t*gc)}function Va(e,t){const n=P(Ma(e)+ea(12));return P(n+t*gc)}function Wa(e,t,n){if(!n)return!1;for(let r=0;r=40||mt(!1,`Expected load opcode but got ${n}`),e.appendU8(n),void 0!==r)e.appendULeb(r);else if(253===n)throw new Error("PREFIX_simd ldloc without a simdOpcode");const o=ti(t,n,r);e.appendMemarg(t,o)}function oi(e,t,n,r){n>=54||mt(!1,`Expected store opcode but got ${n}`),e.appendU8(n),void 0!==r&&e.appendULeb(r);const o=ti(t>>>=0,n,r);e.appendMemarg(t,o),Za(t),void 0!==r&&Za(t+8)}function si(e,t,n){n>0&&Ka(t,n),e.lea("pLocals",t)}function ai(e,t,n,r){Ka(t,r),Js(e,t,0,r,!1)||(si(e,t,r),Xs(e,n,r))}function ii(e,t,n,r){if(Ka(t,r),Qs(e,t,n,r,!1))return!0;si(e,t,r),si(e,n,0),Ys(e,r)}function ci(e,t){return 0!==o.mono_jiterp_is_imethod_var_address_taken(Ma(e.frame),t)}function li(e,t,n,r){if(e.allowNullCheckOptimization&&Xa.has(t)&&!ci(e,t))return da(7,1),void(Qa===t?r&&e.local("cknull_ptr"):(ri(e,t,40),e.local("cknull_ptr",r?34:33),Qa=t));ri(e,t,40),e.local("cknull_ptr",34),e.appendU8(69),e.block(64,4),Ws(e,n,2),e.endBlock(),r&&e.local("cknull_ptr"),e.allowNullCheckOptimization&&!ci(e,t)?(Xa.set(t,n),Qa=t):Qa=-1}function pi(e,t,n){let r,s=54;const a=ba[n];if(a)e.local("pLocals"),e.appendU8(a[0]),r=a[1],e.appendLeb(r);else switch(n){case 15:e.local("pLocals"),r=Da(t,2),e.i32_const(r);break;case 16:e.local("pLocals"),r=Pa(t,2),e.i32_const(r);break;case 17:e.local("pLocals"),e.i52_const(0),s=55;break;case 19:e.local("pLocals"),e.appendU8(66),e.appendLebRef(t+4,!0),s=55;break;case 18:e.local("pLocals"),e.i52_const(Da(t,2)),s=55;break;case 20:e.local("pLocals"),e.appendU8(67),e.appendF32(function(e,t){return n=e+2*t,o.mono_wasm_get_f32_unaligned(n);var n}(t,2)),s=56;break;case 21:e.local("pLocals"),e.appendU8(68),e.appendF64(function(e,t){return n=e+2*t,o.mono_wasm_get_f64_unaligned(n);var n}(t,2)),s=57;break;default:return!1}e.appendU8(s);const i=Ca(t,1);return e.appendMemarg(i,2),Za(i),"number"==typeof r?Ha.set(i,{type:"i32",value:r}):Ha.delete(i),!0}function ui(e,t,n){let r=40,o=54;switch(n){case 74:r=44;break;case 75:r=45;break;case 76:r=46;break;case 77:r=47;break;case 78:r=45,o=58;break;case 79:r=47,o=59;break;case 80:break;case 81:r=41,o=55;break;case 82:{const n=Ca(t,3);return ii(e,Ca(t,1),Ca(t,2),n),!0}case 83:return ii(e,Ca(t,1),Ca(t,2),8),ii(e,Ca(t,3),Ca(t,4),8),!0;case 84:return ii(e,Ca(t,1),Ca(t,2),8),ii(e,Ca(t,3),Ca(t,4),8),ii(e,Ca(t,5),Ca(t,6),8),!0;case 85:return ii(e,Ca(t,1),Ca(t,2),8),ii(e,Ca(t,3),Ca(t,4),8),ii(e,Ca(t,5),Ca(t,6),8),ii(e,Ca(t,7),Ca(t,8),8),!0;default:return!1}return e.local("pLocals"),ri(e,Ca(t,2),r),oi(e,Ca(t,1),o),!0}function di(e,t,n,r){const o=r>=23&&r<=36||r>=50&&r<=60,s=Ca(n,o?2:1),a=Ca(n,3),i=Ca(n,o?1:2),c=e.allowNullCheckOptimization&&Xa.has(s)&&!ci(e,s);36!==r&&45!==r&&li(e,s,n,!1);let l=54,p=40;switch(r){case 23:p=44;break;case 24:p=45;break;case 25:p=46;break;case 26:p=47;break;case 31:case 41:case 27:break;case 43:case 29:p=42,l=56;break;case 44:case 30:p=43,l=57;break;case 37:case 38:l=58;break;case 39:case 40:l=59;break;case 28:case 42:p=41,l=55;break;case 45:return c||e.block(),e.local("pLocals"),e.i32_const(a),e.i32_const(s),e.i32_const(i),e.callImport("stfld_o"),c?(e.appendU8(26),da(7,1)):(e.appendU8(13),e.appendULeb(0),Ws(e,n,2),e.endBlock()),!0;case 32:{const t=Ca(n,4);return si(e,i,t),e.local("cknull_ptr"),0!==a&&(e.i32_const(a),e.appendU8(106)),Ys(e,t),!0}case 46:{const r=za(t,Ca(n,4));return e.local("cknull_ptr"),0!==a&&(e.i32_const(a),e.appendU8(106)),si(e,i,0),e.ptr_const(r),e.callImport("value_copy"),!0}case 47:{const t=Ca(n,4);return e.local("cknull_ptr"),0!==a&&(e.i32_const(a),e.appendU8(106)),si(e,i,0),Ys(e,t),!0}case 36:case 35:return e.local("pLocals"),ri(e,s,40),0!==a&&(e.i32_const(a),e.appendU8(106)),oi(e,i,l),!0;default:return!1}return o&&e.local("pLocals"),e.local("cknull_ptr"),o?(e.appendU8(p),e.appendMemarg(a,0),oi(e,i,l),!0):(ri(e,i,p),e.appendU8(l),e.appendMemarg(a,0),!0)}function fi(e,t,n,r){const o=r>=23&&r<=36||r>=50&&r<=60,s=Ca(n,1),a=za(t,Ca(n,2)),i=za(t,Ca(n,3));!function(e,t,n){e.block(),e.ptr_const(t),e.appendU8(45),e.appendMemarg(ea(0),0),e.appendU8(13),e.appendULeb(0),Ws(e,n,3),e.endBlock()}(e,a,n);let c=54,l=40;switch(r){case 50:l=44;break;case 51:l=45;break;case 52:l=46;break;case 53:l=47;break;case 58:case 65:case 54:break;case 67:case 56:l=42,c=56;break;case 68:case 57:l=43,c=57;break;case 61:case 62:c=58;break;case 63:case 64:c=59;break;case 55:case 66:l=41,c=55;break;case 69:return e.ptr_const(i),si(e,s,0),e.callImport("copy_ptr"),!0;case 59:{const t=Ca(n,4);return si(e,s,t),e.ptr_const(i),Ys(e,t),!0}case 72:return e.local("pLocals"),e.ptr_const(i),oi(e,s,c),!0;default:return!1}return o?(e.local("pLocals"),e.ptr_const(i),e.appendU8(l),e.appendMemarg(0,0),oi(e,s,c),!0):(e.ptr_const(i),ri(e,s,l),e.appendU8(c),e.appendMemarg(0,0),!0)}function _i(e,t,n){let r,o,s,a,i="math_lhs32",c="math_rhs32",l=!1;const p=ka[n];if(p){e.local("pLocals");const r=1==p;return ri(e,Ca(t,2),r?43:42),r||e.appendU8(p),ri(e,Ca(t,3),r?43:42),r||e.appendU8(p),e.i32_const(n),e.callImport("relop_fp"),oi(e,Ca(t,1),54),!0}switch(n){case 382:case 383:return wi(e,t,n);default:if(a=Sa[n],!a)return!1;a.length>3?(r=a[1],o=a[2],s=a[3]):(r=o=a[1],s=a[2])}switch(n){case 356:case 357:case 360:case 361:case 380:case 381:case 384:case 385:{const s=361===n||385===n||357===n||381===n;i=s?"math_lhs64":"math_lhs32",c=s?"math_rhs64":"math_rhs32",e.block(),ri(e,Ca(t,2),r),e.local(i,33),ri(e,Ca(t,3),o),e.local(c,34),l=!0,s&&(e.appendU8(80),e.appendU8(69)),e.appendU8(13),e.appendULeb(0),Ws(e,t,12),e.endBlock(),356!==n&&380!==n&&357!==n&&381!==n||(e.block(),e.local(c),s?e.i52_const(-1):e.i32_const(-1),e.appendU8(s?82:71),e.appendU8(13),e.appendULeb(0),e.local(i),e.appendU8(s?66:65),e.appendBoundaryValue(s?64:32,-1),e.appendU8(s?82:71),e.appendU8(13),e.appendULeb(0),Ws(e,t,13),e.endBlock());break}case 362:case 364:case 366:case 368:ri(e,Ca(t,2),r),e.local(i,34),ri(e,Ca(t,3),o),e.local(c,34),e.i32_const(n),e.callImport(364===n||368===n?"ckovr_u4":"ckovr_i4"),e.block(64,4),Ws(e,t,13),e.endBlock(),l=!0}return e.local("pLocals"),l?(e.local(i),e.local(c)):(ri(e,Ca(t,2),r),ri(e,Ca(t,3),o)),e.appendU8(a[0]),oi(e,Ca(t,1),s),!0}function mi(e,t,n){const r=wa[n];if(!r)return!1;const o=r[1],s=r[2];switch((n<472||n>507)&&e.local("pLocals"),n){case 428:case 430:ri(e,Ca(t,2),o),e.i32_const(1);break;case 432:e.i32_const(0),ri(e,Ca(t,2),o);break;case 436:ri(e,Ca(t,2),o),e.i32_const(-1);break;case 444:case 445:ri(e,Ca(t,2),o),41===o&&e.appendU8(167),e.i32_const(255);break;case 452:case 453:ri(e,Ca(t,2),o),41===o&&e.appendU8(167),e.i32_const(65535);break;case 440:case 441:ri(e,Ca(t,2),o),41===o&&e.appendU8(167),e.i32_const(24),e.appendU8(116),e.i32_const(24);break;case 448:case 449:ri(e,Ca(t,2),o),41===o&&e.appendU8(167),e.i32_const(16),e.appendU8(116),e.i32_const(16);break;case 429:case 431:ri(e,Ca(t,2),o),e.i52_const(1);break;case 433:e.i52_const(0),ri(e,Ca(t,2),o);break;case 437:ri(e,Ca(t,2),o),e.i52_const(-1);break;case 511:case 515:case 519:case 521:case 525:case 527:case 523:case 640:case 642:ri(e,Ca(t,2),o),e.i32_const(Da(t,3));break;case 512:case 516:case 520:case 522:ri(e,Ca(t,2),o),e.i32_const(Pa(t,3));break;case 513:case 517:case 526:case 528:case 524:case 641:case 643:ri(e,Ca(t,2),o),e.i52_const(Da(t,3));break;case 514:case 518:ri(e,Ca(t,2),o),e.i52_const(Pa(t,3));break;default:ri(e,Ca(t,2),o)}return 1!==r[0]&&e.appendU8(r[0]),oi(e,Ca(t,1),s),!0}function hi(e,t,n,r){const o=133===r?t+6:t+8,s=Va(n,O(o-2));e.local("pLocals"),e.ptr_const(o),e.appendU8(54),e.appendMemarg(s,0),e.callHandlerReturnAddresses.push(o)}function gi(e,t){const n=o.mono_jiterp_get_opcode_info(t,4),r=e+2+2*o.mono_jiterp_get_opcode_info(t,2);let s;switch(n){case 7:s=F(r);break;case 8:s=z(r);break;case 17:s=z(r+2);break;default:return}return s}function bi(e,t,n,r){const s=r>=227&&r<=270,a=gi(t,r);if("number"!=typeof a)return!1;switch(r){case 132:case 133:case 128:case 129:{const s=132===r||133===r,i=t+2*a;return a<=0?e.backBranchOffsets.indexOf(i)>=0?(e.backBranchTraceLevel>1&&Ve(`0x${t.toString(16)} performing backward branch to 0x${i.toString(16)}`),s&&hi(e,t,n,r),e.cfg.branch(i,!0,0),da(9,1),!0):(i1||e.cfg.trace>1)&&Ve(`0x${t.toString(16)} ${$s(r)} target 0x${i.toString(16)} before start of trace`):(e.backBranchTraceLevel>0||e.cfg.trace>0)&&Ve(`0x${t.toString(16)} ${$s(r)} target 0x${i.toString(16)} not found in list `+e.backBranchOffsets.map((e=>"0x"+e.toString(16))).join(", ")),o.mono_jiterp_boost_back_branch_target(i),Ws(e,i,5),da(10,1),!0):(e.branchTargets.add(i),s&&hi(e,t,n,r),e.cfg.branch(i,!1,0),!0)}case 145:case 143:case 229:case 227:case 146:case 144:{const n=146===r||144===r;ri(e,Ca(t,1),n?41:40),143===r||227===r?e.appendU8(69):144===r?e.appendU8(80):146===r&&(e.appendU8(80),e.appendU8(69));break}default:if(void 0===va[r])throw new Error(`Unsupported relop branch opcode: ${$s(r)}`);if(4!==o.mono_jiterp_get_opcode_info(r,1))throw new Error(`Unsupported long branch opcode: ${$s(r)}`)}const i=t+2*a;return a<0?e.backBranchOffsets.indexOf(i)>=0?(e.backBranchTraceLevel>1&&Ve(`0x${t.toString(16)} performing conditional backward branch to 0x${i.toString(16)}`),e.cfg.branch(i,!0,s?3:1),da(9,1)):(i1||e.cfg.trace>1)&&Ve(`0x${t.toString(16)} ${$s(r)} target 0x${i.toString(16)} before start of trace`):(e.backBranchTraceLevel>0||e.cfg.trace>0)&&Ve(`0x${t.toString(16)} ${$s(r)} target 0x${i.toString(16)} not found in list `+e.backBranchOffsets.map((e=>"0x"+e.toString(16))).join(", ")),o.mono_jiterp_boost_back_branch_target(i),e.block(64,4),Ws(e,i,5),e.endBlock(),da(10,1)):(e.branchTargets.add(i),e.cfg.branch(i,!1,s?3:1)),!0}function yi(e,t,n,r){const o=va[r];if(!o)return!1;const s=Array.isArray(o)?o[0]:o,a=Sa[s],i=ka[s];if(!a&&!i)return!1;const c=a?a[1]:1===i?43:42;return ri(e,Ca(t,1),c),a||1===i||e.appendU8(i),Array.isArray(o)&&o[1]?(e.appendU8(o[1]),e.appendLeb(Da(t,2))):ri(e,Ca(t,2),c),a||1==i||e.appendU8(i),a?e.appendU8(a[0]):(e.i32_const(s),e.callImport("relop_fp")),bi(e,t,n,r)}function wi(e,t,n){let r,o,s,a;const i=Ca(t,1),c=Ca(t,2),l=Ca(t,3),p=Ua[n];if(!p)return!1;if(r=p[0],o=p[1],"string"==typeof p[2]?s=p[2]:a=p[2],e.local("pLocals"),r){if(ri(e,c,o?42:43),a)e.appendU8(a);else{if(!s)throw new Error("internal error");e.callImport(s)}return oi(e,i,o?56:57),!0}if(ri(e,c,o?42:43),ri(e,l,o?42:43),a)e.appendU8(a);else{if(!s)throw new Error("internal error");e.callImport(s)}return oi(e,i,o?56:57),!0}function ki(e,t,n){const r=n>=87&&n<=112,o=n>=107&&n<=112,s=n>=95&&n<=106||n>=120&&n<=127||o,a=n>=101&&n<=106||n>=124&&n<=127||o;let i,c,l=-1,p=0,u=1;o?(i=Ca(t,1),c=Ca(t,2),l=Ca(t,3),p=Da(t,4),u=Da(t,5)):s?a?r?(i=Ca(t,1),c=Ca(t,2),p=Da(t,3)):(i=Ca(t,2),c=Ca(t,1),p=Da(t,3)):r?(i=Ca(t,1),c=Ca(t,2),l=Ca(t,3)):(i=Ca(t,3),c=Ca(t,1),l=Ca(t,2)):r?(c=Ca(t,2),i=Ca(t,1)):(c=Ca(t,1),i=Ca(t,2));let d,f=54;switch(n){case 87:case 95:case 101:case 107:d=44;break;case 88:case 96:case 102:case 108:d=45;break;case 89:case 97:case 103:case 109:d=46;break;case 90:case 98:case 104:case 110:d=47;break;case 113:case 120:case 124:d=40,f=58;break;case 114:case 121:case 125:d=40,f=59;break;case 91:case 99:case 105:case 111:case 115:case 122:case 126:case 119:d=40;break;case 93:case 117:d=42,f=56;break;case 94:case 118:d=43,f=57;break;case 92:case 100:case 106:case 112:case 116:case 123:case 127:d=41,f=55;break;default:return!1}const _=ni(e,c,40,!0,!0);return _||li(e,c,t,!1),r?(e.local("pLocals"),_?mt(ni(e,c,40,!1,!0),"Unknown jiterpreter cprop failure"):e.local("cknull_ptr"),o?(ri(e,l,40),0!==p&&(e.i32_const(p),e.appendU8(106),p=0),1!==u&&(e.i32_const(u),e.appendU8(108)),e.appendU8(106)):s&&l>=0?(ri(e,l,40),e.appendU8(106)):p<0&&(e.i32_const(p),e.appendU8(106),p=0),e.appendU8(d),e.appendMemarg(p,0),oi(e,i,f)):119===n?(_?mt(ni(e,c,40,!1,!0),"Unknown jiterpreter cprop failure"):e.local("cknull_ptr"),si(e,i,0),e.callImport("copy_ptr")):(_?mt(ni(e,c,40,!1,!0),"Unknown jiterpreter cprop failure"):e.local("cknull_ptr"),s&&l>=0?(ri(e,l,40),e.appendU8(106)):p<0&&(e.i32_const(p),e.appendU8(106),p=0),ri(e,i,d),e.appendU8(f),e.appendMemarg(p,0)),!0}function Si(e,t,n,r,o){e.block(),ri(e,r,40),e.local("index",34);let s="cknull_ptr";e.options.zeroPageOptimization&&aa()?(da(8,1),ri(e,n,40),s="src_ptr",e.local(s,34)):li(e,n,t,!0),e.appendU8(40),e.appendMemarg(ea(9),2),e.appendU8(73),e.appendU8(13),e.appendULeb(0),Ws(e,t,9),e.endBlock(),e.local(s),e.i32_const(ea(1)),e.appendU8(106),e.local("index"),1!=o&&(e.i32_const(o),e.appendU8(108)),e.appendU8(106)}function vi(e,t,n,r){const o=r<=328&&r>=315||341===r,s=Ca(n,o?2:1),a=Ca(n,o?1:3),i=Ca(n,o?3:2);let c,l,p=54;switch(r){case 341:return e.local("pLocals"),li(e,s,n,!0),e.appendU8(40),e.appendMemarg(ea(9),2),oi(e,a,54),!0;case 326:return e.local("pLocals"),l=Ca(n,4),Si(e,n,s,i,l),oi(e,a,54),!0;case 337:return e.block(),ri(e,Ca(n,1),40),ri(e,Ca(n,2),40),ri(e,Ca(n,3),40),e.callImport("stelemr_tc"),e.appendU8(13),e.appendULeb(0),Ws(e,n,10),e.endBlock(),!0;case 340:return Si(e,n,s,i,4),si(e,a,0),e.callImport("copy_ptr"),!0;case 324:case 320:case 319:case 333:l=4,c=40;break;case 315:l=1,c=44;break;case 316:l=1,c=45;break;case 330:case 329:l=1,c=40,p=58;break;case 317:l=2,c=46;break;case 318:l=2,c=47;break;case 332:case 331:l=2,c=40,p=59;break;case 322:case 335:l=4,c=42,p=56;break;case 321:case 334:l=8,c=41,p=55;break;case 323:case 336:l=8,c=43,p=57;break;case 325:{const t=Ca(n,4);return e.local("pLocals"),e.i32_const(Ca(n,1)),e.appendU8(106),Si(e,n,s,i,t),Ys(e,t),Ka(Ca(n,1),t),!0}case 338:{const r=Ca(n,5),o=za(t,Ca(n,4));return Si(e,n,s,i,r),si(e,a,0),e.ptr_const(o),e.callImport("value_copy"),!0}case 339:{const t=Ca(n,5);return Si(e,n,s,i,t),si(e,a,0),Ys(e,t),!0}default:return!1}return o?(e.local("pLocals"),Si(e,n,s,i,l),e.appendU8(c),e.appendMemarg(0,0),oi(e,a,p)):(Si(e,n,s,i,l),ri(e,a,c),e.appendU8(p),e.appendMemarg(0,0)),!0}function Ui(e,t,n){const r=`${t}_${n.toString(16)}`;return"object"!=typeof e.importedFunctions[r]&&e.defineImportedFunction("s",r,t,!1,n),r}function Ti(e,t,n,r,s,a){if(e.options.enableSimd&&ct.featureWasmSimd)switch(s){case 2:if(function(e,t,n){const r=o.mono_jiterp_get_simd_opcode(1,n),s=Na[n];if(s)return xi(e,t),e.appendSimd(s),oi(e,Ca(t,1),54),!0;if(r>=0)return Ra.has(n)?(e.local("pLocals"),ri(e,Ca(t,2),40),e.appendSimd(r,!0),e.appendMemarg(0,0),Ei(e,t)):(xi(e,t),e.appendSimd(r),Ei(e,t)),!0;switch(n){case 6:case 7:case 8:case 9:{const r=Oa[n];return e.local("pLocals"),e.v128_const(0),ri(e,Ca(t,2),r[0]),e.appendSimd(r[1]),e.appendU8(0),oi(e,Ca(t,1),253,11),!0}case 14:return xi(e,t,7),Ei(e,t),!0;case 15:return xi(e,t,8),Ei(e,t),!0;case 16:return xi(e,t,9),Ei(e,t),!0;case 17:return xi(e,t,10),Ei(e,t),!0;default:return!1}}(e,t,a))return!0;break;case 3:if(function(e,t,n){const r=o.mono_jiterp_get_simd_opcode(2,n);if(r>=0){const o=ja.has(n),s=$a[n];if(o)e.local("pLocals"),ri(e,Ca(t,2),253,0),ri(e,Ca(t,3),40),e.appendSimd(r),Ei(e,t);else if(Array.isArray(s)){const n=Ga(e,Ca(t,3)),o=s[0];if("number"!=typeof n)return He(`${e.functions[0].name}: Non-constant lane index passed to ExtractScalar`),!1;if(n>=o||n<0)return He(`${e.functions[0].name}: ExtractScalar index ${n} out of range (0 - ${o-1})`),!1;e.local("pLocals"),ri(e,Ca(t,2),253,0),e.appendSimd(r),e.appendU8(n),oi(e,Ca(t,1),s[1])}else Ii(e,t),e.appendSimd(r),Ei(e,t);return!0}switch(n){case 191:return ri(e,Ca(t,2),40),ri(e,Ca(t,3),253,0),e.appendSimd(11),e.appendMemarg(0,0),!0;case 10:case 11:return Ii(e,t),e.appendSimd(214),e.appendSimd(195),11===n&&e.appendU8(69),oi(e,Ca(t,1),54),!0;case 12:case 13:{const r=13===n,o=r?71:65;return e.local("pLocals"),ri(e,Ca(t,2),253,0),e.local("math_lhs128",34),ri(e,Ca(t,3),253,0),e.local("math_rhs128",34),e.appendSimd(o),e.local("math_lhs128"),e.local("math_lhs128"),e.appendSimd(o),e.local("math_rhs128"),e.local("math_rhs128"),e.appendSimd(o),e.appendSimd(80),e.appendSimd(77),e.appendSimd(80),e.appendSimd(r?195:163),oi(e,Ca(t,1),54),!0}case 47:{const n=Ca(t,3),r=Ga(e,n);return e.local("pLocals"),ri(e,Ca(t,2),253,0),"object"==typeof r?(e.appendSimd(12),e.appendBytes(r)):ri(e,n,253,0),e.appendSimd(14),Ei(e,t),!0}case 48:case 49:return function(e,t,n){const r=16/n,o=Ca(t,3),s=Ga(e,o);if(2!==r&&4!==r&&mt(!1,"Unsupported shuffle element size"),e.local("pLocals"),ri(e,Ca(t,2),253,0),"object"==typeof s){const t=new Uint8Array(bc),o=2===r?new Uint16Array(s.buffer,s.byteOffset,n):new Uint32Array(s.buffer,s.byteOffset,n);for(let e=0,s=0;e=0){const o=La[n],s=Ba[n];if(Array.isArray(o)){const n=o[0],s=Ga(e,Ca(t,3));if("number"!=typeof s)return He(`${e.functions[0].name}: Non-constant lane index passed to ReplaceScalar`),!1;if(s>=n||s<0)return He(`${e.functions[0].name}: ReplaceScalar index ${s} out of range (0 - ${n-1})`),!1;e.local("pLocals"),ri(e,Ca(t,2),253,0),ri(e,Ca(t,4),o[1]),e.appendSimd(r),e.appendU8(s),Ei(e,t)}else if(Array.isArray(s)){const n=s[0],o=Ga(e,Ca(t,4));if("number"!=typeof o)return He(`${e.functions[0].name}: Non-constant lane index passed to store method`),!1;if(o>=n||o<0)return He(`${e.functions[0].name}: Store lane ${o} out of range (0 - ${n-1})`),!1;ri(e,Ca(t,2),40),ri(e,Ca(t,3),253,0),e.appendSimd(r),e.appendMemarg(0,0),e.appendU8(o)}else!function(e,t){e.local("pLocals"),ri(e,Ca(t,2),253,0),ri(e,Ca(t,3),253,0),ri(e,Ca(t,4),253,0)}(e,t),e.appendSimd(r),Ei(e,t);return!0}switch(n){case 0:return e.local("pLocals"),ri(e,Ca(t,3),253,0),ri(e,Ca(t,4),253,0),ri(e,Ca(t,2),253,0),e.appendSimd(82),Ei(e,t),!0;case 7:{const n=Ga(e,Ca(t,4));if("object"!=typeof n)return He(`${e.functions[0].name}: Non-constant indices passed to PackedSimd.Shuffle`),!1;for(let t=0;t<32;t++){const r=n[t];if(r<0||r>31)return He(`${e.functions[0].name}: Shuffle lane index #${t} (${r}) out of range (0 - 31)`),!1}return e.local("pLocals"),ri(e,Ca(t,2),253,0),ri(e,Ca(t,3),253,0),e.appendSimd(13),e.appendBytes(n),Ei(e,t),!0}default:return!1}}(e,t,a))return!0}switch(n){case 652:if(e.options.enableSimd&&ct.featureWasmSimd){e.local("pLocals");const n=K().slice(t+4,t+4+bc);e.v128_const(n),Ei(e,t),Ha.set(Ca(t,1),{type:"v128",value:n})}else si(e,Ca(t,1),bc),e.ptr_const(t+4),Ys(e,bc);return!0;case 653:case 654:case 655:case 656:{const r=xa[n],o=bc/r,s=Ca(t,1),a=Ca(t,2),i=Ia[n],c=Aa[n];for(let t=0;t2;return e.local("pLocals"),li(e,Ca(t,2),t,!0),ri(e,Ca(t,3),n?41:40),e.appendAtomic(r[0],!1),e.appendMemarg(0,r[2]),0!==r[1]&&e.appendU8(r[1]),oi(e,Ca(t,1),n?55:54),!0}const o=Ea[n];if(o){const n=o[2]>2;return e.local("pLocals"),li(e,Ca(t,2),t,!0),ri(e,Ca(t,4),n?41:40),ri(e,Ca(t,3),n?41:40),e.appendAtomic(o[0],!1),e.appendMemarg(0,o[2]),0!==o[1]&&e.appendU8(o[1]),oi(e,Ca(t,1),n?55:54),!0}return!1}function ji(e,t,n){const r=Ja(t,271),o=function(e){271!==O(e)&&mt(!1,"decodeSwitch called on a non-switch");const t=Fa(e,2),n=[];for(let r=0;re.options.maxSwitchSize)s=!0;else for(const n of o)n>t&&e.branchTargets.add(n);if(s)return da(14,o.length),Ws(e,t,27),!0;const a=t+2*r;return e.branchTargets.add(a),e.block(),ri(e,Ca(t,1),40),e.cfg.jumpTable(o,a),e.endBlock(),Hs(e,t,n,28),!0}const $i=64;let Li,Ri,Bi,Ni=0;const Oi={};function Ci(){return Ri||(Ri=[oa("interp_entry_prologue",ta("mono_jiterp_interp_entry_prologue")),oa("interp_entry",ta("mono_jiterp_interp_entry")),oa("unbox",ta("mono_jiterp_object_unbox")),oa("stackval_from_data",ta("mono_jiterp_stackval_from_data"))],Ri)}let Di,Fi=class{constructor(e,t,n,r,o,s,a,i){this.imethod=e,this.method=t,this.argumentCount=n,this.unbox=o,this.hasThisReference=s,this.hasReturnValue=a,this.paramTypes=new Array(n);for(let e=0;ee&&(n=n.substring(n.length-e,n.length)),n=`${this.imethod.toString(16)}_${n}`}else n=`${this.imethod.toString(16)}_${this.hasThisReference?"i":"s"}${this.hasReturnValue?"_r":""}_${this.argumentCount}`;this.traceName=n}finally{e&&m(e)}}getTraceName(){return this.traceName||this.generateName(),this.traceName||"unknown"}getName(){return this.name||this.generateName(),this.name||"unknown"}};function Pi(){const e=[];let t=0;for(;0!=(t=o.mono_jiterp_tlqueue_next(1));){const n=Oi[t];n?e.push(n):Ve(`Failed to find corresponding info for method ptr ${t} from jit queue!`)}if(!e.length)return;let n=Li;if(n?n.clear():(Li=n=new Cs,n.defineType("unbox",{pMonoObject:127},127,!0),n.defineType("interp_entry_prologue",{pData:127,this_arg:127},127,!0),n.defineType("interp_entry",{pData:127,res:127},64,!0),n.defineType("stackval_from_data",{type:127,result:127,value:127},64,!0)),n.options.wasmBytesLimit<=ua(6))return;const r=zs();let s=0,a=!0,i=!1;try{n.appendU32(1836278016),n.appendU32(1);for(let t=0;tec[o.mono_jiterp_type_to_ldind(e)])),this.enableDirect=fa().directJitCalls&&!this.noWrapper&&this.wasmNativeReturnType&&(0===this.wasmNativeSignature.length||this.wasmNativeSignature.every((e=>e))),this.enableDirect&&(this.target=this.addr);let c=this.target.toString(16);const l=Gi++;this.name=`${this.enableDirect?"jcp":"jcw"}_${c}_${l.toString(16)}`}}function Zi(e){let t=Ji[e];return t||(e>=Ji.length&&(Ji.length=e+1),qi||(qi=qs()),Ji[e]=t=qi.get(e)),t}function Ki(){const e=[];let t=0;for(;0!=(t=o.mono_jiterp_tlqueue_next(0));){const n=Qi[t];if(n)for(let t=0;t0){o.mono_jiterp_register_jit_call_thunk(n.cinfo,r);for(let e=0;e>>0,this.index=t,this.isVerbose=!!n}get hitCount(){return o.mono_jiterp_get_trace_hit_count(this.index)}}const fc={};let _c=1;const mc={},hc={},gc=4,bc=16,yc=8;let wc,kc;const Sc=["asin","acos","atan","asinh","acosh","atanh","cos","sin","tan","cosh","sinh","tanh","exp","log","log2","log10","cbrt"],vc=["fmod","atan2","pow"],Uc=["asinf","acosf","atanf","asinhf","acoshf","atanhf","cosf","sinf","tanf","coshf","sinhf","tanhf","expf","logf","log2f","log10f","cbrtf"],Tc=["fmodf","atan2f","powf"];function Ec(e,t,n){if(o.mono_jiterp_trace_bailout(n),14===n)return e;const r=hc[t];if(!r)return void He(`trace info not found for ${t}`);let s=r.bailoutCounts;s||(r.bailoutCounts=s={});const a=s[n];return s[n]=a?a+1:1,r.bailoutCount?r.bailoutCount++:r.bailoutCount=1,e}function xc(){if(kc)return kc;kc=[oa("bailout",Ec),oa("copy_ptr",ta("mono_wasm_copy_managed_pointer")),oa("entry",ta("mono_jiterp_increase_entry_count")),oa("value_copy",ta("mono_jiterp_value_copy")),oa("gettype",ta("mono_jiterp_gettype_ref")),oa("castv2",ta("mono_jiterp_cast_v2")),oa("hasparent",ta("mono_jiterp_has_parent_fast")),oa("imp_iface",ta("mono_jiterp_implements_interface")),oa("imp_iface_s",ta("mono_jiterp_implements_special_interface")),oa("box",ta("mono_jiterp_box_ref")),oa("localloc",ta("mono_jiterp_localloc")),["ckovr_i4","overflow_check_i4",ta("mono_jiterp_overflow_check_i4")],["ckovr_u4","overflow_check_i4",ta("mono_jiterp_overflow_check_u4")],oa("newobj_i",ta("mono_jiterp_try_newobj_inlined")),oa("newstr",ta("mono_jiterp_try_newstr")),oa("newarr",ta("mono_jiterp_try_newarr")),oa("ld_del_ptr",ta("mono_jiterp_ld_delegate_method_ptr")),oa("ldtsflda",ta("mono_jiterp_ldtsflda")),oa("conv",ta("mono_jiterp_conv")),oa("relop_fp",ta("mono_jiterp_relop_fp")),oa("safepoint",ta("mono_jiterp_do_safepoint")),oa("hashcode",ta("mono_jiterp_get_hashcode")),oa("try_hash",ta("mono_jiterp_try_get_hashcode")),oa("hascsize",ta("mono_jiterp_object_has_component_size")),oa("hasflag",ta("mono_jiterp_enum_hasflag")),oa("array_rank",ta("mono_jiterp_get_array_rank")),["a_elesize","array_rank",ta("mono_jiterp_get_array_element_size")],oa("stfld_o",ta("mono_jiterp_set_object_field")),["stelemr_tc","stelemr",ta("mono_jiterp_stelem_ref")],oa("fma",ta("fma")),oa("fmaf",ta("fmaf"))],pc.length>0&&(kc.push(["trace_eip","trace_eip",Ic]),kc.push(["trace_args","trace_eip",Ac])),(ct.emscriptenBuildOptions.enableEventPipe||ct.emscriptenBuildOptions.enableDevToolsProfiler)&&(kc.push(oa("prof_enter",ta("mono_jiterp_prof_enter"))),kc.push(oa("prof_samplepoint",ta("mono_jiterp_prof_samplepoint"))),kc.push(oa("prof_leave",ta("mono_jiterp_prof_leave"))));const e=(e,t)=>{for(let n=0;n>>0,ac.operand2=t>>>0}function jc(e,t,n,r){if("number"==typeof r)o.mono_jiterp_adjust_abort_count(r,1),r=$s(r);else{let e=mc[r];"number"!=typeof e?e=1:e++,mc[r]=e}hc[e].abortReason=r}function $c(e){if(!ct.runtimeReady)return;if(ic||(ic=fa()),!ic.enableStats)return;const t=ua(9),n=ua(10),r=ua(7),s=ua(8),a=ua(3),i=ua(4),c=ua(2),l=ua(1),p=ua(0),u=ua(6),d=ua(11),f=ua(12),_=ua(13),m=ua(14),h=t/(t+n)*100,g=o.mono_jiterp_get_rejected_trace_count(),b=ic.eliminateNullChecks?r.toString():"off",y=ic.zeroPageOptimization?s.toString()+(aa()?"":" (disabled)"):"off",w=ic.enableBackwardBranches?`emitted: ${t}, failed: ${n} (${h.toFixed(1)}%)`:": off",k=a?ic.directJitCalls?`direct jit calls: ${i} (${(i/a*100).toFixed(1)}%)`:"direct jit calls: off":"";if(Ve(`// jitted ${u}b; ${l} traces (${(l/p*100).toFixed(1)}%) (${g} rejected); ${a} jit_calls; ${c} interp_entries`),Ve(`// cknulls pruned: ${b}, fused: ${y}; back-brs ${w}; switch tgts ${_}/${m+_}; ${k}`),Ve(`// time: ${0|d}ms generating, ${0|f}ms compiling wasm.`),!e){if(ic.countBailouts){const e=Object.values(hc);e.sort(((e,t)=>(t.bailoutCount||0)-(e.bailoutCount||0)));for(let e=0;et.hitCount-e.hitCount)),Ve("// hottest failed traces:");for(let e=0,n=0;e=0)){if(t[e].abortReason){if(t[e].abortReason.startsWith("mono_icall_")||t[e].abortReason.startsWith("ret."))continue;switch(t[e].abortReason){case"trace-too-small":case"trace-too-big":case"call":case"callvirt.fast":case"calli.nat.fast":case"calli.nat":case"call.delegate":case"newobj":case"newobj_vt":case"newobj_slow":case"switch":case"rethrow":case"end-of-body":case"ret":case"intrins_marvin_block":case"intrins_ascii_chars_to_uppercase":continue}}n++,Ve(`${t[e].name} @${t[e].ip} (${t[e].hitCount} hits) ${t[e].abortReason}`)}const n=[];for(const t in e)n.push([t,e[t]]);n.sort(((e,t)=>t[1]-e[1])),Ve("// heat:");for(let e=0;e0?mc[t]=n:delete mc[t]}const e=Object.keys(mc);e.sort(((e,t)=>mc[t]-mc[e]));for(let t=0;te.toString(16).padStart(2,"0"))).join("")}`}async function Cc(e){const t=lt.config.resources.lazyAssembly;if(!t)throw new Error("No assemblies have been marked as lazy-loadable. Use the 'BlazorWebAssemblyLazyLoad' item group in your project file to enable lazy loading an assembly.");let n=e;e.endsWith(".dll")?n=e.substring(0,e.length-4):e.endsWith(".wasm")&&(n=e.substring(0,e.length-5));const r=n+".dll",o=n+".wasm";let s=null;for(let e=0;eObject.prototype.hasOwnProperty.call(t,e))).map((e=>{const n=[];for(let r=0;re.concat(t)),new Array).map((async e=>{const t=await e;!function(e){lt.assert_runtime_running();const t=Ke.stackSave();try{const t=$n(3),n=Ln(t,2);Wn(n,21),vo(n,e,4),kn(yn.LoadSatelliteAssembly,t)}finally{lt.is_runtime_running()&&Ke.stackRestore(t)}}(new Uint8Array(t))})))}function Fc(e){if(e===l)return null;const t=o.mono_wasm_read_as_bool_or_null_unsafe(e);return 0!==t&&(1===t||null)}function Pc(e){if(e)try{(e=e.toLocaleLowerCase().replace("_","-")).startsWith("zh-")&&(e=e.replace("-chs","-Hans").replace("-cht","-Hant"));const t=Intl.getCanonicalLocales(e);return t.length>0?t[0]:void 0}catch(e){return}}const Mc=[function(e){Xo&&(globalThis.clearTimeout(Xo),Xo=void 0),Xo=Ke.safeSetTimeout(mono_wasm_schedule_timer_tick,e)},function(e,t,n,r,o){if(!0!==ct.mono_wasm_runtime_is_ready)return;const s=K(),a=0!==e?Le(e).concat(".dll"):"",i=ht(new Uint8Array(s.buffer,oe(t,0),n));let c;r&&(c=ht(new Uint8Array(s.buffer,oe(r,0),o))),Lt({eventName:"AssemblyLoaded",assembly_name:a,assembly_b64:i,pdb_b64:c})},function(e,t){const n=Le(t);et.logging&&"function"==typeof et.logging.debugger&&et.logging.debugger(e,n)},function(e,t,n,r){const o={res_ok:e,res:{id:t,value:ht(new Uint8Array(K().buffer,oe(n,0),r))}};bt.has(t)&&We(`Adding an id (${t}) that already exists in commands_received`),bt.set(t,o)},function mono_wasm_fire_debugger_agent_message_with_data(e,t){mono_wasm_fire_debugger_agent_message_with_data_to_pause(ht(new Uint8Array(K().buffer,oe(e,0),t)))},mono_wasm_fire_debugger_agent_message_with_data_to_pause,function(){Jo||(Jo=Ke.safeSetTimeout(Ko,0))},function(e,t,n,r,s,a,i,c){if(n||mt(!1,"expected instruction pointer"),n>>>=0,e>>>=0,t>>>=0,s>>>=0,ic||(ic=fa()),!ic.enableTraces)return 1;if(ic.wasmBytesLimit<=ua(6))return 1;if(cc)return 1;let l,p=hc[r];if(p||(hc[r]=p=new dc(n,r,i)),da(0,1),ic.estimateHeat||pc.length>0||p.isVerbose){const e=o.mono_wasm_method_get_full_name(t);l=Le(e),m(e)}const u=Le(o.mono_wasm_method_get_name(t));p.name=l||u;let d=ic.noExitBackwardBranches?function(e,t,n){const r=t+n,o=[],s=(e-t)/2;for(;e=s&&o.push(r)}switch(r){case 132:case 133:o.push(n+a)}}e+=2*a}return o.length<=0?null:new Uint16Array(o)}(n,s,a):null;if(d&&n!==s){const e=(n-s)/2;let t=!1;for(let n=0;n=e){t=!0;break}t||(d=null)}const f=function(e,t,n,r,s,a,i,c,l){let p=wc;p?p.clear():(wc=p=new Cs,function(e){e.defineType("trace",{frame:127,pLocals:127,cinfo:127,ip:127},127,!0),e.defineType("bailout",{retval:127,base:127,reason:127},127,!0),e.defineType("copy_ptr",{dest:127,src:127},64,!0),e.defineType("value_copy",{dest:127,src:127,klass:127},64,!0),e.defineType("entry",{imethod:127},127,!0),e.defineType("strlen",{ppString:127,pResult:127},127,!0),e.defineType("getchr",{ppString:127,pIndex:127,pResult:127},127,!0),e.defineType("getspan",{destination:127,span:127,index:127,element_size:127},127,!0),e.defineType("overflow_check_i4",{lhs:127,rhs:127,opcode:127},127,!0),e.defineType("mathop_d_d",{value:124},124,!0),e.defineType("mathop_dd_d",{lhs:124,rhs:124},124,!0),e.defineType("mathop_f_f",{value:125},125,!0),e.defineType("mathop_ff_f",{lhs:125,rhs:125},125,!0),e.defineType("fmaf",{x:125,y:125,z:125},125,!0),e.defineType("fma",{x:124,y:124,z:124},124,!0),e.defineType("trace_eip",{traceId:127,eip:127},64,!0),e.defineType("newobj_i",{ppDestination:127,vtable:127},127,!0),e.defineType("newstr",{ppDestination:127,length:127},127,!0),e.defineType("newarr",{ppDestination:127,vtable:127,length:127},127,!0),e.defineType("localloc",{destination:127,len:127,frame:127},64,!0),e.defineType("ld_del_ptr",{ppDestination:127,ppSource:127},64,!0),e.defineType("ldtsflda",{ppDestination:127,offset:127},64,!0),e.defineType("gettype",{destination:127,source:127},127,!0),e.defineType("castv2",{destination:127,source:127,klass:127,opcode:127},127,!0),e.defineType("hasparent",{klass:127,parent:127},127,!0),e.defineType("imp_iface",{vtable:127,klass:127},127,!0),e.defineType("imp_iface_s",{obj:127,vtable:127,klass:127},127,!0),e.defineType("box",{vtable:127,destination:127,source:127,vt:127},64,!0),e.defineType("conv",{destination:127,source:127,opcode:127},127,!0),e.defineType("relop_fp",{lhs:124,rhs:124,opcode:127},127,!0),e.defineType("safepoint",{frame:127,ip:127},64,!0),e.defineType("prof_enter",{frame:127,ip:127},64,!0),e.defineType("prof_samplepoint",{frame:127,ip:127},64,!0),e.defineType("prof_leave",{frame:127,ip:127},64,!0),e.defineType("hashcode",{ppObj:127},127,!0),e.defineType("try_hash",{ppObj:127},127,!0),e.defineType("hascsize",{ppObj:127},127,!0),e.defineType("hasflag",{klass:127,dest:127,sp1:127,sp2:127},64,!0),e.defineType("array_rank",{destination:127,source:127},127,!0),e.defineType("stfld_o",{locals:127,fieldOffsetBytes:127,targetLocalOffsetBytes:127,sourceLocalOffsetBytes:127},127,!0),e.defineType("notnull",{ptr:127,expected:127,traceIp:127,ip:127},64,!0),e.defineType("stelemr",{o:127,aindex:127,ref:127},127,!0),e.defineType("simd_p_p",{arg0:127,arg1:127},64,!0),e.defineType("simd_p_pp",{arg0:127,arg1:127,arg2:127},64,!0),e.defineType("simd_p_ppp",{arg0:127,arg1:127,arg2:127,arg3:127},64,!0);const t=xc();for(let n=0;ni.indexOf(e)>=0))>=0;b&&!i&&mt(!1,"Expected methodFullName if trace is instrumented");const y=b?_c++:0;b&&(Ve(`instrumenting: ${i}`),fc[y]=new uc(i)),p.compressImportNames=!b;try{p.appendU32(1836278016),p.appendU32(1),p.generateTypeSection();const t={disp:127,cknull_ptr:127,dest_ptr:127,src_ptr:127,memop_dest:127,memop_src:127,index:127,count:127,math_lhs32:127,math_rhs32:127,math_lhs64:126,math_rhs64:126,temp_f32:125,temp_f64:124};p.options.enableSimd&&(t.v128_zero=123,t.math_lhs128=123,t.math_rhs128=123);let s=!0,i=0;if(p.defineFunction({type:"trace",name:d,export:!0,locals:t},(()=>{switch(p.base=n,p.traceIndex=a,p.frame=e,O(n)){case 674:case 675:case 677:case 676:break;default:throw new Error(`Expected *ip to be a jiterpreter opcode but it was ${O(n)}`)}return p.cfg.initialize(r,c,b?1:0),i=function(e,t,n,r,s,a,i,c){let l=!0,p=!1,u=!1,d=!1,f=0,_=0,m=0;Ya(),a.backBranchTraceLevel=i?2:0;let h=a.cfg.entry(n);for(;n&&n;){if(a.cfg.ip=n,n>=s){jc(a.traceIndex,0,0,"end-of-body"),i&&Ve(`instrumented trace ${t} exited at end of body @${n.toString(16)}`);break}const g=a.options.maxModuleSize-300-a.bytesGeneratedSoFar-a.cfg.overheadBytes;if(a.size>=g){jc(a.traceIndex,0,0,"trace-too-big"),i&&Ve(`instrumented trace ${t} exited because of size limit at @${n.toString(16)} (spaceLeft=${g}b)`);break}let b=O(n);const y=o.mono_jiterp_get_opcode_info(b,2),w=o.mono_jiterp_get_opcode_info(b,3),k=Ja(n,b),S=b>=657&&b<=659,v=S?b-657+2:0,U=S?Ca(n,1+v):0;b>=0&&b<691||mt(!1,`invalid opcode ${b}`);const T=S?ga[v][U]:$s(b),E=n,x=a.options.noExitBackwardBranches&&Wa(n,r,c),I=a.branchTargets.has(n),A=x||I||l&&c,j=m+_+a.branchTargets.size;let $=!1,L=ra(b);switch(x&&(a.backBranchTraceLevel>1&&Ve(`${t} recording back branch target 0x${n.toString(16)}`),a.backBranchOffsets.push(n)),A&&(u=!1,d=!1,ei(a,n,x),p=!0,Ya(),m=0),L<-1&&p&&(L=-2===L?2:0),l=!1,271===b||(lc.indexOf(b)>=0?(Ws(a,n,23),b=678):u&&(b=678)),b){case 271:ji(a,n,j)||(n=0);break;case 678:u&&(d||a.appendU8(0),d=!0);break;case 313:case 314:ai(a,Ca(n,1),0,Ca(n,2));break;case 312:si(a,Ca(n,1),0),ri(a,Ca(n,2),40),a.local("frame"),a.callImport("localloc");break;case 285:ri(a,Ca(n,1),40),a.i32_const(0),ri(a,Ca(n,2),40),a.appendU8(252),a.appendU8(11),a.appendU8(0);break;case 286:ri(a,Ca(n,1),40),Xs(a,0,Ca(n,2));break;case 310:{const e=Ca(n,3),t=Ca(n,2),r=Ca(n,1),o=Ga(a,e);0!==o&&("number"!=typeof o?(ri(a,e,40),a.local("count",34),a.block(64,4)):(a.i32_const(o),a.local("count",33)),ri(a,r,40),a.local("dest_ptr",34),a.appendU8(69),ri(a,t,40),a.local("src_ptr",34),a.appendU8(69),a.appendU8(114),a.block(64,4),Ws(a,n,2),a.endBlock(),"number"==typeof o&&Qs(a,0,0,o,!1,"dest_ptr","src_ptr")||(a.local("dest_ptr"),a.local("src_ptr"),a.local("count"),a.appendU8(252),a.appendU8(10),a.appendU8(0),a.appendU8(0)),"number"!=typeof o&&a.endBlock());break}case 311:{const e=Ca(n,3),t=Ca(n,2);li(a,Ca(n,1),n,!0),ri(a,t,40),ri(a,e,40),a.appendU8(252),a.appendU8(11),a.appendU8(0);break}case 143:case 145:case 227:case 229:case 144:case 146:case 129:case 132:case 133:bi(a,n,e,b)?p=!0:n=0;break;case 538:{const e=Ca(n,2),t=Ca(n,1);e!==t?(a.local("pLocals"),li(a,e,n,!0),oi(a,t,54)):li(a,e,n,!1),a.allowNullCheckOptimization&&Xa.set(t,n),$=!0;break}case 638:case 639:{const t=P(e+ea(4));a.ptr_const(t),a.callImport("entry"),a.block(64,4),Ws(a,n,1),a.endBlock();break}case 676:L=0;break;case 138:break;case 86:{a.local("pLocals");const e=Ca(n,2),r=ci(a,e),o=Ca(n,1),s=Ca(n,3);r||He(`${t}: Expected local ${e} to have address taken flag`),si(a,e,s),oi(a,o,54),Ha.set(o,{type:"ldloca",offset:e}),$=!0;break}case 272:case 300:case 301:case 556:{a.local("pLocals");let t=za(e,Ca(n,2));300===b&&(t=o.mono_jiterp_imethod_to_ftnptr(t)),a.ptr_const(t),oi(a,Ca(n,1),54);break}case 305:{const t=za(e,Ca(n,3));ri(a,Ca(n,1),40),ri(a,Ca(n,2),40),a.ptr_const(t),a.callImport("value_copy");break}case 306:{const e=Ca(n,3);ri(a,Ca(n,1),40),ri(a,Ca(n,2),40),Ys(a,e);break}case 307:{const e=Ca(n,3);si(a,Ca(n,1),e),li(a,Ca(n,2),n,!0),Ys(a,e);break}case 308:{const t=za(e,Ca(n,3));ri(a,Ca(n,1),40),si(a,Ca(n,2),0),a.ptr_const(t),a.callImport("value_copy");break}case 309:{const e=Ca(n,3);ri(a,Ca(n,1),40),si(a,Ca(n,2),0),Ys(a,e);break}case 540:a.local("pLocals"),li(a,Ca(n,2),n,!0),a.appendU8(40),a.appendMemarg(ea(2),2),oi(a,Ca(n,1),54);break;case 539:{a.block(),ri(a,Ca(n,3),40),a.local("index",34);let e="cknull_ptr";a.options.zeroPageOptimization&&aa()?(da(8,1),ri(a,Ca(n,2),40),e="src_ptr",a.local(e,34)):li(a,Ca(n,2),n,!0),a.appendU8(40),a.appendMemarg(ea(2),2),a.appendU8(72),a.local("index"),a.i32_const(0),a.appendU8(78),a.appendU8(113),a.appendU8(13),a.appendULeb(0),Ws(a,n,11),a.endBlock(),a.local("pLocals"),a.local("index"),a.i32_const(2),a.appendU8(108),a.local(e),a.appendU8(106),a.appendU8(47),a.appendMemarg(ea(3),1),oi(a,Ca(n,1),54);break}case 342:case 343:{const e=Da(n,4);a.block(),ri(a,Ca(n,3),40),a.local("index",34);let t="cknull_ptr";342===b?li(a,Ca(n,2),n,!0):(si(a,Ca(n,2),0),t="src_ptr",a.local(t,34)),a.appendU8(40),a.appendMemarg(ea(7),2),a.appendU8(73),a.local("index"),a.i32_const(0),a.appendU8(78),a.appendU8(113),a.appendU8(13),a.appendULeb(0),Ws(a,n,18),a.endBlock(),a.local("pLocals"),a.local(t),a.appendU8(40),a.appendMemarg(ea(8),2),a.local("index"),a.i32_const(e),a.appendU8(108),a.appendU8(106),oi(a,Ca(n,1),54);break}case 664:a.block(),ri(a,Ca(n,3),40),a.local("count",34),a.i32_const(0),a.appendU8(78),a.appendU8(13),a.appendULeb(0),Ws(a,n,18),a.endBlock(),si(a,Ca(n,1),16),a.local("dest_ptr",34),ri(a,Ca(n,2),40),a.appendU8(54),a.appendMemarg(0,0),a.local("dest_ptr"),a.local("count"),a.appendU8(54),a.appendMemarg(4,0);break;case 577:si(a,Ca(n,1),4),si(a,Ca(n,2),4),a.callImport("ld_del_ptr");break;case 73:si(a,Ca(n,1),4),a.ptr_const(Pa(n,2)),a.callImport("ldtsflda");break;case 663:a.block(),si(a,Ca(n,1),4),si(a,Ca(n,2),0),a.callImport("gettype"),a.appendU8(13),a.appendULeb(0),Ws(a,n,2),a.endBlock();break;case 660:{const t=za(e,Ca(n,4));a.ptr_const(t),si(a,Ca(n,1),4),si(a,Ca(n,2),0),si(a,Ca(n,3),0),a.callImport("hasflag");break}case 669:{const e=ea(1);a.local("pLocals"),li(a,Ca(n,2),n,!0),a.i32_const(e),a.appendU8(106),oi(a,Ca(n,1),54);break}case 661:a.local("pLocals"),si(a,Ca(n,2),0),a.callImport("hashcode"),oi(a,Ca(n,1),54);break;case 662:a.local("pLocals"),si(a,Ca(n,2),0),a.callImport("try_hash"),oi(a,Ca(n,1),54);break;case 665:a.local("pLocals"),si(a,Ca(n,2),0),a.callImport("hascsize"),oi(a,Ca(n,1),54);break;case 670:a.local("pLocals"),ri(a,Ca(n,2),40),a.local("math_lhs32",34),ri(a,Ca(n,3),40),a.appendU8(115),a.i32_const(2),a.appendU8(116),a.local("math_rhs32",33),a.local("math_lhs32"),a.i32_const(327685),a.appendU8(106),a.i32_const(10485920),a.appendU8(114),a.i32_const(1703962),a.appendU8(106),a.i32_const(-8388737),a.appendU8(114),a.local("math_rhs32"),a.appendU8(113),a.appendU8(69),oi(a,Ca(n,1),54);break;case 541:case 542:a.block(),si(a,Ca(n,1),4),si(a,Ca(n,2),0),a.callImport(541===b?"array_rank":"a_elesize"),a.appendU8(13),a.appendULeb(0),Ws(a,n,2),a.endBlock();break;case 289:case 290:{const t=za(e,Ca(n,3)),r=o.mono_jiterp_is_special_interface(t),s=289===b,i=Ca(n,1);if(!t){jc(a.traceIndex,0,0,"null-klass"),n=0;continue}a.block(),a.options.zeroPageOptimization&&aa()?(ri(a,Ca(n,2),40),a.local("dest_ptr",34),da(8,1)):(a.block(),ri(a,Ca(n,2),40),a.local("dest_ptr",34),a.appendU8(13),a.appendULeb(0),a.local("pLocals"),a.i32_const(0),oi(a,i,54),a.appendU8(12),a.appendULeb(1),a.endBlock(),a.local("dest_ptr")),r&&a.local("dest_ptr"),a.appendU8(40),a.appendMemarg(ea(14),0),a.ptr_const(t),a.callImport(r?"imp_iface_s":"imp_iface"),s&&(a.local("dest_ptr"),a.appendU8(69),a.appendU8(114)),a.block(64,4),a.local("pLocals"),a.local("dest_ptr"),oi(a,i,54),a.appendU8(5),s?Ws(a,n,19):(a.local("pLocals"),a.i32_const(0),oi(a,i,54)),a.endBlock(),a.endBlock();break}case 291:case 292:case 287:case 288:{const t=za(e,Ca(n,3)),r=291===b||292===b,o=287===b||291===b,s=Ca(n,1);if(!t){jc(a.traceIndex,0,0,"null-klass"),n=0;continue}a.block(),a.options.zeroPageOptimization&&aa()?(ri(a,Ca(n,2),40),a.local("dest_ptr",34),da(8,1)):(a.block(),ri(a,Ca(n,2),40),a.local("dest_ptr",34),a.appendU8(13),a.appendULeb(0),a.local("pLocals"),a.i32_const(0),oi(a,s,54),a.appendU8(12),a.appendULeb(1),a.endBlock(),a.local("dest_ptr")),a.appendU8(40),a.appendMemarg(ea(14),0),a.appendU8(40),a.appendMemarg(ea(15),0),r&&a.local("src_ptr",34),a.ptr_const(t),a.appendU8(70),a.block(64,4),a.local("pLocals"),a.local("dest_ptr"),oi(a,s,54),a.appendU8(5),r?(a.local("src_ptr"),a.ptr_const(t),a.callImport("hasparent"),o&&(a.local("dest_ptr"),a.appendU8(69),a.appendU8(114)),a.block(64,4),a.local("pLocals"),a.local("dest_ptr"),oi(a,s,54),a.appendU8(5),o?Ws(a,n,19):(a.local("pLocals"),a.i32_const(0),oi(a,s,54)),a.endBlock()):(si(a,Ca(n,1),4),a.local("dest_ptr"),a.ptr_const(t),a.i32_const(b),a.callImport("castv2"),a.appendU8(69),a.block(64,4),Ws(a,n,19),a.endBlock()),a.endBlock(),a.endBlock();break}case 295:case 296:a.ptr_const(za(e,Ca(n,3))),si(a,Ca(n,1),4),si(a,Ca(n,2),0),a.i32_const(296===b?1:0),a.callImport("box");break;case 299:{const t=za(e,Ca(n,3)),r=ea(17),o=Ca(n,1),s=P(t+r)>>>0;if(!t||!s){jc(a.traceIndex,0,0,"null-klass"),n=0;continue}a.options.zeroPageOptimization&&aa()?(ri(a,Ca(n,2),40),a.local("dest_ptr",34),da(8,1)):(li(a,Ca(n,2),n,!0),a.local("dest_ptr",34)),a.appendU8(40),a.appendMemarg(ea(14),0),a.appendU8(40),a.appendMemarg(ea(15),0),a.local("src_ptr",34),a.appendU8(40),a.appendMemarg(r,0),a.ptr_const(s),a.appendU8(70),a.local("src_ptr"),a.appendU8(45),a.appendMemarg(ea(16),0),a.appendU8(69),a.appendU8(113),a.block(64,4),a.local("pLocals"),a.local("dest_ptr"),a.i32_const(ea(18)),a.appendU8(106),oi(a,o,54),a.appendU8(5),Ws(a,n,21),a.endBlock();break}case 294:a.block(),si(a,Ca(n,1),4),ri(a,Ca(n,2),40),a.callImport("newstr"),a.appendU8(13),a.appendULeb(0),Ws(a,n,17),a.endBlock();break;case 293:{a.block(),si(a,Ca(n,1),4);const t=za(e,Ca(n,3));a.ptr_const(t),ri(a,Ca(n,2),40),a.callImport("newarr"),a.appendU8(13),a.appendULeb(0),Ws(a,n,17),a.endBlock();break}case 283:a.block(),si(a,Ca(n,1),4),a.ptr_const(za(e,Ca(n,2))),a.callImport("newobj_i"),a.appendU8(13),a.appendULeb(0),Ws(a,n,17),a.endBlock();break;case 282:case 284:case 544:case 543:p?(Hs(a,n,j,15),u=!0,L=0):n=0;break;case 546:case 547:case 548:case 549:case 545:p?(Hs(a,n,j,545==b?22:15),u=!0):n=0;break;case 137:case 134:Ws(a,n,16),u=!0;break;case 130:case 131:Ws(a,n,26),u=!0;break;case 136:if(a.callHandlerReturnAddresses.length>0&&a.callHandlerReturnAddresses.length<=3){const t=Va(e,Ca(n,1));a.local("pLocals"),a.appendU8(40),a.appendMemarg(t,0),a.local("index",33);for(let e=0;e=3&&b<=12||b>=509&&b<=510?p||a.options.countBailouts?(Ws(a,n,14),u=!0):n=0:b>=13&&b<=21?pi(a,n,b)?$=!0:n=0:b>=74&&b<=85?ui(a,n,b)||(n=0):b>=344&&b<=427?_i(a,n,b)||(n=0):wa[b]?mi(a,n,b)||(n=0):va[b]?yi(a,n,e,b)?p=!0:n=0:b>=23&&b<=49?di(a,e,n,b)||(n=0):b>=50&&b<=73?fi(a,e,n,b)||(n=0):b>=87&&b<=127?ki(a,n,b)||(n=0):b>=579&&b<=632?wi(a,n,b)||(n=0):b>=315&&b<=341?vi(a,e,n,b)||(n=0):b>=227&&b<=270?a.branchTargets.size>0?(Hs(a,n,j,8),u=!0):n=0:b>=652&&b<=659?(a.containsSimd=!0,Ti(a,n,b,T,v,U)?$=!0:n=0):b>=559&&b<=571?(a.containsAtomics=!0,Ai(a,n,b)||(n=0)):0===L||(n=0)}if(n){if(!$){const e=n+2;for(let t=0;t0&&(e+=" -> ");for(let n=0;n0&&(p?m++:_++,f+=L),(n+=2*k)<=s&&(h=n)}else i&&Ve(`instrumented trace ${t} aborted for opcode ${T} @${E.toString(16)}`),jc(a.traceIndex,0,0,b)}for(;a.activeBlocks>0;)a.endBlock();return a.cfg.exitIp=h,a.containsSimd&&(f+=10240),f}(e,d,n,r,u,p,y,c),s=i>=ic.minimumTraceValue,p.cfg.generate()})),p.emitImportsAndFunctions(!1),!s)return g&&"end-of-body"===g.abortReason&&(g.abortReason="trace-too-small"),0;_=zs();const f=p.getArrayView();if(da(6,f.length),f.length>=p.options.maxModuleSize)return We(`Jiterpreter generated too much code (${f.length} bytes) for trace ${d}. Please report this issue.`),0;const h=new WebAssembly.Module(f),w=p.getWasmImports(),k=new WebAssembly.Instance(h,w).exports[d];let S;m=!1,l?(qs().set(l,k),S=l):(S=Gs(0,k),0===S&&(cc=!0));const v=ua(1);return p.options.enableStats&&v&&v%500==0&&$c(!0),S}catch(e){h=!0,m=!1;let t=p.containsSimd?" (simd)":"";return p.containsAtomics&&(t+=" (atomics)"),He(`${i||d}${t} code generation failed: ${e} ${e.stack}`),Zs(),0}finally{const e=zs();if(_?(da(11,_-f),da(12,e-_)):da(11,e-f),h||!m&&ic.dumpTraces||b){if(h||ic.dumpTraces||b)for(let e=0;e0;)p.endBlock();p.inSection&&p.endSection()}catch(e){}const n=p.getArrayView(!1,!0);for(let r=0;r>>0];if(t){if(Di||(Di=fa()),t.hitCount++,t.hitCount===Di.interpEntryFlushThreshold)Pi();else if(t.hitCount!==Di.interpEntryHitCount)return;o.mono_jiterp_tlqueue_add(1,e)>=4?Pi():Ni>0||"function"==typeof globalThis.setTimeout&&(Ni=globalThis.setTimeout((()=>{Ni=0,Pi()}),10))}},function(e,t,n,r,o,s,a,i){if(n>16)return 0;const c=new Fi(e>>>=0,t>>>=0,n,r>>>=0,o,s,a,i);Bi||(Bi=qs());const l=Bi.get(i),p=(s?a?29:20:a?11:2)+n;return c.result=Gs(p,l),Oi[e]=c,c.result},function(e,t,n,r,s){e>>>=0,t>>>=0,r>>>=0;const a=P(0+(n>>>=0)),i=Xi[a];if(i)return void(i.result>0?o.mono_jiterp_register_jit_call_thunk(n,i.result):(i.queue.push(n),i.queue.length>12&&Ki()));const c=new Yi(e,t,n,r,0!==s);Xi[a]=c;const l=o.mono_jiterp_tlqueue_add(0,e);let p=Qi[e];p||(p=Qi[e]=[]),p.push(c),l>=6&&Ki()},function(e,t,n,r,s){t>>>=0,n>>>=0,r>>>=0,s>>>=0;const a=Zi(e);try{a(t,n,r,s)}catch(e){const t=Ke.wasmExports.__cpp_exception,n=t instanceof WebAssembly.Tag;if(n&&!(e instanceof WebAssembly.Exception&&e.is(t)))throw e;if(i=s,Ke.HEAPU32[i>>>2]=1,n){const n=e.getArg(t,0);o.mono_jiterp_begin_catch(n),o.mono_jiterp_end_catch()}else{if("number"!=typeof e)throw e;o.mono_jiterp_begin_catch(e),o.mono_jiterp_end_catch()}}var i},Ki,function(e,t,n){e>>>=0,t>>>=0,ct.emscriptenBuildOptions.enableDevToolsProfiler&&function(e){Mt.delete(e)}(e),delete hc[n],function(e){delete Oi[e]}(t),function(e){const t=Qi[e];if(t){for(let e=0;e",a=!!r,i=e?Le(e):"",c=o,l=t?Le(t):"",p=`[MONO] ${s}`;if(et.logging&&"function"==typeof et.logging.trace)et.logging.trace(i,l,p,a,c);else switch(l){case"critical":case"error":{const e=p+"\n"+(new Error).stack;lt.exitReason||(lt.exitReason=e),console.error(Qe(e))}break;case"warning":console.warn(p);break;case"message":default:console.log(p);break;case"info":console.info(p);break;case"debug":console.debug(p)}},function(e){wt=lt.config.mainAssemblyName+".dll",kt=e,console.assert(!0,`Adding an entrypoint breakpoint ${wt} at method token ${kt}`);debugger},function(e,t){if(!globalThis.crypto||!globalThis.crypto.getRandomValues)return-1;e>>>=0;const n=K(),r=n.subarray(e,e+t),o=(n.buffer,!1),s=o?new Uint8Array(t):r;for(let e=0;e{e&&e.dispose()},u=!0)}const d=Bn(e,1),f=Nn(d),_=eo(d,f,1),m=26==f,h=20==f||30==f,g={fn:i,fqn:s+":"+o,args_count:c,arg_marshalers:l,res_converter:_,has_cleanup:u,arg_cleanup:p,is_discard_no_wait:m,is_async:h,isDisposed:!1};let b;b=h||m||u?ar(g):0!=c||_?1!=c||_?1==c&&_?function(e){const t=e.fn,r=e.arg_marshalers[0],o=e.res_converter,s=e.fqn;return e=null,function(a){const i=Ft();try{n&&e.isDisposed;const s=r(a),i=t(s);o(a,i)}catch(e){wo(a,e)}finally{Pt(i,"mono.callCsFunction:",s)}}}(g):2==c&&_?function(e){const t=e.fn,r=e.arg_marshalers[0],o=e.arg_marshalers[1],s=e.res_converter,a=e.fqn;return e=null,function(i){const c=Ft();try{n&&e.isDisposed;const a=r(i),c=o(i),l=t(a,c);s(i,l)}catch(e){wo(i,e)}finally{Pt(c,"mono.callCsFunction:",a)}}}(g):ar(g):function(e){const t=e.fn,r=e.arg_marshalers[0],o=e.fqn;return e=null,function(s){const a=Ft();try{n&&e.isDisposed;const o=r(s);t(o)}catch(e){wo(s,e)}finally{Pt(a,"mono.callCsFunction:",o)}}}(g):function(e){const t=e.fn,r=e.fqn;return e=null,function(o){const s=Ft();try{n&&e.isDisposed,t()}catch(e){wo(o,e)}finally{Pt(s,"mono.callCsFunction:",r)}}}(g);let y=b;y[xn]=g,sr[a]=y,Pt(t,"mono.bindJsFunction:",o)}(e),0}catch(e){return Ne(function(e){let t="unknown exception";if(e){t=e.toString();const n=e.stack;n&&(n.startsWith(t)?t=n:t+="\n"+n),t=Xe(t)}return t}(e))}},function(e,t){!function(e,t){lt.assert_runtime_running();const n=Fr(e);n&&"function"==typeof n&&n[En]||mt(!1,`Bound function handle expected ${e}`),n(t=oe(t,0))}(e,t)},function(e,t){lt.assert_runtime_running(),t=oe(t,0);const n=sr[e];n||mt(!1,`Imported function handle expected ${e}`),n(t)},function(e){gr((()=>function(e){if(!lt.is_runtime_running())return void(lt.diagnosticTracing&&ze("This promise resolution/rejection can't be propagated to managed code, mono runtime already exited."));const t=Ln(e=oe(e,0),0),r=n;try{lt.assert_runtime_running();const n=Ln(e,1),o=Ln(e,2),s=Ln(e,3),a=zn(o),i=Qn(o),c=Fr(i);c||mt(!1,`Cannot find Promise for JSHandle ${i}`),c.resolve_or_reject(a,i,s),r||(Wn(n,1),Wn(t,0))}catch(e){wo(t,e)}}(e)))},function(e){gr((()=>function(e){if(!lt.is_runtime_running())return void(lt.diagnosticTracing&&ze("This promise can't be canceled, mono runtime already exited."));const t=qr(e);t||mt(!1,`Expected Promise for GCHandle ${e}`),t.cancel()}(e)))},function(e,t,n,r,o,s,a){try{const i=Re(n,n+2*r),c=Pc(i);if(!c&&i)return Be(o,o+2*i.length,i),T(a,i.length),0;const l=Pc(Re(e,e+2*t));if(!c||!l)throw new Error(`Locale or culture name is null or empty. localeName=${c}, cultureName=${l}`);const p=c.split("-");let u,d;try{const e=p.length>1?p.pop():void 0;d=e?new Intl.DisplayNames([l],{type:"region"}).of(e):void 0;const t=p.join("-");u=new Intl.DisplayNames([l],{type:"language"}).of(t)}catch(e){if(!(e instanceof RangeError))throw e;try{u=new Intl.DisplayNames([l],{type:"language"}).of(c)}catch(e){if(e instanceof RangeError&&i)return Be(o,o+2*i.length,i),T(a,i.length),0;throw e}}const f={LanguageName:u,RegionName:d},_=Object.values(f).join("##");if(!_)throw new Error(`Locale info for locale=${c} is null or empty.`);if(_.length>s)throw new Error(`Locale info for locale=${c} exceeds length of ${s}.`);return Be(o,o+2*_.length,_),T(a,_.length),0}catch(e){return T(a,-1),Ne(e.toString())}},function(e){return pt.ds_rt_websocket_create(e)},function(e,t,n){return pt.ds_rt_websocket_send(e,t,n)},function(e){return pt.ds_rt_websocket_poll(e)},function(e,t,n){return pt.ds_rt_websocket_recv(e,t,n)},function(e){return pt.ds_rt_websocket_close(e)}];async function zc(e,t){try{const n=await Vc(e,t);return lt.mono_exit(n),n}catch(e){try{lt.mono_exit(1,e)}catch(e){}return e&&"number"==typeof e.status?e.status:1}}async function Vc(e,t){null!=e&&""!==e||(e=lt.config.mainAssemblyName)||mt(!1,"Null or empty config.mainAssemblyName"),null==t&&(t=ct.config.applicationArguments),null==t&&(t=tt?(await import(/*! webpackIgnore: true */"process")).argv.slice(2):[]),function(e,t){const n=t.length+1,r=_(4*n);let s=0;Ke.setValue(r+4*s,o.mono_wasm_strdup(e),"i32"),s+=1;for(let e=0;e{const t=setInterval((()=>{1==ct.waitForDebugger&&(clearInterval(t),e())}),100)})));try{return Ke.runtimeKeepalivePush(),await new Promise((e=>globalThis.setTimeout(e,0))),await function(e,t,n){lt.assert_runtime_running();const r=Ke.stackSave();try{const r=$n(5),o=Ln(r,1),s=Ln(r,2),a=Ln(r,3),i=Ln(r,4);uo(s,$e(e)),Uo(a,t&&!t.length?void 0:t,15),no(i,n);let c=sn(o,0,Jt);return wn(ct.managedThreadTID,yn.CallEntrypoint,r),c=an(r,Jt,c),null==c&&(c=Promise.resolve(0)),c[Dr]=!0,c}finally{lt.is_runtime_running()&&Ke.stackRestore(r)}}(e,t,1==ct.waitForDebugger)}finally{Ke.runtimeKeepalivePop()}}function Wc(e){ct.runtimeReady&&(ct.runtimeReady=!1,o.mono_wasm_exit(e))}function Hc(e){if(lt.exitReason=e,ct.runtimeReady){ct.runtimeReady=!1;const t=Qe(e);Ke.abort(t)}throw e}var qc,Gc;const Jc=2147483647&(null!==(Gc=null===(qc=globalThis.performance)||void 0===qc?void 0:qc.timeOrigin)&&void 0!==Gc?Gc:Date.now());function Xc(){return Jc}async function Qc(e){e.out||(e.out=console.log.bind(console)),e.err||(e.err=console.error.bind(console)),e.print||(e.print=e.out),e.printErr||(e.printErr=e.err),lt.out=e.print,lt.err=e.printErr,await async function(){var e;if(tt){if(globalThis.performance===Io){const{performance:e}=et.require("perf_hooks");globalThis.performance=e}if(et.process=await import(/*! webpackIgnore: true */"process"),globalThis.crypto||(globalThis.crypto={}),!globalThis.crypto.getRandomValues){let e;try{e=et.require("node:crypto")}catch(e){}e?e.webcrypto?globalThis.crypto=e.webcrypto:e.randomBytes&&(globalThis.crypto.getRandomValues=t=>{t&&t.set(e.randomBytes(t.length))}):globalThis.crypto.getRandomValues=()=>{throw new Error("Using node without crypto support. To enable current operation, either provide polyfill for 'globalThis.crypto.getRandomValues' or enable 'node:crypto' module.")}}}ct.subtle=null===(e=globalThis.crypto)||void 0===e?void 0:e.subtle}()}function Yc(e){const t=Ft();e.locateFile||(e.locateFile=e.__locateFile=e=>lt.scriptDirectory+e),e.mainScriptUrlOrBlob=lt.scriptUrl;const s=e.instantiateWasm,i=e.preInit?"function"==typeof e.preInit?[e.preInit]:e.preInit:[],l=e.preRun?"function"==typeof e.preRun?[e.preRun]:e.preRun:[],p=e.postRun?"function"==typeof e.postRun?[e.postRun]:e.postRun:[],u=e.onRuntimeInitialized?e.onRuntimeInitialized:()=>{};e.instantiateWasm=(e,t)=>function(e,t,n){const r=Ft();if(n){const o=n(e,((e,n)=>{Pt(r,"mono.instantiateWasm"),ct.afterInstantiateWasm.promise_control.resolve(),t(e,n)}));return o}return async function(e,t){try{await lt.afterConfigLoaded,lt.diagnosticTracing&&ze("instantiate_wasm_module"),await ct.beforePreInit.promise,Ke.addRunDependency("instantiate_wasm_module"),await async function(){const e=lt.simd(),t=lt.relaxedSimd(),n=lt.exceptions();ct.featureWasmSimd=await e,ct.featureWasmRelaxedSimd=await t,ct.featureWasmEh=await n,ct.emscriptenBuildOptions.wasmEnableSIMD&&(ct.featureWasmSimd||mt(!1,"This browser/engine doesn't support WASM SIMD. Please use a modern version. See also https://aka.ms/dotnet-wasm-features")),ct.emscriptenBuildOptions.wasmEnableEH&&(ct.featureWasmEh||mt(!1,"This browser/engine doesn't support WASM exception handling. Please use a modern version. See also https://aka.ms/dotnet-wasm-features"))}(),function(e){const t=e.env||e.a;if(!t)return void We("WARNING: Neither imports.env or imports.a were present when instantiating the wasm module. This likely indicates an emscripten configuration issue.");const n=new Array(Mc.length);for(const e in t){const r=t[e];if("function"==typeof r&&-1!==r.toString().indexOf("runtime_idx"))try{const{runtime_idx:t}=r();if(void 0!==n[t])throw new Error(`Duplicate runtime_idx ${t}`);n[t]=e}catch(e){}}for(const[e,r]of Mc.entries()){const o=n[e];if(void 0!==o){if("function"!=typeof t[o])throw new Error(`Expected ${o} to be a function`);t[o]=r}}}(e);const n=await lt.wasmCompilePromise.promise;t(await WebAssembly.instantiate(n,e),n),lt.diagnosticTracing&&ze("instantiate_wasm_module done"),ct.afterInstantiateWasm.promise_control.resolve()}catch(e){throw He("instantiate_wasm_module() failed",e),lt.mono_exit(1,e),e}Ke.removeRunDependency("instantiate_wasm_module")}(e,t),[]}(e,t,s),e.preInit=[()=>function(e){Ke.addRunDependency("mono_pre_init");const t=Ft();try{Ke.addRunDependency("mono_wasm_pre_init_essential"),lt.diagnosticTracing&&ze("mono_wasm_pre_init_essential"),lt.gitHash!==ct.gitHash&&We(`The version of dotnet.runtime.js ${ct.gitHash} is different from the version of dotnet.js ${lt.gitHash}!`),lt.gitHash!==ct.emscriptenBuildOptions.gitHash&&We(`The version of dotnet.native.js ${ct.emscriptenBuildOptions.gitHash} is different from the version of dotnet.js ${lt.gitHash}!`),n!==ct.emscriptenBuildOptions.wasmEnableThreads&&We(`The threads of dotnet.native.js ${ct.emscriptenBuildOptions.wasmEnableThreads} is different from the version of dotnet.runtime.js ${n}!`),function(){const e=[...r];for(const t of e){const e=o,[n,r,s,a,i]=t,l="function"==typeof n;if(!0===n||l)e[r]=function(...t){!l||!n()||mt(!1,`cwrap ${r} should not be called when binding was skipped`);const o=c(r,s,a,i);return e[r]=o,o(...t)};else{const t=c(r,s,a,i);e[r]=t}}}(),s=et,Object.assign(s,{mono_wasm_exit:o.mono_wasm_exit,mono_wasm_profiler_init_aot:a.mono_wasm_profiler_init_aot,mono_wasm_profiler_init_browser_devtools:a.mono_wasm_profiler_init_browser_devtools,mono_wasm_exec_regression:o.mono_wasm_exec_regression,mono_wasm_print_thread_dump:void 0}),Ke.removeRunDependency("mono_wasm_pre_init_essential"),lt.diagnosticTracing&&ze("preInit"),ct.beforePreInit.promise_control.resolve(),e.forEach((e=>e(Ke)))}catch(e){throw He("user preInint() failed",e),lt.mono_exit(1,e),e}var s;(async()=>{try{await async function(){lt.diagnosticTracing&&ze("mono_wasm_pre_init_essential_async"),Ke.addRunDependency("mono_wasm_pre_init_essential_async"),Ke.removeRunDependency("mono_wasm_pre_init_essential_async")}(),Pt(t,"mono.preInit")}catch(e){throw lt.mono_exit(1,e),e}ct.afterPreInit.promise_control.resolve(),Ke.removeRunDependency("mono_pre_init")})()}(i)],e.preRun=[()=>async function(e){Ke.addRunDependency("mono_pre_run_async");try{await ct.afterInstantiateWasm.promise,await ct.afterPreInit.promise,lt.diagnosticTracing&&ze("preRunAsync");const t=Ft();e.map((e=>e(Ke))),Pt(t,"mono.preRun")}catch(e){throw He("preRunAsync() failed",e),lt.mono_exit(1,e),e}ct.afterPreRun.promise_control.resolve(),Ke.removeRunDependency("mono_pre_run_async")}(l)],e.onRuntimeInitialized=()=>async function(e){try{await ct.afterPreRun.promise,lt.diagnosticTracing&&ze("onRuntimeInitialized"),ct.nativeExit=Wc,ct.nativeAbort=Hc;const t=Ft();if(ct.beforeOnRuntimeInitialized.promise_control.resolve(),await ct.coreAssetsInMemory.promise,ct.config.virtualWorkingDirectory){const e=Ke.FS,t=ct.config.virtualWorkingDirectory;try{const n=e.stat(t);n?n&&e.isDir(n.mode)||mt(!1,`FS.chdir: ${t} is not a directory`):Ke.FS_createPath("/",t,!0,!0)}catch(e){Ke.FS_createPath("/",t,!0,!0)}e.chdir(t)}ct.config.interpreterPgo&&setTimeout(Kc,1e3*(ct.config.interpreterPgoSaveDelay||15)),Ke.runtimeKeepalivePush(),n||await async function(){try{const t=Ft(),n=ct.config.environmentVariables||{};lt.diagnosticTracing&&ze("Initializing mono runtime");for(const e in n){const t=n[e];if("string"!=typeof t)throw new Error(`Expected environment variable '${e}' to be a string but it was ${typeof t}: '${t}'`);Zc(e,t)}if(ct.config.runtimeOptions&&function(e){if(!Array.isArray(e))throw new Error("Expected runtimeOptions to be an array of strings");const t=_(4*e.length);let n=0;for(let r=0;raot; in your project file."),null==e&&(e={}),"writeAt"in e||(e.writeAt="System.Runtime.InteropServices.JavaScript.JavaScriptExports::StopProfile"),"sendTo"in e||(e.sendTo="Interop/Runtime::DumpAotProfileData");const t="aot:write-at-method="+e.writeAt+",send-to-method="+e.sendTo;a.mono_wasm_profiler_init_aot(t)}(ct.config.aotProfilerOptions||{}):ct.emscriptenBuildOptions.enableDevToolsProfiler?function(){ct.emscriptenBuildOptions.enableDevToolsProfiler||mt(!1,"DevTools profiler is not enabled, please use browser:callspec=N:Sample in your project file."),Dt=globalThis.performance&&"function"==typeof globalThis.performance.measure;const e=`${ct.config.environmentVariables.DOTNET_WasmPerformanceInstrumentation||"callspec=all"}`;a.mono_wasm_profiler_init_browser_devtools(e)}():ct.emscriptenBuildOptions.enableLogProfiler&&(e=ct.config.logProfilerOptions||{},ct.emscriptenBuildOptions.enableLogProfiler||mt(!1,"Log profiler is not enabled, please use log; in your project file."),e.takeHeapshot||mt(!1,"Log profiler is not enabled, the takeHeapshot method must be defined in LogProfilerOptions.takeHeapshot"),e.configuration||(e.configuration="log:alloc,output=output.mlpd"),e.takeHeapshot?a.mono_wasm_profiler_init_log(`${e.configuration},take-heapshot-method=${e.takeHeapshot}`):a.mono_wasm_profiler_init_log(e.configuration));!function(){var e,t,n,r;lt.diagnosticTracing&&ze("mono_wasm_load_runtime");try{const s=Ft();let a=ct.config.debugLevel;null==a&&(a=0,ct.config.debugLevel&&(a=0+a)),lt.isDebuggingSupported()&&(ct.config.resources.corePdb||ct.config.resources.pdb)||(a=0);const i=new Map;if(null===(t=null===(e=ct.config.runtimeConfig)||void 0===e?void 0:e.runtimeOptions)||void 0===t?void 0:t.configProperties)for(const[e,t]of Object.entries(null===(r=null===(n=ct.config.runtimeConfig)||void 0===n?void 0:n.runtimeOptions)||void 0===r?void 0:r.configProperties))i.set(e,""+t);i.set("APP_CONTEXT_BASE_DIRECTORY","/"),i.set("RUNTIME_IDENTIFIER","browser-wasm");const c=i.size,l=[],p=_(4*i.size),u=_(4*i.size);l.push(p),l.push(u);let d=0;for(const[e,t]of i.entries()){const n=$e(e),r=$e(t);S(p+4*d,n),S(u+4*d,r),d++,l.push(n),l.push(r)}o.mono_wasm_load_runtime(a,c,p,u);for(const e of l)Ke._free(e);Pt(s,"mono.loadRuntime")}catch(e){throw He("mono_wasm_load_runtime () failed",e),lt.mono_exit(1,e),e}}(),function(){if(ma)return;ma=!0;const e=fa(),t=e.tableSize,n=ct.emscriptenBuildOptions.runAOTCompilation?e.tableSize:1,r=ct.emscriptenBuildOptions.runAOTCompilation?e.aotTableSize:1,s=t+n+36*r+1,a=qs();let i=a.length;const c=performance.now();a.grow(s);const l=performance.now();e.enableStats&&Ve(`Allocated ${s} function table entries for jiterpreter, bringing total table size to ${a.length}`),i=_a(0,i,t,ta("mono_jiterp_placeholder_trace")),i=_a(1,i,n,ta("mono_jiterp_placeholder_jit_call"));for(let e=2;e<=37;e++)i=_a(e,i,r,a.get(o.mono_jiterp_get_interp_entry_func(e)));const p=performance.now();e.enableStats&&Ve(`Growing wasm function table took ${l-c}. Filling table took ${p-l}.`)}(),function(){if(!ct.mono_wasm_bindings_is_ready){lt.diagnosticTracing&&ze("bindings_init"),ct.mono_wasm_bindings_is_ready=!0;try{const e=Ft();we||("undefined"!=typeof TextDecoder&&(Se=new TextDecoder("utf-16le"),ve=new TextDecoder("utf-8",{fatal:!1}),Ue=new TextDecoder("utf-8"),Te=new TextEncoder),we=_(12)),Ee||(Ee=function(e){let t;if(de.length>0)t=de.pop();else{const e=function(){if(null==le||!pe){le=_e(ce,"js roots"),pe=new Int32Array(ce),ue=ce;for(let e=0;elt.loadedFiles.push(e.url))),lt.diagnosticTracing&&ze("all assets are loaded in wasm memory"))}(),tl.registerRuntime(it),ct.mono_wasm_runtime_is_ready||function mono_wasm_runtime_ready(){if(et.mono_wasm_runtime_is_ready=ct.mono_wasm_runtime_is_ready=!0,vt=0,St={},Ut=-1,globalThis.dotnetDebugger)debugger}();try{e(Ke)}catch(e){throw He("user callback onRuntimeInitialized() failed",e),e}await async function(){lt.diagnosticTracing&&ze("mono_wasm_after_user_runtime_initialized");try{if(Ke.onDotnetReady)try{await Ke.onDotnetReady()}catch(e){throw He("onDotnetReady () failed",e),e}}catch(e){throw He("mono_wasm_after_user_runtime_initialized () failed",e),e}}(),Pt(t,"mono.onRuntimeInitialized")}catch(e){throw Ke.runtimeKeepalivePop(),He("onRuntimeInitializedAsync() failed",e),lt.mono_exit(1,e),e}ct.afterOnRuntimeInitialized.promise_control.resolve()}(u),e.postRun=[()=>async function(e){try{await ct.afterOnRuntimeInitialized.promise,lt.diagnosticTracing&&ze("postRunAsync");const t=Ft();Ke.FS_createPath("/","usr",!0,!0),Ke.FS_createPath("/","usr/share",!0,!0),e.map((e=>e(Ke))),Pt(t,"mono.postRun")}catch(e){throw He("postRunAsync() failed",e),lt.mono_exit(1,e),e}ct.afterPostRun.promise_control.resolve()}(p)],e.ready.then((async()=>{await ct.afterPostRun.promise,Pt(t,"mono.emscriptenStartup"),ct.dotnetReady.promise_control.resolve(it)})).catch((e=>{ct.dotnetReady.promise_control.reject(e)})),e.ready=ct.dotnetReady.promise}function Zc(e,t){o.mono_wasm_setenv(e,t)}async function Kc(){void 0!==lt.exitCode&&0!==lt.exitCode||await Rc()}async function el(e){}let tl;function nl(r){const o=Ke,a=r,i=globalThis;Object.assign(a.internal,{mono_wasm_exit:e=>{Ke.err("early exit "+e)},forceDisposeProxies:Jr,mono_wasm_dump_threads:void 0,logging:void 0,mono_wasm_stringify_as_error_with_stack:Qe,mono_wasm_get_loaded_files:As,mono_wasm_send_dbg_command_with_parms:Et,mono_wasm_send_dbg_command:xt,mono_wasm_get_dbg_command_info:It,mono_wasm_get_details:Nt,mono_wasm_release_object:Ct,mono_wasm_call_function_on:Bt,mono_wasm_debugger_resume:At,mono_wasm_detach_debugger:jt,mono_wasm_raise_debug_event:Lt,mono_wasm_change_debugger_log_level:$t,mono_wasm_debugger_attached:Rt,mono_wasm_runtime_is_ready:ct.mono_wasm_runtime_is_ready,mono_wasm_get_func_id_to_name_mappings:Ze,get_property:lr,set_property:cr,has_property:pr,get_typeof_property:ur,get_global_this:dr,get_dotnet_instance:()=>it,dynamic_import:mr,mono_wasm_bind_cs_function:wr,ws_wasm_create:bs,ws_wasm_open:ys,ws_wasm_send:ws,ws_wasm_receive:ks,ws_wasm_close:Ss,ws_wasm_abort:vs,ws_get_state:gs,http_wasm_supports_streaming_request:$o,http_wasm_supports_streaming_response:Lo,http_wasm_create_controller:Ro,http_wasm_get_response_type:Mo,http_wasm_get_response_status:zo,http_wasm_abort:No,http_wasm_transform_stream_write:Oo,http_wasm_transform_stream_close:Co,http_wasm_fetch:Po,http_wasm_fetch_stream:Do,http_wasm_fetch_bytes:Fo,http_wasm_get_response_header_names:Vo,http_wasm_get_response_header_values:Wo,http_wasm_get_response_bytes:qo,http_wasm_get_response_length:Ho,http_wasm_get_streamed_response_bytes:Go,jiterpreter_dump_stats:$c,jiterpreter_apply_options:pa,jiterpreter_get_options:fa,interp_pgo_load_data:Bc,interp_pgo_save_data:Rc,mono_wasm_gc_lock:ae,mono_wasm_gc_unlock:ie,monoObjectAsBoolOrNullUnsafe:Fc,monoStringToStringUnsafe:Pe,loadLazyAssembly:Cc,loadSatelliteAssemblies:Dc});const c={stringify_as_error_with_stack:Qe,instantiate_symbols_asset:Is,instantiate_asset:xs,jiterpreter_dump_stats:$c,forceDisposeProxies:Jr,utf8ToString:Le,mono_wasm_process_current_pid:Xc,mono_background_exec:()=>s.mono_background_exec(),mono_wasm_ds_exec:()=>s.mono_wasm_ds_exec()};Object.assign(ct,c);const l={runMain:Vc,runMainAndExit:zc,exit:lt.mono_exit,setEnvironmentVariable:Zc,getAssemblyExports:vr,setModuleImports:ir,getConfig:()=>ct.config,invokeLibraryInitializers:lt.invokeLibraryInitializers,setHeapB32:b,setHeapB8:y,setHeapU8:w,setHeapU16:k,setHeapU32:S,setHeapI8:v,setHeapI16:U,setHeapI32:T,setHeapI52:x,setHeapU52:I,setHeapI64Big:A,setHeapF32:j,setHeapF64:$,getHeapB32:R,getHeapB8:B,getHeapU8:N,getHeapU16:O,getHeapU32:C,getHeapI8:M,getHeapI16:z,getHeapI32:V,getHeapI52:W,getHeapU52:H,getHeapI64Big:q,getHeapF32:G,getHeapF64:J,localHeapViewU8:K,localHeapViewU16:ee,localHeapViewU32:te,localHeapViewI8:X,localHeapViewI16:Q,localHeapViewI32:Y,localHeapViewI64Big:Z,localHeapViewF32:ne,localHeapViewF64:re,collectCpuSamples:null,collectMetrics:null,collectGcDump:null,connectDSRouter:null};return Object.assign(it,{INTERNAL:a.internal,Module:o,runtimeBuildInfo:{productVersion:e,gitHash:ct.gitHash,buildConfiguration:t,wasmEnableThreads:n,wasmEnableSIMD:!0,wasmEnableExceptionHandling:!0},...l}),i.getDotnetRuntime?tl=i.getDotnetRuntime.__list:(i.getDotnetRuntime=e=>i.getDotnetRuntime.__list.getRuntime(e),i.getDotnetRuntime.__list=tl=new rl),it}class rl{constructor(){this.list={}}registerRuntime(e){return void 0===e.runtimeId&&(e.runtimeId=Object.keys(this.list).length),this.list[e.runtimeId]=yr(e),lt.config.runtimeId=e.runtimeId,e.runtimeId}getRuntime(e){const t=this.list[e];return t?t.deref():void 0}}export{Yc as configureEmscriptenStartup,Qc as configureRuntimeStartup,el as configureWorkerStartup,nl as initializeExports,Ao as initializeReplacements,dt as passEmscriptenInternals,tl as runtimeList,ft as setRuntimeGlobals}; +//# sourceMappingURL=dotnet.runtime.js.map diff --git a/_framework/icudt_CJK.tjcz0u77k5.dat.gz b/_framework/icudt_CJK.tjcz0u77k5.dat.gz new file mode 100644 index 0000000000000000000000000000000000000000..a3fe538160121a98162784470c70dd31c2508876 --- /dev/null +++ b/_framework/icudt_CJK.tjcz0u77k5.dat.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d157ecfbe265e43058e8ef2603ed4edc20da3b94c7e36cfb810391757cc3d77e +size 329872 diff --git a/_framework/icudt_EFIGS.tptq2av103.dat.gz b/_framework/icudt_EFIGS.tptq2av103.dat.gz new file mode 100644 index 0000000000000000000000000000000000000000..e174e39bbef992611212f478437b27e2ffcac839 --- /dev/null +++ b/_framework/icudt_EFIGS.tptq2av103.dat.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:228b878264d3dbd055bfd1732bd265439ec2c4c2e57ff10a1ec36385c6932bf7 +size 194312 diff --git a/_framework/icudt_no_CJK.lfu7j35m59.dat.gz b/_framework/icudt_no_CJK.lfu7j35m59.dat.gz new file mode 100644 index 0000000000000000000000000000000000000000..047961579765c7532e6be31e46543e8f4852f086 --- /dev/null +++ b/_framework/icudt_no_CJK.lfu7j35m59.dat.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cefcc63ad6dfed0d6898b530ace1c9c0074bac718adee8b14804f58a0db161c6 +size 316638 diff --git a/css/app.css b/css/app.css new file mode 100644 index 0000000000000000000000000000000000000000..c91c11fa1a52aafc142671d7297576ee1035abb4 --- /dev/null +++ b/css/app.css @@ -0,0 +1,383 @@ +:root { --bg-0: #111; --bg-1: #1b1b1b; --bg-2: #232323; --bg-3: #282828; --bg-4: #2d2d2d; --ctl: #3a3a3a; --ctl-hover: #474747; --line: #111; --line-2: #4a4a4a; --fg-strong: #fff; --fg: #ddd; --fg-mid: #b5b5b5; --fg-dim: #8a8a8a; color-scheme: dark; } +:root[data-theme=light] { --bg-0: #dcdcdc; --bg-1: #ffffff; --bg-2: #e9e9e9; --bg-3: #f3f3f3; --bg-4: #fafafa; --ctl: #e0e0e0; --ctl-hover: #d0d0d0; --line: #c4c4c4; --line-2: #b0b0b0; --fg-strong: #111; --fg: #222; --fg-mid: #4a4a4a; --fg-dim: #6a6a6a; color-scheme: light; } +html, body, #app { height: 100%; margin: 0; } +body { background: var(--bg-2); color: var(--fg); font-family: system-ui, "Segoe UI", sans-serif; font-size: 14px; overflow: hidden; } +.boot { padding: 2rem; color: var(--fg-dim); } +#blazor-error-ui { background: #5a1d1d; bottom: 0; display: none; left: 0; padding: 0.6rem 1.2rem; position: fixed; width: 100%; z-index: 1000; } +#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; } + +.studio { display: flex; flex-direction: column; height: 100%; } +.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 5px; white-space: nowrap; padding: 6px 10px; background: var(--bg-3); border-bottom: 1px solid var(--line); } +.toolbar .brand { font-weight: 700; letter-spacing: 0.3px; margin-right: 10px; color: var(--fg-strong); } +.toolbar .sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; } +.toolbar > * { flex-shrink: 0; } +.toolbar button .count { display: inline-block; margin-left: 6px; min-width: 16px; padding: 0 5px; border-radius: 8px; background: #fff; color: #2f5fa8; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; } +.runbar { display: flex; align-items: center; gap: 10px; flex-shrink: 0; height: 26px; padding: 0 10px; background: var(--bg-3); border-top: 1px solid var(--line); font-size: 12px; } +.runbar .status { flex: 1; min-width: 0; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.runbar.busy .status { color: var(--fg-strong); } +.runbar .run-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; } +.runbar .run-dot.queued { background: #d9a520; } +.runbar .run-dot.running { background: #4caf50; animation: run-pulse 1.2s ease-in-out infinite; } +@keyframes run-pulse { 50% { opacity: 0.35; } } +.runbar .run-progress { position: relative; width: 240px; height: 8px; flex-shrink: 0; border-radius: 4px; background: var(--bg-0); border: 1px solid var(--line-2); overflow: hidden; } +.runbar .run-progress > div { height: 100%; background: #4caf50; transition: width 0.3s; } +.runbar .run-progress.indeterminate > div { position: absolute; transition: none; animation: run-slide 1.4s linear infinite; } +@keyframes run-slide { from { left: -30%; } to { left: 100%; } } +.runbar .run-pct { width: 34px; flex-shrink: 0; color: var(--fg-strong); text-align: right; } +.runbar .queued { flex-shrink: 0; background: #d9a52033; color: var(--fg-strong); border: 1px solid #d9a520; border-radius: 10px; padding: 0 10px; font: inherit; cursor: pointer; line-height: 18px; } +.runbar .queued:hover { background: #d9a52066; } +.toolbar button, .toolbar label.button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 9px; cursor: pointer; font: inherit; } +.toolbar button:hover:not(:disabled), .toolbar label.button:hover { background: var(--ctl-hover); } +.toolbar button:disabled { opacity: 0.45; cursor: default; } +.toolbar button.primary { background: #2f5fa8; border-color: #3d73c4; color: #fff; } +.tabs { display: flex; align-items: flex-end; gap: 2px; padding: 4px 10px 0; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow-x: auto; min-height: 28px; } +.tabs .tab { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 12px; background: var(--bg-4); color: var(--fg-mid); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 6px 6px 0 0; cursor: pointer; white-space: nowrap; max-width: 220px; user-select: none; } +.tabs .tab.active { background: var(--bg-1); color: var(--fg-strong); border-color: var(--line-2); } +.tabs .tab span { overflow: hidden; text-overflow: ellipsis; } +.tabs .tab input { width: 130px; background: var(--bg-0); color: var(--fg-strong); border: 1px solid #4f8fe8; border-radius: 3px; font: inherit; padding: 0 4px; outline: none; } +.tabs .tab button { background: none; border: 0; color: var(--fg-dim); cursor: pointer; padding: 0 2px; font-size: 15px; line-height: 1; } +.tabs .tab button:hover { color: var(--fg-strong); } +.tabs .newtab { background: none; border: 0; color: var(--fg-mid); cursor: pointer; font-size: 18px; padding: 0 8px 2px; } +.tabs .newtab:hover { color: var(--fg-strong); } +.stage { position: relative; flex: 1; min-height: 0; } +.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; } + +.toast { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111c; color: var(--fg-strong); padding: 8px 16px; border-radius: 6px; border: 1px solid var(--line-2); max-width: 70%; pointer-events: none; } + +.widget-edit { position: absolute; z-index: 5; display: flex; } +.widget-edit input, .widget-edit select, .widget-edit textarea { flex: 1; min-width: 0; background: var(--bg-1); color: var(--fg-strong); border: 1px solid #4f8fe8; border-radius: 5px; padding: 2px 8px; font: inherit; outline: none; } +.widget-edit textarea { resize: none; } + +.templates { width: min(1100px, 94%); height: 80vh; align-self: flex-start; display: flex; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 40px #000a; overflow: hidden; } +.templates .tpl-head { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line-2); } +.templates .tpl-head input { flex: 1; padding: 9px 12px; background: var(--bg-1); color: var(--fg-strong); border: 1px solid var(--line-2); border-radius: 6px; font: inherit; font-size: 15px; outline: none; } +.templates .tpl-count { color: var(--fg-dim); font-size: 12px; min-width: 30px; text-align: right; } +.templates .tpl-groups { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line-2); } +.templates .tpl-groups button.on { background: #2f5fa8; color: #fff; } +.templates .tpl-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-auto-rows: max-content; gap: 10px; padding: 10px; align-content: start; } +.templates .tpl-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; } +.templates .tpl-card:hover { border-color: #4f8fe8; } +.templates .tpl-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-0); display: flex; align-items: center; justify-content: center; color: var(--fg-dim); } +.templates .tpl-thumb img { width: 100%; height: 100%; object-fit: cover; } +.templates .tpl-show { padding: 6px 10px; background: var(--bg-1); color: var(--fg); border: 1px solid var(--line-2); border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; } +.templates .tpl-show.on { background: var(--accent, #2f6fdb); color: #fff; border-color: transparent; } +.templates .tpl-badge { position: absolute; top: 6px; right: 6px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 8px; } +.templates .tpl-missing { background: #c94040; color: #fff; } +.templates .tpl-models { background: #3a6ea5; color: #fff; } +.templates .tpl-ready { background: #2e8b57; color: #fff; } +.templates .tpl-untested { background: #8a6d1f; color: #fff; } +.templates .tpl-api { position: absolute; top: 6px; right: 6px; background: #d9a520; color: #111; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 8px; } +.templates .tpl-title { padding: 6px 8px 2px; color: var(--fg-strong); font-weight: 600; font-size: 13px; } +.templates .tpl-desc { margin: 0 8px 8px; color: var(--fg-dim); font-size: 12px; line-height: 1.35; max-height: calc(3 * 1.35em); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } +.templates .tpl-none { color: var(--fg-dim); padding: 20px; } +.templates .tpl-more { grid-column: 1 / -1; } +.search-backdrop { position: absolute; inset: 0; z-index: 10; background: rgba(0,0,0,0.35); display: flex; justify-content: center; padding-top: 12vh; } +.search { width: min(560px, 92%); align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 40px #000a; overflow: hidden; } +.search input { width: 100%; box-sizing: border-box; padding: 12px 14px; background: var(--bg-1); color: var(--fg-strong); border: 0; border-bottom: 1px solid var(--line-2); font: inherit; font-size: 15px; outline: none; } +.search ul { list-style: none; margin: 0; padding: 4px; max-height: 50vh; overflow-y: auto; } +.search li { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 5px; cursor: pointer; } +.search li.on { background: #2f5fa8; color: #fff; } +.search li .cat { color: var(--fg-dim); font-size: 12px; } +.search li.none { color: var(--fg-dim); cursor: default; } + +.menu { position: absolute; z-index: 20; list-style: none; margin: 0; padding: 4px; min-width: 190px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 8px 28px #000a; } +.menu li { padding: 6px 12px; border-radius: 4px; cursor: pointer; } +.menu li:hover { background: #2f5fa8; color: #fff; } +.menu li.has-sub { position: relative; display: flex; justify-content: space-between; gap: 12px; } +.menu li.has-sub .arrow { color: inherit; opacity: 0.7; } +.menu .sub { display: none; left: 100%; top: -5px; color: var(--fg); } +.menu li.has-sub:hover > .sub, .menu li.has-sub.open > .sub { display: block; } +.menu.flip .sub { left: auto; right: 100%; } +.toolbar button.danger { background: #8a2f2f; border-color: #b04545; color: #fff; } +.toolbar label.check { display: flex; align-items: center; gap: 5px; color: var(--fg-mid); font-size: 12px; margin-left: 4px; cursor: pointer; } +.toolbar label.check input { accent-color: #4f8fe8; } +.toolbar label.check input.batch { width: 46px; background: var(--bg-3); color: var(--fg); border: 1px solid var(--line-2); border-radius: 3px; padding: 2px 4px; } +.toolbar select.engine { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 6px; font: inherit; max-width: 210px; } + +.toolbar button.on { background: #2f5fa8; border-color: #3d73c4; color: #fff; } +.toolbar button.on:hover:not(:disabled), .toolbar button.primary:hover:not(:disabled) { background: #3d73c4; } +.toolbar button.danger:hover:not(:disabled) { background: #a03a3a; } +.library { position: absolute; left: 0; top: 0; bottom: 0; width: 260px; z-index: 4; display: flex; flex-direction: column; background: var(--bg-2); border-right: 1px solid var(--line); } +.library .lib-filter { margin: 8px; padding: 6px 10px; background: var(--bg-1); color: var(--fg-strong); border: 1px solid var(--line-2); border-radius: 5px; font: inherit; outline: none; } +.library .lib-filter:focus { border-color: #4f8fe8; } +.library .lib-list { flex: 1; overflow-y: auto; padding: 0 6px 8px; user-select: none; } +.library .lib-cat { padding: 5px 6px; margin-top: 4px; color: var(--fg-mid); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; cursor: pointer; display: flex; justify-content: space-between; } +.library .lib-cat span { color: var(--fg-dim); } +.library .lib-node { padding: 5px 10px 5px 18px; border-radius: 4px; cursor: grab; color: var(--fg); } +.library .lib-node:hover { background: #2f5fa8; color: #fff; } +.history { position: absolute; right: 0; top: 0; bottom: 0; width: 300px; z-index: 4; display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); } +.history .hist-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; color: var(--fg-mid); border-bottom: 1px solid var(--line); } +.history .hist-head button, .history .hist-actions button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 10px; cursor: pointer; font: inherit; font-size: 12px; } +.history .hist-head button:disabled { opacity: 0.45; cursor: default; } +.history .hist-list { flex: 1; overflow-y: auto; padding: 8px; } +.history .hist-entry { background: var(--bg-4); border: 1px solid var(--line-2); border-left: 3px solid var(--fg-dim); border-radius: 5px; padding: 6px 8px; margin-bottom: 8px; } +.history .hist-entry.running { border-left-color: #4f8fe8; } +.history .hist-entry.done { border-left-color: #4caf6a; } +.history .hist-entry.failed { border-left-color: #c24a4a; } +.history .hist-title { font-size: 12px; color: var(--fg); } +.history .hist-engine { font-size: 11px; color: var(--fg-dim); margin-bottom: 4px; } +.history .hist-error { font-size: 12px; color: #e08080; margin: 4px 0; word-break: break-word; } +.history .hist-thumbs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; } +.history .hist-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 3px; cursor: zoom-in; background: var(--bg-0); } +.history .hist-none { color: var(--fg-dim); padding: 12px 4px; } +.lightbox { position: absolute; inset: 0; z-index: 15; background: rgba(0,0,0,0.82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: zoom-out; } +.lightbox img { max-width: 90%; max-height: 82%; object-fit: contain; box-shadow: 0 8px 40px #000; } +.lightbox button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 5px 16px; cursor: pointer; font: inherit; } +.history .hist-note { font-size: 12px; color: var(--fg-dim); margin: 4px 0; } +.history .hist-entry.queued { border-left-color: #c9a227; } +.settings { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 12; width: 280px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 40px #000a; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; } +.settings .set-head { display: flex; justify-content: space-between; align-items: center; color: var(--fg-strong); font-weight: 600; } +.settings .set-head button { background: none; border: 0; color: var(--fg-mid); font-size: 18px; cursor: pointer; } +.settings label { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--fg); } +.settings label.row { justify-content: flex-start; } +.settings select, .settings input[type=number] { background: var(--bg-1); color: var(--fg); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 6px; font: inherit; } +.settings input[type=number] { width: 70px; } +.history .hist-entry audio { width: 100%; height: 32px; margin: 4px 0; } +.maskeditor { position: fixed; inset: 0; z-index: 100; background: var(--bg-1); display: flex; flex-direction: column; } +.maskeditor .me-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-3); border-bottom: 1px solid var(--line); color: var(--fg); } +.maskeditor .me-bar > span:first-child { font-weight: 600; color: var(--fg-strong); margin-right: 8px; } +.maskeditor .me-bar button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 12px; cursor: pointer; font: inherit; } +.maskeditor .me-bar button.on { background: #2f5fa8; border-color: #3d73c4; color: #fff; } +.maskeditor .me-bar button.me-save { background: #2f7a4a; border-color: #3d9a5e; color: #fff; } +.maskeditor .me-spacer { flex: 1; } +.maskeditor .me-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px; } +.maskeditor .me-stack { position: relative; max-width: 100%; max-height: 100%; display: flex; } +.maskeditor .me-stack canvas { max-width: calc(100vw - 24px); max-height: calc(100vh - 90px); object-fit: contain; display: block; } +.maskeditor .me-mask { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; cursor: crosshair; touch-action: none; } +.models { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 12; width: 520px; max-height: 70vh; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 40px #000a; padding: 10px 14px 14px; gap: 8px; } +.models .set-head { display: flex; justify-content: space-between; align-items: center; color: var(--fg-strong); font-weight: 600; } +.models .set-head button { background: none; border: 0; color: var(--fg-mid); font-size: 18px; cursor: pointer; } +.models .model-total { display: flex; justify-content: space-between; align-items: center; color: var(--fg-mid); font-size: 12px; } +.models button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 10px; cursor: pointer; font: inherit; font-size: 12px; } +.models button:disabled { opacity: 0.45; cursor: default; } +.models .model-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; } +.models .model-file { display: flex; align-items: center; gap: 10px; padding: 3px 6px; border-radius: 4px; color: var(--fg); font-size: 12px; } +.models .model-file:hover { background: var(--bg-4); } +.models .model-file .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.models .model-file .size { color: var(--fg-dim); white-space: nowrap; } +.models .model-file.partial .name { color: #c9a227; } +.models .model-file button { padding: 0 8px; font-size: 14px; } +.models .model-download { background: var(--bg-4); border: 1px solid var(--line-2); border-radius: 5px; padding: 6px 8px; font-size: 12px; color: var(--fg); } +.models .model-download .bar { height: 6px; background: var(--bg-1); border-radius: 3px; margin: 4px 0; overflow: hidden; } +.models .model-download .bar > div { height: 100%; background: #4f8fe8; } +.models .model-download .sub { color: var(--fg-dim); } +.glbviewer { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg-1); } +.glbviewer .gv-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--bg-3); border-bottom: 1px solid var(--line-2); color: var(--fg); font-size: 13px; } +.glbviewer .gv-title { font-weight: 600; color: var(--fg-strong); } +.glbviewer .gv-hint { color: var(--fg-dim); font-size: 12px; } +.glbviewer .gv-spacer { flex: 1; } +.glbviewer button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 12px; cursor: pointer; font: inherit; } +.glbviewer .gv-canvas { flex: 1; width: 100%; min-height: 0; touch-action: none; cursor: grab; } +.glbviewer .gv-status { position: absolute; left: 12px; bottom: 10px; color: var(--fg-dim); font-size: 12px; pointer-events: none; } +.glbviewer .gv-status.error { color: #e05555; font-size: 14px; } +.props { position: absolute; right: 0; top: 0; bottom: 0; width: 320px; z-index: 4; display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); color: var(--fg); font-size: 13px; } +.props.beside { right: 300px; } +.props .props-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; color: var(--fg-mid); border-bottom: 1px solid var(--line); } +.props .props-head button { background: none; border: 0; color: var(--fg-mid); font-size: 18px; cursor: pointer; } +.props .props-body { flex: 1; overflow-y: auto; padding: 4px 12px 16px; display: flex; flex-direction: column; gap: 6px; } +.props .props-none { color: var(--fg-dim); padding: 10px 0; } +.props .props-title { font-weight: 600; color: var(--fg-strong); margin-top: 6px; } +.props .props-section { margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid var(--line-2); color: var(--fg-mid); font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; } +.props label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; } +.props label > span:first-child { color: var(--fg-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.props label.row { justify-content: flex-start; } +.props label.multi { flex-direction: column; align-items: stretch; gap: 3px; } +.props input[type=text], .props input[type=number], .props select, .props textarea { width: 170px; box-sizing: border-box; background: var(--bg-1); color: var(--fg); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 6px; font: inherit; } +.props label.multi textarea { width: 100%; resize: vertical; } +.props input:focus, .props select:focus, .props textarea:focus { outline: none; border-color: #4f8fe8; } +.props .props-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 3px; } +.props .props-kv > span:first-child { color: var(--fg-mid); white-space: nowrap; } +.props .props-kv > :last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; } +.props i { font-style: normal; color: var(--fg-dim); font-size: 11px; margin-left: 4px; } +.props code { color: var(--fg-dim); font-size: 11px; } +.props .props-desc { color: var(--fg-dim); font-size: 12px; } +.props .dim { color: var(--fg-dim); } +.props .missing { color: #e05555; } +.props button.link { background: none; border: 0; padding: 0 0 0 6px; color: #4f8fe8; cursor: pointer; font: inherit; text-align: right; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-left: auto; } +.props button.link:hover { text-decoration: underline; } +.crumbs { position: absolute; left: 12px; top: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 6px; color: var(--fg-mid); font-size: 13px; } +.crumbs button { background: none; border: 0; padding: 0; color: #4f8fe8; cursor: pointer; font: inherit; } +.crumbs button:hover { text-decoration: underline; } +.crumbs b { color: var(--fg-strong); font-weight: 600; } + +/* ---- App Mode and the App Builder ---- */ +.app-steps { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 4px; padding: 5px 8px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,0.35); font-size: 13px; } +.app-steps-title { color: var(--fg-mid); margin-right: 6px; } +.app-steps button { background: none; border: 1px solid transparent; border-radius: 5px; color: var(--fg-mid); padding: 3px 9px; cursor: pointer; font: inherit; } +.app-steps button b { display: inline-block; width: 18px; height: 18px; line-height: 18px; border-radius: 50%; background: var(--ctl); color: var(--fg); text-align: center; font-size: 11px; margin-right: 4px; } +.app-steps button.on { border-color: #3d73c4; color: var(--fg-strong); } +.app-steps button.on b, .app-steps button.done b { background: #2f5fa8; color: #fff; } +.app-picks { position: absolute; right: 0; top: 0; bottom: 48px; width: 300px; z-index: 5; display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); font-size: 13px; } +.app-picks .set-head, .app-in .set-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; color: var(--fg-strong); font-weight: 600; border-bottom: 1px solid var(--line); } +.app-in .set-head button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 10px; cursor: pointer; font: inherit; font-weight: normal; } +.app-hint { padding: 8px 12px; color: var(--fg-dim); font-size: 12px; } +.app-pick-list { flex: 1; overflow-y: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 4px; } +.app-pick { display: flex; align-items: center; gap: 6px; padding: 5px 6px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 5px; } +.app-pick b { width: 18px; height: 18px; line-height: 18px; border-radius: 50%; background: #4aa8ff; color: #fff; text-align: center; font-size: 11px; flex-shrink: 0; } +.app-pick span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.app-pick button { background: none; border: 0; color: var(--fg-mid); cursor: pointer; padding: 0 3px; font-size: 14px; } +.app-pick button:hover { color: var(--fg-strong); } +.app-default { position: absolute; inset: 0 0 48px 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--bg-2); } +.app-default h3 { margin: 0; color: var(--fg-strong); } +.app-default p { margin: 0 0 6px; color: var(--fg-dim); } +.app-default label { display: flex; gap: 8px; align-items: center; min-width: 160px; } +.app-builder-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; z-index: 7; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--bg-3); border-top: 1px solid var(--line); } +.app-builder-bar .grow { flex: 1; } +.app-builder-bar button, .app-default button, .app-run-row button, .app-graph, .app-field label.button, .app-progress button, .app-results button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 5px 14px; cursor: pointer; font: inherit; } +.app-builder-bar button.primary, .app-default button.primary, .app-run-row button.primary { background: #2f5fa8; border-color: #3d73c4; color: #fff; } +.app-progress button.danger { background: #8a2f2f; border-color: #b04545; color: #fff; } +.app-builder-bar button:disabled, .app-run-row button:disabled { opacity: 0.5; cursor: default; } +.appmode { position: absolute; inset: 0; z-index: 5; display: flex; background: var(--bg-1); } +.appmode.preview { bottom: 48px; } +.app-out { flex: 1; min-width: 0; display: flex; flex-direction: column; } +.app-progress { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--fg-strong); font-size: 13px; } +.app-progress span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.app-progress .run-progress { position: relative; width: 220px; height: 8px; border-radius: 4px; background: var(--bg-0); border: 1px solid var(--line-2); overflow: hidden; } +.app-progress .run-progress > div { height: 100%; background: #4caf50; transition: width 0.3s; } +.app-progress .run-progress.indeterminate > div { position: absolute; transition: none; animation: run-slide 1.4s linear infinite; } +.app-results { flex: 1; min-height: 0; overflow: auto; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 14px; padding: 18px; } +.app-results img { max-width: 100%; max-height: calc(100% - 4px); object-fit: contain; border-radius: 6px; box-shadow: 0 6px 26px rgba(0,0,0,0.4); cursor: zoom-in; } +.app-results pre { max-width: 100%; white-space: pre-wrap; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 12px; margin: 0; } +.app-empty { margin: auto; color: var(--fg-dim); } +.app-runs { display: flex; gap: 8px; padding: 8px 12px; overflow-x: auto; border-top: 1px solid var(--line); background: var(--bg-2); flex-shrink: 0; } +.app-run { width: 64px; height: 64px; flex-shrink: 0; border-radius: 5px; border: 2px solid var(--line-2); background: var(--bg-3); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; color: var(--fg-mid); font-size: 12px; } +.app-run img { width: 100%; height: 100%; object-fit: cover; } +.app-run.on { border-color: #4aa8ff; } +.app-run.queued { border-style: dashed; border-color: #d9a520; cursor: default; } +.app-run.failed { border-color: #b04545; } +.app-run.running { border-color: #4caf50; } +.app-in { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); font-size: 13px; } +.app-in-body { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 10px; } +.app-field { display: flex; flex-direction: column; gap: 5px; padding-bottom: 10px; border-bottom: 1px solid var(--line); } +.app-field.missing { color: #e05555; } +.app-field-node { color: var(--fg-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; } +.app-field > label { display: flex; justify-content: space-between; align-items: center; gap: 10px; } +.app-field > label > span:first-child { color: var(--fg-mid); } +.app-field > label.row { justify-content: flex-start; } +.app-field > label.multi { flex-direction: column; align-items: stretch; gap: 3px; } +.app-field input[type=text], .app-field input[type=number], .app-field select, .app-field textarea { width: 190px; box-sizing: border-box; background: var(--bg-1); color: var(--fg); border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 6px; font: inherit; } +.app-field > label.multi textarea { width: 100%; resize: vertical; } +.app-field label.button { align-self: flex-start; } +.app-picture { max-width: 100%; max-height: 200px; object-fit: contain; border-radius: 5px; align-self: center; } +.app-run-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); } +.app-run-row .batch { width: 60px; background: var(--bg-1); color: var(--fg); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 5px; font: inherit; } +.app-run-row button.primary { flex: 1; padding: 8px 14px; font-weight: 600; } +.app-graph { margin: 0 12px 12px; } +@media (max-width: 760px) { + .appmode { flex-direction: column; } + .app-in { width: auto; max-height: 55%; border-left: 0; border-top: 1px solid var(--line); } + .app-picks { width: 100%; top: auto; height: 45%; } + .app-steps { left: 8px; right: 8px; transform: none; flex-wrap: wrap; } +} + +/* ---- Workflow library (Workflows / Apps sidebar) and the Save dialog ---- */ +.library.workflows { z-index: 6; } /* above the app view: the library is used from an app too */ +.workflows .wf-tabs { display: flex; gap: 4px; padding: 8px 8px 0; } +.workflows .wf-tabs button { flex: 1; background: var(--ctl); color: var(--fg-mid); border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 8px; cursor: pointer; font: inherit; } +.workflows .wf-tabs button.on { background: #2f5fa8; border-color: #3d73c4; color: #fff; } +.workflows .wf-create { width: 100%; margin: 4px 0; background: var(--ctl); color: var(--fg); border: 1px dashed var(--line-2); border-radius: 5px; padding: 6px; cursor: pointer; font: inherit; } +.workflows .wf-create:hover { border-color: #4f8fe8; color: var(--fg-strong); } +.workflows .wf-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 4px; cursor: pointer; color: var(--fg); } +.workflows .wf-item:hover { background: var(--bg-3); } +.workflows .wf-item.active { background: #2f5fa833; color: var(--fg-strong); } +.workflows .wf-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.workflows .wf-item small { color: var(--fg-dim); font-size: 11px; white-space: nowrap; } +.workflows .wf-item button { background: none; border: 0; color: var(--fg-dim); cursor: pointer; padding: 0 3px; font-size: 13px; visibility: hidden; } +.workflows .wf-item:hover button, .workflows .wf-item.confirm button { visibility: visible; } +.workflows .wf-item button:hover { color: var(--fg-strong); } +.workflows .wf-item.confirm { cursor: default; background: var(--bg-3); } +.workflows .wf-item.confirm button { border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 8px; color: var(--fg); background: var(--ctl); font-size: 12px; } +.workflows .wf-item.confirm button.danger { background: #8a2f2f; border-color: #b04545; color: #fff; } +.workflows .wf-app { font-size: 10px; font-weight: 600; text-transform: uppercase; color: #fff; background: #2f5fa8; border-radius: 3px; padding: 0 4px; } +.workflows .wf-rename { width: 100%; box-sizing: border-box; margin: 2px 0; padding: 4px 8px; background: var(--bg-1); color: var(--fg-strong); border: 1px solid #4f8fe8; border-radius: 4px; font: inherit; outline: none; } +.workflows .wf-foot { display: flex; align-items: center; gap: 6px; padding: 8px; border-top: 1px solid var(--line); font-size: 12px; } +.workflows .wf-foot button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 10px; cursor: pointer; font: inherit; } +.workflows .wf-foot span { color: var(--fg-dim); margin-left: auto; white-space: nowrap; } +.modal-back { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: #0008; } +.save-dialog { width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 16px 18px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 40px #000a; display: flex; flex-direction: column; gap: 10px; } +.save-dialog h3 { margin: 0; color: var(--fg-strong); font-size: 15px; } +.save-dialog p { margin: 0; color: var(--fg-dim); font-size: 12px; } +.save-dialog p.warn { color: #e0b040; } +.save-dialog input { padding: 6px 10px; background: var(--bg-1); color: var(--fg-strong); border: 1px solid var(--line-2); border-radius: 5px; font: inherit; outline: none; } +.save-dialog input:focus { border-color: #4f8fe8; } +.save-dialog .row { display: flex; justify-content: flex-end; gap: 8px; } +.save-dialog button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 5px 14px; cursor: pointer; font: inherit; } +.save-dialog button.primary { background: #2f5fa8; border-color: #3d73c4; color: #fff; } + +/* ---- Keyboard shortcuts ---- */ +.settings .set-button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 10px; cursor: pointer; font: inherit; } +.shortcuts { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 80px); box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 40px #000a; font-size: 13px; } +.shortcuts .set-head { display: flex; justify-content: space-between; align-items: center; color: var(--fg-strong); font-weight: 600; } +.shortcuts .set-head button { background: none; border: 0; color: var(--fg-mid); font-size: 18px; cursor: pointer; } +.shortcuts .sc-filter { padding: 6px 10px; background: var(--bg-1); color: var(--fg-strong); border: 1px solid var(--line-2); border-radius: 5px; font: inherit; outline: none; } +.shortcuts .sc-filter:focus { border-color: #4f8fe8; } +.shortcuts .sc-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; } +.shortcuts .sc-row { display: flex; align-items: center; gap: 6px; padding: 4px 4px; border-bottom: 1px solid var(--line); } +.shortcuts .sc-row.changed .sc-name { color: #7fb4ff; } +.shortcuts .sc-name { flex: 1; min-width: 0; color: var(--fg); } +.shortcuts .sc-keys { min-width: 170px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; background: none; border: 1px solid transparent; border-radius: 5px; padding: 3px 5px; cursor: pointer; color: var(--fg); font: inherit; } +.shortcuts .sc-keys:hover { border-color: var(--line-2); } +.shortcuts .sc-keys.capturing { border-color: #4f8fe8; color: #7fb4ff; outline: none; } +.shortcuts kbd { background: var(--bg-1); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; font-family: inherit; font-size: 12px; line-height: 18px; color: var(--fg-strong); } +.shortcuts .sc-none { color: var(--fg-dim); } +.shortcuts .sc-act { background: none; border: 0; color: var(--fg-mid); cursor: pointer; font-size: 15px; padding: 0 4px; } +.shortcuts .sc-act:disabled { opacity: 0.3; cursor: default; } +.shortcuts .sc-foot { display: flex; align-items: center; gap: 10px; color: var(--fg-mid); } +.shortcuts .sc-foot span { flex: 1; } +.shortcuts .sc-foot button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 12px; cursor: pointer; font: inherit; } + +/* ---- Node templates ---- */ +.templates-manage .tpl-list { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; } +.templates-manage .tpl-row { display: flex; gap: 6px; align-items: center; } +.templates-manage .tpl-row input { flex: 1; } +.templates-manage .row { align-items: center; } +.templates-manage .row .grow { flex: 1; } +.save-dialog label.button { background: var(--ctl); color: var(--fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 5px 14px; cursor: pointer; font: inherit; } +/* The compositor editor (Create Layered Image) */ +.cmp { position: fixed; inset: 8px; z-index: 40; display: flex; flex-direction: column; background: var(--bg-1); color: var(--fg); border: 1px solid var(--line-2); border-radius: 8px; outline: none; overflow: hidden; } +.cmp button, .cmp select, .cmp input { font: inherit; color: var(--fg); background: var(--ctl); border: 1px solid var(--line-2); border-radius: 5px; } +.cmp button { cursor: pointer; padding: 3px 9px; } +.cmp button:hover:not(:disabled) { background: var(--ctl-hover); } +.cmp button:disabled { opacity: 0.4; cursor: default; } +.cmp button.on { background: var(--accent, #2f6fdb); color: #fff; border-color: transparent; } +.cmp-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); } +.cmp-title { font-weight: 600; color: var(--fg-strong); } +.cmp-fill { flex: 1; } +.cmp-body { flex: 1; min-height: 0; display: flex; } +.cmp-layers { width: 208px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line-2); } +.cmp-props { width: 224px; flex-shrink: 0; border-left: 1px solid var(--line-2); overflow-y: auto; } +.cmp-h { padding: 8px 12px; font-weight: 600; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.cmp-rows { flex: 1; min-height: 0; overflow-y: auto; } +.cmp-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; cursor: pointer; } +.cmp-row.on { background: var(--bg-4); box-shadow: inset 2px 0 0 var(--accent, #2f6fdb); } +.cmp-row.cmp-bg { border-top: 1px solid var(--line-2); } +.cmp .cmp-eye { width: 24px; padding: 0; border: none; background: none; } +.cmp .cmp-eye.off { color: var(--fg-dim); } +.cmp-thumb { width: 32px; height: 32px; flex-shrink: 0; object-fit: cover; border-radius: 3px; background: repeating-conic-gradient(#888 0 25%, #666 0 50%) 0 0 / 10px 10px; } +.cmp-swatch { display: inline-block; border: 1px solid var(--line-2); } +.cmp-name { display: flex; flex-direction: column; min-width: 0; } +.cmp-name > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.cmp-line { font-size: 12px; color: var(--fg-dim); } +.cmp-order { display: flex; justify-content: flex-end; gap: 4px; padding: 6px 8px; border-top: 1px solid var(--line-2); } +.cmp-view { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--bg-0); } +.cmp-canvas { position: absolute; overflow: hidden; isolation: isolate; box-shadow: 0 2px 12px #0008; background: repeating-conic-gradient(#555 0 25%, #444 0 50%) 0 0 / 16px 16px; } +.cmp-fillbg { position: absolute; inset: 0; } +.cmp-layer { position: absolute; max-width: none; user-select: none; } +.cmp-frame { position: absolute; box-sizing: border-box; border: 1px solid #4f8fe8; pointer-events: none; } +.cmp-knob { position: absolute; width: 8px; height: 8px; margin: -5px 0 0 -5px; background: #fff; border: 1px solid #4f8fe8; } +.cmp-knob.cmp-rot { left: 50%; top: -22px; border-radius: 50%; } +.cmp-stem { position: absolute; left: 50%; top: -22px; width: 1px; height: 22px; background: #4f8fe8; } +.cmp-catch { position: absolute; inset: 0; touch-action: none; } +.cmp-catch.hand { cursor: grab; } +.cmp-tools { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px 8px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 18px; } +.cmp-sec { padding: 8px 12px; border-top: 1px solid var(--line-2); } +.cmp-sec label { display: block; margin-bottom: 5px; font-size: 12px; color: var(--fg-mid); } +.cmp-pair { display: flex; gap: 8px; } +.cmp-pair > span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; color: var(--fg-dim); } +.cmp-pair > span.cmp-col { flex-direction: column; align-items: stretch; gap: 0; } +.cmp-col > span { display: flex; align-items: center; gap: 5px; } +.cmp-props input:not([type=color]) { width: 100%; min-width: 0; box-sizing: border-box; padding: 3px 6px; } +.cmp-props select { width: 100%; padding: 3px 4px; } +.cmp-btns { display: flex; gap: 4px; flex-wrap: wrap; } +.cmp-btns button { padding: 2px 7px; } +.cmp-note { padding: 8px 12px; font-size: 12px; color: var(--fg-dim); } diff --git a/examples/depth.json b/examples/depth.json new file mode 100644 index 0000000000000000000000000000000000000000..63c678adee165222b1f6a50e1896589142ea078b --- /dev/null +++ b/examples/depth.json @@ -0,0 +1,27 @@ +{ + "1": { + "class_type": "LoadImage", + "inputs": { + "image": "example.png" + } + }, + "2": { + "class_type": "DepthAnythingV2", + "inputs": { + "image": [ + "1", + 0 + ] + } + }, + "3": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "2", + 0 + ], + "filename_prefix": "depth" + } + } +} diff --git a/examples/detect.json b/examples/detect.json new file mode 100644 index 0000000000000000000000000000000000000000..0e66c75db0df625f2558a0a929ae52d004830284 --- /dev/null +++ b/examples/detect.json @@ -0,0 +1,58 @@ +{ + "1": { + "class_type": "LoadImage", + "inputs": { + "image": "example.png" + } + }, + "2": { + "class_type": "ObjectDetection", + "inputs": { + "image": [ + "1", + 0 + ], + "confidence": 0.25 + } + }, + "3": { + "class_type": "PoseEstimation", + "inputs": { + "image": [ + "1", + 0 + ], + "confidence": 0.3, + "overlay": true + } + }, + "4": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "2", + 0 + ], + "filename_prefix": "boxes" + } + }, + "5": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "3", + 0 + ], + "filename_prefix": "pose" + } + }, + "6": { + "class_type": "PreviewAny", + "inputs": { + "source": [ + "2", + 1 + ] + } + } +} diff --git a/examples/example.png b/examples/example.png new file mode 100644 index 0000000000000000000000000000000000000000..b63a16b207b5582f7d0203d741aec4f82f863db0 --- /dev/null +++ b/examples/example.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c12d2148656188ca249c16d29726751cb53ef2af16bf8b79321f2fc5f55c7a3f +size 422067 diff --git a/examples/example_inpaint.png b/examples/example_inpaint.png new file mode 100644 index 0000000000000000000000000000000000000000..46ee8f5cc357205777c3045d7f362cf27a06b57b --- /dev/null +++ b/examples/example_inpaint.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f4bcf1b6fa04f4f88b6fb34e4bdece44ed0497462f36a0fe954e9e3b1ac3238 +size 236689 diff --git a/examples/flux2-klein-edit.json b/examples/flux2-klein-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..9da1ab9ca24b9bc354957b754cd9a732be6e8f04 --- /dev/null +++ b/examples/flux2-klein-edit.json @@ -0,0 +1,34 @@ +{ + "1": { + "class_type": "LoadImage", + "inputs": { + "image": "example.png" + } + }, + "2": { + "class_type": "Flux2Klein", + "inputs": { + "prompt": "make the sky a deep orange sunset", + "width": 512, + "height": 512, + "steps": 4, + "seed": 7, + "batch_size": 1, + "weights": "4-bit", + "reference_images": [ + "1", + 0 + ] + } + }, + "3": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "2", + 0 + ], + "filename_prefix": "SpawnGen" + } + } +} diff --git a/examples/flux2-klein.json b/examples/flux2-klein.json new file mode 100644 index 0000000000000000000000000000000000000000..7161615ee8c75eac808c766293a6c249385209ae --- /dev/null +++ b/examples/flux2-klein.json @@ -0,0 +1,24 @@ +{ + "1": { + "class_type": "Flux2Klein", + "inputs": { + "prompt": "a photo of a single red apple on a wooden table, soft daylight", + "width": 512, + "height": 512, + "steps": 4, + "seed": 7, + "batch_size": 1, + "weights": "4-bit" + } + }, + "2": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "1", + 0 + ], + "filename_prefix": "SpawnGen" + } + } +} diff --git a/examples/flux3-klein.json b/examples/flux3-klein.json new file mode 100644 index 0000000000000000000000000000000000000000..b3471ac2105324a67d39687b96c08f95bc68524b --- /dev/null +++ b/examples/flux3-klein.json @@ -0,0 +1,24 @@ +{ + "1": { + "class_type": "Flux3Klein", + "inputs": { + "caption": "A photograph of a single glossy red apple resting on a weathered wooden table, soft window light from the left, shallow depth of field, a blurred cream-coloured wall behind.", + "width": 512, + "height": 512, + "steps": 16, + "seed": 7, + "batch_size": 1, + "weights": "4-bit" + } + }, + "2": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "1", + 0 + ], + "filename_prefix": "SpawnGen" + } + } +} diff --git a/examples/hires-fix.json b/examples/hires-fix.json new file mode 100644 index 0000000000000000000000000000000000000000..60b11210cf997a3f39f25eedc169ec70e1f71cc9 --- /dev/null +++ b/examples/hires-fix.json @@ -0,0 +1,124 @@ +{ + "1": { + "class_type": "CheckpointLoaderSimple", + "inputs": { + "ckpt_name": "sd_turbo" + } + }, + "2": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "a photo of a red apple on a wooden table", + "clip": [ + "1", + 1 + ] + } + }, + "3": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "", + "clip": [ + "1", + 1 + ] + } + }, + "4": { + "class_type": "EmptyLatentImage", + "inputs": { + "width": 256, + "height": 256, + "batch_size": 1 + } + }, + "5": { + "class_type": "KSampler", + "inputs": { + "model": [ + "1", + 0 + ], + "positive": [ + "2", + 0 + ], + "negative": [ + "3", + 0 + ], + "latent_image": [ + "4", + 0 + ], + "seed": 7, + "steps": 1, + "cfg": 1, + "sampler_name": "euler", + "scheduler": "normal", + "denoise": 1 + } + }, + "6": { + "class_type": "LatentUpscaleBy", + "inputs": { + "samples": [ + "5", + 0 + ], + "upscale_method": "bilinear", + "scale_by": 2 + } + }, + "7": { + "class_type": "KSampler", + "inputs": { + "model": [ + "1", + 0 + ], + "positive": [ + "2", + 0 + ], + "negative": [ + "3", + 0 + ], + "latent_image": [ + "6", + 0 + ], + "seed": 8, + "steps": 2, + "cfg": 1, + "sampler_name": "euler", + "scheduler": "normal", + "denoise": 0.5 + } + }, + "8": { + "class_type": "VAEDecode", + "inputs": { + "samples": [ + "7", + 0 + ], + "vae": [ + "1", + 2 + ] + } + }, + "9": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "8", + 0 + ], + "filename_prefix": "SpawnGen" + } + } +} diff --git a/examples/image-to-3d.json b/examples/image-to-3d.json new file mode 100644 index 0000000000000000000000000000000000000000..bebbe98099476904b2a729e1c83fb48df79e8314 --- /dev/null +++ b/examples/image-to-3d.json @@ -0,0 +1,31 @@ +{ + "1": { + "class_type": "LoadImage", + "inputs": { + "image": "example.png" + } + }, + "2": { + "class_type": "TrellisImageTo3D", + "inputs": { + "image": [ + "1", + 0 + ], + "seed": 42, + "max_faces": 100000, + "texture_size": "1024", + "resolution": "512" + } + }, + "3": { + "class_type": "SaveGLB", + "inputs": { + "mesh": [ + "2", + 0 + ], + "filename_prefix": "ComfyUI/model" + } + } +} diff --git a/examples/img2img.json b/examples/img2img.json new file mode 100644 index 0000000000000000000000000000000000000000..4346fac49a65a563ced8557b5c60bde97fea86c5 --- /dev/null +++ b/examples/img2img.json @@ -0,0 +1,110 @@ +{ + "1": { + "class_type": "CheckpointLoaderSimple", + "inputs": { + "ckpt_name": "sd_turbo" + } + }, + "2": { + "class_type": "LoadImage", + "inputs": { + "image": "example.png" + } + }, + "3": { + "class_type": "ImageScale", + "inputs": { + "image": [ + "2", + 0 + ], + "upscale_method": "bicubic", + "width": 512, + "height": 512, + "crop": "center" + } + }, + "4": { + "class_type": "VAEEncode", + "inputs": { + "pixels": [ + "3", + 0 + ], + "vae": [ + "1", + 2 + ] + } + }, + "5": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "an oil painting", + "clip": [ + "1", + 1 + ] + } + }, + "6": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "", + "clip": [ + "1", + 1 + ] + } + }, + "7": { + "class_type": "KSampler", + "inputs": { + "model": [ + "1", + 0 + ], + "positive": [ + "5", + 0 + ], + "negative": [ + "6", + 0 + ], + "latent_image": [ + "4", + 0 + ], + "seed": 7, + "steps": 4, + "cfg": 1, + "sampler_name": "euler", + "scheduler": "normal", + "denoise": 0.6 + } + }, + "8": { + "class_type": "VAEDecode", + "inputs": { + "samples": [ + "7", + 0 + ], + "vae": [ + "1", + 2 + ] + } + }, + "9": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "8", + 0 + ], + "filename_prefix": "SpawnGen" + } + } +} diff --git a/examples/index.json b/examples/index.json new file mode 100644 index 0000000000000000000000000000000000000000..5840866d172e8fc9b218e8dcb75587ef2c3c337e --- /dev/null +++ b/examples/index.json @@ -0,0 +1,87 @@ +[ + { + "name": "Text to image (SD-Turbo, 1 step)", + "file": "txt2img-sd-turbo.json", + "note": "The smallest model: draws in one step." + }, + { + "name": "Text to image (Stable Diffusion 1.5, real guidance)", + "file": "txt2img-sd15.json", + "note": "20 steps with a negative prompt; downloads 4.4 GB the first time." + }, + { + "name": "Image to image", + "file": "img2img.json", + "note": "Upload a picture, pick it in Load Image, then Queue." + }, + { + "name": "Hires fix (draw small, upscale the latent, refine)", + "file": "hires-fix.json", + "note": "SD-Turbo at 256 px, then 512 px." + }, + { + "name": "Inpainting (redraw the masked coat)", + "file": "inpaint.json", + "note": "The coat in the example picture is already masked (transparent), so Queue redraws it from the prompt. For your own: upload a picture, right-click Load Image > Open in Mask Editor, paint, Queue." + }, + { + "name": "FLUX.2 Klein text to image", + "file": "flux2-klein.json", + "note": "4B model, 4 steps; downloads 4.6 GB the first time. Needs a GPU with about 4 GB free." + }, + { + "name": "FLUX 3 Klein text to image", + "file": "flux3-klein.json", + "note": "5.6B model, 16 steps, wants a full scene caption; downloads 6 GB the first time." + }, + { + "name": "FLUX.2 Klein picture edit", + "file": "flux2-klein-edit.json", + "note": "Edits the picture you load, following the prompt." + }, + { + "name": "Text to video (LTX-Video 2B)", + "file": "ltx-video-t2v.json", + "note": "A one-second clip (25 frames at 24 fps) from a prompt, saved as an animated WEBP. The first run downloads about 8 GB of weights." + }, + { + "name": "Picture to video (LTX-Video 2B)", + "file": "ltx-video-i2v.json", + "note": "The example picture as the first frame of a one-second clip; the prompt says what happens next. The first run downloads about 8 GB of weights." + }, + { + "name": "LLM writes the prompt, SD-Turbo draws it", + "file": "llm-prompt.json", + "note": "A small local language model expands your idea into a prompt." + }, + { + "name": "Upscale a picture with a model", + "file": "upscale.json", + "note": "ESPCN x3, a few hundred KB." + }, + { + "name": "Remove the background", + "file": "remove-background.json", + "note": "RMBG 1.4: the mask, and the cut-out on green." + }, + { + "name": "Depth map", + "file": "depth.json", + "note": "Depth Anything V2 small." + }, + { + "name": "Pose and object detection", + "file": "detect.json", + "note": "Boxes around what is in the picture, the list of what was found, and the body skeleton." + }, + { + "name": "Speak and listen (Kokoro, then Parakeet)", + "file": "speech.json", + "note": "Text to speech (Kokoro), then the speech back to text (Parakeet)." + }, + { + "name": "Image to 3D model (TRELLIS.2)", + "file": "image-to-3d.json", + "note": "Upload a picture of one object, pick it in Load Image, Queue; right-click Save 3D Model > View 3D model. About 10 GB the first time." + } +] diff --git a/examples/inpaint.json b/examples/inpaint.json new file mode 100644 index 0000000000000000000000000000000000000000..0a6b17cb909c99963675c4ccd20442d0692f6fcd --- /dev/null +++ b/examples/inpaint.json @@ -0,0 +1,115 @@ +{ + "1": { + "class_type": "CheckpointLoaderSimple", + "inputs": { + "ckpt_name": "sd_turbo" + } + }, + "2": { + "class_type": "LoadImage", + "inputs": { + "image": "example_inpaint.png" + } + }, + "3": { + "class_type": "ImageScale", + "inputs": { + "image": [ + "2", + 0 + ], + "upscale_method": "bicubic", + "width": 512, + "height": 512, + "crop": "center" + } + }, + "4": { + "class_type": "VAEEncodeForInpaint", + "inputs": { + "pixels": [ + "3", + 0 + ], + "vae": [ + "1", + 2 + ], + "mask": [ + "2", + 1 + ], + "grow_mask_by": 6 + } + }, + "5": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "a blue denim jacket", + "clip": [ + "1", + 1 + ] + } + }, + "6": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "", + "clip": [ + "1", + 1 + ] + } + }, + "7": { + "class_type": "KSampler", + "inputs": { + "model": [ + "1", + 0 + ], + "positive": [ + "5", + 0 + ], + "negative": [ + "6", + 0 + ], + "latent_image": [ + "4", + 0 + ], + "seed": 7, + "steps": 4, + "cfg": 1, + "sampler_name": "euler", + "scheduler": "normal", + "denoise": 1 + } + }, + "8": { + "class_type": "VAEDecode", + "inputs": { + "samples": [ + "7", + 0 + ], + "vae": [ + "1", + 2 + ] + } + }, + "9": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "8", + 0 + ], + "filename_prefix": "SpawnGen" + } + } +} diff --git a/examples/llm-prompt.json b/examples/llm-prompt.json new file mode 100644 index 0000000000000000000000000000000000000000..d41463321a9c8d77f7ea2d749ef2db5cc047d533 --- /dev/null +++ b/examples/llm-prompt.json @@ -0,0 +1,108 @@ +{ + "1": { + "class_type": "TextGeneration", + "inputs": { + "prompt": "Write one vivid sentence describing a single red apple on a wooden table, for an image generator. Answer with the sentence only.", + "system_prompt": "You write short prompts for image generators.", + "model": "qwen2.5-0.5b-instruct", + "max_new_tokens": 60, + "temperature": 0 + } + }, + "2": { + "class_type": "CheckpointLoaderSimple", + "inputs": { + "ckpt_name": "sd_turbo" + } + }, + "3": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": [ + "1", + 0 + ], + "clip": [ + "2", + 1 + ] + } + }, + "4": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "", + "clip": [ + "2", + 1 + ] + } + }, + "5": { + "class_type": "EmptyLatentImage", + "inputs": { + "width": 512, + "height": 512, + "batch_size": 1 + } + }, + "6": { + "class_type": "KSampler", + "inputs": { + "model": [ + "2", + 0 + ], + "positive": [ + "3", + 0 + ], + "negative": [ + "4", + 0 + ], + "latent_image": [ + "5", + 0 + ], + "seed": 7, + "steps": 1, + "cfg": 1, + "sampler_name": "euler", + "scheduler": "normal", + "denoise": 1 + } + }, + "7": { + "class_type": "VAEDecode", + "inputs": { + "samples": [ + "6", + 0 + ], + "vae": [ + "2", + 2 + ] + } + }, + "8": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "7", + 0 + ], + "filename_prefix": "SpawnGen" + } + }, + "9": { + "class_type": "PreviewAny", + "inputs": { + "source": [ + "1", + 0 + ] + } + } +} diff --git a/examples/ltx-video-i2v.json b/examples/ltx-video-i2v.json new file mode 100644 index 0000000000000000000000000000000000000000..96b847fccc35128604d970c4831826a3d3c1c7e3 --- /dev/null +++ b/examples/ltx-video-i2v.json @@ -0,0 +1,41 @@ +{ + "1": { + "class_type": "LoadImage", + "inputs": { + "image": "example.png" + } + }, + "2": { + "class_type": "LtxVideo", + "inputs": { + "prompt": "The woman in the red coat smiles and waves at the camera with her right hand, then lowers it, plain light grey studio background, steady camera", + "width": 352, + "height": 512, + "length": 25, + "frame_rate": 24, + "seed": 42, + "start_image": [ + "1", + 0 + ], + "start_strength": 1.0, + "end_strength": 1.0, + "upscale": false, + "precision": "q8" + } + }, + "3": { + "class_type": "SaveAnimatedWEBP", + "inputs": { + "images": [ + "2", + 0 + ], + "filename_prefix": "SpawnGen-video", + "fps": 24, + "lossless": false, + "quality": 90, + "method": "default" + } + } +} diff --git a/examples/ltx-video-t2v.json b/examples/ltx-video-t2v.json new file mode 100644 index 0000000000000000000000000000000000000000..8d337b32f1b1a4de75320270f956832f7ba5b931 --- /dev/null +++ b/examples/ltx-video-t2v.json @@ -0,0 +1,31 @@ +{ + "1": { + "class_type": "LtxVideo", + "inputs": { + "prompt": "A glossy red apple slowly turning on a weathered wooden table, soft window light, shallow depth of field, a gentle camera push in", + "width": 512, + "height": 352, + "length": 25, + "frame_rate": 24, + "seed": 42, + "start_strength": 1.0, + "end_strength": 1.0, + "upscale": false, + "precision": "q8" + } + }, + "2": { + "class_type": "SaveAnimatedWEBP", + "inputs": { + "images": [ + "1", + 0 + ], + "filename_prefix": "SpawnGen-video", + "fps": 24, + "lossless": false, + "quality": 90, + "method": "default" + } + } +} diff --git a/examples/remove-background.json b/examples/remove-background.json new file mode 100644 index 0000000000000000000000000000000000000000..35aa00daadcb8da767148382af013fc5cd1c9699 --- /dev/null +++ b/examples/remove-background.json @@ -0,0 +1,98 @@ +{ + "1": { + "class_type": "LoadImage", + "inputs": { + "image": "example.png" + } + }, + "2": { + "class_type": "RemoveBackground", + "inputs": { + "bg_removal_model": [ + "9", + 0 + ], + "image": [ + "1", + 0 + ] + } + }, + "3": { + "class_type": "MaskToImage", + "inputs": { + "mask": [ + "2", + 0 + ] + } + }, + "4": { + "class_type": "EmptyImage", + "inputs": { + "width": 512, + "height": 512, + "batch_size": 1, + "color": 65280 + } + }, + "5": { + "class_type": "ImageScale", + "inputs": { + "image": [ + "1", + 0 + ], + "upscale_method": "bicubic", + "width": 512, + "height": 512, + "crop": "center" + } + }, + "6": { + "class_type": "ImageCompositeMasked", + "inputs": { + "destination": [ + "4", + 0 + ], + "source": [ + "5", + 0 + ], + "x": 0, + "y": 0, + "resize_source": false, + "mask": [ + "2", + 0 + ] + } + }, + "7": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "3", + 0 + ], + "filename_prefix": "mask" + } + }, + "8": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "6", + 0 + ], + "filename_prefix": "cutout" + } + }, + "9": { + "class_type": "LoadBackgroundRemovalModel", + "inputs": { + "bg_removal_name": "RMBG-1.4" + } + } +} diff --git a/examples/speech.json b/examples/speech.json new file mode 100644 index 0000000000000000000000000000000000000000..8d46b51a1d0adfbd847a133b96cc7a3ab2c6949c --- /dev/null +++ b/examples/speech.json @@ -0,0 +1,39 @@ +{ + "1": { + "class_type": "KokoroTextToSpeech", + "inputs": { + "text": "Hello from SpawnGen. This is a test of speech.", + "voice": "af_heart", + "speed": 1 + } + }, + "2": { + "class_type": "SaveAudioAdvanced", + "inputs": { + "audio": [ + "1", + 0 + ], + "filename_prefix": "speech", + "format": "flac" + } + }, + "3": { + "class_type": "SpeechToText", + "inputs": { + "audio": [ + "1", + 0 + ] + } + }, + "4": { + "class_type": "PreviewAny", + "inputs": { + "source": [ + "3", + 0 + ] + } + } +} diff --git a/examples/txt2img-sd-turbo.json b/examples/txt2img-sd-turbo.json new file mode 100644 index 0000000000000000000000000000000000000000..216025e7fe28a8797714d689124715916cfe8321 --- /dev/null +++ b/examples/txt2img-sd-turbo.json @@ -0,0 +1,86 @@ +{ + "1": { + "class_type": "CheckpointLoaderSimple", + "inputs": { + "ckpt_name": "sd_turbo" + } + }, + "2": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "a photo of a red apple on a wooden table", + "clip": [ + "1", + 1 + ] + } + }, + "3": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "", + "clip": [ + "1", + 1 + ] + } + }, + "4": { + "class_type": "EmptyLatentImage", + "inputs": { + "width": 512, + "height": 512, + "batch_size": 1 + } + }, + "5": { + "class_type": "KSampler", + "inputs": { + "model": [ + "1", + 0 + ], + "positive": [ + "2", + 0 + ], + "negative": [ + "3", + 0 + ], + "latent_image": [ + "4", + 0 + ], + "seed": 7, + "steps": 1, + "cfg": 1, + "sampler_name": "euler", + "scheduler": "normal", + "denoise": 1 + } + }, + "6": { + "class_type": "VAEDecode", + "inputs": { + "samples": [ + "5", + 0 + ], + "vae": [ + "1", + 2 + ] + } + }, + "7": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "6", + 0 + ], + "filename_prefix": "SpawnGen" + } + } +} diff --git a/examples/txt2img-sd15.json b/examples/txt2img-sd15.json new file mode 100644 index 0000000000000000000000000000000000000000..8bfc2fe5aae9fc8adec5bb9779812596c0d1880c --- /dev/null +++ b/examples/txt2img-sd15.json @@ -0,0 +1,86 @@ +{ + "1": { + "class_type": "CheckpointLoaderSimple", + "inputs": { + "ckpt_name": "sd_v1-5" + } + }, + "2": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "a photo of a red apple on a wooden table, soft daylight, sharp focus", + "clip": [ + "1", + 1 + ] + } + }, + "3": { + "class_type": "CLIPTextEncode", + "inputs": { + "text": "blurry, low quality, deformed", + "clip": [ + "1", + 1 + ] + } + }, + "4": { + "class_type": "EmptyLatentImage", + "inputs": { + "width": 512, + "height": 512, + "batch_size": 1 + } + }, + "5": { + "class_type": "KSampler", + "inputs": { + "model": [ + "1", + 0 + ], + "positive": [ + "2", + 0 + ], + "negative": [ + "3", + 0 + ], + "latent_image": [ + "4", + 0 + ], + "seed": 7, + "steps": 20, + "cfg": 7, + "sampler_name": "dpmpp_2m", + "scheduler": "karras", + "denoise": 1 + } + }, + "6": { + "class_type": "VAEDecode", + "inputs": { + "samples": [ + "5", + 0 + ], + "vae": [ + "1", + 2 + ] + } + }, + "7": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "6", + 0 + ], + "filename_prefix": "SpawnGen" + } + } +} diff --git a/examples/upscale.json b/examples/upscale.json new file mode 100644 index 0000000000000000000000000000000000000000..eca9ae9e75d76f1daaacc162c694e12162b564f4 --- /dev/null +++ b/examples/upscale.json @@ -0,0 +1,37 @@ +{ + "1": { + "class_type": "LoadImage", + "inputs": { + "image": "example.png" + } + }, + "2": { + "class_type": "UpscaleModelLoader", + "inputs": { + "model_name": "espcn_x3.onnx" + } + }, + "3": { + "class_type": "ImageUpscaleWithModel", + "inputs": { + "upscale_model": [ + "2", + 0 + ], + "image": [ + "1", + 0 + ] + } + }, + "4": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "3", + 0 + ], + "filename_prefix": "SpawnGen" + } + } +} diff --git a/gzboot.json b/gzboot.json new file mode 100644 index 0000000000000000000000000000000000000000..59f93686695f9f87ff8b4e1fc97f201ca39b3d1a --- /dev/null +++ b/gzboot.json @@ -0,0 +1 @@ +{"all":true,"files":[]} diff --git a/index.html b/index.html new file mode 100644 index 0000000000000000000000000000000000000000..93233ac0cfe6bce7888cebb440474a24cc99e376 --- /dev/null +++ b/index.html @@ -0,0 +1,254 @@ + + + + + + + SpawnGen Studio + + + + + + +
+
Loading SpawnGen Studio...
+
+
+ An unhandled error has occurred. + Reload + x +
+ + + + + + + diff --git a/js/glbviewer.js b/js/glbviewer.js new file mode 100644 index 0000000000000000000000000000000000000000..28c1c7f4a48aa885858603f210634dbd656ac7b0 --- /dev/null +++ b/js/glbviewer.js @@ -0,0 +1,293 @@ +// A small glTF binary (.glb) viewer: orbit with the left button, pan with the right, zoom with the wheel; double-click fits the model again. +// Reads positions, normals, UVs, indices and the base colour texture of every mesh (the layout TRELLIS.2 and most exporters write). +// No libraries: one WebGL2 shader (a hemisphere light and a key light over the base colour). +(function () { + const TYPE_SIZES = { SCALAR: 1, VEC2: 2, VEC3: 3, VEC4: 4, MAT4: 16 }; + const ARRAYS = { 5120: Int8Array, 5121: Uint8Array, 5122: Int16Array, 5123: Uint16Array, 5125: Uint32Array, 5126: Float32Array }; + + function parseGlb(buffer) { + const view = new DataView(buffer); + if (buffer.byteLength < 12 || view.getUint32(0, true) !== 0x46546C67) throw new Error("This is not a .glb file."); + let offset = 12, json = null, bin = null; + while (offset + 8 <= view.byteLength) { + const length = view.getUint32(offset, true), type = view.getUint32(offset + 4, true); + const start = offset + 8; + if (type === 0x4E4F534A) json = JSON.parse(new TextDecoder().decode(new Uint8Array(buffer, start, length))); + else if (type === 0x004E4942 && !bin) bin = buffer.slice(start, start + length); + offset = start + length + ((4 - length % 4) % 4); + } + if (!json) throw new Error("The .glb has no JSON chunk."); + return { json, bin }; + } + + // The values of an accessor as a plain typed array (de-interleaved), plus its component count. + function readAccessor(glb, index) { + const acc = glb.json.accessors[index]; + const Array_ = ARRAYS[acc.componentType], n = TYPE_SIZES[acc.type]; + const out = new Array_(acc.count * n); + if (acc.bufferView === undefined) return { data: out, n, acc }; + const bv = glb.json.bufferViews[acc.bufferView]; + const base = (bv.byteOffset || 0) + (acc.byteOffset || 0); + const elementSize = Array_.BYTES_PER_ELEMENT * n, stride = bv.byteStride || elementSize; + const src = new DataView(glb.bin); + const getter = { 5120: "getInt8", 5121: "getUint8", 5122: "getInt16", 5123: "getUint16", 5125: "getUint32", 5126: "getFloat32" }[acc.componentType]; + for (let i = 0; i < acc.count; i++) + for (let c = 0; c < n; c++) + out[i * n + c] = src[getter](base + i * stride + c * Array_.BYTES_PER_ELEMENT, true); + return { data: out, n, acc }; + } + + function matrixOf(node) { + if (node.matrix) return Float32Array.from(node.matrix); + const t = node.translation || [0, 0, 0], q = node.rotation || [0, 0, 0, 1], s = node.scale || [1, 1, 1]; + const [x, y, z, w] = q; + return Float32Array.from([ + (1 - 2 * (y * y + z * z)) * s[0], (2 * (x * y + z * w)) * s[0], (2 * (x * z - y * w)) * s[0], 0, + (2 * (x * y - z * w)) * s[1], (1 - 2 * (x * x + z * z)) * s[1], (2 * (y * z + x * w)) * s[1], 0, + (2 * (x * z + y * w)) * s[2], (2 * (y * z - x * w)) * s[2], (1 - 2 * (x * x + y * y)) * s[2], 0, + t[0], t[1], t[2], 1]); + } + + function mul(a, b) { + const r = new Float32Array(16); + for (let c = 0; c < 4; c++) for (let rr = 0; rr < 4; rr++) + r[c * 4 + rr] = a[rr] * b[c * 4] + a[4 + rr] * b[c * 4 + 1] + a[8 + rr] * b[c * 4 + 2] + a[12 + rr] * b[c * 4 + 3]; + return r; + } + + function perspective(fovy, aspect, near, far) { + const f = 1 / Math.tan(fovy / 2), nf = 1 / (near - far); + return Float32Array.from([f / aspect, 0, 0, 0, 0, f, 0, 0, 0, 0, (far + near) * nf, -1, 0, 0, 2 * far * near * nf, 0]); + } + + function lookAt(eye, target) { + const up = [0, 1, 0]; + let zx = eye[0] - target[0], zy = eye[1] - target[1], zz = eye[2] - target[2]; + const zl = Math.hypot(zx, zy, zz) || 1; zx /= zl; zy /= zl; zz /= zl; + let xx = up[1] * zz - up[2] * zy, xy = up[2] * zx - up[0] * zz, xz = up[0] * zy - up[1] * zx; + const xl = Math.hypot(xx, xy, xz) || 1; xx /= xl; xy /= xl; xz /= xl; + const yx = zy * xz - zz * xy, yy = zz * xx - zx * xz, yz = zx * xy - zy * xx; + return Float32Array.from([xx, yx, zx, 0, xy, yy, zy, 0, xz, yz, zz, 0, + -(xx * eye[0] + xy * eye[1] + xz * eye[2]), -(yx * eye[0] + yy * eye[1] + yz * eye[2]), -(zx * eye[0] + zy * eye[1] + zz * eye[2]), 1]); + } + + const VERTEX = `#version 300 es + in vec3 aPos; in vec3 aNormal; in vec2 aUv; + uniform mat4 uModel; uniform mat4 uView; uniform mat4 uProj; + out vec3 vNormal; out vec2 vUv; + void main() { + vNormal = mat3(uView * uModel) * aNormal; + vUv = aUv; + gl_Position = uProj * uView * uModel * vec4(aPos, 1.0); + }`; + const FRAGMENT = `#version 300 es + precision mediump float; + in vec3 vNormal; in vec2 vUv; + uniform sampler2D uTex; uniform vec4 uBase; uniform float uHasTex; uniform float uHasNormals; + out vec4 outColor; + void main() { + vec4 base = uBase; + if (uHasTex > 0.5) base *= texture(uTex, vUv); + vec3 n = normalize(vNormal); + if (!gl_FrontFacing) n = -n; + float light = 1.0; + if (uHasNormals > 0.5) { + float key = max(dot(n, normalize(vec3(0.4, 0.6, 0.7))), 0.0); + float fill = max(dot(n, normalize(vec3(-0.5, 0.1, 0.4))), 0.0); + float sky = 0.5 + 0.5 * n.y; + light = 0.5 + 0.3 * sky + 0.55 * key + 0.2 * fill; + } + outColor = vec4(pow(base.rgb * light, vec3(1.0)), base.a); + }`; + + function compile(gl, type, source) { + const s = gl.createShader(type); + gl.shaderSource(s, source); gl.compileShader(s); + if (!gl.getShaderParameter(s, gl.COMPILE_STATUS)) throw new Error(gl.getShaderInfoLog(s)); + return s; + } + + // Builds everything the GPU needs for the model: one draw item per mesh primitive, and the bounds of the whole thing. + async function load(gl, glb) { + const items = []; + const textures = new Map(); + const min = [Infinity, Infinity, Infinity], max = [-Infinity, -Infinity, -Infinity]; + + async function textureFor(textureIndex) { + if (textureIndex === undefined) return null; + if (textures.has(textureIndex)) return textures.get(textureIndex); + const tex = glb.json.textures[textureIndex]; + const image = glb.json.images[tex.source]; + let bitmap = null; + try { + if (image.bufferView !== undefined) { + const bv = glb.json.bufferViews[image.bufferView]; + const bytes = new Uint8Array(glb.bin, bv.byteOffset || 0, bv.byteLength); + bitmap = await createImageBitmap(new Blob([bytes], { type: image.mimeType || "image/png" }), { imageOrientation: "none", premultiplyAlpha: "none", colorSpaceConversion: "none" }); + } + } catch (e) { bitmap = null; } + let glTex = null; + if (bitmap) { + glTex = gl.createTexture(); + gl.bindTexture(gl.TEXTURE_2D, glTex); + gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false); + gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, bitmap); + gl.generateMipmap(gl.TEXTURE_2D); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_LINEAR); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, tex.sampler !== undefined ? (glb.json.samplers?.[tex.sampler]?.wrapS ?? gl.REPEAT) : gl.REPEAT); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, tex.sampler !== undefined ? (glb.json.samplers?.[tex.sampler]?.wrapT ?? gl.REPEAT) : gl.REPEAT); + } + textures.set(textureIndex, glTex); + return glTex; + } + + async function visit(nodeIndex, parent) { + const node = glb.json.nodes[nodeIndex]; + const world = mul(parent, matrixOf(node)); + if (node.mesh !== undefined) { + for (const prim of glb.json.meshes[node.mesh].primitives) { + if (prim.mode !== undefined && prim.mode !== 4) continue; // triangles only + const pos = readAccessor(glb, prim.attributes.POSITION); + const nrm = prim.attributes.NORMAL !== undefined ? readAccessor(glb, prim.attributes.NORMAL) : null; + const uv = prim.attributes.TEXCOORD_0 !== undefined ? readAccessor(glb, prim.attributes.TEXCOORD_0) : null; + const idx = prim.indices !== undefined ? readAccessor(glb, prim.indices).data : null; + const count = idx ? idx.length : pos.acc.count; + if (!idx) throw new Error("This viewer needs indexed triangles."); + const material = prim.material !== undefined ? glb.json.materials[prim.material] : {}; + const pbr = material.pbrMetallicRoughness || {}; + const make = (data, size) => { + const b = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, b); gl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW); return { buffer: b, size }; + }; + const ib = gl.createBuffer(); gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, ib); + const indexData = idx instanceof Uint32Array || idx instanceof Uint16Array ? idx : Uint32Array.from(idx); + gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, indexData, gl.STATIC_DRAW); + for (let i = 0; i < pos.acc.count; i++) { + const x = pos.data[i * 3], y = pos.data[i * 3 + 1], z = pos.data[i * 3 + 2]; + const wx = world[0] * x + world[4] * y + world[8] * z + world[12], wy = world[1] * x + world[5] * y + world[9] * z + world[13], wz = world[2] * x + world[6] * y + world[10] * z + world[14]; + if (wx < min[0]) min[0] = wx; if (wy < min[1]) min[1] = wy; if (wz < min[2]) min[2] = wz; + if (wx > max[0]) max[0] = wx; if (wy > max[1]) max[1] = wy; if (wz > max[2]) max[2] = wz; + } + items.push({ + pos: make(pos.data, 3), normal: nrm ? make(nrm.data, 3) : null, uv: uv ? make(uv.data, 2) : null, + indices: ib, count, indexType: indexData instanceof Uint16Array ? gl.UNSIGNED_SHORT : gl.UNSIGNED_INT, model: world, + base: pbr.baseColorFactor || [1, 1, 1, 1], texture: await textureFor(pbr.baseColorTexture?.index), doubleSided: !!material.doubleSided, + }); + } + } + for (const child of node.children || []) await visit(child, world); + } + + const scene = glb.json.scenes?.[glb.json.scene ?? 0]; + const roots = scene ? scene.nodes : (glb.json.nodes || []).map((_, i) => i); + const identity = Float32Array.from([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); + for (const root of roots) await visit(root, identity); + if (!items.length) throw new Error("The .glb holds no triangles to show."); + return { items, min, max }; + } + + // Opens the viewer over the page. Resolves when it is closed. `url` is anything fetch can read (a data URL, or a same-origin file). + window.spawngenView3D = function (url, title) { + return new Promise(async resolve => { + const root = document.createElement("div"); + root.className = "glbviewer"; + root.innerHTML = '
drag: orbit · right drag: pan · wheel: zoom · double-click: fit' + + '
' + + '
Loading...
'; + root.querySelector(".gv-title").textContent = title || "3D model"; + document.body.appendChild(root); + const canvas = root.querySelector(".gv-canvas"), status = root.querySelector(".gv-status"); + let raf = 0, disposed = false; + const finish = () => { + if (disposed) return; + disposed = true; + cancelAnimationFrame(raf); + document.removeEventListener("keydown", onKey); + root.remove(); + resolve(); + }; + const onKey = e => { if (e.key === "Escape") { e.preventDefault(); finish(); } }; + document.addEventListener("keydown", onKey); + root.querySelector(".gv-close").onclick = finish; + root.querySelector(".gv-download").onclick = () => { + const a = document.createElement("a"); a.href = url; a.download = (title || "model") + ".glb"; document.body.appendChild(a); a.click(); a.remove(); + }; + try { + const gl = canvas.getContext("webgl2", { antialias: true, alpha: false }); + if (!gl) throw new Error("This browser has no WebGL2."); + const glb = parseGlb(await (await fetch(url)).arrayBuffer()); + const model = await load(gl, glb); + const program = gl.createProgram(); + gl.attachShader(program, compile(gl, gl.VERTEX_SHADER, VERTEX)); + gl.attachShader(program, compile(gl, gl.FRAGMENT_SHADER, FRAGMENT)); + gl.linkProgram(program); + if (!gl.getProgramParameter(program, gl.LINK_STATUS)) throw new Error(gl.getProgramInfoLog(program)); + const loc = { pos: gl.getAttribLocation(program, "aPos"), normal: gl.getAttribLocation(program, "aNormal"), uv: gl.getAttribLocation(program, "aUv") }; + const u = n => gl.getUniformLocation(program, n); + const uniforms = { model: u("uModel"), view: u("uView"), proj: u("uProj"), tex: u("uTex"), base: u("uBase"), hasTex: u("uHasTex"), hasNormals: u("uHasNormals") }; + const centre = [0, 1, 2].map(i => (model.min[i] + model.max[i]) / 2); + const radius = Math.max(1e-6, Math.hypot(model.max[0] - model.min[0], model.max[1] - model.min[1], model.max[2] - model.min[2]) / 2); + let yaw = 0.6, pitch = 0.25, dist = radius * 2.6, target = centre.slice(); + const fit = () => { yaw = 0.6; pitch = 0.25; dist = radius * 2.6; target = centre.slice(); }; + + let dragging = null; + canvas.oncontextmenu = e => e.preventDefault(); + canvas.onpointerdown = e => { dragging = { x: e.clientX, y: e.clientY, button: e.button }; canvas.setPointerCapture(e.pointerId); }; + canvas.onpointermove = e => { + if (!dragging) return; + const dx = e.clientX - dragging.x, dy = e.clientY - dragging.y; + dragging.x = e.clientX; dragging.y = e.clientY; + if (dragging.button === 0) { yaw -= dx * 0.008; pitch = Math.max(-1.5, Math.min(1.5, pitch + dy * 0.008)); } + else { + // Pan across the view plane. + const k = dist * 0.0015; + const rx = [Math.cos(yaw), 0, -Math.sin(yaw)]; + target[0] -= rx[0] * dx * k; target[2] -= rx[2] * dx * k; target[1] += dy * k; + } + }; + canvas.onpointerup = canvas.onpointercancel = () => { dragging = null; }; + canvas.onwheel = e => { e.preventDefault(); dist = Math.max(radius * 0.2, Math.min(radius * 30, dist * Math.exp(e.deltaY * 0.001))); }; + canvas.ondblclick = fit; + + status.textContent = model.items.length + " mesh" + (model.items.length === 1 ? "" : "es"); + const draw = () => { + if (disposed) return; + const ratio = window.devicePixelRatio || 1; + const w = Math.max(1, Math.floor(canvas.clientWidth * ratio)), h = Math.max(1, Math.floor(canvas.clientHeight * ratio)); + if (canvas.width !== w || canvas.height !== h) { canvas.width = w; canvas.height = h; } + gl.viewport(0, 0, w, h); + gl.clearColor(0.13, 0.13, 0.14, 1); gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT); + gl.enable(gl.DEPTH_TEST); + gl.useProgram(program); + const eye = [target[0] + dist * Math.cos(pitch) * Math.sin(yaw), target[1] + dist * Math.sin(pitch), target[2] + dist * Math.cos(pitch) * Math.cos(yaw)]; + gl.uniformMatrix4fv(uniforms.view, false, lookAt(eye, target)); + gl.uniformMatrix4fv(uniforms.proj, false, perspective(0.8, w / h, radius * 0.02, radius * 60)); + for (const item of model.items) { + gl.uniformMatrix4fv(uniforms.model, false, item.model); + gl.uniform4fv(uniforms.base, item.base); + gl.uniform1f(uniforms.hasTex, item.texture ? 1 : 0); + gl.uniform1f(uniforms.hasNormals, item.normal ? 1 : 0); + if (item.texture) { gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D, item.texture); gl.uniform1i(uniforms.tex, 0); } + const attrib = (location, a) => { + if (location < 0) return; + if (!a) { gl.disableVertexAttribArray(location); gl.vertexAttrib3f(location, 0, 0, 1); return; } + gl.bindBuffer(gl.ARRAY_BUFFER, a.buffer); gl.enableVertexAttribArray(location); gl.vertexAttribPointer(location, a.size, gl.FLOAT, false, 0, 0); + }; + attrib(loc.pos, item.pos); attrib(loc.normal, item.normal); attrib(loc.uv, item.uv); + if (item.doubleSided) gl.disable(gl.CULL_FACE); else gl.disable(gl.CULL_FACE); + gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, item.indices); + gl.drawElements(gl.TRIANGLES, item.count, item.indexType, 0); + } + raf = requestAnimationFrame(draw); + }; + draw(); + // Lets a test or the page see that the model is up and what it measures. + root.dataset.ready = "1"; + root.dataset.meshes = String(model.items.length); + root.dataset.triangles = String(model.items.reduce((a, i) => a + i.count / 3, 0)); + } catch (e) { + status.textContent = "Could not show this model: " + (e && e.message ? e.message : e); + status.classList.add("error"); + } + }); + }; +})(); diff --git a/model-catalog.json b/model-catalog.json new file mode 100644 index 0000000000000000000000000000000000000000..67716632477d22ad43754757a126cf2ba22a62a7 --- /dev/null +++ b/model-catalog.json @@ -0,0 +1 @@ +{"commit":"2fbb6d071de37a5f61e9910f7295e72eeb0f9e66","models":{"4x-UltraSharp.safetensors":{"folder":"upscale_models","path":"4x-UltraSharp.safetensors","repo":"Kim2091/UltraSharp"},"CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors":{"folder":"clip_vision","path":"split_files/clip_vision/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors","repo":"Comfy-Org/CLIP-ViT-H-14-laion2B-s32B-b79K_repackaged"},"Chroma1-HD-fp8mixed.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/Chroma1-HD-fp8mixed.safetensors","repo":"Comfy-Org/Chroma1-HD_repackaged"},"FireRed-Image-Edit-1.0-Lightning-8steps-v1.0.safetensors":{"folder":"loras","path":"FireRed-Image-Edit-1.0-Lightning-8steps-v1.0.safetensors","repo":"FireRedTeam/FireRed-Image-Edit-1.0-ComfyUI"},"FireRed-Image-Edit-1.1-transformer.safetensors":{"folder":"diffusion_models","path":"FireRed-Image-Edit-1.1-transformer.safetensors","repo":"FireRedTeam/FireRed-Image-Edit-1.1-ComfyUI"},"Flux2TurboComfyv2.safetensors":{"folder":"loras","path":"split_files/loras/Flux2TurboComfyv2.safetensors","repo":"Comfy-Org/flux2-dev"},"Flux_2-Turbo-LoRA_comfyui.safetensors":{"folder":"loras","path":"Flux_2-Turbo-LoRA_comfyui.safetensors","repo":"ByteZSzn/Flux.2-Turbo-ComfyUI"},"Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors":{"folder":"checkpoints","path":"Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors","repo":"RunDiffusion/Juggernaut-XL-v9"},"NetaYumev35_pretrained_all_in_one.safetensors":{"folder":"checkpoints","path":"NetaYumev35_pretrained_all_in_one.safetensors","repo":"duongve/NetaYume-Lumina-Image-2.0"},"NewBie-Image-Exp0.1-bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/NewBie-Image-Exp0.1-bf16.safetensors","repo":"Comfy-Org/NewBie-image-Exp0.1_repackaged"},"QWEN_EDIT_ACTION_V1.safetensors":{"folder":"loras","path":"QWEN_EDIT_ACTION_V1.safetensors","repo":"systms/SYSTMS-ACTION-LoRA-Qwen-Image-Edit-2511"},"Qwen-Edit-2509-Multiple-angles.safetensors":{"folder":"loras","path":"split_files/loras/Qwen-Edit-2509-Multiple-angles.safetensors","repo":"Comfy-Org/Qwen-Image-Edit_ComfyUI"},"Qwen-Image-2512-Fun-Controlnet-Union-2602.safetensors":{"folder":"controlnet","path":"Qwen-Image-2512-Fun-Controlnet-Union-2602.safetensors","repo":"alibaba-pai/Qwen-Image-2512-Fun-Controlnet-Union"},"Qwen-Image-2512-Lightning-4steps-V1.0-fp32.safetensors":{"folder":"loras","path":"Qwen-Image-2512-Lightning-4steps-V1.0-fp32.safetensors","repo":"lightx2v/Qwen-Image-2512-Lightning"},"Qwen-Image-Edit-2509-Anything2RealAlpha.safetensors":{"folder":"loras","path":"split_files/loras/Qwen-Image-Edit-2509-Anything2RealAlpha.safetensors","repo":"Comfy-Org/Qwen-Image-Edit_ComfyUI"},"Qwen-Image-Edit-2509-Fusion.safetensors":{"folder":"loras","path":"split_files/loras/Qwen-Image-Edit-2509-Fusion.safetensors","repo":"Comfy-Org/Qwen-Image-Edit_ComfyUI"},"Qwen-Image-Edit-2509-Light-Migration.safetensors":{"folder":"loras","path":"split_files/loras/Qwen-Image-Edit-2509-Light-Migration.safetensors","repo":"Comfy-Org/Qwen-Image-Edit_ComfyUI"},"Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors":{"folder":"loras","path":"Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","repo":"lightx2v/Qwen-Image-Lightning"},"Qwen-Image-Edit-2509-Lightning-8steps-V1.0-bf16.safetensors":{"folder":"loras","path":"Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-8steps-V1.0-bf16.safetensors","repo":"lightx2v/Qwen-Image-Lightning"},"Qwen-Image-Edit-2509-Relight.safetensors":{"folder":"loras","path":"split_files/loras/Qwen-Image-Edit-2509-Relight.safetensors","repo":"Comfy-Org/Qwen-Image-Edit_ComfyUI"},"Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors":{"folder":"loras","path":"Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors","repo":"lightx2v/Qwen-Image-Edit-2511-Lightning"},"Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors":{"folder":"loras","path":"Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors","repo":"lightx2v/Qwen-Image-Lightning"},"Qwen-Image-InstantX-ControlNet-Inpainting.safetensors":{"folder":"controlnet","path":"split_files/controlnet/Qwen-Image-InstantX-ControlNet-Inpainting.safetensors","repo":"Comfy-Org/Qwen-Image-InstantX-ControlNets"},"Qwen-Image-InstantX-ControlNet-Union.safetensors":{"folder":"controlnet","path":"split_files/controlnet/Qwen-Image-InstantX-ControlNet-Union.safetensors","repo":"Comfy-Org/Qwen-Image-InstantX-ControlNets"},"Qwen-Image-Lightning-4steps-V1.0.safetensors":{"folder":"loras","path":"Qwen-Image-Lightning-4steps-V1.0.safetensors","repo":"lightx2v/Qwen-Image-Lightning"},"Qwen-Image-Lightning-8steps-V1.0.safetensors":{"folder":"loras","path":"Qwen-Image-Lightning-8steps-V1.0.safetensors","repo":"lightx2v/Qwen-Image-Lightning"},"Qwen_Image_Edit_2511-SYSTMS_INFL8.safetensors":{"folder":"loras","path":"SYSTMS_INFL8_LoRA_Qwen_Image_Edit_2511.safetensors","repo":"systms/SYSTMS-INFL8-LoRA-Qwen-Image-Edit-2511"},"RealESRGAN_x4plus.safetensors":{"folder":"upscale_models","path":"RealESRGAN_x4plus.safetensors","repo":"Comfy-Org/Real-ESRGAN_repackaged"},"SUPIR-v0Q_fp16.safetensors":{"folder":"model_patches","path":"SUPIR-v0Q_fp16.safetensors","repo":"Kijai/SUPIR_pruned"},"Wan21-WanMove_fp8_scaled_e4m3fn_KJ.safetensors":{"folder":"diffusion_models","path":"WanMove/Wan21-WanMove_fp8_scaled_e4m3fn_KJ.safetensors","repo":"Kijai/WanVideo_comfy_fp8_scaled"},"Wan21_CausVid_14B_T2V_lora_rank32.safetensors":{"folder":"loras","path":"Wan21_CausVid_14B_T2V_lora_rank32.safetensors","repo":"Kijai/WanVideo_comfy"},"Wan21_CausVid_14B_T2V_lora_rank32_v2.safetensors":{"folder":"loras","path":"Wan21_CausVid_14B_T2V_lora_rank32_v2.safetensors","repo":"Kijai/WanVideo_comfy"},"Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors":{"folder":"loras","path":"Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors","repo":"Kijai/WanVideo_comfy"},"Wan21_T2V_14B_lightx2v_cfg_step_distill_lora_rank32.safetensors":{"folder":"loras","path":"Wan21_T2V_14B_lightx2v_cfg_step_distill_lora_rank32.safetensors","repo":"Kijai/WanVideo_comfy"},"Wan2_1-I2V-14B-480p_fp8_e4m3fn_scaled_KJ.safetensors":{"folder":"diffusion_models","path":"I2V/Wan2_1-I2V-14B-480p_fp8_e4m3fn_scaled_KJ.safetensors","repo":"Kijai/WanVideo_comfy_fp8_scaled"},"Wan2_1-I2V-ATI-14B_fp8_e4m3fn.safetensors":{"folder":"diffusion_models","path":"Wan2_1-I2V-ATI-14B_fp8_e4m3fn.safetensors","repo":"Kijai/WanVideo_comfy"},"Wan2_1-VACE_module_14B_bf16.safetensors":{"folder":"diffusion_models","path":"Wan2_1-VACE_module_14B_bf16.safetensors","repo":"Kijai/WanVideo_comfy"},"Wan2_1_VAE_bf16.safetensors":{"folder":"vae","path":"Wan2_1_VAE_bf16.safetensors","repo":"Kijai/WanVideo_comfy"},"Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors":{"folder":"diffusion_models","path":"Wan22Animate/Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors","repo":"Kijai/WanVideo_comfy_fp8_scaled"},"WanAnimate_relight_lora_fp16.safetensors":{"folder":"loras","path":"LoRAs/Wan22_relight/WanAnimate_relight_lora_fp16.safetensors","repo":"Kijai/WanVideo_comfy"},"Wuli-Qwen-Image-2512-Turbo-LoRA-2steps-V1.0-bf16.safetensors":{"folder":"loras","path":"Wuli-Qwen-Image-2512-Turbo-LoRA-2steps-V1.0-bf16.safetensors","repo":"Wuli-art/Qwen-Image-2512-Turbo-LoRA-2-Steps"},"Z-Image-Turbo-Fun-Controlnet-Union.safetensors":{"folder":"model_patches","path":"Z-Image-Turbo-Fun-Controlnet-Union.safetensors","repo":"alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union"},"ace_1.5_vae.safetensors":{"folder":"vae","path":"split_files/vae/ace_1.5_vae.safetensors","repo":"Comfy-Org/ace_step_1.5_ComfyUI_files"},"ace_step_1.5_turbo_aio.safetensors":{"folder":"checkpoints","path":"checkpoints/ace_step_1.5_turbo_aio.safetensors","repo":"Comfy-Org/ace_step_1.5_ComfyUI_files"},"ace_step_v1_3.5b.safetensors":{"folder":"checkpoints","path":"all_in_one/ace_step_v1_3.5b.safetensors","repo":"Comfy-Org/ACE-Step_ComfyUI_repackaged"},"acestep_v1.5_turbo.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/acestep_v1.5_turbo.safetensors","repo":"Comfy-Org/ace_step_1.5_ComfyUI_files"},"acestep_v1.5_xl_base_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/acestep_v1.5_xl_base_bf16.safetensors","repo":"Comfy-Org/ace_step_1.5_ComfyUI_files"},"acestep_v1.5_xl_sft_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/acestep_v1.5_xl_sft_bf16.safetensors","repo":"Comfy-Org/ace_step_1.5_ComfyUI_files"},"acestep_v1.5_xl_turbo_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/acestep_v1.5_xl_turbo_bf16.safetensors","repo":"Comfy-Org/ace_step_1.5_ComfyUI_files"},"ae.safetensors":{"folder":"vae","path":"split_files/vae/ae.safetensors","repo":"Comfy-Org/z_image_turbo"},"anima-base-v1.0.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/anima-base-v1.0.safetensors","repo":"circlestone-labs/Anima"},"anima-lllite-any-test-like-v2.safetensors":{"folder":"model_patches","path":"model_patches/anima-lllite-any-test-like-v2.safetensors","repo":"Comfy-Org/Anima-LLLite"},"anima-lllite-depth-1.safetensors":{"folder":"model_patches","path":"model_patches/anima-lllite-depth-1.safetensors","repo":"Comfy-Org/Anima-LLLite"},"anima-lllite-inpainting-v2.safetensors":{"folder":"model_patches","path":"model_patches/anima-lllite-inpainting-v2.safetensors","repo":"Comfy-Org/Anima-LLLite"},"anima-preview3-base.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/anima-preview3-base.safetensors","repo":"circlestone-labs/Anima"},"anima-turbo-lora-v0.2.safetensors":{"folder":"loras","path":"anima-turbo-lora-v0.2.safetensors","repo":"circlestone-labs/Anima-Official-LoRAs"},"birefnet.safetensors":{"folder":"background_removal","path":"background_removal/birefnet.safetensors","repo":"Comfy-Org/BiRefNet"},"boogu_image_edit_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"diffusion_models/boogu_image_edit_fp8_scaled.safetensors","repo":"Comfy-Org/Boogu-Image"},"boogu_image_edit_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/boogu_image_edit_int8_convrot.safetensors","repo":"Comfy-Org/Boogu-Image"},"boogu_image_turbo_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"diffusion_models/boogu_image_turbo_fp8_scaled.safetensors","repo":"Comfy-Org/Boogu-Image"},"byt5_small_glyphxl_fp16.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/byt5_small_glyphxl_fp16.safetensors","repo":"Comfy-Org/HunyuanVideo_1.5_repackaged"},"capybara_v0.1.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/capybara_v0.1.safetensors","repo":"Comfy-Org/HunyuanVideo_1.5_repackaged"},"causal_forcing-framewise.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/causal_forcing-framewise.safetensors","repo":"TalmajM/causal_forcing_framewise_ComfyUI_repackaged"},"chroma-radiance-x0.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/chroma-radiance-x0.safetensors","repo":"Comfy-Org/Chroma1-Radiance_Repackaged"},"chrono_edit_14B_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/chrono_edit_14B_fp16.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"chronoedit_distill_lora.safetensors":{"folder":"loras","path":"split_files/loras/chronoedit_distill_lora.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"clip_g_hidream.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/clip_g_hidream.safetensors","repo":"Comfy-Org/HiDream-I1_ComfyUI"},"clip_l.safetensors":{"folder":"text_encoders","path":"clip_l.safetensors","repo":"comfyanonymous/flux_text_encoders"},"clip_l_hidream.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/clip_l_hidream.safetensors","repo":"Comfy-Org/HiDream-I1_ComfyUI"},"clip_vision_g.safetensors":{"folder":"clip_vision","path":"clip_vision_g.safetensors","repo":"comfyanonymous/clip_vision_g"},"clip_vision_h.safetensors":{"folder":"clip_vision","path":"split_files/clip_vision/clip_vision_h.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"cogvideox_vae.safetensors":{"folder":"vae","path":"vae/cogvideox_vae.safetensors","repo":"Comfy-Org/void-model"},"depth_anything_3_mono_large.safetensors":{"folder":"geometry_estimation","path":"geometry_estimation/depth_anything_3_mono_large.safetensors","repo":"Comfy-Org/Depth-Anything-3"},"dino_v3_L_naf_fp32.safetensors":{"folder":"clip_vision","path":"clip_vision/dino_v3_L_naf_fp32.safetensors","repo":"Comfy-Org/Pixal3D"},"dino_v3_vit_h.safetensors":{"folder":"clip_vision","path":"clip_vision/dino_v3_vit_h.safetensors","repo":"VAST-AI/TripoSplat"},"dino_v3_vit_h_bf16.safetensors":{"folder":"clip_vision","path":"clip_vision/dino_v3_vit_h_bf16.safetensors","repo":"Comfy-Org/Idol"},"ernie-image-prompt-enhancer.safetensors":{"folder":"text_encoders","path":"text_encoders/ernie-image-prompt-enhancer.safetensors","repo":"Comfy-Org/ERNIE-Image"},"ernie-image-turbo.safetensors":{"folder":"diffusion_models","path":"diffusion_models/ernie-image-turbo.safetensors","repo":"Comfy-Org/ERNIE-Image"},"ernie-image.safetensors":{"folder":"diffusion_models","path":"diffusion_models/ernie-image.safetensors","repo":"Comfy-Org/ERNIE-Image"},"fasth3_omniref_8step_pruned_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/fasth3_omniref_8step_pruned_int8_convrot.safetensors","repo":"FastVideo/FastH3-OmniRef-Comfy"},"fastvideo_fasth3_8step_v2_pruned_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/fastvideo_fasth3_8step_v2_pruned_int8_convrot.safetensors","repo":"FastVideo/FastVideo-FastH3-Comfy"},"fibo2_dev_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/fibo2_dev_int8_convrot.safetensors","repo":"Comfy-Org/Fibo-2.0"},"fibo2_edit_turbo_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/fibo2_edit_turbo_int8_convrot.safetensors","repo":"Comfy-Org/Fibo-2.0"},"film_net_fp16.safetensors":{"folder":"frame_interpolation","path":"frame_interpolation/film_net_fp16.safetensors","repo":"Comfy-Org/frame_interpolation"},"flux-2-klein-4b-fp8.safetensors":{"folder":"diffusion_models","path":"flux-2-klein-4b-fp8.safetensors","repo":"black-forest-labs/FLUX.2-klein-4b-fp8"},"flux-2-klein-4b.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/flux-2-klein-4b.safetensors","repo":"Comfy-Org/flux2-klein"},"flux-2-klein-9b-fp8.safetensors":{"folder":"diffusion_models","path":"flux-2-klein-9b-fp8.safetensors","repo":"black-forest-labs/FLUX.2-klein-9b-fp8"},"flux-2-klein-9b-kv-fp8.safetensors":{"folder":"diffusion_models","path":"flux-2-klein-9b-kv-fp8.safetensors","repo":"black-forest-labs/FLUX.2-klein-9b-kv-fp8"},"flux-2-klein-9b.safetensors":{"folder":"diffusion_models","path":"flux-2-klein-9b.safetensors","repo":"black-forest-labs/FLUX.2-klein-9B"},"flux-2-klein-base-4b-fp8.safetensors":{"folder":"diffusion_models","path":"flux-2-klein-base-4b-fp8.safetensors","repo":"black-forest-labs/FLUX.2-klein-base-4b-fp8"},"flux-2-klein-base-4b.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/flux-2-klein-base-4b.safetensors","repo":"Comfy-Org/flux2-klein"},"flux-2-klein-base-9b-fp8.safetensors":{"folder":"diffusion_models","path":"flux-2-klein-base-9b-fp8.safetensors","repo":"black-forest-labs/FLUX.2-klein-base-9b-fp8"},"flux.1-fill-dev-OneReward-transformer_fp8.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/flux.1-fill-dev-OneReward-transformer_fp8.safetensors","repo":"Comfy-Org/OneReward_repackaged"},"flux1-canny-dev.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/flux1-canny-dev.safetensors","repo":"Comfy-Org/flux1-dev"},"flux1-depth-dev-lora.safetensors":{"folder":"loras","path":"split_files/loras/flux1-depth-dev-lora.safetensors","repo":"Comfy-Org/flux1-dev"},"flux1-dev-fp8.safetensors":{"folder":"checkpoints","path":"flux1-dev-fp8.safetensors","repo":"Comfy-Org/flux1-dev"},"flux1-dev-kontext_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/flux1-dev-kontext_fp8_scaled.safetensors","repo":"Comfy-Org/flux1-kontext-dev_ComfyUI"},"flux1-dev.safetensors":{"folder":"diffusion_models","path":"flux1-dev.safetensors","repo":"Comfy-Org/flux1-dev"},"flux1-fill-dev.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/flux1-fill-dev.safetensors","repo":"Comfy-Org/flux1-dev"},"flux1-krea-dev_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/flux1-krea-dev_fp8_scaled.safetensors","repo":"Comfy-Org/FLUX.1-Krea-dev_ComfyUI"},"flux1-redux-dev.safetensors":{"folder":"style_models","path":"flux1-redux-dev.safetensors","repo":"Comfy-Org/Flux1-Redux-Dev"},"flux1-schnell-fp8.safetensors":{"folder":"checkpoints","path":"flux1-schnell-fp8.safetensors","repo":"Comfy-Org/flux1-schnell"},"flux1-schnell.safetensors":{"folder":"diffusion_models","path":"flux1-schnell.safetensors","repo":"Comfy-Org/flux1-schnell"},"flux2-vae.safetensors":{"folder":"vae","path":"split_files/vae/flux2-vae.safetensors","repo":"Comfy-Org/flux2-dev"},"flux2-vae_small.safetensors":{"folder":"vae","path":"vae/flux2-vae_small.safetensors","repo":"Comfy-Org/MOSS-Image"},"flux2_dev_fp8mixed.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/flux2_dev_fp8mixed.safetensors","repo":"Comfy-Org/flux2-dev"},"flux3-image-klein-base-int8-convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/flux3-image-klein-base-int8-convrot.safetensors","repo":"black-forest-labs/flux-3-image-klein-comfy"},"flux3-image-klein-int8-convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/flux3-image-klein-int8-convrot.safetensors","repo":"black-forest-labs/flux-3-image-klein-comfy"},"full_encoder_small_decoder.safetensors":{"folder":"vae","path":"full_encoder_small_decoder.safetensors","repo":"black-forest-labs/FLUX.2-small-decoder"},"gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors":{"folder":"loras","path":"split_files/loras/gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","repo":"Comfy-Org/ltx-2"},"gemma4-12b-with-proj-ltx-2.5-bf16.safetensors":{"folder":"text_encoders","path":"text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors","repo":"Lightricks/LTX-2.5"},"gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","repo":"Lightricks/LTX-2.5"},"gemma4_e2b_it_bf16.safetensors":{"folder":"text_encoders","path":"text_encoders/gemma4_e2b_it_bf16.safetensors","repo":"Comfy-Org/gemma-4"},"gemma4_e2b_it_int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/gemma4_e2b_it_int8_convrot.safetensors","repo":"Comfy-Org/gemma-4"},"gemma4_e4b_it_fp8_scaled.safetensors":{"folder":"text_encoders","path":"text_encoders/gemma4_e4b_it_fp8_scaled.safetensors","repo":"Comfy-Org/gemma-4"},"gemma_2_2b_it_elm_bf16.safetensors":{"folder":"text_encoders","path":"text_encoders/gemma_2_2b_it_elm_bf16.safetensors","repo":"Comfy-Org/PixelDiT"},"gemma_2_2b_it_elm_fp8_scaled.safetensors":{"folder":"text_encoders","path":"text_encoders/gemma_2_2b_it_elm_fp8_scaled.safetensors","repo":"Comfy-Org/PixelDiT"},"gemma_3_12B_it.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/gemma_3_12B_it.safetensors","repo":"Comfy-Org/ltx-2"},"gemma_3_12B_it_fp4_mixed.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/gemma_3_12B_it_fp4_mixed.safetensors","repo":"Comfy-Org/ltx-2"},"gemma_3_12B_it_fp8_scaled.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/gemma_3_12B_it_fp8_scaled.safetensors","repo":"Comfy-Org/ltx-2"},"gemma_3_4b_it_bf16.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/gemma_3_4b_it_bf16.safetensors","repo":"Comfy-Org/NewBie-image-Exp0.1_repackaged"},"gpt_oss_20b_nvfp4.safetensors":{"folder":"text_encoders","path":"text_encoders/gpt_oss_20b_nvfp4.safetensors","repo":"Comfy-Org/Lens"},"gummycandy_qwen.safetensors":{"folder":"loras","path":"gummycandy_qwen.safetensors","repo":"enigmatic/gummycandy_qwen"},"hidream_e1_1_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/hidream_e1_1_bf16.safetensors","repo":"Comfy-Org/HiDream-I1_ComfyUI"},"hidream_e1_full_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/hidream_e1_full_bf16.safetensors","repo":"Comfy-Org/HiDream-I1_ComfyUI"},"hidream_i1_dev_fp8.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/hidream_i1_dev_fp8.safetensors","repo":"Comfy-Org/HiDream-I1_ComfyUI"},"hidream_i1_fast_fp8.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/hidream_i1_fast_fp8.safetensors","repo":"Comfy-Org/HiDream-I1_ComfyUI"},"hidream_i1_full_fp8.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/hidream_i1_full_fp8.safetensors","repo":"Comfy-Org/HiDream-I1_ComfyUI"},"hidream_o1_image_bf16.safetensors":{"folder":"checkpoints","path":"checkpoints/hidream_o1_image_bf16.safetensors","repo":"Comfy-Org/HiDream-O1-Image"},"hidream_o1_image_dev_fp8_scaled.safetensors":{"folder":"checkpoints","path":"checkpoints/hidream_o1_image_dev_fp8_scaled.safetensors","repo":"Comfy-Org/HiDream-O1-Image"},"humo_17B_fp8_e4m3fn.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/humo_17B_fp8_e4m3fn.safetensors","repo":"Comfy-Org/HuMo_ComfyUI"},"hunyuan3d-dit-v2-mv-turbo_fp16.safetensors":{"folder":"checkpoints","path":"split_files/hunyuan3d-dit-v2-mv-turbo_fp16.safetensors","repo":"Comfy-Org/hunyuan3D_2.0_repackaged"},"hunyuan3d-dit-v2-mv_fp16.safetensors":{"folder":"checkpoints","path":"split_files/hunyuan3d-dit-v2-mv_fp16.safetensors","repo":"Comfy-Org/hunyuan3D_2.0_repackaged"},"hunyuan3d-dit-v2_fp16.safetensors":{"folder":"checkpoints","path":"split_files/hunyuan3d-dit-v2_fp16.safetensors","repo":"Comfy-Org/hunyuan3D_2.0_repackaged"},"hunyuan_3d_v2.1.safetensors":{"folder":"checkpoints","path":"hunyuan_3d_v2.1.safetensors","repo":"Comfy-Org/hunyuan3D_2.1_repackaged"},"hunyuan_video_t2v_720p_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/hunyuan_video_t2v_720p_bf16.safetensors","repo":"Comfy-Org/HunyuanVideo_repackaged"},"hunyuan_video_vae_bf16.safetensors":{"folder":"vae","path":"hunyuan_video_vae_bf16.safetensors","repo":"Kijai/HunyuanVideo_comfy"},"hunyuanvideo1.5_1080p_sr_distilled_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/hunyuanvideo1.5_1080p_sr_distilled_fp16.safetensors","repo":"Comfy-Org/HunyuanVideo_1.5_repackaged"},"hunyuanvideo1.5_720p_i2v_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/hunyuanvideo1.5_720p_i2v_fp16.safetensors","repo":"Comfy-Org/HunyuanVideo_1.5_repackaged"},"hunyuanvideo1.5_720p_t2v_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/hunyuanvideo1.5_720p_t2v_fp16.safetensors","repo":"Comfy-Org/HunyuanVideo_1.5_repackaged"},"hunyuanvideo15_latent_upsampler_1080p.safetensors":{"folder":"latent_upscale_models","path":"split_files/latent_upscale_models/hunyuanvideo15_latent_upsampler_1080p.safetensors","repo":"Comfy-Org/HunyuanVideo_1.5_repackaged"},"hunyuanvideo15_vae_fp16.safetensors":{"folder":"vae","path":"split_files/vae/hunyuanvideo15_vae_fp16.safetensors","repo":"Comfy-Org/HunyuanVideo_1.5_repackaged"},"ideogram4_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"diffusion_models/ideogram4_fp8_scaled.safetensors","repo":"Comfy-Org/Ideogram-4"},"ideogram4_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/ideogram4_int8_convrot.safetensors","repo":"Comfy-Org/Ideogram-4"},"ideogram4_unconditional_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"diffusion_models/ideogram4_unconditional_fp8_scaled.safetensors","repo":"Comfy-Org/Ideogram-4"},"ideogram4_unconditional_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/ideogram4_unconditional_int8_convrot.safetensors","repo":"Comfy-Org/Ideogram-4"},"idol_decoder_fp16.safetensors":{"folder":"vae","path":"vae/idol_decoder_fp16.safetensors","repo":"Comfy-Org/Idol"},"idol_fp16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/idol_fp16.safetensors","repo":"Comfy-Org/Idol"},"illustration-1.0-qwen-image.safetensors":{"folder":"loras","path":"illustration-1.0-qwen-image.safetensors","repo":"alvdansen/illustration-1.0-qwen-image"},"jina_clip_v2_bf16.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/jina_clip_v2_bf16.safetensors","repo":"Comfy-Org/NewBie-image-Exp0.1_repackaged"},"joyai_image_edit_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/joyai_image_edit_int8_convrot.safetensors","repo":"Comfy-Org/JoyAI-Image-Edit"},"juggernautXL_v9Rdphoto2Lightning.safetensors":{"folder":"checkpoints","path":"juggernautXL_v9Rdphoto2Lightning.safetensors","repo":"AiWise/Juggernaut-XL-V9-GE-RDPhoto2-Lightning_4S"},"kandinsky5lite_i2v_5s.safetensors":{"folder":"diffusion_models","path":"model/kandinsky5lite_i2v_5s.safetensors","repo":"kandinskylab/Kandinsky-5.0-I2V-Lite-5s"},"kandinsky5lite_t2i.safetensors":{"folder":"diffusion_models","path":"model/kandinsky5lite_t2i.safetensors","repo":"kandinskylab/Kandinsky-5.0-T2I-Lite"},"kandinsky5lite_t2v_sft_5s.safetensors":{"folder":"diffusion_models","path":"model/kandinsky5lite_t2v_sft_5s.safetensors","repo":"kandinskylab/Kandinsky-5.0-T2V-Lite-sft-5s"},"krea2_darkbrush.safetensors":{"folder":"loras","path":"loras/krea2_darkbrush.safetensors","repo":"Comfy-Org/Krea-2"},"krea2_style_reference.safetensors":{"folder":"loras","path":"loras/krea2_style_reference.safetensors","repo":"Comfy-Org/Krea-2"},"krea2_turbo_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"diffusion_models/krea2_turbo_fp8_scaled.safetensors","repo":"Comfy-Org/Krea-2"},"krea2_turbo_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/krea2_turbo_int8_convrot.safetensors","repo":"Comfy-Org/Krea-2"},"lens_bf16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/lens_bf16.safetensors","repo":"Comfy-Org/Lens"},"lens_turbo_bf16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/lens_turbo_bf16.safetensors","repo":"Comfy-Org/Lens"},"lightx2v_14B_T2V_cfg_step_distill_lora_adaptive_rank_quantile_0.15_bf16.safetensors":{"folder":"loras","path":"Lightx2v/lightx2v_14B_T2V_cfg_step_distill_lora_adaptive_rank_quantile_0.15_bf16.safetensors","repo":"Kijai/WanVideo_comfy"},"lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors":{"folder":"loras","path":"Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","repo":"Kijai/WanVideo_comfy"},"lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors":{"folder":"loras","path":"Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","repo":"Kijai/WanVideo_comfy"},"llama_3.1_8b_instruct_fp8_scaled.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/llama_3.1_8b_instruct_fp8_scaled.safetensors","repo":"Comfy-Org/HiDream-I1_ComfyUI"},"llava_llama3_fp8_scaled.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/llava_llama3_fp8_scaled.safetensors","repo":"Comfy-Org/HunyuanVideo_repackaged"},"longcat_image_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/longcat_image_bf16.safetensors","repo":"Comfy-Org/LongCat-Image"},"longcat_image_edit_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/longcat_image_edit_bf16.safetensors","repo":"TalmajM/LongCat-Image-Edit_ComfyUI_repackaged"},"lotus-depth-d-v1-1.safetensors":{"folder":"diffusion_models","path":"lotus-depth-d-v1-1.safetensors","repo":"Comfy-Org/lotus"},"ltx-2-19b-dev-fp8.safetensors":{"folder":"checkpoints","path":"ltx-2-19b-dev-fp8.safetensors","repo":"Lightricks/LTX-2"},"ltx-2-19b-dev.safetensors":{"folder":"checkpoints","path":"ltx-2-19b-dev.safetensors","repo":"Lightricks/LTX-2"},"ltx-2-19b-distilled-lora-384.safetensors":{"folder":"loras","path":"ltx-2-19b-distilled-lora-384.safetensors","repo":"Lightricks/LTX-2"},"ltx-2-19b-distilled.safetensors":{"folder":"checkpoints","path":"ltx-2-19b-distilled.safetensors","repo":"Lightricks/LTX-2"},"ltx-2-19b-distilled_transformer_only_bf16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/ltx-2-19b-distilled_transformer_only_bf16.safetensors","repo":"Kijai/LTXV2_comfy"},"ltx-2-19b-embeddings_connector_distill_bf16.safetensors":{"folder":"text_encoders","path":"text_encoders/ltx-2-19b-embeddings_connector_distill_bf16.safetensors","repo":"Kijai/LTXV2_comfy"},"ltx-2-19b-ic-lora-canny-control.safetensors":{"folder":"loras","path":"ltx-2-19b-ic-lora-canny-control.safetensors","repo":"Lightricks/LTX-2-19b-IC-LoRA-Canny-Control"},"ltx-2-19b-ic-lora-depth-control.safetensors":{"folder":"loras","path":"ltx-2-19b-ic-lora-depth-control.safetensors","repo":"Lightricks/LTX-2-19b-IC-LoRA-Depth-Control"},"ltx-2-19b-ic-lora-pose-control.safetensors":{"folder":"loras","path":"ltx-2-19b-ic-lora-pose-control.safetensors","repo":"Lightricks/LTX-2-19b-IC-LoRA-Pose-Control"},"ltx-2-19b-lora-camera-control-dolly-left.safetensors":{"folder":"loras","path":"ltx-2-19b-lora-camera-control-dolly-left.safetensors","repo":"Lightricks/LTX-2-19b-LoRA-Camera-Control-Dolly-Left"},"ltx-2-spatial-upscaler-x2-1.0.safetensors":{"folder":"latent_upscale_models","path":"ltx-2-spatial-upscaler-x2-1.0.safetensors","repo":"Lightricks/LTX-2"},"ltx-2.3-22b-dev-fp8.safetensors":{"folder":"checkpoints","path":"ltx-2.3-22b-dev-fp8.safetensors","repo":"Lightricks/LTX-2.3-fp8"},"ltx-2.3-22b-dev.safetensors":{"folder":"checkpoints","path":"ltx-2.3-22b-dev.safetensors","repo":"Lightricks/LTX-2.3"},"ltx-2.3-22b-dev_transformer_only_bf16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/ltx-2.3-22b-dev_transformer_only_bf16.safetensors","repo":"Kijai/LTX2.3_comfy"},"ltx-2.3-22b-distilled-fp8.safetensors":{"folder":"checkpoints","path":"ltx-2.3-22b-distilled-fp8.safetensors","repo":"Lightricks/LTX-2.3-fp8"},"ltx-2.3-22b-distilled-lora-384-1.1.safetensors":{"folder":"loras","path":"ltx-2.3-22b-distilled-lora-384-1.1.safetensors","repo":"Lightricks/LTX-2.3"},"ltx-2.3-22b-distilled-lora-384.safetensors":{"folder":"loras","path":"ltx-2.3-22b-distilled-lora-384.safetensors","repo":"Lightricks/LTX-2.3"},"ltx-2.3-22b-ic-lora-ingredients-0.9.safetensors":{"folder":"loras","path":"split_files/loras/ltx-2.3-22b-ic-lora-ingredients-0.9.safetensors","repo":"Comfy-Org/ltx-2.3"},"ltx-2.3-22b-ic-lora-outpaint.safetensors":{"folder":"loras","path":"ltx-2.3-22b-ic-lora-outpaint.safetensors","repo":"oumoumad/LTX-2.3-22b-IC-LoRA-Outpaint"},"ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors":{"folder":"loras","path":"ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","repo":"Lightricks/LTX-2.3-22b-IC-LoRA-Union-Control"},"ltx-2.3-googlyeyes.safetensors":{"folder":"loras","path":"googlyeyes-ltx-2.3-rank32-step03000.safetensors","repo":"TheBurgstall/ltx-2.3-googlyeyes-lora"},"ltx-2.3-id-lora-talkvid-3k.safetensors":{"folder":"loras","path":"split_files/loras/ltx-2.3-id-lora-talkvid-3k.safetensors","repo":"Comfy-Org/ltx-2.3"},"ltx-2.3-spatial-upscaler-x2-1.1.safetensors":{"folder":"latent_upscale_models","path":"ltx-2.3-spatial-upscaler-x2-1.1.safetensors","repo":"Lightricks/LTX-2.3"},"ltx-2.3_text_projection_bf16.safetensors":{"folder":"text_encoders","path":"text_encoders/ltx-2.3_text_projection_bf16.safetensors","repo":"Kijai/LTX2.3_comfy"},"ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","repo":"Lightricks/LTX-2.5"},"ltx-2.5-22b-ic-lora-pixel-spatial-upscaler-x2-1.0.safetensors":{"folder":"loras","path":"ltx-2.5-22b-ic-lora-pixel-spatial-upscaler-x2-1.0.safetensors","repo":"Lightricks/LTX-2.5-22b-IC-LoRA-Pixel-Spatial-Upscaler"},"ltx-2.5-audio-vae-bf16.safetensors":{"folder":"vae","path":"vae/ltx-2.5-audio-vae-bf16.safetensors","repo":"Lightricks/LTX-2.5"},"ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors":{"folder":"latent_upscale_models","path":"latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","repo":"Lightricks/LTX-2.5"},"ltx-2.5-latent-temporal-upscaler-x2-bf16-1.0.safetensors":{"folder":"latent_upscale_models","path":"latent_upscale_models/ltx-2.5-latent-temporal-upscaler-x2-bf16-1.0.safetensors","repo":"Lightricks/LTX-2.5"},"ltx-2.5-video-vae-bf16.safetensors":{"folder":"vae","path":"vae/ltx-2.5-video-vae-bf16.safetensors","repo":"Lightricks/LTX-2.5"},"ltx-video-2b-v0.9.5.safetensors":{"folder":"checkpoints","path":"ltx-video-2b-v0.9.5.safetensors","repo":"Lightricks/LTX-Video"},"ltx-video-2b-v0.9.safetensors":{"folder":"checkpoints","path":"ltx-video-2b-v0.9.safetensors","repo":"Lightricks/LTX-Video"},"ltx2-squish.safetensors":{"folder":"loras","path":"split_files/loras/ltx2-squish.safetensors","repo":"Comfy-Org/ltx-2"},"ltx2.3-transition.safetensors":{"folder":"loras","path":"ltx2.3-transition.safetensors","repo":"valiantcat/LTX-2.3-Transition-LORA"},"ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors":{"folder":"loras","path":"split_files/loras/ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","repo":"Comfy-Org/ltx-2.3"},"mage_flow_edit_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/mage_flow_edit_int8_convrot.safetensors","repo":"Comfy-Org/Mage-Flow"},"mage_flow_edit_turbo_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/mage_flow_edit_turbo_int8_convrot.safetensors","repo":"Comfy-Org/Mage-Flow"},"mage_flow_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/mage_flow_int8_convrot.safetensors","repo":"Comfy-Org/Mage-Flow"},"mage_flow_turbo_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/mage_flow_turbo_int8_convrot.safetensors","repo":"Comfy-Org/Mage-Flow"},"mage_flow_vae_bf16.safetensors":{"folder":"vae","path":"vae/mage_flow_vae_bf16.safetensors","repo":"Comfy-Org/Mage-Flow"},"marigold_v2_albedo.safetensors":{"folder":"loras","path":"loras/marigold_v2_albedo.safetensors","repo":"Comfy-Org/marigold-v2-0"},"marigold_v2_albedo_conditioning.safetensors":{"folder":"embeddings","path":"embeddings/marigold_v2_albedo_conditioning.safetensors","repo":"Comfy-Org/marigold-v2-0"},"marigold_v2_albedo_vae.safetensors":{"folder":"vae","path":"vae/marigold_v2_albedo_vae.safetensors","repo":"Comfy-Org/marigold-v2-0"},"marigold_v2_depth_conditioning.safetensors":{"folder":"embeddings","path":"embeddings/marigold_v2_depth_conditioning.safetensors","repo":"Comfy-Org/marigold-v2-0"},"marigold_v2_depth_log_stage2.safetensors":{"folder":"loras","path":"loras/marigold_v2_depth_log_stage2.safetensors","repo":"Comfy-Org/marigold-v2-0"},"marigold_v2_depth_log_stage2_vae.safetensors":{"folder":"vae","path":"vae/marigold_v2_depth_log_stage2_vae.safetensors","repo":"Comfy-Org/marigold-v2-0"},"marigold_v2_normals.safetensors":{"folder":"loras","path":"loras/marigold_v2_normals.safetensors","repo":"Comfy-Org/marigold-v2-0"},"marigold_v2_normals_conditioning.safetensors":{"folder":"embeddings","path":"embeddings/marigold_v2_normals_conditioning.safetensors","repo":"Comfy-Org/marigold-v2-0"},"marigold_v2_normals_vae.safetensors":{"folder":"vae","path":"vae/marigold_v2_normals_vae.safetensors","repo":"Comfy-Org/marigold-v2-0"},"mediapipe_face_fp32.safetensors":{"folder":"detection","path":"detection/mediapipe_face_fp32.safetensors","repo":"Comfy-Org/mediapipe"},"ming_image_0.1_design_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/ming_image_0.1_design_int8_convrot.safetensors","repo":"Comfy-Org/Ming-Image"},"ming_image_0.1_ling_mini_2.0_int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/ming_image_0.1_ling_mini_2.0_int8_convrot.safetensors","repo":"Comfy-Org/Ming-Image"},"ming_image_vae_bf16.safetensors":{"folder":"vae","path":"vae/ming_image_vae_bf16.safetensors","repo":"Comfy-Org/Ming-Image"},"minimax_h3_audio_vae_fp32.safetensors":{"folder":"vae","path":"vae/minimax_h3_audio_vae_fp32.safetensors","repo":"Comfy-Org/MiniMax-H3"},"minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors":{"folder":"loras","path":"minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors","repo":"lightx2v/Minimax-h3-Turbo"},"minimax_h3_fl2va_pruned_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors","repo":"Comfy-Org/MiniMax-H3"},"minimax_h3_fun_controlnet_union_pruned_int8_convrot.safetensors":{"folder":"model_patches","path":"model_patches/minimax_h3_fun_controlnet_union_pruned_int8_convrot.safetensors","repo":"Comfy-Org/MiniMax-H3"},"minimax_h3_image_pruned_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/minimax_h3_image_pruned_int8_convrot.safetensors","repo":"Comfy-Org/MiniMax-H3-Image"},"minimax_h3_image_vae_fp16.safetensors":{"folder":"vae","path":"vae/minimax_h3_image_vae_fp16.safetensors","repo":"Comfy-Org/MiniMax-H3-Image"},"minimax_h3_ref2v_turbo_4step_v0.1_comfyui_bf16.safetensors":{"folder":"loras","path":"loras/minimax_h3_ref2v_turbo_4step_v0.1_comfyui_bf16.safetensors","repo":"Comfy-Org/MiniMax-H3"},"minimax_h3_ref2va_pruned_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors","repo":"Comfy-Org/MiniMax-H3"},"minimax_h3_video_vae_fp16.safetensors":{"folder":"vae","path":"vae/minimax_h3_video_vae_fp16.safetensors","repo":"Comfy-Org/MiniMax-H3"},"minimax_h3_video_vae_int8_convrot.safetensors":{"folder":"vae","path":"vae/minimax_h3_video_vae_int8_convrot.safetensors","repo":"Comfy-Org/MiniMax-H3"},"minimax_music3_dav.safetensors":{"folder":"vae","path":"vae/minimax_music3_dav.safetensors","repo":"Comfy-Org/MiniMax-Music-3"},"minimax_music3_dit_fp16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/minimax_music3_dit_fp16.safetensors","repo":"Comfy-Org/MiniMax-Music-3"},"minimax_music3_text_encoder_pruned_int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/minimax_music3_text_encoder_pruned_int8_convrot.safetensors","repo":"Comfy-Org/MiniMax-Music-3"},"ministral-3-3b.safetensors":{"folder":"text_encoders","path":"text_encoders/ministral-3-3b.safetensors","repo":"Comfy-Org/ERNIE-Image"},"mistral_3_small_flux2_bf16.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/mistral_3_small_flux2_bf16.safetensors","repo":"Comfy-Org/flux2-dev"},"mistral_3_small_flux2_fp8.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/mistral_3_small_flux2_fp8.safetensors","repo":"Comfy-Org/flux2-dev"},"moge_2_vitl_normal_fp16.safetensors":{"folder":"geometry_estimation","path":"geometry_estimation/moge_2_vitl_normal_fp16.safetensors","repo":"Comfy-Org/MoGe"},"moge_3_vitg_fp16.safetensors":{"folder":"geometry_estimation","path":"geometry_estimation/moge_3_vitg_fp16.safetensors","repo":"Comfy-Org/MoGe"},"moss_image_base_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/moss_image_base_int8_convrot.safetensors","repo":"Comfy-Org/MOSS-Image"},"moss_image_color_depth_control.safetensors":{"folder":"loras","path":"loras/moss_image_color_depth_control.safetensors","repo":"Comfy-Org/MOSS-Image"},"moss_image_edit_lora_rank_64_bf16.safetensors":{"folder":"loras","path":"loras/moss_image_edit_lora_rank_64_bf16.safetensors","repo":"Comfy-Org/MOSS-Image"},"moss_image_sft_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/moss_image_sft_int8_convrot.safetensors","repo":"Comfy-Org/MOSS-Image"},"omnigen2_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/omnigen2_fp16.safetensors","repo":"Comfy-Org/Omnigen2_ComfyUI_repackaged"},"ovis_2.5.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/ovis_2.5.safetensors","repo":"Comfy-Org/Ovis-Image"},"ovis_image_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/ovis_image_bf16.safetensors","repo":"Comfy-Org/Ovis-Image"},"p-h3-image_lora_bf16.safetensors":{"folder":"loras","path":"loras/p-h3-image_lora_bf16.safetensors","repo":"PrunaAI/p-h3-image-comfy"},"p-h3-image_prompt_upsampler_w4a8.safetensors":{"folder":"text_encoders","path":"text_encoders/p-h3-image_prompt_upsampler_w4a8.safetensors","repo":"PrunaAI/p-h3-image-comfy"},"p-h3-image_text_encoder_int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/p-h3-image_text_encoder_int8_convrot.safetensors","repo":"PrunaAI/p-h3-image-comfy"},"p-h3-image_vae_int8_convrot.safetensors":{"folder":"vae","path":"vae/p-h3-image_vae_int8_convrot.safetensors","repo":"PrunaAI/p-h3-image-comfy"},"pid_flux1_1024_to_4096_4step_bf16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/pid_flux1_1024_to_4096_4step_bf16.safetensors","repo":"Comfy-Org/PixelDiT"},"pika_h3_flex_fl2va_v1_bf16.safetensors":{"folder":"loras","path":"loras/pika_h3_flex_fl2va_v1_bf16.safetensors","repo":"Comfy-Org/MiniMax-H3"},"pika_h3_flex_ref2va_v1_bf16.safetensors":{"folder":"loras","path":"loras/pika_h3_flex_ref2va_v1_bf16.safetensors","repo":"Comfy-Org/MiniMax-H3"},"pixal3d_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/pixal3d_int8_convrot.safetensors","repo":"Comfy-Org/Pixal3D"},"pixal3d_multiview_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/pixal3d_multiview_int8_convrot.safetensors","repo":"Comfy-Org/Pixal3D"},"pixel_art_style_z_image_turbo.safetensors":{"folder":"loras","path":"pixel_art_style_z_image_turbo.safetensors","repo":"tarn59/pixel_art_style_lora_z_image_turbo"},"pixeldit_1300m_1024px_bf16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/pixeldit_1300m_1024px_bf16.safetensors","repo":"Comfy-Org/PixelDiT"},"qwen-360-diffusion-2512-int8-bf16-v2.safetensors":{"folder":"loras","path":"qwen-360-diffusion-2512-int8-bf16-v2.safetensors","repo":"ProGamerGov/qwen-360-diffusion"},"qwen-image-edit-2511-multiple-angles-lora.safetensors":{"folder":"loras","path":"qwen-image-edit-2511-multiple-angles-lora.safetensors","repo":"fal/Qwen-Image-Edit-2511-Multiple-Angles-LoRA"},"qwen3.5_2b_bf16.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3.5_2b_bf16.safetensors","repo":"Comfy-Org/Qwen3.5"},"qwen3.5_4b_bf16.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3.5_4b_bf16.safetensors","repo":"Comfy-Org/Qwen3.5"},"qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","repo":"black-forest-labs/flux-3-image-klein-comfy"},"qwen3.5_9b_int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3.5_9b_int8_convrot.safetensors","repo":"Comfy-Org/MOSS-Image"},"qwen3.5_9b_qwen_image_2.1_pe_i2i.int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3.5_9b_qwen_image_2.1_pe_i2i.int8_convrot.safetensors","repo":"Comfy-Org/Qwen-Image-2.1"},"qwen3.5_9b_qwen_image_2.1_pe_t2i.int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3.5_9b_qwen_image_2.1_pe_t2i.int8_convrot.safetensors","repo":"Comfy-Org/Qwen-Image-2.1"},"qwen3.5_9b_w4a8_gptq.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3.5_9b_w4a8_gptq.safetensors","repo":"Comfy-Org/MOSS-Image"},"qwen3.8_27b_w4a8.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3.8_27b_w4a8.safetensors","repo":"Comfy-Org/Qwen3.8-27B"},"qwen3vl_32b_minimax_h3_int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3vl_32b_minimax_h3_int8_convrot.safetensors","repo":"Comfy-Org/MiniMax-H3"},"qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","repo":"Comfy-Org/MiniMax-H3"},"qwen3vl_4b_bf16.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3vl_4b_bf16.safetensors","repo":"Comfy-Org/Mage-Flow"},"qwen3vl_4b_fp8_scaled.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3vl_4b_fp8_scaled.safetensors","repo":"Comfy-Org/Krea-2"},"qwen3vl_4b_int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3vl_4b_int8_convrot.safetensors","repo":"black-forest-labs/flux-3-image-klein-comfy"},"qwen3vl_8b_fp8_scaled.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3vl_8b_fp8_scaled.safetensors","repo":"Comfy-Org/Qwen3-VL"},"qwen3vl_8b_int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3vl_8b_int8_convrot.safetensors","repo":"Comfy-Org/Qwen-Image-2.1"},"qwen3vl_8b_joyimage_edit_int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/qwen3vl_8b_joyimage_edit_int8_convrot.safetensors","repo":"Comfy-Org/JoyAI-Image-Edit"},"qwen_0.6b_ace15.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_0.6b_ace15.safetensors","repo":"Comfy-Org/ace_step_1.5_ComfyUI_files"},"qwen_1.7b_ace15.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_1.7b_ace15.safetensors","repo":"Comfy-Org/ace_step_1.5_ComfyUI_files"},"qwen_2.5_vl_7b.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_2.5_vl_7b.safetensors","repo":"Comfy-Org/HunyuanImage_2.1_ComfyUI"},"qwen_2.5_vl_7b_fp8_scaled.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","repo":"Comfy-Org/HunyuanVideo_1.5_repackaged"},"qwen_2.5_vl_fp16.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_2.5_vl_fp16.safetensors","repo":"Comfy-Org/Omnigen2_ComfyUI_repackaged"},"qwen_3_06b_base.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_3_06b_base.safetensors","repo":"circlestone-labs/Anima"},"qwen_3_4b.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_3_4b.safetensors","repo":"Comfy-Org/z_image_turbo"},"qwen_3_4b_fp8_mixed.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_3_4b_fp8_mixed.safetensors","repo":"Comfy-Org/z_image_turbo"},"qwen_3_8b.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_3_8b.safetensors","repo":"Comfy-Org/vae-text-encorder-for-flux-klein-9b"},"qwen_3_8b_fp8mixed.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_3_8b_fp8mixed.safetensors","repo":"Comfy-Org/flux2-klein-9B"},"qwen_4b_ace15.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/qwen_4b_ace15.safetensors","repo":"Comfy-Org/ace_step_1.5_ComfyUI_files"},"qwen_image_2.1_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/qwen_image_2.1_int8_convrot.safetensors","repo":"Comfy-Org/Qwen-Image-2.1"},"qwen_image_2.1_turbo_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/qwen_image_2.1_turbo_int8_convrot.safetensors","repo":"Comfy-Org/Qwen-Image-2.1"},"qwen_image_2.1_vae_bf16.safetensors":{"folder":"vae","path":"vae/qwen_image_2.1_vae_bf16.safetensors","repo":"Comfy-Org/Qwen-Image-2.1"},"qwen_image_2512_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/qwen_image_2512_bf16.safetensors","repo":"Comfy-Org/Qwen-Image_ComfyUI"},"qwen_image_2512_fp8_e4m3fn.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/qwen_image_2512_fp8_e4m3fn.safetensors","repo":"Comfy-Org/Qwen-Image_ComfyUI"},"qwen_image_canny_diffsynth_controlnet.safetensors":{"folder":"model_patches","path":"split_files/model_patches/qwen_image_canny_diffsynth_controlnet.safetensors","repo":"Comfy-Org/Qwen-Image-DiffSynth-ControlNets"},"qwen_image_edit_2509_fp8_e4m3fn.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors","repo":"Comfy-Org/Qwen-Image-Edit_ComfyUI"},"qwen_image_edit_2509_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/qwen_image_edit_2509_int8_convrot.safetensors","repo":"Comfy-Org/marigold-v2-0"},"qwen_image_edit_2511_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/qwen_image_edit_2511_bf16.safetensors","repo":"Comfy-Org/Qwen-Image-Edit_ComfyUI"},"qwen_image_edit_2511_fp8mixed.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/qwen_image_edit_2511_fp8mixed.safetensors","repo":"Comfy-Org/Qwen-Image-Edit_ComfyUI"},"qwen_image_edit_2511_int8_convrot.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/qwen_image_edit_2511_int8_convrot.safetensors","repo":"Comfy-Org/Qwen-Image-Edit_ComfyUI"},"qwen_image_edit_fp8_e4m3fn.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/qwen_image_edit_fp8_e4m3fn.safetensors","repo":"Comfy-Org/Qwen-Image-Edit_ComfyUI"},"qwen_image_fp8_e4m3fn.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors","repo":"Comfy-Org/Qwen-Image_ComfyUI"},"qwen_image_layered_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/qwen_image_layered_bf16.safetensors","repo":"Comfy-Org/Qwen-Image-Layered_ComfyUI"},"qwen_image_layered_control_bf16.safetensors":{"folder":"diffusion_models","path":"qwen_image_layered_control_bf16.safetensors","repo":"DiffSynth-Studio/Qwen-Image-Layered-Control"},"qwen_image_layered_vae.safetensors":{"folder":"vae","path":"split_files/vae/qwen_image_layered_vae.safetensors","repo":"Comfy-Org/Qwen-Image-Layered_ComfyUI"},"qwen_image_union_diffsynth_lora.safetensors":{"folder":"loras","path":"split_files/loras/qwen_image_union_diffsynth_lora.safetensors","repo":"Comfy-Org/Qwen-Image-DiffSynth-ControlNets"},"qwen_image_vae.safetensors":{"folder":"vae","path":"split_files/vae/qwen_image_vae.safetensors","repo":"Comfy-Org/Qwen-Image_ComfyUI"},"raft_large_C_T_SKHT_V2-ff5fadd5.safetensors":{"folder":"optical_flow","path":"optical_flow/raft_large_C_T_SKHT_V2-ff5fadd5.safetensors","repo":"Comfy-Org/void-model"},"relayvsr_flash_vae_x2_fp32.safetensors":{"folder":"vae","path":"vae/relayvsr_flash_vae_x2_fp32.safetensors","repo":"Comfy-Org/RelayVSR"},"relayvsr_flash_vae_x4_fp32.safetensors":{"folder":"vae","path":"vae/relayvsr_flash_vae_x4_fp32.safetensors","repo":"Comfy-Org/RelayVSR"},"relayvsr_x2_lightx2v_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/relayvsr_x2_lightx2v_int8_convrot.safetensors","repo":"Comfy-Org/RelayVSR"},"relayvsr_x4_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/relayvsr_x4_int8_convrot.safetensors","repo":"Comfy-Org/RelayVSR"},"removal_timestep_alpha-2-1740.safetensors":{"folder":"loras","path":"removal_timestep_alpha-2-1740.safetensors","repo":"lrzjason/ObjectRemovalFluxFill"},"rt_detr_v4-x-hgnet_fp16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/rt_detr_v4-x-hgnet_fp16.safetensors","repo":"Comfy-Org/SDPose"},"rt_detr_v4-x-hgnet_fp32.safetensors":{"folder":"diffusion_models","path":"diffusion_models/rt_detr_v4-x-hgnet_fp32.safetensors","repo":"Comfy-Org/SDPose"},"sam3.1_multiplex_fp16.safetensors":{"folder":"checkpoints","path":"checkpoints/sam3.1_multiplex_fp16.safetensors","repo":"Comfy-Org/sam3.1"},"sam_3d_body_dinov3_bf16.safetensors":{"folder":"detection","path":"detection/sam_3d_body_dinov3_bf16.safetensors","repo":"Comfy-Org/sam-3d-body"},"sd3.5_large_controlnet_blur.safetensors":{"folder":"controlnet","path":"split_files/controlnet/sd3.5_large_controlnet_blur.safetensors","repo":"Comfy-Org/stable-diffusion-3.5-controlnets_ComfyUI_repackaged"},"sd3.5_large_controlnet_canny.safetensors":{"folder":"controlnet","path":"split_files/controlnet/sd3.5_large_controlnet_canny.safetensors","repo":"Comfy-Org/stable-diffusion-3.5-controlnets_ComfyUI_repackaged"},"sd3.5_large_controlnet_depth.safetensors":{"folder":"controlnet","path":"split_files/controlnet/sd3.5_large_controlnet_depth.safetensors","repo":"Comfy-Org/stable-diffusion-3.5-controlnets_ComfyUI_repackaged"},"sd3.5_large_fp8_scaled.safetensors":{"folder":"checkpoints","path":"sd3.5_large_fp8_scaled.safetensors","repo":"Comfy-Org/stable-diffusion-3.5-fp8"},"sd_xl_base_1.0.safetensors":{"folder":"checkpoints","path":"sd_xl_base_1.0.safetensors","repo":"stabilityai/stable-diffusion-xl-base-1.0"},"sd_xl_refiner_1.0.safetensors":{"folder":"checkpoints","path":"sd_xl_refiner_1.0.safetensors","repo":"stabilityai/stable-diffusion-xl-refiner-1.0"},"sd_xl_turbo_1.0_fp16.safetensors":{"folder":"checkpoints","path":"sd_xl_turbo_1.0_fp16.safetensors","repo":"stabilityai/sdxl-turbo"},"sdpose_wholebody_fp16.safetensors":{"folder":"checkpoints","path":"checkpoints/sdpose_wholebody_fp16.safetensors","repo":"Comfy-Org/SDPose"},"seedvr2_3b_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/seedvr2_3b_int8_convrot.safetensors","repo":"Comfy-Org/SeedVR2"},"seedvr2_7b_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/seedvr2_7b_int8_convrot.safetensors","repo":"Comfy-Org/SeedVR2"},"seedvr2_ema_vae_fp16.safetensors":{"folder":"vae","path":"vae/seedvr2_ema_vae_fp16.safetensors","repo":"Comfy-Org/SeedVR2"},"sheetsage2_bf16.safetensors":{"folder":"audio_encoders","path":"audio_encoders/sheetsage2_bf16.safetensors","repo":"Comfy-Org/YuE2"},"sigclip_vision_patch14_384.safetensors":{"folder":"clip_vision","path":"sigclip_vision_patch14_384.safetensors","repo":"Comfy-Org/sigclip_vision_384"},"stable-audio-open-1.0.safetensors":{"folder":"checkpoints","path":"stable-audio-open-1.0.safetensors","repo":"Comfy-Org/stable-audio-open-1.0_repackaged"},"stable_audio_3_medium.safetensors":{"folder":"checkpoints","path":"checkpoints/stable_audio_3_medium.safetensors","repo":"Comfy-Org/stable-audio-3"},"stable_audio_3_medium_base.safetensors":{"folder":"checkpoints","path":"checkpoints/stable_audio_3_medium_base.safetensors","repo":"Comfy-Org/stable-audio-3"},"svd_xt.safetensors":{"folder":"checkpoints","path":"svd_xt.safetensors","repo":"stabilityai/stable-video-diffusion-img2vid-xt"},"t5-base.safetensors":{"folder":"text_encoders","path":"t5-base.safetensors","repo":"ComfyUI-Wiki/t5-base"},"t5gemma_b_b_ul2.safetensors":{"folder":"text_encoders","path":"text_encoders/t5gemma_b_b_ul2.safetensors","repo":"Comfy-Org/stable-audio-3"},"t5xxl_fp16.safetensors":{"folder":"text_encoders","path":"t5xxl_fp16.safetensors","repo":"comfyanonymous/flux_text_encoders"},"t5xxl_fp8_e4m3fn_scaled.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/t5xxl_fp8_e4m3fn_scaled.safetensors","repo":"Comfy-Org/HiDream-I1_ComfyUI"},"trellis_2_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/trellis_2_int8_convrot.safetensors","repo":"Comfy-Org/TRELLIS.2"},"trellis_2_shape_vae_bf16.safetensors":{"folder":"vae","path":"vae/trellis_2_shape_vae_bf16.safetensors","repo":"Comfy-Org/Pixal3D"},"trellis_2_texture_vae_bf16.safetensors":{"folder":"vae","path":"vae/trellis_2_texture_vae_bf16.safetensors","repo":"Comfy-Org/Pixal3D"},"triposplat_fp16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/triposplat_fp16.safetensors","repo":"VAST-AI/TripoSplat"},"triposplat_vae_decoder_fp16.safetensors":{"folder":"vae","path":"vae/triposplat_vae_decoder_fp16.safetensors","repo":"VAST-AI/TripoSplat"},"umt5-xxl-enc-bf16.safetensors":{"folder":"text_encoders","path":"umt5-xxl-enc-bf16.safetensors","repo":"Kijai/WanVideo_comfy"},"umt5_xxl_fp16.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/umt5_xxl_fp16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"umt5_xxl_fp8_e4m3fn_scaled.safetensors":{"folder":"text_encoders","path":"split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"uso-flux1-dit-lora-v1.safetensors":{"folder":"loras","path":"split_files/loras/uso-flux1-dit-lora-v1.safetensors","repo":"Comfy-Org/USO_1.0_Repackaged"},"uso-flux1-projector-v1.safetensors":{"folder":"model_patches","path":"split_files/model_patches/uso-flux1-projector-v1.safetensors","repo":"Comfy-Org/USO_1.0_Repackaged"},"vae-ft-mse-840000-ema-pruned.safetensors":{"folder":"vae","path":"vae-ft-mse-840000-ema-pruned.safetensors","repo":"stabilityai/sd-vae-ft-mse-original"},"void_pass1.safetensors":{"folder":"diffusion_models","path":"diffusion_models/void_pass1.safetensors","repo":"Comfy-Org/void-model"},"void_pass2.safetensors":{"folder":"diffusion_models","path":"diffusion_models/void_pass2.safetensors","repo":"Comfy-Org/void-model"},"wan2.1_14B_SCAIL_2_fp16.safetensors":{"folder":"diffusion_models","path":"diffusion_models/wan2.1_14B_SCAIL_2_fp16.safetensors","repo":"Comfy-Org/SCAIL-2"},"wan2.1_14B_SCAIL_2_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/wan2.1_14B_SCAIL_2_int8_convrot.safetensors","repo":"Comfy-Org/SCAIL-2"},"wan2.1_SCAIL_2_DPO_lora_bf16.safetensors":{"folder":"loras","path":"loras/wan2.1_SCAIL_2_DPO_lora_bf16.safetensors","repo":"Comfy-Org/SCAIL-2"},"wan2.1_flf2v_720p_14B_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.1_flf2v_720p_14B_fp16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.1_fun_camera_v1.1_1.3B_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.1_fun_camera_v1.1_1.3B_bf16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.1_fun_camera_v1.1_14B_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.1_fun_camera_v1.1_14B_bf16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.1_fun_control_1.3B_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.1_fun_control_1.3B_bf16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.1_fun_inp_1.3B_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.1_fun_inp_1.3B_bf16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.1_i2v_480p_14B_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.1_i2v_480p_14B_fp16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.1_infiniteTalk_multi_fp16.safetensors":{"folder":"model_patches","path":"split_files/model_patches/wan2.1_infiniteTalk_multi_fp16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.1_t2v_1.3B_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.1_t2v_1.3B_fp16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.1_t2v_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.1_t2v_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.1_vace_1.3B_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.1_vace_1.3B_fp16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.1_vace_14B_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.1_vace_14B_fp16.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan2.2_bernini_r_high_noise_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"diffusion_models/wan2.2_bernini_r_high_noise_fp8_scaled.safetensors","repo":"Comfy-Org/Bernini-R"},"wan2.2_bernini_r_low_noise_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"diffusion_models/wan2.2_bernini_r_low_noise_fp8_scaled.safetensors","repo":"Comfy-Org/Bernini-R"},"wan2.2_dancer_14b_global_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"diffusion_models/wan2.2_dancer_14b_global_fp8_scaled.safetensors","repo":"Comfy-Org/Wan-Dancer"},"wan2.2_dancer_14b_local_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"diffusion_models/wan2.2_dancer_14b_local_fp8_scaled.safetensors","repo":"Comfy-Org/Wan-Dancer"},"wan2.2_fun_camera_high_noise_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_fun_camera_high_noise_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_fun_camera_low_noise_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_fun_camera_low_noise_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_fun_control_5B_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_fun_control_5B_bf16.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_fun_control_high_noise_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_fun_control_high_noise_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_fun_control_low_noise_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_fun_control_low_noise_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_fun_inpaint_5B_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_fun_inpaint_5B_bf16.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_fun_inpaint_high_noise_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_fun_inpaint_high_noise_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_fun_inpaint_low_noise_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_fun_inpaint_low_noise_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_1022.safetensors":{"folder":"loras","path":"wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_1022.safetensors","repo":"lightx2v/Wan2.2-Distill-Loras"},"wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_1022.safetensors":{"folder":"loras","path":"wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_1022.safetensors","repo":"lightx2v/Wan2.2-Distill-Loras"},"wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors":{"folder":"loras","path":"split_files/loras/wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors":{"folder":"loras","path":"split_files/loras/wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_s2v_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_s2v_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors":{"folder":"loras","path":"split_files/loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors":{"folder":"loras","path":"split_files/loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_ti2v_5B_fp16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/wan2.2_ti2v_5B_fp16.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan2.2_vae.safetensors":{"folder":"vae","path":"split_files/vae/wan2.2_vae.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan_2.1_vae.safetensors":{"folder":"vae","path":"split_files/vae/wan_2.1_vae.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wan_alpha_2.1_rgba_lora.safetensors":{"folder":"loras","path":"split_files/loras/wan_alpha_2.1_rgba_lora.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan_alpha_2.1_vae_alpha_channel.safetensors":{"folder":"vae","path":"split_files/vae/wan_alpha_2.1_vae_alpha_channel.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan_alpha_2.1_vae_rgb_channel.safetensors":{"folder":"vae","path":"split_files/vae/wan_alpha_2.1_vae_rgb_channel.safetensors","repo":"Comfy-Org/Wan_2.1_ComfyUI_repackaged"},"wan_animate_2_distill_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/wan_animate_2_distill_int8_convrot.safetensors","repo":"Comfy-Org/Wan-Animate-2"},"wan_animate_2_int8_convrot.safetensors":{"folder":"diffusion_models","path":"diffusion_models/wan_animate_2_int8_convrot.safetensors","repo":"Comfy-Org/Wan-Animate-2"},"wav2vec2-chinese-base_fp16.safetensors":{"folder":"audio_encoders","path":"wav2vec2-chinese-base_fp16.safetensors","repo":"Kijai/wav2vec2_safetensors"},"wav2vec2_large_english_fp16.safetensors":{"folder":"audio_encoders","path":"split_files/audio_encoders/wav2vec2_large_english_fp16.safetensors","repo":"Comfy-Org/Wan_2.2_ComfyUI_Repackaged"},"wevisone_vl_2b_int8_convrot.safetensors":{"folder":"text_encoders","path":"text_encoders/wevisone_vl_2b_int8_convrot.safetensors","repo":"Comfy-Org/WeVisOne-VL"},"whisper_large_v3_fp16.safetensors":{"folder":"audio_encoders","path":"split_files/audio_encoders/whisper_large_v3_fp16.safetensors","repo":"Comfy-Org/HuMo_ComfyUI"},"yue2_3b_int8_convrot.safetensors":{"folder":"checkpoints","path":"checkpoints/yue2_3b_int8_convrot.safetensors","repo":"Comfy-Org/YuE2"},"z_image_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/z_image_bf16.safetensors","repo":"Comfy-Org/z_image"},"z_image_int8_convrot.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/z_image_int8_convrot.safetensors","repo":"Comfy-Org/z_image"},"z_image_turbo_bf16.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/z_image_turbo_bf16.safetensors","repo":"Comfy-Org/z_image_turbo"},"z_image_turbo_int8_convrot.safetensors":{"folder":"diffusion_models","path":"split_files/diffusion_models/z_image_turbo_int8_convrot.safetensors","repo":"Comfy-Org/z_image_turbo"}},"source":"Comfy-Org/workflow_templates"} diff --git a/template-needs.json b/template-needs.json new file mode 100644 index 0000000000000000000000000000000000000000..3087ed86e002425eb4028c000c1828857d6071f0 --- /dev/null +++ b/template-needs.json @@ -0,0 +1 @@ +{"commit":"2fbb6d071de37a5f61e9910f7295e72eeb0f9e66","source":"Comfy-Org/workflow_templates","templates":{"3d_hunyuan3d-v2.1":{"models":["hunyuan_3d_v2.1.safetensors"],"nodes":["CLIPVisionEncode","EmptyLatentHunyuan3Dv2","Hunyuan3Dv2Conditioning","ImageOnlyCheckpointLoader","KSampler","LoadImage","ModelSamplingAuraFlow","SaveGLB","VAEDecodeHunyuan3D","VoxelToMesh"]},"3d_hunyuan3d_image_to_model":{"models":["hunyuan3d-dit-v2_fp16.safetensors"],"nodes":["CLIPVisionEncode","EmptyLatentHunyuan3Dv2","Hunyuan3Dv2Conditioning","ImageOnlyCheckpointLoader","KSampler","LoadImage","ModelSamplingAuraFlow","SaveGLB","VAEDecodeHunyuan3D","VoxelToMesh"]},"3d_hunyuan3d_multiview_to_model":{"models":["hunyuan3d-dit-v2-mv_fp16.safetensors"],"nodes":["CLIPVisionEncode","EmptyLatentHunyuan3Dv2","Hunyuan3Dv2ConditioningMultiView","ImageOnlyCheckpointLoader","KSampler","LoadImage","ModelSamplingAuraFlow","SaveGLB","VAEDecodeHunyuan3D","VoxelToMesh"]},"3d_hunyuan3d_multiview_to_model_turbo":{"models":["hunyuan3d-dit-v2-mv-turbo_fp16.safetensors"],"nodes":["CLIPVisionEncode","EmptyLatentHunyuan3Dv2","FluxGuidance","Hunyuan3Dv2ConditioningMultiView","ImageOnlyCheckpointLoader","KSampler","LoadImage","ModelSamplingAuraFlow","SaveGLB","VAEDecodeHunyuan3D","VoxelToMesh"]},"3d_idol_image_to_gaussian_splat":{"models":["birefnet.safetensors","dino_v3_vit_h_bf16.safetensors","flux2-vae.safetensors","idol_decoder_fp16.safetensors","idol_fp16.safetensors"],"nodes":["CLIPVisionLoader","ComfySwitchNode","CreateCameraInfo","CreateVideo","InvertMask","JoinImageWithAlpha","KSampler","LoadBackgroundRemovalModel","LoadImage","PreviewImage","RemoveBackground","RenderSplat","SaveGLB","SaveVideo","SplatToFile3D","SplatToMesh","TripoSplatConditioning","TripoSplatPreprocessImage","TripoSplatSamplingPreview","UNETLoader","VAEDecodeTripoSplat","VAELoader"]},"3d_moge_panorama_to_mesh":{"models":["moge_2_vitl_normal_fp16.safetensors"],"nodes":["ComfyMathExpression","ComfySwitchNode","GetImageSize","LoadImage","LoadMoGeModel","MoGePanoramaInference","MoGePointMapToMesh","ResizeImageMaskNode","SaveGLB"]},"3d_moge_perspective_to_mesh":{"models":["moge_2_vitl_normal_fp16.safetensors"],"nodes":["ComfyMathExpression","ComfySwitchNode","GetImageSize","ImageScaleToMaxDimension","LoadImage","LoadMoGeModel","MoGeInference","MoGePointMapToMesh","MoGeRender","PreviewImage","SaveGLB"]},"3d_pixal3d_multi_views":{"models":["birefnet.safetensors","dino_v3_L_naf_fp32.safetensors","pixal3d_multiview_int8_convrot.safetensors","trellis_2_shape_vae_bf16.safetensors","trellis_2_texture_vae_bf16.safetensors"],"nodes":["ApplyTextureToMesh","BakeAmbientOcclusion","BakeNormalMapFromMesh","BakeTextureFromVoxel","CFGOverride","CLIPVisionLoader","DecimateMesh","EmptyTrellis2LatentStructure","GetMeshInfo","ImageCropToMask","ImageCropV2","KSampler","LoadBackgroundRemovalModel","LoadImage","MeshSmoothNormals","MeshToFile3D","ModelSamplingSD3","PaintMesh","Pixal3DMultiViewConditioning","Preview3DAdvanced","PreviewImage","PrimitiveInt","RemeshMesh","RemoveBackground","RenderUVAtlas","RescaleCFG","Save3DAdvanced","SaveImageAdvanced","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","UNETLoader","UnwrapMesh","VAELoader","VaeDecodeShapeTrellis","VaeDecodeStructureTrellis2","VaeDecodeTextureTrellis","VoxelToMesh"]},"3d_pixal3d_trellis2_image_to_model":{"models":["birefnet.safetensors","dino_v3_L_naf_fp32.safetensors","moge_2_vitl_normal_fp16.safetensors","pixal3d_int8_convrot.safetensors","trellis_2_int8_convrot.safetensors","trellis_2_shape_vae_bf16.safetensors","trellis_2_texture_vae_bf16.safetensors"],"nodes":["ApplyTextureToMesh","BakeAmbientOcclusion","BakeNormalMapFromMesh","BakeTextureFromVoxel","CFGOverride","CLIPVisionLoader","ComfySwitchNode","DecimateMesh","EmptyTrellis2LatentStructure","GetMeshInfo","ImageCropToMask","KSampler","LoadBackgroundRemovalModel","LoadImage","LoadMoGeModel","MaskPreview","MeshSmoothNormals","MeshToFile3D","MoGeGeometryToFOV","MoGeInference","ModelSamplingSD3","PaintMesh","Pixal3DConditioning","Preview3DAdvanced","PreviewImage","PrimitiveBoolean","PrimitiveInt","RemeshMesh","RemoveBackground","RenderUVAtlas","RescaleCFG","Save3DAdvanced","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","UNETLoader","UnwrapMesh","VAELoader","VaeDecodeShapeTrellis","VaeDecodeStructureTrellis2","VaeDecodeTextureTrellis","VoxelToMesh"]},"3d_triposplat_image_to_gaussian_splat":{"models":["birefnet.safetensors","dino_v3_vit_h.safetensors","flux2-vae.safetensors","triposplat_fp16.safetensors","triposplat_vae_decoder_fp16.safetensors"],"nodes":["CLIPVisionLoader","ComfySwitchNode","CreateCameraInfo","CreateVideo","InvertMask","JoinImageWithAlpha","KSampler","LoadBackgroundRemovalModel","LoadImage","PreviewImage","RemoveBackground","RenderSplat","SaveGLB","SaveVideo","SplatToFile3D","SplatToMesh","TripoSplatConditioning","TripoSplatPreprocessImage","TripoSplatSamplingPreview","UNETLoader","VAEDecodeTripoSplat","VAELoader"]},"Image_capybara_v0_1_image_edit":{"models":["byt5_small_glyphxl_fp16.safetensors","capybara_v0.1.safetensors","hunyuanvideo15_vae_fp16.safetensors","qwen_2.5_vl_7b.safetensors","sigclip_vision_patch14_384.safetensors"],"nodes":["BasicScheduler","CFGGuider","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","DualCLIPLoader","GetImageSize","HunyuanVideo15ImageToVideo","KSamplerSelect","LoadImage","ModelSamplingSD3","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"Image_capybara_v0_1_text_to_image":{"models":["byt5_small_glyphxl_fp16.safetensors","capybara_v0.1.safetensors","hunyuanvideo15_vae_fp16.safetensors","qwen_2.5_vl_7b.safetensors"],"nodes":["BasicScheduler","CFGGuider","CLIPTextEncode","DualCLIPLoader","EmptyHunyuanVideo15Latent","KSamplerSelect","ModelSamplingSD3","RandomNoise","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"api_anthropic_claude":{"models":[],"nodes":["ClaudeNode","LoadImage","PreviewAny"]},"api_anthropic_claude_fable5":{"models":[],"nodes":["ClaudeNode","LoadImage","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_anthropic_claude_fable5_1":{"models":[],"nodes":["ClaudeNode","LoadImage","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_anthropic_claude_opus_5":{"models":[],"nodes":["ClaudeNode","LoadImage","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_anthropic_claude_opus_5_5":{"models":[],"nodes":["ClaudeNode","LoadImage","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_anthropic_claude_sonnet5":{"models":[],"nodes":["ClaudeNode","LoadImage","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_beeble_switchx_image_edit":{"models":[],"nodes":["BeebleSwitchXImageEdit","ImageCompare","InvertMask","JoinImageWithAlpha","LoadImage","SaveImage"]},"api_beeble_switchx_video_edit":{"models":[],"nodes":["BeebleSwitchXVideoEdit","GetImageSize","GetVideoComponents","LoadImage","LoadVideo","PreviewAny","SaveVideo","Video Slice"]},"api_bfl_flux1_expand_image":{"models":[],"nodes":["FluxProExpandNode","LoadImage","SaveImage"]},"api_bfl_flux2_max_sofa_swap":{"models":[],"nodes":["Flux2ImageNode","GetImageSize","LoadImage","SaveImage"]},"api_bfl_flux3_i2v":{"models":[],"nodes":["Flux3ImageToVideoNode","LoadImage","SaveVideo"]},"api_bfl_flux3_image_bboxes":{"models":[],"nodes":["CreateBoundingBoxes","Flux3ImageNode","ImageCompare","LoadImage","PreviewAny","SaveImageAdvanced"]},"api_bfl_flux3_image_edit":{"models":[],"nodes":["Flux3ImageNode","ImageCompare","LoadImage","SaveImageAdvanced"]},"api_bfl_flux3_t2i":{"models":[],"nodes":["Flux3ImageNode","SaveImageAdvanced"]},"api_bfl_flux3_t2v":{"models":[],"nodes":["Flux3TextToVideoNode","SaveVideo"]},"api_bfl_flux_1_kontext_max_image":{"models":[],"nodes":["FluxKontextMaxImageNode","ImageStitch","LoadImage","SaveImage"]},"api_bfl_flux_1_kontext_multiple_images_input":{"models":[],"nodes":["FluxKontextProImageNode","ImageStitch","LoadImage","PreviewImage","SaveImage"]},"api_bfl_flux_1_kontext_pro_image":{"models":[],"nodes":["FluxKontextProImageNode","ImageStitch","LoadImage","SaveImage"]},"api_bfl_flux_pro_t2i":{"models":[],"nodes":["FluxProUltraImageNode","LoadImage","SaveImage"]},"api_bria_eraser":{"models":[],"nodes":["BriaEraser","ImageCompare","LoadImage","Painter","SaveImageAdvanced"]},"api_bria_expand_image":{"models":[],"nodes":["BriaExpandImage","LoadImage","SaveImageAdvanced"]},"api_bria_fibo2_t2i":{"models":[],"nodes":["BriaImageGenerate","SaveImage"]},"api_bria_genfill":{"models":[],"nodes":["BriaGenFill","ImageCompare","LoadImage","Painter","SaveImageAdvanced"]},"api_bria_guided_remove_background":{"models":[],"nodes":["BriaGuidedRemoveBackground","ImageCompare","LoadImage","SaveImage"]},"api_bria_image_edit":{"models":[],"nodes":["BriaImageEditNode","ImageCompare","LoadImage","SaveImage"]},"api_bria_image_outpainting":{"models":[],"nodes":["BriaImageEditNode","ImagePadForOutpaint","LoadImage","PreviewImage","SaveImage"]},"api_bria_product_holding":{"models":[],"nodes":["BriaProductHolding","LoadImage","SaveImage"]},"api_bria_remove_video_background":{"models":[],"nodes":["BriaRemoveVideoBackground","LoadVideo","SaveVideo"]},"api_bria_remove_video_background_transparent":{"models":[],"nodes":["BriaTransparentVideoBackground","GetVideoComponents","JoinImageWithAlpha","LoadVideo","SaveWEBM"]},"api_bria_video_green_screen":{"models":[],"nodes":["BriaVideoGreenScreen","LoadVideo","SaveVideo"]},"api_bria_video_replace_background":{"models":[],"nodes":["BriaVideoReplaceBackground","LoadImage","LoadVideo","SaveVideo"]},"api_bria_virtual_try_on":{"models":[],"nodes":["BriaVirtualTryOn","ImageCompare","LoadImage","SaveImage"]},"api_bytedance_flf2v":{"models":[],"nodes":["ByteDanceFirstLastFrameNode","LoadImage","SaveVideo"]},"api_bytedance_image_to_video":{"models":[],"nodes":["ByteDanceImageToVideoNode","LoadImage","SaveVideo"]},"api_bytedance_seed":{"models":[],"nodes":["ByteDanceSeedNode","JsonExtractString","LoadImage","PreviewAny","RegexReplace"]},"api_bytedance_seed_audio1_0_t2a":{"models":[],"nodes":["ByteDanceSeedAudio","SaveAudioAdvanced"]},"api_bytedance_seed_audio1_0_ta2a":{"models":[],"nodes":["ByteDanceSeedAudio","LoadAudio","SaveAudioAdvanced"]},"api_bytedance_seed_audio1_0_ti2a":{"models":[],"nodes":["ByteDanceSeedAudio","LoadImage","SaveAudioAdvanced"]},"api_bytedance_seedance2_5_flash_i2v":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","LoadImage","SaveVideo"]},"api_bytedance_seedance2_5_flash_r2v":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","LoadImage","SaveVideo"]},"api_bytedance_seedance2_5_flash_t2v":{"models":[],"nodes":["ByteDance2TextToVideoNode","SaveVideo"]},"api_bytedance_seedream4":{"models":[],"nodes":["ByteDanceSeedreamNodeV3","ImageCompare","LoadImage","SaveImage"]},"api_bytedance_seedream_5_0_flash_image_edit":{"models":[],"nodes":["ByteDanceSeedreamNodeV3","LoadImage","SaveImageAdvanced"]},"api_bytedance_seedream_5_0_flash_t2i":{"models":[],"nodes":["ByteDanceSeedreamNodeV3","SaveImageAdvanced"]},"api_bytedance_seedream_5_0_layer_separation":{"models":[],"nodes":["BatchImagesNode","BatchMasksNode","ByteDanceSeedreamLayerSeparationNodeV2","ImageCompositor","JoinImageWithAlpha","LoadImage","SaveImageAdvanced"]},"api_bytedance_seedream_5_0_lite_image_edit":{"models":[],"nodes":["ByteDanceSeedreamNodeV3","LoadImage","SaveImageAdvanced"]},"api_bytedance_seedream_5_0_lite_t2i":{"models":[],"nodes":["ByteDanceSeedreamNodeV3","SaveImage"]},"api_bytedance_seedream_5_0_pro_image_edit":{"models":[],"nodes":["ByteDanceSeedreamNodeV3","LoadImage","Painter","PreviewImage","SaveImageAdvanced"]},"api_bytedance_seedream_5_0_pro_t2i":{"models":[],"nodes":["ByteDanceSeedreamNodeV3","SaveImageAdvanced"]},"api_bytedance_seedream_5_5_image_edit":{"models":[],"nodes":["ByteDanceSeedreamNodeV3","GetImageSize","ImageCompare","LoadImage","SaveImage"]},"api_bytedance_seedream_5_5_t2i":{"models":[],"nodes":["ByteDanceSeedreamNodeV3","SaveImage"]},"api_bytedance_text_to_video":{"models":[],"nodes":["ByteDanceTextToVideoNode","SaveVideo"]},"api_bytedance_vcube_video_enhance":{"models":[],"nodes":["ByteDanceVideoEnhanceNode","ComfyMathExpression","CreateVideo","GetImageSize","GetVideoComponents","ImageStitch","LoadVideo","ResizeImageMaskNode","SaveVideo"]},"api_clarity_ai_crystal_upscale":{"models":[],"nodes":["ClarityCrystalUpscaleNode","ImageCompare","LoadImage","SaveImageAdvanced"]},"api_clarity_ai_crystal_video_upscale":{"models":[],"nodes":["ClarityCrystalVideoUpscaleNode","LoadVideo","SaveVideo"]},"api_elevenLabs_speech_to_text":{"models":[],"nodes":["ElevenLabsSpeechToText","LoadAudio","PreviewAny","RecordAudio"]},"api_elevenlabs_speech_to_speech":{"models":[],"nodes":["ElevenLabsInstantVoiceClone","ElevenLabsSpeechToSpeech","ElevenLabsVoiceSelector","LoadAudio","RecordAudio","SaveAudioAdvanced"]},"api_elevenlabs_text_to_dialogue":{"models":[],"nodes":["ElevenLabsInstantVoiceClone","ElevenLabsTextToDialogue","ElevenLabsVoiceSelector","LoadAudio","RecordAudio","SaveAudioAdvanced"]},"api_elevenlabs_text_to_sound_effects":{"models":[],"nodes":["ElevenLabsTextToSoundEffects","SaveAudioAdvanced"]},"api_elevenlabs_text_to_speech":{"models":[],"nodes":["ElevenLabsInstantVoiceClone","ElevenLabsTextToSpeech","ElevenLabsVoiceSelector","LoadAudio","RecordAudio","SaveAudioAdvanced"]},"api_elevenlabs_v4_text_to_dialogue":{"models":[],"nodes":["ElevenLabsInstantVoiceClone","ElevenLabsTextToDialogue","ElevenLabsVoiceSelector","LoadAudio","RecordAudio","SaveAudioAdvanced"]},"api_elevenlabs_v4_text_to_speech":{"models":[],"nodes":["ElevenLabsInstantVoiceClone","ElevenLabsTextToSpeech","ElevenLabsVoiceSelector","LoadAudio","RecordAudio","SaveAudioAdvanced"]},"api_elevenlabs_voice_isolation":{"models":[],"nodes":["ElevenLabsAudioIsolation","LoadAudio","SaveAudioAdvanced"]},"api_fishaudio_drama3_dialogue":{"models":[],"nodes":["FishAudioInstantVoiceClone","FishAudioTextToSpeech","FishAudioVoiceSelector","LoadAudio","SaveAudioAdvanced"]},"api_fishaudio_drama3_directed":{"models":[],"nodes":["FishAudioInstantVoiceClone","FishAudioTextToSpeech","FishAudioVoiceSelector","LoadAudio","SaveAudioAdvanced"]},"api_fishaudio_speech_to_text":{"models":[],"nodes":["FishAudioSpeechToText","LoadAudio","SaveText"]},"api_fishaudio_text_to_speech":{"models":[],"nodes":["FishAudioInstantVoiceClone","FishAudioTextToSpeech","FishAudioVoiceSelector","LoadAudio","SaveAudioAdvanced"]},"api_fishaudio_voice_clone_tts":{"models":[],"nodes":["FishAudioInstantVoiceClone","FishAudioTextToSpeech","FishAudioVoiceSelector","LoadAudio","RecordAudio","SaveAudioAdvanced"]},"api_flux2":{"models":[],"nodes":["Flux2ImageNode","LoadImage","SaveImage"]},"api_flux3_max_i2v":{"models":[],"nodes":["Flux3MaxImageToVideoNode","LoadImage","SaveVideo"]},"api_flux3_max_t2v":{"models":[],"nodes":["Flux3MaxTextToVideoNode","SaveVideo"]},"api_flux_erase_image":{"models":[],"nodes":["FluxEraseNode","ImageCompare","LoadImage","SaveImage"]},"api_flux_video_edit":{"models":[],"nodes":["FluxVideoEditNode","LoadVideo","SaveVideo"]},"api_flux_vto":{"models":[],"nodes":["FluxVTONode","ImageCompare","ImageStitch","LoadImage","SaveImage"]},"api_from_photo_2_miniature":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","LoadImage","SaveImage"]},"api_google_gemini":{"models":[],"nodes":["GeminiNodeV3","LoadImage","SaveText"]},"api_google_gemini_4_hydrogen":{"models":[],"nodes":["GeminiNodeV3","LoadImage","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_google_gemini_image":{"models":[],"nodes":["BatchImagesNode","GeminiImageNode","GeminiInputFiles","LoadImage","PreviewAny","SaveImage"]},"api_google_gemini_omni_flash_1_1_edit":{"models":[],"nodes":["GeminiVideoOmniV2","LoadVideo","SaveVideo"]},"api_google_gemini_omni_flash_1_1_extend":{"models":[],"nodes":["GeminiVideoOmniV2","LoadVideo","SaveVideo","Video Slice"]},"api_google_gemini_omni_flash_1_1_i2v":{"models":[],"nodes":["GeminiVideoOmniV2","LoadImage","SaveVideo"]},"api_google_gemini_omni_flash_1_1_r2v":{"models":[],"nodes":["GeminiVideoOmniV2","LoadImage","SaveVideo"]},"api_google_gemini_omni_flash_1_1_t2v":{"models":[],"nodes":["GeminiVideoOmniV2","SaveVideo"]},"api_google_gemini_omni_flash_1_2_edit":{"models":[],"nodes":["GeminiVideoOmniV2","LoadVideo","SaveVideo"]},"api_google_gemini_omni_flash_1_2_extend":{"models":[],"nodes":["GeminiVideoOmniV2","LoadVideo","SaveVideo"]},"api_google_gemini_omni_flash_1_2_i2v":{"models":[],"nodes":["GeminiVideoOmniV2","LoadImage","SaveVideo"]},"api_google_gemini_omni_flash_1_2_r2v":{"models":[],"nodes":["GeminiVideoOmniV2","LoadImage","SaveVideo"]},"api_google_gemini_omni_flash_1_2_t2v":{"models":[],"nodes":["GeminiVideoOmniV2","SaveVideo"]},"api_google_gemini_omni_flash_i2v":{"models":[],"nodes":["CustomCombo","GeminiVideoOmniV2","LoadImage","PreviewAny","PrimitiveStringMultiline","SaveVideo","StringConcatenate"]},"api_google_gemini_omni_flash_t2v":{"models":[],"nodes":["GeminiVideoOmniV2","SaveVideo"]},"api_google_gemini_omni_flash_video_edit":{"models":[],"nodes":["CustomCombo","GeminiVideoOmniV2","LoadVideo","PreviewAny","PrimitiveStringMultiline","SaveVideo","StringConcatenate"]},"api_google_nano_banana2_image_edit":{"models":[],"nodes":["GeminiNanoBanana2V2","LoadImage","SaveImage"]},"api_google_nano_banana2_image_edit_continuation":{"models":[],"nodes":["GeminiNanoBanana2V2","LoadImage","SaveImage"]},"api_google_nano_banana2_text_to_image":{"models":[],"nodes":["GeminiNanoBanana2V2","SaveImage"]},"api_google_nano_banana_create_turnaround_sheet":{"models":[],"nodes":["GeminiImage2Node","LoadImage","SaveImageAdvanced"]},"api_grok_image_edit":{"models":[],"nodes":["GrokImageEditNodeV2","LoadImage","SaveImage"]},"api_grok_imagine_image_2_image_edit":{"models":[],"nodes":["GrokImageEditNodeV2","LoadImage","SaveImage"]},"api_grok_imagine_image_2_t2i":{"models":[],"nodes":["GrokImageNode","SaveImageAdvanced"]},"api_grok_imagine_image_quality_image_edit":{"models":[],"nodes":["GrokImageNode","SaveImage"]},"api_grok_imagine_image_quality_image_generation":{"models":[],"nodes":["GrokImageNode","SaveImage"]},"api_grok_imagine_video_1_5":{"models":[],"nodes":["GrokVideoNode","LoadImage","SaveVideo"]},"api_grok_imagine_video_1_5_lite_i2v":{"models":[],"nodes":["GrokVideoNode","LoadImage","SaveVideo"]},"api_grok_imagine_video_1_5_lite_t2v":{"models":[],"nodes":["GrokVideoNode","SaveVideo"]},"api_grok_reference_to_video":{"models":[],"nodes":["GrokVideoReferenceNode","LoadImage","SaveVideo"]},"api_grok_text_to_image":{"models":[],"nodes":["GrokImageNode","SaveImage"]},"api_grok_video":{"models":[],"nodes":["GrokVideoNode","LoadImage","SaveVideo"]},"api_grok_video_edit":{"models":[],"nodes":["GrokVideoEditNode","LoadVideo","SaveVideo"]},"api_grok_video_extend":{"models":[],"nodes":["GrokVideoExtendNode","LoadVideo","SaveVideo"]},"api_happyhorse1_0_i2v":{"models":[],"nodes":["HappyHorseImageToVideoApi","LoadImage","SaveVideo"]},"api_happyhorse1_0_r2v":{"models":[],"nodes":["HappyHorseReferenceVideoApi","LoadImage","SaveVideo"]},"api_happyhorse1_0_t2v":{"models":[],"nodes":["HappyHorseTextToVideoApi","SaveVideo"]},"api_happyhorse1_0_video_edit":{"models":[],"nodes":["HappyHorseVideoEditApi","LoadImage","LoadVideo","SaveVideo"]},"api_happyhorse1_1_i2v":{"models":[],"nodes":["HappyHorseImageToVideoApi","LoadImage","SaveVideo"]},"api_happyhorse1_1_r2v":{"models":[],"nodes":["HappyHorseReferenceVideoApi","LoadImage","SaveVideo"]},"api_happyhorse1_1_t2v":{"models":[],"nodes":["HappyHorseTextToVideoApi","SaveVideo"]},"api_heygen_avatar_6_i2v":{"models":[],"nodes":["HeyGenAvatar6ReferenceToVideoNode","HeyGenTextToSpeechNode","LoadAudio","LoadImage","SaveVideo"]},"api_heygen_avatar_6_id2v":{"models":[],"nodes":["HeyGenAvatar6IdentityToVideoNode","HeyGenCreateAvatarNode","HeyGenVoiceCloneNode","LoadAudio","LoadImage","SaveText","SaveVideo","StringConcatenate"]},"api_heygen_avatar_video":{"models":[],"nodes":["ColorToRGBInt","HeyGenAvatarVideoNode","HeyGenCreateAvatarNode","PreviewAny","SaveText","SaveVideo","StringConcatenate"]},"api_heygen_talking_photo":{"models":[],"nodes":["HeyGenTalkingPhotoNode","LoadImage","SaveVideo"]},"api_heygen_text_to_speech":{"models":[],"nodes":["HeyGenTextToSpeechNode","SaveAudioAdvanced"]},"api_heygen_video_1_i2v":{"models":[],"nodes":["HeyGenImageToVideoNode","LoadImage","SaveVideo"]},"api_heygen_video_1_r2v":{"models":[],"nodes":["HeyGenReferenceToVideoNode","LoadImage","SaveVideo"]},"api_heygen_video_1_t2v":{"models":[],"nodes":["HeyGenReferenceToVideoNode","SaveVideo"]},"api_heygen_video_translate":{"models":[],"nodes":["HeyGenVideoTranslateNode","LoadVideo","SaveVideo"]},"api_heygen_voice_1":{"models":[],"nodes":["HeyGenVoiceCloneNode","HeyGenVoiceTextToSpeechNode","LoadAudio","SaveAudioAdvanced","SaveText"]},"api_heygen_voice_1_turbo":{"models":[],"nodes":["HeyGenVoiceCloneNode","HeyGenVoiceTextToSpeechNode","LoadAudio","SaveAudioAdvanced","SaveText"]},"api_higgsfield_genjutsu_motion_transfer":{"models":[],"nodes":["HiggsfieldMotionTransferNode","LoadImage","LoadVideo","SaveVideo"]},"api_hunyuan3d_image_to_model":{"models":[],"nodes":["LoadImage","SaveGLB","SaveImage","TencentImageToModelNode"]},"api_hunyuan3d_model2uv":{"models":[],"nodes":["Load3D","SaveGLB","TencentModelTo3DUVNode"]},"api_hunyuan3d_part":{"models":[],"nodes":["Load3D","SaveGLB","Tencent3DPartNode"]},"api_hunyuan3d_retopo_uv":{"models":[],"nodes":["Load3D","SaveGLB","TencentModelTo3DUVNode","TencentSmartTopologyNode"]},"api_hunyuan3d_smart_topology":{"models":[],"nodes":["Load3D","SaveGLB","TencentSmartTopologyNode"]},"api_hunyuan3d_text_to_model":{"models":[],"nodes":["SaveGLB","SaveImage","TencentTextToModelNode"]},"api_ideogram_p_image_t2i":{"models":[],"nodes":["BuildJsonPromptIdeogram","CreateBoundingBoxes","IdeogramPImage","PreviewAny","SaveImageAdvanced"]},"api_ideogram_v4_5_image_edit":{"models":[],"nodes":["BuildJsonPromptIdeogram","CreateBoundingBoxes","IdeogramEditApi","ImageCompare","LoadImage","PreviewAny","SaveImageAdvanced"]},"api_ideogram_v4_5_precise_image_edit":{"models":[],"nodes":["BuildJsonPromptIdeogram","CreateBoundingBoxes","IdeogramPreciseEditApi","ImageCompare","LoadImage","PreviewAny","SaveImageAdvanced"]},"api_ideogram_v4_5_t2i":{"models":[],"nodes":["IdeogramTextToImageApi","SaveImageAdvanced"]},"api_ideogram_v4_t2i":{"models":[],"nodes":["GeminiNodeV3","IdeogramV4","PreviewAny","SaveImage"]},"api_ideogram_vector_1_image_to_svg":{"models":[],"nodes":["IdeogramVectorImageToSVGApi","LoadImage","SaveSVGNode"]},"api_ideogram_vector_1_text_to_svg":{"models":[],"nodes":["IdeogramVectorGenerateApi","LoadImage","SaveSVGNode"]},"api_kling2_6_i2v":{"models":[],"nodes":["KlingImageToVideoWithAudio","LoadImage","SaveVideo"]},"api_kling2_6_t2v":{"models":[],"nodes":["KlingTextToVideoWithAudio","SaveVideo"]},"api_kling4_i2v":{"models":[],"nodes":["Kling4ImageToVideoNode","LoadImage","SaveVideo"]},"api_kling4_image_edit":{"models":[],"nodes":["Kling4ImageNode","LoadImage","SaveImageAdvanced"]},"api_kling4_image_t2i":{"models":[],"nodes":["Kling4ImageNode","SaveImageAdvanced"]},"api_kling4_long_image":{"models":[],"nodes":["Kling4LongImageNode","SaveImageAdvanced"]},"api_kling4_r2v":{"models":[],"nodes":["Kling4ReferenceToVideoNode","LoadImage","SaveVideo"]},"api_kling4_t2v":{"models":[],"nodes":["Kling4TextToVideoNode","SaveVideo"]},"api_kling4_video_edit":{"models":[],"nodes":["Kling4EditVideoNode","LoadVideo","SaveVideo"]},"api_kling_motion_control":{"models":[],"nodes":["KlingMotionControl","LoadImage","LoadVideo","SaveVideo"]},"api_kling_motion_control3":{"models":[],"nodes":["KlingMotionControl","LoadImage","LoadVideo","SaveVideo"]},"api_kling_o3_flf2v":{"models":[],"nodes":["BatchImagesNode","KlingOmniProFirstLastFrameNode","LoadImage","SaveVideo"]},"api_kling_o3_i2v":{"models":[],"nodes":["BatchImagesNode","KlingOmniProImageToVideoNode","LoadImage","SaveVideo"]},"api_kling_o3_image":{"models":[],"nodes":["BatchImagesNode","KlingOmniProImageNode","LoadImage","SaveImage"]},"api_kling_o3_t2v":{"models":[],"nodes":["KlingOmniProTextToVideoNode","SaveVideo"]},"api_kling_o3_video_edit":{"models":[],"nodes":["BatchImagesNode","KlingOmniProEditVideoNode","LoadImage","LoadVideo","SaveVideo"]},"api_kling_omni_edit_video":{"models":[],"nodes":["BatchImagesNode","KlingOmniProEditVideoNode","LoadImage","LoadVideo","SaveVideo","Video Slice"]},"api_kling_omni_i2v":{"models":[],"nodes":["BatchImagesNode","KlingOmniProImageToVideoNode","LoadImage","SaveVideo"]},"api_kling_omni_image":{"models":[],"nodes":["KlingOmniProImageNode","SaveImage"]},"api_kling_omni_t2v":{"models":[],"nodes":["KlingOmniProTextToVideoNode","SaveVideo"]},"api_kling_omni_v2v":{"models":[],"nodes":["BatchImagesNode","KlingOmniProVideoToVideoNode","LoadImage","LoadVideo","SaveVideo"]},"api_kling_v3_flf2v":{"models":[],"nodes":["KlingFirstLastFrameNode","LoadImage","SaveVideo"]},"api_kling_v3_t2i":{"models":[],"nodes":["KlingImageGenerationNode","SaveImage"]},"api_kling_v3_video":{"models":[],"nodes":["KlingVideoNode","LoadImage","SaveVideo"]},"api_kling_vto":{"models":[],"nodes":["ImageCompare","KlingTryOnNode","LoadImage","SaveImageAdvanced"]},"api_krea2_style_reference":{"models":[],"nodes":["Krea2ImageNode","Krea2StyleReferenceNode","LoadImage","SaveImage"]},"api_krea2_t2i":{"models":[],"nodes":["Krea2ImageNode","SaveImage"]},"api_krea3_image_edit":{"models":[],"nodes":["Krea3ImageNode","LoadImage","SaveImageAdvanced"]},"api_krea3_t2i":{"models":[],"nodes":["Krea3ImageNode","SaveImageAdvanced"]},"api_ltx2_5_flf2v":{"models":[],"nodes":["LoadImage","LtxApi25ImageToVideo","SaveVideo"]},"api_ltx2_5_i2v":{"models":[],"nodes":["LoadImage","LtxApi25ImageToVideo","SaveVideo"]},"api_ltx2_5_t2v":{"models":[],"nodes":["LtxApi25TextToVideo","SaveVideo"]},"api_ltx_video_reframe":{"models":[],"nodes":["LoadVideo","LtxApiVideoReframe","SaveVideo"]},"api_ltx_video_sdr2hdr":{"models":[],"nodes":["ComfySwitchNode","CreateVideo","GetVideoComponents","LoadVideo","LtxApiVideoSdrToHdr","SaveVideo"]},"api_ltx_video_upscale":{"models":[],"nodes":["LoadVideo","LtxApiVideoUpscale","SaveVideo"]},"api_luma_photon_i2i":{"models":[],"nodes":["LoadImage","LumaImageModifyNode","SaveImage"]},"api_luma_photon_style_ref":{"models":[],"nodes":["BatchImagesNode","LoadImage","LumaImageNode","LumaReferenceNode","SaveImage"]},"api_luma_ray3_2_video_edit":{"models":[],"nodes":["LoadVideo","LumaRay32ExtendVideoNode","LumaRay32VideoEditNode","PreviewAny","SaveVideo"]},"api_luma_ray3_3_i2v":{"models":[],"nodes":["LoadImage","LumaRay32ExtendVideoNode","LumaRay32ImageToVideoNode","PreviewAny","SaveVideo"]},"api_luma_ray3_3_t2v":{"models":[],"nodes":["LumaRay32ExtendVideoNode","LumaRay32TextToVideoNode","PreviewAny","SaveVideo"]},"api_luma_uni_1_image_create":{"models":[],"nodes":["LoadImage","LumaImageNode2","SaveImage"]},"api_luma_uni_1_image_edit":{"models":[],"nodes":["LoadImage","LumaImageEditNode2","SaveImage"]},"api_magnific_image_relight":{"models":[],"nodes":["LoadImage","MagnificImageRelightNode","SaveImage"]},"api_magnific_image_style_transfer":{"models":[],"nodes":["LoadImage","MagnificImageStyleTransferNode","SaveImage"]},"api_magnific_image_upscale_creative":{"models":[],"nodes":["ImageCompare","LoadImage","MagnificImageUpscalerCreativeNode","SaveImage"]},"api_magnific_image_upscale_precise":{"models":[],"nodes":["ImageCompare","LoadImage","MagnificImageUpscalerPreciseV2Node","SaveImage"]},"api_magnific_skin_enhancer":{"models":[],"nodes":["ImageCompare","LoadImage","MagnificImageSkinEnhancerNode","SaveImage"]},"api_meshy7_1_image_to_model":{"models":[],"nodes":["LoadImage","MeshyAnimateModelNode","MeshyImageToModelNode","MeshyRefineNode","MeshyRigModelNode","MeshyTextureNode","Save3DAdvanced"]},"api_meshy7_1_text_to_model":{"models":[],"nodes":["MeshyAnimateModelNode","MeshyRefineNode","MeshyRigModelNode","MeshyTextToModelNode","MeshyTextureNode","SaveGLB"]},"api_meshy7_image_to_model":{"models":[],"nodes":["LoadImage","MeshyAnimateModelNode","MeshyImageToModelNode","MeshyRefineNode","MeshyRigModelNode","MeshyTextureNode","SaveGLB"]},"api_meshy7_text_to_model":{"models":[],"nodes":["MeshyAnimateModelNode","MeshyRefineNode","MeshyRigModelNode","MeshyTextToModelNode","MeshyTextureNode","SaveGLB"]},"api_meshy_image_to_model":{"models":[],"nodes":["LoadImage","MeshyAnimateModelNode","MeshyImageToModelNode","MeshyRefineNode","MeshyRigModelNode","MeshyTextureNode","SaveGLB"]},"api_meshy_multi_image_to_model":{"models":[],"nodes":["LoadImage","MeshyAnimateModelNode","MeshyMultiImageToModelNode","MeshyRefineNode","MeshyRigModelNode","MeshyTextureNode","Preview3D","SaveGLB"]},"api_meshy_t2_5_smart_topology_i2m":{"models":[],"nodes":["LoadImage","MeshyImageToModelSmartTopologyNode","SaveGLB"]},"api_meshy_t2_5_smart_topology_t2m":{"models":[],"nodes":["MeshyTextToModelSmartTopologyNode","SaveGLB"]},"api_meshy_text_to_model":{"models":[],"nodes":["MeshyAnimateModelNode","MeshyRefineNode","MeshyRigModelNode","MeshyTextToModelNode","MeshyTextureNode","SaveGLB"]},"api_meta_muse_image_image_edit":{"models":[],"nodes":["LoadImage","MetaMuseImageEditApi","SaveImageAdvanced"]},"api_meta_muse_image_t2i":{"models":[],"nodes":["MetaMuseImageTextToImageApi","SaveImageAdvanced"]},"api_minimax_h3_flf2v":{"models":[],"nodes":["LoadImage","MinimaxHailuo03FirstLastFrameNode","SaveVideo"]},"api_minimax_h3_image_image_edit":{"models":[],"nodes":["LoadImage","MinimaxH3ImageNode","SaveImage"]},"api_minimax_h3_image_t2i":{"models":[],"nodes":["MinimaxH3ImageNode","SaveImage"]},"api_minimax_h3_max_camera_control":{"models":[],"nodes":["CreateVideo","GetVideoComponents","LoadAudio","LoadImage","MinimaxHailuo03MaxCameraControlNode","SaveVideo"]},"api_minimax_h3_max_flf2v":{"models":[],"nodes":["ComfySwitchNode","LoadImage","MinimaxHailuo03ContextIRNode","MinimaxHailuo03FirstLastFrameNode","MinimaxHailuo03RegenerateNode","PrimitiveBoolean","PrimitiveStringMultiline","SaveText","SaveVideo"]},"api_minimax_h3_max_i2v":{"models":[],"nodes":["ComfySwitchNode","LoadImage","MinimaxHailuo03ContextIRNode","MinimaxHailuo03FirstLastFrameNode","MinimaxHailuo03RegenerateNode","PrimitiveBoolean","PrimitiveStringMultiline","SaveText","SaveVideo"]},"api_minimax_h3_max_lipsync":{"models":[],"nodes":["LoadAudio","LoadImage","MinimaxHailuo03MaxLipSyncNode","SaveVideo"]},"api_minimax_h3_max_r2v":{"models":[],"nodes":["ComfySwitchNode","LoadImage","MinimaxHailuo03ContextIRNode","MinimaxHailuo03ReferenceNode","MinimaxHailuo03RegenerateNode","PrimitiveBoolean","PrimitiveStringMultiline","SaveText","SaveVideo"]},"api_minimax_h3_max_recast":{"models":[],"nodes":["LoadImage","LoadVideo","MinimaxHailuo03MaxRecastNode","SaveVideo"]},"api_minimax_h3_max_reframe":{"models":[],"nodes":["LoadVideo","MinimaxHailuo03MaxReframeVideoNode","SaveVideo"]},"api_minimax_h3_max_t2v":{"models":[],"nodes":["ComfySwitchNode","MinimaxHailuo03ContextIRNode","MinimaxHailuo03RegenerateNode","MinimaxHailuo03TextToVideoNode","PrimitiveBoolean","PrimitiveStringMultiline","SaveText","SaveVideo"]},"api_minimax_h3_max_turbo_i2v":{"models":[],"nodes":["ComfySwitchNode","LoadImage","MinimaxHailuo03ContextIRNode","MinimaxHailuo03FirstLastFrameNode","MinimaxHailuo03RegenerateNode","PrimitiveBoolean","PrimitiveStringMultiline","SaveText","SaveVideo"]},"api_minimax_h3_max_turbo_t2v":{"models":[],"nodes":["ComfySwitchNode","MinimaxHailuo03ContextIRNode","MinimaxHailuo03RegenerateNode","MinimaxHailuo03TextToVideoNode","PrimitiveBoolean","PrimitiveStringMultiline","SaveText","SaveVideo"]},"api_minimax_h3_r2v":{"models":[],"nodes":["LoadImage","MinimaxHailuo03ReferenceNode","SaveVideo"]},"api_minimax_h3_t2v":{"models":[],"nodes":["MinimaxHailuo03TextToVideoNode","SaveVideo"]},"api_mirelo_text_to_sfx":{"models":[],"nodes":["MireloTextToSFX","SaveAudioAdvanced"]},"api_mirelo_video_to_sfx":{"models":[],"nodes":["AudioAdjustVolume","AudioMerge","ComfySwitchNode","CreateVideo","GetVideoComponents","LoadVideo","MireloVideoToSFX","SaveAudioAdvanced","SaveVideo"]},"api_nano_banana_2_1_image_edit":{"models":[],"nodes":["GeminiNanoBanana2V2","ImageCompare","LoadImage","SaveImageAdvanced"]},"api_nano_banana_2_1_t2i":{"models":[],"nodes":["GeminiNanoBanana2V2","SaveImageAdvanced"]},"api_nano_banana_2_lite_image_edit":{"models":[],"nodes":["GeminiNanoBanana2V2","ImageCompare","LoadImage","SaveImageAdvanced"]},"api_nano_banana_2_lite_t2i":{"models":[],"nodes":["GeminiNanoBanana2V2","SaveImageAdvanced"]},"api_nano_banana_pro":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","LoadImage","SaveImage"]},"api_openai_chat":{"models":[],"nodes":["LoadImage","OpenAIChatConfig","OpenAIChatNode","SaveText"]},"api_openai_fashion_billboard_generator":{"models":[],"nodes":["LoadImage","OpenAIGPTImageNodeV2","SaveImage"]},"api_openai_gpt6_astra":{"models":[],"nodes":["LoadImage","OpenAIChatNode","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_openai_gpt_image_25_flare_image_edit":{"models":[],"nodes":["LoadImage","OpenAIGPTImageNodeV2","SaveImageAdvanced"]},"api_openai_gpt_image_25_flare_t2i":{"models":[],"nodes":["OpenAIGPTImageNodeV2","SaveImage"]},"api_openai_gpt_image_25_sunburst_image_edit":{"models":[],"nodes":["LoadImage","OpenAIGPTImageNodeV2","SaveImageAdvanced"]},"api_openai_gpt_image_25_sunburst_t2i":{"models":[],"nodes":["OpenAIGPTImageNodeV2","SaveImage"]},"api_openai_gpt_image_26_flare_image_edit":{"models":[],"nodes":["ImageCompare","LoadImage","OpenAIGPTImageNodeV2","SaveImageAdvanced"]},"api_openai_gpt_image_26_flare_t2i":{"models":[],"nodes":["OpenAIGPTImageNodeV2","SaveImage"]},"api_openai_gpt_image_26_sunburst_image_edit":{"models":[],"nodes":["LoadImage","OpenAIGPTImageNodeV2","SaveImageAdvanced"]},"api_openai_gpt_image_26_sunburst_t2i":{"models":[],"nodes":["OpenAIGPTImageNodeV2","SaveImage"]},"api_openai_gpt_image_2_image_edit":{"models":[],"nodes":["LoadImage","OpenAIGPTImageNodeV2","SaveImage"]},"api_openai_gpt_image_2_t2i":{"models":[],"nodes":["OpenAIGPTImageNodeV2","SaveImage"]},"api_openrouter_gpt5_6_luna":{"models":[],"nodes":["LoadImage","OpenRouterLLMNode","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_openrouter_gpt5_6_sol":{"models":[],"nodes":["LoadImage","OpenRouterLLMNode","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_openrouter_gpt5_6_terra":{"models":[],"nodes":["LoadImage","OpenRouterLLMNode","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_openrouter_grok4_5":{"models":[],"nodes":["LoadImage","OpenRouterLLMNode","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_openrouter_kimi_k3":{"models":[],"nodes":["LoadImage","OpenRouterLLMNode","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate"]},"api_openrouter_llm":{"models":[],"nodes":["LoadImage","OpenRouterLLMNode","PreviewAny"]},"api_openrouter_mai_image_26_flash":{"models":[],"nodes":["OpenRouterImageNode","SaveImageAdvanced"]},"api_openrouter_mai_image_26_flash_image_edit":{"models":[],"nodes":["LoadImage","OpenRouterImageNode","SaveImageAdvanced"]},"api_openrouter_mai_image_26_image_edit":{"models":[],"nodes":["LoadImage","OpenRouterImageNode","SaveImageAdvanced"]},"api_openrouter_mai_image_26_t2i":{"models":[],"nodes":["OpenRouterImageNode","SaveImageAdvanced"]},"api_patina_material_extract":{"models":[],"nodes":["LoadImage","PatinaMaterialExtractNode","SaveImage","SaveText"]},"api_patina_material_i2m":{"models":[],"nodes":["LoadImage","PatinaMaterialNode","SaveImage","SaveText"]},"api_patina_material_t2m":{"models":[],"nodes":["PatinaMaterialNode","SaveImage","SaveText"]},"api_patina_pbr_maps":{"models":[],"nodes":["LoadImage","PatinaPBRMapsNode","SaveImage"]},"api_pika_h3_flex_t2v":{"models":[],"nodes":["PikaH3FlexVideoNode","SaveVideo"]},"api_pika_music":{"models":[],"nodes":["PikaMusicNode","SaveAudioAdvanced"]},"api_pika_sfx":{"models":[],"nodes":["PikaSFXNode","SaveAudioAdvanced"]},"api_pixverse6_i2v":{"models":[],"nodes":["LoadImage","PixverseV6ImageToVideoNode","SaveVideo"]},"api_pixverse6_r2v":{"models":[],"nodes":["LoadImage","PixverseV6FusionVideoNode","SaveVideo"]},"api_pixverse6_t2v":{"models":[],"nodes":["PixverseV6TextToVideoNode","SaveVideo"]},"api_pixverse_i2v":{"models":[],"nodes":["LoadImage","PixverseImageToVideoNode","PixverseTemplateNode","SaveVideo"]},"api_pixverse_t2v":{"models":[],"nodes":["PixverseTemplateNode","PixverseTextToVideoNode","SaveVideo"]},"api_pixverse_template_i2v":{"models":[],"nodes":["LoadImage","PixverseImageToVideoNode","PixverseTemplateNode","SaveVideo"]},"api_pixverse_v6_max_i2v":{"models":[],"nodes":["LoadImage","PixverseV6ImageToVideoNode","SaveVideo"]},"api_pixverse_v6_max_t2v":{"models":[],"nodes":["PixverseV6TextToVideoNode","SaveVideo"]},"api_pruna_p_video_i2v":{"models":[],"nodes":["LoadImage","PrunaImageToVideoNode","SaveVideo"]},"api_pruna_p_video_t2v":{"models":[],"nodes":["PrunaTextToVideoNode","SaveVideo"]},"api_pruna_p_video_upscale":{"models":[],"nodes":["LoadVideo","PrunaPVideoUpscaleNode","SaveVideo"]},"api_quiver_arrow2_image_to_svg":{"models":[],"nodes":["LoadImage","QuiverImageToSVGNodeV2","SaveSVGNode"]},"api_quiver_arrow2_text_to_svg":{"models":[],"nodes":["QuiverTextToSVGNodeV2","SaveSVGNode"]},"api_quiver_image_to_svg":{"models":[],"nodes":["LoadImage","QuiverImageToSVGNodeV2","SaveSVGNode"]},"api_quiver_text_to_svg":{"models":[],"nodes":["QuiverTextToSVGNodeV2","SaveSVGNode"]},"api_qwen3_image_edit":{"models":[],"nodes":["LoadImage","QwenImageEditApi","SaveImage"]},"api_qwen3_t2i":{"models":[],"nodes":["QwenImageTextToImageApi","ResolutionSelector","SaveImage"]},"api_recraft_image_gen_with_color_control":{"models":[],"nodes":["RecraftColorRGB","RecraftControls","RecraftStyleV3DigitalIllustration","RecraftStyleV3LogoRaster","RecraftStyleV3RealisticImage","RecraftTextToImageNode","RecraftVectorizeImageNode","SaveImage","SaveSVGNode"]},"api_recraft_image_gen_with_style_control":{"models":[],"nodes":["RecraftColorRGB","RecraftControls","RecraftStyleV3DigitalIllustration","RecraftStyleV3LogoRaster","RecraftStyleV3RealisticImage","RecraftTextToImageNode","RecraftVectorizeImageNode","SaveImage","SaveSVGNode"]},"api_recraft_style_reference":{"models":[],"nodes":["LoadImage","PreviewAny","RecraftCreateStyleNode","RecraftStyleV3InfiniteStyleLibrary","RecraftTextToImageNode","SaveImage"]},"api_recraft_v4_1_flash_t2i":{"models":[],"nodes":["RecraftV4TextToImageNode","SaveImage"]},"api_recraft_v4_1_t2i":{"models":[],"nodes":["RecraftColorRGB","RecraftControls","RecraftV4TextToImageNode","SaveImage"]},"api_recraft_v4_1_text_to_vector":{"models":[],"nodes":["RecraftColorRGB","RecraftControls","RecraftV4TextToVectorNode","SaveSVGNode"]},"api_recraft_v4_style_reference":{"models":[],"nodes":["LoadImage","RecraftV4CreateStyleNode","RecraftV4TextToImageNode","SaveImageAdvanced","SaveText"]},"api_recraft_v4_t2i":{"models":[],"nodes":["RecraftColorRGB","RecraftControls","RecraftV4TextToImageNode","SaveImage"]},"api_recraft_v4_text_to_vector":{"models":[],"nodes":["RecraftColorRGB","RecraftControls","RecraftV4TextToVectorNode","SaveSVGNode"]},"api_recraft_vector_gen":{"models":[],"nodes":["RecraftColorRGB","RecraftControls","RecraftTextToVectorNode","SaveSVGNode"]},"api_rodin3d_gen2_5_image_to_3d":{"models":[],"nodes":["LoadImage","Rodin3D_Gen25_Image","SaveGLB"]},"api_rodin3d_gen2_5_text_to_3d":{"models":[],"nodes":["Rodin3D_Gen25_Text","SaveGLB"]},"api_rodin_gen2":{"models":[],"nodes":["BatchImagesNode","LoadImage","Rodin3D_Gen2","SaveGLB"]},"api_rodin_image_to_model":{"models":[],"nodes":["BatchImagesNode","LoadImage","Preview3D","Rodin3D_Detail","Rodin3D_Regular","Rodin3D_Sketch","Rodin3D_Smooth"]},"api_rodin_multiview_to_model":{"models":[],"nodes":["BatchImagesNode","LoadImage","Preview3D","Rodin3D_Detail","Rodin3D_Regular","Rodin3D_Sketch","Rodin3D_Smooth"]},"api_runway_aleph2_video_edit":{"models":[],"nodes":["LoadImage","LoadVideo","RunwayAleph2KeyframeNode","RunwayAleph2PromptImageNode","RunwayAleph2VideoToVideoNode","SaveVideo"]},"api_runway_gen4_turbo_image_to_video":{"models":[],"nodes":["LoadImage","RunwayImageToVideoNodeGen4","SaveVideo"]},"api_runway_reference_to_image":{"models":[],"nodes":["LoadImage","RunwayTextToImageNode","SaveImage"]},"api_runway_text_to_image":{"models":[],"nodes":["LoadImage","RunwayTextToImageNode","SaveImage"]},"api_seedance2_0_flf2v":{"models":[],"nodes":["ByteDance2FirstLastFrameNode","LoadImage","SaveVideo"]},"api_seedance2_0_flf2v_real_human":{"models":[],"nodes":["ByteDance2FirstLastFrameNode","ByteDanceCreateImageAsset","LoadImage","PreviewAny","SaveVideo"]},"api_seedance2_0_mini_r2v":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","LoadImage","SaveVideo"]},"api_seedance2_0_mini_t2v":{"models":[],"nodes":["ByteDance2TextToVideoNode","SaveVideo"]},"api_seedance2_0_r2v":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","LoadImage","SaveVideo"]},"api_seedance2_0_r2v_4k":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","LoadImage","SaveVideo"]},"api_seedance2_0_r2v_real_human":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","ByteDanceCreateImageAsset","ByteDanceCreateVideoAsset","LoadImage","SaveText","SaveVideo"]},"api_seedance2_0_t2v":{"models":[],"nodes":["ByteDance2TextToVideoNode","SaveVideo"]},"api_seedance2_5_draft_i2v":{"models":[],"nodes":["ByteDance2DraftToFinalVideoNode","ByteDance2FirstLastFrameNode","LoadImage","SaveText","SaveVideo"]},"api_seedance2_5_draft_r2v":{"models":[],"nodes":["ByteDance2DraftToFinalVideoNode","ByteDance2ReferenceNodeV2","LoadImage","SaveText","SaveVideo"]},"api_seedance2_5_draft_t2v":{"models":[],"nodes":["ByteDance2DraftToFinalVideoNode","ByteDance2TextToVideoNode","SaveText","SaveVideo"]},"api_seedance2_5_flf2v":{"models":[],"nodes":["ByteDance2FirstLastFrameNode","LoadImage","SaveVideo"]},"api_seedance2_5_i2v_1080p":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","LoadImage","SaveVideo"]},"api_seedance2_5_r2v":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","LoadImage","SaveVideo"]},"api_seedance2_5_t2v":{"models":[],"nodes":["ByteDance2TextToVideoNode","SaveVideo"]},"api_seedance2_5_t2v_1080p":{"models":[],"nodes":["ByteDance2TextToVideoNode","SaveVideo"]},"api_seedance2_5_video_editing":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","LoadVideo","SaveVideo","Video Slice"]},"api_seedance2_5_video_extend":{"models":[],"nodes":["AudioConcat","BatchImagesNode","ByteDance2ReferenceNodeV2","ComfySwitchNode","CreateVideo","EmptyAudio","GetImageSize","GetVideoComponents","LoadVideo","PrimitiveBoolean","ResizeAndPadImage","SaveVideo","Video Slice"]},"api_sonilo_music1_5":{"models":[],"nodes":["SaveAudioAdvanced","SoniloMusic15"]},"api_sonilo_t2m":{"models":[],"nodes":["SaveAudioAdvanced","SoniloTextToMusic"]},"api_sonilo_v2m":{"models":[],"nodes":["AudioAdjustVolume","AudioMerge","CreateVideo","GetVideoComponents","LoadVideo","SaveAudioAdvanced","SaveVideo","SoniloVideoToMusic"]},"api_sync_so_lip_sync_video":{"models":[],"nodes":["LoadAudio","LoadVideo","RecordAudio","SaveVideo","SyncLipSyncNode"]},"api_sync_so_talking_image":{"models":[],"nodes":["LoadAudio","LoadImage","RecordAudio","SaveVideo","SyncTalkingImageNode"]},"api_tencent_hy4":{"models":[],"nodes":["LoadImage","PreviewAny","PrimitiveStringMultiline","SaveText","StringConcatenate","TencentHyNode"]},"api_tencent_hy_image_3_5_preview_image_edit":{"models":[],"nodes":["HunyuanImageEditApi","LoadImage","SaveImageAdvanced"]},"api_tencent_hy_image_3_5_preview_t2i":{"models":[],"nodes":["HunyuanImageTextToImageApi","SaveImageAdvanced"]},"api_topaz_astra2":{"models":[],"nodes":["LoadVideo","SaveVideo","TopazVideoEnhanceV2"]},"api_topaz_image_enhance":{"models":[],"nodes":["GetImageSize","ImageCompare","LoadImage","ResizeImageMaskNode","SaveImage","TopazImageEnhanceV2"]},"api_topaz_image_enhance_bloom2":{"models":[],"nodes":["ImageCompare","LoadImage","SaveImageAdvanced","TopazImageEnhanceV2"]},"api_topaz_image_enhance_wonder3_5":{"models":[],"nodes":["ImageCompare","LoadImage","SaveImageAdvanced","TopazImageEnhanceV2"]},"api_topaz_image_enhance_wonder4":{"models":[],"nodes":["GetImageSize","ImageCompare","ImageScaleBy","LoadImage","SaveImageAdvanced","TopazImageEnhanceV2"]},"api_topaz_starlight_precise25":{"models":[],"nodes":["LoadVideo","SaveVideo","TopazVideoEnhanceV2"]},"api_topaz_video_enhance":{"models":[],"nodes":["LoadVideo","SaveVideo","TopazVideoEnhanceV2"]},"api_tripo3_0_image_to_model":{"models":[],"nodes":["BatchImagesNode","LoadImage","Preview3D","SaveGLB","TripoConversionNode","TripoImageToModelNode","TripoRetargetNode","TripoRigNode","TripoTextureNode"]},"api_tripo3_0_text_to_model":{"models":[],"nodes":["SaveGLB","TripoConversionNode","TripoRetargetNode","TripoRigNode","TripoTextToModelNode","TripoTextureNode"]},"api_tripo3_1_image_to_model":{"models":[],"nodes":["LoadImage","Save3DAdvanced","TripoConversionNode","TripoImageToModelNodeV2","TripoRetargetNode","TripoRigNode","TripoTextureNodeV2"]},"api_tripo3_1_multiview_to_model":{"models":[],"nodes":["LoadImage","SaveGLB","TripoConversionNode","TripoMultiviewToModelNode","TripoRetargetNode","TripoRigNode","TripoTextureNodeV2"]},"api_tripo3_1_text_to_model":{"models":[],"nodes":["SaveGLB","TripoConversionNode","TripoRetargetNode","TripoRigNode","TripoTextToModelNodeV2","TripoTextureNodeV2"]},"api_tripo_image_to_model":{"models":[],"nodes":["LoadImage","SaveGLB","TripoImageToModelNode","TripoRetargetNode","TripoRigNode","TripoTextureNode"]},"api_tripo_multiview_to_model":{"models":[],"nodes":["LoadImage","SaveGLB","TripoConversionNode","TripoMultiviewToModelNode","TripoRetargetNode","TripoRigNode","TripoTextureNode"]},"api_tripo_p1_image_to_model":{"models":[],"nodes":["LoadImage","SaveGLB","TripoConversionNode","TripoP1ImageToModelNode","TripoRetargetNode","TripoRigNode","TripoTextureNodeV2"]},"api_tripo_p1_mv_to_model":{"models":[],"nodes":["LoadImage","SaveGLB","TripoConversionNode","TripoP1MultiviewToModelNode","TripoRetargetNode","TripoRigNode","TripoTextureNodeV2"]},"api_tripo_p1_text_to_model":{"models":[],"nodes":["SaveGLB","TripoConversionNode","TripoP1TextToModelNode","TripoRetargetNode","TripoRigNode","TripoTextureNodeV2"]},"api_tripo_p2_image_to_model":{"models":[],"nodes":["LoadImage","Save3DAdvanced","TripoConversionNode","TripoPSeriesImageToModelNode","TripoRetargetNode","TripoRigNode","TripoTextureNodeV2"]},"api_tripo_p2_multiview_to_model":{"models":[],"nodes":["LoadImage","Save3DAdvanced","TripoConversionNode","TripoPSeriesMultiviewToModelNode","TripoRetargetNode","TripoRigNode","TripoTextureNodeV2"]},"api_tripo_p2_text_to_model":{"models":[],"nodes":["Save3DAdvanced","TripoConversionNode","TripoPSeriesTextToModelNode","TripoRetargetNode","TripoRigNode","TripoTextureNodeV2"]},"api_tripo_text_to_model":{"models":[],"nodes":["SaveGLB","TripoConversionNode","TripoRetargetNode","TripoRigNode","TripoTextToModelNode","TripoTextureNode"]},"api_veed_clean_audio":{"models":[],"nodes":["LoadAudio","SaveAudioAdvanced","VeedCleanAudioNode"]},"api_veed_clean_audio_video":{"models":[],"nodes":["LoadVideo","SaveVideo","VeedCleanVideoAudioNode"]},"api_veed_dubbing":{"models":[],"nodes":["LoadVideo","SaveVideo","VeedDubbingNode"]},"api_veed_fabric_1_0":{"models":[],"nodes":["LoadAudio","LoadImage","SaveVideo","VeedFabricNode"]},"api_veed_lipsync_2_0":{"models":[],"nodes":["LoadAudio","LoadVideo","SaveVideo","VeedLipsyncNode"]},"api_veed_remove_video_background":{"models":[],"nodes":["JoinImageWithAlpha","LoadVideo","SaveImageAdvanced","VeedRemoveVideoBackgroundNode"]},"api_vidu_image_to_video":{"models":[],"nodes":["LoadImage","SaveVideo","ViduImageToVideoNode"]},"api_vidu_q2_flf2v":{"models":[],"nodes":["LoadImage","SaveVideo","Vidu2StartEndToVideoNode"]},"api_vidu_q2_i2v":{"models":[],"nodes":["LoadImage","SaveVideo","Vidu2ImageToVideoNode"]},"api_vidu_q2_r2v":{"models":[],"nodes":["LoadImage","SaveVideo","Vidu2ReferenceVideoNode"]},"api_vidu_q2_t2v":{"models":[],"nodes":["SaveVideo","Vidu2TextToVideoNode"]},"api_vidu_q3_image_to_video":{"models":[],"nodes":["LoadImage","SaveVideo","Vidu3ImageToVideoNode"]},"api_vidu_q3_text_to_video":{"models":[],"nodes":["SaveVideo","Vidu3TextToVideoNode"]},"api_vidu_q4_preview_i2v":{"models":[],"nodes":["LoadImage","SaveVideo","Vidu4ImageToVideoNode"]},"api_vidu_q4_preview_r2v":{"models":[],"nodes":["LoadImage","SaveVideo","Vidu4ReferenceVideoNode"]},"api_vidu_reference_to_video":{"models":[],"nodes":["BatchImagesNode","LoadImage","SaveVideo","ViduReferenceVideoNode"]},"api_vidu_start_end_to_video":{"models":[],"nodes":["LoadImage","SaveVideo","ViduStartEndToVideoNode"]},"api_vidu_text_to_video":{"models":[],"nodes":["SaveVideo","ViduTextToVideoNode"]},"api_vidu_video_extension":{"models":[],"nodes":["GetImageSize","GetVideoComponents","ImageFromBatch","LoadVideo","SaveVideo","ViduExtendVideoNode"]},"api_wan2_6_i2v":{"models":[],"nodes":["LoadImage","SaveVideo","WanImageToVideoApi"]},"api_wan2_6_t2v":{"models":[],"nodes":["SaveVideo","WanTextToVideoApi"]},"api_wan2_7_i2v":{"models":[],"nodes":["LoadImage","SaveVideo","Wan2ImageToVideoApi"]},"api_wan2_7_r2v":{"models":[],"nodes":["LoadImage","SaveVideo","Wan2ReferenceVideoApi"]},"api_wan2_7_t2v":{"models":[],"nodes":["SaveVideo","Wan2TextToVideoApi"]},"api_wan2_7_video_edit":{"models":[],"nodes":["LoadImage","LoadVideo","SaveVideo","Wan2VideoEditApi"]},"api_wan3_0_i2v":{"models":[],"nodes":["LoadImage","SaveVideo","Wan3ImageToVideoApi"]},"api_wan3_0_r2v":{"models":[],"nodes":["LoadImage","SaveVideo","Wan3ReferenceToVideoApi"]},"api_wan3_0_t2v":{"models":[],"nodes":["SaveVideo","Wan3ReferenceToVideoApi"]},"api_wan_image_to_video":{"models":[],"nodes":["LoadAudio","LoadImage","RecordAudio","SaveVideo","WanImageToVideoApi"]},"api_wan_r2v":{"models":[],"nodes":["LoadVideo","SaveVideo","WanReferenceVideoApi"]},"api_wan_text_to_image":{"models":[],"nodes":["SaveImage","WanTextToImageApi"]},"api_wan_text_to_video":{"models":[],"nodes":["LoadAudio","RecordAudio","SaveVideo","WanTextToVideoApi"]},"api_wavespeed_flshvsr_video_upscale":{"models":[],"nodes":["LoadVideo","SaveVideo","WavespeedFlashVSRNode"]},"api_wavespeed_image_upscale":{"models":[],"nodes":["ImageCompare","LoadImage","SaveImage","WavespeedImageUpscaleNode"]},"api_wavespeed_seedvr2_ai_image_fix":{"models":[],"nodes":["ImageCompare","LoadImage","SaveImage","WavespeedImageUpscaleNode"]},"audio-chatterbox_tts":{"models":[],"nodes":["FL_ChatterboxTTS","LoadAudio","SaveAudioAdvanced"]},"audio-chatterbox_tts_dialog":{"models":[],"nodes":["AudioCrop","FL_ChatterboxDialogTTS","LoadAudio","SaveAudioMP3"]},"audio-chatterbox_tts_multilingual":{"models":[],"nodes":["FL_ChatterboxMultilingualTTS","LoadAudio","SaveAudioMP3"]},"audio-chatterbox_vc":{"models":[],"nodes":["AudioCrop","FL_ChatterboxVC","LoadAudio","SaveAudioMP3"]},"audio_ace_step1_5_xl_base":{"models":["ace_1.5_vae.safetensors","acestep_v1.5_xl_base_bf16.safetensors","qwen_0.6b_ace15.safetensors","qwen_4b_ace15.safetensors"],"nodes":["ConditioningZeroOut","DualCLIPLoader","EmptyAceStep1.5LatentAudio","KSampler","ModelSamplingAuraFlow","PrimitiveInt","SaveAudioAdvanced","TextEncodeAceStepAudio1.5","UNETLoader","VAEDecodeAudio","VAELoader"]},"audio_ace_step1_5_xl_sft":{"models":["ace_1.5_vae.safetensors","acestep_v1.5_xl_sft_bf16.safetensors","qwen_0.6b_ace15.safetensors","qwen_4b_ace15.safetensors"],"nodes":["ConditioningZeroOut","DualCLIPLoader","EmptyAceStep1.5LatentAudio","KSampler","ModelSamplingAuraFlow","PrimitiveInt","SaveAudioAdvanced","TextEncodeAceStepAudio1.5","UNETLoader","VAEDecodeAudio","VAELoader"]},"audio_ace_step1_5_xl_turbo":{"models":["ace_1.5_vae.safetensors","acestep_v1.5_xl_turbo_bf16.safetensors","qwen_0.6b_ace15.safetensors","qwen_4b_ace15.safetensors"],"nodes":["ConditioningZeroOut","DualCLIPLoader","EmptyAceStep1.5LatentAudio","KSampler","ModelSamplingAuraFlow","PrimitiveInt","SaveAudioAdvanced","TextEncodeAceStepAudio1.5","UNETLoader","VAEDecodeAudio","VAELoader"]},"audio_ace_step_1_5_checkpoint":{"models":["ace_step_1.5_turbo_aio.safetensors"],"nodes":["CheckpointLoaderSimple","ConditioningZeroOut","EmptyAceStep1.5LatentAudio","KSampler","ModelSamplingAuraFlow","SaveAudioAdvanced","TextEncodeAceStepAudio1.5","VAEDecodeAudio"]},"audio_ace_step_1_5_split":{"models":["ace_1.5_vae.safetensors","acestep_v1.5_turbo.safetensors","qwen_0.6b_ace15.safetensors","qwen_1.7b_ace15.safetensors"],"nodes":["ConditioningZeroOut","DualCLIPLoader","EmptyAceStep1.5LatentAudio","KSampler","ModelSamplingAuraFlow","SaveAudioAdvanced","TextEncodeAceStepAudio1.5","UNETLoader","VAEDecodeAudio","VAELoader"]},"audio_ace_step_1_5_split_4b":{"models":["ace_1.5_vae.safetensors","acestep_v1.5_turbo.safetensors","qwen_0.6b_ace15.safetensors","qwen_4b_ace15.safetensors"],"nodes":["ConditioningZeroOut","DualCLIPLoader","EmptyAceStep1.5LatentAudio","KSampler","ModelSamplingAuraFlow","SaveAudioMP3","TextEncodeAceStepAudio1.5","UNETLoader","VAEDecodeAudio","VAELoader"]},"audio_ace_step_1_5_split_llm":{"models":["ace_1.5_vae.safetensors","acestep_v1.5_turbo.safetensors","qwen_0.6b_ace15.safetensors","qwen_4b_ace15.safetensors"],"nodes":["ConditioningZeroOut","DualCLIPLoader","EmptyAceStep1.5LatentAudio","GeminiNodeV2","KSampler","ModelSamplingAuraFlow","PreviewAny","PrimitiveFloat","RegexExtract","SaveAudioAdvanced","SeedNode","TextEncodeAceStepAudio1.5","UNETLoader","VAEDecodeAudio","VAELoader"]},"audio_ace_step_1_m2m_editing":{"models":["ace_step_v1_3.5b.safetensors"],"nodes":["CheckpointLoaderSimple","ConditioningZeroOut","KSampler","LatentApplyOperationCFG","LatentOperationTonemapReinhard","LoadAudio","ModelSamplingSD3","SaveAudioAdvanced","TextEncodeAceStepAudio","VAEDecodeAudio","VAEEncodeAudio"]},"audio_ace_step_1_t2a_instrumentals":{"models":["ace_step_v1_3.5b.safetensors"],"nodes":["CheckpointLoaderSimple","ConditioningZeroOut","EmptyAceStepLatentAudio","KSampler","LatentApplyOperationCFG","LatentOperationTonemapReinhard","ModelSamplingSD3","SaveAudioMP3","TextEncodeAceStepAudio","VAEDecodeAudio"]},"audio_ace_step_1_t2a_song":{"models":["ace_step_v1_3.5b.safetensors"],"nodes":["CheckpointLoaderSimple","ConditioningZeroOut","EmptyAceStepLatentAudio","KSampler","LatentApplyOperationCFG","LatentOperationTonemapReinhard","ModelSamplingSD3","SaveAudioAdvanced","TextEncodeAceStepAudio","VAEDecodeAudio"]},"audio_melbandroformer_audio_separation":{"models":["MelBandRoformer_fp16.safetensors"],"nodes":["LoadAudio","MelBandRoFormerModelLoader","MelBandRoFormerSampler","SaveAudioMP3"]},"audio_minimax_music_3":{"models":["minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors"],"nodes":["CLIPLoader","ComfySwitchNode","ConditioningZeroOut","EmptyMiniMaxMusic3LatentAudio","KSampler","MiniMaxMusic3TextEncode","SaveAudioAdvanced","SeedNode","UNETLoader","VAEDecodeAudio","VAEDecodeAudioTiled","VAELoader"]},"audio_stable_audio_3_medium":{"models":["qwen3.5_2b_bf16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","CustomCombo","EmptyLatentAudio","JsonExtractString","KSampler","PreviewAny","PrimitiveBoolean","PrimitiveFloat","PrimitiveStringMultiline","SaveAudioAdvanced","StringReplace","TextGenerate","VAEDecodeAudio"]},"audio_stable_audio_3_medium_base":{"models":["qwen3.5_2b_bf16.safetensors","stable_audio_3_medium_base.safetensors","t5gemma_b_b_ul2.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","CustomCombo","EmptyLatentAudio","JsonExtractString","KSampler","PreviewAny","PrimitiveBoolean","PrimitiveFloat","PrimitiveStringMultiline","SaveAudioAdvanced","StringReplace","TextGenerate","VAEDecodeAudio"]},"audio_stable_audio_example":{"models":["stable-audio-open-1.0.safetensors","t5-base.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","EmptyLatentAudio","KSampler","SaveAudioAdvanced","VAEDecodeAudio"]},"audio_yue2_music_cover":{"models":["sheetsage2_bf16.safetensors","yue2_3b_int8_convrot.safetensors"],"nodes":["AudioEncoderLoader","CheckpointLoaderSimple","ConditioningZeroOut","EmptyYuE2LatentAudio","KSampler","LoadAudio","PreviewAny","SaveAudioAdvanced","SeedNode","SheetSage2AudioToABC","VAEDecodeAudio","YuE2GenerateMusic"]},"audio_yue2_text2music":{"models":["yue2_3b_int8_convrot.safetensors"],"nodes":["CheckpointLoaderSimple","ComfySwitchNode","ConditioningZeroOut","EmptyYuE2LatentAudio","KSampler","PreviewAny","PrimitiveBoolean","PrimitiveString","PrimitiveStringMultiline","SaveAudioAdvanced","SeedNode","VAEDecodeAudio","YuE2GenerateABC","YuE2GenerateMusic"]},"basic_datatype_conversion":{"models":[],"nodes":["ComfyMathExpression","ComfyNumberConvert","PreviewAny","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline"]},"basic_image_color_adjustment":{"models":[],"nodes":["ColorToRGBInt","CurveEditor","CustomCombo","GLSLShader","ImageHistogram","LoadImage","PreviewImage","PrimitiveBoolean","PrimitiveFloat"]},"basic_mask_operations_and_compositing":{"models":[],"nodes":["EmptyImage","FeatherMask","ImageCompositeMasked","ImageToMask","InvertMask","LoadImage","MaskComposite","MaskPreview","MaskToImage","PreviewImage","SolidMask","ThresholdMask"]},"basic_switch_node":{"models":["ae.safetensors","pixel_art_style_z_image_turbo.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","ConditioningZeroOut","EmptySD3LatentImage","KSampler","LoraLoaderModelOnly","ModelSamplingAuraFlow","PreviewAny","PrimitiveBoolean","PrimitiveString","PrimitiveStringMultiline","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"breeze_tts2_tts":{"models":[],"nodes":["BreezeTextToSpeech","BreezeVoiceClone","BreezeVoiceDesign","BreezeVoiceRemix","BreezeVoiceSelector","LoadAudio","PreviewAny","RecordAudio","SaveAudioAdvanced","SaveText","StringConcatenate"]},"flux1_dev_uso_reference_image_gen":{"models":["flux1-dev-fp8.safetensors","sigclip_vision_patch14_384.safetensors","uso-flux1-dit-lora-v1.safetensors","uso-flux1-projector-v1.safetensors"],"nodes":["CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CheckpointLoaderSimple","ConditioningZeroOut","EmptyLatentImage","EmptySD3LatentImage","FluxGuidance","FluxKontextMultiReferenceLatentMethod","ImageScaleToMaxDimension","KSampler","LoadImage","LoraLoaderModelOnly","ModelPatchLoader","ReferenceLatent","SaveImage","USOStyleReference","VAEDecode","VAEEncode"]},"flux1_krea_dev":{"models":["ae.safetensors","clip_l.safetensors","flux1-krea-dev_fp8_scaled.safetensors","t5xxl_fp16.safetensors"],"nodes":["CLIPTextEncode","ConditioningZeroOut","DualCLIPLoader","EmptySD3LatentImage","KSampler","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"flux_canny_model_example":{"models":["ae.safetensors","clip_l.safetensors","flux1-canny-dev.safetensors","t5xxl_fp16.safetensors"],"nodes":["CLIPTextEncode","Canny","ConditioningZeroOut","DualCLIPLoader","FluxGuidance","InstructPixToPixConditioning","KSampler","LoadImage","PreviewImage","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"flux_depth_lora_example":{"models":["ae.safetensors","clip_l.safetensors","flux1-depth-dev-lora.safetensors","flux1-dev-fp8.safetensors","lotus-depth-d-v1-1.safetensors","t5xxl_fp16.safetensors","vae-ft-mse-840000-ema-pruned.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPTextEncode","ConditioningZeroOut","DisableNoise","DualCLIPLoader","FluxGuidance","ImageInvert","ImageScaleToTotalPixels","InstructPixToPixConditioning","KSampler","KSamplerSelect","LoadImage","LoraLoaderModelOnly","LotusConditioning","PreviewImage","SamplerCustomAdvanced","SaveImage","SetFirstSigma","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"flux_dev_checkpoint_example":{"models":["ae.safetensors","clip_l.safetensors","flux1-dev.safetensors","t5xxl_fp16.safetensors"],"nodes":["CLIPTextEncode","ConditioningZeroOut","DualCLIPLoader","EmptySD3LatentImage","KSampler","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"flux_dev_full_text_to_image":{"models":["ae.safetensors","clip_l.safetensors","flux1-dev.safetensors","t5xxl_fp16.safetensors"],"nodes":["CLIPTextEncode","ConditioningZeroOut","DualCLIPLoader","EmptySD3LatentImage","KSampler","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"flux_fill_inpaint_example":{"models":["ae.safetensors","clip_l.safetensors","flux1-fill-dev.safetensors","t5xxl_fp16.safetensors"],"nodes":["CLIPTextEncode","ConditioningZeroOut","DifferentialDiffusion","DualCLIPLoader","FluxGuidance","InpaintModelConditioning","KSampler","LoadImage","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"flux_fill_outpaint_example":{"models":["ae.safetensors","clip_l.safetensors","flux1-fill-dev.safetensors","t5xxl_fp16.safetensors"],"nodes":["CLIPTextEncode","ConditioningZeroOut","DifferentialDiffusion","DualCLIPLoader","FluxGuidance","ImagePadForOutpaint","InpaintModelConditioning","KSampler","LoadImage","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"flux_kontext_dev_basic":{"models":["ae.safetensors","clip_l.safetensors","flux1-dev-kontext_fp8_scaled.safetensors","t5xxl_fp8_e4m3fn_scaled.safetensors"],"nodes":["CLIPTextEncode","ConditioningZeroOut","DualCLIPLoader","FluxGuidance","FluxKontextImageScale","ImageStitch","KSampler","LoadImage","ReferenceLatent","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"flux_redux_model_example":{"models":["ae.safetensors","clip_l.safetensors","flux1-dev.safetensors","flux1-redux-dev.safetensors","sigclip_vision_patch14_384.safetensors","t5xxl_fp16.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","DualCLIPLoader","EmptySD3LatentImage","FluxGuidance","KSamplerSelect","LoadImage","ModelSamplingFlux","RandomNoise","SamplerCustomAdvanced","SaveImage","StyleModelApply","StyleModelLoader","UNETLoader","VAEDecode","VAELoader"]},"flux_schnell":{"models":["flux1-schnell-fp8.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","EmptySD3LatentImage","KSampler","SaveImage","VAEDecode"]},"flux_schnell_full_text_to_image":{"models":["ae.safetensors","clip_l.safetensors","flux1-schnell.safetensors","t5xxl_fp16.safetensors"],"nodes":["CLIPTextEncodeFlux","ConditioningZeroOut","DualCLIPLoader","EmptySD3LatentImage","KSampler","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"hidream_e1_1":{"models":["ae.safetensors","clip_g_hidream.safetensors","clip_l_hidream.safetensors","hidream_e1_1_bf16.safetensors","llama_3.1_8b_instruct_fp8_scaled.safetensors","t5xxl_fp8_e4m3fn_scaled.safetensors"],"nodes":["BasicScheduler","CFGNorm","CLIPTextEncode","DualCFGGuider","ImageScaleToTotalPixels","InstructPixToPixConditioning","KSamplerSelect","LoadImage","QuadrupleCLIPLoader","RandomNoise","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"hidream_e1_full":{"models":["ae.safetensors","clip_g_hidream.safetensors","clip_l_hidream.safetensors","hidream_e1_full_bf16.safetensors","llama_3.1_8b_instruct_fp8_scaled.safetensors","t5xxl_fp8_e4m3fn_scaled.safetensors"],"nodes":["BasicScheduler","CLIPTextEncode","DualCFGGuider","ImageScale","InstructPixToPixConditioning","KSamplerSelect","LoadImage","QuadrupleCLIPLoader","RandomNoise","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"hidream_i1_dev":{"models":["ae.safetensors","clip_g_hidream.safetensors","clip_l_hidream.safetensors","hidream_i1_dev_fp8.safetensors","llama_3.1_8b_instruct_fp8_scaled.safetensors","t5xxl_fp8_e4m3fn_scaled.safetensors"],"nodes":["CLIPTextEncode","EmptySD3LatentImage","KSampler","ModelSamplingSD3","QuadrupleCLIPLoader","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"hidream_i1_fast":{"models":["ae.safetensors","clip_g_hidream.safetensors","clip_l_hidream.safetensors","hidream_i1_fast_fp8.safetensors","llama_3.1_8b_instruct_fp8_scaled.safetensors","t5xxl_fp8_e4m3fn_scaled.safetensors"],"nodes":["CLIPTextEncode","EmptySD3LatentImage","KSampler","ModelSamplingSD3","QuadrupleCLIPLoader","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"hidream_i1_full":{"models":["ae.safetensors","clip_g_hidream.safetensors","clip_l_hidream.safetensors","hidream_i1_full_fp8.safetensors","llama_3.1_8b_instruct_fp8_scaled.safetensors","t5xxl_fp8_e4m3fn_scaled.safetensors"],"nodes":["CLIPTextEncode","EmptySD3LatentImage","KSampler","ModelSamplingSD3","QuadrupleCLIPLoader","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"hunyuan_video_text_to_video":{"models":["clip_l.safetensors","hunyuan_video_t2v_720p_bf16.safetensors","hunyuan_video_vae_bf16.safetensors","llava_llama3_fp8_scaled.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPTextEncode","CreateVideo","DualCLIPLoader","EmptyHunyuanLatentVideo","FluxGuidance","KSamplerSelect","ModelSamplingSD3","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeTiled","VAELoader"]},"image-qwen_image_edit_2511_lora_inflation":{"models":["Qwen_Image_Edit_2511-SYSTMS_INFL8.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2511_bf16.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_anima_base_v1":{"models":["anima-base-v1.0.safetensors","anima-turbo-lora-v0.2.safetensors","qwen_3_06b_base.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptyLatentImage","KSampler","LoraLoaderModelOnly","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","ResolutionSelector","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_anima_lllite_any_control_to_image":{"models":["anima-base-v1.0.safetensors","anima-lllite-any-test-like-v2.safetensors","anima-turbo-lora-v0.2.safetensors","qwen_3_06b_base.safetensors","qwen_image_vae.safetensors"],"nodes":["AnimaLLLiteApply","CLIPLoader","CLIPTextEncode","Canny","ComfySwitchNode","EmptyLatentImage","GetImageSize","ImageCompare","ImageInvert","KSampler","LoadImage","LoraLoaderModelOnly","ModelPatchLoader","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","ResizeImageMaskNode","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_anima_lllite_depth_control_to_image":{"models":["anima-base-v1.0.safetensors","anima-lllite-depth-1.safetensors","anima-turbo-lora-v0.2.safetensors","depth_anything_3_mono_large.safetensors","qwen_3_06b_base.safetensors","qwen_image_vae.safetensors"],"nodes":["AnimaLLLiteApply","CLIPLoader","CLIPTextEncode","ComfySwitchNode","DA3Inference","DA3Render","EmptyLatentImage","GetImageSize","ImageCompare","KSampler","LoadDA3Model","LoadImage","LoraLoaderModelOnly","ModelPatchLoader","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","ResizeImageMaskNode","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_anima_lllite_image_inpainting":{"models":["anima-base-v1.0.safetensors","anima-lllite-inpainting-v2.safetensors","anima-turbo-lora-v0.2.safetensors","qwen_3_06b_base.safetensors","qwen_image_vae.safetensors"],"nodes":["AnimaLLLiteApply","CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptyLatentImage","ImageCompare","KSampler","LoadImage","LoraLoaderModelOnly","MaskPreview","ModelPatchLoader","Painter","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","ResizeImageMaskNode","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_anima_preview":{"models":["anima-preview3-base.safetensors","qwen_3_06b_base.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptyLatentImage","KSampler","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_boogu_image_0_1_edit":{"models":["ae.safetensors","boogu_image_edit_fp8_scaled.safetensors","qwen3vl_8b_fp8_scaled.safetensors"],"nodes":["BasicScheduler","CLIPLoader","EmptyLatentImage","GetImageSize","ImageCompare","KSamplerSelect","LoadImage","ModelSamplingAuraFlow","ResizeImageMaskNode","SamplerCustom","SaveImage","TextEncodeBooguEdit","UNETLoader","VAEDecode","VAELoader"]},"image_boogu_image_0_1_edit_int8":{"models":["ae.safetensors","boogu_image_edit_int8_convrot.safetensors","qwen3vl_8b_fp8_scaled.safetensors"],"nodes":["BasicScheduler","CLIPLoader","EmptyLatentImage","GetImageSize","ImageCompare","KSamplerSelect","LoadImage","ModelSamplingAuraFlow","ResizeImageMaskNode","SamplerCustom","SaveImageAdvanced","TextEncodeBooguEdit","UNETLoader","VAEDecode","VAELoader"]},"image_boogu_image_0_1_turbo_t2i":{"models":["ae.safetensors","boogu_image_turbo_fp8_scaled.safetensors","qwen3vl_8b_fp8_scaled.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptyLatentImage","KSampler","ResolutionSelector","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_chroma1_radiance_text_to_image":{"models":["chroma-radiance-x0.safetensors","t5xxl_fp8_e4m3fn_scaled.safetensors"],"nodes":["BetaSamplingScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","ChromaRadianceOptions","EmptyChromaRadianceLatentImage","KSamplerSelect","ModelSamplingAuraFlow","RandomNoise","SamplerCustomAdvanced","SaveImage","T5TokenizerOptions","UNETLoader","VAEDecode","VAELoader"]},"image_chroma_text_to_image":{"models":["Chroma1-HD-fp8mixed.safetensors","ae.safetensors","t5xxl_fp8_e4m3fn_scaled.safetensors"],"nodes":["BasicScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","EmptySD3LatentImage","KSamplerSelect","ModelSamplingAuraFlow","RandomNoise","SamplerCustomAdvanced","SaveImage","T5TokenizerOptions","UNETLoader","VAEDecode","VAELoader"]},"image_chrono_edit_14B":{"models":["chrono_edit_14B_fp16.safetensors","chronoedit_distill_lora.safetensors","clip_vision_h.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","ComfySwitchNode","ImageFromBatch","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","ScaleROPE","UNETLoader","VAEDecode","VAELoader","WanImageToVideo"]},"image_ernie_image":{"models":["ernie-image-prompt-enhancer.safetensors","ernie-image.safetensors","flux2-vae.safetensors","ministral-3-3b.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptyFlux2LatentImage","KSampler","PreviewAny","PrimitiveBoolean","PrimitiveStringMultiline","SaveImage","StringReplace","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_ernie_image_turbo":{"models":["ernie-image-prompt-enhancer.safetensors","ernie-image-turbo.safetensors","flux2-vae.safetensors","ministral-3-3b.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","ConditioningZeroOut","EmptyFlux2LatentImage","KSampler","PreviewAny","PrimitiveBoolean","PrimitiveStringMultiline","SaveImage","StringReplace","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_fibo2_edit_dev_pe":{"models":["fibo2_dev_int8_convrot.safetensors","flux2-vae.safetensors","qwen3vl_4b_bf16.safetensors","qwen3vl_8b_int8_convrot.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","ComfySwitchNode","ImageCompare","KSampler","LoadImage","PreviewAny","PrimitiveStringMultiline","SaveImage","TextEncodeFibo2","TextGenerateV2","UNETLoader","VAEDecode","VAELoader"]},"image_fibo2_edit_turbo_pe":{"models":["fibo2_edit_turbo_int8_convrot.safetensors","flux2-vae.safetensors","qwen3vl_4b_bf16.safetensors","qwen3vl_8b_int8_convrot.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","ComfySwitchNode","ImageCompare","KSampler","LoadImage","PreviewAny","PrimitiveStringMultiline","SaveImage","TextEncodeFibo2","TextGenerateV2","UNETLoader","VAEDecode","VAELoader"]},"image_firered_image_edit1_1":{"models":["FireRed-Image-Edit-1.0-Lightning-8steps-v1.0.safetensors","FireRed-Image-Edit-1.1-transformer.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","ResizeImageMaskNode","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_flux.1_fill_dev_OneReward":{"models":["ae.safetensors","clip_l.safetensors","flux.1-fill-dev-OneReward-transformer_fp8.safetensors","removal_timestep_alpha-2-1740.safetensors","t5xxl_fp16.safetensors"],"nodes":["CLIPTextEncode","ConditioningZeroOut","DifferentialDiffusion","DualCLIPLoader","FluxGuidance","ImagePadForOutpaint","InpaintModelConditioning","KSampler","LoadImage","LoraLoaderModelOnly","PreviewImage","SaveImage","SetLatentNoiseMask","UNETLoader","VAEDecode","VAELoader"]},"image_flux2":{"models":["Flux_2-Turbo-LoRA_comfyui.safetensors","flux2_dev_fp8mixed.safetensors","full_encoder_small_decoder.safetensors","mistral_3_small_flux2_bf16.safetensors"],"nodes":["BasicGuider","CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptyFlux2LatentImage","Flux2Scheduler","FluxGuidance","GetImageSize","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","LoraLoaderModelOnly","PrimitiveBoolean","PrimitiveInt","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_flux2_fp8":{"models":["Flux2TurboComfyv2.safetensors","flux2-vae.safetensors","flux2_dev_fp8mixed.safetensors","mistral_3_small_flux2_fp8.safetensors"],"nodes":["BasicGuider","CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptyFlux2LatentImage","Flux2Scheduler","FluxGuidance","GetImageSize","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","LoraLoaderModelOnly","PrimitiveBoolean","PrimitiveInt","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_flux2_klein_9b_kv_image_edit":{"models":["flux-2-klein-9b-kv-fp8.safetensors","flux2-vae.safetensors","qwen_3_8b_fp8mixed.safetensors"],"nodes":["CFGGuider","CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptyFlux2LatentImage","Flux2Scheduler","FluxKVCache","GetImageSize","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_flux2_klein_image_edit_4b_base":{"models":["flux-2-klein-base-4b-fp8.safetensors","full_encoder_small_decoder.safetensors","qwen_3_4b.safetensors"],"nodes":["CFGGuider","CLIPLoader","CLIPTextEncode","EmptyFlux2LatentImage","Flux2Scheduler","GetImageSize","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_flux2_klein_image_edit_4b_distilled":{"models":["flux-2-klein-4b-fp8.safetensors","flux2-vae.safetensors","qwen_3_4b.safetensors"],"nodes":["CFGGuider","CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptyFlux2LatentImage","Flux2Scheduler","GetImageSize","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_flux2_klein_image_edit_9b_base":{"models":["flux-2-klein-base-9b-fp8.safetensors","full_encoder_small_decoder.safetensors","qwen_3_8b_fp8mixed.safetensors"],"nodes":["CFGGuider","CLIPLoader","CLIPTextEncode","EmptyFlux2LatentImage","Flux2Scheduler","GetImageSize","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_flux2_klein_image_edit_9b_distilled":{"models":["flux-2-klein-9b-fp8.safetensors","full_encoder_small_decoder.safetensors","qwen_3_8b_fp8mixed.safetensors"],"nodes":["CFGGuider","CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptyFlux2LatentImage","Flux2Scheduler","GetImageSize","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_flux2_klein_text_to_image":{"models":["flux-2-klein-4b.safetensors","flux-2-klein-base-4b.safetensors","flux2-vae.safetensors","qwen_3_4b.safetensors"],"nodes":["CFGGuider","CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptyFlux2LatentImage","Flux2Scheduler","KSamplerSelect","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_flux2_text_to_image":{"models":["Flux_2-Turbo-LoRA_comfyui.safetensors","flux2_dev_fp8mixed.safetensors","full_encoder_small_decoder.safetensors","mistral_3_small_flux2_bf16.safetensors"],"nodes":["BasicGuider","CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptyFlux2LatentImage","Flux2Scheduler","FluxGuidance","KSamplerSelect","LoraLoaderModelOnly","PrimitiveBoolean","PrimitiveInt","RandomNoise","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_flux2_text_to_image_9b":{"models":["flux-2-klein-base-9b-fp8.safetensors","full_encoder_small_decoder.safetensors","qwen_3_8b_fp8mixed.safetensors"],"nodes":["CFGGuider","CLIPLoader","CLIPTextEncode","EmptyFlux2LatentImage","Flux2Scheduler","KSamplerSelect","PrimitiveInt","RandomNoise","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_flux3_klein_distilled_image_edit":{"models":["flux2-vae.safetensors","flux3-image-klein-int8-convrot.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","CLIPTextEncode","ComfySwitchNode","ConditioningZeroOut","CreateBoundingBoxes","EmptyFlux2LatentImage","Flux3LayoutPrompt","ImageCompare","KSampler","LoadImage","PreviewAny","PrimitiveStringMultiline","ReferenceMultiLatent","SaveImage","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_flux3_klein_distilled_t2i":{"models":["flux2-vae.safetensors","flux3-image-klein-int8-convrot.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","CreateBoundingBoxes","EmptyFlux2LatentImage","Flux3LayoutPrompt","KSampler","PreviewAny","PrimitiveStringMultiline","ResolutionSelector","SaveImage","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_flux3_klein_image_edit":{"models":["flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","CLIPTextEncode","ComfySwitchNode","CreateBoundingBoxes","EmptyFlux2LatentImage","Flux3LayoutPrompt","ImageCompare","KSampler","LoadImage","PreviewAny","PrimitiveStringMultiline","ReferenceMultiLatent","SaveImage","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_flux3_klein_t2i":{"models":["flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","CreateBoundingBoxes","EmptyFlux2LatentImage","Flux3LayoutPrompt","KSampler","PreviewAny","PrimitiveStringMultiline","ResolutionSelector","SaveImage","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_hidream_o1":{"models":["gemma4_e4b_it_fp8_scaled.safetensors","hidream_o1_image_bf16.safetensors"],"nodes":["BasicScheduler","CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","EmptyHiDreamO1LatentImage","GetImageSize","HiDreamO1PatchSeamSmoothing","HiDreamO1ReferenceImages","ImageScaleToTotalPixels","JsonExtractString","KSamplerSelect","LoadImage","ModelNoiseScale","PreviewAny","PrimitiveBoolean","PrimitiveStringMultiline","RegexReplace","SamplerCustom","SaveImage","StringConcatenate","StringReplace","TextGenerate","VAEDecode"]},"image_hidream_o1_dev":{"models":["gemma4_e4b_it_fp8_scaled.safetensors","hidream_o1_image_dev_fp8_scaled.safetensors"],"nodes":["BasicScheduler","CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","EmptyHiDreamO1LatentImage","GetImageSize","HiDreamO1ReferenceImages","ImageScaleToTotalPixels","JsonExtractString","LoadImage","ModelNoiseScale","PreviewAny","PrimitiveBoolean","PrimitiveStringMultiline","RegexReplace","SamplerCustom","SamplerLCM","SaveImage","StringConcatenate","StringReplace","TextGenerate","VAEDecode"]},"image_ideogram4_t2i":{"models":["flux2-vae.safetensors","ideogram4_fp8_scaled.safetensors","ideogram4_unconditional_fp8_scaled.safetensors","qwen3vl_8b_fp8_scaled.safetensors"],"nodes":["CFGOverride","CLIPLoader","CLIPTextEncode","ComfyMathExpression","ComfyNumberConvert","ConditioningZeroOut","CustomCombo","DualModelGuider","EmptyFlux2LatentImage","Ideogram4Scheduler","JsonExtractString","KSamplerSelect","PreviewAny","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveImage","StringReplace","UNETLoader","VAEDecode","VAELoader"]},"image_ideogram4_t2i_int8":{"models":["flux2-vae.safetensors","ideogram4_int8_convrot.safetensors","ideogram4_unconditional_int8_convrot.safetensors","qwen3vl_8b_fp8_scaled.safetensors"],"nodes":["CFGOverride","CLIPLoader","CLIPTextEncode","ComfyMathExpression","ComfyNumberConvert","ConditioningZeroOut","CustomCombo","DualModelGuider","EmptyFlux2LatentImage","Ideogram4Scheduler","JsonExtractString","KSamplerSelect","PreviewAny","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveImage","StringReplace","UNETLoader","VAEDecode","VAELoader"]},"image_joyai_image_edit":{"models":["joyai_image_edit_int8_convrot.safetensors","qwen3vl_8b_joyimage_edit_int8_convrot.safetensors","wan_2.1_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","EmptySD3LatentImage","GetImageSize","ImageCompare","ImageScaleToTotalPixels","KSampler","LoadImage","SaveImageAdvanced","TextEncodeJoyImageEdit","UNETLoader","VAEDecode","VAELoader"]},"image_kandinsky5_t2i":{"models":["ae.safetensors","clip_l.safetensors","kandinsky5lite_t2i.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors"],"nodes":["CLIPTextEncode","DualCLIPLoader","EmptyLatentImage","KSampler","ModelSamplingSD3","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_krea2_turbo_int8_image_style_reference":{"models":["krea2_style_reference.safetensors","krea2_turbo_int8_convrot.safetensors","qwen3vl_4b_fp8_scaled.safetensors","qwen_image_vae.safetensors"],"nodes":["BasicScheduler","CFGGuider","CLIPLoader","ComfySwitchNode","ConditioningZeroOut","EmptyLatentImage","FluxKontextMultiReferenceLatentMethod","GetImageSize","KSamplerSelect","LoadImage","LoraLoaderModelOnly","ModelSamplingFlux","PreviewAny","PrimitiveBoolean","PrimitiveStringMultiline","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveImage","StringConcatenate","TextEncodeQwenImageEditPlus","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_krea2_turbo_t2i":{"models":["krea2_darkbrush.safetensors","krea2_turbo_fp8_scaled.safetensors","qwen3vl_4b_fp8_scaled.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","ConditioningZeroOut","EmptyLatentImage","KSampler","LoraLoaderModelOnly","PreviewAny","PrimitiveBoolean","PrimitiveStringMultiline","ResolutionSelector","SaveImage","StringConcatenate","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_krea2_turbo_t2i_int8":{"models":["krea2_darkbrush.safetensors","krea2_turbo_int8_convrot.safetensors","qwen3vl_4b_fp8_scaled.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","ConditioningZeroOut","EmptyLatentImage","KSampler","LoraLoaderModelOnly","PreviewAny","PrimitiveBoolean","PrimitiveStringMultiline","ResolutionSelector","SaveImage","StringConcatenate","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_lens_t2i":{"models":["flux2-vae.safetensors","gpt_oss_20b_nvfp4.safetensors","lens_bf16.safetensors"],"nodes":["BasicScheduler","CFGNorm","CLIPLoader","CLIPTextEncode","ComfyMathExpression","EmptyLatentImage","KSamplerSelect","ModelSamplingFlux","PrimitiveInt","ResolutionSelector","SamplerCustom","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_lens_turbo_t2i":{"models":["flux2-vae.safetensors","gpt_oss_20b_nvfp4.safetensors","lens_turbo_bf16.safetensors"],"nodes":["BasicScheduler","CFGNorm","CLIPLoader","CLIPTextEncode","ComfyMathExpression","EmptyLatentImage","KSamplerSelect","ModelSamplingFlux","PrimitiveInt","ResolutionSelector","SamplerCustom","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_longcat_image_edit":{"models":["ae.safetensors","longcat_image_edit_bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors"],"nodes":["CLIPLoader","FluxGuidance","FluxKontextMultiReferenceLatentMethod","ImageCompare","ImageScaleToTotalPixels","KSampler","LoadImage","SaveImage","TextEncodeQwenImageEdit","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_longcat_text_to_image":{"models":["ae.safetensors","longcat_image_bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors"],"nodes":["CFGNorm","CLIPLoader","CLIPTextEncode","EmptySD3LatentImage","FluxGuidance","KSampler","ResolutionSelector","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_lotus_depth_v1_1":{"models":["lotus-depth-d-v1-1.safetensors","vae-ft-mse-840000-ema-pruned.safetensors"],"nodes":["BasicGuider","BasicScheduler","DisableNoise","ImageInvert","KSamplerSelect","LoadImage","LotusConditioning","SamplerCustomAdvanced","SaveImage","SetFirstSigma","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_mage_flow_edit_int8":{"models":["mage_flow_edit_int8_convrot.safetensors","mage_flow_vae_bf16.safetensors","qwen3vl_4b_bf16.safetensors"],"nodes":["CLIPLoader","ComfySwitchNode","GetImageSize","ImageScaleToTotalPixels","KSampler","LoadImage","PrimitiveBoolean","PrimitiveInt","SaveImageAdvanced","TextEncodeMageFlowEdit","UNETLoader","VAEDecode","VAELoader"]},"image_mage_flow_edit_turbo_int8":{"models":["mage_flow_edit_turbo_int8_convrot.safetensors","mage_flow_vae_bf16.safetensors","qwen3vl_4b_bf16.safetensors"],"nodes":["CLIPLoader","ComfySwitchNode","GetImageSize","ImageScaleToTotalPixels","KSampler","LoadImage","PrimitiveBoolean","PrimitiveInt","SaveImageAdvanced","TextEncodeMageFlowEdit","UNETLoader","VAEDecode","VAELoader"]},"image_mage_flow_t2i_int8":{"models":["mage_flow_int8_convrot.safetensors","mage_flow_vae_bf16.safetensors","qwen3vl_4b_bf16.safetensors"],"nodes":["CLIPLoader","KSampler","ResolutionSelector","SaveImageAdvanced","TextEncodeMageFlowEdit","UNETLoader","VAEDecode","VAELoader"]},"image_mage_flow_turbo_t2i_int8":{"models":["mage_flow_turbo_int8_convrot.safetensors","mage_flow_vae_bf16.safetensors","qwen3vl_4b_bf16.safetensors"],"nodes":["CLIPLoader","KSampler","ResolutionSelector","SaveImageAdvanced","TextEncodeMageFlowEdit","UNETLoader","VAEDecode","VAELoader"]},"image_marigold_v2_albedo_estimation":{"models":["marigold_v2_albedo.safetensors","marigold_v2_albedo_conditioning.safetensors","marigold_v2_albedo_vae.safetensors","qwen_image_edit_2509_int8_convrot.safetensors"],"nodes":["BasicGuider","ConditioningLoader","DisableNoise","ImageCompare","KSamplerSelect","LoadImage","LoraLoaderModelOnly","ManualSigmas","MarigoldV2PostProcess","ModelSamplingAuraFlow","SamplerCustomAdvanced","SaveImageAdvanced","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_marigold_v2_depth_estimation":{"models":["marigold_v2_depth_conditioning.safetensors","marigold_v2_depth_log_stage2.safetensors","marigold_v2_depth_log_stage2_vae.safetensors","qwen_image_edit_2509_int8_convrot.safetensors"],"nodes":["BasicGuider","ConditioningLoader","DisableNoise","ImageCompare","KSamplerSelect","LoadImage","LoraLoaderModelOnly","ManualSigmas","MarigoldV2PostProcess","ModelSamplingAuraFlow","SamplerCustomAdvanced","SaveImageAdvanced","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_marigold_v2_surface_normal_estimation":{"models":["marigold_v2_normals.safetensors","marigold_v2_normals_conditioning.safetensors","marigold_v2_normals_vae.safetensors","qwen_image_edit_2509_int8_convrot.safetensors"],"nodes":["BasicGuider","ConditioningLoader","DisableNoise","ImageCompare","KSamplerSelect","LoadImage","LoraLoaderModelOnly","ManualSigmas","MarigoldV2PostProcess","ModelSamplingAuraFlow","SamplerCustomAdvanced","SaveImageAdvanced","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_ming_image_01_design_image_edit":{"models":["ming_image_0.1_design_int8_convrot.safetensors","ming_image_0.1_ling_mini_2.0_int8_convrot.safetensors","ming_image_vae_bf16.safetensors"],"nodes":["BasicGuider","BasicScheduler","BuildJsonPromptIdeogram","CLIPLoader","ComfyMathExpression","ComfyNumberConvert","ConvertArrayToString","ConvertDictionaryToString","CreateBoundingBoxes","CreateList","EmptyLatentImage","EndLoop","GetImageSize","GetItemFromList","ImageStitch","LoadImage","ModelAttentionBackend","ModelSamplingFlux","PreviewAny","PreviewImage","PrimitiveInt","RandomNoise","RegexExtract","RegexReplace","ResizeImageMaskNode","SamplerCustomAdvanced","SamplerLCM","SaveImageAdvanced","StartLoop","StringFormat","StringLength","TextEncodeMingImageEdit","UNETLoader","VAEDecode","VAELoader"]},"image_ming_image_01_design_t2i":{"models":["ming_image_0.1_design_int8_convrot.safetensors","ming_image_0.1_ling_mini_2.0_int8_convrot.safetensors","ming_image_vae_bf16.safetensors","qwen3.8_27b_w4a8.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptyLatentImage","KSamplerSelect","ModelAttentionBackend","ModelSamplingFlux","PreviewAny","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveImageAdvanced","TextGenerateV2","UNETLoader","VAEDecode","VAELoader"]},"image_minimax_h3_image_edit":{"models":["minimax_h3_image_pruned_int8_convrot.safetensors","minimax_h3_image_vae_fp16.safetensors","qwen3.5_9b_w4a8_gptq.safetensors","qwen3vl_32b_minimax_h3_int8_convrot.safetensors"],"nodes":["CLIPLoader","ComfySwitchNode","ConditioningZeroOut","GetImageSize","ImageCompare","JsonExtractString","KSampler","LoadImage","MiniMaxH3ImageConditioning","PreviewAny","PrimitiveBoolean","PrimitiveStringMultiline","ResizeImageMaskNode","SaveImage","StringReplace","TextGenerateV2","UNETLoader","VAEDecode","VAELoader"]},"image_minimax_h3_image_t2i":{"models":["minimax_h3_image_pruned_int8_convrot.safetensors","minimax_h3_image_vae_fp16.safetensors","qwen3.5_9b_w4a8_gptq.safetensors","qwen3vl_32b_minimax_h3_int8_convrot.safetensors"],"nodes":["CLIPLoader","ComfySwitchNode","ConditioningZeroOut","JsonExtractString","KSampler","MiniMaxH3ImageConditioning","PreviewAny","PrimitiveStringMultiline","ResolutionSelector","SaveImage","StringReplace","TextGenerateV2","UNETLoader","VAEDecode","VAELoader"]},"image_minimax_h3_t2i":{"models":["minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors","minimax_h3_fl2va_pruned_int8_convrot.safetensors","minimax_h3_video_vae_fp16.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptyLatentImage","KSamplerSelect","LTXVSeparateAVLatent","LoraLoaderModelOnly","ModelAttentionBackend","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_moss_image_base_t2i":{"models":["flux2-vae_small.safetensors","moss_image_base_int8_convrot.safetensors","qwen3.5_9b_w4a8_gptq.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptyFlux2LatentImage","KSampler","PreviewAny","PrimitiveStringMultiline","ResolutionSelector","SaveImage","SkipLayerGuidanceDiTSimple","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_moss_image_base_t2i_bboxes":{"models":["flux2-vae_small.safetensors","moss_image_base_int8_convrot.safetensors","qwen3.5_9b_w4a8_gptq.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","CreateBoundingBoxes","EmptyFlux2LatentImage","KSampler","MOSSImageLayoutPrompt","PreviewAny","PrimitiveStringMultiline","ResolutionSelector","SaveImage","SkipLayerGuidanceDiTSimple","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_moss_image_color_depth_control":{"models":["flux2-vae_small.safetensors","moge_3_vitg_fp16.safetensors","moss_image_color_depth_control.safetensors","moss_image_sft_int8_convrot.safetensors","qwen3.5_9b_int8_convrot.safetensors"],"nodes":["BasicScheduler","CLIPLoader","CLIPTextEncode","EmptyLatentImage","GetImageSize","ImageCompare","ImageScaleToTotalPixels","LoadImage","LoadMoGeModel","LoraLoaderModelOnly","MOSSImageControl","MoGeInference","MoGeRender","ModelSamplingAuraFlow","Painter","PreviewImage","SamplerCustom","SamplerER_SDE","SaveImage","SkipLayerGuidanceDiTSimple","TemporalScoreRescaling","UNETLoader","VAEDecode","VAELoader"]},"image_moss_image_edit":{"models":["flux2-vae_small.safetensors","moss_image_edit_lora_rank_64_bf16.safetensors","moss_image_sft_int8_convrot.safetensors","qwen3.5_9b_w4a8_gptq.safetensors"],"nodes":["CLIPLoader","EmptyFlux2LatentImage","GetImageSize","ImageCompare","ImageScaleToTotalPixels","KSampler","LoadImage","LoraLoaderModelOnly","SaveImage","SkipLayerGuidanceDiTSimple","TextEncodeMOSSImageEdit","UNETLoader","VAEDecode","VAELoader"]},"image_moss_image_t2i":{"models":["flux2-vae_small.safetensors","moss_image_sft_int8_convrot.safetensors","qwen3.5_9b_w4a8_gptq.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptyFlux2LatentImage","KSampler","PreviewAny","PrimitiveStringMultiline","ResolutionSelector","SaveImage","SkipLayerGuidanceDiTSimple","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_moss_image_t2i_bboxes":{"models":["flux2-vae_small.safetensors","moss_image_sft_int8_convrot.safetensors","qwen3.5_9b_w4a8_gptq.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","CreateBoundingBoxes","EmptyFlux2LatentImage","KSampler","MOSSImageLayoutPrompt","PreviewAny","PrimitiveStringMultiline","ResolutionSelector","SaveImage","SkipLayerGuidanceDiTSimple","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_netayume_lumina_t2i":{"models":["NetaYumev35_pretrained_all_in_one.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","EmptySD3LatentImage","KSampler","ModelSamplingAuraFlow","PrimitiveStringMultiline","SaveImage","StringConcatenate","VAEDecode"]},"image_newbieimage_exp0_1-t2i":{"models":["NewBie-Image-Exp0.1-bf16.safetensors","ae.safetensors","gemma_3_4b_it_bf16.safetensors","jina_clip_v2_bf16.safetensors"],"nodes":["CLIPTextEncode","DualCLIPLoader","EmptySD3LatentImage","KSampler","ModelSamplingAuraFlow","PrimitiveStringMultiline","SaveImage","StringReplace","UNETLoader","VAEDecode","VAELoader"]},"image_omnigen2_image_edit":{"models":["ae.safetensors","omnigen2_fp16.safetensors","qwen_2.5_vl_fp16.safetensors"],"nodes":["BasicScheduler","CLIPLoader","CLIPTextEncode","DualCFGGuider","EmptySD3LatentImage","GetImageSize","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_omnigen2_t2i":{"models":["ae.safetensors","omnigen2_fp16.safetensors","qwen_2.5_vl_fp16.safetensors"],"nodes":["BasicScheduler","CLIPLoader","CLIPTextEncode","DualCFGGuider","EmptySD3LatentImage","KSamplerSelect","RandomNoise","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_ovis_text_to_image":{"models":["ae.safetensors","ovis_2.5.safetensors","ovis_image_bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptySD3LatentImage","KSampler","ModelSamplingAuraFlow","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_p_h3_image_edit":{"models":["minimax_h3_fl2va_pruned_int8_convrot.safetensors","p-h3-image_lora_bf16.safetensors","p-h3-image_prompt_upsampler_w4a8.safetensors","p-h3-image_text_encoder_int8_convrot.safetensors","p-h3-image_vae_int8_convrot.safetensors"],"nodes":["BasicGuider","CLIPLoader","ComfySwitchNode","GetImageSize","ImageCompare","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","LoraLoaderModelOnly","ManualSigmas","MiniMaxH3SigmaShift","PH3ImageConditioning","PreviewAny","PrimitiveStringMultiline","RandomNoise","SamplerCustomAdvanced","SaveImage","TextGenerateV2","UNETLoader","VAEDecode","VAELoader"]},"image_p_h3_t2i":{"models":["minimax_h3_fl2va_pruned_int8_convrot.safetensors","p-h3-image_lora_bf16.safetensors","p-h3-image_prompt_upsampler_w4a8.safetensors","p-h3-image_text_encoder_int8_convrot.safetensors","p-h3-image_vae_int8_convrot.safetensors"],"nodes":["BasicGuider","CLIPLoader","ComfySwitchNode","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","MiniMaxH3SigmaShift","PH3ImageConditioning","PreviewAny","PrimitiveStringMultiline","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveImage","TextGenerateV2","UNETLoader","VAEDecode","VAELoader"]},"image_pixeldit_t2i":{"models":["gemma_2_2b_it_elm_bf16.safetensors","pixeldit_1300m_1024px_bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptyChromaRadianceLatentImage","KSampler","ResolutionSelector","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_qwen_Image_2512":{"models":["Qwen-Image-2512-Lightning-4steps-V1.0-fp32.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_2512_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptySD3LatentImage","KSampler","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_qwen_Image_2512_controlnet":{"models":["Qwen-Image-2512-Fun-Controlnet-Union-2602.safetensors","Qwen-Image-Lightning-4steps-V1.0.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_2512_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","Canny","ComfySwitchNode","ControlNetApplyAdvanced","ControlNetLoader","EmptySD3LatentImage","GetImageSize","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","ResizeImageMaskNode","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_qwen_image":{"models":["Qwen-Image-Lightning-8steps-V1.0.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptySD3LatentImage","KSampler","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_qwen_image_2512_with_2steps_lora":{"models":["Wuli-Qwen-Image-2512-Turbo-LoRA-2steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_2512_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptySD3LatentImage","KSampler","LoraLoaderModelOnly","ModelSamplingAuraFlow","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_qwen_image_2_1_background_removal":{"models":["qwen3vl_8b_int8_convrot.safetensors","qwen_image_2.1_int8_convrot.safetensors","qwen_image_2.1_vae_bf16.safetensors"],"nodes":["CLIPLoader","ComfySwitchNode","EmptyLatentImage","ImageCompare","KSampler","LoadImage","QwenImage21Cache","SaveImageAdvanced","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"]},"image_qwen_image_2_1_image_edit":{"models":["qwen3.5_9b_qwen_image_2.1_pe_i2i.int8_convrot.safetensors","qwen3vl_8b_int8_convrot.safetensors","qwen_image_2.1_int8_convrot.safetensors","qwen_image_2.1_vae_bf16.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","ComfySwitchNode","EmptyLatentImage","ImageCompare","KSampler","LoadImage","PreviewAny","PrimitiveStringMultiline","QwenImage21Cache","SaveImageAdvanced","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_qwen_image_2_1_t2i":{"models":["qwen3.5_9b_qwen_image_2.1_pe_t2i.int8_convrot.safetensors","qwen3vl_8b_int8_convrot.safetensors","qwen_image_2.1_int8_convrot.safetensors","qwen_image_2.1_vae_bf16.safetensors"],"nodes":["CLIPLoader","ComfySwitchNode","EmptyLatentImage","KSampler","PreviewAny","PrimitiveStringMultiline","QwenImage21Cache","ResolutionSelector","SaveImageAdvanced","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_qwen_image_2_1_turbo_image_edit":{"models":["qwen3.5_9b_qwen_image_2.1_pe_i2i.int8_convrot.safetensors","qwen3vl_8b_int8_convrot.safetensors","qwen_image_2.1_turbo_int8_convrot.safetensors","qwen_image_2.1_vae_bf16.safetensors"],"nodes":["BatchImagesNode","CFGGuider","CLIPLoader","ComfySwitchNode","EmptyLatentImage","ImageCompare","KSamplerSelect","LoadImage","ManualSigmas","PreviewAny","PrimitiveStringMultiline","QwenImage21Cache","RandomNoise","SamplerCustomAdvanced","SaveImageAdvanced","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_qwen_image_2_1_turbo_t2i":{"models":["qwen3.5_9b_qwen_image_2.1_pe_t2i.int8_convrot.safetensors","qwen3vl_8b_int8_convrot.safetensors","qwen_image_2.1_turbo_int8_convrot.safetensors","qwen_image_2.1_vae_bf16.safetensors"],"nodes":["CFGGuider","CLIPLoader","ComfySwitchNode","EmptyLatentImage","KSamplerSelect","ManualSigmas","PreviewAny","PrimitiveStringMultiline","QwenImage21Cache","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveImageAdvanced","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"]},"image_qwen_image_controlnet_patch":{"models":["Qwen-Image-Lightning-4steps-V1.0.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_canny_diffsynth_controlnet.safetensors","qwen_image_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","Canny","ImageScaleToTotalPixels","KSampler","LoadImage","LoraLoaderModelOnly","ModelPatchLoader","ModelSamplingAuraFlow","PreviewImage","QwenImageDiffsynthControlnet","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_qwen_image_edit":{"models":["Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","ImageScaleToTotalPixels","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEdit","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_qwen_image_edit_2509":{"models":["Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2509_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","FluxKontextImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImageAdvanced","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_qwen_image_edit_2509_relight":{"models":["Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","Qwen-Image-Edit-2509-Relight.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2509_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","FluxKontextImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveStringMultiline","SaveImage","StringConcatenate","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_qwen_image_edit_2511":{"models":["Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2511_fp8mixed.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_qwen_image_edit_2511_int8":{"models":["Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2511_int8_convrot.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImageAdvanced","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_qwen_image_instantx_controlnet":{"models":["Qwen-Image-InstantX-ControlNet-Union.safetensors","Qwen-Image-Lightning-4steps-V1.0.safetensors","lotus-depth-d-v1-1.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors","vae-ft-mse-840000-ema-pruned.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPLoader","CLIPTextEncode","ControlNetApplyAdvanced","ControlNetLoader","DisableNoise","FluxKontextImageScale","ImageInvert","KSampler","KSamplerSelect","LoadImage","LoraLoaderModelOnly","LotusConditioning","ModelSamplingAuraFlow","PreviewImage","SamplerCustomAdvanced","SaveImage","SetFirstSigma","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_qwen_image_instantx_inpainting_controlnet":{"models":["Qwen-Image-InstantX-ControlNet-Inpainting.safetensors","Qwen-Image-Lightning-4steps-V1.0.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ControlNetInpaintingAliMamaApply","ControlNetLoader","GrowMask","ImageBlur","ImageCompositeMasked","ImagePadForOutpaint","ImageScaleToMaxDimension","ImageToMask","KSampler","LoadImage","LoraLoaderModelOnly","MaskPreview","MaskToImage","ModelSamplingAuraFlow","PreviewImage","PrimitiveInt","SaveImage","SetLatentNoiseMask","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_qwen_image_layered":{"models":["qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_layered_bf16.safetensors","qwen_image_layered_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptyQwenImageLayeredLatentImage","GetImageSize","ImageScaleToMaxDimension","KSampler","LatentCut","LatentCutToBatch","LoadImage","ModelSamplingAuraFlow","PrimitiveStringMultiline","ReferenceLatent","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_qwen_image_layered_control":{"models":["qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_layered_control_bf16.safetensors","qwen_image_layered_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptyQwenImageLayeredLatentImage","GetImageSize","ImageScaleToMaxDimension","KSampler","LatentCut","LatentCutToBatch","LoadImage","ModelSamplingAuraFlow","ReferenceLatent","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_qwen_image_union_control_lora":{"models":["Qwen-Image-Lightning-4steps-V1.0.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_fp8_e4m3fn.safetensors","qwen_image_union_diffsynth_lora.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","Canny","ComfySwitchNode","ImageScaleToTotalPixels","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","ReferenceLatent","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"image_sdxl_simple":{"models":["sd_xl_base_1.0.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","EmptyLatentImage","KSampler","SaveImage","VAEDecode"]},"image_to_video_wan":{"models":["clip_vision_h.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_i2v_480p_14B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","KSampler","LoadImage","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanImageToVideo"]},"image_z_image":{"models":["ae.safetensors","qwen_3_4b.safetensors","z_image_bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptySD3LatentImage","KSampler","ModelSamplingAuraFlow","ResolutionSelector","SaveImageAdvanced","UNETLoader","VAEDecode","VAELoader"]},"image_z_image_int8":{"models":["ae.safetensors","qwen_3_4b.safetensors","z_image_int8_convrot.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptySD3LatentImage","KSampler","ModelSamplingAuraFlow","ResolutionSelector","SaveImageAdvanced","UNETLoader","VAEDecode","VAELoader"]},"image_z_image_turbo":{"models":["ae.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptySD3LatentImage","KSampler","ModelSamplingAuraFlow","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_z_image_turbo_fun_union_controlnet":{"models":["Z-Image-Turbo-Fun-Controlnet-Union.safetensors","ae.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","Canny","ConditioningZeroOut","EmptySD3LatentImage","GetImageSize","ImageScaleToMaxDimension","KSampler","LoadImage","ModelPatchLoader","ModelSamplingAuraFlow","PreviewImage","QwenImageDiffsynthControlnet","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"image_z_image_turbo_int8":{"models":["ae.safetensors","qwen_3_4b_fp8_mixed.safetensors","z_image_turbo_int8_convrot.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptySD3LatentImage","KSampler","ModelSamplingAuraFlow","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"llm_gemma4_text_gen":{"models":["gemma4_e4b_it_fp8_scaled.safetensors"],"nodes":["CLIPLoader","GetVideoComponents","LoadAudio","LoadImage","LoadVideo","PreviewAny","TextGenerate"]},"llm_qwen3_5_text_gen":{"models":["qwen3.5_4b_bf16.safetensors"],"nodes":["CLIPLoader","LoadImage","PreviewAny","TextGenerate"]},"llm_qwen3_text_gen":{"models":["qwen_3_4b.safetensors"],"nodes":["CLIPLoader","PreviewAny","TextGenerate"]},"llm_qwen3vl_text_gen":{"models":["qwen3vl_4b_fp8_scaled.safetensors"],"nodes":["CLIPLoader","LoadImage","PreviewAny","TextGenerateV2"]},"ltxv_image_to_video":{"models":["ltx-video-2b-v0.9.5.safetensors","t5xxl_fp16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","KSamplerSelect","LTXVConditioning","LTXVImgToVideo","LTXVScheduler","LoadImage","SamplerCustom","SaveVideo","VAEDecode"]},"ltxv_text_to_video":{"models":["ltx-video-2b-v0.9.safetensors","t5xxl_fp16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyLTXVLatentVideo","KSamplerSelect","LTXVConditioning","LTXVScheduler","SamplerCustom","SaveVideo","VAEDecode"]},"sd3.5_large_blur":{"models":["sd3.5_large_controlnet_blur.safetensors","sd3.5_large_fp8_scaled.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","ConditioningZeroOut","ControlNetApplyAdvanced","ControlNetLoader","EmptySD3LatentImage","KSampler","LoadImage","SaveImage","VAEDecode"]},"sd3.5_large_canny_controlnet_example":{"models":["sd3.5_large_controlnet_canny.safetensors","sd3.5_large_fp8_scaled.safetensors"],"nodes":["CLIPTextEncode","Canny","CheckpointLoaderSimple","ConditioningZeroOut","ControlNetApplyAdvanced","ControlNetLoader","EmptySD3LatentImage","ImageScale","KSampler","LoadImage","PreviewImage","SaveImage","VAEDecode"]},"sd3.5_large_depth":{"models":["lotus-depth-d-v1-1.safetensors","sd3.5_large_controlnet_depth.safetensors","sd3.5_large_fp8_scaled.safetensors","vae-ft-mse-840000-ema-pruned.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPTextEncode","CheckpointLoaderSimple","ConditioningZeroOut","ControlNetApplyAdvanced","ControlNetLoader","DisableNoise","EmptySD3LatentImage","ImageInvert","ImageScaleToTotalPixels","KSampler","KSamplerSelect","LoadImage","LotusConditioning","PreviewImage","SamplerCustomAdvanced","SaveImage","SetFirstSigma","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"sd3.5_simple_example":{"models":["sd3.5_large_fp8_scaled.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","EmptySD3LatentImage","KSampler","SaveImage","VAEDecode"]},"sdxl_refiner_prompt_example":{"models":["sd_xl_base_1.0.safetensors","sd_xl_refiner_1.0.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","EmptyLatentImage","KSamplerAdvanced","SaveImage","VAEDecode"]},"sdxl_revision_text_prompts":{"models":["clip_vision_g.safetensors","sd_xl_base_1.0.safetensors"],"nodes":["CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CheckpointLoaderSimple","EmptyLatentImage","KSampler","LoadImage","SaveImage","VAEDecode","unCLIPConditioning"]},"sdxl_simple_example":{"models":["sd_xl_base_1.0.safetensors","sd_xl_refiner_1.0.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","EmptyLatentImage","KSamplerAdvanced","SaveImage","VAEDecode"]},"sdxlturbo_example":{"models":["sd_xl_turbo_1.0_fp16.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","EmptyLatentImage","KSamplerSelect","SDTurboScheduler","SamplerCustom","SaveImage","VAEDecode"]},"template-Animation_Trajectory_Control_Wan_ATI":{"models":["CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors","Wan21_T2V_14B_lightx2v_cfg_step_distill_lora_rank32.safetensors","Wan2_1-I2V-ATI-14B_fp8_e4m3fn.safetensors","Wan2_1_VAE_bf16.safetensors","umt5-xxl-enc-bf16.safetensors"],"nodes":["CLIPVisionLoader","CreateVideo","FL_PathAnimator","ImageScale","LoadImage","LoadWanVideoT5TextEncoder","PrimitiveInt","SaveVideo","WanVideoATITracks","WanVideoATITracksVisualize","WanVideoClipVisionEncode","WanVideoDecode","WanVideoImageToVideoEncode","WanVideoLoraSelect","WanVideoModelLoader","WanVideoSampler","WanVideoTextEncode","WanVideoVAELoader"]},"template-multistyle-magazine-cover-nanobananapro":{"models":[],"nodes":["GeminiImage2Node","LoadImage","SaveImage"]},"template-recraft_create_style":{"models":[],"nodes":["LoadImage","PreviewAny","RecraftCreateStyleNode","RecraftStyleV3InfiniteStyleLibrary","RecraftTextToImageNode","SaveImage"]},"template_3x3_contact_sheet":{"models":[],"nodes":["CustomCombo","GeminiNanoBanana2V2","LoadImage","SaveImage","StringReplace"]},"template_animate_diff_loops":{"models":["4x-ClearRealityV1.pth","AnimateLCM_sd15_t2v.ckpt","CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors","ip-adapter_sd15.safetensors","realismByStableYogi_v4LCM.safetensors","v2_lora_ZoomIn.ckpt"],"nodes":["ADE_AnimateDiffLoRALoader","ADE_AnimateDiffSamplingSettings","ADE_AnimateDiffUniformContextOptions","ADE_ApplyAnimateDiffModel","ADE_LoadAnimateDiffModel","ADE_MultivalDynamic","ADE_UseEvolvedSampling","AILab_QwenVL","CLIPTextEncode","CLIPVisionLoader","CheckpointLoaderSimple","EmptyLatentImage","FL_KsamplerPlus","FL_UpscaleModel","FreeU_V2","IPAdapterMS","IPAdapterModelLoader","KSampler","LatentUpscaleBy","LoadImage","PrepImageForClipVision","Upscale Model Loader","VAEDecode","VHS_VideoCombine"]},"template_character_portrait_relighting":{"models":[],"nodes":["GeminiImage2Node","LoadImage","SaveImage"]},"template_contact_sheet-step_1.app":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","LoadImage","PrimitiveStringMultiline","SaveImage"]},"template_contact_sheet-step_2.app":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","GetImageSize","ImageCrop+","LoadImage","PrimitiveStringMultiline","RegexReplace","SaveImage","SimpleMath+"]},"template_contact_sheet-step_3.app":{"models":[],"nodes":["BatchImagesNode","GeminiNode","ImageFromBatch","KlingFirstLastFrameNode","LoadImage","PreviewAny","SaveVideo"]},"template_eric_exploded_view":{"models":[],"nodes":["BatchImagesNode","ByteDance2FirstLastFrameNode","CreateVideo","GeminiNanoBanana2V2","GetVideoComponents","LoadImage","SaveImage","SaveVideo"]},"template_eric_seedance_5_subject_and_outfit_combine":{"models":[],"nodes":["BatchImagesNode","ByteDanceSeedreamNodeV2","GetImageSize","LoadImage","PrimitiveStringMultiline","RegexReplace","ResizeAndPadImage","SaveImage"]},"template_eric_thumbnail_generator":{"models":[],"nodes":["BatchImagesNode","GeminiNanoBanana2","LoadImage","SaveImage"]},"template_graphic_color_remixer":{"models":[],"nodes":["ComfySwitchNode","CustomCombo","GeminiImage2Node","GetImageSize","ImageBatchMulti","ImageCrop","ImageScaleToTotalPixels","ImageStitch","LoadImage","RegexReplace","ResizeImageMaskNode","SaveImage","SimpleMath+","StringCompare"]},"template_horizontal_vertical_extension":{"models":[],"nodes":["CreateVideo","Get Image Size","GetVideoComponents","ImageRemoveAlpha+","ImageToMask","JWImageResizeByShorterSide","KlingOmniProEditVideoNode","LayerUtility: ColorImage V2","LoadVideo","Paste By Mask","PreviewImage","ResolutionSelector","SaveVideo","Video Slice"]},"template_image_speech_to_video":{"models":["gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-lora-384.safetensors","ltx-2.3-id-lora-talkvid-3k.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","ElevenLabsInstantVoiceClone","ElevenLabsTextToSpeech","ElevenLabsVoiceSelector","EmptyLTXVLatentVideo","GeminiNode","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAudioVAEDecode","LTXVAudioVAEEncode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadAudio","LoadImage","LoraLoader","LoraLoaderModelOnly","ManualSigmas","PreviewAny","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","RegexExtract","ResizeImageMaskNode","ResizeImagesByLongerEdge","SamplerCustomAdvanced","SaveAudioMP3","SaveVideo","SetLatentNoiseMask","SolidMask","TextGenerateLTX2Prompt","TrimAudioDuration","VAEDecodeTiled"]},"template_ltx2_3_ic_lora_ingredients":{"models":["gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-ingredients-0.9.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyImage","EmptyLTXVLatentVideo","GetICLoRAParameters","GetImageSize","KSampler","LTXAVTextEncoderLoader","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVSeparateAVLatent","LoadImage","LoraLoader","LoraLoaderModelOnly","PreviewAny","PreviewImage","PrimitiveBoolean","PrimitiveInt","RepeatImageBatch","ResizeAndPadImage","SaveVideo","TextGenerateLTX2Prompt","VAEDecodeTiled"]},"template_ltx2_3_lora_googly_eyes":{"models":["gemma_3_12B_it.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-lora-384.safetensors","ltx-2.3-googlyeyes.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CM_FloatToInt","CheckpointLoaderSimple","ComfyMathExpression","EmptyLTXVLatentVideo","Float32ColorCorrect","GetImageSize","ImageConcanate","ImagePadKJ","ImageResizeKJv2","KSamplerSelect","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoConditionOnly","LTXVPreprocess","LTXVSeparateAVLatent","LoadImage","LoraLoaderModelOnly","ManualSigmas","PrimitiveBoolean","PrimitiveInt","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","VAEDecode","VAEDecodeTiled","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"template_ltx2_3_lora_remove_subtitles_from_video":{"models":["gemma_3_12B_it.safetensors","ltx-2.3-22b-dev.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx2.3-ic-subtitles-remove-general.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","EmptyLTXVLatentVideo","GetImageSize","GetImageSizeAndCount","GetVideoComponents","ImageResizeKJv2","ImageStitch","KSamplerSelect","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXFloatToInt","LTXICLoRALoaderModelOnly","LTXVAudioVAEDecode","LTXVAudioVAEEncode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVLatentUpsampler","LTXVSeparateAVLatent","LTXVSetAudioRefTokens","LTXVTiledVAEDecode","LatentUpscaleModelLoader","LoadVideo","ManualSigmas","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo"]},"template_ltx2_3_lora_restore_archival_footage":{"models":["gemma_3_12B_it.safetensors","ltx-2.3-22b-dev.safetensors","ltx-2.3-dearchive-lora_weights_step_05000.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","EmptyLTXVLatentVideo","GetImageSize","GetImageSizeAndCount","GetVideoComponents","ImageResizeKJv2","ImageStitch","KSamplerSelect","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXFloatToInt","LTXICLoRALoaderModelOnly","LTXVAudioVAEDecode","LTXVAudioVAEEncode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVLatentUpsampler","LTXVSeparateAVLatent","LTXVSetAudioRefTokens","LTXVTiledVAEDecode","LatentUpscaleModelLoader","LoadVideo","ManualSigmas","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo"]},"template_ltx2_3_lora_video_outpainting":{"models":["gemma_3_12B_it.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-lora-384.safetensors","ltx-2.3-22b-ic-lora-outpaint.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CM_FloatToInt","CheckpointLoaderSimple","ComfyMathExpression","EmptyLTXVLatentVideo","Float32ColorCorrect","GetImageSize","ImageConcanate","ImagePadKJ","KSamplerSelect","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoConditionOnly","LTXVPreprocess","LTXVSeparateAVLatent","LoadImage","LoraLoaderModelOnly","ManualSigmas","PrimitiveBoolean","PrimitiveInt","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","VAEDecode","VAEDecodeTiled","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"template_ltx2_3_obscura_remova_lora_remove_object_from_video":{"models":["LTX23_audio_vae_bf16.safetensors","LTX23_video_vae_bf16.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev_transformer_only_bf16.safetensors","ltx-2.3-22b-distilled-lora-384-1.1.safetensors","ltx-2.3_text_projection_bf16.safetensors","ltx23-obscura_remova.safetensors"],"nodes":["CLIPTextEncode","ComfyMathExpression","ComfyNumberConvert","CreateVideo","DualCLIPLoader","EmptyLTXVLatentVideo","GetImageSize","GetVideoComponents","ImageFromBatch","ImageStitch","KSampler","LTXAddVideoICLoRAGuide","LTXVAudioVAEDecode","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVSeparateAVLatent","LoadVideo","LoraLoaderModelOnly","PreviewAny","PrimitiveInt","ResizeImageMaskNode","SaveVideo","UNETLoader","VAEDecode","VAELoaderKJ","VHS_GetImageCount"]},"template_ltx2_3_remove_watermark_from_video":{"models":["gemma_3_12B_it.safetensors","ltx-2.3-22b-dev.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx2.3-ic-watermark-remove-general.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","EmptyLTXVLatentVideo","GetImageSize","GetImageSizeAndCount","GetVideoComponents","ImageResizeKJv2","ImageStitch","KSamplerSelect","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXFloatToInt","LTXICLoRALoaderModelOnly","LTXVAudioVAEDecode","LTXVAudioVAEEncode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVLatentUpsampler","LTXVSeparateAVLatent","LTXVSetAudioRefTokens","LTXVTiledVAEDecode","LatentUpscaleModelLoader","LoadVideo","ManualSigmas","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo"]},"template_ltx2_3_style_transition":{"models":["gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx2.3-transition.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","EmptyLTXVLatentVideo","GetImageSize","LTXAVTextEncoderLoader","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVPreprocess","LTXVSeparateAVLatent","LoadImage","LoraLoaderModelOnly","ManualSigmas","PrimitiveInt","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SamplerEulerAncestral","SaveVideo","VAEDecodeTiled"]},"template_outpaint_to_any_aspect_ratio_nano_banana_pro":{"models":[],"nodes":["ComfyMathExpression","EmptyImage","FluxResolutionNode","GeminiImage2Node","GetImageSize","ImageCompare","ImageCompositeMasked","ImagePadForOutpaint","ImageResize+","ImageResizeKJv2","LoadImage","PreviewImage","PrimitiveInt","SaveImage"]},"template_product_placement":{"models":[],"nodes":["GeminiNanoBanana2V2","GeminiNode","KlingVideoNode","LoadImage","PreviewAny","PreviewImage","SaveVideo"]},"template_purz_nb2_single_image_sprite_sheet":{"models":[],"nodes":["BatchImagesNode","BiRefNetRMBG","GeminiNanoBanana2","GetImageSize","Image Crop Location","LoadImage","PreviewAny","SaveImage","SaveImageWithAlpha","SimpleMath+","SplitImageWithAlpha","VHS_VideoCombine"]},"template_purz_wan22_animate_auto_character_replace":{"models":["Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors","WanAnimate_relight_lora_fp16.safetensors","clip_vision_h.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","sam2.1_hiera_base_plus.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","vitpose-l-wholebody.onnx","wan_2.1_vae.safetensors","yolov10m.onnx"],"nodes":["BlockifyMask","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","DownloadAndLoadSAM2Model","DrawMaskOnImage","DrawViTPose","GetImageSize","GrowMaskWithBlur","ImageFromBatch","ImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","OnnxDetectionModelLoader","PoseAndFaceDetection","PrimitiveInt","Sam2Segmentation","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","VHS_LoadVideo","VHS_VideoInfo","WanAnimateToVideo"]},"template_qwen_Image_2512_360_lora":{"models":["Qwen-Image-2512-Lightning-4steps-V1.0-fp32.safetensors","qwen-360-diffusion-2512-int8-bf16-v2.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_2512_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfySwitchNode","EmptySD3LatentImage","KSampler","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","SaveImage","StringConcatenate","UNETLoader","VAEDecode","VAELoader"]},"template_qwen_image_edit_2511_systms_action":{"models":["QWEN_EDIT_ACTION_V1.safetensors","Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2511_bf16.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"template_qwen_image_illustration_lora":{"models":["illustration-1.0-qwen-image.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptySD3LatentImage","KSampler","LoraLoaderModelOnly","ModelSamplingAuraFlow","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"template_qwen_multiangle.app":{"models":["Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors","qwen-image-edit-2511-multiple-angles-lora.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2511_int8_convrot.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","CameraAngle","ComfySwitchNode","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"template_rob_realistic_2k_images_quick_variations":{"models":["RealESRGAN_x4plus.safetensors","ae.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["AILab_QwenVL","CLIPLoader","CLIPTextEncode","GrokImageNode","ImageCompare","ImageRemoveAlpha+","ImageScaleBy","ImageScaleToTotalPixels","ImageUpscaleWithModel","KSampler","LoadImage","ModelSamplingAuraFlow","PreviewAny","SaveImage","StringConcatenate","UNETLoader","UpscaleModelLoader","VAEDecode","VAEEncode","VAELoader"]},"template_rob_split_stack_qwen_multi_wan22":{"models":["Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors","qwen-image-edit-2511-multiple-angles-lora.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2511_bf16.safetensors","qwen_image_vae.safetensors","rife49.pth","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors","wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","CLIPTextEncode","ComfySwitchNode","CreateVideo","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","GetVideoComponents","ImageStitch","KSampler","KSamplerAdvanced","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","ModelSamplingSD3","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","QwenMultiangleCameraNode","RIFE VFI","ResizeImageMaskNode","SaveImage","SaveVideo","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader","WanImageToVideo"]},"template_seedance2_0_viral_videos_character_swap":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","GeminiNodeV3","GetVideoComponents","ImageFromBatch","LoadImage","LoadVideo","OpenAIGPTImageNodeV2","PreviewAny","SaveImage","SaveVideo","StringConcatenate","Video Slice"]},"template_seedance2_storyboard_to_video":{"models":[],"nodes":["ByteDance2ReferenceNodeV2","GeminiNodeV3","ImageStitch","LoadImage","OpenAIGPTImageNodeV2","PreviewAny","SaveImage","SaveVideo","StringConcatenate"]},"template_seedance_2_0_plus_llm_prompt_helper":{"models":[],"nodes":["ByteDance2ReferenceNode","GeminiNode","ImageStitch","LoadImage","PreviewAny","PreviewImage","SaveVideo"]},"template_sferro21_product_ad.app":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","LoadImage","SaveImage"]},"template_sirolim_any_aspect_ratio_nb2":{"models":[],"nodes":["FluxResolutionNode","GeminiNanoBanana2","Get Image Size","ImageCompositeMasked","ImageRemoveAlpha+","ImageToMask","InvertMask","LayerUtility: ColorImage V2","LoadImage","MaskComposite","Paste By Mask","PreviewImage"]},"template_sirolim_image_script_video":{"models":[],"nodes":["GeminiNanoBanana2","GeminiNode","KlingOmniProImageToVideoNode","LoadImage","OpenAIChatConfig","OpenAIChatNode","PreviewAny","PreviewImage","SaveVideo"]},"template_sirolim_seamless_loop":{"models":["Wan21_T2V_14B_lightx2v_cfg_step_distill_lora_rank32.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_vace_14B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","CLIPTextEncode","CreateVideo","ImageBatch","ImageFromBatch","ImageResize+","ImageToMask","KSampler","LayerUtility: ColorImage V2","LoraLoaderModelOnly","OpenAIChatNode","PreviewAny","PrimitiveInt","ReverseImageBatch","SaveVideo","SimpleMath+","UNETLoader","UNetTemporalAttentionMultiply","VAEDecode","VAELoader","VHS_DuplicateImages","VHS_LoadVideo","VHS_VideoCombine","WanVaceToVideo"]},"template_sugar_coated_gummy_style_qwen":{"models":["gummycandy_qwen.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptySD3LatentImage","KSampler","LoraLoaderModelOnly","ModelSamplingAuraFlow","PreviewAny","SaveImage","StringConcatenate","UNETLoader","VAEDecode","VAELoader"]},"templates-1_click_multiple_character_angles-v1.0":{"models":["Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors","qwen-image-edit-2511-multiple-angles-lora.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2511_bf16.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates-1_click_multiple_scene_angles-v1.0":{"models":["Qwen-Edit-2509-Multiple-angles.safetensors","Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2509_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ImageScaleToTotalPixels","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PreviewImage","PrimitiveStringMultiline","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates-1_input-multiple_styles_prompt.app":{"models":[],"nodes":["GrokImageEditNodeV2","LoadImage","SaveImage"]},"templates-2x2_grid-character_bg_product":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","GetImageSize","ImageBatchMulti","ImageCrop","ImageFromBatch","ImageResizeKJv2","LoadImage","PreviewImage","PrimitiveInt","ResizeAndPadImage","SaveImage","SimpleMath+"]},"templates-2x2_grid-iso_miniatures":{"models":[],"nodes":["GeminiImage2Node","GetImageSize","ImageBatchMulti","ImageCrop","ImageResizeKJv2","LoadImage","PreviewAny","PreviewImage","PrimitiveInt","PrimitiveStringMultiline","RegexReplace","SaveImage","SimpleMath+","StringConcatenate"]},"templates-3D_logo_texture_animation":{"models":[],"nodes":["BatchImagesNode","ByteDanceFirstLastFrameNode","GeminiImage2Node","GeminiNode","LoadImage","PreviewAny","SaveImage","SaveVideo"]},"templates-3x3_grid_brand_icons":{"models":[],"nodes":["GeminiImage2Node","GetImageSize","ImageBatchMulti","ImageCrop","LoadImage","PreviewImage","PrimitiveInt","PrimitiveStringMultiline","RegexReplace","SaveImage","SimpleMath+"]},"templates-6-key-frames":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors","wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","CLIPTextEncode","CreateVideo","KSamplerAdvanced","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanFirstLastFrameToVideo"]},"templates-8x8_grid-pfp":{"models":[],"nodes":["GeminiImage2Node","GetImageSize","ImageBatch","ImageBatchMulti","ImageCrop","ImageFromBatch","LoadImage","PreviewImage","PrimitiveInt","ResizeAndPadImage","SaveImage","SimpleMath+"]},"templates-9grid_social_media-v2.0":{"models":[],"nodes":["GeminiImage2Node","GetImageSize","ImageBatch","ImageBatchMulti","ImageCrop","ImageFromBatch","LoadImage","PreviewImage","PrimitiveInt","ResizeAndPadImage","SaveImage","SimpleMath+"]},"templates-all_in_one-image_edit_models":{"models":["flux-2-klein-base-4b-fp8.safetensors","flux2-vae.safetensors","flux2_dev_fp8mixed.safetensors","mistral_3_small_flux2_bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_3_4b.safetensors","qwen_image_edit_2511_bf16.safetensors","qwen_image_vae.safetensors"],"nodes":["BasicGuider","ByteDanceSeedreamNode","CFGGuider","CFGNorm","CLIPLoader","CLIPTextEncode","EmptyFlux2LatentImage","Flux2Scheduler","FluxGuidance","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","GeminiImage2Node","GetImageSize","GrokImageEditNode","ImageScaleToTotalPixels","KSampler","KSamplerSelect","LoadImage","ModelSamplingAuraFlow","OpenAIGPTImage1","PrimitiveStringMultiline","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates-assemble_dieline":{"models":[],"nodes":["GeminiImage2Node","LoadImage","SaveImage"]},"templates-car_product":{"models":[],"nodes":["BatchImagesNode","ByteDanceSeedreamNodeV3","CreateVideo","GeminiNodeV3","GetVideoComponents","KlingFirstLastFrameNode","LoadImage","PreviewAny","RegexExtract","SaveImage","SaveVideo"]},"templates-character_sheet":{"models":[],"nodes":["GeminiImage2Node","ImageStitch","LoadImage","SaveImage"]},"templates-color_illustration":{"models":[],"nodes":["GeminiImage2Node","LoadImage","SaveImage"]},"templates-fashion_shoot_prompt_doodle":{"models":[],"nodes":["GeminiImage2Node","GetImageSize","ImageBatch","ImageBatchMulti","ImageCrop","ImageFromBatch","ImageResizeKJv2","LoadImage","PreviewImage","PrimitiveInt","PrimitiveStringMultiline","RegexReplace","SaveImage","SimpleMath+"]},"templates-fashion_shoot_vton":{"models":[],"nodes":["GeminiImage2Node","GetImageSize","ImageBatch","ImageBatchMulti","ImageCrop","ImageFromBatch","ImageResizeKJv2","LoadImage","PreviewImage","PrimitiveInt","PrimitiveStringMultiline","ResizeAndPadImage","SaveImage","SimpleMath+"]},"templates-image_to_real":{"models":["Qwen-Image-Edit-2509-Anything2RealAlpha.safetensors","Qwen-Image-Edit-2509-Lightning-8steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2509_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates-led_billboard":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","GetImageSize","ImagePadForOutpaint","ImageScaleToTotalPixels","KlingFirstLastFrameNode","LoadImage","PreviewImage","PrimitiveInt","PrimitiveStringMultiline","RegexReplace","ResizeAndPadImage","SaveImage","SaveVideo","SimpleMath+"]},"templates-multiple_consistent_shots-nb_pro":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","GeminiNode","LoadImage","PreviewAny","PreviewImage","PrimitiveInt","PrimitiveStringMultiline","RegexExtract","RegexReplace","SaveImage","SimpleMath+","SomethingToString"]},"templates-photo_to_product_vid":{"models":[],"nodes":["ByteDanceSeedreamNode","CreateVideo","GetVideoComponents","ImageBatch","LoadImage","MinimaxHailuoVideoNode","SaveImage","SaveVideo"]},"templates-portrait_light_migration":{"models":["Qwen-Image-Edit-2509-Light-Migration.safetensors","Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2509_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","FluxKontextImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates-poster_product_integration":{"models":[],"nodes":["BatchImagesNode","ByteDanceSeedreamNode","GeminiNode","GetImageSize","ImageRemoveBackground+","LoadImage","PreviewAny","PreviewImage","RemBGSession+","ResizeAndPadImage","SaveImage"]},"templates-poster_to_2x2_mockups-v2.0":{"models":[],"nodes":["GeminiImage2Node","GetImageSize","ImageBatch","ImageBatchMulti","ImageCrop","ImageFromBatch","LoadImage","PreviewImage","PrimitiveInt","PrimitiveStringMultiline","RegexReplace","ResizeAndPadImage","SaveImage","SimpleMath+"]},"templates-product_ad-v2.0":{"models":[],"nodes":["GeminiImage2Node","GetImageSize","ImageBatch","LoadImage","PrimitiveStringMultiline","RegexReplace","ResizeAndPadImage","SaveImage"]},"templates-product_scene_relight":{"models":[],"nodes":["BatchImagesNode","ByteDanceSeedreamNode","GetImageSize","LoadImage","PrimitiveStringMultiline","RegexReplace","ResizeAndPadImage","SaveImage"]},"templates-qwen_image_edit-crop_and_stitch-fusion":{"models":["Qwen-Image-Edit-2509-Fusion.safetensors","Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2509_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","FluxKontextImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates-split_stack":{"models":[],"nodes":["GeminiImage2Node","GetImageSize","ImageBatch","ImageBatchMulti","ImageCrop","ImageFromBatch","LoadImage","PreviewImage","PrimitiveInt","PrimitiveStringMultiline","RegexReplace","ResizeAndPadImage","SaveImage","SimpleMath+"]},"templates-sprite_sheet":{"models":[],"nodes":["BatchImagesNode","ColorToMask","CreateVideo","CropMask","GeminiImage2Node","GetImageSize","ImageBatchMulti","ImageCompositeMasked","ImageCrop","ImageFromBatch","ImagePadForOutpaintMasked","ImageResizeKJv2","InvertMask","LayerUtility: ColorImage V2","LoadImage","MaskBoundingBox+","MaskPreview+","PreviewImage","PrimitiveInt","RepeatImageBatch","SaveImage","SaveVideo","SimpleMath+","SplitImageWithAlpha"]},"templates-stitched_vid_contact_sheet":{"models":[],"nodes":["AudioMerge","BatchImagesNode","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyAudio","GeminiImage2Node","GeminiNode","GetImageSize","GetImagesFromBatchIndexed","GetVideoComponents","ImageBatch","ImageBatchMulti","ImageCrop","ImageFromBatch","ImageResizeKJv2","KlingStartEndFrameNode","LoadImage","PreviewAny","PreviewImage","PrimitiveBoolean","PrimitiveInt","PrimitiveStringMultiline","RegexReplace","ResizeAndPadImage","SaveImage","SaveVideo","SimpleMath+"]},"templates-subject_holding_product.app":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","GetImageSize","LoadImage","ResizeAndPadImage","SaveImage"]},"templates-subject_product_swap.app":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","GetImageSize","LoadImage","ResizeAndPadImage","SaveImage"]},"templates-textured_logo_elements":{"models":[],"nodes":["BatchImagesNode","ByteDanceImageToVideoNode","GeminiImage2Node","GetImageSize","LoadImage","ResizeAndPadImage","SaveImage","SaveVideo"]},"templates-textured_logotype-v2.1":{"models":[],"nodes":["ByteDanceFirstLastFrameNode","GeminiImage2Node","GeminiImageNode","GetImageSize","ImageBatch","LoadImage","ResizeAndPadImage","SaveImage","SaveVideo"]},"templates-wan2_1_infinitetalk_music":{"models":["Wan2_1-InfiniTetalk-Single_fp16.safetensors","Wan2_1_VAE_bf16.safetensors","clip_vision_h.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","umt5-xxl-enc-bf16.safetensors","wan2.1_i2v_480p_14B_fp16.safetensors"],"nodes":["AudioSeparation","CLIPVisionLoader","CreateVideo","DownloadAndLoadWav2VecModel","GetImageSizeAndCount","ImageResizeKJv2","LoadAudio","LoadImage","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","SaveVideo","WanVideoClipVisionEncode","WanVideoDecode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader"]},"templates_3d_match_game_art_style.app":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","ImageCompare","LoadImage","PrimitiveStringMultiline","RecraftRemoveBackgroundNode","SaveImage","StringConcatenate"]},"templates_all_in_one_image_edit_models.app":{"models":["flux-2-klein-base-4b-fp8.safetensors","flux-2-klein-base-9b-fp8.safetensors","flux2-vae.safetensors","flux2_dev_fp8mixed.safetensors","mistral_3_small_flux2_bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_3_4b.safetensors","qwen_3_8b_fp8mixed.safetensors","qwen_image_edit_2511_bf16.safetensors","qwen_image_vae.safetensors"],"nodes":["BasicGuider","ByteDanceSeedreamNode","CFGGuider","CFGNorm","CLIPLoader","CLIPTextEncode","EmptyFlux2LatentImage","Flux2Scheduler","FluxGuidance","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","GeminiImage2Node","GeminiNanoBanana2","GetImageSize","GrokImageEditNode","ImageScaleToTotalPixels","KSampler","KSamplerSelect","LoadImage","ModelSamplingAuraFlow","OpenAIGPTImage1","PrimitiveStringMultiline","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates_doc_workbox_klein_9b_image_extend":{"models":["flux-2-klein-9b.safetensors","flux2-vae.safetensors","qwen_3_8b.safetensors"],"nodes":["CFGGuider","CLIPLoader","CLIPTextEncode","ColorMatch","ConditioningZeroOut","DrawMaskOnImage","EmptyFlux2LatentImage","Flux2Scheduler","GetImageSize","ImageCompare","ImagePadForOutpaint","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates_doc_workbox_poster_recreator":{"models":[],"nodes":["ComfySwitchNode","GeminiImage2Node","LoadImage","PrimitiveStringMultiline","SaveImage","StringConcatenate"]},"templates_graphic_design_recomposer":{"models":[],"nodes":["ComfySwitchNode","CustomCombo","GeminiImage2Node","GeminiNanoBanana2V2","LoadImage","PrimitiveStringMultiline","SaveImage","StringCompare"]},"templates_hellorob_facegen_skindetail_upscale":{"models":["8xNMKDFaces160000G_v10.pt","Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors","ae.safetensors","ema_vae_fp16.safetensors","face_yolov8m.pt","qwen_3_4b.safetensors","sdxl-better_freckles.safetensors","sdxl-skin_realism_acne_skin_details_imperfections.safetensors","seedvr2_ema_7b_fp16.safetensors","z_image_turbo_bf16.safetensors","zimage-grainscape_ultrareal.safetensors"],"nodes":["BBoxDetect(FaceParsing)","BBoxDetectorLoader(FaceParsing)","BBoxListItemSelect(FaceParsing)","CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfySwitchNode","ConditioningZeroOut","EmptySD3LatentImage","FaceParse(FaceParsing)","FaceParsingModelLoader(FaceParsing)","FaceParsingProcessorLoader(FaceParsing)","FaceParsingResultsParser(FaceParsing)","GetImageSize","GrowMaskWithBlur","ImageCompare","ImageCompositeMasked","ImageCropWithBBox(FaceParsing)","ImageInsertWithBBox(FaceParsing)","ImageResizeKJv2","ImpactCompare","KSampler","LayerUtility: If ","LoadImage","LoraLoaderModelOnly","MaskPreview","ModelSamplingAuraFlow","PreviewImage","PrimitiveFloat","SaveImage","SeedVR2LoadDiTModel","SeedVR2LoadVAEModel","SeedVR2VideoUpscaler","SimpleMath+","UNETLoader","UltimateSDUpscale","UpscaleModelLoader","VAEDecode","VAELoader"]},"templates_ingi_infl8":{"models":["Qwen_Image_Edit_2511-SYSTMS_INFL8.safetensors","Wan2_1_VAE_fp32.safetensors","WanAnimate_relight_lora_fp16.safetensors","clip_vision_h.safetensors","lightx2v_14B_T2V_cfg_step_distill_lora_adaptive_rank_quantile_0.15_bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2511_bf16.safetensors","qwen_image_vae.safetensors","sam2.1_hiera_large.safetensors","umt5-xxl-enc-bf16.safetensors","vitpose-l-wholebody.onnx","wan2.2_animate_14B_bf16.safetensors","yolov10m.onnx"],"nodes":["BlockifyMask","CFGNorm","CLIPLoader","CLIPVisionLoader","ComfyMathExpression","DownloadAndLoadSAM2Model","DrawMaskOnImage","DrawViTPose","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","GetImageRangeFromBatch","GrowMaskWithBlur","ImageResizeKJv2","KSampler","LoadWanVideoT5TextEncoder","LoraLoaderModelOnly","ModelSamplingAuraFlow","OnnxDetectionModelLoader","PoseAndFaceDetection","Sam2Segmentation","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo","WanVideoAnimateEmbeds","WanVideoClipVisionEncode","WanVideoDecode","WanVideoLoraSelectMulti","WanVideoModelLoader","WanVideoSamplerv2","WanVideoSchedulerv2","WanVideoTextEncode","WanVideoVAELoader"]},"templates_liveportrait.app":{"models":[],"nodes":["DownloadAndLoadLivePortraitModels","ImageResizeKJv2","LivePortraitComposite","LivePortraitCropper","LivePortraitLoadMediaPipeCropper","LivePortraitProcess","LoadImage","SaveImage","VHS_LoadVideo","VHS_VideoCombine"]},"templates_mjm_Injected":{"models":["AnimateLCM_sd15_t2v.ckpt","film_net_fp32.pt","realismByStableYogi_v4LCM.safetensors"],"nodes":["ADE_AnimateDiffLoaderWithContext","ADE_AnimateDiffSamplingSettings","ADE_LoopedUniformContextOptions","ADE_MultivalDynamic","ADE_NoisedImageInjection","AILab_QwenVL","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","FILM VFI","GetImageSizeAndCount","INTConstant","ImageBlur","ImageScale","ImageToMask","KSampler","LoadImage","PreviewAny","PrimitiveInt","RepeatLatentBatch","SaveVideo","VAEDecode","VAEEncode","VHS_LoadVideo","VHS_VideoCombine"]},"templates_mjm_airt_machIne":{"models":["4x-UltraSharp.safetensors","Z-Image_Turbo_MJM_Cartoon_Red_Background.safetensors","Z-Image_Turbo_MJM_Colorful_Samurai_Reg_mjmclrsmr.safetensors","ae.safetensors","qwen_3_4b.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_1022.safetensors","wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_1022.safetensors","wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors","wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors","wan_2.1_vae.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["AILab_QwenVL","BatchImagesNode","CLIPLoader","CLIPTextEncode","ConditioningZeroOut","CreateVideo","EmptySD3LatentImage","ImageBatchMulti","ImageResizeKJv2","ImageUpscaleWithModelBatched","ImpactStringSelector","KSampler","KSamplerAdvanced","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","ModelSamplingSD3","PreviewAny","PreviewImage","PrimitiveFloat","PrimitiveInt","SaveImage","SaveVideo","UNETLoader","UpscaleModelLoader","VAEDecode","VAEEncode","VAELoader","VHS_VideoCombine","WanFirstLastFrameToVideo"]},"templates_mjm_airt_machine_api":{"models":["4x-UltraSharp.safetensors","Z-Image_Turbo_MJM_Cartoon_Red_Background.safetensors","Z-Image_Turbo_MJM_Colorful_Samurai_Reg_mjmclrsmr.safetensors","ae.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptySD3LatentImage","GeminiNode","GetVideoComponents","ImageBatchMulti","ImageResizeKJv2","ImageUpscaleWithModelBatched","ImpactStringSelector","KSampler","KlingFirstLastFrameNode","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PreviewAny","PreviewImage","PrimitiveInt","SaveImage","SaveVideo","UNETLoader","UpscaleModelLoader","VAEDecode","VAEEncode","VAELoader","VHS_VideoCombine"]},"templates_mjm_image_to_3d":{"models":[],"nodes":["BatchImagesNode","GeminiNanoBanana2","LoadImage","Preview3D","SaveGLB","SaveImage","TripoImageToModelNode"]},"templates_mjm_looped_restyler":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors","wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","CLIPTextEncode","CreateVideo","GeminiImageNode","GeminiNodeV3","GetImageSize","GetVideoComponents","ImageScaleToTotalPixels","ImageStitch","KSamplerAdvanced","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","PreviewImage","SaveVideo","SplitImageWithAlpha","UNETLoader","VAEDecode","VAELoader","WanFirstLastFrameToVideo"]},"templates_ohneis_i2v":{"models":["ae.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptySD3LatentImage","GeminiImage2Node","KSampler","KlingImageToVideoWithAudio","ModelSamplingAuraFlow","SaveImage","SaveVideo","UNETLoader","VAEDecode","VAELoader"]},"templates_product_scene_transformation":{"models":["depth_anything_v2_vitl_fp32.safetensors","lightx2v_14B_T2V_cfg_step_distill_lora_adaptive_rank_quantile_0.15_bf16.safetensors","umt5_xxl_fp16.safetensors","wan2.1_vace_14B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","CLIPTextEncode","CM_IntToFloat","CreateVideo","DepthAnything_V2","DownloadAndLoadDepthAnythingV2Model","GeminiImage2Node","GetImageRangeFromBatch","GetImageSize","GetVideoComponents","ImageBatchMulti","ImageCrop","ImageFromBatch","ImageRemoveAlpha+","ImageRemoveBackground+","ImageResize+","ImageResizeKJv2","KSampler","KlingVideoNode","LoadImage","LoraLoaderModelOnly","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RemBGSession+","ResizeAndPadImage","SaveImage","SaveVideo","SimpleMath+","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","VHS_SelectEveryNthImage","WanVaceToVideo"]},"templates_purz_animatediff_simple_weighted_ipadapters_looping_animation":{"models":["AnimateLCM_sd15_t2v.ckpt","realismByStableYogi_v4LCM.safetensors"],"nodes":["ADE_AnimateDiffSamplingSettings","ADE_ApplyAnimateDiffModelSimple","ADE_LoadAnimateDiffModel","ADE_LoopedUniformContextOptions","ADE_MultivalDynamic","ADE_UseEvolvedSampling","CLIPTextEncode","CheckpointLoaderSimple","EmptyLatentImage","GetImageSizeAndCount","IPAdapterBatch","IPAdapterUnifiedLoader","IPAdapterWeights","ImageBatchMulti","ImageScaleToTotalPixels","ImageStitch","KSampler","LoadImage","PatchModelAddDownscale","RepeatImageBatch","VAEDecode","VHS_VideoCombine"]},"templates_purz_batch_generation":{"models":["ae.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptySD3LatentImage","FL_PromptMulti","KSampler","ModelSamplingAuraFlow","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"templates_purz_crossfade":{"models":[],"nodes":["FL_VideoCrossfade","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"templates_purz_image_glitch":{"models":[],"nodes":["FL_Glitch","LoadImage","SaveImage"]},"templates_purz_pixel_sort_image":{"models":[],"nodes":["FL_PixelSort","LoadImage","SaveImage"]},"templates_purz_wan22_animate_auto_full_scene":{"models":["Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors","WanAnimate_relight_lora_fp16.safetensors","clip_vision_h.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","sam2.1_hiera_base_plus.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","vitpose-l-wholebody.onnx","wan_2.1_vae.safetensors","yolov10m.onnx"],"nodes":["BlockifyMask","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","DownloadAndLoadSAM2Model","DrawMaskOnImage","DrawViTPose","GeminiNanoBanana2V2","GetImageSizeAndCount","GrowMaskWithBlur","ImageFromBatch","ImageScale","KSampler","LoraLoaderModelOnly","ModelSamplingSD3","OnnxDetectionModelLoader","PoseAndFaceDetection","PrimitiveInt","Sam2Segmentation","SaveImage","SaveVideo","StringConcatenate","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","VHS_LoadVideo","VHS_VideoInfo","WanAnimateToVideo"]},"templates_rob_fashion_shoot_vton-4in1.app":{"models":[],"nodes":["BatchImagesNode","GeminiImage2Node","GetImageSize","ImageBatchMulti","ImageCrop","ImageResizeKJv2","LoadImage","PrimitiveInt","PrimitiveStringMultiline","ResizeAndPadImage","SaveImage","SimpleMath+"]},"templates_rob_image_to_real.app":{"models":["Qwen-Image-Edit-2509-Anything2RealAlpha.safetensors","Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2509_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","FluxKontextImageScale","ImageCompare","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates_rob_kling3_0_multishot_llm_product":{"models":[],"nodes":["BatchImagesNode","ComfySwitchNode","GeminiNodeV3","GetImageSize","KlingOmniProImageToVideoNode","LoadImage","PreviewAny","PrimitiveInt","PrimitiveString","PrimitiveStringMultiline","RegexExtract","RegexReplace","ResizeAndPadImage","SaveVideo","SomethingToString","StringCompare","StringToInt","Text Multiline"]},"templates_rob_portrait_light_migration.app":{"models":["Qwen-Image-Edit-2509-Light-Migration.safetensors","Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_edit_2509_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","ComfySwitchNode","FluxKontextImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates_rob_realistic_2k_images_quick_variations.app":{"models":["RealESRGAN_x4plus.safetensors","ae.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["AILab_QwenVL","CLIPLoader","CLIPTextEncode","GrokImageNode","ImageCompare","ImageRemoveAlpha+","ImageScaleBy","ImageScaleToTotalPixels","ImageUpscaleWithModel","KSampler","LoadImage","ModelSamplingAuraFlow","PreviewAny","SaveImage","StringConcatenate","UNETLoader","UpscaleModelLoader","VAEDecode","VAEEncode","VAELoader"]},"templates_rob_wan_ati_motion_control":{"models":["Wan21-WanMove_fp8_scaled_e4m3fn_KJ.safetensors","clip_vision_h.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","ComfySwitchNode","CreateVideo","FL_PathAnimator","GetImageSize","GetImageSizeAndCount","ImageResizeKJv2","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","RepeatImageBatch","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanMoveTrackToVideo","WanMoveTracksFromCoords"]},"templates_shane_change_any_objects":{"models":["Wan21_CausVid_14B_T2V_lora_rank32_v2.safetensors","Wan2_1_VAE_bf16.safetensors","sam3.pt","umt5-xxl-enc-bf16.safetensors","wan2.1_vace_14B_fp16.safetensors"],"nodes":["GrowMaskWithBlur","INTConstant","ImageCompositeMasked","ImageConstant","ImageResize+","LoadImage","LoadSAM3Model","LoadWanVideoT5TextEncoder","MaskBlur+","SAM3Propagate","SAM3VideoOutput","SAM3VideoSegmentation","TextBox1","VHS_LoadVideo","VHS_VideoCombine","WanVideoDecode","WanVideoExperimentalArgs","WanVideoLoraSelect","WanVideoModelLoader","WanVideoSLG","WanVideoSampler","WanVideoTextEncode","WanVideoTorchCompileSettings","WanVideoVACEEncode","WanVideoVAELoader"]},"templates_shane_single_image_to_3d_model":{"models":["Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors","qwen-image-edit-2511-multiple-angles-lora.safetensors","qwen_2.5_vl_7b.safetensors","qwen_image_edit_2511_bf16.safetensors","qwen_image_vae.safetensors"],"nodes":["CFGNorm","CLIPLoader","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","Preview3D","QwenMultiangleCameraNode","SaveImage","TencentImageToModelNode","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"]},"templates_shane_video_restyle":{"models":["Wan21_CausVid_14B_T2V_lora_rank32.safetensors","Wan2_1-VACE_module_14B_bf16.safetensors","Wan2_1_VAE_bf16.safetensors","depth_anything_v2_vitl_fp32.safetensors","umt5-xxl-enc-bf16.safetensors","wan2.1_vace_14B_fp16.safetensors"],"nodes":["CannyEdgePreprocessor","DepthAnything_V2","DownloadAndLoadDepthAnythingV2Model","INTConstant","ImageResizeKJv2","LoadImage","LoadWanVideoT5TextEncoder","VHS_LoadVideo","VHS_VideoCombine","WanVideoDecode","WanVideoEncode","WanVideoExperimentalArgs","WanVideoLoraSelect","WanVideoModelLoader","WanVideoSLG","WanVideoSampler","WanVideoTextEncode","WanVideoTorchCompileSettings","WanVideoVACEEncode","WanVideoVACEModelSelect","WanVideoVAELoader"]},"templates_text_prompt_to_360hdr.app":{"models":["ema_vae_fp16.safetensors","qwen-360-diffusion-2512-int8-bf16-v2.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_image_2512_bf16.safetensors","qwen_image_vae.safetensors","seedvr2_ema_3b_fp16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptySD3LatentImage","GetImageSize","ImpactCompare","KSampler","LayerUtility: If ","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveStringMultiline","SaveImage","SeedVR2LoadDiTModel","SeedVR2LoadVAEModel","SeedVR2VideoUpscaler","SimpleMath+","StringConcatenate","UNETLoader","VAEDecode","VAELoader"]},"text_to_video_wan":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_t2v_1.3B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CreateVideo","EmptyHunyuanLatentVideo","KSampler","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader"]},"txt_to_image_to_video":{"models":["sd_xl_base_1.0.safetensors","svd_xt.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyLatentImage","ImageOnlyCheckpointLoader","KSampler","PreviewImage","SVD_img2vid_Conditioning","SaveVideo","VAEDecode","VideoLinearCFGGuidance"]},"utility-audioseparation":{"models":[],"nodes":["AudioStemSeparate","LoadAudio","SaveAudioAdvanced"]},"utility-bria_remove_video_background":{"models":[],"nodes":["BriaRemoveVideoBackground","LoadVideo","SaveVideo"]},"utility-depthAnything-v2-relative-video":{"models":["depth_anything_v2_vitl_fp32.safetensors"],"nodes":["DepthAnything_V2","DownloadAndLoadDepthAnythingV2Model","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"utility-frame_interpolation-film":{"models":["film_net_fp32.pt"],"nodes":["FILM VFI","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"utility-gan_upscaler":{"models":["RealESRGAN_x4plus.safetensors"],"nodes":["CreateVideo","GetVideoComponents","ImageUpscaleWithModel","LoadVideo","SaveVideo","UpscaleModelLoader"]},"utility-lineart-video":{"models":[],"nodes":["LineArtPreprocessor","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"utility-normal_crafter-video":{"models":[],"nodes":["NormalCrafterNode","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"utility-openpose-video":{"models":["dw-ll_ucoco_384_bs5.torchscript.pt","yolox_l.onnx"],"nodes":["DWPreprocessor","VHS_LoadVideo","VHS_VideoCombine"]},"utility-topaz_landscape_upscaler":{"models":[],"nodes":["GetImageSize","ImageCompare","ImageScaleBy","LoadImage","SaveImage","TopazImageEnhanceV2"]},"utility_birefnet_remove_background":{"models":["birefnet.safetensors"],"nodes":["InvertMask","JoinImageWithAlpha","LoadBackgroundRemovalModel","LoadImage","MaskPreview","PreviewImage","RemoveBackground"]},"utility_bria_increase_resolution":{"models":[],"nodes":["BriaIncreaseResolution","ImageCompare","LoadImage","SaveImageAdvanced"]},"utility_bria_remove_image_background":{"models":[],"nodes":["BriaRemoveImageBackground","ImageCompare","LoadImage","SaveImage"]},"utility_depth_anything3_image_depth_estimation":{"models":["depth_anything_3_mono_large.safetensors"],"nodes":["DA3Inference","DA3Render","ImageCompare","LoadDA3Model","LoadImage","PreviewImage"]},"utility_depth_anything3_video_depth_estimation":{"models":["depth_anything_3_mono_large.safetensors"],"nodes":["CreateVideo","DA3Inference","DA3Render","GetVideoComponents","LoadDA3Model","LoadVideo","PreviewImage","SaveVideo","Video Slice"]},"utility_face_detection_mediapipe":{"models":["mediapipe_face_fp32.safetensors"],"nodes":["DrawBBoxes","LoadImage","LoadMediaPipeFaceLandmarker","MaskPreview","MediaPipeFaceLandmarker","MediaPipeFaceMask","MediaPipeFaceMeshVisualize","PreviewImage"]},"utility_gimm_frame_interpolation":{"models":["gimmvfi_r_arb_lpips_fp32.safetensors"],"nodes":["ComfyMathExpression","DownloadAndLoadGIMMVFIModel","GIMMVFI_interpolate","PrimitiveInt","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"utility_hitpaw_general_image_enhance":{"models":[],"nodes":["HitPawGeneralImageEnhance","ImageCompare","LoadImage","SaveImage"]},"utility_hitpaw_video_enhance":{"models":[],"nodes":["HitPawVideoEnhance","LoadVideo","SaveVideo"]},"utility_image_segment_sam3":{"models":["sam3.1_multiplex_fp16.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","InvertMask","JoinImageWithAlpha","LoadImage","MaskPreview","PreviewImage","SAM3_Detect"]},"utility_image_segment_wevisone_vl":{"models":["wevisone_vl_2b_int8_convrot.safetensors"],"nodes":["CLIPLoader","DrawBBoxes","InvertMask","JoinImageWithAlpha","LoadImage","MaskPreview","PreviewImage","WeVisOneDetect"]},"utility_image_stitch":{"models":[],"nodes":["ImageStitch","LoadImage","ResizeImageMaskNode","SaveImage"]},"utility_image_upscale_supir":{"models":["SUPIR-v0Q_fp16.safetensors","juggernautXL_v9Rdphoto2Lightning.safetensors","qwen3.5_4b_bf16.safetensors"],"nodes":["BOOLConstant","BasicScheduler","CLIPLoader","CLIPTextEncodeSDXL","CheckpointLoaderSimple","ColorTransfer","ComfySwitchNode","EmptyLatentImage","GetImageSize","ImageCompare","KSamplerSelect","LoadImage","ModelPatchLoader","PreviewAny","PrimitiveStringMultiline","ResizeImageMaskNode","SUPIRApply","SamplerCustom","SaveImage","StringConcatenate","TextGenerate","VAEDecode"]},"utility_interpolation_image_upscale":{"models":[],"nodes":["ImageCompare","ImageScaleBy","LoadImage","SaveImage"]},"utility_moge3_geometry_estimation":{"models":["moge_3_vitg_fp16.safetensors"],"nodes":["LoadImage","LoadMoGeModel","MoGeInference","MoGeRender","PreviewImage"]},"utility_moge_depth_estimation":{"models":["moge_2_vitl_normal_fp16.safetensors"],"nodes":["ComfyMathExpression","ComfySwitchNode","GetImageSize","ImageToMask","LoadImage","LoadMoGeModel","MaskPreview","MoGeInference","MoGeRender","PreviewImage","ResizeImageMaskNode"]},"utility_nanobanana_pro_ai_image_fix":{"models":[],"nodes":["GeminiImage2Node","LoadImage","SaveImage"]},"utility_nanobanana_pro_illustration_upscale":{"models":[],"nodes":["GeminiImage2Node","LoadImage","SaveImage"]},"utility_nanobanana_pro_product_upscale":{"models":[],"nodes":["GeminiImage2Node","LoadImage","SaveImage"]},"utility_nvidia_rtx_video_enhance":{"models":[],"nodes":["ComfyMathExpression","CreateVideo","GetVideoComponents","LoadVideo","PrimitiveInt","RTXTrueHDR","RTXVideoFrameGeneration","RTXVideoSuperResolution","SaveImageAdvanced","SaveVideo"]},"utility_pid_latent_upscale_dit":{"models":["ae.safetensors","gemma_2_2b_it_elm_fp8_scaled.safetensors","pid_flux1_1024_to_4096_4step_bf16.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["BasicScheduler","CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptyChromaRadianceLatentImage","EmptySD3LatentImage","ImageCompare","KSampler","KSamplerSelect","ModelSamplingAuraFlow","PiDConditioning","PreviewImage","PrimitiveStringMultiline","SamplerCustom","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"utility_recraft_creative_image_upscale":{"models":[],"nodes":["ImageCompare","LoadImage","RecraftCreativeUpscaleNode","SaveImage"]},"utility_recraft_crisp_image_upscale":{"models":[],"nodes":["ImageCompare","LoadImage","RecraftCrispUpscaleNode","SaveImage"]},"utility_relayvsr_video_x2_upscale":{"models":["relayvsr_flash_vae_x2_fp32.safetensors","relayvsr_x2_lightx2v_int8_convrot.safetensors"],"nodes":["CreateVideo","GetVideoComponents","KSampler","LoadVideo","RelayVSRConditioning","SaveVideo","UNETLoader","VAELoader","VSRDecode","Video Slice"]},"utility_relayvsr_video_x4_upscale":{"models":["relayvsr_flash_vae_x4_fp32.safetensors","relayvsr_x4_int8_convrot.safetensors"],"nodes":["CreateVideo","GetVideoComponents","KSampler","LoadVideo","RelayVSRConditioning","SaveVideo","UNETLoader","VAELoader","VSRDecode","Video Slice"]},"utility_sam3d_body":{"models":["moge_2_vitl_normal_fp16.safetensors","rt_detr_v4-x-hgnet_fp32.safetensors","sam3.1_multiplex_fp16.safetensors","sam_3d_body_dinov3_bf16.safetensors"],"nodes":["BuildPoseFile","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","GetVideoComponents","LoadMoGeModel","LoadVideo","MoGeGeometryToFOV","MoGeInference","RTDETR_detect","SAM3DBody_FaceExpression","SAM3DBody_Loader","SAM3DBody_Predict","SAM3DBody_Render","SAM3DBody_Smooth","SAM3_VideoTrack","Save3DAdvanced","SaveVideo","UNETLoader","Video Slice"]},"utility_sdpose_multi_person":{"models":["rt_detr_v4-x-hgnet_fp16.safetensors","sdpose_wholebody_fp16.safetensors"],"nodes":["CheckpointLoaderSimple","DrawBBoxes","ImageBlend","LoadImage","PreviewImage","PrimitiveInt","RTDETR_detect","ResizeImageMaskNode","SDPoseDrawKeypoints","SDPoseKeypointExtractor","SaveImage","UNETLoader"]},"utility_sdpose_multi_person_video":{"models":["rt_detr_v4-x-hgnet_fp16.safetensors","sdpose_wholebody_fp16.safetensors"],"nodes":["CheckpointLoaderSimple","CreateVideo","DrawBBoxes","GetVideoComponents","ImageBlend","LoadVideo","PreviewImage","PrimitiveInt","RTDETR_detect","ResizeImageMaskNode","SDPoseDrawKeypoints","SDPoseKeypointExtractor","SaveVideo","UNETLoader"]},"utility_sdpose_ood_image_to_pose":{"models":["sdpose_wholebody_fp16.safetensors"],"nodes":["CheckpointLoaderSimple","LoadImage","ResizeImageMaskNode","SDPoseDrawKeypoints","SDPoseKeypointExtractor","SaveImage"]},"utility_sdpose_ood_video_to_pose_map":{"models":["sdpose_wholebody_fp16.safetensors"],"nodes":["CheckpointLoaderSimple","CreateVideo","GetVideoComponents","LoadVideo","ResizeImageMaskNode","SDPoseDrawKeypoints","SDPoseKeypointExtractor","SaveVideo"]},"utility_seedvr2_3b_int8_upscale_image":{"models":["seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors"],"nodes":["ImageCompare","JoinImageWithAlpha","KSampler","LoadImage","ResizeImageMaskNode","SaveImage","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","UNETLoader","VAEDecodeTiled","VAEEncodeTiled","VAELoader"]},"utility_seedvr2_3b_int8_upscale_video":{"models":["seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors"],"nodes":["ComfySwitchNode","CreateVideo","GetVideoComponents","KSampler","LoadVideo","PrimitiveBoolean","ResizeImageMaskNode","SaveVideo","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","SeedVR2TemporalChunk","SeedVR2TemporalMerge","UNETLoader","VAEDecodeTiled","VAEEncodeTiled","VAELoader","Video Slice"]},"utility_seedvr2_7b_int8_upscale_image":{"models":["seedvr2_7b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors"],"nodes":["ImageCompare","JoinImageWithAlpha","KSampler","LoadImage","ResizeImageMaskNode","SaveImage","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","UNETLoader","VAEDecodeTiled","VAEEncodeTiled","VAELoader"]},"utility_seedvr2_image_upscale":{"models":["ema_vae_fp16.safetensors","seedvr2_ema_7b_fp16.safetensors"],"nodes":["GetImageSize","ImageCompare","ImpactCompare","LayerUtility: If ","LoadImage","PrimitiveFloat","SaveImage","SeedVR2LoadDiTModel","SeedVR2LoadVAEModel","SeedVR2VideoUpscaler","SimpleMath+"]},"utility_seedvr2_video_upscale":{"models":["ema_vae_fp16.safetensors","seedvr2_ema_7b_fp16.safetensors"],"nodes":["CreateVideo","GetVideoComponents","ImageFromBatch","ImageScale","LoadVideo","SaveVideo","SeedVR2LoadDiTModel","SeedVR2LoadVAEModel","SeedVR2VideoUpscaler"]},"utility_sirolim_image_controlled_upscale":{"models":["WAN2.2-LowNoise_SmartphoneSnapshotPhotoReality_v3_by-AI_Characters.safetensors","Wan2_2-T2V-A14B-LOW_fp8_e4m3fn_scaled_KJ.safetensors","lightx2v_14B_T2V_cfg_step_distill_lora_adaptive_rank_quantile_0.15_bf16.safetensors","umt5_xxl_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["GeminiNodeV3","GetImageSize","ImageCompare","ImageResize+","LoadImage","PreviewAny","PrimitiveInt","SaveImage","SimpleMath+","VHS_SelectImages","WanVideoDecode","WanVideoEmptyEmbeds","WanVideoEncode","WanVideoLoraSelect","WanVideoModelLoader","WanVideoSampler","WanVideoSetLoRAs","WanVideoTextEncodeCached","WanVideoTorchCompileSettings","WanVideoVAELoader"]},"utility_text_lists_select_prompt":{"models":["ae.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptySD3LatentImage","FL_PromptSelectorBasic","KSampler","ModelSamplingAuraFlow","PrimitiveInt","SaveImage","UNETLoader","VAEDecode","VAELoader"]},"utility_topaz_illustration_upscale":{"models":[],"nodes":["GetImageSize","ImageCompare","ImageScaleBy","LoadImage","SaveImage","TopazImageEnhanceV2"]},"utility_video_frame_interpolation":{"models":["film_net_fp16.safetensors"],"nodes":["ComfyMathExpression","ComfySwitchNode","CreateVideo","FrameInterpolate","FrameInterpolationModelLoader","GetVideoComponents","LoadVideo","PrimitiveBoolean","PrimitiveInt","SaveVideo"]},"utility_video_segment_sam3":{"models":["sam3.1_multiplex_fp16.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","GetVideoComponents","LoadVideo","MaskPreview","SAM3_Detect"]},"utility_video_upscale":{"models":["Wan2_2-T2V-A14B-LOW_fp8_e4m3fn_scaled_KJ.safetensors","lightx2v_14B_T2V_cfg_step_distill_lora_adaptive_rank_quantile_0.15_bf16.safetensors","umt5_xxl_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["ComfyMathExpression","CreateVideo","GetImageSize","GetVideoComponents","ImageFromBatch","ImageResize+","ImageStitch","LoadVideo","PrimitiveInt","ResizeImageMaskNode","ResolutionSelector","SaveVideo","WanVideoDecode","WanVideoEmptyEmbeds","WanVideoEncode","WanVideoLoraSelect","WanVideoModelLoader","WanVideoSampler","WanVideoSetLoRAs","WanVideoTextEncodeCached","WanVideoTorchCompileSettings","WanVideoVAELoader"]},"utility_void_video_inpainting":{"models":["cogvideox_vae.safetensors","raft_large_C_T_SKHT_V2-ff5fadd5.safetensors","sam3.1_multiplex_fp16.safetensors","t5xxl_fp16.safetensors","void_pass1.safetensors","void_pass2.safetensors"],"nodes":["BasicScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","CreateVideo","GetImageSize","GetVideoComponents","ImageFromBatch","LoadVideo","MaskPreview","OpticalFlowLoader","PrimitiveBoolean","PrimitiveInt","RandomNoise","SAM3_Detect","SamplerCustomAdvanced","SaveVideo","TrimAudioDuration","UNETLoader","VAEDecode","VAELoader","VOIDInpaintConditioning","VOIDSampler","VOIDWarpedNoise","VOIDWarpedNoiseSource"]},"utility_z_image_turbo_2k_upscaler.app":{"models":["RealESRGAN_x4plus.safetensors","ae.safetensors","qwen_3_4b.safetensors","z_image_turbo_bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ImageCompare","ImageScaleBy","ImageScaleToTotalPixels","ImageUpscaleWithModel","KSampler","LoadImage","ModelSamplingAuraFlow","SaveImage","UNETLoader","UpscaleModelLoader","VAEDecode","VAEEncode","VAELoader"]},"video-wan21_scail":{"models":["Wan21-14B-SCAIL-preview_comfy_bf16.safetensors","clip_vision_h.safetensors","lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","umt5_xxl_fp16.safetensors","vitpose-l-wholebody.onnx","wan_2.1_vae.safetensors","yolov10m.onnx"],"nodes":["CLIPVisionLoader","CreateVideo","GetVideoComponents","ImageFromBatch","ImageResizeKJv2","LoadImage","LoadNLFModel","LoadVideo","NLFPredict","OnnxDetectionModelLoader","PoseDetectionVitPoseToDWPose","RenderNLFPoses","SaveVideo","SimpleMath+","WanVideoAddSCAILPoseEmbeds","WanVideoAddSCAILReferenceEmbeds","WanVideoClipVisionEncode","WanVideoContextOptions","WanVideoDecode","WanVideoEmptyEmbeds","WanVideoLoraSelect","WanVideoModelLoader","WanVideoSamplerExtraArgs","WanVideoSamplerv2","WanVideoSchedulerv2","WanVideoSetLoRAs","WanVideoTextEncodeCached","WanVideoTorchCompileSettings","WanVideoVAELoader"]},"video_bernini_r_image_editing":{"models":["Wan2_1_VAE_bf16.safetensors","lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_bernini_r_high_noise_fp8_scaled.safetensors","wan2.2_bernini_r_low_noise_fp8_scaled.safetensors"],"nodes":["BasicScheduler","BatchImagesNode","BerniniConditioning","CLIPLoader","CLIPTextEncode","ComfySwitchNode","CustomCombo","GetImageSize","ImageCompare","KSamplerSelect","LoadImage","LoraLoaderModelOnly","PreviewAny","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RegexExtract","ResizeImageMaskNode","SamplerCustom","SaveImage","SplitSigmas","StringConcatenate","StringReplace","UNETLoader","VAEDecode","VAELoader"]},"video_bernini_r_video_editing":{"models":["Wan2_1_VAE_bf16.safetensors","lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_bernini_r_high_noise_fp8_scaled.safetensors","wan2.2_bernini_r_low_noise_fp8_scaled.safetensors"],"nodes":["BasicScheduler","BatchImagesNode","BerniniConditioning","CLIPLoader","CLIPTextEncode","ComfySwitchNode","CreateVideo","CustomCombo","GetImageSize","GetVideoComponents","KSamplerSelect","LoadImage","LoadVideo","LoraLoaderModelOnly","PreviewAny","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RegexExtract","SamplerCustom","SaveVideo","SplitSigmas","StringConcatenate","StringReplace","UNETLoader","VAEDecode","VAELoader","Video Slice"]},"video_capybara_v0_1_image_to_video":{"models":["byt5_small_glyphxl_fp16.safetensors","capybara_v0.1.safetensors","hunyuanvideo15_vae_fp16.safetensors","qwen_2.5_vl_7b.safetensors","sigclip_vision_patch14_384.safetensors"],"nodes":["BasicScheduler","CFGGuider","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","DualCLIPLoader","HunyuanVideo15ImageToVideo","KSamplerSelect","LoadImage","ModelSamplingSD3","PrimitiveInt","RandomNoise","ResizeAndPadImage","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAELoader"]},"video_capybara_v0_1_video_edit":{"models":["byt5_small_glyphxl_fp16.safetensors","capybara_v0.1.safetensors","hunyuanvideo15_vae_fp16.safetensors","qwen_2.5_vl_7b.safetensors","sigclip_vision_patch14_384.safetensors"],"nodes":["BasicScheduler","CFGGuider","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","DualCLIPLoader","GetVideoComponents","HunyuanVideo15ImageToVideo","ImageFromBatch","KSamplerSelect","LoadVideo","ModelSamplingSD3","PrimitiveInt","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAELoader"]},"video_causal_forcing_i2v":{"models":["causal_forcing-framewise.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["ARVideoI2V","BasicScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","ComfyMathExpression","CreateVideo","LoadImage","PrimitiveFloat","RandomNoise","SamplerARVideo","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAELoader"]},"video_fasth3_ominiref_r2v":{"models":["fasth3_omniref_8step_pruned_int8_convrot.safetensors","minimax_h3_audio_vae_fp32.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","BasicScheduler","BlockSparseAttention","CLIPLoader","ComfyMathExpression","CreateVideo","KSamplerSelect","LoadImage","MiniMaxH3ReferenceToVideo","MiniMaxH3SigmaShift","ModelAttentionBackend","PrimitiveFloat","PrimitiveStringMultiline","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_fastvideo_fasth3_i2v":{"models":["fastvideo_fasth3_8step_v2_pruned_int8_convrot.safetensors","minimax_h3_audio_vae_fp32.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","BasicScheduler","BlockSparseAttention","CLIPLoader","ComfyMathExpression","CreateVideo","GetImageSize","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","MiniMaxH3ImageToVideo","MiniMaxH3SigmaShift","ModelAttentionBackend","PrimitiveFloat","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_fastvideo_fasth3_t2v":{"models":["fastvideo_fasth3_8step_v2_pruned_int8_convrot.safetensors","minimax_h3_audio_vae_fp32.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","BasicScheduler","BlockSparseAttention","CLIPLoader","ComfyMathExpression","CreateVideo","KSamplerSelect","MiniMaxH3ImageToVideo","MiniMaxH3SigmaShift","ModelAttentionBackend","PrimitiveFloat","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_humo":{"models":["humo_17B_fp8_e4m3fn.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_2.1_vae.safetensors","whisper_large_v3_fp16.safetensors"],"nodes":["AudioEncoderEncode","AudioEncoderLoader","CLIPLoader","CLIPTextEncode","CreateVideo","KSampler","LoadAudio","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","RecordAudio","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanHuMoImageToVideo"]},"video_hunyuan_video_1.5_720p_i2v":{"models":["byt5_small_glyphxl_fp16.safetensors","hunyuanvideo1.5_1080p_sr_distilled_fp16.safetensors","hunyuanvideo1.5_720p_i2v_fp16.safetensors","hunyuanvideo15_latent_upsampler_1080p.safetensors","hunyuanvideo15_vae_fp16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","sigclip_vision_patch14_384.safetensors"],"nodes":["BasicScheduler","CFGGuider","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","DisableNoise","DualCLIPLoader","EasyCache","HunyuanVideo15ImageToVideo","HunyuanVideo15LatentUpscaleWithModel","HunyuanVideo15SuperResolution","KSamplerSelect","LatentUpscaleModelLoader","LoadImage","ModelSamplingSD3","RandomNoise","SamplerCustomAdvanced","SaveVideo","SplitSigmas","UNETLoader","VAEDecode","VAEDecodeTiled","VAELoader"]},"video_hunyuan_video_1.5_720p_t2v":{"models":["byt5_small_glyphxl_fp16.safetensors","hunyuanvideo1.5_1080p_sr_distilled_fp16.safetensors","hunyuanvideo1.5_720p_t2v_fp16.safetensors","hunyuanvideo15_latent_upsampler_1080p.safetensors","hunyuanvideo15_vae_fp16.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors"],"nodes":["BasicScheduler","CFGGuider","CLIPTextEncode","CreateVideo","DisableNoise","DualCLIPLoader","EasyCache","EmptyHunyuanVideo15Latent","HunyuanVideo15LatentUpscaleWithModel","HunyuanVideo15SuperResolution","KSamplerSelect","LatentUpscaleModelLoader","ModelSamplingSD3","RandomNoise","SamplerCustomAdvanced","SaveVideo","SplitSigmas","UNETLoader","VAEDecode","VAEDecodeTiled","VAELoader"]},"video_kandinsky5_i2v":{"models":["clip_l.safetensors","hunyuan_video_vae_bf16.safetensors","kandinsky5lite_i2v_5s.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors"],"nodes":["CLIPTextEncode","CreateVideo","DualCLIPLoader","ImageScale","KSampler","Kandinsky5ImageToVideo","LoadImage","ModelSamplingSD3","NormalizeVideoLatentStart","PrimitiveInt","ReplaceVideoLatentFrames","SaveVideo","UNETLoader","VAEDecode","VAELoader"]},"video_kandinsky5_t2v":{"models":["clip_l.safetensors","hunyuan_video_vae_bf16.safetensors","kandinsky5lite_t2v_sft_5s.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors"],"nodes":["CLIPTextEncode","CreateVideo","DualCLIPLoader","KSampler","Kandinsky5ImageToVideo","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader"]},"video_ltx2_3_flf2v":{"models":["gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-distilled-fp8.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","EmptyLTXVLatentVideo","GetImageSize","LTXAVTextEncoderLoader","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVPreprocess","LTXVSeparateAVLatent","LoadImage","ManualSigmas","PrimitiveInt","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SamplerEulerAncestral","SaveVideo","VAEDecodeTiled"]},"video_ltx2_3_i2v":{"models":["gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyLTXVLatentVideo","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadImage","LoraLoader","LoraLoaderModelOnly","ManualSigmas","PreviewAny","PrimitiveBoolean","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo","TextGenerateLTX2Prompt","VAEDecodeTiled"]},"video_ltx2_3_ia2v":{"models":["gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyLTXVLatentVideo","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAudioVAEDecode","LTXVAudioVAEEncode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadAudio","LoadImage","LoraLoader","LoraLoaderModelOnly","ManualSigmas","PreviewAny","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","RecordAudio","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo","SetLatentNoiseMask","SolidMask","TextGenerateLTX2Prompt","TrimAudioDuration","VAEDecodeTiled"]},"video_ltx2_3_ic_lora":{"models":["gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","moge_2_vitl_normal_fp16.safetensors"],"nodes":["CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyLTXVLatentVideo","GetICLoRAParameters","GetImageSize","GetVideoComponents","ImageToMask","KSampler","LTXAVTextEncoderLoader","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVSeparateAVLatent","LoadImage","LoadMoGeModel","LoadVideo","LoraLoader","LoraLoaderModelOnly","MoGeInference","MoGeRender","PreviewAny","PreviewImage","PrimitiveBoolean","PrimitiveInt","ResizeImageMaskNode","SaveVideo","TextGenerateLTX2Prompt","VAEDecodeTiled","Video Slice"]},"video_ltx2_3_id_lora":{"models":["gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-id-lora-talkvid-3k.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","EmptyLTXVLatentVideo","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVReferenceAudio","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadAudio","LoadImage","LoraLoaderModelOnly","ManualSigmas","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","RecordAudio","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo","SolidMask","VAEDecodeTiled"]},"video_ltx2_3_t2v":{"models":["gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyImage","EmptyLTXVLatentVideo","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoraLoader","LoraLoaderModelOnly","ManualSigmas","PreviewAny","PrimitiveBoolean","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo","TextGenerateLTX2Prompt","VAEDecodeTiled"]},"video_ltx2_5_dfr_i2v":{"models":["gemma4-12b-with-proj-ltx-2.5-bf16.safetensors","gemma4_e2b_it_bf16.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-pixel-spatial-upscaler-x2-1.0.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-latent-temporal-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors"],"nodes":["CFGGuider","CLIPLoader","CLIPTextEncode","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyLTXVLatentVideo","GetImageSize","KSamplerSelect","LTXVAddGeneratedKeyframes","LTXVAddLatentGuide","LTXVAudioVAEDecode","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVFreezeLatent","LTXVGeneratedKeyframesToGuides","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVSeparateAVLatent","LTXVSeparateGeneratedKeyframes","LatentCutToBatch","LatentUpscaleModelLoader","LoadImage","LoraLoaderModelOnly","ManualSigmas","PreviewAny","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveStringMultiline","RandomNoise","ResizeImageMaskNode","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","SeedNode","TextGenerateLTX2Prompt","UNETLoader","VAEDecode","VAEDecodeTiled","VAELoader"]},"video_ltx2_5_flf2v":{"models":["gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-video-vae-bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyLTXVLatentVideo","GetImageSize","LTXVAddGuide","LTXVAudioVAEDecode","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVPreprocess","LTXVSeparateAVLatent","LoadImage","ManualSigmas","PreviewAny","PrimitiveBoolean","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SamplerEulerAncestral","SaveVideo","TextGenerateLTX2Prompt","UNETLoader","VAEDecodeTiled","VAELoader"]},"video_ltx2_5_i2v":{"models":["gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyLTXVLatentVideo","KSamplerSelect","LTXVAudioVAEDecode","LTXVConcatAVLatent","LTXVConditioning","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadImage","ManualSigmas","PreviewAny","PrimitiveBoolean","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","ResizeImageMaskNode","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","TextGenerateLTX2Prompt","UNETLoader","VAEDecodeTiled","VAELoader"]},"video_ltx2_5_t2v":{"models":["gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyLTXVLatentVideo","KSamplerSelect","LTXVAudioVAEDecode","LTXVConcatAVLatent","LTXVConditioning","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVLatentUpsampler","LTXVSeparateAVLatent","LatentUpscaleModelLoader","ManualSigmas","PreviewAny","PrimitiveBoolean","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","TextGenerateLTX2Prompt","UNETLoader","VAEDecodeTiled","VAELoader"]},"video_ltx2_canny_to_video":{"models":["gemma_3_12B_it_fp4_mixed.safetensors","ltx-2-19b-dev-fp8.safetensors","ltx-2-19b-distilled-lora-384.safetensors","ltx-2-19b-distilled.safetensors","ltx-2-19b-ic-lora-canny-control.safetensors","ltx-2-spatial-upscaler-x2-1.0.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","Canny","CheckpointLoaderSimple","ConditioningZeroOut","CreateVideo","EmptyLTXVLatentVideo","GetImageSize","GetVideoComponents","ImageFromBatch","ImageScaleBy","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVScheduler","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadImage","LoadVideo","LoraLoaderModelOnly","ManualSigmas","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo","VAEDecode","VAEDecodeTiled"]},"video_ltx2_depth_to_video":{"models":["gemma_3_12B_it_fp4_mixed.safetensors","lotus-depth-d-v1-1.safetensors","ltx-2-19b-dev-fp8.safetensors","ltx-2-19b-distilled-lora-384.safetensors","ltx-2-19b-distilled.safetensors","ltx-2-19b-ic-lora-depth-control.safetensors","ltx-2-spatial-upscaler-x2-1.0.safetensors","vae-ft-mse-840000-ema-pruned.safetensors"],"nodes":["BasicGuider","BasicScheduler","CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ConditioningZeroOut","CreateVideo","DisableNoise","EmptyLTXVLatentVideo","GetImageSize","GetVideoComponents","ImageFromBatch","ImageInvert","ImageScaleBy","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVScheduler","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadImage","LoadVideo","LoraLoaderModelOnly","LotusConditioning","ManualSigmas","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo","SetFirstSigma","UNETLoader","VAEDecode","VAEDecodeTiled","VAEEncode","VAELoader"]},"video_ltx2_i2v":{"models":["gemma_3_12B_it_fp4_mixed.safetensors","ltx-2-19b-dev-fp8.safetensors","ltx-2-19b-distilled-lora-384.safetensors","ltx-2-19b-lora-camera-control-dolly-left.safetensors","ltx-2-spatial-upscaler-x2-1.0.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyImage","EmptyLTXVLatentVideo","GetImageSize","ImageScaleBy","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadImage","LoraLoaderModelOnly","ManualSigmas","PrimitiveInt","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo","VAEDecode"]},"video_ltx2_i2v_distilled":{"models":["gemma_3_12B_it_fp4_mixed.safetensors","ltx-2-19b-distilled.safetensors","ltx-2-19b-lora-camera-control-dolly-left.safetensors","ltx-2-spatial-upscaler-x2-1.0.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ConditioningZeroOut","CreateVideo","EmptyImage","EmptyLTXVLatentVideo","GetImageSize","ImageScaleBy","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadImage","LoraLoaderModelOnly","ManualSigmas","PrimitiveInt","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo","VAEDecode"]},"video_ltx2_i2v_lora":{"models":["gemma_3_12B_it.safetensors","ltx-2-19b-dev.safetensors","ltx-2-19b-distilled-lora-384.safetensors","ltx-2-spatial-upscaler-x2-1.0.safetensors","ltx2-squish.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyImage","EmptyLTXVLatentVideo","GetImageSize","ImageScaleBy","ImageScaleToMaxDimension","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadImage","LoraLoaderModelOnly","ManualSigmas","PrimitiveFloat","PrimitiveInt","RandomNoise","SamplerCustomAdvanced","SaveVideo","VAEDecodeTiled"]},"video_ltx2_pose_to_video":{"models":["dw-ll_ucoco_384_bs5.torchscript.pt","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2-19b-dev-fp8.safetensors","ltx-2-19b-distilled-lora-384.safetensors","ltx-2-19b-distilled.safetensors","ltx-2-19b-ic-lora-pose-control.safetensors","ltx-2-spatial-upscaler-x2-1.0.safetensors","yolox_l.onnx"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","ConditioningZeroOut","CreateVideo","DWPreprocessor","EmptyLTXVLatentVideo","GetImageSize","GetVideoComponents","ImageFromBatch","ImageScaleBy","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVScheduler","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoadImage","LoadVideo","LoraLoaderModelOnly","ManualSigmas","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","RandomNoise","ResizeImageMaskNode","SamplerCustomAdvanced","SaveVideo","VAEDecode","VAEDecodeTiled"]},"video_ltx2_t2v":{"models":["gemma_3_12B_it_fp4_mixed.safetensors","ltx-2-19b-dev-fp8.safetensors","ltx-2-19b-distilled-lora-384.safetensors","ltx-2-19b-lora-camera-control-dolly-left.safetensors","ltx-2-spatial-upscaler-x2-1.0.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyImage","EmptyLTXVLatentVideo","GetImageSize","ImageScaleBy","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVEmptyLatentAudio","LTXVLatentUpsampler","LTXVScheduler","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoraLoaderModelOnly","ManualSigmas","PrimitiveFloat","PrimitiveInt","RandomNoise","SamplerCustomAdvanced","SaveVideo","VAEDecode","VAEDecodeTiled"]},"video_ltx2_t2v_distilled":{"models":["gemma_3_12B_it_fp4_mixed.safetensors","ltx-2-19b-distilled.safetensors","ltx-2-19b-lora-camera-control-dolly-left.safetensors","ltx-2-spatial-upscaler-x2-1.0.safetensors"],"nodes":["CFGGuider","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyImage","EmptyLTXVLatentVideo","GetImageSize","ImageScaleBy","KSamplerSelect","LTXAVTextEncoderLoader","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVEmptyLatentAudio","LTXVLatentUpsampler","LTXVSeparateAVLatent","LatentUpscaleModelLoader","LoraLoaderModelOnly","ManualSigmas","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","SamplerCustomAdvanced","SaveVideo","VAEDecodeTiled"]},"video_ltx_2_audio_to_video":{"models":["LTX2_audio_vae_bf16.safetensors","LTX2_video_vae_bf16.safetensors","gemma_3_12B_it_fp8_scaled.safetensors","ltx-2-19b-distilled_transformer_only_bf16.safetensors","ltx-2-19b-embeddings_connector_distill_bf16.safetensors"],"nodes":["AudioCrop","AudioSeparation","CFGGuider","CLIPTextEncode","ConditioningZeroOut","CreateVideo","DualCLIPLoader","EmptyLTXVLatentVideo","FloatConstant","GetImageRangeFromBatch","ImageBatchExtendWithOverlap","ImageResizeKJv2","KSamplerSelect","LTX2SamplingPreviewOverride","LTX2_NAG","LTXVAddGuideMulti","LTXVAudioVAEEncode","LTXVAudioVideoMask","LTXVChunkFeedForward","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVImgToVideoInplaceKJ","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LoadAudio","LoadImage","PrimitiveFloat","RandomNoise","SamplerCustomAdvanced","SaveVideo","SetLatentNoiseMask","SolidMask","TrimAudioDuration","UNETLoader","VAEDecodeTiled","VAEEncode","VAELoaderKJ","VHS_VideoCombine"]},"video_minimax_h3_fun_controlnet_union":{"models":["minimax_h3_audio_vae_fp32.safetensors","minimax_h3_fun_controlnet_union_pruned_int8_convrot.safetensors","minimax_h3_ref2v_turbo_4step_v0.1_comfyui_bf16.safetensors","minimax_h3_ref2va_pruned_int8_convrot.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","rt_detr_v4-x-hgnet_fp16.safetensors","sdpose_wholebody_fp16.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPLoader","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","CreateVideo","GetImageSize","GetVideoComponents","KSamplerSelect","LoadVideo","LoraLoaderModelOnly","MiniMaxH3FunControlNetApply","MiniMaxH3ReferenceToVideo","ModelPatchLoader","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RTDETR_detect","RandomNoise","ResizeImageMaskNode","ResolutionSelector","SDPoseDrawKeypoints","SDPoseKeypointExtractor","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader","Video Slice"]},"video_minimax_h3_i2v":{"models":["minimax_h3_audio_vae_fp32.safetensors","minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors","minimax_h3_fl2va_pruned_int8_convrot.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPLoader","ComfyMathExpression","ComfySwitchNode","CreateVideo","GetImageSize","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","LoraLoaderModelOnly","MiniMaxH3ImageToVideo","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_minimax_h3_i2v_continuation":{"models":["minimax_h3_audio_vae_fp32.safetensors","minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors","minimax_h3_fl2va_pruned_int8_convrot.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPLoader","ComfyMathExpression","ComfySwitchNode","CreateVideo","KSamplerSelect","LoadImage","LoraLoaderModelOnly","MiniMaxH3ImageToVideo","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_minimax_h3_multiframe_reference":{"models":["minimax_h3_audio_vae_fp32.safetensors","minimax_h3_ref2v_turbo_4step_v0.1_comfyui_bf16.safetensors","minimax_h3_ref2va_pruned_int8_convrot.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPLoader","ComfyMathExpression","ComfySwitchNode","CreateVideo","KSamplerSelect","LoadImage","LoraLoaderModelOnly","MiniMaxH3AddGuide","MiniMaxH3ReferenceToVideo","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_minimax_h3_r2v":{"models":["minimax_h3_audio_vae_fp32.safetensors","minimax_h3_ref2v_turbo_4step_v0.1_comfyui_bf16.safetensors","minimax_h3_ref2va_pruned_int8_convrot.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPLoader","ComfyMathExpression","ComfySwitchNode","CreateVideo","KSamplerSelect","LoadImage","LoraLoaderModelOnly","MiniMaxH3ReferenceToVideo","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_minimax_h3_t2v":{"models":["minimax_h3_audio_vae_fp32.safetensors","minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors","minimax_h3_fl2va_pruned_int8_convrot.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","BasicScheduler","CLIPLoader","ComfyMathExpression","ComfySwitchNode","CreateVideo","KSamplerSelect","LoraLoaderModelOnly","MiniMaxH3ImageToVideo","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_pika_h3_flex_fl2va":{"models":["minimax_h3_audio_vae_fp32.safetensors","minimax_h3_fl2va_pruned_int8_convrot.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","pika_h3_flex_fl2va_v1_bf16.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","CLIPLoader","ComfyMathExpression","CreateVideo","GetImageSize","KSamplerSelect","LoadImage","LoraLoaderModelOnly","ManualSigmas","MiniMaxH3ImageToVideo","PrimitiveFloat","PrimitiveInt","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_pika_h3_flex_ref2va":{"models":["minimax_h3_audio_vae_fp32.safetensors","minimax_h3_ref2va_pruned_int8_convrot.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","pika_h3_flex_ref2va_v1_bf16.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","CLIPLoader","ComfyMathExpression","CreateVideo","KSamplerSelect","LoadImage","LoraLoaderModelOnly","ManualSigmas","MiniMaxH3ReferenceToVideo","PrimitiveFloat","PrimitiveStringMultiline","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_pika_h3_flex_t2v":{"models":["minimax_h3_audio_vae_fp32.safetensors","minimax_h3_fl2va_pruned_int8_convrot.safetensors","minimax_h3_video_vae_int8_convrot.safetensors","pika_h3_flex_fl2va_v1_bf16.safetensors","qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors"],"nodes":["BasicGuider","CLIPLoader","ComfyMathExpression","CreateVideo","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","MiniMaxH3ImageToVideo","PrimitiveFloat","PrimitiveInt","RandomNoise","ResolutionSelector","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"]},"video_wan2.1_alpha_t2v_14B":{"models":["lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_t2v_14B_fp8_scaled.safetensors","wan_alpha_2.1_rgba_lora.safetensors","wan_alpha_2.1_vae_alpha_channel.safetensors","wan_alpha_2.1_vae_rgb_channel.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","EmptyHunyuanLatentVideo","ImageToMask","InvertMask","JoinImageWithAlpha","KSampler","LoraLoaderModelOnly","ModelSamplingSD3","SaveAnimatedWEBP","UNETLoader","VAEDecode","VAELoader"]},"video_wan2.1_fun_camera_v1.1_1.3B":{"models":["clip_vision_h.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_fun_camera_v1.1_1.3B_bf16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","KSampler","LoadImage","ModelSamplingSD3","SaveAnimatedWEBP","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanCameraEmbedding","WanCameraImageToVideo"]},"video_wan2.1_fun_camera_v1.1_14B":{"models":["clip_vision_h.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_fun_camera_v1.1_14B_bf16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","KSampler","LoadImage","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanCameraEmbedding","WanCameraImageToVideo"]},"video_wan21_scail2_character_replacement":{"models":["Wan2_1_VAE_bf16.safetensors","clip_vision_h.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","sam3.1_multiplex_fp16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_14B_SCAIL_2_fp16.safetensors","wan2.1_SCAIL_2_DPO_lora_bf16.safetensors"],"nodes":["BasicScheduler","BatchImagesNode","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CheckpointLoaderSimple","ColorTransfer","ComfyMathExpression","ComfySwitchNode","CreateVideo","GetImageSize","GetVideoComponents","ImageFromBatch","KSamplerSelect","LoadImage","LoadVideo","LoraLoaderModelOnly","ModelSamplingSD3","PreviewAny","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","ResizeImageMaskNode","SAM3_VideoTrack","SCAIL2ColoredMask","SamplerCustom","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanSCAILToVideo"]},"video_wan21_scail2_character_replacement_int8":{"models":["Wan2_1_VAE_bf16.safetensors","clip_vision_h.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","sam3.1_multiplex_fp16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_14B_SCAIL_2_int8_convrot.safetensors","wan2.1_SCAIL_2_DPO_lora_bf16.safetensors"],"nodes":["BasicScheduler","BatchImagesNode","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CheckpointLoaderSimple","ColorTransfer","ComfyMathExpression","ComfySwitchNode","CreateVideo","GetImageSize","GetVideoComponents","ImageFromBatch","KSamplerSelect","LoadImage","LoadVideo","LoraLoaderModelOnly","ModelSamplingSD3","PreviewAny","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","ResizeImageMaskNode","SAM3_VideoTrack","SCAIL2ColoredMask","SamplerCustom","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanSCAILToVideo"]},"video_wan2_1_infinitetalk":{"models":["Wan2_1-I2V-14B-480p_fp8_e4m3fn_scaled_KJ.safetensors","Wan2_1_VAE_bf16.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_infiniteTalk_multi_fp16.safetensors","wav2vec2-chinese-base_fp16.safetensors"],"nodes":["AudioConcat","AudioEncoderEncode","AudioEncoderLoader","BasicScheduler","BatchImagesNode","CFGGuider","CLIPLoader","CLIPTextEncode","ConditioningZeroOut","CreateVideo","KSamplerSelect","LoadAudio","LoadImage","LoraLoaderModelOnly","ModelPatchLoader","Painter","PrimitiveInt","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanInfiniteTalkToVideo"]},"video_wan2_2_14B_animate":{"models":["Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors","WanAnimate_relight_lora_fp16.safetensors","clip_vision_h.safetensors","dw-ll_ucoco_384_bs5.torchscript.pt","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","sam2_hiera_base_plus.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_2.1_vae.safetensors","yolox_l.onnx"],"nodes":["BlockifyMask","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","DWPreprocessor","DownloadAndLoadSAM2Model","DrawMaskOnImage","GetVideoComponents","GrowMask","ImageBatch","ImageFromBatch","ImageScale","KSampler","LoadImage","LoadVideo","LoraLoaderModelOnly","MaskPreview","ModelSamplingSD3","PixelPerfectResolution","PointsEditor","PreviewImage","PrimitiveInt","Sam2Segmentation","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanAnimateToVideo"]},"video_wan2_2_14B_flf2v":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors","wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CreateVideo","KSamplerAdvanced","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanFirstLastFrameToVideo"]},"video_wan2_2_14B_fun_camera":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_fun_camera_high_noise_14B_fp8_scaled.safetensors","wan2.2_fun_camera_low_noise_14B_fp8_scaled.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CreateVideo","KSamplerAdvanced","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanCameraEmbedding","WanCameraImageToVideo"]},"video_wan2_2_14B_fun_control":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_fun_control_high_noise_14B_fp8_scaled.safetensors","wan2.2_fun_control_low_noise_14B_fp8_scaled.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","Canny","CreateVideo","GetVideoComponents","KSamplerAdvanced","LoadImage","LoadVideo","LoraLoaderModelOnly","ModelSamplingSD3","PreviewImage","SaveVideo","UNETLoader","VAEDecode","VAELoader","Wan22FunControlToVideo"]},"video_wan2_2_14B_fun_inpaint":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_fun_inpaint_high_noise_14B_fp8_scaled.safetensors","wan2.2_fun_inpaint_low_noise_14B_fp8_scaled.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CreateVideo","KSamplerAdvanced","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanFunInpaintToVideo"]},"video_wan2_2_14B_i2v":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors","wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors","wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfyMathExpression","ComfySwitchNode","CreateVideo","KSamplerAdvanced","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanImageToVideo"]},"video_wan2_2_14B_s2v":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_s2v_14B_fp8_scaled.safetensors","wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors","wan_2.1_vae.safetensors","wav2vec2_large_english_fp16.safetensors"],"nodes":["AudioEncoderEncode","AudioEncoderLoader","CLIPLoader","CLIPTextEncode","CreateVideo","ImageFromBatch","KSampler","LatentConcat","LatentCut","LoadAudio","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","PrimitiveFloat","PrimitiveInt","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanSoundImageToVideo","WanSoundImageToVideoExtend"]},"video_wan2_2_14B_t2v":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors","wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors","wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors","wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","ComfyMathExpression","ComfySwitchNode","CreateVideo","EmptyHunyuanLatentVideo","KSamplerAdvanced","LoraLoaderModelOnly","ModelSamplingSD3","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveVideo","UNETLoader","VAEDecode","VAELoader"]},"video_wan2_2_5B_fun_control":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_fun_control_5B_bf16.safetensors","wan2.2_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","Canny","CreateVideo","GetVideoComponents","KSampler","LoadImage","LoadVideo","ModelSamplingSD3","PreviewImage","SaveVideo","UNETLoader","VAEDecode","VAELoader","Wan22FunControlToVideo"]},"video_wan2_2_5B_fun_inpaint":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_fun_inpaint_5B_bf16.safetensors","wan2.2_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CreateVideo","KSampler","LoadImage","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanFunInpaintToVideo"]},"video_wan2_2_5B_ti2v":{"models":["umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.2_ti2v_5B_fp16.safetensors","wan2.2_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CreateVideo","KSampler","LoadImage","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader","Wan22ImageToVideoLatent"]},"video_wan_animate2":{"models":["Wan2_1_VAE_bf16.safetensors","clip_vision_h.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_int8_convrot.safetensors"],"nodes":["BasicScheduler","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","ComfyMathExpression","ComfySwitchNode","ContextWindowsManual","CreateList","CreateVideo","EndLoop","GetImageSize","GetItemFromList","GetVideoComponents","ImageFromBatch","ImageStitch","KSamplerSelect","LoadImage","LoadVideo","LoraLoaderModelOnly","ModelSamplingSD3","PrimitiveInt","RebatchImages","ResizeImageMaskNode","SamplerCustom","SaveVideo","StartLoop","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanAnimate2Cache","WanAnimate2ToVideo"]},"video_wan_animate2_distilled":{"models":["Wan2_1_VAE_bf16.safetensors","clip_vision_h.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors"],"nodes":["BasicScheduler","BatchImagesNode","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","ComfyMathExpression","ComfySwitchNode","ContextWindowsManual","CreateVideo","GetImageSize","GetVideoComponents","ImageFromBatch","ImageStitch","KSamplerSelect","LoadImage","LoadVideo","ModelSamplingSD3","PreviewAny","PrimitiveBoolean","PrimitiveStringMultiline","ResizeImageMaskNode","SamplerCustom","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanAnimate2Cache","WanAnimate2ToVideo"]},"video_wan_ati":{"models":["Wan2_1-I2V-ATI-14B_fp8_e4m3fn.safetensors","clip_vision_h.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","KSampler","LoadImage","ModelSamplingSD3","PrimitiveStringMultiline","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanTrackToVideo"]},"video_wan_dancer":{"models":["Wan2_1_VAE_bf16.safetensors","clip_vision_h.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","umt5_xxl_fp16.safetensors","wan2.2_dancer_14b_global_fp8_scaled.safetensors","wan2.2_dancer_14b_local_fp8_scaled.safetensors"],"nodes":["BasicScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","ComfyMathExpression","ComfySwitchNode","ConditioningZeroOut","CreateVideo","CustomCombo","ImageFromBatch","KSamplerSelect","LatentCutToBatch","LoadAudio","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","PreviewAny","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","PrimitiveStringMultiline","RandomNoise","RebatchImages","RegexExtract","ResizeImageMaskNode","SamplerCustom","SamplerCustomAdvanced","SaveVideo","SkipLayerGuidanceDiTSimple","StringConcatenate","StringReplace","TrimAudioDuration","UNETLoader","VAEDecode","VAELoader","WanDancerEncodeAudio","WanDancerPadKeyframesList","WanDancerVideo"]},"video_wan_vace_14B_ref2v":{"models":["Wan21_CausVid_14B_T2V_lora_rank32.safetensors","Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors","umt5_xxl_fp16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_vace_1.3B_fp16.safetensors","wan2.1_vace_14B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","CLIPTextEncode","CreateVideo","ImageToMask","KSampler","LoadImage","LoraLoader","MaskToImage","ModelSamplingSD3","PreviewImage","RepeatImageBatch","SaveAnimatedWEBP","SaveVideo","SolidMask","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"]},"video_wan_vace_14B_t2v":{"models":["Wan21_CausVid_14B_T2V_lora_rank32.safetensors","Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors","umt5_xxl_fp16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_vace_1.3B_fp16.safetensors","wan2.1_vace_14B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CreateVideo","KSampler","LoraLoader","ModelSamplingSD3","SaveAnimatedWEBP","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"]},"video_wan_vace_14B_v2v":{"models":["Wan21_CausVid_14B_T2V_lora_rank32.safetensors","Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors","umt5_xxl_fp16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_vace_1.3B_fp16.safetensors","wan2.1_vace_14B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","Canny","CreateVideo","GetVideoComponents","KSampler","LoadImage","LoadVideo","LoraLoader","ModelSamplingSD3","PreviewImage","SaveAnimatedWEBP","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"]},"video_wan_vace_flf2v":{"models":["lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_vace_14B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["BatchImagesNode","CLIPLoader","CLIPTextEncode","ComfyMathExpression","ComfySwitchNode","CreateVideo","ImageToMask","KSampler","LoadImage","LoraLoaderModelOnly","MaskToImage","ModelSamplingSD3","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","RepeatImageBatch","SaveVideo","SolidMask","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"]},"video_wan_vace_inpainting":{"models":["Wan21_CausVid_14B_T2V_lora_rank32.safetensors","sam3.1_multiplex_fp16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_vace_14B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","ComfySwitchNode","CreateVideo","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","InvertMask","KSampler","LoadImage","LoadVideo","LoraLoaderModelOnly","MaskPreview","MaskToImage","ModelSamplingSD3","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","ResizeImageMaskNode","SAM3_Detect","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"]},"video_wan_vace_outpainting":{"models":["Wan21_CausVid_14B_T2V_lora_rank32.safetensors","Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors","umt5_xxl_fp16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_vace_1.3B_fp16.safetensors","wan2.1_vace_14B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","ImagePadForOutpaint","ImageToMask","KSampler","LoadVideo","LoraLoader","MaskToImage","ModelSamplingSD3","PreviewImage","PrimitiveInt","RepeatImageBatch","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"]},"video_wanmove_480p":{"models":["Wan21-WanMove_fp8_scaled_e4m3fn_KJ.safetensors","clip_vision_h.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","ComfySwitchNode","CreateVideo","GenerateTracks","GetImageSize","ImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanMoveConcatTrack","WanMoveTrackToVideo","WanMoveTracksFromCoords","WanMoveVisualizeTracks"]},"video_wanmove_480p_hallucination":{"models":["Wan21-WanMove_fp8_scaled_e4m3fn_KJ.safetensors","clip_vision_h.safetensors","lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","ComfySwitchNode","CreateVideo","FL_PathAnimator","GetImageSize","ImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingSD3","PreviewImage","PrimitiveBoolean","PrimitiveFloat","PrimitiveInt","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanMoveTrackToVideo","WanMoveTracksFromCoords","WanMoveVisualizeTracks"]},"wan2.1_flf2v_720_f16":{"models":["clip_vision_h.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_flf2v_720p_14B_fp16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","KSampler","LoadImage","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanFirstLastFrameToVideo"]},"wan2.1_fun_control":{"models":["clip_vision_h.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_fun_control_1.3B_bf16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CFGZeroStar","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","Canny","CreateVideo","GetVideoComponents","KSampler","LoadImage","LoadVideo","ModelSamplingSD3","PreviewImage","SaveVideo","SkipLayerGuidanceDiT","UNETLoader","UNetTemporalAttentionMultiply","VAEDecode","VAELoader","WanFunControlToVideo"]},"wan2.1_fun_inp":{"models":["clip_vision_h.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan2.1_fun_inp_1.3B_bf16.safetensors","wan_2.1_vae.safetensors"],"nodes":["CFGZeroStar","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","KSampler","LoadImage","ModelSamplingSD3","SaveVideo","SkipLayerGuidanceDiT","UNETLoader","UNetTemporalAttentionMultiply","VAEDecode","VAELoader","WanFunInpaintToVideo"]}},"verified_models":["ace_1.5_vae.safetensors","acestep_v1.5_turbo.safetensors","ae.safetensors","clip_l.safetensors","flux-2-klein-4b-fp8.safetensors","flux-2-klein-4b.safetensors","flux-2-klein-base-4b-fp8.safetensors","flux-2-klein-base-4b.safetensors","flux1-dev-fp8.safetensors","flux1-dev.safetensors","flux1-krea-dev_fp8_scaled.safetensors","flux2-vae.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2-19b-dev-fp8.safetensors","ltx-2-19b-distilled-lora-384.safetensors","ltx-2-spatial-upscaler-x2-1.0.safetensors","qwen_0.6b_ace15.safetensors","qwen_1.7b_ace15.safetensors","qwen_2.5_vl_7b_fp8_scaled.safetensors","qwen_3_4b.safetensors","qwen_image_edit_2509_fp8_e4m3fn.safetensors","qwen_image_edit_2511_fp8mixed.safetensors","qwen_image_fp8_e4m3fn.safetensors","qwen_image_vae.safetensors","sd_xl_base_1.0.safetensors","sd_xl_turbo_1.0_fp16.safetensors","t5xxl_fp16.safetensors","t5xxl_fp8_e4m3fn_scaled.safetensors","z_image_turbo_bf16.safetensors"]}