diff --git a/mkfile b/mkfile index 30b8214..2617710 100644 --- a/mkfile +++ b/mkfile @@ -153,6 +153,7 @@ dotnet/: rm -rf bin obj popd workloads: + # TODO: Fix this block for workload in "${uninstalled_workloads[@]}"; do sudo dotnet workload uninstall "${workload}" done diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Collections.Concurrent.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Collections.Concurrent.wasm index 7051dcf..5fd8f42 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Collections.Concurrent.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Collections.Concurrent.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Collections.Immutable.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Collections.Immutable.wasm index d99d12d..03b090d 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Collections.Immutable.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Collections.Immutable.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Collections.NonGeneric.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Collections.NonGeneric.wasm index 37e254f..82cb248 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Collections.NonGeneric.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Collections.NonGeneric.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Collections.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Collections.wasm index c76707d..5fb9401 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Collections.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Collections.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.ComponentModel.Primitives.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.ComponentModel.Primitives.wasm index 78978fb..fc44bb5 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.ComponentModel.Primitives.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.ComponentModel.Primitives.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.ComponentModel.TypeConverter.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.ComponentModel.TypeConverter.wasm index 0c0b031..827524f 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.ComponentModel.TypeConverter.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.ComponentModel.TypeConverter.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Console.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Console.wasm index f24bded..4128255 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Console.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Console.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Debug.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Debug.wasm index bcbe343..2a954d0 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Debug.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Debug.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.DiagnosticSource.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.DiagnosticSource.wasm index 69ff71d..9594bcc 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.DiagnosticSource.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.DiagnosticSource.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.FileVersionInfo.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.FileVersionInfo.wasm index 6ed7f1f..02acc87 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.FileVersionInfo.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.FileVersionInfo.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Process.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Process.wasm index 3d1ca45..bc2242f 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Process.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Process.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.StackTrace.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.StackTrace.wasm index 143f2eb..0e369a6 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.StackTrace.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.StackTrace.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.TraceSource.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.TraceSource.wasm index 15277a5..24fda1d 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.TraceSource.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.TraceSource.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Tracing.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Tracing.wasm index e570b86..1c5051d 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Tracing.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Diagnostics.Tracing.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Globalization.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Globalization.wasm index 806a58b..6410d22 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Globalization.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Globalization.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.IO.Compression.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.IO.Compression.wasm index fefb777..04bfaa4 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.IO.Compression.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.IO.Compression.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.IO.MemoryMappedFiles.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.IO.MemoryMappedFiles.wasm index fb939ac..7cf7cb3 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.IO.MemoryMappedFiles.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.IO.MemoryMappedFiles.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Linq.Expressions.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Linq.Expressions.wasm index 352df1a..45708b4 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Linq.Expressions.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Linq.Expressions.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Linq.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Linq.wasm index 88898ea..d6ad92e 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Linq.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Linq.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Memory.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Memory.wasm index a0974e6..6a752ed 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Memory.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Memory.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Net.Http.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Net.Http.wasm index 79d3e84..a6c8141 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Net.Http.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Net.Http.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Net.Primitives.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Net.Primitives.wasm index e54fdb9..f78aeb7 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Net.Primitives.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Net.Primitives.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.ObjectModel.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.ObjectModel.wasm index 9270d5b..1c9b4e8 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.ObjectModel.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.ObjectModel.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Private.CoreLib.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Private.CoreLib.wasm index 944fa24..3b0c257 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Private.CoreLib.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Private.CoreLib.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Private.Uri.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Private.Uri.wasm index a935644..17e819f 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Private.Uri.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Private.Uri.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Private.Xml.Linq.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Private.Xml.Linq.wasm index 85b872c..6ba31aa 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Private.Xml.Linq.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Private.Xml.Linq.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Private.Xml.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Private.Xml.wasm index 9af6669..8df89bc 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Private.Xml.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Private.Xml.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.ILGeneration.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.ILGeneration.wasm index dca995f..f590556 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.ILGeneration.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.ILGeneration.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.Lightweight.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.Lightweight.wasm index 5c8e800..b0cbd95 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.Lightweight.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.Lightweight.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.wasm index 1f967c1..8c580d2 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Emit.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Metadata.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Metadata.wasm index c336189..d8cf5d6 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Metadata.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Metadata.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Primitives.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Primitives.wasm index e013a76..d4ebc80 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Primitives.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Reflection.Primitives.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Extensions.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Extensions.wasm index 338169a..04c3564 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Extensions.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Extensions.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.InteropServices.JavaScript.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.InteropServices.JavaScript.wasm index 20418bb..d0e2dec 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.InteropServices.JavaScript.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.InteropServices.JavaScript.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.InteropServices.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.InteropServices.wasm index 8ee26e0..a3696b0 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.InteropServices.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.InteropServices.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Intrinsics.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Intrinsics.wasm index 58a9fad..d4642e6 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Intrinsics.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Intrinsics.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Loader.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Loader.wasm index 86418ad..20f652f 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Loader.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Loader.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Numerics.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Numerics.wasm index 7783730..565e001 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Numerics.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Numerics.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Serialization.Primitives.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Serialization.Primitives.wasm index dd5e301..01e4321 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Serialization.Primitives.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.Serialization.Primitives.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.wasm index 4659491..c4a14c9 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Runtime.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Security.Cryptography.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Security.Cryptography.wasm index eb0727a..6cc8917 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Security.Cryptography.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Security.Cryptography.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encoding.CodePages.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encoding.CodePages.wasm index 623a3f8..9cdf284 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encoding.CodePages.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encoding.CodePages.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encoding.Extensions.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encoding.Extensions.wasm index 23b586c..6987298 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encoding.Extensions.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encoding.Extensions.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encodings.Web.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encodings.Web.wasm index 0854bcc..0745f83 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encodings.Web.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Text.Encodings.Web.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Text.Json.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Text.Json.wasm index 2d46159..5e25f25 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Text.Json.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Text.Json.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Text.RegularExpressions.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Text.RegularExpressions.wasm index 7f0a3fe..fa9c2e9 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Text.RegularExpressions.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Text.RegularExpressions.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Channels.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Channels.wasm index a2353e8..30205d6 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Channels.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Channels.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Tasks.Parallel.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Tasks.Parallel.wasm index 2c18fc4..9d60fb1 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Tasks.Parallel.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Tasks.Parallel.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Thread.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Thread.wasm index 262114a..243639b 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Thread.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Threading.Thread.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Threading.ThreadPool.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Threading.ThreadPool.wasm index a042386..7ba6ba2 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Threading.ThreadPool.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Threading.ThreadPool.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Threading.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Threading.wasm index 2a3e904..522a189 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Threading.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Threading.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Xml.Linq.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Xml.Linq.wasm index 3b6e99a..120d2b5 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Xml.Linq.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Xml.Linq.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Xml.ReaderWriter.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Xml.ReaderWriter.wasm index e45fe40..a8eeaca 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Xml.ReaderWriter.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Xml.ReaderWriter.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XDocument.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XDocument.wasm index 822e4f3..958cda6 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XDocument.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XDocument.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XPath.XDocument.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XPath.XDocument.wasm index 37c21af..9f10a01 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XPath.XDocument.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XPath.XDocument.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XPath.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XPath.wasm index d1e2dbf..7dd03a7 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XPath.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.Xml.XPath.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/System.wasm b/packages/dotnet-runtime/src/vendor/compiler/System.wasm index 7727b54..d967b9f 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/System.wasm and b/packages/dotnet-runtime/src/vendor/compiler/System.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/blazor.boot.json b/packages/dotnet-runtime/src/vendor/compiler/blazor.boot.json index 33efb54..6c0cd80 100644 --- a/packages/dotnet-runtime/src/vendor/compiler/blazor.boot.json +++ b/packages/dotnet-runtime/src/vendor/compiler/blazor.boot.json @@ -1,18 +1,18 @@ { "mainAssemblyName": "compiler", "resources": { - "hash": "sha256-SIblPgd3it8T5pkjXnQXdTwoKoRrpXHKpvD/Wh8OjkE=", + "hash": "sha256-FNTbPQvfMGHgWnW1JYAnt2Y0beybK2FjExOX9X7cBxY=", "jsModuleWorker": { - "dotnet.native.worker.8.0.8.wc1hblvvs5.js": "sha256-Qx8CvNYlt1HAErxzLAM7CARKIDWzPQ7lN4FvTjY3vAg=" + "dotnet.native.worker.8.0.10.wc1hblvvs5.js": "sha256-Qx8CvNYlt1HAErxzLAM7CARKIDWzPQ7lN4FvTjY3vAg=" }, "jsModuleNative": { - "dotnet.native.8.0.8.pu4atn93yb.js": "sha256-3+/mQirH6xSyUbIGpefTcxsuTyRSO8JHyfcZb8CEhfY=" + "dotnet.native.8.0.10.pu4atn93yb.js": "sha256-5J1Ou2rO8DKI/k/3a7rtzuPntStAKZRkQ6mZBFGzn48=" }, "jsModuleRuntime": { - "dotnet.runtime.8.0.8.z7rssunyd7.js": "sha256-I6uSPLCKYKH4OenxLi++l0wsK3UxqnADzIYH53DJ14g=" + "dotnet.runtime.8.0.10.7f8pgc2wlp.js": "sha256-rdLMUf0Lt6G/1haDwuH4fDzJ0aGATBN+rcU01D2eP08=" }, "wasmNative": { - "dotnet.native.wasm": "sha256-JP3hFuhSHPOlBuDQeje0MyIpccuZkLvKrJ5vWgQ88+E=" + "dotnet.native.wasm": "sha256-PV9Ku8NyrQvK7ubu1HcGgWJPMO+Eyd2+F/FDJarGXZM=" }, "icu": { "icudt_CJK.dat": "sha256-SZLtQnRc0JkwqHab0VUVP7T3uBPSeYzxzDnpxPpUnHk=", @@ -20,7 +20,7 @@ "icudt_no_CJK.dat": "sha256-L7sV7NEYP37/Qr2FPCePo5cJqRgTXRwGHuwF5Q+0Nfs=" }, "assembly": { - "compiler.wasm": "sha256-ghY0Xv4Ba2VSQRDPg38C1FkBUG23lu3Tc7azp5Dm3dg=", + "compiler.wasm": "sha256-EURA4lfq0k+rOU5qUwfN1+zWDv17kDOc/Xld/N2/oOY=", "Humanizer.wasm": "sha256-4NbSboZzzP9nikRtXapUZNzOyITt7ht9TNqCIQHr5OE=", "Microsoft.CodeAnalysis.CSharp.wasm": "sha256-MmeG9q/P2+iYoe4SIOiX8O9PfmJ1tDKKZqYIUMhtLjk=", "Microsoft.CodeAnalysis.CSharp.Workspaces.wasm": "sha256-BNrSVaMP3zPZbm0J/QmV/A8i8SB8GA/K1yNSXFXP10s=", @@ -28,68 +28,68 @@ "Microsoft.CodeAnalysis.VisualBasic.Workspaces.wasm": "sha256-BXyQARAmrwSjpwIMb5SYpBjOqLrwPbhcQAmQSdikx9c=", "Microsoft.CodeAnalysis.wasm": "sha256-jFX6kNkdN2YQIAmB4pxpd7Xb09T450jBifE7HSiVObM=", "Microsoft.CodeAnalysis.Workspaces.wasm": "sha256-zJ7S7uZ4ubEJfcgiUJzX+OgXhxBDZa/1UpoDaAAM7xU=", - "System.Collections.Concurrent.wasm": "sha256-YKuoriYbASYW8m71Zm6GYBkNAsI//FKAPmM1ckhCJA4=", - "System.Collections.Immutable.wasm": "sha256-5d+/n4wo4426n3MF5pzpNOuHcAou7MUR1xbaYBW9pXY=", - "System.Collections.NonGeneric.wasm": "sha256-UomUlN7Dg6Ey91X1ziPtXFDi9xzF4RpSI6iRkKK04IE=", - "System.Collections.wasm": "sha256-NhYoM4AaNkWr6vzL4iHpeZ3D6LaoG4lnZhcBv4DIJ/Q=", - "System.ComponentModel.Primitives.wasm": "sha256-6bcGJ2wDuQiV7SYq8xqm64U5LaajW6figc3BF9Fryx4=", - "System.ComponentModel.TypeConverter.wasm": "sha256-7zL3wrgYTVhi6/v9EszKfCAcb/d/HYwijSJr1Lc0xlA=", + "System.Collections.Concurrent.wasm": "sha256-bNUT1BpaTYE0f2HReymR2AvuScwmJvHryVZxnIyLYh4=", + "System.Collections.Immutable.wasm": "sha256-z0ymT36ydM0HmP0A6hr/+MU8uxGa6yq5KLUHNpvz71E=", + "System.Collections.NonGeneric.wasm": "sha256-p+ED6e6MA6KO2O++mf9aO/jVMQD+mNCZzWgLXknzaOw=", + "System.Collections.wasm": "sha256-eL5hrhtGEXAUGEp1Tx2nLtdl/LESplKn+4+P+AvFZ8g=", + "System.ComponentModel.Primitives.wasm": "sha256-uyLvW9hjXEGs7H3xp++oVEpCcZEqPJAaRlK3S7SxOTY=", + "System.ComponentModel.TypeConverter.wasm": "sha256-Lzwt/Qd/oeqR9bBHEwuzh2BBiQAj18FQHvaDoaIEQns=", "System.Composition.AttributedModel.wasm": "sha256-Nl8YqPqOicLNRVJnk3AOj3ggk6YGO1NOk9RKYkKn5hg=", "System.Composition.Convention.wasm": "sha256-F+4ut/DaW2Av6QU6SdGriyNzMj2p4JzzR2reZCMdptQ=", "System.Composition.Hosting.wasm": "sha256-0/qasPu6Qo58V4uI3GtAfSeXqIEYm7qkOxsn7RqPx0k=", "System.Composition.Runtime.wasm": "sha256-f8+gCVEDZkl0sQndznpdEsk0moCCQkAA/MVealzmd68=", "System.Composition.TypedParts.wasm": "sha256-Js6jMny7OmkVoorhI/erhg5kvJQNMXkRvsbp8kzVBmg=", - "System.Console.wasm": "sha256-LoQX5xFfR6CZaSemPrdsqYABvKLErIRvSSU8fokBvSg=", - "System.Diagnostics.Debug.wasm": "sha256-1IMN7AoU2Ae+VfMX9fZYTrzgD73g7Zvve2y6K8xEP64=", - "System.Diagnostics.DiagnosticSource.wasm": "sha256-b240oQ9q0/nMs9CAWiYkdeqJ4NAq5BEK0b4NwgvUsi8=", - "System.Diagnostics.FileVersionInfo.wasm": "sha256-WR5ygL8FMJ8ntC+yo4QMEeX9+i9C1XFbI6xVYfixnQo=", - "System.Diagnostics.Process.wasm": "sha256-EGhV1xUS6wnZeTbvaikrmARGiY99d2ZyDTS1MqRR+AY=", - "System.Diagnostics.StackTrace.wasm": "sha256-gCis0l3aJ4QEkyT65pFGMV+UzZCQR2ixQa8jPIaCSgI=", - "System.Diagnostics.TraceSource.wasm": "sha256-dr7nCCCGDdijS5FfddlSWQRYIwk1lNBQD8rWHVk/Sho=", - "System.Diagnostics.Tracing.wasm": "sha256-e7tsKJdkBmkMBgbO7v6Fro0FA94PjpjqTQcnWEELp/o=", - "System.Globalization.wasm": "sha256-KOFl15lVEyQh+xnLprP6MbFGLbqDtrRHbX02xg5tiFk=", - "System.IO.Compression.wasm": "sha256-Lw6WGkgNAOGoEIifcZsud8ut/rGuxVhPKzh4uh2mJog=", - "System.IO.MemoryMappedFiles.wasm": "sha256-e7cmwwfiVPeoRiR8JZv2FILsVdGUnGhGfdubU0fOFOM=", - "System.Linq.Expressions.wasm": "sha256-18KSzB17uyFQa5/+ESNv3f4iAtJzDUw1bq0/fQ71zyA=", - "System.Linq.wasm": "sha256-LDmSZyrJvmiUIbIAn8Fix+dULfuMFlFNLrOECphSojE=", - "System.Memory.wasm": "sha256-s1aoGkIuN2cIPaoGt6IkGOWbHf1WzFtvBov5oSz1SuY=", - "System.Net.Http.wasm": "sha256-6j9fStLOSEwhkp8IKiA8HgmqBilB7IhwelVXWsCBN30=", - "System.Net.Primitives.wasm": "sha256-9XtuT/hRRp+Dbz7zL2czMsJ+405ppwSC+XY4mCYr6Kw=", - "System.ObjectModel.wasm": "sha256-VOZhPIII8dylGzCxx29xhr7obfiBVVLWjHmw18osmBU=", - "System.Private.CoreLib.wasm": "sha256-31rBkjG/BixEcnDRAdJNTdr0lXqiOunfChJj/jO/Z3o=", - "System.Private.Uri.wasm": "sha256-Xsw3sI8JmGwA//dEXo6IwK7/w3bt+21t/uC7+vJPSa4=", - "System.Private.Xml.Linq.wasm": "sha256-av9fHWbH4HuWhZNeVDegtajR9USvvkwU421dJYUGmOk=", - "System.Private.Xml.wasm": "sha256-Gf+l0fJWGO4k6vY6bQMABCOHqlVUmeU/OI75dEh1btk=", - "System.Reflection.Emit.ILGeneration.wasm": "sha256-zYRc7c+aTTUDVzN8Z8Rqqb+hhVinspqZScH5knBBVuE=", - "System.Reflection.Emit.Lightweight.wasm": "sha256-ibnpf0KWWKfMv0JkfbObg4t91ieyDyu5rP70Qy4y6tU=", - "System.Reflection.Emit.wasm": "sha256-k7yQ0TtdetLmcEQ0nX4WitUGGxPxBJY1CRt2pLvU/g8=", - "System.Reflection.Metadata.wasm": "sha256-txMdPQjHORHeceECXV7ChiqSAgmLWh+sqBSRWiXq8H4=", - "System.Reflection.Primitives.wasm": "sha256-olPpkW67BEGHLCBaYFm99WG3qJvJIcP1TJvLPa22WJo=", - "System.Runtime.Extensions.wasm": "sha256-Dx4qzWuXtokAeuCJpWOy1t8QB4JnTQFi/9/GqCibYtk=", - "System.Runtime.InteropServices.JavaScript.wasm": "sha256-N8QlcA4GpZ1arXwxfKIRdgzMBC697v3tD2MmMLGEhyE=", - "System.Runtime.InteropServices.wasm": "sha256-fJDoWSV0fB8fUuZn7BkL19GFf1/1w0VO+kV5qy7M3jQ=", - "System.Runtime.Intrinsics.wasm": "sha256-yc6iVdJboHzi1Ykn4ARohNX1YfBdILevyKVD/dp9NIE=", - "System.Runtime.Loader.wasm": "sha256-BToonvOmWKi1m37ME5JyScMh9awNjpWWo8T5F3Fjqzk=", - "System.Runtime.Numerics.wasm": "sha256-7mq7ymmTEX4QIe0JKYr/DlP9evJ31hCwe+mXNxtfYO0=", - "System.Runtime.Serialization.Primitives.wasm": "sha256-9ke9ibH7TMZi232BC4q177rkuZTTZAn6kZyO69c6hRw=", - "System.Runtime.wasm": "sha256-HrudsBtwKKLGG59sbwztCRPqootpDWKVu8cty86oP58=", - "System.Security.Cryptography.wasm": "sha256-pX2w01A3qxbT5JYf8LI5paLatkd9kM4ew8Gg+jXyyJs=", - "System.Text.Encoding.CodePages.wasm": "sha256-VjsTxldNWpCgIqQ8sp9+DpAerPLsFHXY7OSAFmd2KUY=", - "System.Text.Encoding.Extensions.wasm": "sha256-vdkb0ltftF1ADdGFW+p2tDBOMx8cKDdRSoU+AZprucY=", - "System.Text.Encodings.Web.wasm": "sha256-YQs3J5QWPAsdKi+0CFqIIJJjQQSyGykLHQ+yQZ3UHJ0=", - "System.Text.Json.wasm": "sha256-yUipioqmiFtHI/yzBMxzGn08Y+rQVxYjtGerSPIXi20=", - "System.Text.RegularExpressions.wasm": "sha256-oInX7Kt8x88wjjI0SrA7Pa5GkPoFsnxFW/+vwuJ00cU=", - "System.Threading.Channels.wasm": "sha256-ekFihigxIYALoavNv68rPKRhIDCtT4FzGim5Bz46G4g=", - "System.Threading.Tasks.Parallel.wasm": "sha256-/JcAaV6w1cClxCZXYCBa9PYSaUcg6tCNYz+r3oQPKlU=", - "System.Threading.Thread.wasm": "sha256-vMyi0lmmRsGFxHSMESMm9fgkLxuOOHT3GqEBLMN1o9I=", - "System.Threading.ThreadPool.wasm": "sha256-IrL0pQbJL4p5TWN0da59G23nQRIOn711SUfW4TmKfk0=", - "System.Threading.wasm": "sha256-KatWuRHgsBW/s4D57qk96APd72RBltsE9uBRZU3ObHI=", - "System.wasm": "sha256-Ss1+Cj0x4kdpNjmz3w5FLCZI9J97e3imH5jV6u4BJBk=", - "System.Xml.Linq.wasm": "sha256-HlRrZVV0I3aFROhHHNi0l7sg1EQtWzq9yru1hwa+ooY=", - "System.Xml.ReaderWriter.wasm": "sha256-MTg1tMjoAwQSe4d2HNxFNElTl30JJfULI55y2ng6vNA=", - "System.Xml.XDocument.wasm": "sha256-6ndjgkQc95MkWXbD8NM3TBO0cEEvz9D3Oa85iepSdCQ=", - "System.Xml.XPath.wasm": "sha256-Wrz0/0z7nPD0AMZGDMSO0CfiGrQXmK5p1QsYOCCZ/8Y=", - "System.Xml.XPath.XDocument.wasm": "sha256-QihCVbtPRaeUSr6BUNdhMhZrLL7eUsshBk0jID+Tb7w=", + "System.Console.wasm": "sha256-nciKgYpyZZemGPatGw099FBCn2S07ayeDdMSf+clk0A=", + "System.Diagnostics.Debug.wasm": "sha256-XZ8xj8nnYj6OrWFtuUrmZO00PV+IesW4hVCzNX9Yv5s=", + "System.Diagnostics.DiagnosticSource.wasm": "sha256-4R1dF2LudsJNX3zePPgxp147vdpTB4+082e2Bz7cmFw=", + "System.Diagnostics.FileVersionInfo.wasm": "sha256-IrJf4QT3dI9rACjbKkrgxUCP4nibLvIDH6AUZMyLCsc=", + "System.Diagnostics.Process.wasm": "sha256-fKQJ3Lk8m74lEN9iM0LHAIVf+W7sIgvEw/6HR/Fm2Yk=", + "System.Diagnostics.StackTrace.wasm": "sha256-k4TcuuXktQjMWeNQHt1AmIftubhPJriD+f845pZR88c=", + "System.Diagnostics.TraceSource.wasm": "sha256-bLagCdgmDAwZAHobYEj4eyeqpEn8fgJB0yAfHO/x8Kg=", + "System.Diagnostics.Tracing.wasm": "sha256-enS9AnufKD3d5XZ/P+ptWNX563lRMsXJ3YwpWJSC1hc=", + "System.Globalization.wasm": "sha256-HEEmP9yZSQh5lU1/KNF16oHrb5lgdQJeB/XzSmi4Vpg=", + "System.IO.Compression.wasm": "sha256-+aHOdAvD9ftZ5JFItr5BtRKkcGFB0me0H4MvSMMKcbg=", + "System.IO.MemoryMappedFiles.wasm": "sha256-0hnhG8oqYzb0MUjVs1LY4aw6FH6bgQW7GZCDb+FYORw=", + "System.Linq.Expressions.wasm": "sha256-P4qTPeaWpoDtR58aGcYT1GhXuNld49VUEfNjgu5hZ9E=", + "System.Linq.wasm": "sha256-jB2t72xcAnVllNC0E5dPxlm3F5Ec7sPu6neIQTa368s=", + "System.Memory.wasm": "sha256-snGEEeBc0EgnhGfITSmCi+YnlXqFySxPq87xDWkKb34=", + "System.Net.Http.wasm": "sha256-StkGktNqEY5pbGMviowHaZsVGcYXdH98Cs86umE5JIE=", + "System.Net.Primitives.wasm": "sha256-qVxsE3U6sOnnu0P5A6oXLTbN6v1CQPzUJHnjIcGDkRg=", + "System.ObjectModel.wasm": "sha256-xGJu57JKRKF65NzFVTnoORAFoIOk7xAwpwuVFkDxPfg=", + "System.Private.CoreLib.wasm": "sha256-yImmsckCJiQMnR9jST3dW6vLmxhJNPVB3h8cgZ8G/H4=", + "System.Private.Uri.wasm": "sha256-CV851N5uHwq5K80X7R1p0/UUzTnd62ElLkkAQZXlpIw=", + "System.Private.Xml.Linq.wasm": "sha256-loD1ROCnjEhofo84HDmXMHkR0sHLrodtNdi0aJv9Kcw=", + "System.Private.Xml.wasm": "sha256-latniiykaXVoE5P4f1IPFILHZUq7kIrMJ4FThjQl0YA=", + "System.Reflection.Emit.ILGeneration.wasm": "sha256-zTL8IZW480D/YWFkaEra9/bWQCNQ1OJNq2sqvMUV8rQ=", + "System.Reflection.Emit.Lightweight.wasm": "sha256-8K0ql3iDeTELschpMlCo2c8UzsP7l0aY8YuMkq1qtWM=", + "System.Reflection.Emit.wasm": "sha256-0L798jBTUTXgE/y6hn0h1bb/4i5mWgoQviJoCe+8JUU=", + "System.Reflection.Metadata.wasm": "sha256-fT4amAN61FhdZb/Sj8wz3HrLJ4g084UrgC+IYJlfHog=", + "System.Reflection.Primitives.wasm": "sha256-Zb5kqJuaQwmrS26LILmv5dH+lmWnTCLNkmxow/kAubA=", + "System.Runtime.Extensions.wasm": "sha256-5AZO+LXwW7QJA61bwrQ+diXMrTdtFdet648cOD3ensE=", + "System.Runtime.InteropServices.JavaScript.wasm": "sha256-xTtc1oRR5cGDMYGWL2dtgqAnpkS3szWsJ9yT/UHcP8U=", + "System.Runtime.InteropServices.wasm": "sha256-5PqMPAHli+EGN45AF+K2rOClGd/ksAcEUSGhA6SZvmA=", + "System.Runtime.Intrinsics.wasm": "sha256-Ne/I8Hhqo6n3v8zx7CGPRtabf5SWYCxoyukFOSkABEg=", + "System.Runtime.Loader.wasm": "sha256-GhOLZU8RwE+2hAfiz5j5YVw7dNYpRX4Tl7x65KOq9bg=", + "System.Runtime.Numerics.wasm": "sha256-5BMi72z5Je7QhBiAwZ05n0M6N4GhqnVyPPG5J0EEXUY=", + "System.Runtime.Serialization.Primitives.wasm": "sha256-HvAJWiG0s7i8IKLcODYARjr8NNnCZDtzlywR2fuIP84=", + "System.Runtime.wasm": "sha256-kOSrPn0HrneFLSjIEXDWJ1xW5HMNdilQOlQNef4l8M4=", + "System.Security.Cryptography.wasm": "sha256-pFkiTgXv83cubUn30k/QCoD0Jxank0DzySeyJg9BZC4=", + "System.Text.Encoding.CodePages.wasm": "sha256-bdM10sOIsFtsepCJBA/NXvlglGWF+J+1TSBA95V7l6U=", + "System.Text.Encoding.Extensions.wasm": "sha256-xvvQY7GIP+tLfvy2NRjN1Mro3dIKMg5r17lNEywgSx8=", + "System.Text.Encodings.Web.wasm": "sha256-UYhOrJJSqJDC7P9uB+0jvediLoY22erQ+yuqCIk4Xfo=", + "System.Text.Json.wasm": "sha256-v14S+sEsSp2TlRl6ma6DEg80ikULQqDmrtTdNt9VYro=", + "System.Text.RegularExpressions.wasm": "sha256-pvrwljQFflKBW1tAd5joI0OyfGxuldyaC1e7acyIGio=", + "System.Threading.Channels.wasm": "sha256-MaV1ujfCSIN+veXQGoj4AaREujdxpJVM+pVMdtzyII0=", + "System.Threading.Tasks.Parallel.wasm": "sha256-wbtbdEU9pcAOb17soKt8y52LQ16/JCDFp/k9zUCBqE4=", + "System.Threading.Thread.wasm": "sha256-evY5xWFvdudMGNjcq1r5HhhhkUxkDj/6LHiQ+AWQiSo=", + "System.Threading.ThreadPool.wasm": "sha256-TMBdHcbUHzHs4iGPWHr/GxeS2MVizFAAeCPHOGiVJpA=", + "System.Threading.wasm": "sha256-gO5gwFP94/bQj6VNHHbhlGV10a1J0S3nsgoc9v3PoxA=", + "System.wasm": "sha256-UBacYzQdR8SQYthHZ/EOygHKhxR7mzXGD2ejr1fMdc4=", + "System.Xml.Linq.wasm": "sha256-VY+WTqYbw4LGWnTMkJjsfqKF/mUynOF3ioTNZ0Hlb7s=", + "System.Xml.ReaderWriter.wasm": "sha256-RryIEIDDm3osDn/cDb2Jld8wGazDjR1xBMLBvaasjkU=", + "System.Xml.XDocument.wasm": "sha256-FI+/viOx5Ofsh8R5rX1av8/BSh7M95aiaattSBLPrmM=", + "System.Xml.XPath.wasm": "sha256-leVoLecY7TUR6LDOxwVlZBF6Q2IoIWikhrtA3P1tcQo=", + "System.Xml.XPath.XDocument.wasm": "sha256-BcJYT63KvSh+49YLj7b1cD2Eq+VQ3HEGYNgXE2Z0pxY=", "WebAssembly.wasm": "sha256-KAqb434Kbws6PogQ5g5BhrPbJm7XO2Oq4uw4r4+K9RU=" }, "satelliteResources": { diff --git a/packages/dotnet-runtime/src/vendor/compiler/compiler.wasm b/packages/dotnet-runtime/src/vendor/compiler/compiler.wasm index 6c4d8a6..b5b0415 100644 Binary files a/packages/dotnet-runtime/src/vendor/compiler/compiler.wasm and b/packages/dotnet-runtime/src/vendor/compiler/compiler.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/dotnet.js b/packages/dotnet-runtime/src/vendor/compiler/dotnet.js index 21dd77e..0dbf4c3 100755 --- a/packages/dotnet-runtime/src/vendor/compiler/dotnet.js +++ b/packages/dotnet-runtime/src/vendor/compiler/dotnet.js @@ -1,4 +1,4 @@ //! Licensed to the .NET Foundation under one or more agreements. //! The .NET Foundation licenses this file to you under the MIT license. -const e=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])),t=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])),o=Symbol.for("wasm promise_control");function n(e,t){let n=null;const r=new Promise((function(o,r){n={isDone:!1,promise:null,resolve:t=>{n.isDone||(n.isDone=!0,o(t),e&&e())},reject:e=>{n.isDone||(n.isDone=!0,r(e),t&&t())}}}));n.promise=r;const s=r;return s[o]=n,{promise:s,promise_control:n}}function r(e){return e[o]}function s(e){(function(e){return void 0!==e[o]})(e)||Te(!1,"Promise is not controllable")}const i="MONO_WASM: ";function a(e,...t){je.diagnosticTracing&&console.debug(i+e,...t)}function l(e,...t){console.info(i+e,...t)}function c(e,...t){console.info(e,...t)}function u(e,...t){console.warn(i+e,...t)}function d(e,...t){t&&t.length>0&&t[0]&&"object"==typeof t[0]&&t[0].silent||console.error(i+e,...t)}let f;function m(e,t,o){const n={log:t.log,error:t.error},r=t;function s(t,o,r){return function(...s){try{let n=s[0];if(void 0===n)n="undefined";else if(null===n)n="null";else if("function"==typeof n)n=n.toString();else if("string"!=typeof n)try{n=JSON.stringify(n)}catch(e){n=n.toString()}if("string"==typeof n)if("["==n[0]){const t=(new Date).toISOString();n="main"!==e?`[${e}][${t}] ${n}`:`[${t}] ${n}`}else"main"!==e&&(n=`[${e}] ${n}`);o(r?JSON.stringify({method:t,payload:n,arguments:s}):[t+n,...s.slice(1)])}catch(e){n.error(`proxyConsole failed: ${e}`)}}}const i=["debug","trace","warn","info","error"];for(const e of i)"function"!=typeof r[e]&&(r[e]=s(`console.${e}: `,t.log,!1));const a=`${o}/console`.replace("https://","wss://").replace("http://","ws://");f=new WebSocket(a),f.addEventListener("open",(()=>{n.log(`browser: [${e}] Console websocket connected.`)})),f.addEventListener("error",(t=>{n.error(`[${e}] websocket error: ${t}`,t)})),f.addEventListener("close",(t=>{n.error(`[${e}] websocket closed: ${t}`,t)}));const l=e=>{f.readyState===WebSocket.OPEN?f.send(e):n.log(e)};for(const e of["log",...i])r[e]=s(`console.${e}`,l,!0)}const h={},p={},g={};let b,w,y;function v(){const e=Object.values(g),t=Object.values(p),o=R(e),n=R(t),r=o+n;if(0===r)return;const s=_e?"%c":"",i=_e?["background: purple; color: white; padding: 1px 3px; border-radius: 3px;","font-weight: bold;","font-weight: normal;"]:[],a=je.config.linkerEnabled?"":"\nThis application was built with linking (tree shaking) disabled. \nPublished applications will be significantly smaller if you install wasm-tools workload. \nSee also https://aka.ms/dotnet-wasm-features";console.groupCollapsed(`${s}dotnet${s} Loaded ${j(r)} resources${s}${a}`,...i),e.length&&(console.groupCollapsed(`Loaded ${j(o)} resources from cache`),console.table(g),console.groupEnd()),t.length&&(console.groupCollapsed(`Loaded ${j(n)} resources from network`),console.table(p),console.groupEnd()),console.groupEnd()}async function _(){const e=b;if(e){const t=(await e.keys()).map((async t=>{t.url in h||await e.delete(t)}));await Promise.all(t)}}function E(e){return`${e.resolvedUrl}.${e.hash}`}function R(e){return e.reduce(((e,t)=>e+(t.responseBytes||0)),0)}function j(e){return`${(e/1048576).toFixed(2)} MB`}function S(e){var t;if((null===(t=e.resources)||void 0===t?void 0:t.icu)&&"invariant"!=e.globalizationMode){const t=e.applicationCulture||(_e?navigator.languages&&navigator.languages[0]:Intl.DateTimeFormat().resolvedOptions().locale),o=Object.keys(e.resources.icu);let n=null;if("custom"===e.globalizationMode?1===o.length&&(n=o[0]):"hybrid"===e.globalizationMode?n="icudt_hybrid.dat":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",n&&o.includes(n))return n}return e.globalizationMode="invariant",null}const A=class{constructor(e){this.url=e}toString(){return this.url}};async function x(e,t){try{const o="function"==typeof globalThis.fetch;if(ye){const n=e.startsWith("file://");if(!n&&o)return globalThis.fetch(e,t||{credentials:"same-origin"});w||(y=Ae.require("url"),w=Ae.require("fs")),n&&(e=y.fileURLToPath(e));const r=await w.promises.readFile(e);return{ok:!0,headers:{length:0,get:()=>null},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 D(e){return"string"!=typeof e&&Te(!1,"url must be a string"),!k(e)&&0!==e.indexOf("./")&&0!==e.indexOf("../")&&globalThis.URL&&globalThis.document&&globalThis.document.baseURI&&(e=new URL(e,globalThis.document.baseURI).toString()),e}const T=/^[a-zA-Z][a-zA-Z\d+\-.]*?:\/\//,C=/[a-zA-Z]:[\\/]/;function k(e){return ye||Ee?e.startsWith("/")||e.startsWith("\\")||-1!==e.indexOf("///")||C.test(e):T.test(e)}let O,M=0;const $=[],I=[],L=new Map,U={"js-module-threads":!0,"js-module-runtime":!0,"js-module-dotnet":!0,"js-module-native":!0},P={...U,"js-module-library-initializer":!0},N={...U,dotnetwasm:!0,heap:!0,manifest:!0},z={...P,manifest:!0},W={...P,dotnetwasm:!0},B={dotnetwasm:!0,symbols:!0},F={resource:!0,assembly:!0,pdb:!0,heap:!0,icu:!0},V={...P,dotnetwasm:!0,symbols:!0};function q(e){return!("icu"==e.behavior&&e.name!=je.preferredIcuAsset)}function J(e,t,o){const n=Object.keys(t||{});Te(1==n.length,`Expect to have one ${o} asset in resources`);const r=n[0],s={name:r,hash:t[r],behavior:o};return H(s),e.push(s),s}function H(e){N[e.behavior]&&L.set(e.behavior,e)}function Q(e){const t=function(e){Te(N[e],`Unknown single asset behavior ${e}`);const t=L.get(e);return Te(t,`Single asset for ${e} not found`),t}(e);if(t.resolvedUrl=je.locateFile(t.name),U[t.behavior]){const e=se(t);e?("string"!=typeof e&&Te(!1,"loadBootResource response for 'dotnetjs' type should be a URL string"),t.resolvedUrl=e):t.resolvedUrl=ee(t.resolvedUrl,t.behavior)}else if("dotnetwasm"!==t.behavior)throw new Error(`Unknown single asset behavior ${e}`);return t}async function Z(){a("mono_download_assets");try{const e=[],t=t=>{!V[t.behavior]&&q(t)&&je.expected_instantiated_assets_count++,!W[t.behavior]&&q(t)&&(je.expected_downloaded_assets_count++,e.push(Y(t)))};for(const e of I)t(e);await je.memorySnapshotSkippedOrDone.promise;for(const e of $)if(Re.loadedMemorySnapshotSize){if(ie(e),"resource"==e.behavior||"assembly"==e.behavior||"pdb"==e.behavior){const t=X(e,""),o="string"==typeof e.virtualPath?e.virtualPath:e.name;je._loaded_files.push({url:t,file:o})}}else t(e);je.allDownloadsQueued.promise_control.resolve(),await je.runtimeModuleLoaded.promise;const o=[];for(const t of e)o.push((async()=>{const e=await t;if(e.buffer){if(!V[e.behavior]){e.buffer&&"object"==typeof e.buffer||Te(!1,"asset buffer must be array-like or buffer-like or promise of these"),"string"!=typeof e.resolvedUrl&&Te(!1,"resolvedUrl must be string");const t=e.resolvedUrl,o=await e.buffer,n=new Uint8Array(o);ie(e),await Re.beforeOnRuntimeInitialized.promise,Re.instantiate_asset(e,t,n)}}else B[e.behavior]?("symbols"===e.behavior&&(await Re.instantiate_symbols_asset(e),ie(e)),B[e.behavior]&&++je.actual_downloaded_assets_count):(e.isOptional||Te(!1,"Expected asset to have the downloaded buffer"),!W[e.behavior]&&q(e)&&je.expected_downloaded_assets_count--,!V[e.behavior]&&q(e)&&je.expected_instantiated_assets_count--)})());Promise.all(o).then((()=>{Re.allAssetsInMemory.promise_control.resolve()})).catch((e=>{throw je.err("Error in mono_download_assets: "+e),Me(1,e),e}))}catch(e){throw je.err("Error in mono_download_assets: "+e),e}}async function G(e){const t=await Y(e);return await t.pendingDownloadInternal.response,t.buffer}async function Y(e){try{return await K(e)}catch(t){if(!je.enableDownloadRetry)throw t;if(Ee||ye)throw t;if(e.pendingDownload&&e.pendingDownloadInternal==e.pendingDownload)throw t;if(e.resolvedUrl&&-1!=e.resolvedUrl.indexOf("file://"))throw t;if(t&&404==t.status)throw t;e.pendingDownloadInternal=void 0,await je.allDownloadsQueued.promise;try{return a(`Retrying download '${e.name}'`),await K(e)}catch(t){return e.pendingDownloadInternal=void 0,await(100,new Promise((e=>globalThis.setTimeout(e,100)))),a(`Retrying download (2) '${e.name}' after delay`),await K(e)}}}async function K(e){for(;O;)await O.promise;try{++M,M==je.maxParallelDownloads&&(a("Throttling further parallel downloads"),O=n());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&&je.config.remoteSources?je.config.remoteSources:[""];let o;for(let n of t){n=n.trim(),"./"===n&&(n="");const t=X(e,n);e.name===t?a(`Attempting to download '${t}'`):a(`Attempting to download '${t}' for ${e.name}`);try{e.resolvedUrl=t;const n=ne(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$/)&&je.config.ignorePdbLoadErrors;if(o||Te(!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}l(`optional download '${o.url}' for ${e.name} failed ${o.status} ${o.statusText}`)}(e);return t?(B[e.behavior]||(e.buffer=await t.arrayBuffer(),++je.actual_downloaded_assets_count),e):e}finally{if(--M,O&&M==je.maxParallelDownloads-1){a("Resuming more parallel downloads");const e=O;O=void 0,e.promise_control.resolve()}}}function X(e,t){let o;return null==t&&Te(!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=ee(je.locateFile(o),e.behavior)),o&&"string"==typeof o||Te(!1,"attemptUrl need to be path or url string"),o}function ee(e,t){return je.modulesUniqueQuery&&z[t]&&(e+=je.modulesUniqueQuery),e}let te=0;const oe=new Set;function ne(e){try{e.resolvedUrl||Te(!1,"Request's resolvedUrl must be set");const t=async function(e){let t=await async function(e){const t=b;if(!t||e.noCache||!e.hash||0===e.hash.length)return;const o=E(e);let n;h[o]=!0;try{n=await t.match(o)}catch(e){}if(!n)return;const r=parseInt(n.headers.get("content-length")||"0");return g[e.name]={responseBytes:r},n}(e);return t||(t=await function(e){let t=e.resolvedUrl;if(je.loadBootResource){const o=se(e);if(o instanceof Promise)return o;"string"==typeof o&&(t=o)}const o={};return je.config.disableNoCacheFetch||(o.cache="no-cache"),e.useCredentials?o.credentials="include":!je.config.disableIntegrityCheck&&e.hash&&(o.integrity=e.hash),je.fetch_like(t,o)}(e),function(e,t){const o=b;if(!o||e.noCache||!e.hash||0===e.hash.length)return;const n=t.clone();setTimeout((()=>{const t=E(e);!async function(e,t,o,n){const r=await n.arrayBuffer(),s=function(e){if("undefined"!=typeof performance)return performance.getEntriesByName(e)[0]}(n.url),i=s&&s.encodedBodySize||void 0;p[t]={responseBytes:i};const a=new Response(r,{headers:{"content-type":n.headers.get("content-type")||"","content-length":(i||n.headers.get("content-length")||"").toString()}});try{await e.put(o,a)}catch(e){}}(o,e.name,t,n)}),0)}(e,t)),t}(e),o={name:e.name,url:e.resolvedUrl,response:t};return oe.add(e.name),o.response.then((()=>{"assembly"==e.behavior&&je.loadedAssemblies.push(e.name),te++,je.onDownloadResourceProgress&&je.onDownloadResourceProgress(te,oe.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 re={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 se(e){var t;if(je.loadBootResource){const o=null!==(t=e.hash)&&void 0!==t?t:"",n=e.resolvedUrl,r=re[e.behavior];if(r){const t=je.loadBootResource(r,e.name,n,o,e.behavior);return"string"==typeof t?D(t):t}}}function ie(e){e.pendingDownloadInternal=null,e.pendingDownload=null,e.buffer=null,e.moduleExports=null}function ae(e){let t=e.lastIndexOf("/");return t>=0&&t++,e.substring(t)}async function le(e){if(!e)return;const t=Object.keys(e);await Promise.all(t.map((e=>async function(e){try{const t=ee(je.locateFile(e),"js-module-library-initializer");a(`Attempting to import '${t}' for ${e}`);const o=await import(t);je.libraryInitializers.push({scriptName:e,exports:o})}catch(t){u(`Failed to import library initializer '${e}': ${t}`)}}(e))))}async function ce(e,t){if(!je.libraryInitializers)return;const o=[];for(let n=0;nr.exports[e](...t))))}await Promise.all(o)}async function ue(e,t,o){try{await o()}catch(o){throw u(`Failed to invoke '${t}' on library initializer '${e}': ${o}`),Me(1,o),o}}var de="Release";function fe(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=he(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 me(e,t){if(e===t)return e;const o={...t};return o.config&&(e.config||(e.config={}),o.config=fe(e.config,o.config)),Object.assign(e,o)}function he(e,t){if(e===t)return e;const o={...t};return void 0!==o.assembly&&(o.assembly={...e.assembly||{},...o.assembly||{}}),void 0!==o.lazyAssembly&&(o.lazyAssembly={...e.lazyAssembly||{},...o.lazyAssembly||{}}),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.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=pe(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=pe(e.vfs||{},o.vfs||{})),Object.assign(e,o)}function pe(e,t){if(e===t)return e;for(const o in t)e[o]={...e[o],...t[o]};return e}function ge(){const e=je.config;if(e.environmentVariables=e.environmentVariables||{},e.runtimeOptions=e.runtimeOptions||[],e.resources=e.resources||{assembly:{},jsModuleNative:{},jsModuleWorker:{},jsModuleRuntime:{},wasmNative:{},vfs:{},satelliteResources:{}},e.assets){a("config.assets is deprecated, use config.resources instead");for(const t of e.assets){const o={};o[t.name]=t.hash||"";const n={};switch(t.behavior){case"assembly":n.assembly=o;break;case"pdb":n.pdb=o;break;case"resource":n.satelliteResources={},n.satelliteResources[t.culture]=o;break;case"icu":n.icu=o;break;case"symbols":n.wasmSymbols=o;break;case"vfs":n.vfs={},n.vfs[t.virtualPath]=o;break;case"dotnetwasm":n.wasmNative=o;break;case"js-module-threads":n.jsModuleWorker=o;break;case"js-module-runtime":n.jsModuleRuntime=o;break;case"js-module-native":n.jsModuleNative=o;break;case"js-module-dotnet":break;default:throw new Error(`Unexpected behavior ${t.behavior} of asset ${t.name}`)}he(e.resources,n)}}je.assertAfterExit=e.assertAfterExit=e.assertAfterExit||!_e,void 0===e.debugLevel&&"Debug"===de&&(e.debugLevel=-1),void 0===e.cachedResourcesPurgeDelay&&(e.cachedResourcesPurgeDelay=1e4),e.debugLevel=we(e)?e.debugLevel:0,void 0===e.diagnosticTracing&&"Debug"===de&&(e.diagnosticTracing=!0),e.applicationCulture&&(e.environmentVariables.LANG=`${e.applicationCulture}.UTF-8`),Re.diagnosticTracing=je.diagnosticTracing=!!e.diagnosticTracing,Re.waitForDebugger=e.waitForDebugger,e.startupMemoryCache=!!e.startupMemoryCache,e.startupMemoryCache&&Re.waitForDebugger&&(a("Disabling startupMemoryCache because waitForDebugger is set"),e.startupMemoryCache=!1),Re.enablePerfMeasure=!!e.browserProfilerOptions&&globalThis.performance&&"function"==typeof globalThis.performance.measure,je.maxParallelDownloads=e.maxParallelDownloads||je.maxParallelDownloads,je.enableDownloadRetry=void 0!==e.enableDownloadRetry?e.enableDownloadRetry:je.enableDownloadRetry}let be=!1;function we(e){return!!globalThis.navigator&&((!!e.resources.pdb||0!=e.debugLevel)&&(je.isChromium||je.isFirefox))}const ye="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,ve="function"==typeof importScripts,_e="object"==typeof window||ve&&!ye,Ee=!_e&&!ye&&!ve;let Re={},je={},Se={},Ae={},xe=!1;const De={mono:{},binding:{},internal:Ae,module:{},loaderHelpers:je,runtimeHelpers:Re,api:Se};function Te(e,t){if(e)return;const o="Assert failed: "+("function"==typeof t?t():t),n=new Error(o);Re.abort(n)}function Ce(){return void 0!==je.exitCode}function ke(){return Re.runtimeReady&&!Ce()}function Oe(){Re.runtimeReady||Te(!1,"mono runtime didn't start yet"),je.assertAfterExit&&Ce()&&Te(!1,`mono runtime already exited with ${je.exitCode}`)}function Me(e,t){var o;const n=t&&"object"==typeof t;e=n&&"number"==typeof t.status?t.status:e;const r=n&&"string"==typeof t.message?t.message:""+t;if((t=n?t:Re.ExitStatus?new Re.ExitStatus(e):new Error("Exit with code "+e+" "+r)).status=e,t.message||(t.message=r),t.stack||(t.stack=(new Error).stack||""),t.silent=!0,!Ce()){try{Re.runtimeReady||(a("abort_startup, reason: "+t),function(e){je.allDownloadsQueued.promise_control.reject(e),je.afterConfigLoaded.promise_control.reject(e),je.wasmDownloadPromise.promise_control.reject(e),je.runtimeModuleLoaded.promise_control.reject(e),je.memorySnapshotSkippedOrDone.promise_control.reject(e),Re.dotnetReady&&(Re.dotnetReady.promise_control.reject(e),Re.afterInstantiateWasm.promise_control.reject(e),Re.beforePreInit.promise_control.reject(e),Re.afterPreInit.promise_control.reject(e),Re.afterPreRun.promise_control.reject(e),Re.beforeOnRuntimeInitialized.promise_control.reject(e),Re.afterOnRuntimeInitialized.promise_control.reject(e),Re.afterPostRun.promise_control.reject(e))}(t)),function(e,t){if(0!==e&&t){const e=Re.ExitStatus&&t instanceof Re.ExitStatus?a:d;"string"==typeof t?e(t):t.stack&&t.message?Re.stringify_as_error_with_stack?e(Re.stringify_as_error_with_stack(t)):e(t.message+"\n"+t.stack):e(JSON.stringify(t))}if(je.config&&je.config.logExitCode)if(f){const t=()=>{0==f.bufferedAmount?c("WASM EXIT "+e):globalThis.setTimeout(t,100)};t()}else c("WASM EXIT "+e)}(e,t),function(e){if(_e&&je.config&&je.config.appendElementOnExit){const t=document.createElement("label");t.id="tests_done",e&&(t.style.background="red"),t.innerHTML=e.toString(),document.body.appendChild(t)}}(e),Re.jiterpreter_dump_stats&&Re.jiterpreter_dump_stats(!1),0===e&&(null===(o=je.config)||void 0===o?void 0:o.interopCleanupOnExit)&&Re.forceDisposeProxies(!0,!0)}catch(e){u("mono_exit failed",e)}je.exitCode=e}if(je.config&&je.config.asyncFlushOnExit&&0===e)throw(async()=>{try{await async function(){try{const e=await import("process"),t=e=>new Promise(((t,o)=>{e.on("error",(e=>o(e))),e.write("",(function(){t()}))})),o=t(e.stderr),n=t(e.stdout);await Promise.all([n,o])}catch(e){d(`flushing std* streams failed: ${e}`)}}()}finally{$e(e,t)}})(),t;$e(e,t)}function $e(e,t){if(ke()&&Re.mono_wasm_exit&&Re.mono_wasm_exit(e),0!==e||!_e)throw ye&&Ae.process?Ae.process.exit(e):Re.quit&&Re.quit(e,t),t}!function(o){if(xe)throw new Error("Loader module already loaded");xe=!0,Re=o.runtimeHelpers,je=o.loaderHelpers,Se=o.api,Ae=o.internal,Object.assign(Se,{INTERNAL:Ae,invokeLibraryInitializers:ce}),Object.assign(o.module,{disableDotnet6Compatibility:!0,config:{environmentVariables:{}}}),Object.assign(Re,{mono_wasm_bindings_is_ready:!1,javaScriptExports:{},config:o.module.config,diagnosticTracing:!1,abort:e=>{throw e}}),Object.assign(je,{gitHash:"08338fcaa5c9b9a8190abb99222fed12aaba956c",config:o.module.config,diagnosticTracing:!1,maxParallelDownloads:16,enableDownloadRetry:!0,assertAfterExit:!_e,_loaded_files:[],loadedFiles:[],loadedAssemblies:[],libraryInitializers:[],actual_downloaded_assets_count:0,actual_instantiated_assets_count:0,expected_downloaded_assets_count:0,expected_instantiated_assets_count:0,afterConfigLoaded:n(),allDownloadsQueued:n(),wasmDownloadPromise:n(),runtimeModuleLoaded:n(),memorySnapshotSkippedOrDone:n(),is_exited:Ce,is_runtime_running:ke,assert_runtime_running:Oe,mono_exit:Me,createPromiseController:n,getPromiseController:r,assertIsControllablePromise:s,mono_download_assets:Z,resolve_single_asset_path:Q,setup_proxy_console:m,logDownloadStatsToConsole:v,purgeUnusedCacheEntriesAsync:_,hasDebuggingEnabled:we,retrieve_asset_download:G,invokeLibraryInitializers:ce,exceptions:e,simd:t})}(De);const Ie="__mono_message_please_dont_collide__";let Le=!1;const Ue=De.module,Pe=Ue.config;async function Ne(e){if("function"==typeof e){const t=e(De.api);if(t.ready)throw new Error("Module.ready couldn't be redefined.");Object.assign(Ue,t),me(Ue,t)}else{if("object"!=typeof e)throw new Error("Can't use moduleFactory callback of createDotnetRuntime function.");me(Ue,e)}return await async function(e){if(ye){const e=await import("process"),t=14;if(e.versions.node.split(".")[0]0&&(je.modulesUniqueQuery=t.substring(o)),je.scriptUrl=t.replace(/\\/g,"/").replace(/[?#].*/,""),je.scriptDirectory=(n=je.scriptUrl).slice(0,n.lastIndexOf("/"))+"/",je.locateFile=e=>"URL"in globalThis&&globalThis.URL!==A?new URL(e,je.scriptDirectory).toString():k(e)?e:je.scriptDirectory+e,je.fetch_like=x,je.out=console.log,je.err=console.error,je.onDownloadResourceProgress=e.onDownloadResourceProgress,_e&&globalThis.navigator){const e=globalThis.navigator,t=e.userAgentData&&e.userAgentData.brands;t&&t.length>0?je.isChromium=t.some((e=>"Google Chrome"===e.brand||"Microsoft Edge"===e.brand||"Chromium"===e.brand)):e.userAgent&&(je.isChromium=e.userAgent.includes("Chrome"),je.isFirefox=e.userAgent.includes("Firefox"))}Ae.require=ye?await import("module").then((e=>e.createRequire(import.meta.url))):Promise.resolve((()=>{throw new Error("require not supported")})),void 0===globalThis.URL&&(globalThis.URL=A)}(Ue),Ue.ENVIRONMENT_IS_PTHREAD?async function(){(function(){const e=new MessageChannel,t=e.port1,o=e.port2;t.addEventListener("message",(e=>{var n;n=JSON.parse(e.data.config),Le?a("mono config already received"):(fe(je.config,n),ge(),a("mono config received"),Le=!0,je.afterConfigLoaded.promise_control.resolve(je.config),_e&&n.forwardConsoleLogsToWS&&void 0!==globalThis.WebSocket&&je.setup_proxy_console("pthread-worker",console,self.location.href)),t.close(),o.close()}),{once:!0}),t.start(),self.postMessage({[Ie]:{monoCmd:"preload",port:o}},[o])})(),await je.afterConfigLoaded.promise,function(){const e=je.config;e.assets||Te(!1,"config.assets must be defined");for(const t of e.assets)H(t)}();const e=ze(),t=await Promise.all(e);return await We(t),Ue}():async function(){var e;Ue.configSrc||je.config&&0!==Object.keys(je.config).length&&(je.config.assets||je.config.resources)||(Ue.configSrc="./blazor.boot.json"),await async function(e){var t;const o=e.configSrc;if(be)await je.afterConfigLoaded.promise;else try{if(be=!0,o&&(a("mono_wasm_load_config"),await async function(e){const t=je.locateFile(e.configSrc),o=void 0!==je.loadBootResource?je.loadBootResource("manifest","blazor.boot.json",t,"","manifest"):s(t);let n;n=o?"string"==typeof o?await s(D(o)):await o:await s(ee(t,"manifest"));const r=await async function(e){const t=je.config,o=await e.json();t.applicationEnvironment||(o.applicationEnvironment=e.headers.get("Blazor-Environment")||e.headers.get("DotNet-Environment")||"Production"),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}(n);function s(e){return je.fetch_like(e,{method:"GET",credentials:"include",cache:"no-cache"})}fe(je.config,r)}(e)),ge(),await le(null===(t=je.config.resources)||void 0===t?void 0:t.modulesAfterConfigLoaded),await ce("onRuntimeConfigLoaded",[je.config]),e.onConfigLoaded)try{await e.onConfigLoaded(je.config,Se),ge()}catch(e){throw d("onConfigLoaded() failed",e),e}ge(),je.config.startupMemoryCache&&e.instantiateWasm&&Te(!1,"startupMemoryCache is not supported with Module.instantiateWasm"),je.afterConfigLoaded.promise_control.resolve(je.config),je.config.startupMemoryCache||je.memorySnapshotSkippedOrDone.promise_control.resolve()}catch(t){const n=`Failed to load config file ${o} ${t} ${null==t?void 0:t.stack}`;throw je.config=e.config=Object.assign(je.config,{message:n,error:t,isError:!0}),Me(1,new Error(n)),t}}(Ue),function(){const e=je.config,t=[];if(e.assets)for(const t of e.assets)"object"!=typeof t&&Te(!1,`asset must be object, it was ${typeof t} : ${t}`),"string"!=typeof t.behavior&&Te(!1,"asset behavior must be known string"),"string"!=typeof t.name&&Te(!1,"asset name must be string"),t.resolvedUrl&&"string"!=typeof t.resolvedUrl&&Te(!1,"asset resolvedUrl could be string"),t.hash&&"string"!=typeof t.hash&&Te(!1,"asset resolvedUrl could be string"),t.pendingDownload&&"object"!=typeof t.pendingDownload&&Te(!1,"asset pendingDownload could be object"),F[t.behavior]?$.push(t):I.push(t),H(t);else if(e.resources){const o=e.resources;if(o.wasmNative||Te(!1,"resources.wasmNative must be defined"),o.jsModuleNative||Te(!1,"resources.jsModuleNative must be defined"),o.jsModuleRuntime||Te(!1,"resources.jsModuleRuntime must be defined"),o.jsModuleWorker||Te(!1,"resources.jsModuleWorker must be defined"),J(I,o.wasmNative,"dotnetwasm"),J(t,o.jsModuleNative,"js-module-native"),J(t,o.jsModuleRuntime,"js-module-runtime"),J(t,o.jsModuleWorker,"js-module-threads"),o.assembly)for(const e in o.assembly)$.push({name:e,hash:o.assembly[e],behavior:"assembly"});if(0!=e.debugLevel&&o.pdb)for(const e in o.pdb)$.push({name:e,hash:o.pdb[e],behavior:"pdb"});if(e.loadAllSatelliteResources&&o.satelliteResources)for(const e in o.satelliteResources)for(const t in o.satelliteResources[e])$.push({name:t,hash:o.satelliteResources[e][t],behavior:"resource",culture:e});if(o.vfs)for(const e in o.vfs)for(const t in o.vfs[e])I.push({name:t,hash:o.vfs[e][t],behavior:"vfs",virtualPath:e});const n=S(e);if(n&&o.icu)for(const e in o.icu)e===n&&$.push({name:e,hash:o.icu[e],behavior:"icu",loadRemote:!0});if(o.wasmSymbols)for(const e in o.wasmSymbols)I.push({name:e,hash:o.wasmSymbols[e],behavior:"symbols"})}if(e.appsettings)for(let t=0;t{je.wasmDownloadPromise.promise_control.resolve(e)})).catch((e=>{Me(1,e)})),setTimeout((()=>{!function(){if(je.preferredIcuAsset=S(je.config),je.invariantMode="invariant"==je.config.globalizationMode,!je.invariantMode)if(je.preferredIcuAsset)a("ICU data archive(s) available, disabling invariant mode");else{if("custom"===je.config.globalizationMode||"all"===je.config.globalizationMode||"sharded"===je.config.globalizationMode){const e="invariant globalization mode is inactive and no ICU data archives are available";throw d(`ERROR: ${e}`),new Error(e)}a("ICU data archive(s) not available, using invariant globalization mode"),je.invariantMode=!0,je.preferredIcuAsset=null}const e="DOTNET_SYSTEM_GLOBALIZATION_INVARIANT",t="DOTNET_SYSTEM_GLOBALIZATION_HYBRID",o=je.config.environmentVariables;if(void 0===o[t]&&"hybrid"===je.config.globalizationMode?o[t]="1":void 0===o[e]&&je.invariantMode&&(o[e]="1"),void 0===o.TZ)try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone||null;e&&(o.TZ=e)}catch(e){l("failed to detect timezone, will fallback to UTC")}}(),Z()}),0);const o=await Promise.all(t);return await We(o),await Re.dotnetReady.promise,await le(null===(e=je.config.resources)||void 0===e?void 0:e.modulesAfterRuntimeReady),await ce("onRuntimeReady",[De.api]),Se}()}function ze(){const e=Q("js-module-runtime"),t=Q("js-module-native");let o,n;return"object"==typeof e.moduleExports?o=e.moduleExports:(a(`Attempting to import '${e.resolvedUrl}' for ${e.name}`),o=import(e.resolvedUrl)),"object"==typeof t.moduleExports?n=t.moduleExports:(a(`Attempting to import '${t.resolvedUrl}' for ${t.name}`),n=import(t.resolvedUrl)),[o,n]}async function We(e){const{initializeExports:t,initializeReplacements:o,configureRuntimeStartup:n,configureEmscriptenStartup:r,configureWorkerStartup:s,setRuntimeGlobals:i,passEmscriptenInternals:a}=e[0],{default:l}=e[1];i(De),t(De),await n(De.module),je.runtimeModuleLoaded.promise_control.resolve(),l((e=>(Object.assign(Ue,{ready:e.ready,__dotnet_runtime:{initializeReplacements:o,configureEmscriptenStartup:r,configureWorkerStartup:s,passEmscriptenInternals:a}}),Ue)))}const Be=new class{withModuleConfig(e){try{return me(Ue,e),this}catch(e){throw Me(1,e),e}}withOnConfigLoaded(e){try{return me(Ue,{onConfigLoaded:e}),this}catch(e){throw Me(1,e),e}}withConsoleForwarding(){try{return fe(Pe,{forwardConsoleLogsToWS:!0}),this}catch(e){throw Me(1,e),e}}withExitOnUnhandledError(){const e=function(e,t){e.preventDefault();try{t&&t.silent||Me(1,t)}catch(e){}};try{return _e&&(window.addEventListener("unhandledrejection",(t=>e(t,t.reason))),window.addEventListener("error",(t=>e(t,t.error)))),this}catch(e){throw Me(1,e),e}}withAsyncFlushOnExit(){try{return fe(Pe,{asyncFlushOnExit:!0}),this}catch(e){throw Me(1,e),e}}withExitCodeLogging(){try{return fe(Pe,{logExitCode:!0}),this}catch(e){throw Me(1,e),e}}withElementOnExit(){try{return fe(Pe,{appendElementOnExit:!0}),this}catch(e){throw Me(1,e),e}}withInteropCleanupOnExit(){try{return fe(Pe,{interopCleanupOnExit:!0}),this}catch(e){throw Me(1,e),e}}withAssertAfterExit(){try{return fe(Pe,{assertAfterExit:!0}),this}catch(e){throw Me(1,e),e}}withWaitingForDebugger(e){try{return fe(Pe,{waitForDebugger:e}),this}catch(e){throw Me(1,e),e}}withStartupMemoryCache(e){try{return fe(Pe,{startupMemoryCache:e}),this}catch(e){throw Me(1,e),e}}withConfig(e){try{return fe(Pe,e),this}catch(e){throw Me(1,e),e}}withConfigSrc(e){try{return e&&"string"==typeof e||Te(!1,"must be file path or URL"),me(Ue,{configSrc:e}),this}catch(e){throw Me(1,e),e}}withVirtualWorkingDirectory(e){try{return e&&"string"==typeof e||Te(!1,"must be directory path"),this.virtualWorkingDirectory=e,this}catch(e){throw Me(1,e),e}}withEnvironmentVariable(e,t){try{const o={};return o[e]=t,fe(Pe,{environmentVariables:o}),this}catch(e){throw Me(1,e),e}}withEnvironmentVariables(e){try{return e&&"object"==typeof e||Te(!1,"must be dictionary object"),fe(Pe,{environmentVariables:e}),this}catch(e){throw Me(1,e),e}}withDiagnosticTracing(e){try{return"boolean"!=typeof e&&Te(!1,"must be boolean"),fe(Pe,{diagnosticTracing:e}),this}catch(e){throw Me(1,e),e}}withDebugging(e){try{return e&&"number"==typeof e||Te(!1,"must be number"),fe(Pe,{debugLevel:e}),this}catch(e){throw Me(1,e),e}}withApplicationArguments(...e){try{return e&&Array.isArray(e)||Te(!1,"must be array of strings"),this.applicationArguments=e,this}catch(e){throw Me(1,e),e}}withRuntimeOptions(e){try{return e&&Array.isArray(e)||Te(!1,"must be array of strings"),fe(Pe,{runtimeOptions:e}),this}catch(e){throw Me(1,e),e}}withMainAssembly(e){try{return fe(Pe,{mainAssemblyName:e}),this}catch(e){throw Me(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(window.location.search).getAll("arg");return this.withApplicationArguments(...e)}catch(e){throw Me(1,e),e}}withApplicationEnvironment(e){try{return fe(Pe,{applicationEnvironment:e}),this}catch(e){throw Me(1,e),e}}withApplicationCulture(e){try{return fe(Pe,{applicationCulture:e}),this}catch(e){throw Me(1,e),e}}withResourceLoader(e){try{return je.loadBootResource=e,this}catch(e){throw Me(1,e),e}}async create(){try{if(this.instance||(_e&&Ue.config.forwardConsoleLogsToWS&&void 0!==globalThis.WebSocket&&m("main",globalThis.console,globalThis.location.origin),Ue||Te(!1,"Null moduleConfig"),Ue.config||Te(!1,"Null moduleConfig.config"),await Ne(Ue),this.instance=De.api),this.virtualWorkingDirectory){const e=this.instance.Module.FS,t=e.stat(this.virtualWorkingDirectory);t&&e.isDir(t.mode)||Te(!1,`Could not find working directory ${this.virtualWorkingDirectory}`),e.chdir(this.virtualWorkingDirectory)}return this.instance}catch(e){throw Me(1,e),e}}async run(){try{if(Ue.config||Te(!1,"Null moduleConfig.config"),this.instance||await this.create(),Ue.config.mainAssemblyName||Te(!1,"Null moduleConfig.config.mainAssemblyName"),!this.applicationArguments)if(ye){const e=await import("process");this.applicationArguments=e.argv.slice(2)}else this.applicationArguments=[];return this.instance.runMainAndExit(Ue.config.mainAssemblyName,this.applicationArguments)}catch(e){throw Me(1,e),e}}},Fe=Me,Ve=Ne;Ee||"function"==typeof globalThis.URL||Te(!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&&Te(!1,"This browser/engine doesn't support BigInt64Array API. Please use a modern version. See also https://aka.ms/dotnet-wasm-features"),(Ee||ye)&&Te(!1,"This build of dotnet is multi-threaded, it doesn't support shell environments like V8 or NodeJS. See also https://aka.ms/dotnet-wasm-features"),void 0===globalThis.SharedArrayBuffer&&Te(!1,"SharedArrayBuffer is not enabled on this page. Please use a modern browser and set Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy http headers. See also https://aka.ms/dotnet-wasm-features"),"function"!=typeof globalThis.EventTarget&&Te(!1,"This browser/engine doesn't support EventTarget API. Please use a modern version. See also https://aka.ms/dotnet-wasm-features");export{Ve as default,Be as dotnet,Fe as exit}; +const e=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])),t=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])),o=Symbol.for("wasm promise_control");function n(e,t){let n=null;const r=new Promise((function(o,r){n={isDone:!1,promise:null,resolve:t=>{n.isDone||(n.isDone=!0,o(t),e&&e())},reject:e=>{n.isDone||(n.isDone=!0,r(e),t&&t())}}}));n.promise=r;const s=r;return s[o]=n,{promise:s,promise_control:n}}function r(e){return e[o]}function s(e){(function(e){return void 0!==e[o]})(e)||Te(!1,"Promise is not controllable")}const i="MONO_WASM: ";function a(e,...t){je.diagnosticTracing&&console.debug(i+e,...t)}function l(e,...t){console.info(i+e,...t)}function c(e,...t){console.info(e,...t)}function u(e,...t){console.warn(i+e,...t)}function d(e,...t){t&&t.length>0&&t[0]&&"object"==typeof t[0]&&t[0].silent||console.error(i+e,...t)}let f;function m(e,t,o){const n={log:t.log,error:t.error},r=t;function s(t,o,r){return function(...s){try{let n=s[0];if(void 0===n)n="undefined";else if(null===n)n="null";else if("function"==typeof n)n=n.toString();else if("string"!=typeof n)try{n=JSON.stringify(n)}catch(e){n=n.toString()}if("string"==typeof n)if("["==n[0]){const t=(new Date).toISOString();n="main"!==e?`[${e}][${t}] ${n}`:`[${t}] ${n}`}else"main"!==e&&(n=`[${e}] ${n}`);o(r?JSON.stringify({method:t,payload:n,arguments:s}):[t+n,...s.slice(1)])}catch(e){n.error(`proxyConsole failed: ${e}`)}}}const i=["debug","trace","warn","info","error"];for(const e of i)"function"!=typeof r[e]&&(r[e]=s(`console.${e}: `,t.log,!1));const a=`${o}/console`.replace("https://","wss://").replace("http://","ws://");f=new WebSocket(a),f.addEventListener("open",(()=>{n.log(`browser: [${e}] Console websocket connected.`)})),f.addEventListener("error",(t=>{n.error(`[${e}] websocket error: ${t}`,t)})),f.addEventListener("close",(t=>{n.error(`[${e}] websocket closed: ${t}`,t)}));const l=e=>{f.readyState===WebSocket.OPEN?f.send(e):n.log(e)};for(const e of["log",...i])r[e]=s(`console.${e}`,l,!0)}const h={},p={},g={};let b,w,y;function v(){const e=Object.values(g),t=Object.values(p),o=R(e),n=R(t),r=o+n;if(0===r)return;const s=_e?"%c":"",i=_e?["background: purple; color: white; padding: 1px 3px; border-radius: 3px;","font-weight: bold;","font-weight: normal;"]:[],a=je.config.linkerEnabled?"":"\nThis application was built with linking (tree shaking) disabled. \nPublished applications will be significantly smaller if you install wasm-tools workload. \nSee also https://aka.ms/dotnet-wasm-features";console.groupCollapsed(`${s}dotnet${s} Loaded ${j(r)} resources${s}${a}`,...i),e.length&&(console.groupCollapsed(`Loaded ${j(o)} resources from cache`),console.table(g),console.groupEnd()),t.length&&(console.groupCollapsed(`Loaded ${j(n)} resources from network`),console.table(p),console.groupEnd()),console.groupEnd()}async function _(){const e=b;if(e){const t=(await e.keys()).map((async t=>{t.url in h||await e.delete(t)}));await Promise.all(t)}}function E(e){return`${e.resolvedUrl}.${e.hash}`}function R(e){return e.reduce(((e,t)=>e+(t.responseBytes||0)),0)}function j(e){return`${(e/1048576).toFixed(2)} MB`}function S(e){var t;if((null===(t=e.resources)||void 0===t?void 0:t.icu)&&"invariant"!=e.globalizationMode){const t=e.applicationCulture||(_e?navigator.languages&&navigator.languages[0]:Intl.DateTimeFormat().resolvedOptions().locale),o=Object.keys(e.resources.icu);let n=null;if("custom"===e.globalizationMode?1===o.length&&(n=o[0]):"hybrid"===e.globalizationMode?n="icudt_hybrid.dat":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",n&&o.includes(n))return n}return e.globalizationMode="invariant",null}const A=class{constructor(e){this.url=e}toString(){return this.url}};async function x(e,t){try{const o="function"==typeof globalThis.fetch;if(ye){const n=e.startsWith("file://");if(!n&&o)return globalThis.fetch(e,t||{credentials:"same-origin"});w||(y=Ae.require("url"),w=Ae.require("fs")),n&&(e=y.fileURLToPath(e));const r=await w.promises.readFile(e);return{ok:!0,headers:{length:0,get:()=>null},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 D(e){return"string"!=typeof e&&Te(!1,"url must be a string"),!k(e)&&0!==e.indexOf("./")&&0!==e.indexOf("../")&&globalThis.URL&&globalThis.document&&globalThis.document.baseURI&&(e=new URL(e,globalThis.document.baseURI).toString()),e}const T=/^[a-zA-Z][a-zA-Z\d+\-.]*?:\/\//,C=/[a-zA-Z]:[\\/]/;function k(e){return ye||Ee?e.startsWith("/")||e.startsWith("\\")||-1!==e.indexOf("///")||C.test(e):T.test(e)}let O,M=0;const $=[],I=[],L=new Map,U={"js-module-threads":!0,"js-module-runtime":!0,"js-module-dotnet":!0,"js-module-native":!0},P={...U,"js-module-library-initializer":!0},N={...U,dotnetwasm:!0,heap:!0,manifest:!0},z={...P,manifest:!0},W={...P,dotnetwasm:!0},B={dotnetwasm:!0,symbols:!0},F={resource:!0,assembly:!0,pdb:!0,heap:!0,icu:!0},V={...P,dotnetwasm:!0,symbols:!0};function q(e){return!("icu"==e.behavior&&e.name!=je.preferredIcuAsset)}function J(e,t,o){const n=Object.keys(t||{});Te(1==n.length,`Expect to have one ${o} asset in resources`);const r=n[0],s={name:r,hash:t[r],behavior:o};return H(s),e.push(s),s}function H(e){N[e.behavior]&&L.set(e.behavior,e)}function Q(e){const t=function(e){Te(N[e],`Unknown single asset behavior ${e}`);const t=L.get(e);return Te(t,`Single asset for ${e} not found`),t}(e);if(t.resolvedUrl=je.locateFile(t.name),U[t.behavior]){const e=se(t);e?("string"!=typeof e&&Te(!1,"loadBootResource response for 'dotnetjs' type should be a URL string"),t.resolvedUrl=e):t.resolvedUrl=ee(t.resolvedUrl,t.behavior)}else if("dotnetwasm"!==t.behavior)throw new Error(`Unknown single asset behavior ${e}`);return t}async function Z(){a("mono_download_assets");try{const e=[],t=t=>{!V[t.behavior]&&q(t)&&je.expected_instantiated_assets_count++,!W[t.behavior]&&q(t)&&(je.expected_downloaded_assets_count++,e.push(Y(t)))};for(const e of I)t(e);await je.memorySnapshotSkippedOrDone.promise;for(const e of $)if(Re.loadedMemorySnapshotSize){if(ie(e),"resource"==e.behavior||"assembly"==e.behavior||"pdb"==e.behavior){const t=X(e,""),o="string"==typeof e.virtualPath?e.virtualPath:e.name;je._loaded_files.push({url:t,file:o})}}else t(e);je.allDownloadsQueued.promise_control.resolve(),await je.runtimeModuleLoaded.promise;const o=[];for(const t of e)o.push((async()=>{const e=await t;if(e.buffer){if(!V[e.behavior]){e.buffer&&"object"==typeof e.buffer||Te(!1,"asset buffer must be array-like or buffer-like or promise of these"),"string"!=typeof e.resolvedUrl&&Te(!1,"resolvedUrl must be string");const t=e.resolvedUrl,o=await e.buffer,n=new Uint8Array(o);ie(e),await Re.beforeOnRuntimeInitialized.promise,Re.instantiate_asset(e,t,n)}}else B[e.behavior]?("symbols"===e.behavior&&(await Re.instantiate_symbols_asset(e),ie(e)),B[e.behavior]&&++je.actual_downloaded_assets_count):(e.isOptional||Te(!1,"Expected asset to have the downloaded buffer"),!W[e.behavior]&&q(e)&&je.expected_downloaded_assets_count--,!V[e.behavior]&&q(e)&&je.expected_instantiated_assets_count--)})());Promise.all(o).then((()=>{Re.allAssetsInMemory.promise_control.resolve()})).catch((e=>{throw je.err("Error in mono_download_assets: "+e),Me(1,e),e}))}catch(e){throw je.err("Error in mono_download_assets: "+e),e}}async function G(e){const t=await Y(e);return await t.pendingDownloadInternal.response,t.buffer}async function Y(e){try{return await K(e)}catch(t){if(!je.enableDownloadRetry)throw t;if(Ee||ye)throw t;if(e.pendingDownload&&e.pendingDownloadInternal==e.pendingDownload)throw t;if(e.resolvedUrl&&-1!=e.resolvedUrl.indexOf("file://"))throw t;if(t&&404==t.status)throw t;e.pendingDownloadInternal=void 0,await je.allDownloadsQueued.promise;try{return a(`Retrying download '${e.name}'`),await K(e)}catch(t){return e.pendingDownloadInternal=void 0,await(100,new Promise((e=>globalThis.setTimeout(e,100)))),a(`Retrying download (2) '${e.name}' after delay`),await K(e)}}}async function K(e){for(;O;)await O.promise;try{++M,M==je.maxParallelDownloads&&(a("Throttling further parallel downloads"),O=n());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&&je.config.remoteSources?je.config.remoteSources:[""];let o;for(let n of t){n=n.trim(),"./"===n&&(n="");const t=X(e,n);e.name===t?a(`Attempting to download '${t}'`):a(`Attempting to download '${t}' for ${e.name}`);try{e.resolvedUrl=t;const n=ne(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$/)&&je.config.ignorePdbLoadErrors;if(o||Te(!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}l(`optional download '${o.url}' for ${e.name} failed ${o.status} ${o.statusText}`)}(e);return t?(B[e.behavior]||(e.buffer=await t.arrayBuffer(),++je.actual_downloaded_assets_count),e):e}finally{if(--M,O&&M==je.maxParallelDownloads-1){a("Resuming more parallel downloads");const e=O;O=void 0,e.promise_control.resolve()}}}function X(e,t){let o;return null==t&&Te(!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=ee(je.locateFile(o),e.behavior)),o&&"string"==typeof o||Te(!1,"attemptUrl need to be path or url string"),o}function ee(e,t){return je.modulesUniqueQuery&&z[t]&&(e+=je.modulesUniqueQuery),e}let te=0;const oe=new Set;function ne(e){try{e.resolvedUrl||Te(!1,"Request's resolvedUrl must be set");const t=async function(e){let t=await async function(e){const t=b;if(!t||e.noCache||!e.hash||0===e.hash.length)return;const o=E(e);let n;h[o]=!0;try{n=await t.match(o)}catch(e){}if(!n)return;const r=parseInt(n.headers.get("content-length")||"0");return g[e.name]={responseBytes:r},n}(e);return t||(t=await function(e){let t=e.resolvedUrl;if(je.loadBootResource){const o=se(e);if(o instanceof Promise)return o;"string"==typeof o&&(t=o)}const o={};return je.config.disableNoCacheFetch||(o.cache="no-cache"),e.useCredentials?o.credentials="include":!je.config.disableIntegrityCheck&&e.hash&&(o.integrity=e.hash),je.fetch_like(t,o)}(e),function(e,t){const o=b;if(!o||e.noCache||!e.hash||0===e.hash.length)return;const n=t.clone();setTimeout((()=>{const t=E(e);!async function(e,t,o,n){const r=await n.arrayBuffer(),s=function(e){if("undefined"!=typeof performance)return performance.getEntriesByName(e)[0]}(n.url),i=s&&s.encodedBodySize||void 0;p[t]={responseBytes:i};const a=new Response(r,{headers:{"content-type":n.headers.get("content-type")||"","content-length":(i||n.headers.get("content-length")||"").toString()}});try{await e.put(o,a)}catch(e){}}(o,e.name,t,n)}),0)}(e,t)),t}(e),o={name:e.name,url:e.resolvedUrl,response:t};return oe.add(e.name),o.response.then((()=>{"assembly"==e.behavior&&je.loadedAssemblies.push(e.name),te++,je.onDownloadResourceProgress&&je.onDownloadResourceProgress(te,oe.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 re={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 se(e){var t;if(je.loadBootResource){const o=null!==(t=e.hash)&&void 0!==t?t:"",n=e.resolvedUrl,r=re[e.behavior];if(r){const t=je.loadBootResource(r,e.name,n,o,e.behavior);return"string"==typeof t?D(t):t}}}function ie(e){e.pendingDownloadInternal=null,e.pendingDownload=null,e.buffer=null,e.moduleExports=null}function ae(e){let t=e.lastIndexOf("/");return t>=0&&t++,e.substring(t)}async function le(e){if(!e)return;const t=Object.keys(e);await Promise.all(t.map((e=>async function(e){try{const t=ee(je.locateFile(e),"js-module-library-initializer");a(`Attempting to import '${t}' for ${e}`);const o=await import(t);je.libraryInitializers.push({scriptName:e,exports:o})}catch(t){u(`Failed to import library initializer '${e}': ${t}`)}}(e))))}async function ce(e,t){if(!je.libraryInitializers)return;const o=[];for(let n=0;nr.exports[e](...t))))}await Promise.all(o)}async function ue(e,t,o){try{await o()}catch(o){throw u(`Failed to invoke '${t}' on library initializer '${e}': ${o}`),Me(1,o),o}}var de="Release";function fe(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=he(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 me(e,t){if(e===t)return e;const o={...t};return o.config&&(e.config||(e.config={}),o.config=fe(e.config,o.config)),Object.assign(e,o)}function he(e,t){if(e===t)return e;const o={...t};return void 0!==o.assembly&&(o.assembly={...e.assembly||{},...o.assembly||{}}),void 0!==o.lazyAssembly&&(o.lazyAssembly={...e.lazyAssembly||{},...o.lazyAssembly||{}}),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.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=pe(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=pe(e.vfs||{},o.vfs||{})),Object.assign(e,o)}function pe(e,t){if(e===t)return e;for(const o in t)e[o]={...e[o],...t[o]};return e}function ge(){const e=je.config;if(e.environmentVariables=e.environmentVariables||{},e.runtimeOptions=e.runtimeOptions||[],e.resources=e.resources||{assembly:{},jsModuleNative:{},jsModuleWorker:{},jsModuleRuntime:{},wasmNative:{},vfs:{},satelliteResources:{}},e.assets){a("config.assets is deprecated, use config.resources instead");for(const t of e.assets){const o={};o[t.name]=t.hash||"";const n={};switch(t.behavior){case"assembly":n.assembly=o;break;case"pdb":n.pdb=o;break;case"resource":n.satelliteResources={},n.satelliteResources[t.culture]=o;break;case"icu":n.icu=o;break;case"symbols":n.wasmSymbols=o;break;case"vfs":n.vfs={},n.vfs[t.virtualPath]=o;break;case"dotnetwasm":n.wasmNative=o;break;case"js-module-threads":n.jsModuleWorker=o;break;case"js-module-runtime":n.jsModuleRuntime=o;break;case"js-module-native":n.jsModuleNative=o;break;case"js-module-dotnet":break;default:throw new Error(`Unexpected behavior ${t.behavior} of asset ${t.name}`)}he(e.resources,n)}}je.assertAfterExit=e.assertAfterExit=e.assertAfterExit||!_e,void 0===e.debugLevel&&"Debug"===de&&(e.debugLevel=-1),void 0===e.cachedResourcesPurgeDelay&&(e.cachedResourcesPurgeDelay=1e4),void 0===e.diagnosticTracing&&"Debug"===de&&(e.diagnosticTracing=!0),e.applicationCulture&&(e.environmentVariables.LANG=`${e.applicationCulture}.UTF-8`),Re.diagnosticTracing=je.diagnosticTracing=!!e.diagnosticTracing,Re.waitForDebugger=e.waitForDebugger,e.startupMemoryCache=!!e.startupMemoryCache,e.startupMemoryCache&&Re.waitForDebugger&&(a("Disabling startupMemoryCache because waitForDebugger is set"),e.startupMemoryCache=!1),Re.enablePerfMeasure=!!e.browserProfilerOptions&&globalThis.performance&&"function"==typeof globalThis.performance.measure,je.maxParallelDownloads=e.maxParallelDownloads||je.maxParallelDownloads,je.enableDownloadRetry=void 0!==e.enableDownloadRetry?e.enableDownloadRetry:je.enableDownloadRetry}let be=!1;function we(){return!!globalThis.navigator&&(je.isChromium||je.isFirefox)}const ye="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,ve="function"==typeof importScripts,_e="object"==typeof window||ve&&!ye,Ee=!_e&&!ye&&!ve;let Re={},je={},Se={},Ae={},xe=!1;const De={mono:{},binding:{},internal:Ae,module:{},loaderHelpers:je,runtimeHelpers:Re,api:Se};function Te(e,t){if(e)return;const o="Assert failed: "+("function"==typeof t?t():t),n=new Error(o);Re.abort(n)}function Ce(){return void 0!==je.exitCode}function ke(){return Re.runtimeReady&&!Ce()}function Oe(){Re.runtimeReady||Te(!1,"mono runtime didn't start yet"),je.assertAfterExit&&Ce()&&Te(!1,`mono runtime already exited with ${je.exitCode}`)}function Me(e,t){var o;const n=t&&"object"==typeof t;e=n&&"number"==typeof t.status?t.status:e;const r=n&&"string"==typeof t.message?t.message:""+t;if((t=n?t:Re.ExitStatus?new Re.ExitStatus(e):new Error("Exit with code "+e+" "+r)).status=e,t.message||(t.message=r),t.stack||(t.stack=(new Error).stack||""),t.silent=!0,!Ce()){try{Re.runtimeReady||(a("abort_startup, reason: "+t),function(e){je.allDownloadsQueued.promise_control.reject(e),je.afterConfigLoaded.promise_control.reject(e),je.wasmDownloadPromise.promise_control.reject(e),je.runtimeModuleLoaded.promise_control.reject(e),je.memorySnapshotSkippedOrDone.promise_control.reject(e),Re.dotnetReady&&(Re.dotnetReady.promise_control.reject(e),Re.afterInstantiateWasm.promise_control.reject(e),Re.beforePreInit.promise_control.reject(e),Re.afterPreInit.promise_control.reject(e),Re.afterPreRun.promise_control.reject(e),Re.beforeOnRuntimeInitialized.promise_control.reject(e),Re.afterOnRuntimeInitialized.promise_control.reject(e),Re.afterPostRun.promise_control.reject(e))}(t)),function(e,t){if(0!==e&&t){const e=Re.ExitStatus&&t instanceof Re.ExitStatus?a:d;"string"==typeof t?e(t):t.stack&&t.message?Re.stringify_as_error_with_stack?e(Re.stringify_as_error_with_stack(t)):e(t.message+"\n"+t.stack):e(JSON.stringify(t))}if(je.config&&je.config.logExitCode)if(f){const t=()=>{0==f.bufferedAmount?c("WASM EXIT "+e):globalThis.setTimeout(t,100)};t()}else c("WASM EXIT "+e)}(e,t),function(e){if(_e&&je.config&&je.config.appendElementOnExit){const t=document.createElement("label");t.id="tests_done",e&&(t.style.background="red"),t.innerHTML=e.toString(),document.body.appendChild(t)}}(e),Re.jiterpreter_dump_stats&&Re.jiterpreter_dump_stats(!1),0===e&&(null===(o=je.config)||void 0===o?void 0:o.interopCleanupOnExit)&&Re.forceDisposeProxies(!0,!0)}catch(e){u("mono_exit failed",e)}je.exitCode=e}if(je.config&&je.config.asyncFlushOnExit&&0===e)throw(async()=>{try{await async function(){try{const e=await import("process"),t=e=>new Promise(((t,o)=>{e.on("error",(e=>o(e))),e.write("",(function(){t()}))})),o=t(e.stderr),n=t(e.stdout);await Promise.all([n,o])}catch(e){d(`flushing std* streams failed: ${e}`)}}()}finally{$e(e,t)}})(),t;$e(e,t)}function $e(e,t){if(ke()&&Re.mono_wasm_exit&&Re.mono_wasm_exit(e),0!==e||!_e)throw ye&&Ae.process?Ae.process.exit(e):Re.quit&&Re.quit(e,t),t}!function(o){if(xe)throw new Error("Loader module already loaded");xe=!0,Re=o.runtimeHelpers,je=o.loaderHelpers,Se=o.api,Ae=o.internal,Object.assign(Se,{INTERNAL:Ae,invokeLibraryInitializers:ce}),Object.assign(o.module,{disableDotnet6Compatibility:!0,config:{environmentVariables:{}}}),Object.assign(Re,{mono_wasm_bindings_is_ready:!1,javaScriptExports:{},config:o.module.config,diagnosticTracing:!1,abort:e=>{throw e}}),Object.assign(je,{gitHash:"81cabf2857a01351e5ab578947c7403a5b128ad1",config:o.module.config,diagnosticTracing:!1,maxParallelDownloads:16,enableDownloadRetry:!0,assertAfterExit:!_e,_loaded_files:[],loadedFiles:[],loadedAssemblies:[],libraryInitializers:[],actual_downloaded_assets_count:0,actual_instantiated_assets_count:0,expected_downloaded_assets_count:0,expected_instantiated_assets_count:0,afterConfigLoaded:n(),allDownloadsQueued:n(),wasmDownloadPromise:n(),runtimeModuleLoaded:n(),memorySnapshotSkippedOrDone:n(),is_exited:Ce,is_runtime_running:ke,assert_runtime_running:Oe,mono_exit:Me,createPromiseController:n,getPromiseController:r,assertIsControllablePromise:s,mono_download_assets:Z,resolve_single_asset_path:Q,setup_proxy_console:m,logDownloadStatsToConsole:v,purgeUnusedCacheEntriesAsync:_,retrieve_asset_download:G,invokeLibraryInitializers:ce,isDebuggingSupported:we,exceptions:e,simd:t})}(De);const Ie="__mono_message_please_dont_collide__";let Le=!1;const Ue=De.module,Pe=Ue.config;async function Ne(e){if("function"==typeof e){const t=e(De.api);if(t.ready)throw new Error("Module.ready couldn't be redefined.");Object.assign(Ue,t),me(Ue,t)}else{if("object"!=typeof e)throw new Error("Can't use moduleFactory callback of createDotnetRuntime function.");me(Ue,e)}return await async function(e){if(ye){const e=await import("process"),t=14;if(e.versions.node.split(".")[0]0&&(je.modulesUniqueQuery=t.substring(o)),je.scriptUrl=t.replace(/\\/g,"/").replace(/[?#].*/,""),je.scriptDirectory=(n=je.scriptUrl).slice(0,n.lastIndexOf("/"))+"/",je.locateFile=e=>"URL"in globalThis&&globalThis.URL!==A?new URL(e,je.scriptDirectory).toString():k(e)?e:je.scriptDirectory+e,je.fetch_like=x,je.out=console.log,je.err=console.error,je.onDownloadResourceProgress=e.onDownloadResourceProgress,_e&&globalThis.navigator){const e=globalThis.navigator,t=e.userAgentData&&e.userAgentData.brands;t&&t.length>0?je.isChromium=t.some((e=>"Google Chrome"===e.brand||"Microsoft Edge"===e.brand||"Chromium"===e.brand)):e.userAgent&&(je.isChromium=e.userAgent.includes("Chrome"),je.isFirefox=e.userAgent.includes("Firefox"))}Ae.require=ye?await import("module").then((e=>e.createRequire(import.meta.url))):Promise.resolve((()=>{throw new Error("require not supported")})),void 0===globalThis.URL&&(globalThis.URL=A)}(Ue),Ue.ENVIRONMENT_IS_PTHREAD?async function(){(function(){const e=new MessageChannel,t=e.port1,o=e.port2;t.addEventListener("message",(e=>{var n;n=JSON.parse(e.data.config),Le?a("mono config already received"):(fe(je.config,n),ge(),a("mono config received"),Le=!0,je.afterConfigLoaded.promise_control.resolve(je.config),_e&&n.forwardConsoleLogsToWS&&void 0!==globalThis.WebSocket&&je.setup_proxy_console("pthread-worker",console,self.location.href)),t.close(),o.close()}),{once:!0}),t.start(),self.postMessage({[Ie]:{monoCmd:"preload",port:o}},[o])})(),await je.afterConfigLoaded.promise,function(){const e=je.config;e.assets||Te(!1,"config.assets must be defined");for(const t of e.assets)H(t)}();const e=ze(),t=await Promise.all(e);return await We(t),Ue}():async function(){var e;Ue.configSrc||je.config&&0!==Object.keys(je.config).length&&(je.config.assets||je.config.resources)||(Ue.configSrc="./blazor.boot.json"),await async function(e){var t;const o=e.configSrc;if(be)await je.afterConfigLoaded.promise;else try{if(be=!0,o&&(a("mono_wasm_load_config"),await async function(e){const t=je.locateFile(e.configSrc),o=void 0!==je.loadBootResource?je.loadBootResource("manifest","blazor.boot.json",t,"","manifest"):s(t);let n;n=o?"string"==typeof o?await s(D(o)):await o:await s(ee(t,"manifest"));const r=await async function(e){const t=je.config,o=await e.json();t.applicationEnvironment||(o.applicationEnvironment=e.headers.get("Blazor-Environment")||e.headers.get("DotNet-Environment")||"Production"),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}(n);function s(e){return je.fetch_like(e,{method:"GET",credentials:"include",cache:"no-cache"})}fe(je.config,r)}(e)),ge(),await le(null===(t=je.config.resources)||void 0===t?void 0:t.modulesAfterConfigLoaded),await ce("onRuntimeConfigLoaded",[je.config]),e.onConfigLoaded)try{await e.onConfigLoaded(je.config,Se),ge()}catch(e){throw d("onConfigLoaded() failed",e),e}ge(),je.config.startupMemoryCache&&e.instantiateWasm&&Te(!1,"startupMemoryCache is not supported with Module.instantiateWasm"),je.afterConfigLoaded.promise_control.resolve(je.config),je.config.startupMemoryCache||je.memorySnapshotSkippedOrDone.promise_control.resolve()}catch(t){const n=`Failed to load config file ${o} ${t} ${null==t?void 0:t.stack}`;throw je.config=e.config=Object.assign(je.config,{message:n,error:t,isError:!0}),Me(1,new Error(n)),t}}(Ue),function(){const e=je.config,t=[];if(e.assets)for(const t of e.assets)"object"!=typeof t&&Te(!1,`asset must be object, it was ${typeof t} : ${t}`),"string"!=typeof t.behavior&&Te(!1,"asset behavior must be known string"),"string"!=typeof t.name&&Te(!1,"asset name must be string"),t.resolvedUrl&&"string"!=typeof t.resolvedUrl&&Te(!1,"asset resolvedUrl could be string"),t.hash&&"string"!=typeof t.hash&&Te(!1,"asset resolvedUrl could be string"),t.pendingDownload&&"object"!=typeof t.pendingDownload&&Te(!1,"asset pendingDownload could be object"),F[t.behavior]?$.push(t):I.push(t),H(t);else if(e.resources){const o=e.resources;if(o.wasmNative||Te(!1,"resources.wasmNative must be defined"),o.jsModuleNative||Te(!1,"resources.jsModuleNative must be defined"),o.jsModuleRuntime||Te(!1,"resources.jsModuleRuntime must be defined"),o.jsModuleWorker||Te(!1,"resources.jsModuleWorker must be defined"),J(I,o.wasmNative,"dotnetwasm"),J(t,o.jsModuleNative,"js-module-native"),J(t,o.jsModuleRuntime,"js-module-runtime"),J(t,o.jsModuleWorker,"js-module-threads"),o.assembly)for(const e in o.assembly)$.push({name:e,hash:o.assembly[e],behavior:"assembly"});if(0!=e.debugLevel&&je.isDebuggingSupported()&&o.pdb)for(const e in o.pdb)$.push({name:e,hash:o.pdb[e],behavior:"pdb"});if(e.loadAllSatelliteResources&&o.satelliteResources)for(const e in o.satelliteResources)for(const t in o.satelliteResources[e])$.push({name:t,hash:o.satelliteResources[e][t],behavior:"resource",culture:e});if(o.vfs)for(const e in o.vfs)for(const t in o.vfs[e])I.push({name:t,hash:o.vfs[e][t],behavior:"vfs",virtualPath:e});const n=S(e);if(n&&o.icu)for(const e in o.icu)e===n&&$.push({name:e,hash:o.icu[e],behavior:"icu",loadRemote:!0});if(o.wasmSymbols)for(const e in o.wasmSymbols)I.push({name:e,hash:o.wasmSymbols[e],behavior:"symbols"})}if(e.appsettings)for(let t=0;t{je.wasmDownloadPromise.promise_control.resolve(e)})).catch((e=>{Me(1,e)})),setTimeout((()=>{!function(){if(je.preferredIcuAsset=S(je.config),je.invariantMode="invariant"==je.config.globalizationMode,!je.invariantMode)if(je.preferredIcuAsset)a("ICU data archive(s) available, disabling invariant mode");else{if("custom"===je.config.globalizationMode||"all"===je.config.globalizationMode||"sharded"===je.config.globalizationMode){const e="invariant globalization mode is inactive and no ICU data archives are available";throw d(`ERROR: ${e}`),new Error(e)}a("ICU data archive(s) not available, using invariant globalization mode"),je.invariantMode=!0,je.preferredIcuAsset=null}const e="DOTNET_SYSTEM_GLOBALIZATION_INVARIANT",t="DOTNET_SYSTEM_GLOBALIZATION_HYBRID",o=je.config.environmentVariables;if(void 0===o[t]&&"hybrid"===je.config.globalizationMode?o[t]="1":void 0===o[e]&&je.invariantMode&&(o[e]="1"),void 0===o.TZ)try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone||null;e&&(o.TZ=e)}catch(e){l("failed to detect timezone, will fallback to UTC")}}(),Z()}),0);const o=await Promise.all(t);return await We(o),await Re.dotnetReady.promise,await le(null===(e=je.config.resources)||void 0===e?void 0:e.modulesAfterRuntimeReady),await ce("onRuntimeReady",[De.api]),Se}()}function ze(){const e=Q("js-module-runtime"),t=Q("js-module-native");let o,n;return"object"==typeof e.moduleExports?o=e.moduleExports:(a(`Attempting to import '${e.resolvedUrl}' for ${e.name}`),o=import(e.resolvedUrl)),"object"==typeof t.moduleExports?n=t.moduleExports:(a(`Attempting to import '${t.resolvedUrl}' for ${t.name}`),n=import(t.resolvedUrl)),[o,n]}async function We(e){const{initializeExports:t,initializeReplacements:o,configureRuntimeStartup:n,configureEmscriptenStartup:r,configureWorkerStartup:s,setRuntimeGlobals:i,passEmscriptenInternals:a}=e[0],{default:l}=e[1];i(De),t(De),await n(De.module),je.runtimeModuleLoaded.promise_control.resolve(),l((e=>(Object.assign(Ue,{ready:e.ready,__dotnet_runtime:{initializeReplacements:o,configureEmscriptenStartup:r,configureWorkerStartup:s,passEmscriptenInternals:a}}),Ue)))}const Be=new class{withModuleConfig(e){try{return me(Ue,e),this}catch(e){throw Me(1,e),e}}withOnConfigLoaded(e){try{return me(Ue,{onConfigLoaded:e}),this}catch(e){throw Me(1,e),e}}withConsoleForwarding(){try{return fe(Pe,{forwardConsoleLogsToWS:!0}),this}catch(e){throw Me(1,e),e}}withExitOnUnhandledError(){const e=function(e,t){e.preventDefault();try{t&&t.silent||Me(1,t)}catch(e){}};try{return _e&&(window.addEventListener("unhandledrejection",(t=>e(t,t.reason))),window.addEventListener("error",(t=>e(t,t.error)))),this}catch(e){throw Me(1,e),e}}withAsyncFlushOnExit(){try{return fe(Pe,{asyncFlushOnExit:!0}),this}catch(e){throw Me(1,e),e}}withExitCodeLogging(){try{return fe(Pe,{logExitCode:!0}),this}catch(e){throw Me(1,e),e}}withElementOnExit(){try{return fe(Pe,{appendElementOnExit:!0}),this}catch(e){throw Me(1,e),e}}withInteropCleanupOnExit(){try{return fe(Pe,{interopCleanupOnExit:!0}),this}catch(e){throw Me(1,e),e}}withAssertAfterExit(){try{return fe(Pe,{assertAfterExit:!0}),this}catch(e){throw Me(1,e),e}}withWaitingForDebugger(e){try{return fe(Pe,{waitForDebugger:e}),this}catch(e){throw Me(1,e),e}}withStartupMemoryCache(e){try{return fe(Pe,{startupMemoryCache:e}),this}catch(e){throw Me(1,e),e}}withConfig(e){try{return fe(Pe,e),this}catch(e){throw Me(1,e),e}}withConfigSrc(e){try{return e&&"string"==typeof e||Te(!1,"must be file path or URL"),me(Ue,{configSrc:e}),this}catch(e){throw Me(1,e),e}}withVirtualWorkingDirectory(e){try{return e&&"string"==typeof e||Te(!1,"must be directory path"),this.virtualWorkingDirectory=e,this}catch(e){throw Me(1,e),e}}withEnvironmentVariable(e,t){try{const o={};return o[e]=t,fe(Pe,{environmentVariables:o}),this}catch(e){throw Me(1,e),e}}withEnvironmentVariables(e){try{return e&&"object"==typeof e||Te(!1,"must be dictionary object"),fe(Pe,{environmentVariables:e}),this}catch(e){throw Me(1,e),e}}withDiagnosticTracing(e){try{return"boolean"!=typeof e&&Te(!1,"must be boolean"),fe(Pe,{diagnosticTracing:e}),this}catch(e){throw Me(1,e),e}}withDebugging(e){try{return e&&"number"==typeof e||Te(!1,"must be number"),fe(Pe,{debugLevel:e}),this}catch(e){throw Me(1,e),e}}withApplicationArguments(...e){try{return e&&Array.isArray(e)||Te(!1,"must be array of strings"),this.applicationArguments=e,this}catch(e){throw Me(1,e),e}}withRuntimeOptions(e){try{return e&&Array.isArray(e)||Te(!1,"must be array of strings"),fe(Pe,{runtimeOptions:e}),this}catch(e){throw Me(1,e),e}}withMainAssembly(e){try{return fe(Pe,{mainAssemblyName:e}),this}catch(e){throw Me(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(window.location.search).getAll("arg");return this.withApplicationArguments(...e)}catch(e){throw Me(1,e),e}}withApplicationEnvironment(e){try{return fe(Pe,{applicationEnvironment:e}),this}catch(e){throw Me(1,e),e}}withApplicationCulture(e){try{return fe(Pe,{applicationCulture:e}),this}catch(e){throw Me(1,e),e}}withResourceLoader(e){try{return je.loadBootResource=e,this}catch(e){throw Me(1,e),e}}async create(){try{if(this.instance||(_e&&Ue.config.forwardConsoleLogsToWS&&void 0!==globalThis.WebSocket&&m("main",globalThis.console,globalThis.location.origin),Ue||Te(!1,"Null moduleConfig"),Ue.config||Te(!1,"Null moduleConfig.config"),await Ne(Ue),this.instance=De.api),this.virtualWorkingDirectory){const e=this.instance.Module.FS,t=e.stat(this.virtualWorkingDirectory);t&&e.isDir(t.mode)||Te(!1,`Could not find working directory ${this.virtualWorkingDirectory}`),e.chdir(this.virtualWorkingDirectory)}return this.instance}catch(e){throw Me(1,e),e}}async run(){try{if(Ue.config||Te(!1,"Null moduleConfig.config"),this.instance||await this.create(),Ue.config.mainAssemblyName||Te(!1,"Null moduleConfig.config.mainAssemblyName"),!this.applicationArguments)if(ye){const e=await import("process");this.applicationArguments=e.argv.slice(2)}else this.applicationArguments=[];return this.instance.runMainAndExit(Ue.config.mainAssemblyName,this.applicationArguments)}catch(e){throw Me(1,e),e}}},Fe=Me,Ve=Ne;Ee||"function"==typeof globalThis.URL||Te(!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&&Te(!1,"This browser/engine doesn't support BigInt64Array API. Please use a modern version. See also https://aka.ms/dotnet-wasm-features"),(Ee||ye)&&Te(!1,"This build of dotnet is multi-threaded, it doesn't support shell environments like V8 or NodeJS. See also https://aka.ms/dotnet-wasm-features"),void 0===globalThis.SharedArrayBuffer&&Te(!1,"SharedArrayBuffer is not enabled on this page. Please use a modern browser and set Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy http headers. See also https://aka.ms/dotnet-wasm-features"),"function"!=typeof globalThis.EventTarget&&Te(!1,"This browser/engine doesn't support EventTarget API. Please use a modern version. See also https://aka.ms/dotnet-wasm-features");export{Ve as default,Be as dotnet,Fe as exit}; //# sourceMappingURL=dotnet.js.map diff --git a/packages/dotnet-runtime/src/vendor/compiler/dotnet.native.8.0.8.pu4atn93yb.js b/packages/dotnet-runtime/src/vendor/compiler/dotnet.native.8.0.10.pu4atn93yb.js similarity index 99% rename from packages/dotnet-runtime/src/vendor/compiler/dotnet.native.8.0.8.pu4atn93yb.js rename to packages/dotnet-runtime/src/vendor/compiler/dotnet.native.8.0.10.pu4atn93yb.js index 3914112..c7c5e92 100644 --- a/packages/dotnet-runtime/src/vendor/compiler/dotnet.native.8.0.8.pu4atn93yb.js +++ b/packages/dotnet-runtime/src/vendor/compiler/dotnet.native.8.0.10.pu4atn93yb.js @@ -5,7 +5,7 @@ var createDotnetRuntime = (() => { return ( async function(createDotnetRuntime = {}) { -function GROWABLE_HEAP_I8(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAP8}function GROWABLE_HEAP_U8(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAPU8}function GROWABLE_HEAP_I16(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAP16}function GROWABLE_HEAP_U16(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAPU16}function GROWABLE_HEAP_I32(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAP32}function GROWABLE_HEAP_U32(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAPU32}function GROWABLE_HEAP_F32(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAPF32}function GROWABLE_HEAP_F64(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAPF64}var Module=typeof createDotnetRuntime!="undefined"?createDotnetRuntime:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject});if(_nativeModuleLoaded)throw new Error("Native module already loaded");_nativeModuleLoaded=true;createDotnetRuntime=Module=createDotnetRuntime(Module);Module["getWasmIndirectFunctionTable"]=function(){return wasmTable};Module["getMemory"]=function(){return wasmMemory};var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKER=typeof importScripts=="function";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;var ENVIRONMENT_IS_PTHREAD=Module["ENVIRONMENT_IS_PTHREAD"]||false;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;if(ENVIRONMENT_IS_NODE){const{createRequire:createRequire}=await import("module");var require=createRequire(import.meta.url);var fs=require("fs");var nodePath=require("path");if(ENVIRONMENT_IS_WORKER){scriptDirectory=nodePath.dirname(scriptDirectory)+"/"}else{scriptDirectory=require("url").fileURLToPath(new URL("./",import.meta.url))}read_=(filename,binary)=>{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)=>{filename=isFileURI(filename)?new URL(filename):nodePath.normalize(filename);fs.readFile(filename,function(err,data){if(err)onerror(err);else onload(data.buffer)})};if(process.argv.length>1){thisProgram=process.argv[1].replace(/\\/g,"/")}arguments_=process.argv.slice(2);quit_=(status,toThrow)=>{process.exitCode=status;throw toThrow};Module["inspect"]=function(){return"[Emscripten Module object]"};let nodeWorkerThreads;try{nodeWorkerThreads=require("worker_threads")}catch(e){console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?');throw e}global.Worker=nodeWorkerThreads.Worker}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){return read(f)}}readBinary=function readBinary(f){let data;if(typeof readbuffer=="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data=="object");return data};readAsync=function readAsync(f,onload,onerror){setTimeout(()=>onload(readBinary(f)),0)};if(typeof clearTimeout=="undefined"){globalThis.clearTimeout=id=>{}}if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit=="function"){quit_=(status,toThrow)=>{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"){if(typeof console=="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1)}else{scriptDirectory=""}if(!ENVIRONMENT_IS_NODE){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(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){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=title=>document.title=title}else{}if(ENVIRONMENT_IS_NODE){if(typeof performance=="undefined"){global.performance=require("perf_hooks").performance}}var defaultPrint=console.log.bind(console);var defaultPrintErr=console.warn.bind(console);if(ENVIRONMENT_IS_NODE){defaultPrint=str=>fs.writeSync(1,str+"\n");defaultPrintErr=str=>fs.writeSync(2,str+"\n")}var out=Module["print"]||defaultPrint;var err=Module["printErr"]||defaultPrintErr;Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];var noExitRuntime=Module["noExitRuntime"]||true;if(typeof WebAssembly!="object"){abort("no native wasm support detected")}var wasmMemory;var wasmModule;var ABORT=false;var EXITSTATUS;function assert(condition,text){if(!condition){abort(text)}}function UTF8ArrayToString(heapOrArray,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var str="";while(!(idx>=endIdx)){var u0=heapOrArray[idx++];if(!u0)return str;if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heapOrArray[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heapOrArray[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u0=(u0&7)<<18|u1<<12|u2<<6|heapOrArray[idx++]&63}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(GROWABLE_HEAP_U8(),ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,GROWABLE_HEAP_U8(),outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&c<=57343){len+=4;++i}else{len+=3}}return len}var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAP64,HEAPU64,HEAPF64;function updateMemoryViews(){var b=wasmMemory.buffer;Module["HEAP8"]=HEAP8=new Int8Array(b);Module["HEAP16"]=HEAP16=new Int16Array(b);Module["HEAP32"]=HEAP32=new Int32Array(b);Module["HEAPU8"]=HEAPU8=new Uint8Array(b);Module["HEAPU16"]=HEAPU16=new Uint16Array(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)}var INITIAL_MEMORY=Module["INITIAL_MEMORY"]||45940736;assert(INITIAL_MEMORY>=5242880,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+INITIAL_MEMORY+"! (STACK_SIZE="+5242880+")");if(ENVIRONMENT_IS_PTHREAD){wasmMemory=Module["wasmMemory"]}else{if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":2147483648/65536,"shared":true});if(!(wasmMemory.buffer instanceof SharedArrayBuffer)){err("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag");if(ENVIRONMENT_IS_NODE){err("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)")}throw Error("bad memory")}}}updateMemoryViews();INITIAL_MEMORY=wasmMemory.buffer.byteLength;var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeKeepaliveCounter=0;function keepRuntimeAlive(){return noExitRuntime||runtimeKeepaliveCounter>0}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(ENVIRONMENT_IS_PTHREAD)return;if(!Module["noFSInit"]&&!FS.init.initialized)FS.init();FS.ignorePermissions=false;TTY.init();SOCKFS.root=FS.mount(SOCKFS,{},null);callRuntimeCallbacks(__ATINIT__)}function postRun(){if(ENVIRONMENT_IS_PTHREAD)return;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 addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){if(Module["onAbort"]){Module["onAbort"](what)}what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -sASSERTIONS for more info.";if(runtimeInitialized){___trap()}var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith("file://")}var wasmBinaryFile;if(Module["locateFile"]){wasmBinaryFile="dotnet.native.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}}else{wasmBinaryFile=new URL("dotnet.native.wasm",import.meta.url).href}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw"both async and sync fetching of the wasm failed"}catch(err){abort(err)}}function getBinaryPromise(binaryFile){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch=="function"&&!isFileURI(binaryFile)){return fetch(binaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+binaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary(binaryFile)})}else{if(readAsync){return new Promise(function(resolve,reject){readAsync(binaryFile,function(response){resolve(new Uint8Array(response))},reject)})}}}return Promise.resolve().then(function(){return getBinary(binaryFile)})}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(function(binary){return WebAssembly.instantiate(binary,imports)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(binaryFile)&&!isFileURI(binaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function"){return fetch(binaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(binaryFile,imports,callback)})})}else{return instantiateArrayBuffer(binaryFile,imports,callback)}}function createWasm(){var info={"env":wasmImports,"wasi_snapshot_preview1":wasmImports};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;registerTLSInit(Module["asm"]["_emscripten_tls_init"]);wasmTable=Module["asm"]["__indirect_function_table"];addOnInit(Module["asm"]["__wasm_call_ctors"]);wasmModule=module;PThread.loadWasmModuleToAllWorkers(()=>removeRunDependency("wasm-instantiate"));return exports}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"],result["module"])}if(Module["instantiateWasm"]){try{return Module["instantiateWasm"](info,receiveInstance)}catch(e){err("Module.instantiateWasm callback failed with error: "+e);readyPromiseReject(e)}}instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult).catch(readyPromiseReject);return{}}var tempDouble;var tempI64;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}function terminateWorker(worker){worker.terminate();worker.onmessage=e=>{}}function killThread(pthread_ptr){var worker=PThread.pthreads[pthread_ptr];delete PThread.pthreads[pthread_ptr];terminateWorker(worker);__emscripten_thread_free_data(pthread_ptr);PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(worker),1);worker.pthread_ptr=0}function cancelThread(pthread_ptr){var worker=PThread.pthreads[pthread_ptr];worker.postMessage({"cmd":"cancel"})}function cleanupThread(pthread_ptr){var worker=PThread.pthreads[pthread_ptr];assert(worker);PThread.returnWorkerToPool(worker)}function zeroMemory(address,size){GROWABLE_HEAP_U8().fill(0,address,address+size);return address}function spawnThread(threadParams){var worker=PThread.getNewWorker();if(!worker){return 6}PThread.runningWorkers.push(worker);PThread.pthreads[threadParams.pthread_ptr]=worker;worker.pthread_ptr=threadParams.pthread_ptr;var msg={"cmd":"run","start_routine":threadParams.startRoutine,"arg":threadParams.arg,"pthread_ptr":threadParams.pthread_ptr};if(ENVIRONMENT_IS_NODE){worker.ref()}worker.postMessage(msg,threadParams.transferList);return 0}var PATH={isAbs:path=>path.charAt(0)==="/",splitPath:filename=>{var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:(parts,allowAboveRoot)=>{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(allowAboveRoot){for(;up;up--){parts.unshift("..")}}return parts},normalize:path=>{var isAbsolute=PATH.isAbs(path),trailingSlash=path.substr(-1)==="/";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){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:path=>{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:function(){var paths=Array.prototype.slice.call(arguments);return PATH.normalize(paths.join("/"))},join2:(l,r)=>{return PATH.normalize(l+"/"+r)}};function getRandomDevice(){if(typeof crypto=="object"&&typeof crypto["getRandomValues"]=="function"){var randomBuffer=new Uint8Array(1);return()=>{crypto.getRandomValues(randomBuffer);return randomBuffer[0]}}else if(ENVIRONMENT_IS_NODE){try{var crypto_module=require("crypto");return()=>crypto_module["randomBytes"](1)[0]}catch(e){}}return()=>abort("randomDevice")}var PATH_FS={resolve:function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=PATH.isAbs(path)}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=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;i0?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 TTY={ttys:[],init:function(){},shutdown:function(){},register:function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops};FS.registerDevice(dev,TTY.stream_ops)},stream_ops:{open:function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(43)}stream.tty=tty;stream.seekable=false},close:function(stream){stream.tty.ops.fsync(stream.tty)},fsync:function(stream){stream.tty.ops.fsync(stream.tty)},read:function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(60)}var bytesRead=0;for(var i=0;i0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()},put_char:function(tty,val){if(val===null||val===10){out(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},fsync:function(tty){if(tty.output&&tty.output.length>0){out(UTF8ArrayToString(tty.output,0));tty.output=[]}}},default_tty1_ops:{put_char:function(tty,val){if(val===null||val===10){err(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},fsync:function(tty){if(tty.output&&tty.output.length>0){err(UTF8ArrayToString(tty.output,0));tty.output=[]}}}};function alignMemory(size,alignment){return Math.ceil(size/alignment)*alignment}function 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:function(mount){return MEMFS.createNode(null,"/",16384|511,0)},createNode:function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(63)}if(!MEMFS.ops_table){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;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();if(parent){parent.contents[name]=node;parent.timestamp=node.timestamp}return node},getFileDataAsTypedArray:function(node){if(!node.contents)return new Uint8Array(0);if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)},expandFileStorage:function(node,newCapacity){var prevCapacity=node.contents?node.contents.length:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity>>0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0)},resizeFileStorage:function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0}else{var oldContents=node.contents;node.contents=new Uint8Array(newSize);if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize}},node_ops:{getattr:function(node){var attr={};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);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr},setattr:function(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:function(parent,name){throw FS.genericErrors[44]},mknod:function(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)},rename:function(old_node,new_dir,new_name){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)}}}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:function(parent,name){delete parent.contents[name];parent.timestamp=Date.now()},rmdir:function(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:function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries},symlink:function(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node},readlink:function(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(28)}return node.link}},stream_ops:{read:function(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){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i0||position+length{assert(arrayBuffer,'Loading data file "'+url+'" failed (no 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={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,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){throw new FS.ErrnoError(32)}var parts=path.split("/").filter(p=>!!p);var current=FS.root;var current_path="/";for(var i=0;i40){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>>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,parent)}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}}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},flagModes:{"r":0,"r+":2,"w":577,"w+":578,"a":1089,"a+":1090},modeStringToFlags:str=>{var flags=FS.flagModes[str];if(typeof flags=="undefined"){throw new Error("Unknown file open mode: "+str)}return flags},flagsToPermissionString:flag=>{var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms},nodePermissions:(node,perms)=>{if(FS.ignorePermissions){return 0}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=>{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"||flags&512){return 31}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))},MAX_OPEN_FDS:4096,nextfd:(fd_start=0,fd_end=FS.MAX_OPEN_FDS)=>{for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(33)},getStream:fd=>FS.streams[fd],createStream:(stream,fd_start,fd_end)=>{if(!FS.FSStream){FS.FSStream=function(){this.shared={}};FS.FSStream.prototype={};Object.defineProperties(FS.FSStream.prototype,{object:{get:function(){return this.node},set:function(val){this.node=val}},isRead:{get:function(){return(this.flags&2097155)!==1}},isWrite:{get:function(){return(this.flags&2097155)!==0}},isAppend:{get:function(){return this.flags&1024}},flags:{get:function(){return this.shared.flags},set:function(val){this.shared.flags=val}},position:{get:function(){return this.shared.position},set:function(val){this.shared.position=val}}})}stream=Object.assign(new FS.FSStream,stream);var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream},closeStream:fd=>{FS.streams[fd]=null},chrdev_stream_ops:{open:stream=>{var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}},llseek:()=>{throw new FS.ErrnoError(70)}},major:dev=>dev>>8,minor:dev=>dev&255,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.apply(check,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)}}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;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:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;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)}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}});node.mounted=null;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;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)},mkdir:(path,mode)=>{mode=mode!==undefined?mode:511;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{if(typeof dev=="undefined"){dev=mode;mode=438}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);var lookup,old_dir,new_dir;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);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(75)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH_FS.relative(old_path,new_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(28)}relative=PATH_FS.relative(new_path,old_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(55)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var errCode=FS.mayDelete(old_dir,old_name,isdir);if(errCode){throw new FS.ErrnoError(errCode)}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(new_dir!==old_dir){errCode=FS.nodePermissions(old_dir,"w");if(errCode){throw new FS.ErrnoError(errCode)}}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name)}catch(e){throw e}finally{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){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.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}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()})},lchown:(path,uid,gid)=>{FS.chown(path,uid,gid,true)},fchown:(fd,uid,gid)=>{var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}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.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}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: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){}}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(20)}}else{node=FS.mknod(path,mode,0);created=true}}if(!node){throw new FS.ErrnoError(44)}if(FS.isChrdev(node.mode)){flags&=~512}if(flags&65536&&!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}if(!created){var errCode=FS.mayOpen(node,flags);if(errCode){throw new FS.ErrnoError(errCode)}}if(flags&512&&!created){FS.truncate(node,0)}flags&=~(128|512|131072);var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false});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;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){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)=>{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)},munmap:stream=>0,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:()=>{FS.mkdir("/dev");FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(stream,buffer,offset,length,pos)=>length});FS.mkdev("/dev/null",FS.makedev(1,3));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));var random_device=getRandomDevice();FS.createDevice("/dev","random",random_device);FS.createDevice("/dev","urandom",random_device);FS.mkdir("/dev/shm");FS.mkdir("/dev/shm/tmp")},createSpecialDirectories:()=>{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,73);node.node_ops={lookup:(parent,name)=>{var fd=+name;var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);var ret={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>stream.path}};ret.parent=ret;return ret}};return node}},{},"/proc/self/fd")},createStandardStreams:()=>{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")}var stdin=FS.open("/dev/stdin",0);var stdout=FS.open("/dev/stdout",1);var stderr=FS.open("/dev/stderr",1)},ensureErrnoError:()=>{if(FS.ErrnoError)return;FS.ErrnoError=function ErrnoError(errno,node){this.name="ErrnoError";this.node=node;this.setErrno=function(errno){this.errno=errno};this.setErrno(errno);this.message="FS error"};FS.ErrnoError.prototype=new Error;FS.ErrnoError.prototype.constructor=FS.ErrnoError;[44].forEach(code=>{FS.genericErrors[code]=new FS.ErrnoError(code);FS.genericErrors[code].stack=""})},staticInit:()=>{FS.ensureErrnoError();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;FS.ensureErrnoError();Module["stdin"]=input||Module["stdin"];Module["stdout"]=output||Module["stdout"];Module["stderr"]=error||Module["stderr"];FS.createStandardStreams()},quit:()=>{FS.init.initialized=false;for(var i=0;i{var mode=0;if(canRead)mode|=292|73;if(canWrite)mode|=146;return mode},findObject:(path,dontResolveLastLink)=>{var ret=FS.analyzePath(path,dontResolveLastLink);if(!ret.exists){return null}return ret.object},analyzePath:(path,dontResolveLastLink)=>{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){}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{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);FS.registerDevice(dev,{open:stream=>{stream.seekable=false},close:stream=>{if(output&&output.buffer&&output.buffer.length){output(10)}},read:(stream,buffer,offset,length,pos)=>{var bytesRead=0;for(var i=0;i{for(var i=0;i{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_){try{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)=>{function LazyUint8Array(){this.lengthKnown=false;this.chunks=[]}LazyUint8Array.prototype.get=function LazyUint8Array_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]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){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;if(!hasByteServing)chunkSize=datalength;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!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);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(xhr.response||[])}return intArrayFromString(xhr.responseText||"",true)};var lazyArray=this;lazyArray.setDataGetter(chunkNum=>{var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);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){chunkSize=datalength=1;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};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;Object.defineProperties(lazyArray,{length:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._length}},chunkSize:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize}}});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:function(){return this.contents.length}}});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach(key=>{var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){FS.forceLoadFile(node);return fn.apply(null,arguments)}});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){for(var i=0;i{FS.forceLoadFile(node);return writeChunks(stream,buffer,offset,length,position)};stream_ops.mmap=(stream,length,position,prot,flags)=>{FS.forceLoadFile(node);var ptr=mmapAlloc(length);if(!ptr){throw new FS.ErrnoError(48)}writeChunks(stream,GROWABLE_HEAP_I8(),ptr,length,position);return{ptr:ptr,allocated:true}};node.stream_ops=stream_ops;return node},createPreloadedFile:(parent,name,url,canRead,canWrite,onload,onerror,dontCreateFile,canOwn,preFinish)=>{var fullname=name?PATH_FS.resolve(PATH.join2(parent,name)):parent;var dep=getUniqueRunDependency("cp "+fullname);function processData(byteArray){function finish(byteArray){if(preFinish)preFinish();if(!dontCreateFile){FS.createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}if(onload)onload();removeRunDependency(dep)}if(Browser.handledByPreloadPlugin(byteArray,fullname,finish,()=>{if(onerror)onerror();removeRunDependency(dep)})){return}finish(byteArray)}addRunDependency(dep);if(typeof url=="string"){asyncLoad(url,byteArray=>processData(byteArray),onerror)}else{processData(url)}},indexedDB:()=>{return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:()=>{return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(paths,onload=(()=>{}),onerror=(()=>{}))=>{var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=()=>{out("creating db");var db=openRequest.result;db.createObjectStore(FS.DB_STORE_NAME)};openRequest.onsuccess=()=>{var db=openRequest.result;var transaction=db.transaction([FS.DB_STORE_NAME],"readwrite");var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach(path=>{var putRequest=files.put(FS.analyzePath(path).object.contents,path);putRequest.onsuccess=()=>{ok++;if(ok+fail==total)finish()};putRequest.onerror=()=>{fail++;if(ok+fail==total)finish()}});transaction.onerror=onerror};openRequest.onerror=onerror},loadFilesFromDB:(paths,onload=(()=>{}),onerror=(()=>{}))=>{var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=onerror;openRequest.onsuccess=()=>{var db=openRequest.result;try{var transaction=db.transaction([FS.DB_STORE_NAME],"readonly")}catch(e){onerror(e);return}var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach(path=>{var getRequest=files.get(path);getRequest.onsuccess=()=>{if(FS.analyzePath(path).exists){FS.unlink(path)}FS.createDataFile(PATH.dirname(path),PATH.basename(path),getRequest.result,true,true,true);ok++;if(ok+fail==total)finish()};getRequest.onerror=()=>{fail++;if(ok+fail==total)finish()}});transaction.onerror=onerror};openRequest.onerror=onerror}};var SYSCALLS={DEFAULT_POLLMASK:5,calculateAt:function(dirfd,path,allowEmpty){if(PATH.isAbs(path)){return 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:function(func,path,buf){try{var stat=func(path)}catch(e){if(e&&e.node&&PATH.normalize(path)!==PATH.normalize(FS.getPath(e.node))){return-54}throw e}GROWABLE_HEAP_I32()[buf>>2]=stat.dev;GROWABLE_HEAP_I32()[buf+8>>2]=stat.ino;GROWABLE_HEAP_I32()[buf+12>>2]=stat.mode;GROWABLE_HEAP_U32()[buf+16>>2]=stat.nlink;GROWABLE_HEAP_I32()[buf+20>>2]=stat.uid;GROWABLE_HEAP_I32()[buf+24>>2]=stat.gid;GROWABLE_HEAP_I32()[buf+28>>2]=stat.rdev;tempI64=[stat.size>>>0,(tempDouble=stat.size,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[buf+40>>2]=tempI64[0],GROWABLE_HEAP_I32()[buf+44>>2]=tempI64[1];GROWABLE_HEAP_I32()[buf+48>>2]=4096;GROWABLE_HEAP_I32()[buf+52>>2]=stat.blocks;var atime=stat.atime.getTime();var mtime=stat.mtime.getTime();var ctime=stat.ctime.getTime();tempI64=[Math.floor(atime/1e3)>>>0,(tempDouble=Math.floor(atime/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[buf+56>>2]=tempI64[0],GROWABLE_HEAP_I32()[buf+60>>2]=tempI64[1];GROWABLE_HEAP_U32()[buf+64>>2]=atime%1e3*1e3;tempI64=[Math.floor(mtime/1e3)>>>0,(tempDouble=Math.floor(mtime/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[buf+72>>2]=tempI64[0],GROWABLE_HEAP_I32()[buf+76>>2]=tempI64[1];GROWABLE_HEAP_U32()[buf+80>>2]=mtime%1e3*1e3;tempI64=[Math.floor(ctime/1e3)>>>0,(tempDouble=Math.floor(ctime/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[buf+88>>2]=tempI64[0],GROWABLE_HEAP_I32()[buf+92>>2]=tempI64[1];GROWABLE_HEAP_U32()[buf+96>>2]=ctime%1e3*1e3;tempI64=[stat.ino>>>0,(tempDouble=stat.ino,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[buf+104>>2]=tempI64[0],GROWABLE_HEAP_I32()[buf+108>>2]=tempI64[1];return 0},doMsync:function(addr,stream,len,flags,offset){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(43)}if(flags&2){return 0}var buffer=GROWABLE_HEAP_U8().slice(addr,addr+len);FS.msync(stream,buffer,offset,len,flags)},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=GROWABLE_HEAP_I32()[SYSCALLS.varargs-4>>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},getStreamFromFD:function(fd){var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);return stream}};function _proc_exit(code){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(1,1,code);EXITSTATUS=code;if(!keepRuntimeAlive()){PThread.terminateAllThreads();if(Module["onExit"])Module["onExit"](code);ABORT=true}quit_(code,new ExitStatus(code))}function exitJS(status,implicit){EXITSTATUS=status;if(ENVIRONMENT_IS_PTHREAD){exitOnMainThread(status);throw"unwind"}_proc_exit(status)}var _exit=exitJS;function handleException(e){if(e instanceof ExitStatus||e=="unwind"){return EXITSTATUS}quit_(1,e)}var PThread={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init:function(){if(ENVIRONMENT_IS_PTHREAD){PThread.initWorker()}else{PThread.initMainThread()}},initMainThread:function(){},initWorker:function(){noExitRuntime=false},setExitStatus:function(status){EXITSTATUS=status},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:function(){for(var worker of PThread.runningWorkers){terminateWorker(worker)}for(var worker of PThread.unusedWorkers){terminateWorker(worker)}PThread.unusedWorkers=[];PThread.runningWorkers=[];PThread.pthreads=[]},returnWorkerToPool:function(worker){var pthread_ptr=worker.pthread_ptr;delete PThread.pthreads[pthread_ptr];PThread.unusedWorkers.push(worker);PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(worker),1);worker.pthread_ptr=0;if(ENVIRONMENT_IS_NODE){worker.unref()}__emscripten_thread_free_data(pthread_ptr)},receiveObjectTransfer:function(data){},threadInitTLS:function(){PThread.tlsInitFunctions.forEach(f=>f())},loadWasmModuleToWorker:worker=>new Promise(onFinishedLoading=>{worker.onmessage=e=>{var d=e["data"];var cmd=d["cmd"];if(worker.pthread_ptr)PThread.currentProxiedOperationCallerThread=worker.pthread_ptr;if(d["targetThread"]&&d["targetThread"]!=_pthread_self()){var targetWorker=PThread.pthreads[d.targetThread];if(targetWorker){targetWorker.postMessage(d,d["transferList"])}else{err('Internal error! Worker sent a message "'+cmd+'" to target pthread '+d["targetThread"]+", but that thread no longer exists!")}PThread.currentProxiedOperationCallerThread=undefined;return}if(cmd==="checkMailbox"){checkMailbox()}else if(cmd==="spawnThread"){spawnThread(d)}else if(cmd==="cleanupThread"){cleanupThread(d["thread"])}else if(cmd==="killThread"){killThread(d["thread"])}else if(cmd==="cancelThread"){cancelThread(d["thread"])}else if(cmd==="loaded"){worker.loaded=true;if(ENVIRONMENT_IS_NODE&&!worker.pthread_ptr){worker.unref()}onFinishedLoading(worker)}else if(cmd==="print"){out("Thread "+d["threadId"]+": "+d["text"])}else if(cmd==="printErr"){err("Thread "+d["threadId"]+": "+d["text"])}else if(cmd==="alert"){alert("Thread "+d["threadId"]+": "+d["text"])}else if(d.target==="setimmediate"){worker.postMessage(d)}else if(cmd==="callHandler"){Module[d["handler"]](...d["args"])}else if(cmd){err("worker sent an unknown command "+cmd)}PThread.currentProxiedOperationCallerThread=undefined};worker.onerror=e=>{var message="worker sent an error!";err(message+" "+e.filename+":"+e.lineno+": "+e.message);throw e};if(ENVIRONMENT_IS_NODE){worker.on("message",function(data){worker.onmessage({data:data})});worker.on("error",function(e){worker.onerror(e)});worker.on("detachedExit",function(){})}var handlers=[];var knownHandlers=["onExit","onAbort","print","printErr"];for(var handler of knownHandlers){if(Module.hasOwnProperty(handler)){handlers.push(handler)}}worker.postMessage({"cmd":"load","handlers":handlers,"urlOrBlob":Module["mainScriptUrlOrBlob"],"wasmMemory":wasmMemory,"wasmModule":wasmModule})}),loadWasmModuleToAllWorkers:function(onMaybeReady){onMaybeReady()},allocateUnusedWorker:function(){var worker;if(!Module["locateFile"]){worker=new Worker(new URL("dotnet.native.worker.js",import.meta.url))}else{var pthreadMainJs=locateFile("dotnet.native.worker.js");worker=new Worker(pthreadMainJs)}PThread.unusedWorkers.push(worker)},getNewWorker:function(){if(PThread.unusedWorkers.length==0){if(!ENVIRONMENT_IS_NODE){return}PThread.allocateUnusedWorker();PThread.loadWasmModuleToWorker(PThread.unusedWorkers[0])}return PThread.unusedWorkers.pop()}};Module["PThread"]=PThread;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){callbacks.shift()(Module)}}function establishStackSpace(){var pthread_ptr=_pthread_self();var stackTop=GROWABLE_HEAP_I32()[pthread_ptr+52>>2];var stackSize=GROWABLE_HEAP_I32()[pthread_ptr+56>>2];var stackMax=stackTop-stackSize;_emscripten_stack_set_limits(stackTop,stackMax);stackRestore(stackTop)}Module["establishStackSpace"]=establishStackSpace;function exitOnMainThread(returnCode){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(2,0,returnCode);_exit(returnCode)}function getValue(ptr,type="i8"){if(type.endsWith("*"))type="*";switch(type){case"i1":return GROWABLE_HEAP_I8()[ptr>>0];case"i8":return GROWABLE_HEAP_I8()[ptr>>0];case"i16":return GROWABLE_HEAP_I16()[ptr>>1];case"i32":return GROWABLE_HEAP_I32()[ptr>>2];case"i64":return HEAP64[ptr>>3];case"float":return GROWABLE_HEAP_F32()[ptr>>2];case"double":return GROWABLE_HEAP_F64()[ptr>>3];case"*":return GROWABLE_HEAP_U32()[ptr>>2];default:abort("invalid type for getValue: "+type)}}var wasmTableMirror=[];function getWasmTableEntry(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func}function invokeEntryPoint(ptr,arg){var result=getWasmTableEntry(ptr)(arg);if(keepRuntimeAlive()){PThread.setExitStatus(result)}else{__emscripten_thread_exit(result)}}Module["invokeEntryPoint"]=invokeEntryPoint;function registerTLSInit(tlsInitFunc){PThread.tlsInitFunctions.push(tlsInitFunc)}function setValue(ptr,value,type="i8"){if(type.endsWith("*"))type="*";switch(type){case"i1":GROWABLE_HEAP_I8()[ptr>>0]=value;break;case"i8":GROWABLE_HEAP_I8()[ptr>>0]=value;break;case"i16":GROWABLE_HEAP_I16()[ptr>>1]=value;break;case"i32":GROWABLE_HEAP_I32()[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[ptr>>2]=tempI64[0],GROWABLE_HEAP_I32()[ptr+4>>2]=tempI64[1];break;case"float":GROWABLE_HEAP_F32()[ptr>>2]=value;break;case"double":GROWABLE_HEAP_F64()[ptr>>3]=value;break;case"*":GROWABLE_HEAP_U32()[ptr>>2]=value;break;default:abort("invalid type for setValue: "+type)}}function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"])}function ___emscripten_init_main_thread_js(tb){__emscripten_thread_init(tb,!ENVIRONMENT_IS_WORKER,1,!ENVIRONMENT_IS_WEB);PThread.threadInitTLS()}function ___emscripten_thread_cleanup(thread){if(!ENVIRONMENT_IS_PTHREAD)cleanupThread(thread);else postMessage({"cmd":"cleanupThread","thread":thread})}function pthreadCreateProxied(pthread_ptr,attr,startRoutine,arg){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(3,1,pthread_ptr,attr,startRoutine,arg);return ___pthread_create_js(pthread_ptr,attr,startRoutine,arg)}function ___pthread_create_js(pthread_ptr,attr,startRoutine,arg){if(typeof SharedArrayBuffer=="undefined"){err("Current environment does not support SharedArrayBuffer, pthreads are not available!");return 6}var transferList=[];var error=0;if(ENVIRONMENT_IS_PTHREAD&&(transferList.length===0||error)){return pthreadCreateProxied(pthread_ptr,attr,startRoutine,arg)}if(error)return error;var threadParams={startRoutine:startRoutine,pthread_ptr:pthread_ptr,arg:arg,transferList:transferList};if(ENVIRONMENT_IS_PTHREAD){threadParams.cmd="spawnThread";postMessage(threadParams,transferList);return 0}return spawnThread(threadParams)}function ___syscall_chdir(path){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(4,1,path);try{path=SYSCALLS.getStr(path);FS.chdir(path);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_chmod(path,mode){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(5,1,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:function(mount){Module["websocket"]=Module["websocket"]&&"object"===typeof Module["websocket"]?Module["websocket"]:{};Module["websocket"]._callbacks={};Module["websocket"]["on"]=function(event,callback){if("function"===typeof callback){this._callbacks[event]=callback}return this};Module["websocket"].emit=function(event,param){if("function"===typeof this._callbacks[event]){this._callbacks[event].call(this,param)}};return FS.createNode(null,"/",16384|511,0)},createSocket:function(family,type,protocol){type&=~526336;var streaming=type==1;if(streaming&&protocol&&protocol!=6){throw new FS.ErrnoError(66)}var sock={family:family,type:type,protocol:protocol,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops};var name=SOCKFS.nextname();var node=FS.createNode(SOCKFS.root,name,49152,0);node.sock=sock;var stream=FS.createStream({path:name,node:node,flags:2,seekable:false,stream_ops:SOCKFS.stream_ops});sock.stream=stream;return sock},getSocket:function(fd){var stream=FS.getStream(fd);if(!stream||!FS.isSocket(stream.node.mode)){return null}return stream.node.sock},stream_ops:{poll:function(stream){var sock=stream.node.sock;return sock.sock_ops.poll(sock)},ioctl:function(stream,request,varargs){var sock=stream.node.sock;return sock.sock_ops.ioctl(sock,request,varargs)},read:function(stream,buffer,offset,length,position){var sock=stream.node.sock;var msg=sock.sock_ops.recvmsg(sock,length);if(!msg){return 0}buffer.set(msg.buffer,offset);return msg.buffer.length},write:function(stream,buffer,offset,length,position){var sock=stream.node.sock;return sock.sock_ops.sendmsg(sock,buffer,offset,length)},close:function(stream){var sock=stream.node.sock;sock.sock_ops.close(sock)}},nextname:function(){if(!SOCKFS.nextname.current){SOCKFS.nextname.current=0}return"socket["+SOCKFS.nextname.current+++"]"},websocket_sock_ops:{createPeer:function(sock,addr,port){var ws;if(typeof addr=="object"){ws=addr;addr=null;port=null}if(ws){if(ws._socket){addr=ws._socket.remoteAddress;port=ws._socket.remotePort}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{try{var runtimeConfig=Module["websocket"]&&"object"===typeof Module["websocket"];var url="ws:#".replace("#","//");if(runtimeConfig){if("string"===typeof Module["websocket"]["url"]){url=Module["websocket"]["url"]}}if(url==="ws://"||url==="wss://"){var parts=addr.split("/");url=url+parts[0]+":"+port+"/"+parts.slice(1).join("/")}var subProtocols="binary";if(runtimeConfig){if("string"===typeof Module["websocket"]["subprotocol"]){subProtocols=Module["websocket"]["subprotocol"]}}var opts=undefined;if(subProtocols!=="null"){subProtocols=subProtocols.replace(/^ +| +$/g,"").split(/ *, */);opts=subProtocols}if(runtimeConfig&&null===Module["websocket"]["subprotocol"]){subProtocols="null";opts=undefined}var WebSocketConstructor;if(ENVIRONMENT_IS_NODE){WebSocketConstructor=require("ws")}else{WebSocketConstructor=WebSocket}ws=new WebSocketConstructor(url,opts);ws.binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(23)}}var peer={addr:addr,port:port,socket:ws,dgram_send_queue:[]};SOCKFS.websocket_sock_ops.addPeer(sock,peer);SOCKFS.websocket_sock_ops.handlePeerEvents(sock,peer);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&65280)>>8,sock.sport&255]))}return peer},getPeer:function(sock,addr,port){return sock.peers[addr+":"+port]},addPeer:function(sock,peer){sock.peers[peer.addr+":"+peer.port]=peer},removePeer:function(sock,peer){delete sock.peers[peer.addr+":"+peer.port]},handlePeerEvents:function(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){peer.socket.close()}};function handleMessage(data){if(typeof data=="string"){var encoder=new TextEncoder;data=encoder.encode(data)}else{assert(data.byteLength!==undefined);if(data.byteLength==0){return}data=new Uint8Array(data)}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)){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)});peer.socket.on("close",function(){Module["websocket"].emit("close",sock.stream.fd)});peer.socket.on("error",function(error){sock.error=14;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])})}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){sock.error=14;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])}}},poll:function(sock){if(sock.type===1&&sock.server){return sock.pending.length?64|1:0}var mask=0;var dest=sock.type===1?SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport):null;if(sock.recv_queue.length||!dest||dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=64|1}if(!dest||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:function(sock,request,arg){switch(request){case 21531:var bytes=0;if(sock.recv_queue.length){bytes=sock.recv_queue[0].data.length}GROWABLE_HEAP_I32()[arg>>2]=bytes;return 0;default:return 28}},close:function(sock){if(sock.server){try{sock.server.close()}catch(e){}sock.server=null}var peers=Object.keys(sock.peers);for(var i=0;i>2]=value;return value}function inetNtop4(addr){return(addr&255)+"."+(addr>>8&255)+"."+(addr>>16&255)+"."+(addr>>24&255)}function inetNtop6(ints){var str="";var word=0;var longest=0;var lastzero=0;var zstart=0;var len=0;var i=0;var parts=[ints[0]&65535,ints[0]>>16,ints[1]&65535,ints[1]>>16,ints[2]&65535,ints[2]>>16,ints[3]&65535,ints[3]>>16];var hasipv4=true;var v4part="";for(i=0;i<5;i++){if(parts[i]!==0){hasipv4=false;break}}if(hasipv4){v4part=inetNtop4(parts[6]|parts[7]<<16);if(parts[5]===-1){str="::ffff:";str+=v4part;return str}if(parts[5]===0){str="::";if(v4part==="0.0.0.0")v4part="";if(v4part==="0.0.0.1")v4part="1";str+=v4part;return str}}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){if(parts[word]===0&&word>=zstart&&word>1];var port=_ntohs(GROWABLE_HEAP_U16()[sa+2>>1]);var addr;switch(family){case 2:if(salen!==16){return{errno:28}}addr=GROWABLE_HEAP_I32()[sa+4>>2];addr=inetNtop4(addr);break;case 10:if(salen!==28){return{errno:28}}addr=[GROWABLE_HEAP_I32()[sa+8>>2],GROWABLE_HEAP_I32()[sa+12>>2],GROWABLE_HEAP_I32()[sa+16>>2],GROWABLE_HEAP_I32()[sa+20>>2]];addr=inetNtop6(addr);break;default:return{errno:5}}return{family:family,addr:addr,port:port}}function 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}function jstoi_q(str){return parseInt(str)}function inetPton6(str){var words;var w,offset,z;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]}if(str.startsWith("::")){str=str.replace("::","Z:")}else{str=str.replace("::",":Z:")}if(str.indexOf(".")>0){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>1]=2;return 0}case 6:case 7:return 0;case 16:case 8:return-28;case 9:setErrNo(28);return-1;default:{return-28}}}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_fstat64(fd,buf){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(10,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(12,1,path,size,buf);try{path=SYSCALLS.getStr(path);GROWABLE_HEAP_I32()[buf+4>>2]=4096;GROWABLE_HEAP_I32()[buf+40>>2]=4096;GROWABLE_HEAP_I32()[buf+8>>2]=1e6;GROWABLE_HEAP_I32()[buf+12>>2]=5e5;GROWABLE_HEAP_I32()[buf+16>>2]=5e5;GROWABLE_HEAP_I32()[buf+20>>2]=FS.nextInode;GROWABLE_HEAP_I32()[buf+24>>2]=1e6;GROWABLE_HEAP_I32()[buf+28>>2]=42;GROWABLE_HEAP_I32()[buf+44>>2]=2;GROWABLE_HEAP_I32()[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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(11,1,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;function bigintToI53Checked(num){return numMAX_INT53?NaN:Number(num)}function ___syscall_ftruncate64(fd,length){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(13,1,fd,length);try{length=bigintToI53Checked(length);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}}function ___syscall_getcwd(buf,size){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(14,1,buf,size);try{if(size===0)return-28;var cwd=FS.cwd();var cwdLengthInBytes=lengthBytesUTF8(cwd)+1;if(size>>0,(tempDouble=id,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[dirp+pos>>2]=tempI64[0],GROWABLE_HEAP_I32()[dirp+pos+4>>2]=tempI64[1];tempI64=[(idx+1)*struct_size>>>0,(tempDouble=(idx+1)*struct_size,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[dirp+pos+8>>2]=tempI64[0],GROWABLE_HEAP_I32()[dirp+pos+12>>2]=tempI64[1];GROWABLE_HEAP_I16()[dirp+pos+16>>1]=280;GROWABLE_HEAP_I8()[dirp+pos+18>>0]=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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(16,1,fd,op,varargs);SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(fd);switch(op){case 21509:case 21505:{if(!stream.tty)return-59;return 0}case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:{if(!stream.tty)return-59;return 0}case 21519:{if(!stream.tty)return-59;var argp=SYSCALLS.get();GROWABLE_HEAP_I32()[argp>>2]=0;return 0}case 21520:{if(!stream.tty)return-59;return-28}case 21531:{var argp=SYSCALLS.get();return FS.ioctl(stream,op,argp)}case 21523:{if(!stream.tty)return-59;return 0}case 21524:{if(!stream.tty)return-59;return 0}default:return-28}}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_lstat64(path,buf){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(17,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(18,1,dirfd,path,mode);try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(19,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(20,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(21,1,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=GROWABLE_HEAP_I8()[buf+len];stringToUTF8(ret,buf,bufsize+1);GROWABLE_HEAP_I8()[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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(22,1,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_rmdir(path){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(23,1,path);try{path=SYSCALLS.getStr(path);FS.rmdir(path);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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(24,1,fd,message,length,flags,addr,addr_len);try{var sock=getSocketFromFD(fd);var dest=getSocketAddress(addr,addr_len,true);if(!dest){return FS.write(sock.stream,GROWABLE_HEAP_I8(),message,length)}return sock.sock_ops.sendmsg(sock,GROWABLE_HEAP_I8(),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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(25,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(26,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(27,1,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}}function readI53FromI64(ptr){return GROWABLE_HEAP_U32()[ptr>>2]+GROWABLE_HEAP_I32()[ptr+4>>2]*4294967296}function ___syscall_utimensat(dirfd,path,times,flags){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(28,1,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=GROWABLE_HEAP_I32()[times+8>>2];atime=seconds*1e3+nanoseconds/(1e3*1e3);times+=16;seconds=readI53FromI64(times);nanoseconds=GROWABLE_HEAP_I32()[times+8>>2];mtime=seconds*1e3+nanoseconds/(1e3*1e3)}FS.utime(path,atime,mtime);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function __emscripten_default_pthread_stack_size(){return 5242880}var nowIsMonotonic=true;function __emscripten_get_now_is_monotonic(){return nowIsMonotonic}function maybeExit(){if(!keepRuntimeAlive()){try{if(ENVIRONMENT_IS_PTHREAD)__emscripten_thread_exit(EXITSTATUS);else _exit(EXITSTATUS)}catch(e){handleException(e)}}}function callUserCallback(func){if(ABORT){return}try{func();maybeExit()}catch(e){handleException(e)}}function __emscripten_thread_mailbox_await(pthread_ptr){if(typeof Atomics.waitAsync==="function"){var wait=Atomics.waitAsync(GROWABLE_HEAP_I32(),pthread_ptr>>2,pthread_ptr);wait.value.then(checkMailbox);var waitingAsync=pthread_ptr+128;Atomics.store(GROWABLE_HEAP_I32(),waitingAsync>>2,1)}}Module["__emscripten_thread_mailbox_await"]=__emscripten_thread_mailbox_await;function checkMailbox(){var pthread_ptr=_pthread_self();if(pthread_ptr){__emscripten_thread_mailbox_await(pthread_ptr);callUserCallback(()=>__emscripten_check_mailbox())}}Module["checkMailbox"]=checkMailbox;function __emscripten_notify_mailbox_postmessage(targetThreadId,currThreadId,mainThreadId){if(targetThreadId==currThreadId){setTimeout(()=>checkMailbox())}else if(ENVIRONMENT_IS_PTHREAD){postMessage({"targetThread":targetThreadId,"cmd":"checkMailbox"})}else{var worker=PThread.pthreads[targetThreadId];if(!worker){return}worker.postMessage({"cmd":"checkMailbox"})}}function __emscripten_set_offscreencanvas_size(target,width,height){return-1}function __gmtime_js(time,tmPtr){var date=new Date(readI53FromI64(time)*1e3);GROWABLE_HEAP_I32()[tmPtr>>2]=date.getUTCSeconds();GROWABLE_HEAP_I32()[tmPtr+4>>2]=date.getUTCMinutes();GROWABLE_HEAP_I32()[tmPtr+8>>2]=date.getUTCHours();GROWABLE_HEAP_I32()[tmPtr+12>>2]=date.getUTCDate();GROWABLE_HEAP_I32()[tmPtr+16>>2]=date.getUTCMonth();GROWABLE_HEAP_I32()[tmPtr+20>>2]=date.getUTCFullYear()-1900;GROWABLE_HEAP_I32()[tmPtr+24>>2]=date.getUTCDay();var start=Date.UTC(date.getUTCFullYear(),0,1,0,0,0,0);var yday=(date.getTime()-start)/(1e3*60*60*24)|0;GROWABLE_HEAP_I32()[tmPtr+28>>2]=yday}function __isLeapYear(year){return 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];function __yday_from_date(date){var isLeapYear=__isLeapYear(date.getFullYear());var monthDaysCumulative=isLeapYear?__MONTH_DAYS_LEAP_CUMULATIVE:__MONTH_DAYS_REGULAR_CUMULATIVE;var yday=monthDaysCumulative[date.getMonth()]+date.getDate()-1;return yday}function __localtime_js(time,tmPtr){var date=new Date(readI53FromI64(time)*1e3);GROWABLE_HEAP_I32()[tmPtr>>2]=date.getSeconds();GROWABLE_HEAP_I32()[tmPtr+4>>2]=date.getMinutes();GROWABLE_HEAP_I32()[tmPtr+8>>2]=date.getHours();GROWABLE_HEAP_I32()[tmPtr+12>>2]=date.getDate();GROWABLE_HEAP_I32()[tmPtr+16>>2]=date.getMonth();GROWABLE_HEAP_I32()[tmPtr+20>>2]=date.getFullYear()-1900;GROWABLE_HEAP_I32()[tmPtr+24>>2]=date.getDay();var yday=__yday_from_date(date)|0;GROWABLE_HEAP_I32()[tmPtr+28>>2]=yday;GROWABLE_HEAP_I32()[tmPtr+36>>2]=-(date.getTimezoneOffset()*60);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;GROWABLE_HEAP_I32()[tmPtr+32>>2]=dst}function __mmap_js(len,prot,flags,fd,off,allocated,addr){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(29,1,len,prot,flags,fd,off,allocated,addr);try{var stream=SYSCALLS.getStreamFromFD(fd);var res=FS.mmap(stream,len,off,prot,flags);var ptr=res.ptr;GROWABLE_HEAP_I32()[allocated>>2]=res.allocated;GROWABLE_HEAP_U32()[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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(30,1,addr,len,prot,flags,fd,offset);try{SYSCALLS.doMsync(addr,SYSCALLS.getStreamFromFD(fd),len,flags,0);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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(31,1,addr,len,prot,flags,fd,offset);try{var stream=SYSCALLS.getStreamFromFD(fd);if(prot&2){SYSCALLS.doMsync(addr,stream,len,flags,offset)}FS.munmap(stream)}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function allocateUTF8(str){var size=lengthBytesUTF8(str)+1;var ret=_malloc(size);if(ret)stringToUTF8Array(str,GROWABLE_HEAP_I8(),ret,size);return ret}function __tzset_js(timezone,daylight,tzname){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();var stdTimezoneOffset=Math.max(winterOffset,summerOffset);GROWABLE_HEAP_U32()[timezone>>2]=stdTimezoneOffset*60;GROWABLE_HEAP_I32()[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);var winterNamePtr=allocateUTF8(winterName);var summerNamePtr=allocateUTF8(summerName);if(summerOffset>2]=winterNamePtr;GROWABLE_HEAP_U32()[tzname+4>>2]=summerNamePtr}else{GROWABLE_HEAP_U32()[tzname>>2]=summerNamePtr;GROWABLE_HEAP_U32()[tzname+4>>2]=winterNamePtr}}function _abort(){abort("")}var DOTNETENTROPY={getBatchedRandomValues:function(buffer,bufferLength){const batchedQuotaMax=65536;const needTempBuf=typeof SharedArrayBuffer!=="undefined"&&Module.HEAPU8.buffer instanceof SharedArrayBuffer;const buf=needTempBuf?new ArrayBuffer(bufferLength):Module.HEAPU8.buffer;const offset=needTempBuf?0:buffer;for(let i=0;i{var t=process.hrtime();return t[0]*1e3+t[1]/1e6}}else _emscripten_get_now=()=>performance.timeOrigin+performance.now();function _emscripten_get_now_res(){if(ENVIRONMENT_IS_NODE){return 1}else if(typeof dateNow!="undefined"){return 1e3}else return 1e3}function _emscripten_memcpy_big(dest,src,num){GROWABLE_HEAP_U8().copyWithin(dest,src,src+num)}function _emscripten_num_logical_cores(){if(ENVIRONMENT_IS_NODE)return require("os").cpus().length;return navigator["hardwareConcurrency"]}function withStackSave(f){var stack=stackSave();var ret=f();stackRestore(stack);return ret}function _emscripten_proxy_to_main_thread_js(index,sync){var numCallArgs=arguments.length-2;var outerArgs=arguments;return withStackSave(()=>{var serializedNumCallArgs=numCallArgs*2;var args=stackAlloc(serializedNumCallArgs*8);var b=args>>3;for(var i=0;i>3;for(var i=0;i>>16);updateMemoryViews();return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){var oldSize=GROWABLE_HEAP_U8().length;requestedSize=requestedSize>>>0;if(requestedSize<=oldSize){return false}var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}let alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}function _emscripten_runtime_keepalive_check(){return keepRuntimeAlive()}function runtimeKeepalivePop(){runtimeKeepaliveCounter-=1}var _emscripten_runtime_keepalive_pop=runtimeKeepalivePop;var _emscripten_runtime_keepalive_push=runtimeKeepalivePush;function safeSetTimeout(func,timeout){runtimeKeepalivePush();return setTimeout(function(){runtimeKeepalivePop();callUserCallback(func)},timeout)}function _emscripten_set_timeout(cb,msecs,userData){return safeSetTimeout(()=>getWasmTableEntry(cb)(userData),msecs)}function _emscripten_unwind_to_js_event_loop(){throw"unwind"}var ENV={};function getExecutableName(){return thisProgram||"./this.program"}function getEnvStrings(){if(!getEnvStrings.strings){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()};for(var x in ENV){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}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)GROWABLE_HEAP_I8()[buffer>>0]=0}function _environ_get(__environ,environ_buf){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(32,1,__environ,environ_buf);var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;GROWABLE_HEAP_U32()[__environ+i*4>>2]=ptr;writeAsciiToMemory(string,ptr);bufSize+=string.length+1});return 0}function _environ_sizes_get(penviron_count,penviron_buf_size){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(33,1,penviron_count,penviron_buf_size);var strings=getEnvStrings();GROWABLE_HEAP_U32()[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){bufSize+=string.length+1});GROWABLE_HEAP_U32()[penviron_buf_size>>2]=bufSize;return 0}function _fd_close(fd){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(34,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(35,1,fd,pbuf);try{var stream=SYSCALLS.getStreamFromFD(fd);var type=stream.tty?2:FS.isDir(stream.mode)?3:FS.isLink(stream.mode)?7:4;GROWABLE_HEAP_I8()[pbuf>>0]=type;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function doReadv(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i>2];var len=GROWABLE_HEAP_U32()[iov+4>>2];iov+=8;var curr=FS.read(stream,GROWABLE_HEAP_I8(),ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr>2]=num;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function doWritev(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i>2];var len=GROWABLE_HEAP_U32()[iov+4>>2];iov+=8;var curr=FS.write(stream,GROWABLE_HEAP_I8(),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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(37,1,fd,iov,iovcnt,offset,pnum);try{offset=bigintToI53Checked(offset);if(isNaN(offset))return 61;var stream=SYSCALLS.getStreamFromFD(fd);var num=doWritev(stream,iov,iovcnt,offset);GROWABLE_HEAP_U32()[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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(38,1,fd,iov,iovcnt,pnum);try{var stream=SYSCALLS.getStreamFromFD(fd);var num=doReadv(stream,iov,iovcnt);GROWABLE_HEAP_U32()[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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(39,1,fd,offset,whence,newOffset);try{offset=bigintToI53Checked(offset);if(isNaN(offset))return 61;var stream=SYSCALLS.getStreamFromFD(fd);FS.llseek(stream,offset,whence);tempI64=[stream.position>>>0,(tempDouble=stream.position,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[newOffset>>2]=tempI64[0],GROWABLE_HEAP_I32()[newOffset+4>>2]=tempI64[1];if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function _fd_sync(fd){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(40,1,fd);try{var stream=SYSCALLS.getStreamFromFD(fd);if(stream.stream_ops&&stream.stream_ops.fsync){return stream.stream_ops.fsync(stream)}return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function _fd_write(fd,iov,iovcnt,pnum){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(41,1,fd,iov,iovcnt,pnum);try{var stream=SYSCALLS.getStreamFromFD(fd);var num=doWritev(stream,iov,iovcnt);GROWABLE_HEAP_U32()[pnum>>2]=num;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}var DOTNET={setup:function setup(linkerSetup){const pthreadReplacements={};const dotnet_replacements={fetch:globalThis.fetch,require:require,updateMemoryViews:updateMemoryViews,pthreadReplacements:pthreadReplacements,scriptDirectory:scriptDirectory,noExitRuntime:noExitRuntime};pthreadReplacements.loadWasmModuleToWorker=PThread.loadWasmModuleToWorker;pthreadReplacements.threadInitTLS=PThread.threadInitTLS;pthreadReplacements.allocateUnusedWorker=PThread.allocateUnusedWorker;Module.__dotnet_runtime.passEmscriptenInternals({isPThread:ENVIRONMENT_IS_PTHREAD,quit_:quit_,ExitStatus:ExitStatus,...linkerSetup});Module.__dotnet_runtime.initializeReplacements(dotnet_replacements);if(ENVIRONMENT_IS_PTHREAD){Module.config={};Module.__dotnet_runtime.configureWorkerStartup(Module)}else{Module.__dotnet_runtime.configureEmscriptenStartup(Module)}updateMemoryViews=dotnet_replacements.updateMemoryViews;noExitRuntime=dotnet_replacements.noExitRuntime;fetch=dotnet_replacements.fetch;require=dotnet_replacements.require;_scriptDir=__dirname=scriptDirectory=dotnet_replacements.scriptDirectory;PThread.loadWasmModuleToWorker=pthreadReplacements.loadWasmModuleToWorker;PThread.threadInitTLS=pthreadReplacements.threadInitTLS;PThread.allocateUnusedWorker=pthreadReplacements.allocateUnusedWorker}};function _mono_wasm_bind_cs_function(){return{runtime_idx:23}}function _mono_wasm_bind_js_function(){return{runtime_idx:20}}function _mono_wasm_change_case(){return{runtime_idx:26}}function _mono_wasm_change_case_invariant(){return{runtime_idx:25}}function _mono_wasm_compare_string(){return{runtime_idx:27}}function _mono_wasm_create_cs_owned_object_ref(){return{runtime_idx:49}}function _mono_wasm_ends_with(){return{runtime_idx:29}}function _mono_wasm_eventloop_has_unsettled_interop_promises(){return{runtime_idx:37}}function _mono_wasm_get_by_index_ref(){return{runtime_idx:46}}function _mono_wasm_get_calendar_info(){return{runtime_idx:31}}function _mono_wasm_get_culture_info(){return{runtime_idx:32}}function _mono_wasm_get_first_day_of_week(){return{runtime_idx:33}}function _mono_wasm_get_first_week_of_year(){return{runtime_idx:34}}function _mono_wasm_get_global_object_ref(){return{runtime_idx:48}}function _mono_wasm_get_object_property_ref(){return{runtime_idx:44}}function _mono_wasm_index_of(){return{runtime_idx:30}}function _mono_wasm_install_js_worker_interop(){return{runtime_idx:41}}function _mono_wasm_invoke_bound_function(){return{runtime_idx:21}}function _mono_wasm_invoke_import(){return{runtime_idx:22}}function _mono_wasm_invoke_js_blazor(){return{runtime_idx:52}}function _mono_wasm_invoke_js_with_args_ref(){return{runtime_idx:43}}function _mono_wasm_marshal_promise(){return{runtime_idx:24}}function _mono_wasm_pthread_on_pthread_attached(){return{runtime_idx:35}}function _mono_wasm_pthread_on_pthread_detached(){return{runtime_idx:36}}function _mono_wasm_release_cs_owned_object(){return{runtime_idx:19}}function _mono_wasm_schedule_timer(){return{runtime_idx:0}}function _mono_wasm_set_by_index_ref(){return{runtime_idx:47}}function _mono_wasm_set_entrypoint_breakpoint(){return{runtime_idx:17}}function _mono_wasm_set_object_property_ref(){return{runtime_idx:45}}function _mono_wasm_starts_with(){return{runtime_idx:28}}function _mono_wasm_trace_logger(){return{runtime_idx:16}}function _mono_wasm_typed_array_from_ref(){return{runtime_idx:51}}function _mono_wasm_typed_array_to_array_ref(){return{runtime_idx:50}}function _mono_wasm_uninstall_js_worker_interop(){return{runtime_idx:42}}function _schedule_background_exec(){return{runtime_idx:6}}function __arraySum(array,index){var sum=0;for(var i=0;i<=index;sum+=array[i++]){}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];function __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()){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{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate}function writeArrayToMemory(array,buffer){GROWABLE_HEAP_I8().set(array,buffer)}function _strftime(s,maxsize,format,tm){var tm_zone=GROWABLE_HEAP_I32()[tm+40>>2];var date={tm_sec:GROWABLE_HEAP_I32()[tm>>2],tm_min:GROWABLE_HEAP_I32()[tm+4>>2],tm_hour:GROWABLE_HEAP_I32()[tm+8>>2],tm_mday:GROWABLE_HEAP_I32()[tm+12>>2],tm_mon:GROWABLE_HEAP_I32()[tm+16>>2],tm_year:GROWABLE_HEAP_I32()[tm+20>>2],tm_wday:GROWABLE_HEAP_I32()[tm+24>>2],tm_yday:GROWABLE_HEAP_I32()[tm+28>>2],tm_isdst:GROWABLE_HEAP_I32()[tm+32>>2],tm_gmtoff:GROWABLE_HEAP_I32()[tm+36>>2],tm_zone:tm_zone?UTF8ToString(tm_zone):""};var pattern=UTF8ToString(format);var EXPANSION_RULES_1={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};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.length0?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:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()-1,11,31);case 6: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){if(compareByDay(firstWeekStartNextYear,thisDate)<=0){return thisDate.getFullYear()+1}return thisDate.getFullYear()}return thisDate.getFullYear()-1}var EXPANSION_RULES_2={"%a":function(date){return WEEKDAYS[date.tm_wday].substring(0,3)},"%A":function(date){return WEEKDAYS[date.tm_wday]},"%b":function(date){return MONTHS[date.tm_mon].substring(0,3)},"%B":function(date){return MONTHS[date.tm_mon]},"%C":function(date){var year=date.tm_year+1900;return leadingNulls(year/100|0,2)},"%d":function(date){return leadingNulls(date.tm_mday,2)},"%e":function(date){return leadingSomething(date.tm_mday,2," ")},"%g":function(date){return getWeekBasedYear(date).toString().substring(2)},"%G":function(date){return getWeekBasedYear(date)},"%H":function(date){return leadingNulls(date.tm_hour,2)},"%I":function(date){var twelveHour=date.tm_hour;if(twelveHour==0)twelveHour=12;else if(twelveHour>12)twelveHour-=12;return leadingNulls(twelveHour,2)},"%j":function(date){return leadingNulls(date.tm_mday+__arraySum(__isLeapYear(date.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,date.tm_mon-1),3)},"%m":function(date){return leadingNulls(date.tm_mon+1,2)},"%M":function(date){return leadingNulls(date.tm_min,2)},"%n":function(){return"\n"},"%p":function(date){if(date.tm_hour>=0&&date.tm_hour<12){return"AM"}return"PM"},"%S":function(date){return leadingNulls(date.tm_sec,2)},"%t":function(){return"\t"},"%u":function(date){return date.tm_wday||7},"%U":function(date){var days=date.tm_yday+7-date.tm_wday;return leadingNulls(Math.floor(days/7),2)},"%V":function(date){var val=Math.floor((date.tm_yday+7-(date.tm_wday+6)%7)/7);if((date.tm_wday+371-date.tm_yday-2)%7<=2){val++}if(!val){val=52;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){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":function(date){return date.tm_wday},"%W":function(date){var days=date.tm_yday+7-(date.tm_wday+6)%7;return leadingNulls(Math.floor(days/7),2)},"%y":function(date){return(date.tm_year+1900).toString().substring(2)},"%Y":function(date){return date.tm_year+1900},"%z":function(date){var off=date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)},"%Z":function(date){return date.tm_zone},"%%":function(){return"%"}};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}function getCFunc(ident){var func=Module["_"+ident];return func}function ccall(ident,returnType,argTypes,args,opts){var toC={"string":str=>{var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=stackAlloc(len);stringToUTF8(str,ret,len)}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;itype==="number"||type==="boolean");var numericRet=returnType!=="string";if(numericRet&&numericArgs&&!opts){return getCFunc(ident)}return function(){return ccall(ident,returnType,argTypes,arguments,opts)}}function uleb128Encode(n,target){if(n<128){target.push(n)}else{target.push(n%128|128,n>>7)}}function sigToWasmTypes(sig){var typeNames={"i":"i32","j":"i32","f":"f32","d":"f64","p":"i32"};var type={parameters:[],results:sig[0]=="v"?[]:[typeNames[sig[0]]]};for(var i=1;i>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(i0){return}if(ENVIRONMENT_IS_PTHREAD){readyPromiseResolve(Module);initRuntime();startWorker(Module);return}preRun();if(runDependencies>0){return}function doRun(){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(); +function GROWABLE_HEAP_I8(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAP8}function GROWABLE_HEAP_U8(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAPU8}function GROWABLE_HEAP_I16(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAP16}function GROWABLE_HEAP_U16(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAPU16}function GROWABLE_HEAP_I32(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAP32}function GROWABLE_HEAP_U32(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAPU32}function GROWABLE_HEAP_F32(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAPF32}function GROWABLE_HEAP_F64(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAPF64}var Module=typeof createDotnetRuntime!="undefined"?createDotnetRuntime:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject});if(_nativeModuleLoaded)throw new Error("Native module already loaded");_nativeModuleLoaded=true;createDotnetRuntime=Module=createDotnetRuntime(Module);Module["getWasmIndirectFunctionTable"]=function(){return wasmTable};Module["getMemory"]=function(){return wasmMemory};var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKER=typeof importScripts=="function";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;var ENVIRONMENT_IS_PTHREAD=Module["ENVIRONMENT_IS_PTHREAD"]||false;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;if(ENVIRONMENT_IS_NODE){const{createRequire:createRequire}=await import("module");var require=createRequire(import.meta.url);var fs=require("fs");var nodePath=require("path");if(ENVIRONMENT_IS_WORKER){scriptDirectory=nodePath.dirname(scriptDirectory)+"/"}else{scriptDirectory=require("url").fileURLToPath(new URL("./",import.meta.url))}read_=(filename,binary)=>{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)=>{filename=isFileURI(filename)?new URL(filename):nodePath.normalize(filename);fs.readFile(filename,function(err,data){if(err)onerror(err);else onload(data.buffer)})};if(process.argv.length>1){thisProgram=process.argv[1].replace(/\\/g,"/")}arguments_=process.argv.slice(2);quit_=(status,toThrow)=>{process.exitCode=status;throw toThrow};Module["inspect"]=function(){return"[Emscripten Module object]"};let nodeWorkerThreads;try{nodeWorkerThreads=require("worker_threads")}catch(e){console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?');throw e}global.Worker=nodeWorkerThreads.Worker}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){return read(f)}}readBinary=function readBinary(f){let data;if(typeof readbuffer=="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data=="object");return data};readAsync=function readAsync(f,onload,onerror){setTimeout(()=>onload(readBinary(f)),0)};if(typeof clearTimeout=="undefined"){globalThis.clearTimeout=id=>{}}if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit=="function"){quit_=(status,toThrow)=>{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"){if(typeof console=="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1)}else{scriptDirectory=""}if(!ENVIRONMENT_IS_NODE){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(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){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=title=>document.title=title}else{}if(ENVIRONMENT_IS_NODE){if(typeof performance=="undefined"){global.performance=require("perf_hooks").performance}}var defaultPrint=console.log.bind(console);var defaultPrintErr=console.warn.bind(console);if(ENVIRONMENT_IS_NODE){defaultPrint=str=>fs.writeSync(1,str+"\n");defaultPrintErr=str=>fs.writeSync(2,str+"\n")}var out=Module["print"]||defaultPrint;var err=Module["printErr"]||defaultPrintErr;Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];var noExitRuntime=Module["noExitRuntime"]||true;if(typeof WebAssembly!="object"){abort("no native wasm support detected")}var wasmMemory;var wasmModule;var ABORT=false;var EXITSTATUS;function assert(condition,text){if(!condition){abort(text)}}function UTF8ArrayToString(heapOrArray,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var str="";while(!(idx>=endIdx)){var u0=heapOrArray[idx++];if(!u0)return str;if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heapOrArray[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heapOrArray[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u0=(u0&7)<<18|u1<<12|u2<<6|heapOrArray[idx++]&63}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(GROWABLE_HEAP_U8(),ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,GROWABLE_HEAP_U8(),outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&c<=57343){len+=4;++i}else{len+=3}}return len}var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAP64,HEAPU64,HEAPF64;function updateMemoryViews(){var b=wasmMemory.buffer;Module["HEAP8"]=HEAP8=new Int8Array(b);Module["HEAP16"]=HEAP16=new Int16Array(b);Module["HEAP32"]=HEAP32=new Int32Array(b);Module["HEAPU8"]=HEAPU8=new Uint8Array(b);Module["HEAPU16"]=HEAPU16=new Uint16Array(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)}var INITIAL_MEMORY=Module["INITIAL_MEMORY"]||45940736;assert(INITIAL_MEMORY>=5242880,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+INITIAL_MEMORY+"! (STACK_SIZE="+5242880+")");if(ENVIRONMENT_IS_PTHREAD){wasmMemory=Module["wasmMemory"]}else{if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":2147483648/65536,"shared":true});if(!(wasmMemory.buffer instanceof SharedArrayBuffer)){err("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag");if(ENVIRONMENT_IS_NODE){err("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)")}throw Error("bad memory")}}}updateMemoryViews();INITIAL_MEMORY=wasmMemory.buffer.byteLength;var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeKeepaliveCounter=0;function keepRuntimeAlive(){return noExitRuntime||runtimeKeepaliveCounter>0}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(ENVIRONMENT_IS_PTHREAD)return;if(!Module["noFSInit"]&&!FS.init.initialized)FS.init();FS.ignorePermissions=false;TTY.init();SOCKFS.root=FS.mount(SOCKFS,{},null);callRuntimeCallbacks(__ATINIT__)}function postRun(){if(ENVIRONMENT_IS_PTHREAD)return;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 addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){if(Module["onAbort"]){Module["onAbort"](what)}what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -sASSERTIONS for more info.";if(runtimeInitialized){___trap()}var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith("file://")}var wasmBinaryFile;if(Module["locateFile"]){wasmBinaryFile="dotnet.native.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}}else{wasmBinaryFile=new URL("dotnet.native.wasm",import.meta.url).href}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw"both async and sync fetching of the wasm failed"}catch(err){abort(err)}}function getBinaryPromise(binaryFile){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch=="function"&&!isFileURI(binaryFile)){return fetch(binaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+binaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary(binaryFile)})}else{if(readAsync){return new Promise(function(resolve,reject){readAsync(binaryFile,function(response){resolve(new Uint8Array(response))},reject)})}}}return Promise.resolve().then(function(){return getBinary(binaryFile)})}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(function(binary){return WebAssembly.instantiate(binary,imports)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(binaryFile)&&!isFileURI(binaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function"){return fetch(binaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(binaryFile,imports,callback)})})}else{return instantiateArrayBuffer(binaryFile,imports,callback)}}function createWasm(){var info={"env":wasmImports,"wasi_snapshot_preview1":wasmImports};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;registerTLSInit(Module["asm"]["_emscripten_tls_init"]);wasmTable=Module["asm"]["__indirect_function_table"];addOnInit(Module["asm"]["__wasm_call_ctors"]);wasmModule=module;PThread.loadWasmModuleToAllWorkers(()=>removeRunDependency("wasm-instantiate"));return exports}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"],result["module"])}if(Module["instantiateWasm"]){try{return Module["instantiateWasm"](info,receiveInstance)}catch(e){err("Module.instantiateWasm callback failed with error: "+e);readyPromiseReject(e)}}instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult).catch(readyPromiseReject);return{}}var tempDouble;var tempI64;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}function terminateWorker(worker){worker.terminate();worker.onmessage=e=>{}}function killThread(pthread_ptr){var worker=PThread.pthreads[pthread_ptr];delete PThread.pthreads[pthread_ptr];terminateWorker(worker);__emscripten_thread_free_data(pthread_ptr);PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(worker),1);worker.pthread_ptr=0}function cancelThread(pthread_ptr){var worker=PThread.pthreads[pthread_ptr];worker.postMessage({"cmd":"cancel"})}function cleanupThread(pthread_ptr){var worker=PThread.pthreads[pthread_ptr];assert(worker);PThread.returnWorkerToPool(worker)}function zeroMemory(address,size){GROWABLE_HEAP_U8().fill(0,address,address+size);return address}function spawnThread(threadParams){var worker=PThread.getNewWorker();if(!worker){return 6}PThread.runningWorkers.push(worker);PThread.pthreads[threadParams.pthread_ptr]=worker;worker.pthread_ptr=threadParams.pthread_ptr;var msg={"cmd":"run","start_routine":threadParams.startRoutine,"arg":threadParams.arg,"pthread_ptr":threadParams.pthread_ptr};if(ENVIRONMENT_IS_NODE){worker.ref()}worker.postMessage(msg,threadParams.transferList);return 0}var PATH={isAbs:path=>path.charAt(0)==="/",splitPath:filename=>{var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:(parts,allowAboveRoot)=>{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(allowAboveRoot){for(;up;up--){parts.unshift("..")}}return parts},normalize:path=>{var isAbsolute=PATH.isAbs(path),trailingSlash=path.substr(-1)==="/";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){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:path=>{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:function(){var paths=Array.prototype.slice.call(arguments);return PATH.normalize(paths.join("/"))},join2:(l,r)=>{return PATH.normalize(l+"/"+r)}};function getRandomDevice(){if(typeof crypto=="object"&&typeof crypto["getRandomValues"]=="function"){var randomBuffer=new Uint8Array(1);return()=>{crypto.getRandomValues(randomBuffer);return randomBuffer[0]}}else if(ENVIRONMENT_IS_NODE){try{var crypto_module=require("crypto");return()=>crypto_module["randomBytes"](1)[0]}catch(e){}}return()=>abort("randomDevice")}var PATH_FS={resolve:function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=PATH.isAbs(path)}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=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;i0?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 TTY={ttys:[],init:function(){},shutdown:function(){},register:function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops};FS.registerDevice(dev,TTY.stream_ops)},stream_ops:{open:function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(43)}stream.tty=tty;stream.seekable=false},close:function(stream){stream.tty.ops.fsync(stream.tty)},fsync:function(stream){stream.tty.ops.fsync(stream.tty)},read:function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(60)}var bytesRead=0;for(var i=0;i0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()},put_char:function(tty,val){if(val===null||val===10){out(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},fsync:function(tty){if(tty.output&&tty.output.length>0){out(UTF8ArrayToString(tty.output,0));tty.output=[]}}},default_tty1_ops:{put_char:function(tty,val){if(val===null||val===10){err(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},fsync:function(tty){if(tty.output&&tty.output.length>0){err(UTF8ArrayToString(tty.output,0));tty.output=[]}}}};function alignMemory(size,alignment){return Math.ceil(size/alignment)*alignment}function 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:function(mount){return MEMFS.createNode(null,"/",16384|511,0)},createNode:function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(63)}if(!MEMFS.ops_table){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;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();if(parent){parent.contents[name]=node;parent.timestamp=node.timestamp}return node},getFileDataAsTypedArray:function(node){if(!node.contents)return new Uint8Array(0);if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)},expandFileStorage:function(node,newCapacity){var prevCapacity=node.contents?node.contents.length:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity>>0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0)},resizeFileStorage:function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0}else{var oldContents=node.contents;node.contents=new Uint8Array(newSize);if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize}},node_ops:{getattr:function(node){var attr={};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);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr},setattr:function(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:function(parent,name){throw FS.genericErrors[44]},mknod:function(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)},rename:function(old_node,new_dir,new_name){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)}}}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:function(parent,name){delete parent.contents[name];parent.timestamp=Date.now()},rmdir:function(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:function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries},symlink:function(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node},readlink:function(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(28)}return node.link}},stream_ops:{read:function(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){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i0||position+length{assert(arrayBuffer,'Loading data file "'+url+'" failed (no 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={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,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){throw new FS.ErrnoError(32)}var parts=path.split("/").filter(p=>!!p);var current=FS.root;var current_path="/";for(var i=0;i40){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>>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,parent)}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}}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},flagModes:{"r":0,"r+":2,"w":577,"w+":578,"a":1089,"a+":1090},modeStringToFlags:str=>{var flags=FS.flagModes[str];if(typeof flags=="undefined"){throw new Error("Unknown file open mode: "+str)}return flags},flagsToPermissionString:flag=>{var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms},nodePermissions:(node,perms)=>{if(FS.ignorePermissions){return 0}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=>{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"||flags&512){return 31}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))},MAX_OPEN_FDS:4096,nextfd:(fd_start=0,fd_end=FS.MAX_OPEN_FDS)=>{for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(33)},getStream:fd=>FS.streams[fd],createStream:(stream,fd_start,fd_end)=>{if(!FS.FSStream){FS.FSStream=function(){this.shared={}};FS.FSStream.prototype={};Object.defineProperties(FS.FSStream.prototype,{object:{get:function(){return this.node},set:function(val){this.node=val}},isRead:{get:function(){return(this.flags&2097155)!==1}},isWrite:{get:function(){return(this.flags&2097155)!==0}},isAppend:{get:function(){return this.flags&1024}},flags:{get:function(){return this.shared.flags},set:function(val){this.shared.flags=val}},position:{get:function(){return this.shared.position},set:function(val){this.shared.position=val}}})}stream=Object.assign(new FS.FSStream,stream);var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream},closeStream:fd=>{FS.streams[fd]=null},chrdev_stream_ops:{open:stream=>{var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}},llseek:()=>{throw new FS.ErrnoError(70)}},major:dev=>dev>>8,minor:dev=>dev&255,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.apply(check,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)}}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;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:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;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)}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}});node.mounted=null;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;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)},mkdir:(path,mode)=>{mode=mode!==undefined?mode:511;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{if(typeof dev=="undefined"){dev=mode;mode=438}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);var lookup,old_dir,new_dir;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);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(75)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH_FS.relative(old_path,new_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(28)}relative=PATH_FS.relative(new_path,old_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(55)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var errCode=FS.mayDelete(old_dir,old_name,isdir);if(errCode){throw new FS.ErrnoError(errCode)}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(new_dir!==old_dir){errCode=FS.nodePermissions(old_dir,"w");if(errCode){throw new FS.ErrnoError(errCode)}}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name)}catch(e){throw e}finally{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){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.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}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()})},lchown:(path,uid,gid)=>{FS.chown(path,uid,gid,true)},fchown:(fd,uid,gid)=>{var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}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.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}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: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){}}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(20)}}else{node=FS.mknod(path,mode,0);created=true}}if(!node){throw new FS.ErrnoError(44)}if(FS.isChrdev(node.mode)){flags&=~512}if(flags&65536&&!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}if(!created){var errCode=FS.mayOpen(node,flags);if(errCode){throw new FS.ErrnoError(errCode)}}if(flags&512&&!created){FS.truncate(node,0)}flags&=~(128|512|131072);var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false});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;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){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)=>{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)},munmap:stream=>0,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:()=>{FS.mkdir("/dev");FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(stream,buffer,offset,length,pos)=>length});FS.mkdev("/dev/null",FS.makedev(1,3));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));var random_device=getRandomDevice();FS.createDevice("/dev","random",random_device);FS.createDevice("/dev","urandom",random_device);FS.mkdir("/dev/shm");FS.mkdir("/dev/shm/tmp")},createSpecialDirectories:()=>{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,73);node.node_ops={lookup:(parent,name)=>{var fd=+name;var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);var ret={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>stream.path}};ret.parent=ret;return ret}};return node}},{},"/proc/self/fd")},createStandardStreams:()=>{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")}var stdin=FS.open("/dev/stdin",0);var stdout=FS.open("/dev/stdout",1);var stderr=FS.open("/dev/stderr",1)},ensureErrnoError:()=>{if(FS.ErrnoError)return;FS.ErrnoError=function ErrnoError(errno,node){this.name="ErrnoError";this.node=node;this.setErrno=function(errno){this.errno=errno};this.setErrno(errno);this.message="FS error"};FS.ErrnoError.prototype=new Error;FS.ErrnoError.prototype.constructor=FS.ErrnoError;[44].forEach(code=>{FS.genericErrors[code]=new FS.ErrnoError(code);FS.genericErrors[code].stack=""})},staticInit:()=>{FS.ensureErrnoError();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;FS.ensureErrnoError();Module["stdin"]=input||Module["stdin"];Module["stdout"]=output||Module["stdout"];Module["stderr"]=error||Module["stderr"];FS.createStandardStreams()},quit:()=>{FS.init.initialized=false;for(var i=0;i{var mode=0;if(canRead)mode|=292|73;if(canWrite)mode|=146;return mode},findObject:(path,dontResolveLastLink)=>{var ret=FS.analyzePath(path,dontResolveLastLink);if(!ret.exists){return null}return ret.object},analyzePath:(path,dontResolveLastLink)=>{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){}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{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);FS.registerDevice(dev,{open:stream=>{stream.seekable=false},close:stream=>{if(output&&output.buffer&&output.buffer.length){output(10)}},read:(stream,buffer,offset,length,pos)=>{var bytesRead=0;for(var i=0;i{for(var i=0;i{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_){try{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)=>{function LazyUint8Array(){this.lengthKnown=false;this.chunks=[]}LazyUint8Array.prototype.get=function LazyUint8Array_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]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){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;if(!hasByteServing)chunkSize=datalength;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!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);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(xhr.response||[])}return intArrayFromString(xhr.responseText||"",true)};var lazyArray=this;lazyArray.setDataGetter(chunkNum=>{var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);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){chunkSize=datalength=1;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};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;Object.defineProperties(lazyArray,{length:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._length}},chunkSize:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize}}});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:function(){return this.contents.length}}});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach(key=>{var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){FS.forceLoadFile(node);return fn.apply(null,arguments)}});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){for(var i=0;i{FS.forceLoadFile(node);return writeChunks(stream,buffer,offset,length,position)};stream_ops.mmap=(stream,length,position,prot,flags)=>{FS.forceLoadFile(node);var ptr=mmapAlloc(length);if(!ptr){throw new FS.ErrnoError(48)}writeChunks(stream,GROWABLE_HEAP_I8(),ptr,length,position);return{ptr:ptr,allocated:true}};node.stream_ops=stream_ops;return node},createPreloadedFile:(parent,name,url,canRead,canWrite,onload,onerror,dontCreateFile,canOwn,preFinish)=>{var fullname=name?PATH_FS.resolve(PATH.join2(parent,name)):parent;var dep=getUniqueRunDependency("cp "+fullname);function processData(byteArray){function finish(byteArray){if(preFinish)preFinish();if(!dontCreateFile){FS.createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}if(onload)onload();removeRunDependency(dep)}if(Browser.handledByPreloadPlugin(byteArray,fullname,finish,()=>{if(onerror)onerror();removeRunDependency(dep)})){return}finish(byteArray)}addRunDependency(dep);if(typeof url=="string"){asyncLoad(url,byteArray=>processData(byteArray),onerror)}else{processData(url)}},indexedDB:()=>{return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:()=>{return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(paths,onload=(()=>{}),onerror=(()=>{}))=>{var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=()=>{out("creating db");var db=openRequest.result;db.createObjectStore(FS.DB_STORE_NAME)};openRequest.onsuccess=()=>{var db=openRequest.result;var transaction=db.transaction([FS.DB_STORE_NAME],"readwrite");var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach(path=>{var putRequest=files.put(FS.analyzePath(path).object.contents,path);putRequest.onsuccess=()=>{ok++;if(ok+fail==total)finish()};putRequest.onerror=()=>{fail++;if(ok+fail==total)finish()}});transaction.onerror=onerror};openRequest.onerror=onerror},loadFilesFromDB:(paths,onload=(()=>{}),onerror=(()=>{}))=>{var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=onerror;openRequest.onsuccess=()=>{var db=openRequest.result;try{var transaction=db.transaction([FS.DB_STORE_NAME],"readonly")}catch(e){onerror(e);return}var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach(path=>{var getRequest=files.get(path);getRequest.onsuccess=()=>{if(FS.analyzePath(path).exists){FS.unlink(path)}FS.createDataFile(PATH.dirname(path),PATH.basename(path),getRequest.result,true,true,true);ok++;if(ok+fail==total)finish()};getRequest.onerror=()=>{fail++;if(ok+fail==total)finish()}});transaction.onerror=onerror};openRequest.onerror=onerror}};var SYSCALLS={DEFAULT_POLLMASK:5,calculateAt:function(dirfd,path,allowEmpty){if(PATH.isAbs(path)){return 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:function(func,path,buf){try{var stat=func(path)}catch(e){if(e&&e.node&&PATH.normalize(path)!==PATH.normalize(FS.getPath(e.node))){return-54}throw e}GROWABLE_HEAP_I32()[buf>>2]=stat.dev;GROWABLE_HEAP_I32()[buf+8>>2]=stat.ino;GROWABLE_HEAP_I32()[buf+12>>2]=stat.mode;GROWABLE_HEAP_U32()[buf+16>>2]=stat.nlink;GROWABLE_HEAP_I32()[buf+20>>2]=stat.uid;GROWABLE_HEAP_I32()[buf+24>>2]=stat.gid;GROWABLE_HEAP_I32()[buf+28>>2]=stat.rdev;tempI64=[stat.size>>>0,(tempDouble=stat.size,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[buf+40>>2]=tempI64[0],GROWABLE_HEAP_I32()[buf+44>>2]=tempI64[1];GROWABLE_HEAP_I32()[buf+48>>2]=4096;GROWABLE_HEAP_I32()[buf+52>>2]=stat.blocks;var atime=stat.atime.getTime();var mtime=stat.mtime.getTime();var ctime=stat.ctime.getTime();tempI64=[Math.floor(atime/1e3)>>>0,(tempDouble=Math.floor(atime/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[buf+56>>2]=tempI64[0],GROWABLE_HEAP_I32()[buf+60>>2]=tempI64[1];GROWABLE_HEAP_U32()[buf+64>>2]=atime%1e3*1e3;tempI64=[Math.floor(mtime/1e3)>>>0,(tempDouble=Math.floor(mtime/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[buf+72>>2]=tempI64[0],GROWABLE_HEAP_I32()[buf+76>>2]=tempI64[1];GROWABLE_HEAP_U32()[buf+80>>2]=mtime%1e3*1e3;tempI64=[Math.floor(ctime/1e3)>>>0,(tempDouble=Math.floor(ctime/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[buf+88>>2]=tempI64[0],GROWABLE_HEAP_I32()[buf+92>>2]=tempI64[1];GROWABLE_HEAP_U32()[buf+96>>2]=ctime%1e3*1e3;tempI64=[stat.ino>>>0,(tempDouble=stat.ino,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[buf+104>>2]=tempI64[0],GROWABLE_HEAP_I32()[buf+108>>2]=tempI64[1];return 0},doMsync:function(addr,stream,len,flags,offset){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(43)}if(flags&2){return 0}var buffer=GROWABLE_HEAP_U8().slice(addr,addr+len);FS.msync(stream,buffer,offset,len,flags)},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=GROWABLE_HEAP_I32()[SYSCALLS.varargs-4>>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},getStreamFromFD:function(fd){var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);return stream}};function _proc_exit(code){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(1,1,code);EXITSTATUS=code;if(!keepRuntimeAlive()){PThread.terminateAllThreads();if(Module["onExit"])Module["onExit"](code);ABORT=true}quit_(code,new ExitStatus(code))}function exitJS(status,implicit){EXITSTATUS=status;if(ENVIRONMENT_IS_PTHREAD){exitOnMainThread(status);throw"unwind"}_proc_exit(status)}var _exit=exitJS;function handleException(e){if(e instanceof ExitStatus||e=="unwind"){return EXITSTATUS}quit_(1,e)}var PThread={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init:function(){if(ENVIRONMENT_IS_PTHREAD){PThread.initWorker()}else{PThread.initMainThread()}},initMainThread:function(){},initWorker:function(){noExitRuntime=false},setExitStatus:function(status){EXITSTATUS=status},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:function(){for(var worker of PThread.runningWorkers){terminateWorker(worker)}for(var worker of PThread.unusedWorkers){terminateWorker(worker)}PThread.unusedWorkers=[];PThread.runningWorkers=[];PThread.pthreads=[]},returnWorkerToPool:function(worker){var pthread_ptr=worker.pthread_ptr;delete PThread.pthreads[pthread_ptr];PThread.unusedWorkers.push(worker);PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(worker),1);worker.pthread_ptr=0;if(ENVIRONMENT_IS_NODE){worker.unref()}__emscripten_thread_free_data(pthread_ptr)},receiveObjectTransfer:function(data){},threadInitTLS:function(){PThread.tlsInitFunctions.forEach(f=>f())},loadWasmModuleToWorker:worker=>new Promise(onFinishedLoading=>{worker.onmessage=e=>{var d=e["data"];var cmd=d["cmd"];if(worker.pthread_ptr)PThread.currentProxiedOperationCallerThread=worker.pthread_ptr;if(d["targetThread"]&&d["targetThread"]!=_pthread_self()){var targetWorker=PThread.pthreads[d.targetThread];if(targetWorker){targetWorker.postMessage(d,d["transferList"])}else{err('Internal error! Worker sent a message "'+cmd+'" to target pthread '+d["targetThread"]+", but that thread no longer exists!")}PThread.currentProxiedOperationCallerThread=undefined;return}if(cmd==="checkMailbox"){checkMailbox()}else if(cmd==="spawnThread"){spawnThread(d)}else if(cmd==="cleanupThread"){cleanupThread(d["thread"])}else if(cmd==="killThread"){killThread(d["thread"])}else if(cmd==="cancelThread"){cancelThread(d["thread"])}else if(cmd==="loaded"){worker.loaded=true;if(ENVIRONMENT_IS_NODE&&!worker.pthread_ptr){worker.unref()}onFinishedLoading(worker)}else if(cmd==="print"){out("Thread "+d["threadId"]+": "+d["text"])}else if(cmd==="printErr"){err("Thread "+d["threadId"]+": "+d["text"])}else if(cmd==="alert"){alert("Thread "+d["threadId"]+": "+d["text"])}else if(d.target==="setimmediate"){worker.postMessage(d)}else if(cmd==="callHandler"){Module[d["handler"]](...d["args"])}else if(cmd){err("worker sent an unknown command "+cmd)}PThread.currentProxiedOperationCallerThread=undefined};worker.onerror=e=>{var message="worker sent an error!";err(message+" "+e.filename+":"+e.lineno+": "+e.message);throw e};if(ENVIRONMENT_IS_NODE){worker.on("message",function(data){worker.onmessage({data:data})});worker.on("error",function(e){worker.onerror(e)});worker.on("detachedExit",function(){})}var handlers=[];var knownHandlers=["onExit","onAbort","print","printErr"];for(var handler of knownHandlers){if(Module.hasOwnProperty(handler)){handlers.push(handler)}}worker.postMessage({"cmd":"load","handlers":handlers,"urlOrBlob":Module["mainScriptUrlOrBlob"],"wasmMemory":wasmMemory,"wasmModule":wasmModule})}),loadWasmModuleToAllWorkers:function(onMaybeReady){onMaybeReady()},allocateUnusedWorker:function(){var worker;if(!Module["locateFile"]){worker=new Worker(new URL("dotnet.native.worker.js",import.meta.url))}else{var pthreadMainJs=locateFile("dotnet.native.worker.js");worker=new Worker(pthreadMainJs)}PThread.unusedWorkers.push(worker)},getNewWorker:function(){if(PThread.unusedWorkers.length==0){if(!ENVIRONMENT_IS_NODE){return}PThread.allocateUnusedWorker();PThread.loadWasmModuleToWorker(PThread.unusedWorkers[0])}return PThread.unusedWorkers.pop()}};Module["PThread"]=PThread;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){callbacks.shift()(Module)}}function establishStackSpace(){var pthread_ptr=_pthread_self();var stackTop=GROWABLE_HEAP_I32()[pthread_ptr+52>>2];var stackSize=GROWABLE_HEAP_I32()[pthread_ptr+56>>2];var stackMax=stackTop-stackSize;_emscripten_stack_set_limits(stackTop,stackMax);stackRestore(stackTop)}Module["establishStackSpace"]=establishStackSpace;function exitOnMainThread(returnCode){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(2,0,returnCode);_exit(returnCode)}function getValue(ptr,type="i8"){if(type.endsWith("*"))type="*";switch(type){case"i1":return GROWABLE_HEAP_I8()[ptr>>0];case"i8":return GROWABLE_HEAP_I8()[ptr>>0];case"i16":return GROWABLE_HEAP_I16()[ptr>>1];case"i32":return GROWABLE_HEAP_I32()[ptr>>2];case"i64":return HEAP64[ptr>>3];case"float":return GROWABLE_HEAP_F32()[ptr>>2];case"double":return GROWABLE_HEAP_F64()[ptr>>3];case"*":return GROWABLE_HEAP_U32()[ptr>>2];default:abort("invalid type for getValue: "+type)}}var wasmTableMirror=[];function getWasmTableEntry(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func}function invokeEntryPoint(ptr,arg){var result=getWasmTableEntry(ptr)(arg);if(keepRuntimeAlive()){PThread.setExitStatus(result)}else{__emscripten_thread_exit(result)}}Module["invokeEntryPoint"]=invokeEntryPoint;function registerTLSInit(tlsInitFunc){PThread.tlsInitFunctions.push(tlsInitFunc)}function setValue(ptr,value,type="i8"){if(type.endsWith("*"))type="*";switch(type){case"i1":GROWABLE_HEAP_I8()[ptr>>0]=value;break;case"i8":GROWABLE_HEAP_I8()[ptr>>0]=value;break;case"i16":GROWABLE_HEAP_I16()[ptr>>1]=value;break;case"i32":GROWABLE_HEAP_I32()[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[ptr>>2]=tempI64[0],GROWABLE_HEAP_I32()[ptr+4>>2]=tempI64[1];break;case"float":GROWABLE_HEAP_F32()[ptr>>2]=value;break;case"double":GROWABLE_HEAP_F64()[ptr>>3]=value;break;case"*":GROWABLE_HEAP_U32()[ptr>>2]=value;break;default:abort("invalid type for setValue: "+type)}}function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"])}function ___emscripten_init_main_thread_js(tb){__emscripten_thread_init(tb,!ENVIRONMENT_IS_WORKER,1,!ENVIRONMENT_IS_WEB);PThread.threadInitTLS()}function ___emscripten_thread_cleanup(thread){if(!ENVIRONMENT_IS_PTHREAD)cleanupThread(thread);else postMessage({"cmd":"cleanupThread","thread":thread})}function pthreadCreateProxied(pthread_ptr,attr,startRoutine,arg){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(3,1,pthread_ptr,attr,startRoutine,arg);return ___pthread_create_js(pthread_ptr,attr,startRoutine,arg)}function ___pthread_create_js(pthread_ptr,attr,startRoutine,arg){if(typeof SharedArrayBuffer=="undefined"){err("Current environment does not support SharedArrayBuffer, pthreads are not available!");return 6}var transferList=[];var error=0;if(ENVIRONMENT_IS_PTHREAD&&(transferList.length===0||error)){return pthreadCreateProxied(pthread_ptr,attr,startRoutine,arg)}if(error)return error;var threadParams={startRoutine:startRoutine,pthread_ptr:pthread_ptr,arg:arg,transferList:transferList};if(ENVIRONMENT_IS_PTHREAD){threadParams.cmd="spawnThread";postMessage(threadParams,transferList);return 0}return spawnThread(threadParams)}function ___syscall_chdir(path){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(4,1,path);try{path=SYSCALLS.getStr(path);FS.chdir(path);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_chmod(path,mode){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(5,1,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:function(mount){Module["websocket"]=Module["websocket"]&&"object"===typeof Module["websocket"]?Module["websocket"]:{};Module["websocket"]._callbacks={};Module["websocket"]["on"]=function(event,callback){if("function"===typeof callback){this._callbacks[event]=callback}return this};Module["websocket"].emit=function(event,param){if("function"===typeof this._callbacks[event]){this._callbacks[event].call(this,param)}};return FS.createNode(null,"/",16384|511,0)},createSocket:function(family,type,protocol){type&=~526336;var streaming=type==1;if(streaming&&protocol&&protocol!=6){throw new FS.ErrnoError(66)}var sock={family:family,type:type,protocol:protocol,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops};var name=SOCKFS.nextname();var node=FS.createNode(SOCKFS.root,name,49152,0);node.sock=sock;var stream=FS.createStream({path:name,node:node,flags:2,seekable:false,stream_ops:SOCKFS.stream_ops});sock.stream=stream;return sock},getSocket:function(fd){var stream=FS.getStream(fd);if(!stream||!FS.isSocket(stream.node.mode)){return null}return stream.node.sock},stream_ops:{poll:function(stream){var sock=stream.node.sock;return sock.sock_ops.poll(sock)},ioctl:function(stream,request,varargs){var sock=stream.node.sock;return sock.sock_ops.ioctl(sock,request,varargs)},read:function(stream,buffer,offset,length,position){var sock=stream.node.sock;var msg=sock.sock_ops.recvmsg(sock,length);if(!msg){return 0}buffer.set(msg.buffer,offset);return msg.buffer.length},write:function(stream,buffer,offset,length,position){var sock=stream.node.sock;return sock.sock_ops.sendmsg(sock,buffer,offset,length)},close:function(stream){var sock=stream.node.sock;sock.sock_ops.close(sock)}},nextname:function(){if(!SOCKFS.nextname.current){SOCKFS.nextname.current=0}return"socket["+SOCKFS.nextname.current+++"]"},websocket_sock_ops:{createPeer:function(sock,addr,port){var ws;if(typeof addr=="object"){ws=addr;addr=null;port=null}if(ws){if(ws._socket){addr=ws._socket.remoteAddress;port=ws._socket.remotePort}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{try{var runtimeConfig=Module["websocket"]&&"object"===typeof Module["websocket"];var url="ws:#".replace("#","//");if(runtimeConfig){if("string"===typeof Module["websocket"]["url"]){url=Module["websocket"]["url"]}}if(url==="ws://"||url==="wss://"){var parts=addr.split("/");url=url+parts[0]+":"+port+"/"+parts.slice(1).join("/")}var subProtocols="binary";if(runtimeConfig){if("string"===typeof Module["websocket"]["subprotocol"]){subProtocols=Module["websocket"]["subprotocol"]}}var opts=undefined;if(subProtocols!=="null"){subProtocols=subProtocols.replace(/^ +| +$/g,"").split(/ *, */);opts=subProtocols}if(runtimeConfig&&null===Module["websocket"]["subprotocol"]){subProtocols="null";opts=undefined}var WebSocketConstructor;if(ENVIRONMENT_IS_NODE){WebSocketConstructor=require("ws")}else{WebSocketConstructor=WebSocket}ws=new WebSocketConstructor(url,opts);ws.binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(23)}}var peer={addr:addr,port:port,socket:ws,dgram_send_queue:[]};SOCKFS.websocket_sock_ops.addPeer(sock,peer);SOCKFS.websocket_sock_ops.handlePeerEvents(sock,peer);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&65280)>>8,sock.sport&255]))}return peer},getPeer:function(sock,addr,port){return sock.peers[addr+":"+port]},addPeer:function(sock,peer){sock.peers[peer.addr+":"+peer.port]=peer},removePeer:function(sock,peer){delete sock.peers[peer.addr+":"+peer.port]},handlePeerEvents:function(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){peer.socket.close()}};function handleMessage(data){if(typeof data=="string"){var encoder=new TextEncoder;data=encoder.encode(data)}else{assert(data.byteLength!==undefined);if(data.byteLength==0){return}data=new Uint8Array(data)}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)){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)});peer.socket.on("close",function(){Module["websocket"].emit("close",sock.stream.fd)});peer.socket.on("error",function(error){sock.error=14;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])})}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){sock.error=14;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])}}},poll:function(sock){if(sock.type===1&&sock.server){return sock.pending.length?64|1:0}var mask=0;var dest=sock.type===1?SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport):null;if(sock.recv_queue.length||!dest||dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=64|1}if(!dest||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:function(sock,request,arg){switch(request){case 21531:var bytes=0;if(sock.recv_queue.length){bytes=sock.recv_queue[0].data.length}GROWABLE_HEAP_I32()[arg>>2]=bytes;return 0;default:return 28}},close:function(sock){if(sock.server){try{sock.server.close()}catch(e){}sock.server=null}var peers=Object.keys(sock.peers);for(var i=0;i>2]=value;return value}function inetNtop4(addr){return(addr&255)+"."+(addr>>8&255)+"."+(addr>>16&255)+"."+(addr>>24&255)}function inetNtop6(ints){var str="";var word=0;var longest=0;var lastzero=0;var zstart=0;var len=0;var i=0;var parts=[ints[0]&65535,ints[0]>>16,ints[1]&65535,ints[1]>>16,ints[2]&65535,ints[2]>>16,ints[3]&65535,ints[3]>>16];var hasipv4=true;var v4part="";for(i=0;i<5;i++){if(parts[i]!==0){hasipv4=false;break}}if(hasipv4){v4part=inetNtop4(parts[6]|parts[7]<<16);if(parts[5]===-1){str="::ffff:";str+=v4part;return str}if(parts[5]===0){str="::";if(v4part==="0.0.0.0")v4part="";if(v4part==="0.0.0.1")v4part="1";str+=v4part;return str}}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){if(parts[word]===0&&word>=zstart&&word>1];var port=_ntohs(GROWABLE_HEAP_U16()[sa+2>>1]);var addr;switch(family){case 2:if(salen!==16){return{errno:28}}addr=GROWABLE_HEAP_I32()[sa+4>>2];addr=inetNtop4(addr);break;case 10:if(salen!==28){return{errno:28}}addr=[GROWABLE_HEAP_I32()[sa+8>>2],GROWABLE_HEAP_I32()[sa+12>>2],GROWABLE_HEAP_I32()[sa+16>>2],GROWABLE_HEAP_I32()[sa+20>>2]];addr=inetNtop6(addr);break;default:return{errno:5}}return{family:family,addr:addr,port:port}}function 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}function jstoi_q(str){return parseInt(str)}function inetPton6(str){var words;var w,offset,z;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]}if(str.startsWith("::")){str=str.replace("::","Z:")}else{str=str.replace("::",":Z:")}if(str.indexOf(".")>0){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>1]=2;return 0}case 6:case 7:return 0;case 16:case 8:return-28;case 9:setErrNo(28);return-1;default:{return-28}}}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_fstat64(fd,buf){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(10,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(12,1,path,size,buf);try{path=SYSCALLS.getStr(path);GROWABLE_HEAP_I32()[buf+4>>2]=4096;GROWABLE_HEAP_I32()[buf+40>>2]=4096;GROWABLE_HEAP_I32()[buf+8>>2]=1e6;GROWABLE_HEAP_I32()[buf+12>>2]=5e5;GROWABLE_HEAP_I32()[buf+16>>2]=5e5;GROWABLE_HEAP_I32()[buf+20>>2]=FS.nextInode;GROWABLE_HEAP_I32()[buf+24>>2]=1e6;GROWABLE_HEAP_I32()[buf+28>>2]=42;GROWABLE_HEAP_I32()[buf+44>>2]=2;GROWABLE_HEAP_I32()[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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(11,1,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;function bigintToI53Checked(num){return numMAX_INT53?NaN:Number(num)}function ___syscall_ftruncate64(fd,length){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(13,1,fd,length);try{length=bigintToI53Checked(length);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}}function ___syscall_getcwd(buf,size){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(14,1,buf,size);try{if(size===0)return-28;var cwd=FS.cwd();var cwdLengthInBytes=lengthBytesUTF8(cwd)+1;if(size>>0,(tempDouble=id,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[dirp+pos>>2]=tempI64[0],GROWABLE_HEAP_I32()[dirp+pos+4>>2]=tempI64[1];tempI64=[(idx+1)*struct_size>>>0,(tempDouble=(idx+1)*struct_size,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[dirp+pos+8>>2]=tempI64[0],GROWABLE_HEAP_I32()[dirp+pos+12>>2]=tempI64[1];GROWABLE_HEAP_I16()[dirp+pos+16>>1]=280;GROWABLE_HEAP_I8()[dirp+pos+18>>0]=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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(16,1,fd,op,varargs);SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(fd);switch(op){case 21509:case 21505:{if(!stream.tty)return-59;return 0}case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:{if(!stream.tty)return-59;return 0}case 21519:{if(!stream.tty)return-59;var argp=SYSCALLS.get();GROWABLE_HEAP_I32()[argp>>2]=0;return 0}case 21520:{if(!stream.tty)return-59;return-28}case 21531:{var argp=SYSCALLS.get();return FS.ioctl(stream,op,argp)}case 21523:{if(!stream.tty)return-59;return 0}case 21524:{if(!stream.tty)return-59;return 0}default:return-28}}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function ___syscall_lstat64(path,buf){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(17,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(18,1,dirfd,path,mode);try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(19,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(20,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(21,1,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=GROWABLE_HEAP_I8()[buf+len];stringToUTF8(ret,buf,bufsize+1);GROWABLE_HEAP_I8()[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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(22,1,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_rmdir(path){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(23,1,path);try{path=SYSCALLS.getStr(path);FS.rmdir(path);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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(24,1,fd,message,length,flags,addr,addr_len);try{var sock=getSocketFromFD(fd);var dest=getSocketAddress(addr,addr_len,true);if(!dest){return FS.write(sock.stream,GROWABLE_HEAP_I8(),message,length)}return sock.sock_ops.sendmsg(sock,GROWABLE_HEAP_I8(),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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(25,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(26,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(27,1,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}}function readI53FromI64(ptr){return GROWABLE_HEAP_U32()[ptr>>2]+GROWABLE_HEAP_I32()[ptr+4>>2]*4294967296}function ___syscall_utimensat(dirfd,path,times,flags){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(28,1,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=GROWABLE_HEAP_I32()[times+8>>2];atime=seconds*1e3+nanoseconds/(1e3*1e3);times+=16;seconds=readI53FromI64(times);nanoseconds=GROWABLE_HEAP_I32()[times+8>>2];mtime=seconds*1e3+nanoseconds/(1e3*1e3)}FS.utime(path,atime,mtime);return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function __emscripten_default_pthread_stack_size(){return 5242880}var nowIsMonotonic=true;function __emscripten_get_now_is_monotonic(){return nowIsMonotonic}function maybeExit(){if(!keepRuntimeAlive()){try{if(ENVIRONMENT_IS_PTHREAD)__emscripten_thread_exit(EXITSTATUS);else _exit(EXITSTATUS)}catch(e){handleException(e)}}}function callUserCallback(func){if(ABORT){return}try{func();maybeExit()}catch(e){handleException(e)}}function __emscripten_thread_mailbox_await(pthread_ptr){if(typeof Atomics.waitAsync==="function"){var wait=Atomics.waitAsync(GROWABLE_HEAP_I32(),pthread_ptr>>2,pthread_ptr);wait.value.then(checkMailbox);var waitingAsync=pthread_ptr+128;Atomics.store(GROWABLE_HEAP_I32(),waitingAsync>>2,1)}}Module["__emscripten_thread_mailbox_await"]=__emscripten_thread_mailbox_await;function checkMailbox(){var pthread_ptr=_pthread_self();if(pthread_ptr){__emscripten_thread_mailbox_await(pthread_ptr);callUserCallback(()=>__emscripten_check_mailbox())}}Module["checkMailbox"]=checkMailbox;function __emscripten_notify_mailbox_postmessage(targetThreadId,currThreadId,mainThreadId){if(targetThreadId==currThreadId){setTimeout(()=>checkMailbox())}else if(ENVIRONMENT_IS_PTHREAD){postMessage({"targetThread":targetThreadId,"cmd":"checkMailbox"})}else{var worker=PThread.pthreads[targetThreadId];if(!worker){return}worker.postMessage({"cmd":"checkMailbox"})}}function __emscripten_set_offscreencanvas_size(target,width,height){return-1}function __gmtime_js(time,tmPtr){var date=new Date(readI53FromI64(time)*1e3);GROWABLE_HEAP_I32()[tmPtr>>2]=date.getUTCSeconds();GROWABLE_HEAP_I32()[tmPtr+4>>2]=date.getUTCMinutes();GROWABLE_HEAP_I32()[tmPtr+8>>2]=date.getUTCHours();GROWABLE_HEAP_I32()[tmPtr+12>>2]=date.getUTCDate();GROWABLE_HEAP_I32()[tmPtr+16>>2]=date.getUTCMonth();GROWABLE_HEAP_I32()[tmPtr+20>>2]=date.getUTCFullYear()-1900;GROWABLE_HEAP_I32()[tmPtr+24>>2]=date.getUTCDay();var start=Date.UTC(date.getUTCFullYear(),0,1,0,0,0,0);var yday=(date.getTime()-start)/(1e3*60*60*24)|0;GROWABLE_HEAP_I32()[tmPtr+28>>2]=yday}function __isLeapYear(year){return 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];function __yday_from_date(date){var isLeapYear=__isLeapYear(date.getFullYear());var monthDaysCumulative=isLeapYear?__MONTH_DAYS_LEAP_CUMULATIVE:__MONTH_DAYS_REGULAR_CUMULATIVE;var yday=monthDaysCumulative[date.getMonth()]+date.getDate()-1;return yday}function __localtime_js(time,tmPtr){var date=new Date(readI53FromI64(time)*1e3);GROWABLE_HEAP_I32()[tmPtr>>2]=date.getSeconds();GROWABLE_HEAP_I32()[tmPtr+4>>2]=date.getMinutes();GROWABLE_HEAP_I32()[tmPtr+8>>2]=date.getHours();GROWABLE_HEAP_I32()[tmPtr+12>>2]=date.getDate();GROWABLE_HEAP_I32()[tmPtr+16>>2]=date.getMonth();GROWABLE_HEAP_I32()[tmPtr+20>>2]=date.getFullYear()-1900;GROWABLE_HEAP_I32()[tmPtr+24>>2]=date.getDay();var yday=__yday_from_date(date)|0;GROWABLE_HEAP_I32()[tmPtr+28>>2]=yday;GROWABLE_HEAP_I32()[tmPtr+36>>2]=-(date.getTimezoneOffset()*60);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;GROWABLE_HEAP_I32()[tmPtr+32>>2]=dst}function __mmap_js(len,prot,flags,fd,off,allocated,addr){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(29,1,len,prot,flags,fd,off,allocated,addr);try{var stream=SYSCALLS.getStreamFromFD(fd);var res=FS.mmap(stream,len,off,prot,flags);var ptr=res.ptr;GROWABLE_HEAP_I32()[allocated>>2]=res.allocated;GROWABLE_HEAP_U32()[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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(30,1,addr,len,prot,flags,fd,offset);try{SYSCALLS.doMsync(addr,SYSCALLS.getStreamFromFD(fd),len,flags,0);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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(31,1,addr,len,prot,flags,fd,offset);try{var stream=SYSCALLS.getStreamFromFD(fd);if(prot&2){SYSCALLS.doMsync(addr,stream,len,flags,offset)}FS.munmap(stream)}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return-e.errno}}function allocateUTF8(str){var size=lengthBytesUTF8(str)+1;var ret=_malloc(size);if(ret)stringToUTF8Array(str,GROWABLE_HEAP_I8(),ret,size);return ret}function __tzset_js(timezone,daylight,tzname){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();var stdTimezoneOffset=Math.max(winterOffset,summerOffset);GROWABLE_HEAP_U32()[timezone>>2]=stdTimezoneOffset*60;GROWABLE_HEAP_I32()[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);var winterNamePtr=allocateUTF8(winterName);var summerNamePtr=allocateUTF8(summerName);if(summerOffset>2]=winterNamePtr;GROWABLE_HEAP_U32()[tzname+4>>2]=summerNamePtr}else{GROWABLE_HEAP_U32()[tzname>>2]=summerNamePtr;GROWABLE_HEAP_U32()[tzname+4>>2]=winterNamePtr}}function _abort(){abort("")}var DOTNETENTROPY={getBatchedRandomValues:function(buffer,bufferLength){const batchedQuotaMax=65536;const needTempBuf=typeof SharedArrayBuffer!=="undefined"&&Module.HEAPU8.buffer instanceof SharedArrayBuffer;const buf=needTempBuf?new ArrayBuffer(bufferLength):Module.HEAPU8.buffer;const offset=needTempBuf?0:buffer;for(let i=0;i{var t=process.hrtime();return t[0]*1e3+t[1]/1e6}}else _emscripten_get_now=()=>performance.timeOrigin+performance.now();function _emscripten_get_now_res(){if(ENVIRONMENT_IS_NODE){return 1}else if(typeof dateNow!="undefined"){return 1e3}else return 1e3}function _emscripten_memcpy_big(dest,src,num){GROWABLE_HEAP_U8().copyWithin(dest,src,src+num)}function _emscripten_num_logical_cores(){if(ENVIRONMENT_IS_NODE)return require("os").cpus().length;return navigator["hardwareConcurrency"]}function withStackSave(f){var stack=stackSave();var ret=f();stackRestore(stack);return ret}function _emscripten_proxy_to_main_thread_js(index,sync){var numCallArgs=arguments.length-2;var outerArgs=arguments;return withStackSave(()=>{var serializedNumCallArgs=numCallArgs*2;var args=stackAlloc(serializedNumCallArgs*8);var b=args>>3;for(var i=0;i>3;for(var i=0;i>>16);updateMemoryViews();return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){var oldSize=GROWABLE_HEAP_U8().length;requestedSize=requestedSize>>>0;if(requestedSize<=oldSize){return false}var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}let alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}function _emscripten_runtime_keepalive_check(){return keepRuntimeAlive()}function runtimeKeepalivePop(){runtimeKeepaliveCounter-=1}var _emscripten_runtime_keepalive_pop=runtimeKeepalivePop;var _emscripten_runtime_keepalive_push=runtimeKeepalivePush;function safeSetTimeout(func,timeout){runtimeKeepalivePush();return setTimeout(function(){runtimeKeepalivePop();callUserCallback(func)},timeout)}function _emscripten_set_timeout(cb,msecs,userData){return safeSetTimeout(()=>getWasmTableEntry(cb)(userData),msecs)}function _emscripten_unwind_to_js_event_loop(){throw"unwind"}var ENV={};function getExecutableName(){return thisProgram||"./this.program"}function getEnvStrings(){if(!getEnvStrings.strings){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()};for(var x in ENV){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}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)GROWABLE_HEAP_I8()[buffer>>0]=0}function _environ_get(__environ,environ_buf){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(32,1,__environ,environ_buf);var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;GROWABLE_HEAP_U32()[__environ+i*4>>2]=ptr;writeAsciiToMemory(string,ptr);bufSize+=string.length+1});return 0}function _environ_sizes_get(penviron_count,penviron_buf_size){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(33,1,penviron_count,penviron_buf_size);var strings=getEnvStrings();GROWABLE_HEAP_U32()[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){bufSize+=string.length+1});GROWABLE_HEAP_U32()[penviron_buf_size>>2]=bufSize;return 0}function _fd_close(fd){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(34,1,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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(35,1,fd,pbuf);try{var stream=SYSCALLS.getStreamFromFD(fd);var type=stream.tty?2:FS.isDir(stream.mode)?3:FS.isLink(stream.mode)?7:4;GROWABLE_HEAP_I8()[pbuf>>0]=type;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function doReadv(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i>2];var len=GROWABLE_HEAP_U32()[iov+4>>2];iov+=8;var curr=FS.read(stream,GROWABLE_HEAP_I8(),ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr>2]=num;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function doWritev(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i>2];var len=GROWABLE_HEAP_U32()[iov+4>>2];iov+=8;var curr=FS.write(stream,GROWABLE_HEAP_I8(),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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(37,1,fd,iov,iovcnt,offset,pnum);try{offset=bigintToI53Checked(offset);if(isNaN(offset))return 61;var stream=SYSCALLS.getStreamFromFD(fd);var num=doWritev(stream,iov,iovcnt,offset);GROWABLE_HEAP_U32()[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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(38,1,fd,iov,iovcnt,pnum);try{var stream=SYSCALLS.getStreamFromFD(fd);var num=doReadv(stream,iov,iovcnt);GROWABLE_HEAP_U32()[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){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(39,1,fd,offset,whence,newOffset);try{offset=bigintToI53Checked(offset);if(isNaN(offset))return 61;var stream=SYSCALLS.getStreamFromFD(fd);FS.llseek(stream,offset,whence);tempI64=[stream.position>>>0,(tempDouble=stream.position,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[newOffset>>2]=tempI64[0],GROWABLE_HEAP_I32()[newOffset+4>>2]=tempI64[1];if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function _fd_sync(fd){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(40,1,fd);try{var stream=SYSCALLS.getStreamFromFD(fd);if(stream.stream_ops&&stream.stream_ops.fsync){return stream.stream_ops.fsync(stream)}return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}function _fd_write(fd,iov,iovcnt,pnum){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_proxy_to_main_thread_js(41,1,fd,iov,iovcnt,pnum);try{var stream=SYSCALLS.getStreamFromFD(fd);var num=doWritev(stream,iov,iovcnt);GROWABLE_HEAP_U32()[pnum>>2]=num;return 0}catch(e){if(typeof FS=="undefined"||!(e.name==="ErrnoError"))throw e;return e.errno}}var DOTNET={setup:function setup(linkerSetup){const pthreadReplacements={};const dotnet_replacements={fetch:globalThis.fetch,require:require,updateMemoryViews:updateMemoryViews,pthreadReplacements:pthreadReplacements,scriptDirectory:scriptDirectory,noExitRuntime:noExitRuntime};pthreadReplacements.loadWasmModuleToWorker=PThread.loadWasmModuleToWorker;pthreadReplacements.threadInitTLS=PThread.threadInitTLS;pthreadReplacements.allocateUnusedWorker=PThread.allocateUnusedWorker;Module.__dotnet_runtime.passEmscriptenInternals({isPThread:ENVIRONMENT_IS_PTHREAD,quit_:quit_,ExitStatus:ExitStatus,...linkerSetup});Module.__dotnet_runtime.initializeReplacements(dotnet_replacements);if(ENVIRONMENT_IS_PTHREAD){Module.config={};Module.__dotnet_runtime.configureWorkerStartup(Module)}else{Module.__dotnet_runtime.configureEmscriptenStartup(Module)}updateMemoryViews=dotnet_replacements.updateMemoryViews;noExitRuntime=dotnet_replacements.noExitRuntime;fetch=dotnet_replacements.fetch;require=dotnet_replacements.require;_scriptDir=__dirname=scriptDirectory=dotnet_replacements.scriptDirectory;PThread.loadWasmModuleToWorker=pthreadReplacements.loadWasmModuleToWorker;PThread.threadInitTLS=pthreadReplacements.threadInitTLS;PThread.allocateUnusedWorker=pthreadReplacements.allocateUnusedWorker}};function _mono_wasm_bind_cs_function(){return{runtime_idx:23}}function _mono_wasm_bind_js_function(){return{runtime_idx:20}}function _mono_wasm_change_case(){return{runtime_idx:26}}function _mono_wasm_change_case_invariant(){return{runtime_idx:25}}function _mono_wasm_compare_string(){return{runtime_idx:27}}function _mono_wasm_create_cs_owned_object_ref(){return{runtime_idx:49}}function _mono_wasm_ends_with(){return{runtime_idx:29}}function _mono_wasm_eventloop_has_unsettled_interop_promises(){return{runtime_idx:37}}function _mono_wasm_get_by_index_ref(){return{runtime_idx:46}}function _mono_wasm_get_calendar_info(){return{runtime_idx:31}}function _mono_wasm_get_culture_info(){return{runtime_idx:32}}function _mono_wasm_get_first_day_of_week(){return{runtime_idx:33}}function _mono_wasm_get_first_week_of_year(){return{runtime_idx:34}}function _mono_wasm_get_global_object_ref(){return{runtime_idx:48}}function _mono_wasm_get_object_property_ref(){return{runtime_idx:44}}function _mono_wasm_index_of(){return{runtime_idx:30}}function _mono_wasm_install_js_worker_interop(){return{runtime_idx:41}}function _mono_wasm_invoke_bound_function(){return{runtime_idx:21}}function _mono_wasm_invoke_import(){return{runtime_idx:22}}function _mono_wasm_invoke_js_blazor(){return{runtime_idx:52}}function _mono_wasm_invoke_js_with_args_ref(){return{runtime_idx:43}}function _mono_wasm_marshal_promise(){return{runtime_idx:24}}function _mono_wasm_pthread_on_pthread_attached(){return{runtime_idx:35}}function _mono_wasm_pthread_on_pthread_detached(){return{runtime_idx:36}}function _mono_wasm_release_cs_owned_object(){return{runtime_idx:19}}function _mono_wasm_schedule_timer(){return{runtime_idx:0}}function _mono_wasm_set_by_index_ref(){return{runtime_idx:47}}function _mono_wasm_set_entrypoint_breakpoint(){return{runtime_idx:17}}function _mono_wasm_set_object_property_ref(){return{runtime_idx:45}}function _mono_wasm_starts_with(){return{runtime_idx:28}}function _mono_wasm_trace_logger(){return{runtime_idx:16}}function _mono_wasm_typed_array_from_ref(){return{runtime_idx:51}}function _mono_wasm_typed_array_to_array_ref(){return{runtime_idx:50}}function _mono_wasm_uninstall_js_worker_interop(){return{runtime_idx:42}}function _schedule_background_exec(){return{runtime_idx:6}}function __arraySum(array,index){var sum=0;for(var i=0;i<=index;sum+=array[i++]){}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];function __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()){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{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate}function writeArrayToMemory(array,buffer){GROWABLE_HEAP_I8().set(array,buffer)}function _strftime(s,maxsize,format,tm){var tm_zone=GROWABLE_HEAP_I32()[tm+40>>2];var date={tm_sec:GROWABLE_HEAP_I32()[tm>>2],tm_min:GROWABLE_HEAP_I32()[tm+4>>2],tm_hour:GROWABLE_HEAP_I32()[tm+8>>2],tm_mday:GROWABLE_HEAP_I32()[tm+12>>2],tm_mon:GROWABLE_HEAP_I32()[tm+16>>2],tm_year:GROWABLE_HEAP_I32()[tm+20>>2],tm_wday:GROWABLE_HEAP_I32()[tm+24>>2],tm_yday:GROWABLE_HEAP_I32()[tm+28>>2],tm_isdst:GROWABLE_HEAP_I32()[tm+32>>2],tm_gmtoff:GROWABLE_HEAP_I32()[tm+36>>2],tm_zone:tm_zone?UTF8ToString(tm_zone):""};var pattern=UTF8ToString(format);var EXPANSION_RULES_1={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};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.length0?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:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()-1,11,31);case 6: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){if(compareByDay(firstWeekStartNextYear,thisDate)<=0){return thisDate.getFullYear()+1}return thisDate.getFullYear()}return thisDate.getFullYear()-1}var EXPANSION_RULES_2={"%a":function(date){return WEEKDAYS[date.tm_wday].substring(0,3)},"%A":function(date){return WEEKDAYS[date.tm_wday]},"%b":function(date){return MONTHS[date.tm_mon].substring(0,3)},"%B":function(date){return MONTHS[date.tm_mon]},"%C":function(date){var year=date.tm_year+1900;return leadingNulls(year/100|0,2)},"%d":function(date){return leadingNulls(date.tm_mday,2)},"%e":function(date){return leadingSomething(date.tm_mday,2," ")},"%g":function(date){return getWeekBasedYear(date).toString().substring(2)},"%G":function(date){return getWeekBasedYear(date)},"%H":function(date){return leadingNulls(date.tm_hour,2)},"%I":function(date){var twelveHour=date.tm_hour;if(twelveHour==0)twelveHour=12;else if(twelveHour>12)twelveHour-=12;return leadingNulls(twelveHour,2)},"%j":function(date){return leadingNulls(date.tm_mday+__arraySum(__isLeapYear(date.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,date.tm_mon-1),3)},"%m":function(date){return leadingNulls(date.tm_mon+1,2)},"%M":function(date){return leadingNulls(date.tm_min,2)},"%n":function(){return"\n"},"%p":function(date){if(date.tm_hour>=0&&date.tm_hour<12){return"AM"}return"PM"},"%S":function(date){return leadingNulls(date.tm_sec,2)},"%t":function(){return"\t"},"%u":function(date){return date.tm_wday||7},"%U":function(date){var days=date.tm_yday+7-date.tm_wday;return leadingNulls(Math.floor(days/7),2)},"%V":function(date){var val=Math.floor((date.tm_yday+7-(date.tm_wday+6)%7)/7);if((date.tm_wday+371-date.tm_yday-2)%7<=2){val++}if(!val){val=52;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){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":function(date){return date.tm_wday},"%W":function(date){var days=date.tm_yday+7-(date.tm_wday+6)%7;return leadingNulls(Math.floor(days/7),2)},"%y":function(date){return(date.tm_year+1900).toString().substring(2)},"%Y":function(date){return date.tm_year+1900},"%z":function(date){var off=date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)},"%Z":function(date){return date.tm_zone},"%%":function(){return"%"}};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}function getCFunc(ident){var func=Module["_"+ident];return func}function ccall(ident,returnType,argTypes,args,opts){var toC={"string":str=>{var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=stackAlloc(len);stringToUTF8(str,ret,len)}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;itype==="number"||type==="boolean");var numericRet=returnType!=="string";if(numericRet&&numericArgs&&!opts){return getCFunc(ident)}return function(){return ccall(ident,returnType,argTypes,arguments,opts)}}function uleb128Encode(n,target){if(n<128){target.push(n)}else{target.push(n%128|128,n>>7)}}function sigToWasmTypes(sig){var typeNames={"i":"i32","j":"i32","f":"f32","d":"f64","p":"i32"};var type={parameters:[],results:sig[0]=="v"?[]:[typeNames[sig[0]]]};for(var i=1;i>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(i0){return}if(ENVIRONMENT_IS_PTHREAD){readyPromiseResolve(Module);initRuntime();startWorker(Module);return}preRun();if(runDependencies>0){return}function doRun(){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(); return createDotnetRuntime.ready diff --git a/packages/dotnet-runtime/src/vendor/compiler/dotnet.native.wasm b/packages/dotnet-runtime/src/vendor/compiler/dotnet.native.wasm index f553879..a099349 100755 Binary files a/packages/dotnet-runtime/src/vendor/compiler/dotnet.native.wasm and b/packages/dotnet-runtime/src/vendor/compiler/dotnet.native.wasm differ diff --git a/packages/dotnet-runtime/src/vendor/compiler/dotnet.native.worker.8.0.8.wc1hblvvs5.js b/packages/dotnet-runtime/src/vendor/compiler/dotnet.native.worker.8.0.10.wc1hblvvs5.js similarity index 100% rename from packages/dotnet-runtime/src/vendor/compiler/dotnet.native.worker.8.0.8.wc1hblvvs5.js rename to packages/dotnet-runtime/src/vendor/compiler/dotnet.native.worker.8.0.10.wc1hblvvs5.js diff --git a/packages/dotnet-runtime/src/vendor/compiler/dotnet.runtime.8.0.10.7f8pgc2wlp.js b/packages/dotnet-runtime/src/vendor/compiler/dotnet.runtime.8.0.10.7f8pgc2wlp.js new file mode 100755 index 0000000..b110b24 --- /dev/null +++ b/packages/dotnet-runtime/src/vendor/compiler/dotnet.runtime.8.0.10.7f8pgc2wlp.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="8.0.10",t=!0;let n,r;const o="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,s="function"==typeof importScripts,a="object"==typeof window||s&&!o,i=!a&&!o&&!s;let c,l=null,u=null,d=null,p=!1,_=!0,f=!0,m=!1,h=!1,g=!1;function b(e){c=e.isPThread,p=e.linkerDisableLegacyJsInterop,_=e.linkerWasmEnableSIMD,f=e.linkerWasmEnableEH,m=e.linkerEnableAotProfiler,h=e.linkerEnableBrowserProfiler,u.quit=e.quit_,u.ExitStatus=e.ExitStatus,u.moduleGitHash=e.gitHash}function y(e){if(g)throw new Error("Runtime module already loaded");g=!0,n=e.module,r=e.internal,u=e.runtimeHelpers,d=e.loaderHelpers,l=e.api,Object.assign(u,{gitHash:"81cabf2857a01351e5ab578947c7403a5b128ad1",allAssetsInMemory:w(),dotnetReady:w(),afterInstantiateWasm:w(),beforePreInit:w(),afterPreInit:w(),afterPreRun:w(),beforeOnRuntimeInitialized:w(),afterOnRuntimeInitialized:w(),afterPostRun:w(),mono_wasm_exit:()=>{throw new Error("Mono shutdown")},abort:e=>{throw e}}),Object.assign(e.module.config,{}),Object.assign(e.api,{Module:e.module,...e.module}),Object.assign(e.api,{INTERNAL:e.internal})}function w(e,t){return d.createPromiseController(e,t)}function v(e,t){if(e)return;const n="Assert failed: "+("function"==typeof t?t():t),r=new Error(n);u.abort(r)}const k=0,S=0,E=0,T=0,U=0,I=-1,A=0,x=0,j=0;function C(e){return null==e}function R(e){throw new Error("Unexpected value: "+e)}var L;!function(e){e[e.None=0]="None",e[e.Void=1]="Void",e[e.Discard=2]="Discard",e[e.Boolean=3]="Boolean",e[e.Byte=4]="Byte",e[e.Char=5]="Char",e[e.Int16=6]="Int16",e[e.Int32=7]="Int32",e[e.Int52=8]="Int52",e[e.BigInt64=9]="BigInt64",e[e.Double=10]="Double",e[e.Single=11]="Single",e[e.IntPtr=12]="IntPtr",e[e.JSObject=13]="JSObject",e[e.Object=14]="Object",e[e.String=15]="String",e[e.Exception=16]="Exception",e[e.DateTime=17]="DateTime",e[e.DateTimeOffset=18]="DateTimeOffset",e[e.Nullable=19]="Nullable",e[e.Task=20]="Task",e[e.Array=21]="Array",e[e.ArraySegment=22]="ArraySegment",e[e.Span=23]="Span",e[e.Action=24]="Action",e[e.Function=25]="Function",e[e.JSException=26]="JSException"}(L||(L={}));var $=!0;const D=[],N=32768;let B,M;const P=BigInt("9223372036854775807"),O=BigInt("-9223372036854775808");function F(){B||(B=n._malloc(N),M=B),D.push(M)}function z(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 V(e,t){xe().fill(0,e,e+t)}function W(e,t){$e();const r=!!t;"number"==typeof t&&z(t,0,1),n.HEAP32[e>>>2]=r?1:0}function H(e,t){z(t,0,255),$e(),n.HEAPU8[e]=t}function q(e,t){z(t,0,65535),$e(),n.HEAPU16[e>>>1]=t}function G(e,t,n){z(n,0,65535),e[t>>>1]=n}function J(e,t){n.HEAPU32[e>>>2]=t}function X(e,t){z(t,0,4294967295),$e(),n.HEAPU32[e>>>2]=t}function Y(e,t){z(t,-128,127),$e(),n.HEAP8[e]=t}function K(e,t){z(t,-32768,32767),$e(),n.HEAP16[e>>>1]=t}function Z(e,t){$e(),n.HEAP32[e>>>2]=t}function Q(e,t){z(t,-2147483648,2147483647),$e(),n.HEAP32[e>>>2]=t}function ee(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 te(e,t){if(!Number.isSafeInteger(t))throw new Error(`Assert failed: Value is not a safe integer: ${t} (${typeof t})`);$e(),ee(xt.mono_wasm_f64_to_i52(e,t))}function ne(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(),ee(xt.mono_wasm_f64_to_u52(e,t))}function re(e,t){if("bigint"!=typeof t)throw new Error(`Assert failed: Value is not an bigint: ${t} (${typeof t})`);if(!(t>=O&&t<=P))throw new Error(`Assert failed: Overflow: value ${t} is out of ${O} ${P} range`);n.HEAP64[e>>>3]=t}function oe(e,t){if("number"!=typeof t)throw new Error(`Assert failed: Value is not a Number: ${t} (${typeof t})`);$e(),n.HEAPF32[e>>>2]=t}function se(e,t){if("number"!=typeof t)throw new Error(`Assert failed: Value is not a Number: ${t} (${typeof t})`);$e(),n.HEAPF64[e>>>3]=t}function ae(e){return $e(),!!n.HEAP32[e>>>2]}function ie(e){return $e(),n.HEAPU8[e]}function ce(e){return $e(),n.HEAPU16[e>>>1]}function le(e){return $e(),n.HEAPU32[e>>>2]}function ue(e,t){return e[t>>>2]}function de(e){return xt.mono_wasm_get_i32_unaligned(e)}function pe(e){return xt.mono_wasm_get_i32_unaligned(e)>>>0}function _e(e){return $e(),n.HEAP8[e]}function fe(e){return $e(),n.HEAP16[e>>>1]}function me(e){return $e(),n.HEAP32[e>>>2]}function he(e){const t=xt.mono_wasm_i52_to_f64(e,u._i52_error_scratch_buffer);return ee(me(u._i52_error_scratch_buffer)),t}function ge(e){const t=xt.mono_wasm_u52_to_f64(e,u._i52_error_scratch_buffer);return ee(me(u._i52_error_scratch_buffer)),t}function be(e){return $e(),n.HEAP64[e>>>3]}function ye(e){return $e(),n.HEAPF32[e>>>2]}function we(e){return $e(),n.HEAPF64[e>>>3]}function ve(e,t,r,o,s){const a=n.stackSave(),i=n.stackAlloc(e);try{return t(i,r,o,s)}finally{n.stackRestore(a)}}function ke(e){const t=n._malloc(e.length);return new Uint8Array(xe().buffer,t,e.length).set(e),t}const Se=globalThis.Atomics,Ee={storeI32(e,t){Se.store(Ie(),e>>>2,t)},notifyI32(e,t){Se.notify(Ie(),e>>>2,t)}};function Te(){return $e(),n.HEAP8}function Ue(){return $e(),n.HEAP16}function Ie(){return $e(),n.HEAP32}function Ae(){return $e(),n.HEAP64}function xe(){return $e(),n.HEAPU8}function je(){return $e(),n.HEAPU16}function Ce(){return $e(),n.HEAPU32}function Re(){return $e(),n.HEAPF32}function Le(){return $e(),n.HEAPF64}function $e(){n.wasmMemory.buffer!=n.HEAPU8.buffer&&u.updateMemoryViews()}const De="undefined"!=typeof SharedArrayBuffer,Ne=8192;let Be=null,Me=null,Pe=0;const Oe=[],Fe=[];function ze(e,t){if(e<=0)throw new Error("capacity >= 1");const r=4*(e|=0),o=n._malloc(r);if(o%4!=0)throw new Error("Malloc returned an unaligned offset");return V(o,r),new WasmRootBufferImpl(o,e,!0,t)}function Ve(e){let t;if(!e)throw new Error("address must be a location in the native heap");return Fe.length>0?(t=Fe.pop(),t._set_address(e)):t=new Ge(e),t}function We(e=void 0){let t;if(Oe.length>0)t=Oe.pop();else{const e=function(){if(C(Be)||!Me){Be=ze(Ne,"js roots"),Me=new Int32Array(Ne),Pe=Ne;for(let e=0;e>>2,this.__count=t,this.length=t,this.__handle=xt.mono_wasm_register_root(e,o,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 Ce()[t]}set(e,t){const n=this.get_address(e);return xt.mono_wasm_write_managed_pointer_unsafe(n,t),t}copy_value_from_address(e,t){const n=this.get_address(e);xt.mono_wasm_copy_managed_pointer(n,t)}_unsafe_get(e){return Ce()[this.__offset32+e]}_unsafe_set(e,t){const n=this.__offset+e;xt.mono_wasm_write_managed_pointer_unsafe(n,t)}clear(){this.__offset&&V(this.__offset,4*this.__count)}release(){this.__offset&&this.__ownsAllocation&&(xt.mono_wasm_deregister_root(this.__offset),V(this.__offset,4*this.__count),n._free(this.__offset)),this.__handle=this.__offset=this.__count=this.__offset32=0}toString(){return`[root buffer @${this.get_address(0)}, size ${this.__count} ]`}}class qe{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 xt.mono_wasm_write_managed_pointer_unsafe(t,e),e}copy_from(e){const t=e.address,n=this.address;xt.mono_wasm_copy_managed_pointer(n,t)}copy_to(e){const t=this.address,n=e.address;xt.mono_wasm_copy_managed_pointer(n,t)}copy_from_address(e){const t=this.address;xt.mono_wasm_copy_managed_pointer(t,e)}copy_to_address(e){const t=this.address;xt.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);Ce()[e]=0}release(){if(!this.__buffer)throw new Error("No buffer");var e;Oe.length>128?(void 0!==(e=this.__index)&&(Be.set(e,0),Me[Pe]=e,Pe++),this.__buffer=null,this.__index=0):(this.set(0),Oe.push(this))}toString(){return`[root @${this.address}]`}}class Ge{constructor(e){this.__external_address=U,this.__external_address_32=0,this._set_address(e)}_set_address(e){this.__external_address=e,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 Ce()[this.__external_address_32]}set(e){return xt.mono_wasm_write_managed_pointer_unsafe(this.__external_address,e),e}copy_from(e){const t=e.address,n=this.__external_address;xt.mono_wasm_copy_managed_pointer(n,t)}copy_to(e){const t=this.__external_address,n=e.address;xt.mono_wasm_copy_managed_pointer(n,t)}copy_from_address(e){const t=this.__external_address;xt.mono_wasm_copy_managed_pointer(t,e)}copy_to_address(e){const t=this.__external_address;xt.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(){Ce()[this.__external_address>>>2]=0}release(){Fe.length<128&&Fe.push(this)}toString(){return`[external root @${this.address}]`}}const Je=new Map,Xe="";let Ye;const Ke=new Map;let Ze,Qe,et,tt,nt=0,rt=null,ot=0;function st(e){if(void 0===tt){const t=new Uint8Array(2*e.length);return n.stringToUTF8Array(e,t,0,2*e.length),t}return tt.encode(e)}function at(e){const t=xe();return function(e,t,r){const o=t+r;let s=t;for(;e[s]&&!(s>=o);)++s;if(s-t<=16)return n.UTF8ArrayToString(e,t,r);if(void 0===et)return n.UTF8ArrayToString(e,t,r);const a=ft(e,t,s);return et.decode(a)}(t,e,t.length-e)}function it(e,t){if(Ze){const n=ft(xe(),e,t);return Ze.decode(n)}return ct(e,t)}function ct(e,t){let n="";const r=je();for(let o=e;o>>1];n+=String.fromCharCode(e)}return n}function lt(e,t,n){const r=je(),o=n.length;for(let s=0;s=t));s++);}function ut(e){if(e.value===T)return null;const t=Ye+0,n=Ye+4,r=Ye+8;let o;xt.mono_wasm_string_get_data_ref(e.address,t,n,r);const s=Ce(),a=ue(s,n),i=ue(s,t),c=ue(s,r);if(c&&(o=Ke.get(e.value)),void 0===o&&(a&&i?(o=it(i,i+a),c&&Ke.set(e.value,o)):o=Xe),void 0===o)throw new Error(`internal error when decoding string at location ${e.value}`);return o}function dt(e,t){if(t.clear(),null!==e)if("symbol"==typeof e)pt(e,t);else{if("string"!=typeof e)throw new Error("Expected string argument, got "+typeof e);if(0===e.length)pt(e,t);else{if(e.length<=256){const n=Je.get(e);if(n)return void t.set(n)}_t(e,t)}}}function pt(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&&nt)return void t.set(nt);const r=Je.get(n);r?t.set(r):(_t(n,t),function(e,t,n){if(!t.value)throw new Error("null pointer passed to _store_string_in_intern_table");ot>=8192&&(rt=null),rt||(rt=ze(8192,"interned strings"),ot=0);const r=rt,o=ot++;if(xt.mono_wasm_intern_string_ref(t.address),!t.value)throw new Error("mono_wasm_intern_string_ref produced a null pointer");Je.set(e,t.value),Ke.set(t.value,e),0!==e.length||nt||(nt=t.value),r.copy_value_from_address(o,t.address)}(n,t))}function _t(e,t){const r=2*(e.length+1),o=n._malloc(r);lt(o,o+r,e),xt.mono_wasm_string_from_utf16_ref(o,e.length,t.address),n._free(o)}function ft(e,t,n){var r;return r=e.buffer,De&&"SharedArrayBuffer"===r[Symbol.toStringTag]?e.slice(t,n):e.subarray(t,n)}let mt="MONO_WASM: ";function ht(e){mt=`MONO_WASM [${e}]: `}function gt(e,...t){u.diagnosticTracing&&console.debug(mt+e,...t)}function bt(e,...t){console.info(mt+e,...t)}function yt(e,...t){console.warn(mt+e,...t)}function wt(e,...t){t&&t.length>0&&t[0]&&"object"==typeof t[0]&&t[0].silent||console.error(mt+e,...t)}const vt=new Map,kt=[];function St(e){try{if(0==vt.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=vt.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 Et(e){let t=e;return t&&t.stack||(t=new Error(t?""+t:"Unknown error")),St(t.stack)}function Tt(){return[...vt.values()]}kt.push(/at (?[^:()]+:wasm-function\[(?\d+)\]:0x[a-fA-F\d]+)((?![^)a-fA-F\d])|$)/),kt.push(/(?:WASM \[[\da-zA-Z]+\], (?function #(?[\d]+) \(''\)))/),kt.push(/(?[a-z]+:\/\/[^ )]*:wasm-function\[(?\d+)\]:0x[a-fA-F\d]+)/),kt.push(/(?<[^ >]+>[.:]wasm-function\[(?[0-9]+)\])/);const Ut=[[!0,"mono_wasm_array_get_ref","void",["number","number","number"]],[!0,"mono_wasm_obj_array_new_ref","void",["number","number"]],[!0,"mono_wasm_obj_array_set_ref","void",["number","number","number"]],[!0,"mono_wasm_try_unbox_primitive_and_get_type_ref","number",["number","number","number"]],[!0,"mono_wasm_box_primitive_ref","void",["number","number","number","number"]],[!0,"mono_wasm_string_array_new_ref","void",["number","number"]],[!0,"mono_wasm_typed_array_new_ref","void",["number","number","number","number","number"]],[!0,"mono_wasm_get_delegate_invoke_ref","number",["number"]],[!0,"mono_wasm_get_type_name","string",["number"]],[!0,"mono_wasm_get_type_aqn","string",["number"]],[!0,"mono_wasm_obj_array_new","number",["number"]],[!0,"mono_wasm_obj_array_set","void",["number","number","number"]],[!0,"mono_wasm_array_length_ref","number",["number"]]],It=[[!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_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,["string","number"]],[!0,"mono_wasm_change_debugger_log_level","void",["number"]],[!0,"mono_wasm_get_corlib","number",[]],[!0,"mono_wasm_assembly_load","number",["string"]],[!0,"mono_wasm_assembly_find_class","number",["number","string","string"]],[!0,"mono_wasm_runtime_run_module_cctor","void",["number"]],[!0,"mono_wasm_assembly_find_method","number",["number","string","number"]],[!1,"mono_wasm_invoke_method_ref","void",["number","number","number","number","number"]],[!0,"mono_wasm_string_from_utf16_ref","void",["number","number","number"]],[!0,"mono_wasm_intern_string_ref","void",["number"]],[!0,"mono_wasm_assembly_get_entry_point","number",["number","number"]],[!0,"mono_wasm_class_get_type","number",["number"]],[!1,"mono_wasm_exit","void",["number"]],[!1,"mono_wasm_abort","void",[]],[!0,"mono_wasm_getenv","number",["string"]],[!0,"mono_wasm_set_main_args","void",["number","number"]],[!1,"mono_wasm_enable_on_demand_gc","void",["number"]],[()=>!m,"mono_wasm_profiler_init_aot","void",["string"]],[()=>!h,"mono_wasm_profiler_init_aot","void",["string"]],[!0,"mono_wasm_profiler_init_browser","void",["number"]],[!1,"mono_wasm_exec_regression","number",["number","string"]],[!1,"mono_wasm_invoke_method_bound","number",["number","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_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_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_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_update_jit_call_dispatcher","void",["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_wasm_event_pipe_enable","bool",["string","number","number","string","bool","number"]],[!0,"mono_wasm_event_pipe_session_start_streaming","bool",["number"]],[!0,"mono_wasm_event_pipe_session_disable","bool",["number"]],[!0,"mono_wasm_diagnostic_server_create_thread","bool",["string","number"]],[!0,"mono_wasm_diagnostic_server_thread_attach_to_runtime","void",[]],[!0,"mono_wasm_diagnostic_server_post_resume_runtime","void",[]],[!0,"mono_wasm_diagnostic_server_create_stream","number",[]],...Ut],At={};var xt=At;const jt=At,Ct=At,Rt=At,Lt=["void","number",null];function $t(e,t,r,o){let s=void 0===o&&Lt.indexOf(t)>=0&&(!r||r.every((e=>Lt.indexOf(e)>=0)))&&n.asm?n.asm[e]:void 0;if(s&&r&&s.length!==r.length&&(wt(`argument count mismatch for cwrap ${e}`),s=void 0),"function"!=typeof s&&(s=n.cwrap(e,t,r,o)),"function"!=typeof s)throw new Error(`cwrap ${e} not found or not a function`);return s}function Dt(e,t,n){const r=function(e,t,n){let r,o="number"==typeof t?t:0;r="number"==typeof n?o+n: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,t,n);let o="",s=0,a=0,i=0,c=0,l=0,u=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),u=s<<16|a<<8|i<<0,c=(16777215&u)>>18,o+=Nt[c],c=(262143&u)>>12,o+=Nt[c],l<2&&(c=(4095&u)>>6,o+=Nt[c]),2===l?o+="==":1===l?o+="=":(c=(63&u)>>0,o+=Nt[c]);return o}const Nt=["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 Mt,Pt,Ot,Ft={},zt=0,Vt=-1;function mono_wasm_runtime_ready(){if(r.mono_wasm_runtime_is_ready=u.mono_wasm_runtime_is_ready=!0,zt=0,Ft={},Vt=-1,globalThis.dotnetDebugger)debugger}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 Wt(e){e.length>Vt&&(Mt&&n._free(Mt),Vt=Math.max(e.length,Vt,256),Mt=n._malloc(Vt));const t=atob(e),r=xe();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:()=>qt(r.get.id,r.get.commandSet,r.get.command,r.get.buffer),set:function(e){return Ht(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 Ht(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=tn(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:tn(a)}}function en(e,t={}){return function(e,t){if(!(e in Ft))throw new Error(`Could not find any object with id ${e}`);const n=Ft[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 tn(e){const t="dotnet:cfo_res:"+zt++;return Ft[t]=e,t}function nn(e){e in Ft&&delete Ft[e]}function rn(){if(u.enablePerfMeasure)return globalThis.performance.now()}function on(e,t,n){if(u.enablePerfMeasure&&e){const r=a?{start:e}:{startTime:e},o=n?`${t}${n} `:t;globalThis.performance.measure(o,r)}}const sn=[],an=new Map,cn=new Map,ln=new Map,un=Symbol.for("wasm bound_cs_function"),dn=Symbol.for("wasm bound_js_function"),pn=Symbol.for("wasm imported_js_function"),_n=16;function fn(e){const t=n.stackAlloc(_n*e);return t&&t%8==0||v(!1,"Arg alignment"),Tn(mn(t,0),L.None),Tn(mn(t,1),L.None),t}function mn(e,t){return e||v(!1,"Null args"),e+t*_n}function hn(e,t){return e||v(!1,"Null signatures"),e+32*t+8}function gn(e){return e||v(!1,"Null sig"),le(e)}function bn(e){return e||v(!1,"Null sig"),le(e+16)}function yn(e){return e||v(!1,"Null sig"),le(e+20)}function wn(e){return e||v(!1,"Null sig"),le(e+24)}function vn(e){return e||v(!1,"Null sig"),le(e+28)}function kn(e){return e||v(!1,"Null signatures"),me(e+4)}function Sn(e){return e||v(!1,"Null signatures"),me(e)}function En(e){return e||v(!1,"Null arg"),le(e+12)}function Tn(e,t){e||v(!1,"Null arg"),X(e+12,t)}function Un(e){return e||v(!1,"Null arg"),le(e)}function In(e,t){if(e||v(!1,"Null arg"),"boolean"!=typeof t)throw new Error(`Assert failed: Value is not a Boolean: ${t} (${typeof t})`);H(e,t?1:0)}function An(e,t){e||v(!1,"Null arg"),X(e,t)}function xn(e,t){e||v(!1,"Null arg"),se(e,t.getTime())}function jn(e,t){e||v(!1,"Null arg"),se(e,t)}function Cn(e){return e||v(!1,"Null arg"),le(e+4)}function Rn(e,t){e||v(!1,"Null arg"),X(e+4,t)}function Ln(e){return e||v(!1,"Null arg"),le(e+4)}function $n(e,t){e||v(!1,"Null arg"),X(e+4,t)}function Dn(e){return e||v(!1,"Null arg"),Ve(e)}function Nn(e){return e||v(!1,"Null arg"),me(e+8)}function Bn(e,t){e||v(!1,"Null arg"),Q(e+8,t)}class ManagedObject{dispose(){so(this,x)}get isDisposed(){return this[Zr]===x}toString(){return`CsObject(gc_handle: ${this[Zr]})`}}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(d.is_runtime_running()&&u.jsSynchronizationContextInstalled){const e=this[Zr];if(e!==x){const t=u.javaScriptExports.get_managed_stack_trace(e);if(t)return this.managed_stack=t+"\n"+this.getSuperStack(),this.managed_stack}}return this.getSuperStack()}dispose(){so(this,x)}get isDisposed(){return this[Zr]===x}}function Mn(e){return e==L.Byte?1:e==L.Int32?4:e==L.Int52||e==L.Double?8:e==L.String||e==L.Object||e==L.JSObject?_n:-1}class Pn{constructor(e,t,n){this._pointer=e,this._length=t,this._viewType=n}_unsafe_create_view(){const e=0==this._viewType?new Uint8Array(xe().buffer,this._pointer,this._length):1==this._viewType?new Int32Array(Ie().buffer,this._pointer,this._length):2==this._viewType?new Float64Array(Le().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 Pn{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 Pn{constructor(e,t,n){super(e,t,n)}dispose(){so(this,x)}get isDisposed(){return this[Zr]===x}}function On(e,t,n){if(t===L.None||t===L.Void)return;let r,o,s,a;o=yo(yn(e)),s=yo(wn(e)),a=yo(vn(e));const i=bn(e);r=Fn(i),t===L.Nullable&&(t=i);const c=Fn(t),l=yn(e),u=n*_n;return e=>c(e+u,l,r,o,s,a)}function Fn(e){if(e===L.None||e===L.Void)return;const t=cn.get(e);return t&&"function"==typeof t||v(!1,`ERR41: Unknown converter for type ${e}. ${go}`),t}function zn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),!!ie(e)}(e)}function Vn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),ie(e)}(e)}function Wn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),ce(e)}(e)}function Hn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),fe(e)}(e)}function qn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),me(e)}(e)}function Gn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),we(e)}(e)}function Jn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),be(e)}(e)}function Xn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),ye(e)}(e)}function Yn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),we(e)}(e)}function Kn(e){return En(e)==L.None?null:Un(e)}function Zn(){return null}function Qn(e){return En(e)===L.None?null:function(e){e||v(!1,"Null arg");const t=we(e);return new Date(t)}(e)}function er(e,t,n,r,o,s){if(En(e)===L.None)return null;const a=Ln(e);let i=co(a);return null==i&&(i=(e,t,c)=>(i.isDisposed&&v(!1,"Delegate is disposed and should not be invoked anymore."),u.javaScriptExports.call_delegate(a,e,t,c,n,r,o,s)),i.dispose=()=>{i.isDisposed||(i.isDisposed=!0,so(i,a))},i.isDisposed=!1,oo(i,a)),i}function tr(e,t,n){const r=En(e);if(r===L.None)return null;if(r!==L.Task){n||(n=cn.get(r)),n||v(!1,`Unknown sub_converter for type ${L[r]}. ${go}`);const t=n(e);return new Promise((e=>e(t)))}const o=Cn(e);if(o==A)return new Promise((e=>e(void 0)));const s=to(o);s||v(!1,`ERR28: promise not found for js_handle: ${o} `),d.assertIsControllablePromise(s);const a=d.getPromiseController(s),i=a.resolve;return a.resolve=e=>{const t=En(e);if(t===L.None)return void i(null);n||(n=cn.get(t)),n||v(!1,`Unknown sub_converter for type ${L[t]}. ${go}`);const r=n(e);i(r)},s}function nr(e){if(En(e)==L.None)return null;const t=Dn(e);try{return ut(t)}finally{t.release()}}function rr(e){const t=En(e);if(t==L.None)return null;if(t==L.JSException)return to(Cn(e));const n=Ln(e);let r=co(n);if(null==r){const t=nr(e);r=new ManagedError(t),oo(r,n)}return r}function or(e){return En(e)==L.None?null:to(Cn(e))}function sr(e){const t=En(e);if(t==L.None)return null;if(t==L.JSObject)return to(Cn(e));if(t==L.Array){const t=function(e){return e||v(!1,"Null arg"),le(e+4)}(e);return ir(e,t)}if(t==L.Object){const t=Ln(e);if(t===x)return null;let n=co(t);return n||(n=new ManagedObject,oo(n,t)),n}const n=cn.get(t);return n||v(!1,`Unknown converter for type ${L[t]}. ${go}`),n(e)}function ar(e,t){return t||v(!1,"Expected valid element_type parameter"),ir(e,t)}function ir(e,t){if(En(e)==L.None)return null;-1==Mn(t)&&v(!1,`Element type ${L[t]} not supported`);const r=Un(e),o=Nn(e);let s=null;if(t==L.String){s=new Array(o);for(let e=0;e>2,(r>>2)+o).slice();else{if(t!=L.Double)throw new Error(`NotImplementedException ${L[t]}. ${go}`);s=Le().subarray(r>>3,(r>>3)+o).slice()}return n._free(r),s}function cr(e,t){t||v(!1,"Expected valid element_type parameter");const n=Un(e),r=Nn(e);let o=null;if(t==L.Byte)o=new Span(n,r,0);else if(t==L.Int32)o=new Span(n,r,1);else{if(t!=L.Double)throw new Error(`NotImplementedException ${L[t]}. ${go}`);o=new Span(n,r,2)}return o}function lr(e,t){t||v(!1,"Expected valid element_type parameter");const n=Un(e),r=Nn(e);let o=null;if(t==L.Byte)o=new ArraySegment(n,r,0);else if(t==L.Int32)o=new ArraySegment(n,r,1);else{if(t!=L.Double)throw new Error(`NotImplementedException ${L[t]}. ${go}`);o=new ArraySegment(n,r,2)}return oo(o,Ln(e)),o}const ur="dotnet:pthread:created";let dr;const pr=(e,t)=>(dr||(dr=class extends Event{constructor(e,t){super(e),this.pthread_self=t}}),new dr(e,t));class _r{constructor(e,t){this.pthreadId=e,this.portToBrowser=t,this.isBrowserThread=!1}postMessageToBrowser(e,t){t?this.portToBrowser.postMessage(e,t):this.portToBrowser.postMessage(e)}addEventListenerFromBrowser(e){this.portToBrowser.addEventListener("message",e)}}let fr,mr,hr=null;function gr(e){gt("got message from main on the dedicated channel",e.data)}function br(e){gt("creating a channel",e);const t=new MessageChannel,n=t.port1,r=t.port2;return n.addEventListener("message",gr),n.start(),hr=new _r(e,n),self.postMessage({[yr]:{monoCmd:"channel_created",threadId:e,port:r}},[r]),hr}const yr="__mono_message_please_dont_collide__";function wr(e){return void 0!==e&&"object"==typeof e&&null!==e&&yr in e}function vr(){u.jsSynchronizationContextInstalled||v(!1,"Please use dedicated worker for working with JavaScript interop. See https://github.com/dotnet/runtime/blob/main/src/mono/wasm/threads.md#JS-interop-on-dedicated-threads")}const kr=[null];function Sr(e,t){jr.set(e,t),gt(`added module imports '${e}'`)}function Er(e,t,n){if(!e)throw new Error("Assert failed: Null reference");e[t]=n}function Tr(e,t){if(!e)throw new Error("Assert failed: Null reference");return e[t]}function Ur(e,t){if(!e)throw new Error("Assert failed: Null reference");return t in e}function Ir(e,t){if(!e)throw new Error("Assert failed: Null reference");return typeof e[t]}function Ar(){return globalThis}const xr=new Map,jr=new Map;function Cr(e,t){e&&"string"==typeof e||v(!1,"module_name must be string"),t&&"string"==typeof t||v(!1,"module_url must be string"),vr();let n=xr.get(e);const r=!n;return r&&(gt(`importing ES6 module '${e}' from '${t}'`),n=import(t),xr.set(e,n)),_o((async()=>{const o=await n;return r&&(jr.set(e,o),gt(`imported ES6 module '${e}' from '${t}'`)),o}))}function Rr(e,t,n){const r=function(e,t){let n="unknown exception";if(t){n=t.toString();const e=t.stack;e&&(e.startsWith(n)?n=e:n+="\n"+e),n=St(n)}return e&&($e(),Z(e,1)),n}(e,t);dt(r,n)}function Lr(e,t){e&&($e(),Z(e,0)),t&&t.clear()}function $r(){d.assert_runtime_running(),u.mono_wasm_bindings_is_ready||v(!1,"Please use dedicated worker for working with JavaScript interop. See https://github.com/dotnet/runtime/blob/main/src/mono/wasm/threads.md#JS-interop-on-dedicated-threads")}const Dr="function"==typeof globalThis.WeakRef;function Nr(e){return Dr?new WeakRef(e):{deref:()=>e,dispose:()=>{e=null}}}const Br=new Map,Mr=new Map;let Pr=0;function Or(e){if(Br.has(e))return Br.get(e);const t=xt.mono_wasm_assembly_load(e);return Br.set(e,t),t}function Fr(e,t){Pr||(Pr=xt.mono_wasm_get_corlib());let n=function(e,t,n){let r=Mr.get(e);r||Mr.set(e,r=new Map);let o=r.get(t);return o||(o=new Map,r.set(t,o)),o.get(n)}(Pr,e,t);if(void 0!==n)return n;if(n=xt.mono_wasm_assembly_find_class(Pr,e,t),!n)throw new Error(`Failed to find corlib class ${e}.${t}`);return function(e,t,n,r){const o=Mr.get(e);if(!o)throw new Error("internal error");const s=o.get(t);if(!s)throw new Error("internal error");s.set(n,r)}(Pr,e,t,n),n}function zr(e,t){$r();const n=We();try{if(xt.mono_wasm_invoke_method_bound(e,t,n.address))throw new Error("ERR24: Unexpected error: "+ut(n));if(function(e){return e||v(!1,"Null args"),En(e)!==L.None}(t))throw rr(mn(t,0))}finally{n.release()}}const Vr=new Map;async function Wr(e){if($r(),!Vr.get(e)){const t=rn(),n=Or(e);if(!n)throw new Error("Could not find assembly: "+e);const r=xt.mono_wasm_assembly_find_class(n,u.runtime_interop_namespace,"__GeneratedInitializer");if(r){const e=xt.mono_wasm_assembly_find_method(r,"__Register_",-1);if(e){const t=We(),n=We();try{if(xt.mono_wasm_invoke_method_ref(e,U,j,t.address,n.address),t.value!==k){const e=ut(n);throw new Error(e)}}finally{t.release(),n.release()}}}else v(!1,`JSExport with multi-threading enabled is not supported with assembly ${e} as it was generated with the .NET 7 SDK`),xt.mono_wasm_runtime_run_module_cctor(n);on(t,"mono.getAssemblyExports:",e)}return Vr.get(e)||{}}function Hr(e){const t=e.substring(e.indexOf("[")+1,e.indexOf("]")).trim(),n=(e=e.substring(e.indexOf("]")+1).trim()).substring(e.indexOf(":")+1);let r="",o=e=e.substring(0,e.indexOf(":")).trim();if(-1!=e.indexOf(".")){const t=e.lastIndexOf(".");r=e.substring(0,t),o=e.substring(t+1)}if(!t.trim())throw new Error("No assembly name specified "+e);if(!o.trim())throw new Error("No class name specified "+e);if(!n.trim())throw new Error("No method name specified "+e);return{assembly:t,namespace:r,classname:o,methodname:n}}const qr="function"==typeof globalThis.FinalizationRegistry;let Gr;const Jr=[null],Xr=[];let Yr=1;const Kr=new Map;qr&&(Gr=new globalThis.FinalizationRegistry(io));const Zr=Symbol.for("wasm js_owned_gc_handle"),Qr=Symbol.for("wasm cs_owned_js_handle"),eo=Symbol.for("wasm do_not_force_dispose");function to(e){return e!==A&&e!==I?Jr[e]:null}function no(e){if(e[Qr])return e[Qr];const t=Xr.length?Xr.pop():Yr++;return Jr[t]=e,Object.isExtensible(e)&&(e[Qr]=t),t}function ro(e){const t=Jr[e];null!=t&&(void 0!==t[Qr]&&(t[Qr]=void 0),Jr[e]=void 0,Xr.push(e))}function oo(e,t){e[Zr]=t,qr&&Gr.register(e,t,e);const n=Nr(e);Kr.set(t,n)}function so(e,t){e&&(t=e[Zr],e[Zr]=x,qr&&Gr.unregister(e)),t!==x&&Kr.delete(t)&&u.javaScriptExports.release_js_owned_object_by_gc_handle(t)}function ao(e){const t=e[Zr];if(t==x)throw new Error("Assert failed: ObjectDisposedException");return t}function io(e){d.is_exited()||so(null,e)}function co(e){if(!e)return null;const t=Kr.get(e);return t?t.deref():null}function lo(e,t){let n=!1,r=!1,o=0,s=0,a=0,i=0;const c=[...Kr.keys()];for(const e of c){const r=Kr.get(e),o=r.deref();if(qr&&o&&Gr.unregister(o),o){const s="boolean"==typeof o[eo]&&o[eo];if(t&&yt(`Proxy of C# ${typeof o} with GCHandle ${e} was still alive. ${s?"keeping":"disposing"}.`),s)n=!0;else{const t=d.getPromiseController(o);t&&t.reject(new Error("WebWorker which is origin of the Task is being terminated.")),"function"==typeof o.dispose&&o.dispose(),o[Zr]===e&&(o[Zr]=x),!Dr&&r&&r.dispose(),a++}}}n||(Kr.clear(),qr&&(Gr=new globalThis.FinalizationRegistry(io)));for(let e=0;en.resolve(e))).catch((e=>n.reject(e))),t}function fo(e){const t=co(e);if(!t)return;const n=t.promise;n||v(!1,`Expected Promise for GCHandle ${e}`),d.assertIsControllablePromise(n),d.getPromiseController(n).reject(new Error("OperationCanceledException"))}let mo=0;function ho(){mo--}const go="For more information see https://aka.ms/dotnet-wasm-jsinterop";function bo(e,t,n){if(t===L.None||t===L.Void)return;let r,o,s,a;o=Fn(yn(e)),s=Fn(wn(e)),a=Fn(vn(e));const i=bn(e);r=yo(i),t===L.Nullable&&(t=i);const c=yo(t),l=yn(e),u=n*_n;return(e,t)=>{c(e+u,t,l,r,o,s,a)}}function yo(e){if(e===L.None||e===L.Void)return;const t=ln.get(e);return t&&"function"==typeof t||v(!1,`ERR30: Unknown converter for type ${e}`),t}function wo(e,t){null==t?Tn(e,L.None):(Tn(e,L.Boolean),In(e,t))}function vo(e,t){null==t?Tn(e,L.None):(Tn(e,L.Byte),function(e,t){e||v(!1,"Null arg"),H(e,t)}(e,t))}function ko(e,t){null==t?Tn(e,L.None):(Tn(e,L.Char),function(e,t){e||v(!1,"Null arg"),q(e,t)}(e,t))}function So(e,t){null==t?Tn(e,L.None):(Tn(e,L.Int16),function(e,t){e||v(!1,"Null arg"),K(e,t)}(e,t))}function Eo(e,t){null==t?Tn(e,L.None):(Tn(e,L.Int32),function(e,t){e||v(!1,"Null arg"),Q(e,t)}(e,t))}function To(e,t){null==t?Tn(e,L.None):(Tn(e,L.Int52),function(e,t){if(e||v(!1,"Null arg"),!Number.isSafeInteger(t))throw new Error(`Assert failed: Value is not an integer: ${t} (${typeof t})`);se(e,t)}(e,t))}function Uo(e,t){null==t?Tn(e,L.None):(Tn(e,L.BigInt64),function(e,t){e||v(!1,"Null arg"),re(e,t)}(e,t))}function Io(e,t){null==t?Tn(e,L.None):(Tn(e,L.Double),jn(e,t))}function Ao(e,t){null==t?Tn(e,L.None):(Tn(e,L.Single),function(e,t){e||v(!1,"Null arg"),oe(e,t)}(e,t))}function xo(e,t){null==t?Tn(e,L.None):(Tn(e,L.IntPtr),An(e,t))}function jo(e,t){if(null==t)Tn(e,L.None);else{if(!(t instanceof Date))throw new Error("Assert failed: Value is not a Date");Tn(e,L.DateTime),xn(e,t)}}function Co(e,t){if(null==t)Tn(e,L.None);else{if(!(t instanceof Date))throw new Error("Assert failed: Value is not a Date");Tn(e,L.DateTimeOffset),xn(e,t)}}function Ro(e,t){if(null==t)Tn(e,L.None);else{if(Tn(e,L.String),"string"!=typeof t)throw new Error("Assert failed: Value is not a String");Lo(e,t)}}function Lo(e,t){const n=Dn(e);try{dt(t,n)}finally{n.release()}}function $o(e){Tn(e,L.None)}function Do(e,t,n,r,o,s,a){if(null==t)return void Tn(e,L.None);if(!(t&&t instanceof Function))throw new Error("Assert failed: Value is not a Function");const i=e=>{const n=mn(e,0),c=mn(e,1),l=mn(e,2),u=mn(e,3),d=mn(e,4);try{let e,n,p;$&&i.isDisposed&&v(!1,"Function is disposed and should not be invoked anymore."),o&&(e=o(l)),s&&(n=s(u)),a&&(p=a(d));const _=t(e,n,p);r&&r(c,_)}catch(e){Mo(n,e)}};i[dn]=!0,i.isDisposed=!1,i.dispose=()=>{i.isDisposed=!0},Rn(e,no(i)),Tn(e,L.Function)}class No{constructor(e){this.promise=e}dispose(){so(this,x)}get isDisposed(){return this[Zr]===x}}function Bo(e,t,n,r){if(null==t)return void Tn(e,L.None);if(!po(t))throw new Error("Assert failed: Value is not a Promise");const o=u.javaScriptExports.create_task_callback();$n(e,o),Tn(e,L.Task);const s=new No(t);oo(s,o),mo++,t.then((e=>{try{d.assert_runtime_running(),s.isDisposed&&v(!1,"This promise can't be propagated to managed code, because the Task was already freed."),$&&ho(),u.javaScriptExports.complete_task(o,null,e,r||Oo),so(s,o)}catch(e){yt("Exception marshalling result of JS promise to CS: ",e)}})).catch((e=>{try{d.assert_runtime_running(),s.isDisposed&&v(!1,"This promise can't be propagated to managed code, because the Task was already freed."),$&&ho(),u.javaScriptExports.complete_task(o,e,null,void 0),so(s,o)}catch(e){d.is_exited()||yt("Exception marshalling error of JS promise to CS: ",e)}}))}function Mo(e,t){if(null==t)Tn(e,L.None);else if(t instanceof ManagedError)Tn(e,L.Exception),$n(e,ao(t));else{if("object"!=typeof t&&"string"!=typeof t)throw new Error("Assert failed: Value is not an Error "+typeof t);Tn(e,L.JSException),Lo(e,t.toString());const n=t[Qr];Rn(e,n||no(t))}}function Po(e,t){if(null==t)Tn(e,L.None);else{if(void 0!==t[Zr])throw new Error(`Assert failed: JSObject proxy of ManagedObject proxy is not supported. ${go}`);if("function"!=typeof t&&"object"!=typeof t)throw new Error(`Assert failed: JSObject proxy of ${typeof t} is not supported`);Tn(e,L.JSObject),Rn(e,no(t))}}function Oo(e,t){if(null==t)Tn(e,L.None);else{const n=t[Zr],r=typeof t;if(void 0===n)if("string"===r||"symbol"===r)Tn(e,L.String),Lo(e,t);else if("number"===r)Tn(e,L.Double),jn(e,t);else{if("bigint"===r)throw new Error("NotImplementedException: bigint");if("boolean"===r)Tn(e,L.Boolean),In(e,t);else if(t instanceof Date)Tn(e,L.DateTime),xn(e,t);else if(t instanceof Error)Mo(e,t);else if(t instanceof Uint8Array)zo(e,t,L.Byte);else if(t instanceof Float64Array)zo(e,t,L.Double);else if(t instanceof Int32Array)zo(e,t,L.Int32);else if(Array.isArray(t))zo(e,t,L.Object);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(po(t))Bo(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=no(t);Tn(e,L.JSObject),Rn(e,n)}}}}else{if(ao(t),t instanceof ArraySegment)throw new Error("NotImplementedException: ArraySegment. "+go);if(t instanceof ManagedError)Tn(e,L.Exception),$n(e,n);else{if(!(t instanceof ManagedObject))throw new Error("NotImplementedException "+r+". "+go);Tn(e,L.Object),$n(e,n)}}}}function Fo(e,t,n){n||v(!1,"Expected valid element_type parameter"),zo(e,t,n)}function zo(e,t,r){if(null==t)Tn(e,L.None);else{const o=Mn(r);-1==o&&v(!1,`Element type ${L[r]} not supported`);const s=t.length,a=o*s,i=n._malloc(a);if(r==L.String){if(!Array.isArray(t))throw new Error("Assert failed: Value is not an Array");V(i,a),xt.mono_wasm_register_root(i,a,"marshal_array_to_cs");for(let e=0;e>2,(i>>2)+s).set(t)}else{if(r!=L.Double)throw new Error("not implemented");if(!(Array.isArray(t)||t instanceof Float64Array))throw new Error("Assert failed: Value is not an Array or Float64Array");Le().subarray(i>>3,(i>>3)+s).set(t)}An(e,i),Tn(e,L.Array),function(e,t){e||v(!1,"Null arg"),X(e+4,t)}(e,r),Bn(e,t.length)}}function Vo(e,t,n){if(n||v(!1,"Expected valid element_type parameter"),t.isDisposed)throw new Error("Assert failed: ObjectDisposedException");Ho(n,t._viewType),Tn(e,L.Span),An(e,t._pointer),Bn(e,t.length)}function Wo(e,t,n){n||v(!1,"Expected valid element_type parameter");const r=ao(t);r||v(!1,"Only roundtrip of ArraySegment instance created by C#"),Ho(n,t._viewType),Tn(e,L.ArraySegment),An(e,t._pointer),Bn(e,t.length),$n(e,r)}function Ho(e,t){if(e==L.Byte){if(0!=t)throw new Error("Assert failed: Expected MemoryViewType.Byte")}else if(e==L.Int32){if(1!=t)throw new Error("Assert failed: Expected MemoryViewType.Int32")}else{if(e!=L.Double)throw new Error(`NotImplementedException ${L[e]} `);if(2!=t)throw new Error("Assert failed: Expected MemoryViewType.Double")}}const qo={get modulePThread(){return n.PThread},getWorker:e=>{var t;return null===(t=qo.modulePThread.pthreads[e])||void 0===t?void 0:t.worker},getThreadId:e=>{if(void 0!==e.pthread)return e.pthread.threadInfoStruct},allocateUnusedWorker:()=>{qo.modulePThread.allocateUnusedWorker()},getUnusedWorkerPool:()=>qo.modulePThread.unusedWorkers,loadWasmModuleToWorker:e=>qo.modulePThread.loadWasmModuleToWorker(e)},Go=new Map;class Jo{constructor(e,t,n){this.pthreadPtr=e,this.worker=t,this.port=n}postMessageToWorker(e){this.port.postMessage(e)}}const Xo=new Map;function Yo(e){{const t=e.loadWasmModuleToWorker;e.loadWasmModuleToWorker=e=>{const n=t(e);return function(e){e.addEventListener("message",(t=>function(e,t){const n=t.data;if(wr(r=n)&&"preload"===r[yr].monoCmd)n[yr].port.postMessage((o=u.config,{type:"pthread",cmd:"apply_mono_config",config:JSON.stringify(o)}));else if(function(e){return!(!wr(e)||"channel_created"!==e[yr].monoCmd)}(n)){gt("received the channel created message",n,e);const t=n[yr].port,r=n[yr].threadId,o=function(e,t,n){const r=new Jo(e,t,n);return Go.set(e,r),r}(r,e,t);t.addEventListener("message",(e=>function(e,t){gt("got message from worker on the dedicated channel",e.data,t)}(e,o))),t.start(),function(e,t){const n=Xo.get(e);void 0!==n&&(n.forEach((e=>e.resolve(t))),Xo.delete(e))}(r,o)}var r,o}(e,t))),gt("afterLoadWasmModuleToWorker added message event handler",e)}(e),n};const r=e.threadInitTLS;e.threadInitTLS=()=>{r(),function(){if(c){const e=n._pthread_self();C(e)&&v(!1,"pthread_self() returned null"),gt("after thread init, pthread ptr 0x"+e.toString(16));const t=br(e);fr.dispatchEvent(pr(ur,t))}}()},e.allocateUnusedWorker=Ko}}function Ko(){gt("replacementAllocateUnusedWorker");const e=d.resolve_single_asset_path("js-module-threads").resolvedUrl;void 0===e&&v(!1,"could not resolve the uri for the js-module-threads asset");const t=new Worker(e);qo.getUnusedWorkerPool().push(t)}const Zo={now:function(){return Date.now()}};function Qo(e){void 0===globalThis.performance&&(globalThis.performance=Zo),e.require=r.require,e.scriptDirectory=d.scriptDirectory,n.locateFile===n.__locateFile&&(n.locateFile=d.locateFile),e.fetch=d.fetch_like,e.noExitRuntime=a&&!c,e.pthreadReplacements&&Yo(e.pthreadReplacements);const t=e.updateMemoryViews;u.updateMemoryViews=e.updateMemoryViews=()=>{t()}}async function es(){var e;if(void 0===globalThis.Event&&(globalThis.Event=class{constructor(e){this.type=e}}),void 0===globalThis.EventTarget&&(globalThis.EventTarget=class{constructor(){this.subscribers=new Map}addEventListener(e,t,n){if(void 0===t||null==t)return;let r=!1;if(void 0!==n)for(const[e,t]of Object.entries(n)){if("once"!==e)throw new Error(`FIXME: addEventListener polyfill doesn't implement option '${e}'`);r=!!t}this.subscribers.has(e)||this.subscribers.set(e,[]);const o=this.subscribers.get(e);if(void 0===o)throw new Error("can't happen");o.push({listener:t,oneShot:r})}removeEventListener(e,t,n){if(void 0===t||null==t)return;if(void 0!==n)throw new Error("FIXME: removeEventListener polyfill doesn't implement options");if(!this.subscribers.has(e))return;const r=this.subscribers.get(e);if(void 0===r)return;let o=-1;const s=r.length;for(let e=0;e-1&&r.splice(o,1)}dispatchEvent(e){if(!this.subscribers.has(e.type))return!0;let t=this.subscribers.get(e.type);if(void 0===t)return!0;let n=!1;for(const e of t)if(e.oneShot){n=!0;break}n&&(t=t.slice(0));for(const n of t){const t=n.listener;n.oneShot&&this.removeEventListener(e.type,t),"function"==typeof t?t.call(this,e):t.handleEvent(e)}return!0}}),o){if(globalThis.performance===Zo){const{performance:e}=r.require("perf_hooks");globalThis.performance=e}if(r.process=await import("process"),globalThis.crypto||(globalThis.crypto={}),!globalThis.crypto.getRandomValues){let e;try{e=r.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.")}}}u.subtle=null===(e=globalThis.crypto)||void 0===e?void 0:e.subtle}function ts(e){const t=xt.mono_wasm_assembly_find_method(u.runtime_interop_exports_class,e,-1);if(!t)throw"Can't find method "+u.runtime_interop_namespace+"."+u.runtime_interop_exports_classname+"."+e;return t}function ns(){if("function"!=typeof globalThis.fetch||"function"!=typeof globalThis.AbortController)throw new Error(o?"Please install `node-fetch` and `node-abort-controller` npm packages to enable HTTP client support. See also https://aka.ms/dotnet-wasm-features":"This browser doesn't support fetch API. Please use a modern browser. See also https://aka.ms/dotnet-wasm-features")}function rs(){return"undefined"!=typeof Response&&"body"in Response.prototype&&"function"==typeof ReadableStream}function os(){return ns(),new AbortController}function ss(e){e.abort()}function as(e){e.__abort_controller.abort(),e.__reader&&e.__reader.cancel().catch((e=>{e&&"AbortError"!==e.name&&n.err("Error in http_wasm_abort_response: "+e)}))}function is(e,t,n,r,o,s,a,i){return cs(e,t,n,r,o,s,new Span(a,i,0).slice())}function cs(e,t,n,r,o,s,a){ns(),e&&"string"==typeof e||v(!1,"expected url string"),t&&n&&Array.isArray(t)&&Array.isArray(n)&&t.length===n.length||v(!1,"expected headerNames and headerValues arrays"),r&&o&&Array.isArray(r)&&Array.isArray(o)&&r.length===o.length||v(!1,"expected headerNames and headerValues arrays");const i=new Headers;for(let e=0;e{const t=await d.fetch_like(e,c);return t.__abort_controller=s,t}))}function ls(e){if(!e.__headerNames&&(e.__headerNames=[],e.__headerValues=[],e.headers&&e.headers.entries)){const t=e.headers.entries();for(const n of t)e.__headerNames.push(n[0]),e.__headerValues.push(n[1])}}function us(e){return ls(e),e.__headerNames}function ds(e){return ls(e),e.__headerValues}function ps(e){return _o((async()=>{const t=await e.arrayBuffer();return e.__buffer=t,e.__source_offset=0,t.byteLength}))}function _s(e,t){if(e.__buffer||v(!1,"expected resoved arrayBuffer"),e.__source_offset==e.__buffer.byteLength)return 0;const n=new Uint8Array(e.__buffer,e.__source_offset);t.set(n,0);const r=Math.min(t.byteLength,n.byteLength);return e.__source_offset+=r,r}function fs(e,t,n){const r=new Span(t,n,0);return _o((async()=>{if(e.__reader||(e.__reader=e.body.getReader()),e.__chunk||(e.__chunk=await e.__reader.read(),e.__source_offset=0),e.__chunk.done)return 0;const t=e.__chunk.value.byteLength-e.__source_offset;t>0||v(!1,"expected remaining_source to be greater than 0");const n=Math.min(t,r.byteLength),o=e.__chunk.value.subarray(e.__source_offset,e.__source_offset+n);return r.set(o,0),e.__source_offset+=n,t==n&&(e.__chunk=void 0),n}))}let ms,hs=0,gs=0;function bs(){if(!d.isChromium)return;const e=(new Date).valueOf(),t=e+36e4;for(let n=Math.max(e+1e3,hs);n0;)--gs,xt.mono_background_exec()}function mono_wasm_schedule_timer_tick(){n.maybeExit(),d.is_runtime_running()&&(ms=void 0,xt.mono_wasm_execute_timer())}class vs{constructor(){this.queue=[],this.offset=0}getLength(){return this.queue.length-this.offset}isEmpty(){return 0==this.queue.length}enqueue(e){this.queue.push(e)}dequeue(){if(0===this.queue.length)return;const e=this.queue[this.offset];return this.queue[this.offset]=null,2*++this.offset>=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 ks=Symbol.for("wasm ws_pending_send_buffer"),Ss=Symbol.for("wasm ws_pending_send_buffer_offset"),Es=Symbol.for("wasm ws_pending_send_buffer_type"),Ts=Symbol.for("wasm ws_pending_receive_event_queue"),Us=Symbol.for("wasm ws_pending_receive_promise_queue"),Is=Symbol.for("wasm ws_pending_open_promise"),As=Symbol.for("wasm wasm_ws_pending_open_promise_used"),xs=Symbol.for("wasm ws_pending_close_promises"),js=Symbol.for("wasm ws_pending_send_promises"),Cs=Symbol.for("wasm ws_is_aborted"),Rs=Symbol.for("wasm ws_on_closed"),Ls=Symbol.for("wasm wasm_ws_close_sent"),$s=Symbol.for("wasm wasm_ws_close_received"),Ds=Symbol.for("wasm ws_receive_status_ptr"),Ns=65536,Bs=new Uint8Array;function Ms(e){var t,n;return e.readyState!=WebSocket.CLOSED?null!==(t=e.readyState)&&void 0!==t?t:-1:0==e[Ts].getLength()?null!==(n=e.readyState)&&void 0!==n?n:-1:WebSocket.OPEN}function Ps(e,t,n,r){!function(){if(i)throw new Error("WebSockets are not supported in shell JS engine.");if("function"!=typeof globalThis.WebSocket)throw new Error(o?"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")}(),e&&"string"==typeof e||v(!1,"ERR12: Invalid uri "+typeof e),"function"!=typeof r&&v(!1,"ERR12: Invalid onClosed "+typeof r);const s=new globalThis.WebSocket(e,t||void 0),{promise_control:a}=w();s[Ts]=new vs,s[Us]=new vs,s[Is]=a,s[js]=[],s[xs]=[],s[Ds]=n,s[Rs]=r,s.binaryType="arraybuffer";const c=()=>{s[Cs]||d.is_exited()||(a.resolve(s),bs())},l=e=>{s[Cs]||d.is_exited()||(function(e,t){const n=e[Ts],r=e[Us];if("string"==typeof t.data)n.enqueue({type:0,data:st(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();qs(e,n,t.buffer_ptr,t.buffer_length),t.resolve()}bs()}(s,e),bs())},u=e=>{if(!(s.removeEventListener("message",l),s[Cs]||d.is_exited())){s[$s]=!0,r(e.code,e.reason),a.reject(new Error(e.reason));for(const e of s[xs])e.resolve();s[Us].drain((e=>{Q(n,0),Q(n+4,2),Q(n+8,1),e.resolve()})),s[Rs].dispose()}},p=e=>{if(s[Cs])return;if(d.is_exited())return;s.removeEventListener("message",l);const t=new Error(e.message||"WebSocket error");yt("WebSocket error",t),Hs(s,t)};return s.addEventListener("message",l),s.addEventListener("open",c,{once:!0}),s.addEventListener("close",u,{once:!0}),s.addEventListener("error",p,{once:!0}),s.dispose=()=>{s.removeEventListener("message",l),s.removeEventListener("open",c),s.removeEventListener("close",u),s.removeEventListener("error",p),Ws(s)},s}function Os(e){e||v(!1,"ERR17: expected ws instance");const t=e[Is];return e[As]=!0,t.promise}function Fs(e,t,r,o,s){if(e||v(!1,"ERR17: expected ws instance"),e[Cs]||e[Ls])return Promise.reject(new Error("InvalidState: The WebSocket is not connected."));if(e.readyState===WebSocket.CLOSED)return null;const a=function(e,t,r,o){let s=e[ks],a=0;const i=t.byteLength;if(s){if(a=e[Ss],r=e[Es],0!==i){if(a+i>s.length){const n=new Uint8Array(1.5*(a+i+50));n.set(s,0),n.subarray(a).set(t),e[ks]=s=n}else s.subarray(a).set(t);a+=i,e[Ss]=a}}else o?0!==i&&(s=t.slice(),a=i):(0!==i&&(s=t.slice(),a=i,e[Ss]=a,e[ks]=s),e[Es]=r);return o?0==a||null==s?Bs:0===r?function(e){return void 0===Qe?n.UTF8ArrayToString(e,0,e.byteLength):Qe.decode(e)}(ft(s,0,a)):s.subarray(0,a):null}(e,new Uint8Array(xe().buffer,t,r),o,s);return s&&a?function(e,t){if(e.send(t),e[ks]=null,e.bufferedAmount{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)};return globalThis.setTimeout(a,0),n}(e,a):null}function zs(e,t,n){if(e||v(!1,"ERR18: expected ws instance"),e[Cs]){const t=e[Ds];return Q(t,0),Q(t+4,2),Q(t+8,1),null}const r=e[Ts],o=e[Us];if(r.getLength())return 0!=o.getLength()&&v(!1,"ERR20: Invalid WS state"),qs(e,r,t,n),null;if(e[$s]){const t=e[Ds];return Q(t,0),Q(t+4,2),Q(t+8,1),null}const{promise:s,promise_control:a}=w(),i=a;return i.buffer_ptr=t,i.buffer_length=n,o.enqueue(i),s}function Vs(e,t,n,r){if(e||v(!1,"ERR19: expected ws instance"),e[Cs]||e[Ls]||e.readyState==WebSocket.CLOSED)return null;if(e[Ls]=!0,r){const{promise:r,promise_control:o}=w();return e[xs].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 Ws(e){var t;if(e||v(!1,"ERR18: expected ws instance"),!e[Cs]&&!e[Ls]){e[Cs]=!0,Hs(e,new Error("OperationCanceledException")),null===(t=e[Rs])||void 0===t||t.dispose();try{e.close(1e3,"Connection was aborted.")}catch(e){yt("WebSocket error while aborting",e)}}}function Hs(e,t){const n=e[Is],r=e[As];n&&r&&n.reject(t);for(const n of e[xs])n.reject(t);for(const n of e[js])n.reject(t);e[Us].drain((e=>{e.reject(t)}))}function qs(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(xe().buffer,n,r).set(e,0),o.offset+=s}const a=o.data.length===o.offset?1:0;a&&t.dequeue();const i=e[Ds];Q(i,s),Q(i+4,o.type),Q(i+8,a)}function Gs(e){return 1===xt.mono_wasm_load_icu_data(e)}function Js(e,t,r){gt(`Loaded:${e.name} as ${e.behavior} size ${r.length} from ${t}`);const o=rn(),s="string"==typeof e.virtualPath?e.virtualPath:e.name;let a=null;switch(e.behavior){case"dotnetwasm":case"js-module-threads":case"symbols":break;case"resource":case"assembly":case"pdb":d._loaded_files.push({url:t,file:s});case"heap":case"icu":a=ke(r);break;case"vfs":{const e=s.lastIndexOf("/");let t=e>0?s.substr(0,e):null,o=e>0?s.substr(e+1):s;o.startsWith("/")&&(o=o.substr(1)),t?(gt(`Creating directory '${t}'`),n.FS_createPath("/",t,!0,!0)):t="/",gt(`Creating file '${o}' in directory '${t}'`),n.FS_createDataFile(t,o,r,!0,!0,!0);break}default:throw new Error(`Unrecognized asset behavior:${e.behavior}, for asset ${e.name}`)}if("assembly"===e.behavior){if(!xt.mono_wasm_add_assembly(s,a,r.length)){const e=d._loaded_files.findIndex((e=>e.file==s));d._loaded_files.splice(e,1)}}else"pdb"===e.behavior?xt.mono_wasm_add_assembly(s,a,r.length):"icu"===e.behavior?Gs(a)||n.err(`Error loading ICU asset ${e.name}`):"resource"===e.behavior&&xt.mono_wasm_add_satellite_assembly(s,e.culture||"",a,r.length);on(o,"mono.instantiateAsset:",e.name),++d.actual_instantiated_assets_count}async function Xs(e){try{const t=await e.pendingDownloadInternal.response;(await t.text()).split(/[\r\n]/).forEach((e=>{const t=e.split(/:/);t.length<2||(t[1]=t.splice(1).join(":"),vt.set(Number(t[0]),t[1]))})),gt(`Loaded ${vt.size} symbols`)}catch(t){bt(`Error loading symbol file ${e.name}: ${JSON.stringify(t)}`)}}function Ys(){return d.loadedFiles}const Ks={};function Zs(e){let t=Ks[e];if("string"!=typeof t){const n=xt.mono_jiterp_get_opcode_info(e,0);Ks[e]=t=at(n)}return t}const Qs=2,ea=64,ta=64,na=["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"],ra={};class oa{constructor(e){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.constantSlots=[],this.backBranchOffsets=[],this.callHandlerReturnAddresses=[],this.nextConstantSlot=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 sa],this.clear(e),this.cfg=new aa(this)}clear(e){this.options=La(),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.nextConstantSlot=0,this.constantSlots.length=this.options.useConstants?e:0;for(let e=0;e=this.stack.length&&this.stack.push(new sa),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)}getWasmImports(){const e=n.getMemory();e instanceof WebAssembly.Memory||v(!1,`expected heap import to be WebAssembly.Memory but was ${e}`);const t={c:this.getConstants(),m:{h:e}},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!=(0|e)||0===e&&!0===t||v(!1,"Expected non-v128_load simd opcode or allowLoad==true"),this.current.appendULeb(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){let t=this.options.useConstants?this.constantSlots.indexOf(e):-1;this.options.useConstants&&t<0&&this.nextConstantSlot=0?(this.appendU8(35),this.appendLeb(t)):this.i32_const(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&&v(!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");this.beginSection(2),this.appendULeb(1+t.length+this.constantSlots.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=ha().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++)}defineFunction(e,t){const n={index:this.functions.length,name:e.name,typeName:e.type,typeIndex:this.functionTypes[e.type][0],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)}lea(e,t){"string"==typeof e?this.local(e):this.i32_const(e),this.i32_const(t),this.appendU8(106)}getArrayView(e){if(this.stackSize>1)throw new Error("Jiterpreter block stack not empty");return this.stack[0].getArrayView(e)}getConstants(){const e={};for(let t=0;t=this.capacity)throw new Error("Buffer full");const t=this.size;return xe()[this.buffer+this.size++]=e,t}appendU32(e){const t=this.size;return xt.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,0),this.size+=4,t}appendI32(e){const t=this.size;return xt.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,1),this.size+=4,t}appendF32(e){const t=this.size;return xt.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,2),this.size+=4,t}appendF64(e){const t=this.size;return xt.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=xt.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&&v(!1,`appendULeb expected number but got ${e}`),e>=0||v(!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=xt.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&&v(!1,`appendLeb expected number but got ${e}`),this.size+8>=this.capacity)throw new Error("Buffer full");const t=xt.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=xt.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){"number"!=typeof t&&(t=this.size),xe().copyWithin(e.buffer+e.size,this.buffer,this.buffer+t),e.size+=t}appendBytes(e,t){const n=this.size,r=xe();return e.buffer===r.buffer?("number"!=typeof t&&(t=e.length),r.copyWithin(this.buffer+n,e.byteOffset,e.byteOffset+t),this.size+=t):("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(xe().buffer,this.buffer,e?this.capacity:this.size)}}class aa{constructor(e){this.segments=[],this.backBranchTargets=null,this.lastSegmentEnd=0,this.overheadBytes=0,this.blockStack=[],this.backDispatchOffsets=[],this.dispatchTable=new Map,this.observedBranchTargets=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.builder.base,this.lastSegmentEnd=0,this.overheadBytes=10,this.dispatchTable.clear(),this.observedBranchTargets.clear(),this.trace=n,this.backDispatchOffsets.length=0}entry(e){this.entryIp=e,this.appendBlob(),1!==this.segments.length&&v(!1,"expected 1 segment"),"blob"!==this.segments[0].type&&v(!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)}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){this.observedBranchTargets.add(e),this.appendBlob(),this.segments.push({type:"branch",from:this.ip,target:e,isBackward:t,branchType:n}),this.overheadBytes+=4,t&&(this.overheadBytes+=11),3!==n&&2!==n||(this.overheadBytes+=17)}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.i32_const(0),this.builder.local("disp",33),this.builder.block(64,3));for(let e=0;ee-t));for(let e=0;e0&&bt("No back branch targets were reachable after filtering");else if(1===this.backDispatchOffsets.length)this.trace>0&&(this.backDispatchOffsets[0]===this.entryIp?bt(`Exactly one back dispatch offset and it was the entry point 0x${this.entryIp.toString(16)}`):bt(`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.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&&bt(`blockStack=${this.blockStack}`);for(let t=0;t1&&bt(`backward br from ${n.from.toString(16)} to ${n.target.toString(16)}: disp=${e}`),this.builder.i32_const(1),this.builder.local("backbranched",33),this.builder.i32_const(e),this.builder.local("disp",33),r=!0}else this.trace>0&&bt(`br from ${n.from.toString(16)} to ${n.target.toString(16)} failed: back branch target not in dispatch table`),t=-1;if(t>=0||r){let e=0;switch(n.branchType){case 2:_a(this.builder,n.from),this.builder.appendU8(12);break;case 3:this.builder.block(64,4),_a(this.builder,n.from),this.builder.appendU8(12),e=1;break;case 0:this.builder.appendU8(12);break;case 1:this.builder.appendU8(13);break;default:throw new Error("Unimplemented branch type")}this.builder.appendULeb(e+t),e&&this.builder.endBlock(),this.trace>1&&bt(`br from ${n.from.toString(16)} to ${n.target.toString(16)} breaking out ${e+t+1} level(s)`)}else{if(this.trace>0){const e=this.base;n.target>=e&&n.target1&&bt(`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),fa(this.builder,n.target,4),e&&this.builder.endBlock()}break}default:throw new Error("unreachable")}}return this.backBranchTargets&&(this.blockStack.length<=1||v(!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&&v(!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 ia,ca=-1,la=0;const ua={generation:0,compilation:0},da={traceCandidates:0,tracesCompiled:0,entryWrappersCompiled:0,jitCallsCompiled:0,directJitCallsCompiled:0,failures:0,bytesGenerated:0,nullChecksEliminated:0,nullChecksFused:0,backBranchesEmitted:0,backBranchesNotEmitted:0,simdFallback:{}},pa=globalThis.performance&&globalThis.performance.now?globalThis.performance.now.bind(globalThis.performance):Date.now;function _a(e,t){e.ptr_const(xt.mono_jiterp_get_polling_required_address()),e.appendU8(40),e.appendMemarg(0,2),e.block(64,4),e.local("frame"),e.i32_const(t),e.callImport("safepoint"),e.endBlock()}function fa(e,t,n){e.ip_const(t),e.options.countBailouts&&(e.i32_const(e.base),e.i32_const(n),e.callImport("bailout")),e.appendU8(15)}function ma(e,t,n,r){n<=e.options.monitoringLongDistance+2&&(e.local("cinfo"),e.i32_const(n),e.appendU8(54),e.appendMemarg(4,0),e.local("cinfo"),e.local("backbranched"),e.appendU8(54),e.appendMemarg(0,0)),e.ip_const(t),e.options.countBailouts&&(e.i32_const(e.base),e.i32_const(r),e.callImport("bailout")),e.appendU8(15)}function ha(){if(ia||(ia=n.getWasmIndirectFunctionTable()),!ia)throw new Error("Module did not export the indirect function table");return ia}function ga(e){e||v(!1,"Attempting to set null function into table"),u.storeMemorySnapshotPending&&v(!1,"Attempting to set function into table during creation of memory snapshot");const t=ha();la<=0&&(ca=t.length,la=512,t.grow(la));const n=ca;return ca++,la--,t.set(n,e),n}function ba(e,t,n,r,o){if(r<=0)return o&&e.appendU8(26),!0;if(r>=ea)return!1;if(0!==n)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 ya(e,t,n){ba(e,0,t,n,!0)||(e.i32_const(t),e.i32_const(n),e.appendU8(252),e.appendU8(11),e.appendU8(0))}function wa(e,t,n,r,o,s,a){if(r<=0)return o&&(e.appendU8(26),e.appendU8(26)),!0;if(r>=ta)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 va(e,t){return wa(e,0,0,t,!0)||(e.i32_const(t),e.appendU8(252),e.appendU8(10),e.appendU8(0),e.appendU8(0)),!0}function ka(){da.failures++,da.failures>=Qs&&(bt(`Disabling jiterpreter after ${da.failures} failures`),Ra({enableTraces:!1,enableInterpEntry:!1,enableJitCall:!1}))}const Sa={};function Ea(e){const t=Sa[e];return void 0===t?Sa[e]=xt.mono_jiterp_get_member_offset(e):t}function Ta(e){const t=n.asm[e];if("function"!=typeof t)throw new Error(`raw cwrap ${e} not found`);return t}const Ua={};function Ia(e){let t=Ua[e];return"number"!=typeof t&&(t=Ua[e]=xt.mono_jiterp_get_opcode_value_table_entry(e)),t}function Aa(e,t){return[e,e,t]}const xa={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",zeroPageOptimization:"jiterpreter-zero-page-optimization",enableStats:"jiterpreter-stats-enabled",disableHeuristic:"jiterpreter-disable-heuristic",estimateHeat:"jiterpreter-estimate-heat",countBailouts:"jiterpreter-count-bailouts",dumpTraces:"jiterpreter-dump-traces",useConstants:"jiterpreter-use-constants",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"};let ja=-1,Ca={};function Ra(e){for(const t in e){const n=xa[t];if(!n){wt(`Unrecognized jiterpreter option: ${t}`);continue}const r=e[t];"boolean"==typeof r?xt.mono_jiterp_parse_option((r?"--":"--no-")+n):"number"==typeof r?xt.mono_jiterp_parse_option(`--${n}=${r}`):wt(`Jiterpreter option must be a boolean or a number but was ${typeof r} '${r}'`)}}function La(){const e=xt.mono_jiterp_get_options_version();return e!==ja&&(function(){const e=xt.mono_jiterp_get_options_as_json(),t=at(e);n._free(e);const r=JSON.parse(t);Ca={};for(const e in xa){const t=xa[e];Ca[e]=r[t]}}(),ja=e),Ca}const $a={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","ConvertToDoubleLowerR8","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_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"]},Da={13:[65,-1],14:[65,0],15:[65,1],16:[65,2],17:[65,3],18:[65,4],19:[65,5],20:[65,6],21:[65,7],22:[65,8]},Na={463:168,469:174,464:170,470:176},Ba={515:[69,40,54],435:[106,40,54],437:[107,40,54],439:[107,40,54],443:[115,40,54],436:[124,41,55],438:[125,41,55],440:[125,41,55],444:[133,41,55],518:[106,40,54],522:[108,40,54],519:[124,41,55],523:[126,41,55],441:[140,42,56],442:[154,43,57],471:[178,40,56],474:[183,40,57],445:[184,40,57],472:[180,41,56],475:[185,41,57],446:[186,41,57],476:[187,42,57],473:[182,43,56],467:[1,52,55],468:[1,53,55],451:[113,40,54],459:[113,40,54],447:[117,40,54],455:[117,40,54],452:[113,41,54],460:[113,41,54],448:[117,41,54],456:[117,41,54],526:[116,40,54],527:[134,41,55],528:[117,40,54],529:[135,41,55],524:[118,40,54],525:[136,41,55],628:[119,40,54],629:[137,41,55],630:[120,40,54],631:[138,41,55],632:[103,40,54],634:[104,40,54],636:[105,40,54],633:[121,41,55],635:[122,41,55],637:[123,41,55]},Ma={401:187,402:1,405:187,406:1,409:187,410:1,413:187,414:1,419:187,420:1,423:187,424:1,433:187,434:1,427:187,428:1,65536:187,65537:187,65535:187,65539:1,65540:1,65538:1},Pa={351:[106,40,54],369:[106,40,54],371:[106,40,54],355:[107,40,54],359:[108,40,54],373:[108,40,54],375:[108,40,54],363:[109,40,54],367:[110,40,54],387:[111,40,54],391:[112,40,54],381:[113,40,54],383:[114,40,54],385:[115,40,54],395:[116,40,54],397:[117,40,54],393:[118,40,54],352:[124,41,55],356:[125,41,55],360:[126,41,55],364:[127,41,55],388:[129,41,55],368:[128,41,55],392:[130,41,55],382:[131,41,55],384:[132,41,55],386:[133,41,55],396:[134,41,55],398:[135,41,55],394:[136,41,55],353:[146,42,56],357:[147,42,56],361:[148,42,56],365:[149,42,56],354:[160,43,57],358:[161,43,57],362:[162,43,57],366:[163,43,57],399:[70,40,54],403:[71,40,54],421:[72,40,54],407:[74,40,54],425:[76,40,54],411:[78,40,54],431:[73,40,54],417:[75,40,54],429:[77,40,54],415:[79,40,54],400:[81,41,54],404:[82,41,54],422:[83,41,54],408:[85,41,54],426:[87,41,54],412:[89,41,54],432:[84,41,54],418:[86,41,54],430:[88,41,54],416:[90,41,54]},Oa={195:399,215:403,203:407,223:417,207:421,231:431,199:411,219:415,211:425,227:429,239:[399,!1,!0],249:[403,!1,!0],243:[407,!1,!0],253:[417,!1,!0],245:[421,!1,!0],257:[431,!1,!0],241:[411,!1,!0],251:[415,!1,!0],247:[425,!1,!0],255:[429,!1,!0],259:[399,65,!0],269:[403,65,!0],263:[407,65,!0],273:[417,65,!0],265:[421,65,!0],277:[431,65,!0],261:[411,65,!0],271:[415,65,!0],267:[425,65,!0],275:[429,65,!0],196:400,216:404,204:408,224:418,208:422,232:432,200:412,220:416,212:426,228:430,260:[400,66,!0],264:[408,66,!0],274:[418,66,!0],266:[422,66,!0],278:[432,66,!0],262:[412,66,!0],272:[416,66,!0],268:[426,66,!0],276:[430,66,!0],197:401,217:65535,205:409,225:419,209:423,233:433,201:413,221:65536,213:427,229:65537,198:402,218:65538,206:410,226:420,210:424,234:434,202:414,222:65539,214:428,230:65540},Fa={588:[!0,!1,159],615:[!0,!0,145],575:[!0,!1,155],602:[!0,!0,141],581:[!0,!1,156],608:[!0,!0,142],592:[!0,!1,153],619:[!0,!0,139],570:[!0,!1,"acos"],597:[!0,!0,"acosf"],571:[!0,!1,"acosh"],598:[!0,!0,"acoshf"],576:[!0,!1,"cos"],603:[!0,!0,"cosf"],568:[!0,!1,"asin"],595:[!0,!0,"asinf"],569:[!0,!1,"asinh"],596:[!0,!0,"asinhf"],587:[!0,!1,"sin"],614:[!0,!0,"sinf"],572:[!0,!1,"atan"],599:[!0,!0,"atanf"],573:[!0,!1,"atanh"],600:[!0,!0,"atanhf"],590:[!0,!1,"tan"],617:[!0,!0,"tanf"],577:[!0,!1,"cbrt"],604:[!0,!0,"cbrtf"],579:[!0,!1,"exp"],606:[!0,!0,"expf"],582:[!0,!1,"log"],609:[!0,!0,"logf"],583:[!0,!1,"log2"],610:[!0,!0,"log2f"],584:[!0,!1,"log10"],611:[!0,!0,"log10f"],593:[!1,!1,164],620:[!1,!0,150],594:[!1,!1,165],621:[!1,!0,151],574:[!1,!1,"atan2"],601:[!1,!0,"atan2f"],585:[!1,!1,"pow"],612:[!1,!0,"powf"],390:[!1,!1,"fmod"],389:[!1,!0,"fmodf"]},za={641:1,642:2,643:4,644:8},Va={641:44,642:46,643:40,644:41},Wa={641:58,642:59,643:54,644:55},Ha=new Set([20,21,22,23,24,25,26,27,28,29,30]),qa={47:[16,54],48:[16,54],49:[8,54],50:[8,54],51:[4,54],53:[4,56],52:[2,55],54:[2,57]},Ga={1:[16,40],2:[8,40],3:[4,40],5:[4,42],4:[2,41],6:[2,43]},Ja=new Set([81,84,85,86,87,82,83,88,89,90,91,92,93]),Xa={13:[16],14:[8],15:[4],16:[2]},Ya={10:100,11:132,12:164,13:196},Ka={6:[44,23],7:[46,26],8:[40,28],9:[41,30]};function Za(e,t){return ce(e+2*t)}function Qa(e,t){return fe(e+2*t)}function ei(e,t){return de(e+2*t)}function ti(e,t){return pe(e+2*t)}function ni(e){return pe(e+Ea(4))}function ri(e,t){const n=pe(ni(e)+Ea(5));return pe(n+t*Qi)}function oi(e,t){const n=pe(ni(e)+Ea(12));return pe(n+t*Qi)}function si(e,t,n){if(!n)return!1;for(let r=0;r=40||v(!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=mi(t,n,r);e.appendMemarg(t,o)}function gi(e,t,n,r){n>=54||v(!1,`Expected store opcode but got ${n}`),e.appendU8(n),void 0!==r&&e.appendULeb(r);const o=mi(t,n,r);e.appendMemarg(t,o),pi(t),void 0!==r&&pi(t+8)}function bi(e,t,n){"number"!=typeof n&&(n=512),n>0&&_i(t,n),e.lea("pLocals",t)}function yi(e,t,n,r){_i(t,r),ba(e,t,n,r,!1)||(bi(e,t,r),ya(e,n,r))}function wi(e,t,n,r){if(_i(t,r),wa(e,t,n,r,!1))return!0;bi(e,t,r),bi(e,n,0),va(e,r)}function vi(e,t){return 0!==xt.mono_jiterp_is_imethod_var_address_taken(ni(e.frame),t)}function ki(e,t,n,r){if(e.allowNullCheckOptimization&&ci.has(t)&&!vi(e,t))return da.nullChecksEliminated++,void(ui===t?r&&e.local("cknull_ptr"):(hi(e,t,40),e.local("cknull_ptr",r?34:33),ui=t));hi(e,t,40),e.local("cknull_ptr",34),e.appendU8(69),e.block(64,4),fa(e,n,2),e.endBlock(),r&&e.local("cknull_ptr"),e.allowNullCheckOptimization&&!vi(e,t)?(ci.set(t,n),ui=t):ui=-1}function Si(e,t,n){let r,o=54;const s=Da[n];if(s)e.local("pLocals"),e.appendU8(s[0]),r=s[1],e.appendLeb(r);else switch(n){case 23:e.local("pLocals"),r=Qa(t,2),e.i32_const(r);break;case 24:e.local("pLocals"),r=ei(t,2),e.i32_const(r);break;case 25:e.local("pLocals"),e.i52_const(0),o=55;break;case 27:e.local("pLocals"),e.appendU8(66),e.appendLebRef(t+4,!0),o=55;break;case 26:e.local("pLocals"),e.i52_const(Qa(t,2)),o=55;break;case 28:e.local("pLocals"),e.appendU8(67),e.appendF32(function(e,t){return n=e+2*t,xt.mono_wasm_get_f32_unaligned(n);var n}(t,2)),o=56;break;case 29:e.local("pLocals"),e.appendU8(68),e.appendF64(function(e,t){return n=e+2*t,xt.mono_wasm_get_f64_unaligned(n);var n}(t,2)),o=57;break;default:return!1}e.appendU8(o);const a=Za(t,1);return e.appendMemarg(a,2),pi(a),"number"==typeof r?ai.set(a,r):ai.delete(a),!0}function Ei(e,t,n){let r=40,o=54;switch(n){case 82:r=44;break;case 83:r=45;break;case 84:r=46;break;case 85:r=47;break;case 86:r=45,o=58;break;case 87:r=47,o=59;break;case 88:break;case 89:r=41,o=55;break;case 90:{const n=Za(t,3);return wi(e,Za(t,1),Za(t,2),n),!0}case 91:return wi(e,Za(t,1),Za(t,2),8),wi(e,Za(t,3),Za(t,4),8),!0;case 92:return wi(e,Za(t,1),Za(t,2),8),wi(e,Za(t,3),Za(t,4),8),wi(e,Za(t,5),Za(t,6),8),!0;case 93:return wi(e,Za(t,1),Za(t,2),8),wi(e,Za(t,3),Za(t,4),8),wi(e,Za(t,5),Za(t,6),8),wi(e,Za(t,7),Za(t,8),8),!0;default:return!1}return e.local("pLocals"),hi(e,Za(t,2),r),gi(e,Za(t,1),o),!0}function Ti(e,t,n,r){const o=r>=31&&r<=44||r>=58&&r<=68,s=Za(n,o?2:1),a=Za(n,3),i=Za(n,o?1:2),c=e.allowNullCheckOptimization&&ci.has(s)&&!vi(e,s);44!==r&&53!==r&&ki(e,s,n,!1);let l=54,u=40;switch(r){case 31:u=44;break;case 32:u=45;break;case 33:u=46;break;case 34:u=47;break;case 39:case 49:case 35:break;case 51:case 37:u=42,l=56;break;case 52:case 38:u=43,l=57;break;case 45:case 46:l=58;break;case 47:case 48:l=59;break;case 36:case 50:u=41,l=55;break;case 53: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.nullChecksEliminated++):(e.appendU8(13),e.appendULeb(0),fa(e,n,2),e.endBlock()),!0;case 40:{const t=Za(n,4);return bi(e,i,t),e.local("cknull_ptr"),0!==a&&(e.i32_const(a),e.appendU8(106)),va(e,t),!0}case 54:{const r=ri(t,Za(n,4));return e.local("cknull_ptr"),0!==a&&(e.i32_const(a),e.appendU8(106)),bi(e,i,0),e.ptr_const(r),e.callImport("value_copy"),!0}case 55:{const t=Za(n,4);return e.local("cknull_ptr"),0!==a&&(e.i32_const(a),e.appendU8(106)),bi(e,i,0),va(e,t),!0}case 44:case 43:return e.local("pLocals"),hi(e,s,40),0!==a&&(e.i32_const(a),e.appendU8(106)),gi(e,i,l),!0;default:return!1}return o&&e.local("pLocals"),e.local("cknull_ptr"),o?(e.appendU8(u),e.appendMemarg(a,0),gi(e,i,l),!0):(hi(e,i,u),e.appendU8(l),e.appendMemarg(a,0),!0)}function Ui(e,t,n,r){const o=r>=31&&r<=44||r>=58&&r<=68,s=Za(n,1),a=ri(t,Za(n,2)),i=ri(t,Za(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),fa(e,n,3),e.endBlock()}(e,a,n);let c=54,l=40;switch(r){case 58:l=44;break;case 59:l=45;break;case 60:l=46;break;case 61:l=47;break;case 66:case 73:case 62:break;case 75:case 64:l=42,c=56;break;case 76:case 65:l=43,c=57;break;case 69:case 70:c=58;break;case 71:case 72:c=59;break;case 63:case 74:l=41,c=55;break;case 77:return e.ptr_const(i),bi(e,s,0),e.callImport("copy_ptr"),!0;case 67:{const t=Za(n,4);return bi(e,s,t),e.ptr_const(i),va(e,t),!0}case 80:return e.local("pLocals"),e.ptr_const(i),gi(e,s,c),!0;default:return!1}return o?(e.local("pLocals"),e.ptr_const(i),e.appendU8(l),e.appendMemarg(0,0),gi(e,s,c),!0):(e.ptr_const(i),hi(e,s,l),e.appendU8(c),e.appendMemarg(0,0),!0)}function Ii(e,t,n){let r,o,s,a,i="math_lhs32",c="math_rhs32",l=!1;const u=Ma[n];if(u){e.local("pLocals");const r=1==u;return hi(e,Za(t,2),r?43:42),r||e.appendU8(u),hi(e,Za(t,3),r?43:42),r||e.appendU8(u),e.i32_const(n),e.callImport("relop_fp"),gi(e,Za(t,1),54),!0}switch(n){case 389:case 390:return Ri(e,t,n);default:if(a=Pa[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 363:case 364:case 367:case 368:case 387:case 388:case 391:case 392:{const s=368===n||392===n||364===n||388===n;i=s?"math_lhs64":"math_lhs32",c=s?"math_rhs64":"math_rhs32",e.block(),hi(e,Za(t,2),r),e.local(i,33),hi(e,Za(t,3),o),e.local(c,34),l=!0,s&&(e.appendU8(80),e.appendU8(69)),e.appendU8(13),e.appendULeb(0),fa(e,t,12),e.endBlock(),363!==n&&387!==n&&364!==n&&388!==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),fa(e,t,13),e.endBlock());break}case 369:case 371:case 373:case 375:hi(e,Za(t,2),r),e.local(i,34),hi(e,Za(t,3),o),e.local(c,34),e.i32_const(n),e.callImport(371===n||375===n?"ckovr_u4":"ckovr_i4"),e.block(64,4),fa(e,t,13),e.endBlock(),l=!0}return e.local("pLocals"),l?(e.local(i),e.local(c)):(hi(e,Za(t,2),r),hi(e,Za(t,3),o)),e.appendU8(a[0]),gi(e,Za(t,1),s),!0}function Ai(e,t,n){const r=Ba[n];if(!r)return!1;const o=r[1],s=r[2];switch((n<479||n>514)&&e.local("pLocals"),n){case 435:case 437:hi(e,Za(t,2),o),e.i32_const(1);break;case 439:e.i32_const(0),hi(e,Za(t,2),o);break;case 443:hi(e,Za(t,2),o),e.i32_const(-1);break;case 451:case 452:hi(e,Za(t,2),o),41===o&&e.appendU8(167),e.i32_const(255);break;case 459:case 460:hi(e,Za(t,2),o),41===o&&e.appendU8(167),e.i32_const(65535);break;case 447:case 448:hi(e,Za(t,2),o),41===o&&e.appendU8(167),e.i32_const(24),e.appendU8(116),e.i32_const(24);break;case 455:case 456:hi(e,Za(t,2),o),41===o&&e.appendU8(167),e.i32_const(16),e.appendU8(116),e.i32_const(16);break;case 436:case 438:hi(e,Za(t,2),o),e.i52_const(1);break;case 440:e.i52_const(0),hi(e,Za(t,2),o);break;case 444:hi(e,Za(t,2),o),e.i52_const(-1);break;case 518:case 522:case 526:case 528:case 524:case 628:case 630:hi(e,Za(t,2),o),e.i32_const(Qa(t,3));break;case 519:case 523:case 527:case 529:case 525:case 629:case 631:hi(e,Za(t,2),o),e.i52_const(Qa(t,3));break;default:hi(e,Za(t,2),o)}return 1!==r[0]&&e.appendU8(r[0]),gi(e,Za(t,1),s),!0}function xi(e,t,n,r){const o=141===r?t+6:t+8,s=oi(n,ce(o-2));e.local("pLocals"),e.ptr_const(o),e.appendU8(54),e.appendMemarg(s,0),e.callHandlerReturnAddresses.push(o)}function ji(e,t,n,r,o){const s=r>=235&&r<=278;switch(r){case 140:case 141:case 136:case 137:{const s=140===r||141===r,a=t+2*(o=136===r||140===r?ei(t,1):Qa(t,1));return o<=0?e.backBranchOffsets.indexOf(a)>=0?(s&&xi(e,t,n,r),e.cfg.branch(a,!0,0),da.backBranchesEmitted++,!0):(a1&&bt(`${Zs(r)} target 0x${a.toString(16)} before start of trace`):e.cfg.trace>0&&bt(`0x${t.toString(16)} ${Zs(r)} target 0x${a.toString(16)} not found in list `+e.backBranchOffsets.map((e=>"0x"+e.toString(16))).join(", ")),xt.mono_jiterp_boost_back_branch_target(a),fa(e,a,5),da.backBranchesNotEmitted++,!0):(e.branchTargets.add(a),s&&xi(e,t,n,r),e.cfg.branch(a,!1,0),!0)}case 153:case 151:case 237:case 235:case 154:case 152:{const n=154===r||152===r;o=Qa(t,2),hi(e,Za(t,1),n?41:40),151===r||235===r?e.appendU8(69):152===r?e.appendU8(80):154===r&&(e.appendU8(80),e.appendU8(69));break}default:if(void 0===Oa[r])throw new Error(`Unsupported relop branch opcode: ${Zs(r)}`);if(4!==xt.mono_jiterp_get_opcode_info(r,1))throw new Error(`Unsupported long branch opcode: ${Zs(r)}`)}if(!o)throw new Error("Branch had no displacement");const a=t+2*o;return o<0?e.backBranchOffsets.indexOf(a)>=0?(e.cfg.branch(a,!0,s?3:1),da.backBranchesEmitted++):(a1&&bt(`${Zs(r)} target 0x${a.toString(16)} before start of trace`):e.cfg.trace>0&&bt(`0x${t.toString(16)} ${Zs(r)} target 0x${a.toString(16)} not found in list `+e.backBranchOffsets.map((e=>"0x"+e.toString(16))).join(", ")),xt.mono_jiterp_boost_back_branch_target(a),e.block(64,4),fa(e,a,5),e.endBlock(),da.backBranchesNotEmitted++):(e.branchTargets.add(a),e.cfg.branch(a,!1,s?3:1)),!0}function Ci(e,t,n,r){const o=Oa[r];if(!o)return!1;const s=Array.isArray(o)?o[0]:o,a=Pa[s],i=Ma[s];if(!a&&!i)return!1;const c=Qa(t,3),l=a?a[1]:1===i?43:42;return hi(e,Za(t,1),l),a||1===i||e.appendU8(i),Array.isArray(o)&&o[1]?(e.appendU8(o[1]),e.appendLeb(Qa(t,2))):hi(e,Za(t,2),l),a||1==i||e.appendU8(i),a?e.appendU8(a[0]):(e.i32_const(s),e.callImport("relop_fp")),ji(e,t,n,r,c)}function Ri(e,t,n){let r,o,s,a;const i=Za(t,1),c=Za(t,2),l=Za(t,3),u=Fa[n];if(!u)return!1;if(r=u[0],o=u[1],"string"==typeof u[2]?s=u[2]:a=u[2],e.local("pLocals"),r){if(hi(e,c,o?42:43),a)e.appendU8(a);else{if(!s)throw new Error("internal error");e.callImport(s)}return gi(e,i,o?56:57),!0}if(hi(e,c,o?42:43),hi(e,l,o?42:43),a)e.appendU8(a);else{if(!s)throw new Error("internal error");e.callImport(s)}return gi(e,i,o?56:57),!0}function Li(e,t,n){const r=n>=95&&n<=120,o=n>=115&&n<=120,s=n>=103&&n<=114||n>=128&&n<=135||o,a=n>=109&&n<=114||n>=132&&n<=135||o;let i,c,l=-1,u=0,d=1;o?(i=Za(t,1),c=Za(t,2),l=Za(t,3),u=Qa(t,4),d=Qa(t,5)):s?a?r?(i=Za(t,1),c=Za(t,2),u=Qa(t,3)):(i=Za(t,2),c=Za(t,1),u=Qa(t,3)):r?(i=Za(t,1),c=Za(t,2),l=Za(t,3)):(i=Za(t,3),c=Za(t,1),l=Za(t,2)):r?(c=Za(t,2),i=Za(t,1)):(c=Za(t,1),i=Za(t,2));let p,_=54;switch(n){case 95:case 103:case 109:case 115:p=44;break;case 96:case 104:case 110:case 116:p=45;break;case 97:case 105:case 111:case 117:p=46;break;case 98:case 106:case 112:case 118:p=47;break;case 121:case 128:case 132:p=40,_=58;break;case 122:case 129:case 133:p=40,_=59;break;case 99:case 107:case 113:case 119:case 123:case 130:case 134:case 127:p=40;break;case 101:case 125:p=42,_=56;break;case 102:case 126:p=43,_=57;break;case 100:case 108:case 114:case 120:case 124:case 131:case 135:p=41,_=55;break;default:return!1}return ki(e,c,t,!1),r?(e.local("pLocals"),e.local("cknull_ptr"),o?(hi(e,l,40),0!==u&&(e.i32_const(u),e.appendU8(106),u=0),1!==d&&(e.i32_const(d),e.appendU8(108)),e.appendU8(106)):s&&l>=0?(hi(e,l,40),e.appendU8(106)):u<0&&(e.i32_const(u),e.appendU8(106),u=0),e.appendU8(p),e.appendMemarg(u,0),gi(e,i,_)):127===n?(e.local("cknull_ptr"),bi(e,i,0),e.callImport("copy_ptr")):(e.local("cknull_ptr"),s&&l>=0?(hi(e,l,40),e.appendU8(106)):u<0&&(e.i32_const(u),e.appendU8(106),u=0),hi(e,i,p),e.appendU8(_),e.appendMemarg(u,0)),!0}function $i(e,t,n,r,o){e.block(),hi(e,r,40),e.local("index",34);e.options.zeroPageOptimization,ki(e,n,t,!0),e.appendU8(40),e.appendMemarg(Ea(9),2),e.appendU8(73),e.appendU8(13),e.appendULeb(0),fa(e,t,9),e.endBlock(),e.local("cknull_ptr"),e.i32_const(Ea(1)),e.appendU8(106),e.local("index"),1!=o&&(e.i32_const(o),e.appendU8(108)),e.appendU8(106)}function Di(e,t,n,r){const o=r<=336&&r>=323||348===r,s=Za(n,o?2:1),a=Za(n,o?1:3),i=Za(n,o?3:2);let c,l,u=54;switch(r){case 348:return e.local("pLocals"),ki(e,s,n,!0),e.appendU8(40),e.appendMemarg(Ea(9),2),gi(e,a,54),!0;case 334:return e.local("pLocals"),l=Za(n,4),$i(e,n,s,i,l),gi(e,a,54),!0;case 345:return e.block(),hi(e,Za(n,1),40),hi(e,Za(n,2),40),hi(e,Za(n,3),40),e.callImport("stelem_ref"),e.appendU8(13),e.appendULeb(0),fa(e,n,10),e.endBlock(),!0;case 332:case 328:case 327:case 341:l=4,c=40;break;case 323:l=1,c=44;break;case 324:l=1,c=45;break;case 338:case 337:l=1,c=40,u=58;break;case 325:l=2,c=46;break;case 326:l=2,c=47;break;case 340:case 339:l=2,c=40,u=59;break;case 330:case 343:l=4,c=42,u=56;break;case 329:case 342:l=8,c=41,u=55;break;case 331:case 344:l=8,c=43,u=57;break;case 333:{const t=Za(n,4);return e.local("pLocals"),e.i32_const(Za(n,1)),e.appendU8(106),$i(e,n,s,i,t),va(e,t),_i(Za(n,1),t),!0}case 346:{const r=Za(n,5),o=ri(t,Za(n,4));return $i(e,n,s,i,r),bi(e,a,0),e.ptr_const(o),e.callImport("value_copy"),!0}case 347:{const t=Za(n,5);return $i(e,n,s,i,t),bi(e,a,0),va(e,t),!0}default:return!1}return o?(e.local("pLocals"),$i(e,n,s,i,l),e.appendU8(c),e.appendMemarg(0,0),gi(e,a,u)):($i(e,n,s,i,l),hi(e,a,c),e.appendU8(u),e.appendMemarg(0,0)),!0}function Ni(){if(void 0!==li)return li;try{const e=function(){const e=new oa(0);e.defineType("test",{},64,!0),e.defineFunction({type:"test",name:"test",export:!0,locals:{}},(()=>{e.i32_const(0),e.appendSimd(17),e.appendU8(26),e.appendU8(11)})),e.appendU32(1836278016),e.appendU32(1),e.generateTypeSection(),e.emitImportsAndFunctions(!1);const t=e.getArrayView();return new WebAssembly.Module(t)}();li=!!e}catch(e){bt("Disabling WASM SIMD support due to JIT failure",e),li=!1}return li}function Bi(e,t,n){const r=`${t}_${n.toString(16)}`;return"object"!=typeof e.importedFunctions[r]&&e.defineImportedFunction("s",r,t,!1,n),r}function Mi(e,t,n,r,o,s){if(e.options.enableSimd&&Ni())switch(o){case 2:if(function(e,t,n){const r=xt.mono_jiterp_get_simd_opcode(1,n);if(r>=0)return Ja.has(n)?(e.local("pLocals"),hi(e,Za(t,2),40),e.appendSimd(r,!0),e.appendMemarg(0,0),Pi(e,t)):(Oi(e,t),e.appendSimd(r),Pi(e,t)),!0;const o=Ya[n];if(o)return Oi(e,t),e.appendSimd(o),gi(e,Za(t,1),54),!0;switch(n){case 6:case 7:case 8:case 9:{const r=Ka[n];return e.local("pLocals"),e.v128_const(0),hi(e,Za(t,2),r[0]),e.appendSimd(r[1]),e.appendU8(0),gi(e,Za(t,1),253,11),!0}case 14:return Oi(e,t,7),Pi(e,t),!0;case 15:return Oi(e,t,8),Pi(e,t),!0;case 16:return Oi(e,t,9),Pi(e,t),!0;case 17:return Oi(e,t,10),Pi(e,t),!0;default:return!1}}(e,t,s))return!0;break;case 3:if(function(e,t,n){const r=xt.mono_jiterp_get_simd_opcode(2,n);if(r>=0){const o=Ha.has(n),s=qa[n];if(o)e.local("pLocals"),hi(e,Za(t,2),253,0),hi(e,Za(t,3),40),e.appendSimd(r),Pi(e,t);else if(Array.isArray(s)){const n=ii(e,Za(t,3)),o=s[0];if("number"!=typeof n)return wt(`${e.functions[0].name}: Non-constant lane index passed to ExtractScalar`),!1;if(n>=o||n<0)return wt(`${e.functions[0].name}: ExtractScalar index ${n} out of range (0 - ${o-1})`),!1;e.local("pLocals"),hi(e,Za(t,2),253,0),e.appendSimd(r),e.appendU8(n),gi(e,Za(t,1),s[1])}else Fi(e,t),e.appendSimd(r),Pi(e,t);return!0}switch(n){case 187:return hi(e,Za(t,2),40),hi(e,Za(t,3),253,0),e.appendSimd(11),e.appendMemarg(0,0),!0;case 10:case 11:return Fi(e,t),e.appendSimd(214),e.appendSimd(195),11===n&&e.appendU8(69),gi(e,Za(t,1),54),!0;case 12:case 13:{const r=13===n,o=r?71:65;return e.local("pLocals"),hi(e,Za(t,2),253,0),e.local("math_lhs128",34),hi(e,Za(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),gi(e,Za(t,1),54),!0}case 43:{const n=Za(t,3),r=ii(e,n);return e.local("pLocals"),hi(e,Za(t,2),253,0),"object"==typeof r?(e.appendSimd(12),e.appendBytes(r)):hi(e,n,253,0),e.appendSimd(14),Pi(e,t),!0}case 44:case 45:return function(e,t,n){const r=16/n,o=Za(t,3),s=ii(e,o);if(2!==r&&4!==r&&v(!1,"Unsupported shuffle element size"),e.local("pLocals"),hi(e,Za(t,2),253,0),"object"==typeof s){const t=new Uint8Array(ec),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=Ga[n],s=Xa[n];if(Array.isArray(o)){const n=o[0],s=ii(e,Za(t,3));if("number"!=typeof s)return wt(`${e.functions[0].name}: Non-constant lane index passed to ReplaceScalar`),!1;if(s>=n||s<0)return wt(`${e.functions[0].name}: ReplaceScalar index ${s} out of range (0 - ${n-1})`),!1;e.local("pLocals"),hi(e,Za(t,2),253,0),hi(e,Za(t,4),o[1]),e.appendSimd(r),e.appendU8(s),Pi(e,t)}else if(Array.isArray(s)){const n=s[0],o=ii(e,Za(t,4));if("number"!=typeof o)return wt(`${e.functions[0].name}: Non-constant lane index passed to store method`),!1;if(o>=n||o<0)return wt(`${e.functions[0].name}: Store lane ${o} out of range (0 - ${n-1})`),!1;hi(e,Za(t,2),40),hi(e,Za(t,3),253,0),e.appendSimd(r),e.appendMemarg(0,0),e.appendU8(o)}else!function(e,t){e.local("pLocals"),hi(e,Za(t,2),253,0),hi(e,Za(t,3),253,0),hi(e,Za(t,4),253,0)}(e,t),e.appendSimd(r),Pi(e,t);return!0}switch(n){case 0:return e.local("pLocals"),hi(e,Za(t,3),253,0),hi(e,Za(t,4),253,0),hi(e,Za(t,2),253,0),e.appendSimd(82),Pi(e,t),!0;case 7:{const n=ii(e,Za(t,4));if("object"!=typeof n)return wt(`${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 wt(`${e.functions[0].name}: Shuffle lane index #${t} (${r}) out of range (0 - 31)`),!1}return e.local("pLocals"),hi(e,Za(t,2),253,0),hi(e,Za(t,3),253,0),e.appendSimd(13),e.appendBytes(n),Pi(e,t),!0}default:return!1}}(e,t,s))return!0}switch(n){case 640:if(e.options.enableSimd&&Ni()){e.local("pLocals");const n=xe().slice(t+4,t+4+ec);e.v128_const(n),Pi(e,t),ai.set(Za(t,1),n)}else bi(e,Za(t,1),ec),e.ptr_const(t+4),va(e,ec);return!0;case 641:case 642:case 643:case 644:{const r=za[n],o=ec/r,s=Za(t,1),a=Za(t,2),i=Va[n],c=Wa[n];for(let t=0;t0&&(rc.push(["trace_eip","trace_eip",uc]),rc.push(["trace_args","trace_eip",dc]));const e=(e,t)=>{for(let n=0;n>>0,Vi.operand2=t>>>0}function pc(e,t,n,r){if("number"==typeof r)xt.mono_jiterp_adjust_abort_count(r,1),r=Zs(r);else{let e=Ki[r];"number"!=typeof e?e=1:e++,Ki[r]=e}Zi[e].abortReason=r}function _c(e,t){if(!u.runtimeReady)return;if(Wi&&void 0===e||(Wi=La()),!Wi.enableStats&&void 0!==e)return;const n=da.backBranchesEmitted/(da.backBranchesEmitted+da.backBranchesNotEmitted)*100,r=xt.mono_jiterp_get_rejected_trace_count(),o=Wi.eliminateNullChecks?da.nullChecksEliminated.toString():"off",s=Wi.zeroPageOptimization?da.nullChecksFused.toString()+" (disabled)":"off",a=Wi.enableBackwardBranches?`emitted: ${da.backBranchesEmitted}, failed: ${da.backBranchesNotEmitted} (${n.toFixed(1)}%)`:": off",i=da.jitCallsCompiled?Wi.directJitCalls?`direct jit calls: ${da.directJitCallsCompiled} (${(da.directJitCallsCompiled/da.jitCallsCompiled*100).toFixed(1)}%)`:"direct jit calls: off":"";if(bt(`// jitted ${da.bytesGenerated} bytes; ${da.tracesCompiled} traces (${(da.tracesCompiled/da.traceCandidates*100).toFixed(1)}%) (${r} rejected); ${da.jitCallsCompiled} jit_calls; ${da.entryWrappersCompiled} interp_entries`),bt(`// cknulls eliminated: ${o}, fused: ${s}; back-branches ${a}; ${i}`),bt(`// time: ${0|ua.generation}ms generating, ${0|ua.compilation}ms compiling wasm.`),!t){if(Wi.countBailouts){const e=Object.values(Zi);e.sort(((e,t)=>(t.bailoutCount||0)-(e.bailoutCount||0)));for(let e=0;et.hitCount-e.hitCount)),bt("// 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++,bt(`${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])),bt("// heat:");for(let e=0;e0?Ki[t]=n:delete Ki[t]}const e=Object.keys(Ki);e.sort(((e,t)=>Ki[t]-Ki[e]));for(let t=0;t_c(e)),15e3)}}let fc=!1;function mc(){if(fc)throw new Error("GC is already locked");if(c)throw new Error("GC lock only supported in main thread");xt.mono_wasm_gc_lock(),fc=!0}function hc(){if(!fc)throw new Error("GC is not locked");if(c)throw new Error("GC lock only supported in main thread");xt.mono_wasm_gc_unlock(),fc=!1}async function gc(e){const t=d.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.");if(!t[e])throw new Error(`${e} must be marked with 'BlazorWebAssemblyLazyLoad' item group in your project file to allow lazy-loading.`);const n={name:e,hash:t[e],behavior:"assembly"};if(d.loadedAssemblies.includes(e))return!1;const r=function(e,t){const n=e.lastIndexOf(".");if(n<0)throw new Error(`No extension to replace in '${e}'`);return e.substring(0,n)+".pdb"}(n.name),o=0!=d.config.debugLevel&&d.isDebuggingSupported()&&Object.prototype.hasOwnProperty.call(t,r),s=d.retrieve_asset_download(n);let a=null,i=null;if(o){const e=t[r]?d.retrieve_asset_download({name:r,hash:t[r],behavior:"pdb"}):Promise.resolve(null),[n,o]=await Promise.all([s,e]);a=new Uint8Array(n),i=o?new Uint8Array(o):null}else{const e=await s;a=new Uint8Array(e),i=null}return u.javaScriptExports.load_lazy_assembly(a,i),!0}async function bc(e){const t=d.config.resources.satelliteResources;t&&await Promise.all(e.filter((e=>Object.prototype.hasOwnProperty.call(t,e))).map((e=>{const n=[];for(const r in t[e]){const o={name:r,hash:t[e][r],behavior:"resource",culture:e};n.push(d.retrieve_asset_download(o))}return n})).reduce(((e,t)=>e.concat(t)),new Array).map((async e=>{const t=await e;u.javaScriptExports.load_satellite_assembly(new Uint8Array(t))})))}function yc(e){return function(e){if("object"!=typeof e||null===e)return!1;const t=e;return"string"==typeof t.type&&"string"==typeof t.cmd}(e)&&"diagnostic_server"===e.type}function wc(e){return{type:"diagnostic_server",cmd:e}}class vc{constructor(e){this.server=e,e.port.addEventListener("message",this.onServerReply.bind(this))}start(){gt("signaling the diagnostic server to start"),this.server.postMessageToWorker(wc("start"))}stop(){gt("signaling the diagnostic server to stop"),this.server.postMessageToWorker(wc("stop"))}postServerAttachToRuntime(){gt("signal the diagnostic server to attach to the runtime"),this.server.postMessageToWorker(wc("attach_to_runtime"))}onServerReply(e){const t=e.data;yc(t)&&(t.cmd,yt("Unknown control reply command: ",t))}}let kc=null;let Sc=!1,Ec=!1,Tc=!1;async function Uc(){if(Tc)return;const e=function(){const e=u.config.environmentVariables?u.config.environmentVariables.DOTNET_DiagnosticPorts:void 0;return C(e)?null:function(e){if(""===e)return null;const t=e.split(";");if(0===t.length)return null;1!==t.length&&yt("multiple diagnostic ports specified, only the last one will be used");const n=t[t.length-1].split(",");if(n.length<1||n.length>3)return yt("invalid diagnostic port specification, should be of the form [,],[]"),null;const r=n[0];let o=!0,s=!0;for(let e=n.length-1;e>=1;e--){const t=n[e];switch(t.toLowerCase()){case"nosuspend":s=!1;break;case"suspend":s=!0;break;case"listen":o=!1;break;case"connect":o=!0;break;default:yt(`invalid diagnostic port specification component: ${t}`)}}return o?{server:{connectUrl:r,suspend:s}}:(yt("this runtime does not support listening on a diagnostic port; no diagnostic server started"),null)}(e)}();if(e&&(Tc=!0,!C(null==e?void 0:e.server))){if(void 0===e.server.connectUrl||"string"!=typeof e.server.connectUrl)throw new Error("server.connectUrl must be a string");const t=e.server.connectUrl,n=function(e){if(!0===e||!1===e)return e;if("string"==typeof e){if("true"===e)return!0;if("false"===e)return!1}throw new Error(`invalid option: "${e}", should be true, false, or "true" or "false"`)}(e.server.suspend);await async function(e){bt(`starting the diagnostic server url: ${e}`);const t=ve(4,(t=>{if(Ct.mono_wasm_diagnostic_server_create_thread(e,t))return me(t)}));if(void 0===t)return yt("diagnostic server failed to start"),null;const n=await function(e){if(Go.has(e))return Promise.resolve(Go.get(e));const t=w(),n=Xo.get(e);return void 0===n?Xo.set(e,[t.promise_control]):n.push(t.promise_control),t.promise}(t);if(void 0===n)throw new Error("unexpected diagnostic server thread not found");const r=new vc(n);return kc=r,r.start(),r}(t)&&(Ec=!0,n&&(Sc=!0))}}const Ic=64;let Ac,xc,jc,Cc=0;const Rc=[],Lc={};function $c(){return xc||(xc=[Aa("interp_entry_prologue",Ta("mono_jiterp_interp_entry_prologue")),Aa("interp_entry",Ta("mono_jiterp_interp_entry")),Aa("unbox",Ta("mono_jiterp_object_unbox")),Aa("stackval_from_data",Ta("mono_jiterp_stackval_from_data"))],xc)}let Dc;function Nc(){if(Rc.length<=0)return;const e=4*Rc.length+1;let t=Ac;if(t?t.clear(e):(Ac=t=new oa(e),t.defineType("unbox",{pMonoObject:127},127,!0),t.defineType("interp_entry_prologue",{pData:127,this_arg:127},127,!0),t.defineType("interp_entry",{pData:127,res:127},64,!0),t.defineType("stackval_from_data",{type:127,result:127,value:127},64,!0)),t.options.wasmBytesLimit<=da.bytesGenerated)return void(Rc.length=0);const n=pa();let r=0,o=!0,s=!1;try{t.appendU32(1836278016),t.appendU32(1);for(let e=0;eQc[xt.mono_jiterp_type_to_ldind(e)])),this.enableDirect=La().directJitCalls&&!this.noWrapper&&this.wasmNativeReturnType&&(0===this.wasmNativeSignature.length||this.wasmNativeSignature.every((e=>e))),this.enableDirect&&(this.target=this.addr);let i=this.target.toString(16);const c=Wc++;this.name=`${this.enableDirect?"jcp":"jcw"}_${i}_${c.toString(16)}`}}function Xc(e){let t=Hc[e];return t||(e>=Hc.length&&(Hc.length=e+1),zc||(zc=ha()),Hc[e]=t=zc.get(e)),t}let Yc;function Kc(){if(void 0!==Vc)return Vc;try{Yc=function(){const e=new oa(0);e.defineType("jit_call_cb",{cb_data:127},64,!0),e.defineType("do_jit_call",{unused:127,cb_data:127,thrown:127},64,!0),e.defineImportedFunction("i","jit_call_cb","jit_call_cb",!0),e.defineFunction({type:"do_jit_call",name:"do_jit_call_indirect",export:!0,locals:{}},(()=>{e.block(64,6),e.local("cb_data"),e.callImport("jit_call_cb"),e.appendU8(25),e.local("thrown"),e.i32_const(1),e.appendU8(54),e.appendMemarg(0,0),e.endBlock(),e.appendU8(11)})),e.appendU32(1836278016),e.appendU32(1),e.generateTypeSection(),e.emitImportsAndFunctions(!1);const t=e.getArrayView();return new WebAssembly.Module(t)}(),Vc=!0}catch(e){bt("Disabling WASM EH support due to JIT failure",e),Vc=!1}return Vc}function Zc(){if(0===Gc.length)return;let e=Fc;if(e?e.clear(0):(Fc=e=new oa(0),e.defineType("trampoline",{ret_sp:127,sp:127,ftndesc:127,thrown:127},64,!0)),e.options.wasmBytesLimit<=da.bytesGenerated)return void(Gc.length=0);e.options.enableWasmEh&&(Kc()||(Ra({enableWasmEh:!1}),e.options.enableWasmEh=!1));const t=pa();let n=0,r=!0,o=!1;const s=[];try{zc||(zc=ha()),e.appendU32(1836278016),e.appendU32(1);for(let t=0;tsl.MinimalHeaderSize+2+2+(e?e instanceof Uint8Array?e.byteLength:e:0),serializeMagic(e,t){e.set(sl.DOTNET_IPC_V1,t.pos),al(t,sl.DOTNET_IPC_V1.byteLength)},serializeUint8(e,t,n){e[t.pos++]=n},serializeUint16(e,t,n){e[t.pos++]=255&n,e[t.pos++]=n>>8&255},serializeUint32(e,t,n){e[t.pos++]=255&n,e[t.pos++]=n>>8&255,e[t.pos++]=n>>16&255,e[t.pos++]=n>>24&255},serializeUint64(e,t,n){il.serializeUint32(e,t,n[0]),il.serializeUint32(e,t,n[1])},serializeHeader:function(e,t,n,r,o){il.serializeMagic(e,t),il.serializeUint16(e,t,o),il.serializeUint8(e,t,n),il.serializeUint8(e,t,r),il.serializeUint16(e,t,0)},serializePayload(e,t,n){e.set(n,t.pos),al(t,n.byteLength)},serializeString(e,t,n){if(null==n||""===n)il.serializeUint32(e,t,0);else{const r=n.length,o="\0"===n[r-1];il.serializeUint32(e,t,r+(o?0:1));for(let o=0;o0&&this.syncSendBuffer(e,t)}Ee.storeI32(this.buf_full_addr,0),Ee.notifyI32(this.buf_full_addr,1)}}const hl=new Map;function gl(e,t,n){let r,o;return Q(e,0),"file"===n.type?(r=n.filePath,o=0):(r=null,o=n.stream),!!Ct.mono_wasm_event_pipe_enable(r,o,t.bufferSizeInMB,t.providers,t.rundownRequested,e)&&le(e)}class bl{constructor(e,t,n){this.sessionID=e,this.queue=t,this.connection=n}}function yl(e){return e.map((function(e){const n=0===e.keywords[0]&&0===e.keywords[1]?"":function(e){const n=e[0],r=e[1],o=t(n.toString(16),"0",8);return t(r.toString(16),"0",8)+o}(e.keywords),r=""===e.filter_data?"":":"+e.filter_data;return e.provider_name+":"+n+":"+e.logLevel+r})).join(",");function t(e,t,n){return e.length>=n?e:t.repeat(n-e.length)+e}}const wl=4;function vl(e,t){e.pos+=t}const kl={tryParseHeader(e,t){let n=t.pos;for(let t=0;tkl.tryParseUint16(e,t),tryParseCommand(e,t){const n=kl.tryParseUint8(e,t);if(void 0===n)return;const r=kl.tryParseUint8(e,t);return void 0!==r&&void 0!==kl.tryParseReserved(e,t)?{commandSet:n,command:r,payload:e.slice(t.pos)}:void 0},tryParseReserved(e,t){for(let n=0;n<2;n++){const n=kl.tryParseUint8(e,t);if(void 0===n||0!==n)return}return!0},tryParseUint8(e,t){const n=t.pos;if(n>=e.byteLength)return;const r=e[n];return vl(t,1),r},tryParseUint16(e,t){const n=t.pos;if(n+1>=e.byteLength)return;const r=e[n+1]<<8|e[n];return vl(t,2),r},tryParseUint32(e,t){const n=t.pos;if(n+3>=e.byteLength)return;const r=e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n];return vl(t,4),r},tryParseUint64(e,t){const n=kl.tryParseUint32(e,t);if(void 0===n)return;const r=kl.tryParseUint32(e,t);return void 0!==r?[n,r]:void 0},tryParseBool(e,t){const n=kl.tryParseUint8(e,t);if(void 0!==n)return 0!==n},tryParseArraySize(e,t){const n=kl.tryParseUint32(e,t);if(void 0!==n)return n},tryParseStringLength:(e,t)=>kl.tryParseArraySize(e,t),tryParseUtf16String(e,t){const n=kl.tryParseStringLength(e,t);if(void 0===n)return;const r=t.pos;if(r+2*n>e.byteLength)return;const o=new Array(n);for(let t=0;t=0&&0===o[e];e--)s=e;return s>=0&&o.splice(s),String.fromCharCode.apply(null,o)}},Sl="dotnet:diagnostics:protocolCommand";var El;!function(e){e[e.Idle=0]="Idle",e[e.PartialCommand=1]="PartialCommand",e[e.Error=2]="Error"}(El||(El={}));class Tl{constructor(e){this.emitCommandCallback=e,this.state={state:El.Idle}}receiveBuffer(e){if(this.state.state==El.Error)return;let t;if(t=this.state.state===El.Idle?this.tryParseHeader(new Uint8Array(e)):this.tryAppendBuffer(new Uint8Array(e)),t.success){if(gt("protocol-socket: got result",t),this.setState(t.newState),t.command){const e=t.command;this.emitCommandCallback(e)}}else yt("socket received invalid command header",e,t.error),this.setState({state:El.Error})}tryParseHeader(e){const t={pos:0};if(e.byteLength{gt("dispatching protocol event with command",e),this.dispatchProtocolCommandEvent(e)}))}dispatchProtocolCommandEvent(e){const t=new Event(Sl);t.data=e,this.sock.dispatchEvent(t)}addEventListener(e,t,n){this.sock.addEventListener(e,t,n),e===Sl&&(0===this.protocolListeners&&(gt("adding protocol listener, with a message chaser"),this.sock.addEventListener("message",this.messageListener)),this.protocolListeners++)}removeEventListener(e,t){e===Sl&&(gt("removing protocol listener and message chaser"),this.protocolListeners--,0===this.protocolListeners&&(this.sock.removeEventListener("message",this.messageListener),this.statefulParser.reset())),this.sock.removeEventListener(e,t)}send(e){this.sock.send(e)}close(){this.sock.close(),this.statefulParser.reset()}}function Il(e,t){const n=kl.tryParseUint64(e,t);if(void 0===n)return{success:!1,error:"failed to parse keywords in EventPipe CollectTracing provider"};const r=kl.tryParseUint32(e,t);if(void 0===r)return{success:!1,error:"failed to parse logLevel in EventPipe CollectTracing provider"};const o=kl.tryParseUtf16String(e,t);if(void 0===o)return{success:!1,error:"failed to parse providerName in EventPipe CollectTracing provider"};const s=kl.tryParseUtf16String(e,t);return void 0===s?{success:!1,error:"failed to parse filterData in EventPipe CollectTracing provider"}:{success:!0,result:{keywords:n,logLevel:r,provider_name:o,filter_data:s}}}class Al{constructor(e,t){this.runtimeResumed=!1,this.startRequestedController=w().promise_control,this.stopRequested=!1,this.stopRequestedController=w().promise_control,this.attachToRuntimeController=w().promise_control,this.openCount=0,this.websocketUrl=e,hr.addEventListenerFromBrowser(this.onMessageFromMainThread.bind(this)),this.mocked=void 0}start(){bt(`starting diagnostic server with url: ${this.websocketUrl}`),this.startRequestedController.resolve()}stop(){this.stopRequested=!0,this.stopRequestedController.resolve()}attachToRuntime(){Ct.mono_wasm_diagnostic_server_thread_attach_to_runtime(),this.attachToRuntimeController.resolve()}async serverLoop(){for(await this.startRequestedController.promise,await this.attachToRuntimeController.promise;!this.stopRequested;){gt("diagnostic server: advertising and waiting for client");const e=this.advertiseAndWaitForClient().then((()=>"first")),t=this.stopRequestedController.promise.then((()=>"second")),n=await Promise.race([e,t]);switch(n){case"first":break;case"second":gt("stop requested");break;default:R(n)}}}async openSocket(){{const t=new WebSocket(this.websocketUrl);return await(e=t,new Promise((t=>{e.addEventListener("open",(e=>{t(e)}),{once:!0})}))),t}var e}async advertiseAndWaitForClient(){try{const t=this.openCount++;gt("opening websocket and sending ADVR_V1",t);const n=await this.openSocket(),r=(e=new Ul(n),new Promise((t=>{e.addEventListener(Sl,(e=>{t(e)}),{once:!0})})));this.sendAdvertise(n);const o=await r;gt("received advertising response: ",o,t),queueMicrotask((()=>this.parseAndDispatchMessage(n,t,o)))}finally{this.resumeRuntime()}var e}async parseAndDispatchMessage(e,t,n){try{const r=this.parseCommand(n,t);if(null===r)return void wt("unexpected message from client",n,t);ul(r)?await this.dispatchEventPipeCommand(e,r):ll(r)?await this.dispatchProcessCommand(e,r):yt("MONO_WASM Client sent unknown command",r)}finally{this.resumeRuntime()}}sendAdvertise(e){const t=function(e,t){const n=new Uint8Array(34),r={pos:0};return function(e,t,n){const r="\0"===n[7];for(let r=0;r<8;r++)il.serializeUint8(e,t,n.charCodeAt(r));r||il.serializeUint8(e,t,0)}(n,r,"ADVR_V1\0"),function(e,t,n){n.split("-").forEach((n=>{for(let r=0;r>8&255,r[2]=n.sessionID>>16&255,r[3]=n.sessionID>>24&255,this.postClientReplyOK(e,r),gt("created session, now streaming: ",n),Ct.mono_wasm_event_pipe_session_start_streaming(n.sessionID)}async dispatchProcessCommand(e,t){var n;ll(n=t)&&"ResumeRuntime"===n.command?this.processResumeRuntime(e):yt("unknown Process command",t)}processResumeRuntime(e){this.postClientReplyOK(e),this.resumeRuntime()}resumeRuntime(){this.runtimeResumed||(gt("resuming runtime startup"),Ct.mono_wasm_diagnostic_server_post_resume_runtime(),this.runtimeResumed=!0)}}function xl(e,t){return"\ud800"<=e[t]&&e[t]<="\udbff"&&t+10?t[0]:void 0}catch(t){throw new Error(`Get culture info failed for culture = ${e} with error: ${t}`)}}const Nl="MMMM",Bl="yyyy",Ml="d",Pl="dddd",Ol=[Nl,Bl,Ml,Pl];function Fl(e,t,n,r){let o=n;const s=t.indexOf(n);if(-1==s||-1!=s&&t.length>s+n.length&&" "!=t[s+n.length]&&","!=t[s+n.length]&&"،"!=t[s+n.length]){const s=r.format(e).toLowerCase();o=t.split(/,| /).filter((e=>!s.split(/,| /).includes(e)&&e[0]==n[0]))[0]}return o}async function zl(e,t){try{const n=await Vl(e,t);return d.mono_exit(n),n}catch(e){try{d.mono_exit(1,e)}catch(e){}return e&&"number"==typeof e.status?e.status:1}}async function Vl(e,t){!function(e,t){const r=t.length+1,o=n._malloc(4*r);let s=0;n.setValue(o+4*s,xt.mono_wasm_strdup(e),"i32"),s+=1;for(let e=0;e{const t=setInterval((()=>{1==u.waitForDebugger&&(clearInterval(t),e())}),100)})));const r=Wl(e);return u.javaScriptExports.call_entry_point(r,t)}function Wl(e){d.assert_runtime_running(),$r();const t=Or(e);if(!t)throw new Error("Could not find assembly: "+e);let n=0;1==u.waitForDebugger&&(n=1);const r=xt.mono_wasm_assembly_get_entry_point(t,n);if(!r)throw new Error("Could not find entry point for assembly: "+e);return r}let Hl,ql;const Gl={},Jl=Symbol.for("wasm type");function Xl(e){return"undefined"!=typeof SharedArrayBuffer?e.buffer instanceof ArrayBuffer||e.buffer instanceof SharedArrayBuffer:e.buffer instanceof ArrayBuffer}function Yl(e,t,n){switch(!0){case null===t:case void 0===t:return void n.clear();case"symbol"==typeof t:case"string"==typeof t:return void fu._create_uri_ref(t,n.address);default:return void Ql(e,t,n)}}function Kl(e){pu();const t=We();try{return Zl(e,t,!1),t.value}finally{t.release()}}function Zl(e,t,n){if(pu(),C(t))throw new Error("Expected (value, WasmRoot, boolean)");switch(!0){case null===e:case void 0===e:return void t.clear();case"number"==typeof e:{let n;return(0|e)===e?(Z(Gl._box_buffer,e),n=Gl._class_int32):e>>>0===e?(J(Gl._box_buffer,e),n=Gl._class_uint32):(se(Gl._box_buffer,e),n=Gl._class_double),void jt.mono_wasm_box_primitive_ref(n,Gl._box_buffer,8,t.address)}case"string"==typeof e:return void dt(e,t);case"symbol"==typeof e:return void pt(e,t);case"boolean"==typeof e:return W(Gl._box_buffer,e),void jt.mono_wasm_box_primitive_ref(Gl._class_boolean,Gl._box_buffer,4,t.address);case!0===po(e):return void function(e,t){if(!e)return t.clear(),null;const n=no(e),r=fu._create_tcs(),o={tcs_gc_handle:r};oo(o,r),e.then((e=>{fu._set_tcs_result_ref(r,e)}),(e=>{fu._set_tcs_failure(r,e?e.toString():"")})).finally((()=>{ro(n),so(o,r)})),fu._get_tcs_task_ref(r,t.address)}(e,t);case"Date"===e.constructor.name:return void fu._create_date_time_ref(e.getTime(),t.address);default:return void Ql(n,e,t)}}function Ql(e,t,n){if(n.clear(),null!=t)if(void 0===t[Zr]){if(t[Qr]&&(function(e,t,n){e!==A&&e!==I?fu._get_cs_owned_object_by_js_handle_ref(e,t?1:0,n):Z(n,0)}(t[Qr],e,n.address),n.value||delete t[Qr]),!n.value){const r=t[Jl],o=void 0===r?0:r,s=no(t);fu._create_cs_owned_proxy_ref(s,o,e?1:0,n.address)}}else Tu(ao(t),n.address)}function eu(e,t){if(!Xl(e)||!e.BYTES_PER_ELEMENT)throw new Error("Object '"+e+"' is not a typed array");{const r=e[Jl],o=function(e){pu();const t=e.length*e.BYTES_PER_ELEMENT,r=n._malloc(t),o=xe(),s=new Uint8Array(o.buffer,r,t);return s.set(new Uint8Array(e.buffer,e.byteOffset,t)),s}(e);jt.mono_wasm_typed_array_new_ref(o.byteOffset,e.length,e.BYTES_PER_ELEMENT,r,t.address),n._free(o.byteOffset)}}function tu(e){const t=We();try{return eu(e,t),t.value}finally{t.release()}}function nu(e){if("number"!=typeof e)throw new Error(`Expected numeric value for enum argument, got '${e}'`);return 0|e}const ru=/[^A-Za-z0-9_$]/g,ou=new Map,su=new Map,au=new Map;function iu(e,t,n,r){let o=null,s=null,a=null;if(r){a=Object.keys(r),s=new Array(a.length);for(let e=0,t=a.length;e=512)throw new Error(`Got marshaling error ${t} when attempting to unbox object at address ${e.value} (root located at ${e.address})`);let r=E;if((4===t||7==t)&&(r=le(n),r<1024))throw new Error(`Got invalid MonoType ${r} for object at address ${e.value} (root located at ${e.address})`);return function(e,t,n,r){switch(t){case 0:return null;case 26:case 27:throw new Error("int64 not available");case 3:case 29:return ut(e);case 4:throw new Error("no idea on how to unbox value types");case 5:return function(e){return e.value===k?null:function(e){let t=co(e);if(t)ao(t);else{t=function(...e){return ao(t),(0,t[yu])(...e)};const n=We();Tu(e,n.address);try{if(void 0===t[yu]){const r=jt.mono_wasm_get_delegate_invoke_ref(n.address),o=cu(r,du(r,n),!0);if(t[yu]=o.bind({this_arg_gc_handle:e}),!t[yu])throw new Error("System.Delegate Invoke method can not be resolved.")}}finally{n.release()}oo(t,e)}return t}(fu._get_js_owned_object_gc_handle_ref(e.address))}(e);case 6:return function(e){if(e.value===k)return null;if(!uo)throw new Error("Promises are not supported thus 'System.Threading.Tasks.Task' can not work in this context.");const t=fu._get_js_owned_object_gc_handle_ref(e.address);let n=co(t);if(!n){const r=()=>so(n,t),{promise:o,promise_control:s}=w(r,r);n=o,fu._setup_js_cont_ref(e.address,s),oo(n,t)}return n}(e);case 7:return function(e){if(e.value===k)return null;const t=fu._try_get_cs_owned_object_js_handle_ref(e.address,0);if(t){if(t===I)throw new Error("Cannot access a disposed JSObject at "+e.value);return to(t)}const n=fu._get_js_owned_object_gc_handle_ref(e.address);let r=co(n);return C(r)&&(r=new ManagedObject,oo(r,n)),r}(e);case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:throw new Error("Marshaling of primitive arrays are not supported.");case 20:return new Date(fu._get_date_value_ref(e.address));case 21:case 22:return fu._object_to_string_ref(e.address);case 23:return function(e){return to(fu._get_cs_owned_object_js_handle_ref(e.address,0))}(e);case 30:return;default:throw new Error(`no idea on how to unbox object of MarshalType ${t} at offset ${e.value} (root address is ${e.address})`)}}(e,t)}function ku(e){if(0===e.value)return;const t=Gl._unbox_buffer,n=jt.mono_wasm_try_unbox_primitive_and_get_type_ref(e.address,t,Gl._unbox_buffer_size);switch(n){case 1:return me(t);case 25:case 32:return le(t);case 24:return ye(t);case 2:return we(t);case 8:return 0!==me(t);case 28:return String.fromCharCode(me(t));case 0:return null;default:return vu(e,n,t)}}function Su(e){if(pu(),e===S)return null;const t=We(e);try{return Eu(t)}finally{t.release()}}function Eu(e){if(e.value===S)return null;const t=e.address,n=We(),r=n.address;try{const e=jt.mono_wasm_array_length_ref(t),s=new Array(e);for(let a=0;a0&&Array.isArray(e[0])&&(e[0]=function(e,t,n){const r=We();jt.mono_wasm_string_array_new_ref(e.length,r.address);const o=We(k),s=r.address,a=o.address;try{for(let t=0;tnew RegExp("^((?![0-9]).)*$").test(e)));return e&&0!=e.length?e.join(" "):""}return s}function $u(e){try{return new Intl.Locale(e).weekInfo}catch(t){try{return new Intl.Locale(e).getWeekInfo()}catch(e){return}}}const Du=[function(e){ms&&(globalThis.clearTimeout(ms),ms=void 0,n.runtimeKeepalivePop()),ms=n.safeSetTimeout(mono_wasm_schedule_timer_tick,e)},function(e,t,n,r,o){if(!0!==u.mono_wasm_runtime_is_ready)return;const s=xe(),a=0!==e?at(e).concat(".dll"):"",i=Dt(new Uint8Array(s.buffer,t,n));let c;r&&(c=Dt(new Uint8Array(s.buffer,r,o))),Kt({eventName:"AssemblyLoaded",assembly_name:a,assembly_b64:i,pdb_b64:c})},function(e,t){const n=at(t);r.logging&&"function"==typeof r.logging.debugger&&r.logging.debugger(e,n)},function(e,t,n,r){const o={res_ok:e,res:{id:t,value:Dt(new Uint8Array(xe().buffer,n,r))}};Bt.has(t)&&yt(`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(Dt(new Uint8Array(xe().buffer,e,t)))},mono_wasm_fire_debugger_agent_message_with_data_to_pause,function(){++gs,n.safeSetTimeout(ws,0)},function(e,t,r,o,s,a,i){if(r||v(!1,"expected instruction pointer"),Wi||(Wi=La()),!Wi.enableTraces)return 1;if(Wi.wasmBytesLimit<=da.bytesGenerated)return 1;let c,l=Zi[r];if(l||(Zi[r]=l=new Ji(r,o,i)),da.traceCandidates++,Wi.estimateHeat||qi.length>0||l.isVerbose){const e=xt.mono_wasm_method_get_full_name(t);c=at(e),n._free(e)}const d=at(xt.mono_wasm_method_get_name(t));l.name=c||d;const p=pe(Ea(4)+e),_=pe(Ea(11)+p),f=pe(Ea(10)+p);let m=_?new Uint16Array(xe().buffer,f,_):null;if(m&&r!==s){const e=(r-s)/2;let t=!1;for(let n=0;ne){t=!0;break}t||(m=null)}const h=function(e,t,n,r,o,s,a){let i=nc;i?i.clear(8):(nc=i=new oa(8),function(e){e.defineType("trace",{frame:127,pLocals:127,cinfo: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("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("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("cmpxchg_i32",{dest:127,newVal:127,expected:127},127,!0),e.defineType("cmpxchg_i64",{dest:127,newVal:127,expected:127,oldVal:127},64,!0),e.defineType("transfer",{displacement:127,trace:127,frame:127,locals:127,cinfo:127},127,!0),e.defineType("stelem_ref",{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=lc();for(let n=0;ns.indexOf(e)>=0))>=0;h&&!s&&v(!1,"Expected methodFullName if trace is instrumented");const g=h?Yi++:0;h&&(bt(`instrumenting: ${s}`),Xi[g]=new Gi(s)),i.compressImportNames=!h;try{i.appendU32(1836278016),i.appendU32(1),i.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,backbranched:127};i.options.enableSimd&&(t.v128_zero=123,t.math_lhs128=123,t.math_rhs128=123);let o=!0,s=0;if(i.defineFunction({type:"trace",name:l,export:!0,locals:t},(()=>{if(i.base=n,i.frame=e,662!==ce(n))throw new Error(`Expected *ip to be MINT_TIER_PREPARE_JITERPRETER but was ${ce(n)}`);return i.cfg.initialize(r,a,h?1:0),s=function(e,t,n,r,o,s,a,i){let c=!0,l=!1,u=!0,d=!1,p=!1,_=!1,f=0,m=0,h=0;const g=n;di();let b=n+=2*xt.mono_jiterp_get_opcode_info(664,1);for(s.cfg.entry(n);n&&n;){if(s.cfg.ip=n,n>=o){pc(g,0,0,"end-of-body"),a&&bt(`instrumented trace ${t} exited at end of body @${n.toString(16)}`);break}const y=3840-s.bytesGeneratedSoFar-s.cfg.overheadBytes;if(s.size>=y){pc(g,0,0,"trace-too-big"),a&&bt(`instrumented trace ${t} exited because of size limit at @${n.toString(16)} (spaceLeft=${y}b)`);break}let w=ce(n);const k=xt.mono_jiterp_get_opcode_info(w,2),S=xt.mono_jiterp_get_opcode_info(w,3),E=xt.mono_jiterp_get_opcode_info(w,1),T=w>=645&&w<=647,U=T?w-645+2:0,I=T?Za(n,1+U):0;w>=0&&w<673||v(!1,`invalid opcode ${w}`);const A=T?$a[U][I]:Zs(w),x=n,j=s.options.noExitBackwardBranches&&si(n,r,i),C=s.branchTargets.has(n),R=j||C||c&&i,L=h+m+s.branchTargets.size;let $=!1,D=Ia(w);switch(j&&s.backBranchOffsets.push(n),R&&(p=!1,_=!1,fi(s,n,j),l=!0,u=!0,di(),h=0),D<-1&&l&&(D=-2===D?2:0),c=!1,279===w||(Hi.indexOf(w)>=0?(fa(s,n,23),w=666):p&&(w=666)),w){case 666:p&&(_||s.appendU8(0),_=!0);break;case 321:case 322:yi(s,Za(n,1),0,Za(n,2));break;case 320:bi(s,Za(n,1)),hi(s,Za(n,2),40),s.local("frame"),s.callImport("localloc");break;case 294:hi(s,Za(n,1),40),ya(s,0,Za(n,2));break;case 318:{const e=Za(n,3),t=Za(n,2),r=Za(n,1),o=ii(s,e);0!==o&&("number"!=typeof o?(hi(s,e,40),s.local("count",34),s.block(64,4)):(s.i32_const(o),s.local("count",33)),hi(s,r,40),s.local("dest_ptr",34),s.appendU8(69),hi(s,t,40),s.local("src_ptr",34),s.appendU8(69),s.appendU8(114),s.block(64,4),fa(s,n,2),s.endBlock(),"number"==typeof o&&wa(s,0,0,o,!1,"dest_ptr","src_ptr")||(s.local("dest_ptr"),s.local("src_ptr"),s.local("count"),s.appendU8(252),s.appendU8(10),s.appendU8(0),s.appendU8(0)),"number"!=typeof o&&s.endBlock());break}case 319:{const e=Za(n,3),t=Za(n,2);ki(s,Za(n,1),n,!0),hi(s,t,40),hi(s,e,40),s.appendU8(252),s.appendU8(11),s.appendU8(0);break}case 151:case 153:case 235:case 237:case 152:case 154:case 137:case 140:case 141:ji(s,n,e,w)?l=!0:n=0;break;case 537:{const e=Za(n,2),t=Za(n,1);e!==t?(s.local("pLocals"),ki(s,e,n,!0),gi(s,t,54)):ki(s,e,n,!1),s.allowNullCheckOptimization&&ci.set(t,n),$=!0;break}case 626:case 627:{const t=pe(e+Ea(4));s.ptr_const(t),s.callImport("entry"),s.block(64,4),fa(s,n,1),s.endBlock();break}case 664:if(D=0,f>=s.options.minimumTraceValue&&!s.options.noExitBackwardBranches&&(!l||u)){const e=ti(n,1);s.ip_const(n),s.i32_const(e),s.local("frame"),s.local("pLocals"),s.local("cinfo"),s.callImport("transfer"),s.appendU8(15),n=0}break;case 146:_a(s,n);break;case 94:{s.local("pLocals");const e=Za(n,2);vi(s,e)||wt(`${t}: Expected local ${e} to have address taken flag`),bi(s,e),gi(s,Za(n,1),54);break}case 280:case 308:case 309:case 555:{s.local("pLocals");let t=ri(e,Za(n,2));308===w&&(t=xt.mono_jiterp_imethod_to_ftnptr(t)),s.ptr_const(t),gi(s,Za(n,1),54);break}case 313:{const t=ri(e,Za(n,3));hi(s,Za(n,1),40),hi(s,Za(n,2),40),s.ptr_const(t),s.callImport("value_copy");break}case 314:{const e=Za(n,3);hi(s,Za(n,1),40),hi(s,Za(n,2),40),va(s,e);break}case 315:{const e=Za(n,3);bi(s,Za(n,1),e),ki(s,Za(n,2),n,!0),va(s,e);break}case 316:{const t=ri(e,Za(n,3));hi(s,Za(n,1),40),bi(s,Za(n,2),0),s.ptr_const(t),s.callImport("value_copy");break}case 317:{const e=Za(n,3);hi(s,Za(n,1),40),bi(s,Za(n,2),0),va(s,e);break}case 539:s.local("pLocals"),ki(s,Za(n,2),n,!0),s.appendU8(40),s.appendMemarg(Ea(2),2),gi(s,Za(n,1),54);break;case 538:{s.block(),hi(s,Za(n,3),40),s.local("index",34);let e="cknull_ptr";s.options.zeroPageOptimization,ki(s,Za(n,2),n,!0),s.appendU8(40),s.appendMemarg(Ea(2),2),s.appendU8(72),s.local("index"),s.i32_const(0),s.appendU8(78),s.appendU8(113),s.appendU8(13),s.appendULeb(0),fa(s,n,11),s.endBlock(),s.local("pLocals"),s.local("index"),s.i32_const(2),s.appendU8(108),s.local(e),s.appendU8(106),s.appendU8(47),s.appendMemarg(Ea(3),1),gi(s,Za(n,1),54);break}case 349:case 350:{const e=Qa(n,4);s.block(),hi(s,Za(n,3),40),s.local("index",34);let t="cknull_ptr";349===w?ki(s,Za(n,2),n,!0):(bi(s,Za(n,2),0),t="src_ptr",s.local(t,34)),s.appendU8(40),s.appendMemarg(Ea(7),2),s.appendU8(73),s.local("index"),s.i32_const(0),s.appendU8(78),s.appendU8(113),s.appendU8(13),s.appendULeb(0),fa(s,n,18),s.endBlock(),s.local("pLocals"),s.local(t),s.appendU8(40),s.appendMemarg(Ea(8),2),s.local("index"),s.i32_const(e),s.appendU8(108),s.appendU8(106),gi(s,Za(n,1),54);break}case 652:s.block(),hi(s,Za(n,3),40),s.local("count",34),s.i32_const(0),s.appendU8(78),s.appendU8(13),s.appendULeb(0),fa(s,n,18),s.endBlock(),bi(s,Za(n,1),16),s.local("dest_ptr",34),hi(s,Za(n,2),40),s.appendU8(54),s.appendMemarg(0,0),s.local("dest_ptr"),s.local("count"),s.appendU8(54),s.appendMemarg(4,0);break;case 567:bi(s,Za(n,1),8),bi(s,Za(n,2),8),s.callImport("ld_del_ptr");break;case 81:bi(s,Za(n,1),4),s.ptr_const(ei(n,2)),s.callImport("ldtsflda");break;case 651:s.block(),bi(s,Za(n,1),4),bi(s,Za(n,2),0),s.callImport("gettype"),s.appendU8(13),s.appendULeb(0),fa(s,n,2),s.endBlock();break;case 648:{const t=ri(e,Za(n,4));s.ptr_const(t),bi(s,Za(n,1),4),bi(s,Za(n,2),0),bi(s,Za(n,3),0),s.callImport("hasflag");break}case 657:{const e=Ea(1);s.local("pLocals"),ki(s,Za(n,2),n,!0),s.i32_const(e),s.appendU8(106),gi(s,Za(n,1),54);break}case 649:s.local("pLocals"),bi(s,Za(n,2),0),s.callImport("hashcode"),gi(s,Za(n,1),54);break;case 650:s.local("pLocals"),bi(s,Za(n,2),0),s.callImport("try_hash"),gi(s,Za(n,1),54);break;case 653:s.local("pLocals"),bi(s,Za(n,2),0),s.callImport("hascsize"),gi(s,Za(n,1),54);break;case 658:s.local("pLocals"),hi(s,Za(n,2),40),s.local("math_lhs32",34),hi(s,Za(n,3),40),s.appendU8(115),s.i32_const(2),s.appendU8(116),s.local("math_rhs32",33),s.local("math_lhs32"),s.i32_const(327685),s.appendU8(106),s.i32_const(10485920),s.appendU8(114),s.i32_const(1703962),s.appendU8(106),s.i32_const(-8388737),s.appendU8(114),s.local("math_rhs32"),s.appendU8(113),s.appendU8(69),gi(s,Za(n,1),54);break;case 540:case 541:s.block(),bi(s,Za(n,1),4),bi(s,Za(n,2),0),s.callImport(540===w?"array_rank":"a_elesize"),s.appendU8(13),s.appendULeb(0),fa(s,n,2),s.endBlock();break;case 297:case 298:{const t=ri(e,Za(n,3)),r=xt.mono_jiterp_is_special_interface(t),o=297===w,a=Za(n,1);if(!t){pc(g,0,0,"null-klass"),n=0;continue}s.block(),s.options.zeroPageOptimization,s.block(),hi(s,Za(n,2),40),s.local("dest_ptr",34),s.appendU8(13),s.appendULeb(0),s.local("pLocals"),s.i32_const(0),gi(s,a,54),s.appendU8(12),s.appendULeb(1),s.endBlock(),s.local("dest_ptr"),r&&s.local("dest_ptr"),s.appendU8(40),s.appendMemarg(Ea(14),0),s.ptr_const(t),s.callImport(r?"imp_iface_s":"imp_iface"),o&&(s.local("dest_ptr"),s.appendU8(69),s.appendU8(114)),s.block(64,4),s.local("pLocals"),s.local("dest_ptr"),gi(s,a,54),s.appendU8(5),o?fa(s,n,19):(s.local("pLocals"),s.i32_const(0),gi(s,a,54)),s.endBlock(),s.endBlock();break}case 299:case 300:case 295:case 296:{const t=ri(e,Za(n,3)),r=299===w||300===w,o=295===w||299===w,a=Za(n,1);if(!t){pc(g,0,0,"null-klass"),n=0;continue}s.block(),s.options.zeroPageOptimization,s.block(),hi(s,Za(n,2),40),s.local("dest_ptr",34),s.appendU8(13),s.appendULeb(0),s.local("pLocals"),s.i32_const(0),gi(s,a,54),s.appendU8(12),s.appendULeb(1),s.endBlock(),s.local("dest_ptr"),s.appendU8(40),s.appendMemarg(Ea(14),0),s.appendU8(40),s.appendMemarg(Ea(15),0),r&&s.local("src_ptr",34),s.i32_const(t),s.appendU8(70),s.block(64,4),s.local("pLocals"),s.local("dest_ptr"),gi(s,a,54),s.appendU8(5),r?(s.local("src_ptr"),s.ptr_const(t),s.callImport("hasparent"),o&&(s.local("dest_ptr"),s.appendU8(69),s.appendU8(114)),s.block(64,4),s.local("pLocals"),s.local("dest_ptr"),gi(s,a,54),s.appendU8(5),o?fa(s,n,19):(s.local("pLocals"),s.i32_const(0),gi(s,a,54)),s.endBlock()):(bi(s,Za(n,1),4),s.local("dest_ptr"),s.ptr_const(t),s.i32_const(w),s.callImport("castv2"),s.appendU8(69),s.block(64,4),fa(s,n,19),s.endBlock()),s.endBlock(),s.endBlock();break}case 303:case 304:s.ptr_const(ri(e,Za(n,3))),bi(s,Za(n,1),4),bi(s,Za(n,2),0),s.i32_const(304===w?1:0),s.callImport("box");break;case 307:{const t=ri(e,Za(n,3)),r=Ea(17),o=Za(n,1),a=pe(t+r);if(!t||!a){pc(g,0,0,"null-klass"),n=0;continue}s.options.zeroPageOptimization,ki(s,Za(n,2),n,!0),s.local("dest_ptr",34),s.appendU8(40),s.appendMemarg(Ea(14),0),s.appendU8(40),s.appendMemarg(Ea(15),0),s.local("src_ptr",34),s.appendU8(40),s.appendMemarg(r,0),s.i32_const(a),s.appendU8(70),s.local("src_ptr"),s.appendU8(45),s.appendMemarg(Ea(16),0),s.appendU8(69),s.appendU8(113),s.block(64,4),s.local("pLocals"),s.local("dest_ptr"),s.i32_const(Ea(18)),s.appendU8(106),gi(s,o,54),s.appendU8(5),fa(s,n,21),s.endBlock();break}case 302:s.block(),bi(s,Za(n,1),4),hi(s,Za(n,2),40),s.callImport("newstr"),s.appendU8(13),s.appendULeb(0),fa(s,n,17),s.endBlock();break;case 291:s.block(),bi(s,Za(n,1),4),s.ptr_const(ri(e,Za(n,2))),s.callImport("newobj_i"),s.appendU8(13),s.appendULeb(0),fa(s,n,17),s.endBlock();break;case 293:{const e=Za(n,3);bi(s,Za(n,2),e),ya(s,0,e),s.local("pLocals"),bi(s,Za(n,2),e),gi(s,Za(n,1),54);break}case 290:case 292:case 543:case 542:l?(ma(s,n,L,15),p=!0,D=0):n=0;break;case 545:case 546:case 547:case 548:case 544:l?(ma(s,n,L,544==w?22:15),p=!0):n=0;break;case 145:case 142:fa(s,n,16),p=!0;break;case 138:case 139:fa(s,n,26),p=!0;break;case 144:if(s.callHandlerReturnAddresses.length>0&&s.callHandlerReturnAddresses.length<=3){const t=oi(e,Za(n,1));s.local("pLocals"),s.appendU8(40),s.appendMemarg(t,0),s.local("index",33);for(let e=0;e=3&&w<=12||w>=516&&w<=517?l||s.options.countBailouts?(fa(s,n,14),p=!0):n=0:w>=13&&w<=29?Si(s,n,w)?$=!0:n=0:w>=82&&w<=93?Ei(s,n,w)||(n=0):w>=351&&w<=434?Ii(s,n,w)||(n=0):Ba[w]?Ai(s,n,w)||(n=0):Oa[w]?Ci(s,n,e,w)?l=!0:n=0:w>=31&&w<=57?Ti(s,e,n,w)||(n=0):w>=58&&w<=81?Ui(s,e,n,w)||(n=0):w>=95&&w<=135?Li(s,n,w)||(n=0):w>=568&&w<=621?Ri(s,n,w)||(n=0):w>=323&&w<=348?Di(s,e,n,w)||(n=0):w>=235&&w<=278?s.branchTargets.size>0?(ma(s,n,L,8),p=!0):n=0:w>=640&&w<=647?Mi(s,n,w,A,U,I)?(d=!0,$=!0):n=0:0===D||(n=0)}if(n){if(!$){const e=n+2;for(let t=0;t0&&(e+=" -> ");for(let n=0;n0&&(l?h++:m++,f+=D),(n+=2*E)<=o&&(b=n)}else a&&bt(`instrumented trace ${t} aborted for opcode ${A} @${x.toString(16)}`),pc(g,0,0,w)}for(;s.activeBlocks>0;)s.endBlock();return s.cfg.exitIp=b,d&&(f+=10240),f}(e,l,n,r,c,i,g,a),o=s>=Wi.minimumTraceValue,i.cfg.generate()})),i.emitImportsAndFunctions(!1),!o)return m&&"end-of-body"===m.abortReason&&(m.abortReason="trace-too-small"),0;p=pa();const d=i.getArrayView();if(da.bytesGenerated+=d.length,d.length>=4080)return yt(`Jiterpreter generated too much code (${d.length} bytes) for trace ${l}. Please report this issue.`),0;const f=new WebAssembly.Module(d),b=i.getWasmImports(),y=new WebAssembly.Instance(f,b).exports[l];_=!1,u.storeMemorySnapshotPending&&v(!1,"Attempting to set function into table during creation of memory snapshot");const w=ga(y);if(!w)throw new Error("add_function_pointer returned a 0 index");return i.options.enableStats&&da.tracesCompiled&&da.tracesCompiled%500==0&&_c(!1,!0),w}catch(e){return f=!0,_=!1,wt(`${s||l} code generation failed: ${e} ${e.stack}`),ka(),0}finally{const e=pa();if(p?(ua.generation+=p-d,ua.compilation+=e-p):ua.generation+=e-d,f||!_&&Wi.dumpTraces||h){if(f||Wi.dumpTraces||h)for(let e=0;e0;)i.endBlock();i.inSection&&i.endSection()}catch(e){}const n=i.getArrayView();for(let r=0;r=4?Nc():Cc>0||"function"==typeof globalThis.setTimeout&&(Cc=globalThis.setTimeout((()=>{Cc=0,Nc()}),10))}},function(e,t,n,r,o,s,a,i,c){if(n>16)return 0;const l=new class{constructor(e,t,n,r,o,s,a,i,c){this.imethod=e,this.method=t,this.argumentCount=n,this.unbox=o,this.hasThisReference=s,this.hasReturnValue=a,this.name=i,this.paramTypes=new Array(n);for(let e=0;ee&&(l=l.substring(l.length-e,l.length)),l=`${this.imethod.toString(16)}_${l}`}else l=`${this.imethod.toString(16)}_${this.hasThisReference?"i":"s"}${this.hasReturnValue?"_r":""}_${this.argumentCount}`;this.traceName=l,this.hitCount=0}}(e,t,n,r,o,s,a,at(i),c);jc||(jc=ha());const u=jc.get(c);return l.result=ga(u),Lc[e]=l,l.result},function(e,t,n,r,o){const s=pe(n+0),a=qc[s];if(a)return void(a.result>0?xt.mono_jiterp_register_jit_call_thunk(n,a.result):(a.queue.push(n),a.queue.length>12&&Zc()));const i=new Jc(e,t,n,r,0!==o);qc[s]=i,Gc.push(i),Gc.length>=6&&Zc()},function(e,t,n,r,o){const s=Xc(e);try{s(t,n,r,o)}catch(e){$e(),J(o,1)}},Zc,function(e,t,r){u.storeMemorySnapshotPending&&v(!1,"Attempting to set function into table during creation of memory snapshot");const o=ha().get(e),s=function(e,t,n){try{o(t)}catch(e){$e(),J(n,1)}};let a=!Kc();if(!a)try{const e=new WebAssembly.Instance(Yc,{i:{jit_call_cb:o},m:{h:n.getMemory()}}).exports.do_jit_call_indirect;if("function"!=typeof e)throw new Error("Did not find exported do_jit_call handler");const t=ga(e);xt.mono_jiterp_update_jit_call_dispatcher(t),a=!1}catch(e){wt("failed to compile do_jit_call handler",e),a=!0}if(a)try{const e=n.addFunction(s,"viii");xt.mono_jiterp_update_jit_call_dispatcher(e)}catch(e){xt.mono_jiterp_update_jit_call_dispatcher(0)}s(0,t,r)},function(){u.enablePerfMeasure&&sn.push(globalThis.performance.now())},function(e){if(u.enablePerfMeasure){const t=sn.pop(),n=a?{start:t}:{startTime:t};let r=an.get(e);r||(r=at(Rt.mono_wasm_method_get_name(e)),an.set(e,r)),globalThis.performance.measure(r,n)}},function(e,t,n,o,s){const a=at(n),i=!!o,c=at(e),l=s,u=at(t),d=`[MONO] ${a}`;if(r.logging&&"function"==typeof r.logging.trace)r.logging.trace(c,u,d,i,l);else switch(u){case"critical":case"error":console.error(Et(d));break;case"warning":console.warn(d);break;case"message":default:console.log(d);break;case"info":console.info(d);break;case"debug":console.debug(d)}},function(e,t){Pt=at(e).concat(".dll"),Ot=t,console.assert(!0,`Adding an entrypoint breakpoint ${Pt} at method token ${Ot}`);debugger},function(){},ro,function(e,t,o,s,a,i){$r();const c=Ve(e),l=Ve(t),u=Ve(i);try{const e=Sn(o);1!==e&&v(!1,`Signature version ${e} mismatch.`);const t=ut(c),n=rn(),i=ut(l);gt(`Binding [JSImport] ${t} from ${i} module`);const d=function(e,t){e&&"string"==typeof e||v(!1,"function_name must be string");let n={};const o=e.split(".");t?(n=jr.get(t),n||v(!1,`ES6 module ${t} was not imported yet, please call JSHost.ImportAsync() first.`)):"INTERNAL"===o[0]?(n=r,o.shift()):"globalThis"===o[0]&&(n=globalThis,o.shift());for(let t=0;t{e&&e.dispose()},m=!0):n==L.Task&&vr()}const h=hn(o,1),g=gn(h);g==L.Task&&vr();const b=bo(h,g,1),y={fn:d,fqn:i+":"+t,args_count:p,arg_marshalers:_,res_converter:b,has_cleanup:m,arg_cleanup:f,isDisposed:!1};let w;w=0!=p||b?1!=p||m||b?1==p&&!m&&b?function(e){const t=e.fn,n=e.arg_marshalers[0],r=e.res_converter,o=e.fqn;return function(s){const a=rn();try{$&&e.isDisposed&&v(!1,"The function was already disposed");const o=n(s),a=t(o);r(s,a)}catch(e){Mo(s,e)}finally{on(a,"mono.callCsFunction:",o)}}}(y):2==p&&!m&&b?function(e){const t=e.fn,n=e.arg_marshalers[0],r=e.arg_marshalers[1],o=e.res_converter,s=e.fqn;return function(a){const i=rn();try{$&&e.isDisposed&&v(!1,"The function was already disposed");const s=n(a),i=r(a),c=t(s,i);o(a,c)}catch(e){Mo(a,e)}finally{on(i,"mono.callCsFunction:",s)}}}(y):function(e){const t=e.args_count,n=e.arg_marshalers,r=e.res_converter,o=e.arg_cleanup,s=e.has_cleanup,a=e.fn,i=e.fqn;return function(c){const l=rn();try{$&&e.isDisposed&&v(!1,"The function was already disposed");const i=new Array(t);for(let e=0;e2?t:r,e)}else{u=1;const t=a[e].toUpperCase();G(l,n+2*e,(t.length>1?a[e]:t).charCodeAt(0))}else for(let e=0;e2?t:r,e)}else{u=1;const t=a[e].toLowerCase();G(l,n+2*e,(t.length>1?a[e]:t).charCodeAt(0))}}catch(e){Rr(s,e,i)}finally{i.release()}},function(e,t,n,r,o,s,a,i){const c=Ve(e),l=Ve(i);try{const e=ut(c);if(!e)throw new Error("Cannot change case, the culture name is null.");const i=ct(t,t+2*n),u=s?i.toLocaleUpperCase(e):i.toLocaleLowerCase(e);if(u.length<=i.length)return lt(r,r+2*o,u),void Lr(a,l);const d=je();let p=1;if(s)for(let t=0;t2?n:o,t)}else{p=1;const n=i[t].toLocaleUpperCase(e);G(d,r+2*t,(n.length>1?i[t]:n).charCodeAt(0))}else for(let t=0;t2?n:o,t)}else{p=1;const n=i[t].toLocaleLowerCase(e);G(d,r+2*t,(n.length>1?i[t]:n).charCodeAt(0))}Lr(a,l)}catch(e){Rr(a,e,l)}finally{c.release(),l.release()}},function(e,t,n,r,o,s,a,i){const c=Ve(e),l=Ve(i);try{const e=ut(c),i=it(t,t+2*n),u=it(r,r+2*o),d=31&s,p=e||void 0;return Lr(a,l),Cl(i,u,p,d)}catch(e){return Rr(a,e,l),-2}finally{c.release(),l.release()}},function(e,t,n,r,o,s,a,i){const c=Ve(e),l=Ve(i);try{const e=ut(c),i=Rl(r,o);if(0==i.length)return 1;const u=Rl(t,n);if(u.lengthe.segment));let h=0,g=!1,b=-1,y=0,w=0,v=0;for(;!g;){const e=f.segment(c.slice(h,c.length))[Symbol.iterator]();let t=e.next();if(t.done)break;let n=d(t.value.segment,m[0],p,_);if(w=v,t=e.next(),t.done){b=n?w:b;break}if(y=t.value.index,v=w+y,n){for(let r=1;re==t)).length&&(n[e]=`'${n[e].slice(0,-2)}'.,`)}else n[e].endsWith(".")?n[e]=`'${n[e].slice(0,-1)}'.`:n[e].endsWith(",")?n[e]=`'${n[e].slice(0,-1)}',`:n[e]=`'${n[e]}'`;return n.join(" ")}(n,e)}(e,c);const d=function(e,t,n){if(function(e){return e>1&&e<15||22==e||23==e}(n))return{eraNames:"",abbreviatedEraNames:""};const r=e.toLocaleDateString(t,{year:"numeric"}),o=e.toLocaleDateString(t,{day:"numeric"}),s=e.toLocaleDateString(t,{era:"short"}),a=e.toLocaleDateString(t,{era:"narrow"}),i=s.includes(r)?l(r):l(e.getFullYear().toString());return{eraNames:c(i.eraDateParts,i.ignoredPart),abbreviatedEraNames:c(i.abbrEraDateParts,i.ignoredPart)};function c(e,n){const r=new RegExp(`^((?!${n}|[0-9]).)*$`),o=e.filter((e=>r.test(e)));if(0==o.length)throw new Error(`Internal error, era for locale ${t} was in non-standard format.`);return o[0].trim()}function l(e){return s.startsWith(e)||s.endsWith(e)?{eraDateParts:s.split(o),abbrEraDateParts:a.split(o),ignoredPart:e}:{eraDateParts:s.split(e),abbrEraDateParts:a.split(e),ignoredPart:o}}}(c,e,t);s.EraNames=d.eraNames,s.AbbreviatedEraNames=d.abbreviatedEraNames;const p=Object.values(s).join("##");if(p.length>r)throw new Error(`Calendar info exceeds length of ${r}.`);return lt(n,n+2*p.length,p),Lr(o,i),p.length}catch(e){return Rr(o,e,i),-1}finally{a.release(),i.release()}},function(e,t,n,r,o){const s=Ve(e),a=Ve(o);try{const e=ut(s),o={AmDesignator:"",PmDesignator:"",LongTimePattern:"",ShortTimePattern:""},i=Dl(e),c=function(e){const t=new Date("August 19, 1975 12:15:33"),n=new Date("August 19, 1975 11:15:33"),r=Lu(t,e);return{am:Lu(n,e),pm:r}}(i);o.AmDesignator=c.am,o.PmDesignator=c.pm,o.LongTimePattern=function(e,t){const n=18..toLocaleString(e),r=6..toLocaleString(e),o=new Date("August 19, 1975 18:15:30"),s=new Intl.DateTimeFormat(e,{timeStyle:"medium"}),a=s.format(o),i=o.toLocaleTimeString(e,{minute:"numeric"}),c=o.toLocaleTimeString(e,{second:"numeric"});let l=a.replace(t.pm,"tt").replace(i,"mm").replace(c,Cu);const u=l.includes(n),d=`${(0).toLocaleString(e)}${r}`,p=new Date("August 19, 1975 6:15:30"),_=s.format(p);let f;if(u)f=_.includes(d)?"HH":"H",l=l.replace(n,f);else{const e=_.includes(d);f=e?"hh":"h",l=l.replace(e?d:r,f)}return function(e){const t=e.split(/\s+/);for(let e=0;e0){const n=`${e[t-1]}ss`,r=e.replace(n,"");e=r.length>t&&"t"!=r[r.length-1]?e.split(n)[0]:r}return e}(o.LongTimePattern);const l=Object.values(o).join("##");if(l.length>n)throw new Error(`Culture info exceeds length of ${n}.`);return lt(t,t+2*l.length,l),Lr(r,a),l.length}catch(e){return Rr(r,e,a),-1}finally{s.release(),a.release()}},function(e,t,n){const r=Ve(e),o=Ve(n);try{return function(e){const t=$u(e);if(t)return 7==t.firstDay?0:t.firstDay;if(["en-AE","en-SD","fa-IR"].includes(e))return 6;const n=e.split("-")[0];return["zh","th","pt","mr","ml","ko","kn","ja","id","hi","he","gu","fil","bn","am","ar"].includes(n)||["ta-SG","ta-IN","sw-KE","ms-SG","fr-CA","es-MX","en-US","en-ZW","en-ZA","en-WS","en-VI","en-UM","en-TT","en-SG","en-PR","en-PK","en-PH","en-MT","en-MO","en-MH","en-KE","en-JM","en-IN","en-IL","en-HK","en-GU","en-DM","en-CA","en-BZ","en-BW","en-BS","en-AU","en-AS","en-AG"].includes(e)?0:1}(Dl(ut(r)))}catch(e){return Rr(t,e,o),-1}finally{r.release(),o.release()}},function(e,t,n){const r=Ve(e),o=Ve(n);try{return function(e){const t=$u(e);if(t)return 7==t.minimalDays?1:t.minimalDays<4?0:2;const n=e.split("-")[0];return["pt-PT","fr-CH","fr-FR","fr-BE","es-ES","en-SE","en-NL","en-JE","en-IM","en-IE","en-GI","en-GG","en-GB","en-FJ","en-FI","en-DK","en-DE","en-CH","en-BE","en-AT","el-GR"].includes(e)||["sv","sk","ru","pl","nl","no","lt","it","hu","fi","et","de","da","cs","ca","bg"].includes(n)?2:0}(Dl(ut(r)))}catch(e){return Rr(t,e,o),-1}finally{r.release(),o.release()}}],Nu=[...Du,function(e){const t=hr;null!==t&&t.pthreadId==e||v(!1,"expected pthread_self to be set already when attaching"),ht("0x"+e.toString(16)),gt("attaching pthread to mono runtime 0x"+e.toString(16)),u.runtimeReady=!0,u.afterPreRun.promise_control.resolve(),fr.dispatchEvent(pr("dotnet:pthread:attached",t))},function(e){gt("detaching pthread from mono runtime 0x"+e.toString(16)),0!==Kr.size&&v(!1,"There should be no proxies on this thread."),1!==Jr.length&&v(!1,"There should be no proxies on this thread."),0!==Vr.size&&v(!1,"There should be no exports on this thread."),1!==kr.length&&v(!1,"There should be no imports on this thread."),u.runtimeReady=!1,u.afterPreRun=w(),ht("")},function(){return mo>0},function(e){const t=at(e);gt(`mono_wasm_diagnostic_server_on_server_thread_created, url ${t}`);const n=new Al(t,void 0);queueMicrotask((()=>{n.serverLoop()}))},function(e){Ec&&(function(){if(kc)return kc;throw new Error("unexpected no server controller")}().postServerAttachToRuntime(),Q(e,Sc?1:0))},function(e,t){const n=hl.get(e);n&&(0===t?n.wakeup():n.workAvailableNow())},function(e){Ju(),e&&!u.jsSynchronizationContextInstalled&&(u.jsSynchronizationContextInstalled=!0,gt("Installed JSSynchronizationContext")),e&&n.runtimeKeepalivePush(),hr&&hr.pthreadId},function(e){u.mono_wasm_bindings_is_ready||v(!1,"JS interop is not installed on this worker."),e&&!u.jsSynchronizationContextInstalled&&v(!1,"JSSynchronizationContext is not installed on this worker."),e&&(lo(!0,u.diagnosticTracing),n.runtimeKeepalivePop()),u.jsSynchronizationContextInstalled=!1,u.mono_wasm_bindings_is_ready=!1,hr&&hr.pthreadId},function(e,t,n,r,o){pu();const s=Ve(n),a=Ve(t),i=Ve(o);try{const t=ut(a);if(!t||"string"!=typeof t)return void Rr(r,"ERR12: Invalid method name object @"+a.value,i);const n=function(e){return e!==A&&e!==I?to(e):null}(e);if(C(n))return void Rr(r,"ERR13: Invalid JS object handle '"+e+"' while invoking '"+t+"'",i);const o=Eu(s);try{const e=n[t];if(void 0===e)throw new Error("Method: '"+t+"' not found for: '"+Object.prototype.toString.call(n)+"'");Zl(e.apply(n,o),i,!0),Lr(r)}catch(e){Rr(r,e,i)}}finally{s.release(),a.release(),i.release()}},function(e,t,n,r){pu();const o=Ve(t),s=Ve(r);try{const t=ut(o);if(!t)return void Rr(n,"Invalid property name object '"+o.value+"'",s);const r=to(e);if(C(r))return void Rr(n,"ERR01: Invalid JS object handle '"+e+"' while geting '"+t+"'",s);Zl(r[t],s,!0),Lr(n)}catch(e){Rr(n,e,s)}finally{s.release(),o.release()}},function(e,t,n,r,o,s,a){pu();const i=Ve(n),c=Ve(t),l=Ve(a);try{const n=ut(c);if(!n)return void Rr(s,"Invalid property name object '"+t+"'",l);const a=to(e);if(C(a))return void Rr(s,"ERR02: Invalid JS object handle '"+e+"' while setting '"+n+"'",l);const u=ku(i);if(r)a[n]=u;else{if(!r&&!Object.prototype.hasOwnProperty.call(a,n))return;!0===o?Object.prototype.hasOwnProperty.call(a,n)&&(a[n]=u):a[n]=u}Lr(s,l)}catch(e){Rr(s,e,l)}finally{l.release(),c.release(),i.release()}},function(e,t,n,r){pu();const o=Ve(r);try{const r=to(e);if(C(r))return void Rr(n,"ERR03: Invalid JS object handle '"+e+"' while getting ["+t+"]",o);Zl(r[t],o,!0),Lr(n)}catch(e){Rr(n,e,o)}finally{o.release()}},function(e,t,n,r,o){pu();const s=Ve(n),a=Ve(o);try{const n=to(e);if(C(n))return void Rr(r,"ERR04: Invalid JS object handle '"+e+"' while setting ["+t+"]",a);const o=ku(s);n[t]=o,Lr(r,a)}catch(e){Rr(r,e,a)}finally{a.release(),s.release()}},function(e,t,o){pu();const s=Ve(e),a=Ve(o);try{const e=ut(s);let o;if(o=e?"Module"==e?n:"INTERNAL"==e?r:globalThis[e]:globalThis,null===o||void 0===typeof o)return void Rr(t,"Global object '"+e+"' not found.",a);Zl(o,a,!0),Lr(t)}catch(e){Rr(t,e,a)}finally{a.release(),s.release()}},function(e,t,n,r){const o=Ve(t),s=Ve(e),a=Ve(r);try{const e=ut(s);if(!e)return void Rr(n,"Invalid name @"+s.value,a);const t=globalThis[e];if(null==t)return void Rr(n,"JavaScript host object '"+e+"' not found.",a);try{const e=Eu(o),r=function(e,t){let n=[];return n[0]=e,t&&(n=n.concat(t)),new(e.bind.apply(e,n))};Zl(no(r(t,e)),a,!1),Lr(n)}catch(e){return void Rr(n,e,a)}}finally{a.release(),o.release(),s.release()}},function(e,t,n){const r=Ve(n);try{const n=to(e);if(C(n))return void Rr(t,"ERR06: Invalid JS object handle '"+e+"'",r);eu(n,r),Lr(t)}catch(e){Rr(t,String(e),r)}finally{r.release()}},function(e,t,n,r,o,s,a){const i=Ve(a);try{const a=function(e,t,n,r,o){let s=null;switch(o){case 5:s=new Int8Array(n-t);break;case 6:s=new Uint8Array(n-t);break;case 7:s=new Int16Array(n-t);break;case 8:s=new Uint16Array(n-t);break;case 9:s=new Int32Array(n-t);break;case 10:s=new Uint32Array(n-t);break;case 13:s=new Float32Array(n-t);break;case 14:s=new Float64Array(n-t);break;case 15:s=new Uint8ClampedArray(n-t);break;default:throw new Error("Unknown array type "+o)}return function(e,t,n,r,o){if(Xl(e)&&e.BYTES_PER_ELEMENT){if(o!==e.BYTES_PER_ELEMENT)throw new Error("Inconsistent element sizes: TypedArray.BYTES_PER_ELEMENT '"+e.BYTES_PER_ELEMENT+"' sizeof managed element: '"+o+"'");let s=(r-n)*o;const a=e.length*e.BYTES_PER_ELEMENT;s>a&&(s=a);const i=n*o;return new Uint8Array(e.buffer,0,s).set(xe().subarray(t+i,t+i+s)),s}throw new Error("Object '"+e+"' is not a typed array")}(s,e,t,n,r),s}(e,t,n,r,o);Zl(a,i,!0),Lr(s)}catch(e){Rr(s,String(e),i)}finally{i.release()}},function(e,t,n,r,o){try{pu();const e=globalThis.Blazor;if(!e)throw new Error("The blazor.webassembly.js library is not loaded.");return e._internal.invokeJSFromDotNet(t,n,r,o)}catch(t){const n=t.message+"\n"+t.stack,r=We();return dt(n,r),r.copy_to_address(e),r.release(),0}}];function Bu(e){const t=e.env||e.a;if(!t)return void yt("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(Nu.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 Nu.entries()){const o=n[e];if(void 0!==o){const e=t[o];if("function"!=typeof e)throw new Error(`Expected ${o} to be a function`);t[o]=r,gt(`Replaced WASM import ${o} stub ${e.name} with ${r.name||"minified implementation"}`)}}}const Mu="https://dotnet.generated.invalid/wasm-memory";async function Pu(){if(void 0===globalThis.caches)return null;if(a&&!1===globalThis.window.isSecureContext)return null;const e=`dotnet-resources${document.baseURI.substring(document.location.origin.length)}`;try{return await globalThis.caches.open(e)||null}catch(e){return yt("Failed to open cache"),null}}async function Ou(){if(u.memorySnapshotCacheKey)return u.memorySnapshotCacheKey;if(!u.subtle)return null;const t=Object.assign({},u.config);t.resourcesHash=t.resources.hash,delete t.assets,delete t.resources,t.preferredIcuAsset=d.preferredIcuAsset,delete t.forwardConsoleLogsToWS,delete t.diagnosticTracing,delete t.appendElementOnExit,delete t.assertAfterExit,delete t.interopCleanupOnExit,delete t.logExitCode,delete t.pthreadPoolSize,delete t.asyncFlushOnExit,delete t.remoteSources,delete t.ignorePdbLoadErrors,delete t.maxParallelDownloads,delete t.enableDownloadRetry,delete t.exitAfterSnapshot,delete t.extensions,t.GitHash=d.gitHash,t.ProductVersion=e;const n=JSON.stringify(t),r=await u.subtle.digest("SHA-256",(new TextEncoder).encode(n)),o=new Uint8Array(r),s=Array.from(o).map((e=>e.toString(16).padStart(2,"0"))).join("");return u.memorySnapshotCacheKey=`${Mu}-${s}`,u.memorySnapshotCacheKey}async function Fu(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),d.out=e.print,d.err=e.printErr,await es(),await async function(){try{if(!u.config.startupMemoryCache)return;const e=await Ou();if(!e)return;const t=await Pu();if(!t)return;const n=await t.match(e),r=null==n?void 0:n.headers.get("content-length"),o=r?parseInt(r):void 0;u.loadedMemorySnapshotSize=o,u.storeMemorySnapshotPending=!o}catch(e){yt("Failed find memory snapshot in the cache",e)}finally{u.loadedMemorySnapshotSize||d.memorySnapshotSkippedOrDone.promise_control.resolve()}}()}function zu(e){const t=rn();e.locateFile||(e.locateFile=e.__locateFile=e=>d.scriptDirectory+e),e.mainScriptUrlOrBlob=d.scriptUrl;const r=e.instantiateWasm,c=e.preInit?"function"==typeof e.preInit?[e.preInit]:e.preInit:[],p=e.preRun?"function"==typeof e.preRun?[e.preRun]:e.preRun:[],g=e.postRun?"function"==typeof e.postRun?[e.postRun]:e.postRun:[],b=e.onRuntimeInitialized?e.onRuntimeInitialized:()=>{};e.instantiateWasm=(e,t)=>function(e,t,r){const o=rn();if(r){const n=r(e,((e,n)=>{on(o,"mono.instantiateWasm"),u.afterInstantiateWasm.promise_control.resolve(),t(e,n)}));return n}return async function(e,t){var r;try{await d.afterConfigLoaded,gt("instantiate_wasm_module"),await u.beforePreInit.promise,n.addRunDependency("instantiate_wasm_module");const o=async function(){_&&(await d.simd()||v(!1,"This browser/engine doesn't support WASM SIMD. Please use a modern version. See also https://aka.ms/dotnet-wasm-features")),f&&(await d.exceptions()||v(!1,"This browser/engine doesn't support WASM exception handling. Please use a modern version. See also https://aka.ms/dotnet-wasm-features"))}();Bu(e);const s=await d.wasmDownloadPromise.promise;if(await o,await async function(e,t,n){e&&e.pendingDownloadInternal&&e.pendingDownloadInternal.response||v(!1,"Can't load dotnet.native.wasm");const r=await e.pendingDownloadInternal.response,o=r.headers&&r.headers.get?r.headers.get("Content-Type"):void 0;let s,c;if("function"==typeof WebAssembly.instantiateStreaming&&"application/wasm"===o){gt("instantiate_wasm_module streaming");const e=await WebAssembly.instantiateStreaming(r,t);s=e.instance,c=e.module}else{a&&"application/wasm"!==o&&yt('WebAssembly resource does not have the expected content type "application/wasm", so falling back to slower ArrayBuffer instantiation.');const e=await r.arrayBuffer();if(gt("instantiate_wasm_module buffered"),i)c=new WebAssembly.Module(e),s=new WebAssembly.Instance(c,t);else{const n=await WebAssembly.instantiate(e,t);s=n.instance,c=n.module}}n(s,c)}(s,e,t),s.pendingDownloadInternal=null,s.pendingDownload=null,s.buffer=null,s.moduleExports=null,gt("instantiate_wasm_module done"),u.loadedMemorySnapshotSize){try{const e=(null===(r=n.asm)||void 0===r?void 0:r.memory)||n.wasmMemory;e.grow(u.loadedMemorySnapshotSize-e.buffer.byteLength+65535>>>16),u.updateMemoryViews()}catch(e){yt("failed to resize memory for the snapshot",e),u.loadedMemorySnapshotSize=void 0}d.memorySnapshotSkippedOrDone.promise_control.resolve()}u.afterInstantiateWasm.promise_control.resolve()}catch(e){throw wt("instantiate_wasm_module() failed",e),d.mono_exit(1,e),e}n.removeRunDependency("instantiate_wasm_module")}(e,t),[]}(e,t,r),e.preInit=[()=>function(e){n.addRunDependency("mono_pre_init");const t=rn();try{Hu(!1),gt("preInit"),u.beforePreInit.promise_control.resolve(),e.forEach((e=>e()))}catch(e){throw wt("user preInint() failed",e),d.mono_exit(1,e),e}(async()=>{try{await async function(){gt("mono_wasm_pre_init_essential_async"),n.addRunDependency("mono_wasm_pre_init_essential_async"),function(e,t){const n=null==t?void 0:t.pthreadPoolSize;let r;null==n?r=4:("number"!=typeof n&&v(!1,"pthreadPoolSize must be a number"),r=n<0?4:n);for(let e=0;easync function(e){n.addRunDependency("mono_pre_run_async");try{await u.afterInstantiateWasm.promise,await u.afterPreInit.promise,gt("preRunAsync");const t=rn();e.map((e=>e())),on(t,"mono.preRun")}catch(e){throw wt("user callback preRun() failed",e),d.mono_exit(1,e),e}u.afterPreRun.promise_control.resolve(),n.removeRunDependency("mono_pre_run_async")}(p)],e.onRuntimeInitialized=()=>async function(e){try{await u.afterPreRun.promise,gt("onRuntimeInitialized"),u.mono_wasm_exit=xt.mono_wasm_exit,u.abort=e=>{throw d.is_exited()||xt.mono_wasm_abort(),e};const t=rn();if(u.beforeOnRuntimeInitialized.promise_control.resolve(),await async function(){await u.allAssetsInMemory.promise,u.config.assets&&(d.actual_downloaded_assets_count!=d.expected_downloaded_assets_count&&v(!1,`Expected ${d.expected_downloaded_assets_count} assets to be downloaded, but only finished ${d.actual_downloaded_assets_count}`),d.actual_instantiated_assets_count!=d.expected_instantiated_assets_count&&v(!1,`Expected ${d.expected_instantiated_assets_count} assets to be in memory, but only instantiated ${d.actual_instantiated_assets_count}`),d._loaded_files.forEach((e=>d.loadedFiles.push(e.url))),gt("all assets are loaded in wasm memory"))}(),$&&!u.config.startupMemoryCache&&await Wu(),await async function(){const e=rn();if(u.loadedMemorySnapshotSize){const e=await async function(){try{const e=await Ou();if(!e)return;const t=await Pu();if(!t)return;const n=await t.match(e);if(!n)return;return n.arrayBuffer()}catch(e){return void yt("Failed load memory snapshot from the cache",e)}}(),t=xe();return e.byteLength!==t.byteLength&&v(!1,"Loaded memory is not the expected size"),t.set(new Uint8Array(e),0),void gt("Loaded WASM linear memory from browser cache")}for(const e in u.config.environmentVariables){const t=u.config.environmentVariables[e];if("string"!=typeof t)throw new Error(`Expected environment variable '${e}' to be a string but it was ${typeof t}: '${t}'`);qu(e,t)}u.config.startupMemoryCache&&xt.mono_jiterp_update_jit_call_dispatcher(0),u.config.runtimeOptions&&function(e){if(!Array.isArray(e))throw new Error("Expected runtimeOptions to be an array of strings");const t=n._malloc(4*e.length);let r=0;for(let o=0;oaot; 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;Rt.mono_wasm_profiler_init_aot(t)}(u.config.aotProfilerOptions),u.config.browserProfilerOptions&&(u.config.browserProfilerOptions,h||v(!1,"Browser profiler is not enabled, please use browser; in your project file."),Rt.mono_wasm_profiler_init_browser("browser:")),Gu(),u.config.startupMemoryCache&&(xt.mono_jiterp_update_jit_call_dispatcher(-1),await async function(e){try{const t=await Ou();if(!t)return;const n=await Pu();if(!n)return;const r=$?new Uint8Array(e).slice(0):e,o=new Response(r,{headers:{"content-type":"wasm-memory","content-length":e.byteLength.toString()}});await n.put(t,o),async function(e){try{const t=await Pu();if(!t)return;const n=await t.keys();for(const r of n)r.url&&r.url!==e&&r.url.startsWith(Mu)&&await t.delete(r)}catch(e){return}}(t)}catch(e){return void yt("Failed to store memory snapshot in the cache",e)}}(xe().buffer),u.storeMemorySnapshotPending=!1),on(e,"mono.memorySnapshot")}(),u.config.exitAfterSnapshot){const e=u.ExitStatus?new u.ExitStatus(0):new Error("Snapshot taken, exiting because exitAfterSnapshot was set.");return e.silent=!0,void d.mono_exit(0,e)}$&&u.config.startupMemoryCache&&await Wu(),Ju(),u.runtimeReady=!0,o&&!s&&n.runtimeKeepalivePush(),$&&(u.javaScriptExports.install_synchronization_context(),u.jsSynchronizationContextInstalled=!0),u.mono_wasm_runtime_is_ready||mono_wasm_runtime_ready(),0!==d.config.debugLevel&&d.config.cacheBootResources&&d.logDownloadStatsToConsole(),setTimeout((()=>{d.purgeUnusedCacheEntriesAsync()}),d.config.cachedResourcesPurgeDelay);try{e()}catch(e){throw wt("user callback onRuntimeInitialized() failed",e),e}await async function(){gt("mono_wasm_after_user_runtime_initialized");try{if(!n.disableDotnet6Compatibility&&n.exports){const e=globalThis;for(let t=0;tasync function(e){try{await u.afterOnRuntimeInitialized.promise,gt("postRunAsync");const t=rn();n.FS_createPath("/","usr",!0,!0),n.FS_createPath("/","usr/share",!0,!0),e.map((e=>e())),on(t,"mono.postRun")}catch(e){throw wt("user callback posRun() failed",e),d.mono_exit(1,e),e}u.afterPostRun.promise_control.resolve()}(g)],e.ready.then((async()=>{await u.afterPostRun.promise,on(t,"mono.emscriptenStartup"),u.dotnetReady.promise_control.resolve(l)})).catch((e=>{u.dotnetReady.promise_control.reject(e)})),e.ready=u.dotnetReady.promise,e.onAbort||(e.onAbort=e=>{d.mono_exit(1,e)}),e.onExit||(e.onExit=e=>{d.mono_exit(e,null)})}async function Vu(e,t){await d.afterConfigLoaded.promise,Bu(e),t(new WebAssembly.Instance(n.wasmModule,e),void 0),n.wasmModule=null}async function Wu(){ht(`0x${(void 0===mr&&(mr=n._emscripten_main_runtime_thread_id()),mr).toString(16)}-main`),await async function(){const e=qo.getUnusedWorkerPool();if(e.length>0){const t=e.map(qo.loadWasmModuleToWorker);await Promise.all(t)}}(),await Uc()}function Hu(e){var t,o,s;e||n.addRunDependency("mono_wasm_pre_init_essential"),gt("mono_wasm_pre_init_essential"),d.gitHash!==u.gitHash&&yt("The version of dotnet.runtime.js is different from the version of dotnet.js!"),d.gitHash!==u.moduleGitHash&&yt("The version of dotnet.native.js is different from the version of dotnet.js!"),function(){const e=[...It,...p?[]:Ut];for(const t of e){const e=At,[n,r,o,s,a]=t,i="function"==typeof n;if(!0===n||i)e[r]=function(...t){!i||!n()||v(!1,`cwrap ${r} should not be called when binding was skipped`);const c=$t(r,o,s,a);return e[r]=c,c(...t)};else{const t=$t(r,o,s,a);e[r]=t}}}(),t=r,Object.assign(t,{mono_wasm_exit:xt.mono_wasm_exit,mono_wasm_enable_on_demand_gc:xt.mono_wasm_enable_on_demand_gc,mono_wasm_profiler_init_aot:Rt.mono_wasm_profiler_init_aot,mono_wasm_profiler_init_browser:Rt.mono_wasm_profiler_init_browser,mono_wasm_exec_regression:xt.mono_wasm_exec_regression}),p||(s=Hl,Object.assign(s,{mono_wasm_add_assembly:jt.mono_wasm_add_assembly}),o=ql,Object.assign(o,{mono_obj_array_new:jt.mono_wasm_obj_array_new,mono_obj_array_set:jt.mono_wasm_obj_array_set,mono_obj_array_new_ref:jt.mono_wasm_obj_array_new_ref,mono_obj_array_set_ref:jt.mono_wasm_obj_array_set_ref})),e||n.removeRunDependency("mono_wasm_pre_init_essential")}function qu(e,t){xt.mono_wasm_setenv(e,t)}function Gu(){gt("mono_wasm_load_runtime");try{const e=rn();let t=u.config.debugLevel;null==t&&(t=0,u.config.debugLevel&&(t=0+t)),d.isDebuggingSupported()&&u.config.resources.pdb||(t=0),xt.mono_wasm_load_runtime("unused",t),on(e,"mono.loadRuntime")}catch(e){throw wt("mono_wasm_load_runtime () failed",e),d.mono_exit(1,e),e}}function Ju(){if(!u.mono_wasm_bindings_is_ready){gt("bindings_init"),u.mono_wasm_bindings_is_ready=!0;try{const e=rn();Ye||("undefined"!=typeof TextDecoder&&(Ze=new TextDecoder("utf-16le"),Qe=new TextDecoder("utf-8",{fatal:!1}),et=new TextDecoder("utf-8"),tt=new TextEncoder),Ye=n._malloc(12)),function(){const e="System.Runtime.InteropServices.JavaScript";if(u.runtime_interop_module=xt.mono_wasm_assembly_load(e),!u.runtime_interop_module)throw"Can't find bindings module assembly: "+e;if(u.runtime_interop_namespace="System.Runtime.InteropServices.JavaScript",u.runtime_interop_exports_classname="JavaScriptExports",u.runtime_interop_exports_class=xt.mono_wasm_assembly_find_class(u.runtime_interop_module,u.runtime_interop_namespace,u.runtime_interop_exports_classname),!u.runtime_interop_exports_class)throw"Can't find "+u.runtime_interop_namespace+"."+u.runtime_interop_exports_classname+" class";const t=ts("InstallSynchronizationContext");t||v(!1,"Can't find InstallSynchronizationContext method");const r=ts("CallEntrypoint");r||v(!1,"Can't find CallEntrypoint method");const o=ts("ReleaseJSOwnedObjectByGCHandle");o||v(!1,"Can't find ReleaseJSOwnedObjectByGCHandle method");const s=ts("CreateTaskCallback");s||v(!1,"Can't find CreateTaskCallback method");const a=ts("CompleteTask");a||v(!1,"Can't find CompleteTask method");const i=ts("CallDelegate");i||v(!1,"Can't find CallDelegate method");const c=ts("GetManagedStackTrace");c||v(!1,"Can't find GetManagedStackTrace method");const l=ts("LoadSatelliteAssembly");l||v(!1,"Can't find LoadSatelliteAssembly method");const p=ts("LoadLazyAssembly");p||v(!1,"Can't find LoadLazyAssembly method"),u.javaScriptExports.call_entry_point=async(e,t)=>{d.assert_runtime_running();const o=n.stackSave();try{n.runtimeKeepalivePush();const o=fn(4),s=mn(o,1),a=mn(o,2),i=mn(o,3);xo(a,e),t&&0==t.length&&(t=void 0),zo(i,t,L.String),zr(r,o);let c=tr(s,0,qn);return null==c&&(c=Promise.resolve(0)),c[eo]=!0,await c}finally{n.runtimeKeepalivePop(),n.stackRestore(o)}},u.javaScriptExports.load_satellite_assembly=e=>{const t=n.stackSave();try{const t=fn(3),n=mn(t,2);Tn(n,L.Array),Fo(n,e,L.Byte),zr(l,t)}finally{n.stackRestore(t)}},u.javaScriptExports.load_lazy_assembly=(e,t)=>{const r=n.stackSave();try{const n=fn(4),r=mn(n,2),o=mn(n,3);Tn(r,L.Array),Tn(o,L.Array),Fo(r,e,L.Byte),Fo(o,t,L.Byte),zr(p,n)}finally{n.stackRestore(r)}},u.javaScriptExports.release_js_owned_object_by_gc_handle=e=>{e||v(!1,"Must be valid gc_handle"),d.assert_runtime_running();const t=n.stackSave();try{const t=fn(3),n=mn(t,2);Tn(n,L.Object),$n(n,e),zr(o,t)}finally{n.stackRestore(t)}},u.javaScriptExports.create_task_callback=()=>{const e=n.stackSave();d.assert_runtime_running();try{const e=fn(2);return zr(s,e),Ln(mn(e,1))}finally{n.stackRestore(e)}},u.javaScriptExports.complete_task=(e,t,r,o)=>{d.assert_runtime_running();const s=n.stackSave();try{const n=fn(5),s=mn(n,2);Tn(s,L.Object),$n(s,e);const i=mn(n,3);if(t)Mo(i,t);else{Tn(i,L.None);const e=mn(n,4);o||v(!1,"res_converter missing"),o(e,r)}zr(a,n)}finally{n.stackRestore(s)}},u.javaScriptExports.call_delegate=(e,t,r,o,s,a,c,l)=>{d.assert_runtime_running();const u=n.stackSave();try{const n=fn(6),u=mn(n,2);if(Tn(u,L.Object),$n(u,e),a&&a(mn(n,3),t),c&&c(mn(n,4),r),l&&l(mn(n,5),o),zr(i,n),s)return s(mn(n,1))}finally{n.stackRestore(u)}},u.javaScriptExports.get_managed_stack_trace=e=>{d.assert_runtime_running();const t=n.stackSave();try{const t=fn(3),n=mn(t,2);return Tn(n,L.Exception),$n(n,e),zr(c,t),nr(mn(t,1))}finally{n.stackRestore(t)}},t&&(u.javaScriptExports.install_synchronization_context=()=>{const e=n.stackSave();try{const e=fn(2);zr(t,e)}finally{n.stackRestore(e)}})}(),!t||p||c||function(){if(Object.prototype[Jl]=0,Array.prototype[Jl]=1,ArrayBuffer.prototype[Jl]=2,DataView.prototype[Jl]=3,Function.prototype[Jl]=4,Uint8Array.prototype[Jl]=11,Gl._unbox_buffer_size=65536,Gl._box_buffer=n._malloc(65536),Gl._unbox_buffer=n._malloc(Gl._unbox_buffer_size),Gl._class_int32=Fr("System","Int32"),Gl._class_uint32=Fr("System","UInt32"),Gl._class_double=Fr("System","Double"),Gl._class_boolean=Fr("System","Boolean"),Gl._null_root=We(),function(){const e=ou;e.set("m",{steps:[{}],size:0}),e.set("s",{steps:[{convert_root:dt.bind(n)}],size:0,needs_root:!0}),e.set("S",{steps:[{convert_root:pt.bind(n)}],size:0,needs_root:!0}),e.set("o",{steps:[{convert_root:Zl.bind(n)}],size:0,needs_root:!0}),e.set("u",{steps:[{convert_root:Yl.bind(n,!1)}],size:0,needs_root:!0}),e.set("R",{steps:[{convert_root:Zl.bind(n),byref:!0}],size:0,needs_root:!0}),e.set("j",{steps:[{convert:nu.bind(n),indirect:"i32"}],size:8}),e.set("b",{steps:[{indirect:"bool"}],size:8}),e.set("i",{steps:[{indirect:"i32"}],size:8}),e.set("I",{steps:[{indirect:"u32"}],size:8}),e.set("l",{steps:[{indirect:"i52"}],size:8}),e.set("L",{steps:[{indirect:"u52"}],size:8}),e.set("f",{steps:[{indirect:"float"}],size:8}),e.set("d",{steps:[{indirect:"double"}],size:8})}(),Gl.runtime_legacy_exports_classname="LegacyExports",Gl.runtime_legacy_exports_class=xt.mono_wasm_assembly_find_class(u.runtime_interop_module,u.runtime_interop_namespace,Gl.runtime_legacy_exports_classname),!Gl.runtime_legacy_exports_class)throw"Can't find "+u.runtime_interop_namespace+"."+Gl.runtime_legacy_exports_classname+" class";for(const e of _u){const t=fu,[n,r,o,s]=e;if(n)t[r]=function(...e){const n=mu(o,s);return t[r]=n,n(...e)};else{const e=mu(o,s);t[r]=e}}}(),0==cn.size&&(cn.set(L.Array,ar),cn.set(L.Span,cr),cn.set(L.ArraySegment,lr),cn.set(L.Boolean,zn),cn.set(L.Byte,Vn),cn.set(L.Char,Wn),cn.set(L.Int16,Hn),cn.set(L.Int32,qn),cn.set(L.Int52,Gn),cn.set(L.BigInt64,Jn),cn.set(L.Single,Xn),cn.set(L.IntPtr,Kn),cn.set(L.Double,Yn),cn.set(L.String,nr),cn.set(L.Exception,rr),cn.set(L.JSException,rr),cn.set(L.JSObject,or),cn.set(L.Object,sr),cn.set(L.DateTime,Qn),cn.set(L.DateTimeOffset,Qn),cn.set(L.Task,tr),cn.set(L.Action,er),cn.set(L.Function,er),cn.set(L.None,Zn),cn.set(L.Void,Zn),cn.set(L.Discard,Zn)),0==ln.size&&(ln.set(L.Array,Fo),ln.set(L.Span,Vo),ln.set(L.ArraySegment,Wo),ln.set(L.Boolean,wo),ln.set(L.Byte,vo),ln.set(L.Char,ko),ln.set(L.Int16,So),ln.set(L.Int32,Eo),ln.set(L.Int52,To),ln.set(L.BigInt64,Uo),ln.set(L.Double,Io),ln.set(L.Single,Ao),ln.set(L.IntPtr,xo),ln.set(L.DateTime,jo),ln.set(L.DateTimeOffset,Co),ln.set(L.String,Ro),ln.set(L.Exception,Mo),ln.set(L.JSException,Mo),ln.set(L.JSObject,Po),ln.set(L.Object,Oo),ln.set(L.Task,Bo),ln.set(L.Action,Do),ln.set(L.Function,Do),ln.set(L.None,$o),ln.set(L.Discard,$o),ln.set(L.Void,$o)),u._i52_error_scratch_buffer=n._malloc(4),on(e,"mono.bindingsInit")}catch(e){throw wt("Error in bindings_init",e),e}}}async function Xu(e){fr=new globalThis.EventTarget,fr.addEventListener(ur,(e=>{gt("pthread created 0x"+e.pthread_self.pthreadId.toString(16))})),e.preInit=[()=>async function(){gt("worker initializing essential C exports and APIs");const e=rn();try{gt("preInitWorker"),u.beforePreInit.promise_control.resolve(),Hu(!0),await es(),u.afterPreInit.promise_control.resolve(),on(e,"mono.preInitWorker")}catch(e){throw wt("user preInitWorker() failed",e),d.mono_exit(1,e),e}}()],e.instantiateWasm=Vu,await u.afterPreInit.promise}function Yu(t){const r=n,o=t,s=globalThis;p||function(e){Hl=e.mono,ql=e.binding}(o),p||(Object.assign(o.mono,{mono_wasm_setenv:qu,mono_wasm_load_bytes_into_heap:ke,mono_wasm_load_icu_data:Gs,mono_wasm_runtime_ready:mono_wasm_runtime_ready,mono_wasm_new_root_buffer:ze,mono_wasm_new_root:We,mono_wasm_new_external_root:Ve,mono_wasm_release_roots:He,mono_run_main:Vl,mono_run_main_and_exit:zl,mono_wasm_add_assembly:null,mono_wasm_load_runtime:Gu,config:u.config,loaded_files:[],setB32:W,setI8:Y,setI16:K,setI32:Q,setI52:te,setU52:ne,setI64Big:re,setU8:H,setU16:q,setU32:X,setF32:oe,setF64:se,getB32:ae,getI8:_e,getI16:fe,getI32:me,getI52:he,getU52:ge,getI64Big:be,getU8:ie,getU16:ce,getU32:le,getF32:ye,getF64:we}),Object.assign(o.binding,{bind_static_method:xu,call_assembly_entry_point:ju,mono_obj_array_new:null,mono_obj_array_set:null,js_string_to_mono_string:gu,js_typed_array_to_array:tu,mono_array_to_js_array:Su,js_to_mono_obj:Kl,conv_string:Uu,unbox_mono_obj:wu,mono_obj_array_new_ref:null,mono_obj_array_set_ref:null,js_string_to_mono_string_root:dt,js_typed_array_to_array_root:eu,js_to_mono_obj_root:Zl,conv_string_root:ut,unbox_mono_obj_root:ku,mono_array_root_to_js_array:Eu}),Object.assign(o.internal,{stringToMonoStringIntern:bu,mono_method_resolve:uu})),Object.assign(o.internal,{mono_wasm_exit:e=>{n.err("early exit "+e)},forceDisposeProxies:lo,logging:void 0,mono_wasm_stringify_as_error_with_stack:Et,mono_wasm_get_loaded_files:Ys,mono_wasm_send_dbg_command_with_parms:Ht,mono_wasm_send_dbg_command:qt,mono_wasm_get_dbg_command_info:Gt,mono_wasm_get_details:en,mono_wasm_release_object:nn,mono_wasm_call_function_on:Qt,mono_wasm_debugger_resume:Jt,mono_wasm_detach_debugger:Xt,mono_wasm_raise_debug_event:Kt,mono_wasm_change_debugger_log_level:Yt,mono_wasm_debugger_attached:Zt,mono_wasm_runtime_is_ready:u.mono_wasm_runtime_is_ready,mono_wasm_get_func_id_to_name_mappings:Tt,get_property:Tr,set_property:Er,has_property:Ur,get_typeof_property:Ir,get_global_this:Ar,get_dotnet_instance:()=>l,dynamic_import:Cr,mono_wasm_cancel_promise:fo,ws_wasm_create:Ps,ws_wasm_open:Os,ws_wasm_send:Fs,ws_wasm_receive:zs,ws_wasm_close:Vs,ws_wasm_abort:Ws,ws_get_state:Ms,http_wasm_supports_streaming_response:rs,http_wasm_create_abort_controler:os,http_wasm_abort_request:ss,http_wasm_abort_response:as,http_wasm_fetch:cs,http_wasm_fetch_bytes:is,http_wasm_get_response_header_names:us,http_wasm_get_response_header_values:ds,http_wasm_get_response_bytes:_s,http_wasm_get_response_length:ps,http_wasm_get_streamed_response_bytes:fs,jiterpreter_dump_stats:_c,jiterpreter_apply_options:Ra,jiterpreter_get_options:La,mono_wasm_gc_lock:mc,mono_wasm_gc_unlock:hc,loadLazyAssembly:gc,loadSatelliteAssemblies:bc}),Object.assign(u,{stringify_as_error_with_stack:Et,instantiate_symbols_asset:Xs,instantiate_asset:Js,jiterpreter_dump_stats:_c,forceDisposeProxies:lo});const a={runMain:Vl,runMainAndExit:zl,setEnvironmentVariable:qu,getAssemblyExports:Wr,setModuleImports:Sr,getConfig:()=>u.config,invokeLibraryInitializers:d.invokeLibraryInitializers,setHeapB32:W,setHeapU8:H,setHeapU16:q,setHeapU32:X,setHeapI8:Y,setHeapI16:K,setHeapI32:Q,setHeapI52:te,setHeapU52:ne,setHeapI64Big:re,setHeapF32:oe,setHeapF64:se,getHeapB32:ae,getHeapU8:ie,getHeapU16:ce,getHeapU32:le,getHeapI8:_e,getHeapI16:fe,getHeapI32:me,getHeapI52:he,getHeapU52:ge,getHeapI64Big:be,getHeapF32:ye,getHeapF64:we,localHeapViewU8:xe,localHeapViewU16:je,localHeapViewU32:Ce,localHeapViewI8:Te,localHeapViewI16:Ue,localHeapViewI32:Ie,localHeapViewI64Big:Ae,localHeapViewF32:Re,localHeapViewF64:Le};if(Object.assign(l,{INTERNAL:o.internal,Module:r,runtimeBuildInfo:{productVersion:e,gitHash:u.gitHash,buildConfiguration:"Release"},...a}),p||Object.assign(l,{MONO:o.mono,BINDING:o.binding}),void 0===r.disableDotnet6Compatibility&&(r.disableDotnet6Compatibility=!0),!r.disableDotnet6Compatibility){Object.assign(r,l),p||(r.mono_bind_static_method=(e,t)=>(yt("Module.mono_bind_static_method is obsolete, please use [JSExportAttribute] interop instead"),xu(e,t)));const e=(e,t)=>{if(void 0!==s[e])return;let n;Object.defineProperty(globalThis,e,{get:()=>{if(C(n)){const r=(new Error).stack,o=r?r.substr(r.indexOf("\n",8)+1):"";yt(`global ${e} is obsolete, please use Module.${e} instead ${o}`),n=t()}return n}})};s.MONO=o.mono,s.BINDING=o.binding,s.INTERNAL=o.internal,s.Module=r,e("cwrap",(()=>r.cwrap)),e("addRunDependency",(()=>r.addRunDependency)),e("removeRunDependency",(()=>r.removeRunDependency))}let i;return s.getDotnetRuntime?i=s.getDotnetRuntime.__list:(s.getDotnetRuntime=e=>s.getDotnetRuntime.__list.getRuntime(e),s.getDotnetRuntime.__list=i=new Ku),i.registerRuntime(l),l}class Ku{constructor(){this.list={}}registerRuntime(e){return e.runtimeId=Object.keys(this.list).length,this.list[e.runtimeId]=Nr(e),e.runtimeId}getRuntime(e){const t=this.list[e];return t?t.deref():void 0}}export{zu as configureEmscriptenStartup,Fu as configureRuntimeStartup,Xu as configureWorkerStartup,Yu as initializeExports,Qo as initializeReplacements,b as passEmscriptenInternals,y as setRuntimeGlobals}; +//# sourceMappingURL=dotnet.runtime.js.map diff --git a/packages/dotnet-runtime/src/vendor/compiler/dotnet.runtime.8.0.8.z7rssunyd7.js b/packages/dotnet-runtime/src/vendor/compiler/dotnet.runtime.8.0.8.z7rssunyd7.js deleted file mode 100755 index f95a4fa..0000000 --- a/packages/dotnet-runtime/src/vendor/compiler/dotnet.runtime.8.0.8.z7rssunyd7.js +++ /dev/null @@ -1,4 +0,0 @@ -//! Licensed to the .NET Foundation under one or more agreements. -//! The .NET Foundation licenses this file to you under the MIT license. -var e="8.0.8",t=!0;let n,r;const o="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,s="function"==typeof importScripts,a="object"==typeof window||s&&!o,i=!a&&!o&&!s;let c,l=null,u=null,d=null,p=!1,_=!0,f=!0,m=!1,h=!1,g=!1;function b(e){c=e.isPThread,p=e.linkerDisableLegacyJsInterop,_=e.linkerWasmEnableSIMD,f=e.linkerWasmEnableEH,m=e.linkerEnableAotProfiler,h=e.linkerEnableBrowserProfiler,u.quit=e.quit_,u.ExitStatus=e.ExitStatus,u.moduleGitHash=e.gitHash}function y(e){if(g)throw new Error("Runtime module already loaded");g=!0,n=e.module,r=e.internal,u=e.runtimeHelpers,d=e.loaderHelpers,l=e.api,Object.assign(u,{gitHash:"08338fcaa5c9b9a8190abb99222fed12aaba956c",allAssetsInMemory:w(),dotnetReady:w(),afterInstantiateWasm:w(),beforePreInit:w(),afterPreInit:w(),afterPreRun:w(),beforeOnRuntimeInitialized:w(),afterOnRuntimeInitialized:w(),afterPostRun:w(),mono_wasm_exit:()=>{throw new Error("Mono shutdown")},abort:e=>{throw e}}),Object.assign(e.module.config,{}),Object.assign(e.api,{Module:e.module,...e.module}),Object.assign(e.api,{INTERNAL:e.internal})}function w(e,t){return d.createPromiseController(e,t)}function v(e,t){if(e)return;const n="Assert failed: "+("function"==typeof t?t():t),r=new Error(n);u.abort(r)}const k=0,S=0,E=0,T=0,U=0,I=-1,A=0,x=0,j=0;function C(e){return null==e}function R(e){throw new Error("Unexpected value: "+e)}var L;!function(e){e[e.None=0]="None",e[e.Void=1]="Void",e[e.Discard=2]="Discard",e[e.Boolean=3]="Boolean",e[e.Byte=4]="Byte",e[e.Char=5]="Char",e[e.Int16=6]="Int16",e[e.Int32=7]="Int32",e[e.Int52=8]="Int52",e[e.BigInt64=9]="BigInt64",e[e.Double=10]="Double",e[e.Single=11]="Single",e[e.IntPtr=12]="IntPtr",e[e.JSObject=13]="JSObject",e[e.Object=14]="Object",e[e.String=15]="String",e[e.Exception=16]="Exception",e[e.DateTime=17]="DateTime",e[e.DateTimeOffset=18]="DateTimeOffset",e[e.Nullable=19]="Nullable",e[e.Task=20]="Task",e[e.Array=21]="Array",e[e.ArraySegment=22]="ArraySegment",e[e.Span=23]="Span",e[e.Action=24]="Action",e[e.Function=25]="Function",e[e.JSException=26]="JSException"}(L||(L={}));var $=!0;const D=[],N=32768;let B,M;const P=BigInt("9223372036854775807"),O=BigInt("-9223372036854775808");function F(){B||(B=n._malloc(N),M=B),D.push(M)}function z(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 V(e,t){xe().fill(0,e,e+t)}function W(e,t){$e();const r=!!t;"number"==typeof t&&z(t,0,1),n.HEAP32[e>>>2]=r?1:0}function H(e,t){z(t,0,255),$e(),n.HEAPU8[e]=t}function q(e,t){z(t,0,65535),$e(),n.HEAPU16[e>>>1]=t}function G(e,t,n){z(n,0,65535),e[t>>>1]=n}function J(e,t){n.HEAPU32[e>>>2]=t}function X(e,t){z(t,0,4294967295),$e(),n.HEAPU32[e>>>2]=t}function Y(e,t){z(t,-128,127),$e(),n.HEAP8[e]=t}function K(e,t){z(t,-32768,32767),$e(),n.HEAP16[e>>>1]=t}function Z(e,t){$e(),n.HEAP32[e>>>2]=t}function Q(e,t){z(t,-2147483648,2147483647),$e(),n.HEAP32[e>>>2]=t}function ee(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 te(e,t){if(!Number.isSafeInteger(t))throw new Error(`Assert failed: Value is not a safe integer: ${t} (${typeof t})`);$e(),ee(xt.mono_wasm_f64_to_i52(e,t))}function ne(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(),ee(xt.mono_wasm_f64_to_u52(e,t))}function re(e,t){if("bigint"!=typeof t)throw new Error(`Assert failed: Value is not an bigint: ${t} (${typeof t})`);if(!(t>=O&&t<=P))throw new Error(`Assert failed: Overflow: value ${t} is out of ${O} ${P} range`);n.HEAP64[e>>>3]=t}function oe(e,t){if("number"!=typeof t)throw new Error(`Assert failed: Value is not a Number: ${t} (${typeof t})`);$e(),n.HEAPF32[e>>>2]=t}function se(e,t){if("number"!=typeof t)throw new Error(`Assert failed: Value is not a Number: ${t} (${typeof t})`);$e(),n.HEAPF64[e>>>3]=t}function ae(e){return $e(),!!n.HEAP32[e>>>2]}function ie(e){return $e(),n.HEAPU8[e]}function ce(e){return $e(),n.HEAPU16[e>>>1]}function le(e){return $e(),n.HEAPU32[e>>>2]}function ue(e,t){return e[t>>>2]}function de(e){return xt.mono_wasm_get_i32_unaligned(e)}function pe(e){return xt.mono_wasm_get_i32_unaligned(e)>>>0}function _e(e){return $e(),n.HEAP8[e]}function fe(e){return $e(),n.HEAP16[e>>>1]}function me(e){return $e(),n.HEAP32[e>>>2]}function he(e){const t=xt.mono_wasm_i52_to_f64(e,u._i52_error_scratch_buffer);return ee(me(u._i52_error_scratch_buffer)),t}function ge(e){const t=xt.mono_wasm_u52_to_f64(e,u._i52_error_scratch_buffer);return ee(me(u._i52_error_scratch_buffer)),t}function be(e){return $e(),n.HEAP64[e>>>3]}function ye(e){return $e(),n.HEAPF32[e>>>2]}function we(e){return $e(),n.HEAPF64[e>>>3]}function ve(e,t,r,o,s){const a=n.stackSave(),i=n.stackAlloc(e);try{return t(i,r,o,s)}finally{n.stackRestore(a)}}function ke(e){const t=n._malloc(e.length);return new Uint8Array(xe().buffer,t,e.length).set(e),t}const Se=globalThis.Atomics,Ee={storeI32(e,t){Se.store(Ie(),e>>>2,t)},notifyI32(e,t){Se.notify(Ie(),e>>>2,t)}};function Te(){return $e(),n.HEAP8}function Ue(){return $e(),n.HEAP16}function Ie(){return $e(),n.HEAP32}function Ae(){return $e(),n.HEAP64}function xe(){return $e(),n.HEAPU8}function je(){return $e(),n.HEAPU16}function Ce(){return $e(),n.HEAPU32}function Re(){return $e(),n.HEAPF32}function Le(){return $e(),n.HEAPF64}function $e(){n.wasmMemory.buffer!=n.HEAPU8.buffer&&u.updateMemoryViews()}const De="undefined"!=typeof SharedArrayBuffer,Ne=8192;let Be=null,Me=null,Pe=0;const Oe=[],Fe=[];function ze(e,t){if(e<=0)throw new Error("capacity >= 1");const r=4*(e|=0),o=n._malloc(r);if(o%4!=0)throw new Error("Malloc returned an unaligned offset");return V(o,r),new WasmRootBufferImpl(o,e,!0,t)}function Ve(e){let t;if(!e)throw new Error("address must be a location in the native heap");return Fe.length>0?(t=Fe.pop(),t._set_address(e)):t=new Ge(e),t}function We(e=void 0){let t;if(Oe.length>0)t=Oe.pop();else{const e=function(){if(C(Be)||!Me){Be=ze(Ne,"js roots"),Me=new Int32Array(Ne),Pe=Ne;for(let e=0;e>>2,this.__count=t,this.length=t,this.__handle=xt.mono_wasm_register_root(e,o,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 Ce()[t]}set(e,t){const n=this.get_address(e);return xt.mono_wasm_write_managed_pointer_unsafe(n,t),t}copy_value_from_address(e,t){const n=this.get_address(e);xt.mono_wasm_copy_managed_pointer(n,t)}_unsafe_get(e){return Ce()[this.__offset32+e]}_unsafe_set(e,t){const n=this.__offset+e;xt.mono_wasm_write_managed_pointer_unsafe(n,t)}clear(){this.__offset&&V(this.__offset,4*this.__count)}release(){this.__offset&&this.__ownsAllocation&&(xt.mono_wasm_deregister_root(this.__offset),V(this.__offset,4*this.__count),n._free(this.__offset)),this.__handle=this.__offset=this.__count=this.__offset32=0}toString(){return`[root buffer @${this.get_address(0)}, size ${this.__count} ]`}}class qe{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 xt.mono_wasm_write_managed_pointer_unsafe(t,e),e}copy_from(e){const t=e.address,n=this.address;xt.mono_wasm_copy_managed_pointer(n,t)}copy_to(e){const t=this.address,n=e.address;xt.mono_wasm_copy_managed_pointer(n,t)}copy_from_address(e){const t=this.address;xt.mono_wasm_copy_managed_pointer(t,e)}copy_to_address(e){const t=this.address;xt.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);Ce()[e]=0}release(){if(!this.__buffer)throw new Error("No buffer");var e;Oe.length>128?(void 0!==(e=this.__index)&&(Be.set(e,0),Me[Pe]=e,Pe++),this.__buffer=null,this.__index=0):(this.set(0),Oe.push(this))}toString(){return`[root @${this.address}]`}}class Ge{constructor(e){this.__external_address=U,this.__external_address_32=0,this._set_address(e)}_set_address(e){this.__external_address=e,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 Ce()[this.__external_address_32]}set(e){return xt.mono_wasm_write_managed_pointer_unsafe(this.__external_address,e),e}copy_from(e){const t=e.address,n=this.__external_address;xt.mono_wasm_copy_managed_pointer(n,t)}copy_to(e){const t=this.__external_address,n=e.address;xt.mono_wasm_copy_managed_pointer(n,t)}copy_from_address(e){const t=this.__external_address;xt.mono_wasm_copy_managed_pointer(t,e)}copy_to_address(e){const t=this.__external_address;xt.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(){Ce()[this.__external_address>>>2]=0}release(){Fe.length<128&&Fe.push(this)}toString(){return`[external root @${this.address}]`}}const Je=new Map,Xe="";let Ye;const Ke=new Map;let Ze,Qe,et,tt,nt=0,rt=null,ot=0;function st(e){if(void 0===tt){const t=new Uint8Array(2*e.length);return n.stringToUTF8Array(e,t,0,2*e.length),t}return tt.encode(e)}function at(e){const t=xe();return function(e,t,r){const o=t+r;let s=t;for(;e[s]&&!(s>=o);)++s;if(s-t<=16)return n.UTF8ArrayToString(e,t,r);if(void 0===et)return n.UTF8ArrayToString(e,t,r);const a=ft(e,t,s);return et.decode(a)}(t,e,t.length-e)}function it(e,t){if(Ze){const n=ft(xe(),e,t);return Ze.decode(n)}return ct(e,t)}function ct(e,t){let n="";const r=je();for(let o=e;o>>1];n+=String.fromCharCode(e)}return n}function lt(e,t,n){const r=je(),o=n.length;for(let s=0;s=t));s++);}function ut(e){if(e.value===T)return null;const t=Ye+0,n=Ye+4,r=Ye+8;let o;xt.mono_wasm_string_get_data_ref(e.address,t,n,r);const s=Ce(),a=ue(s,n),i=ue(s,t),c=ue(s,r);if(c&&(o=Ke.get(e.value)),void 0===o&&(a&&i?(o=it(i,i+a),c&&Ke.set(e.value,o)):o=Xe),void 0===o)throw new Error(`internal error when decoding string at location ${e.value}`);return o}function dt(e,t){if(t.clear(),null!==e)if("symbol"==typeof e)pt(e,t);else{if("string"!=typeof e)throw new Error("Expected string argument, got "+typeof e);if(0===e.length)pt(e,t);else{if(e.length<=256){const n=Je.get(e);if(n)return void t.set(n)}_t(e,t)}}}function pt(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&&nt)return void t.set(nt);const r=Je.get(n);r?t.set(r):(_t(n,t),function(e,t,n){if(!t.value)throw new Error("null pointer passed to _store_string_in_intern_table");ot>=8192&&(rt=null),rt||(rt=ze(8192,"interned strings"),ot=0);const r=rt,o=ot++;if(xt.mono_wasm_intern_string_ref(t.address),!t.value)throw new Error("mono_wasm_intern_string_ref produced a null pointer");Je.set(e,t.value),Ke.set(t.value,e),0!==e.length||nt||(nt=t.value),r.copy_value_from_address(o,t.address)}(n,t))}function _t(e,t){const r=2*(e.length+1),o=n._malloc(r);lt(o,o+r,e),xt.mono_wasm_string_from_utf16_ref(o,e.length,t.address),n._free(o)}function ft(e,t,n){var r;return r=e.buffer,De&&"SharedArrayBuffer"===r[Symbol.toStringTag]?e.slice(t,n):e.subarray(t,n)}let mt="MONO_WASM: ";function ht(e){mt=`MONO_WASM [${e}]: `}function gt(e,...t){u.diagnosticTracing&&console.debug(mt+e,...t)}function bt(e,...t){console.info(mt+e,...t)}function yt(e,...t){console.warn(mt+e,...t)}function wt(e,...t){t&&t.length>0&&t[0]&&"object"==typeof t[0]&&t[0].silent||console.error(mt+e,...t)}const vt=new Map,kt=[];function St(e){try{if(0==vt.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=vt.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 Et(e){let t=e;return t&&t.stack||(t=new Error(t?""+t:"Unknown error")),St(t.stack)}function Tt(){return[...vt.values()]}kt.push(/at (?[^:()]+:wasm-function\[(?\d+)\]:0x[a-fA-F\d]+)((?![^)a-fA-F\d])|$)/),kt.push(/(?:WASM \[[\da-zA-Z]+\], (?function #(?[\d]+) \(''\)))/),kt.push(/(?[a-z]+:\/\/[^ )]*:wasm-function\[(?\d+)\]:0x[a-fA-F\d]+)/),kt.push(/(?<[^ >]+>[.:]wasm-function\[(?[0-9]+)\])/);const Ut=[[!0,"mono_wasm_array_get_ref","void",["number","number","number"]],[!0,"mono_wasm_obj_array_new_ref","void",["number","number"]],[!0,"mono_wasm_obj_array_set_ref","void",["number","number","number"]],[!0,"mono_wasm_try_unbox_primitive_and_get_type_ref","number",["number","number","number"]],[!0,"mono_wasm_box_primitive_ref","void",["number","number","number","number"]],[!0,"mono_wasm_string_array_new_ref","void",["number","number"]],[!0,"mono_wasm_typed_array_new_ref","void",["number","number","number","number","number"]],[!0,"mono_wasm_get_delegate_invoke_ref","number",["number"]],[!0,"mono_wasm_get_type_name","string",["number"]],[!0,"mono_wasm_get_type_aqn","string",["number"]],[!0,"mono_wasm_obj_array_new","number",["number"]],[!0,"mono_wasm_obj_array_set","void",["number","number","number"]],[!0,"mono_wasm_array_length_ref","number",["number"]]],It=[[!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_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,["string","number"]],[!0,"mono_wasm_change_debugger_log_level","void",["number"]],[!0,"mono_wasm_get_corlib","number",[]],[!0,"mono_wasm_assembly_load","number",["string"]],[!0,"mono_wasm_assembly_find_class","number",["number","string","string"]],[!0,"mono_wasm_runtime_run_module_cctor","void",["number"]],[!0,"mono_wasm_assembly_find_method","number",["number","string","number"]],[!1,"mono_wasm_invoke_method_ref","void",["number","number","number","number","number"]],[!0,"mono_wasm_string_from_utf16_ref","void",["number","number","number"]],[!0,"mono_wasm_intern_string_ref","void",["number"]],[!0,"mono_wasm_assembly_get_entry_point","number",["number","number"]],[!0,"mono_wasm_class_get_type","number",["number"]],[!1,"mono_wasm_exit","void",["number"]],[!1,"mono_wasm_abort","void",[]],[!0,"mono_wasm_getenv","number",["string"]],[!0,"mono_wasm_set_main_args","void",["number","number"]],[!1,"mono_wasm_enable_on_demand_gc","void",["number"]],[()=>!m,"mono_wasm_profiler_init_aot","void",["string"]],[()=>!h,"mono_wasm_profiler_init_aot","void",["string"]],[!0,"mono_wasm_profiler_init_browser","void",["number"]],[!1,"mono_wasm_exec_regression","number",["number","string"]],[!1,"mono_wasm_invoke_method_bound","number",["number","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_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_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_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_update_jit_call_dispatcher","void",["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_wasm_event_pipe_enable","bool",["string","number","number","string","bool","number"]],[!0,"mono_wasm_event_pipe_session_start_streaming","bool",["number"]],[!0,"mono_wasm_event_pipe_session_disable","bool",["number"]],[!0,"mono_wasm_diagnostic_server_create_thread","bool",["string","number"]],[!0,"mono_wasm_diagnostic_server_thread_attach_to_runtime","void",[]],[!0,"mono_wasm_diagnostic_server_post_resume_runtime","void",[]],[!0,"mono_wasm_diagnostic_server_create_stream","number",[]],...Ut],At={};var xt=At;const jt=At,Ct=At,Rt=At,Lt=["void","number",null];function $t(e,t,r,o){let s=void 0===o&&Lt.indexOf(t)>=0&&(!r||r.every((e=>Lt.indexOf(e)>=0)))&&n.asm?n.asm[e]:void 0;if(s&&r&&s.length!==r.length&&(wt(`argument count mismatch for cwrap ${e}`),s=void 0),"function"!=typeof s&&(s=n.cwrap(e,t,r,o)),"function"!=typeof s)throw new Error(`cwrap ${e} not found or not a function`);return s}function Dt(e,t,n){const r=function(e,t,n){let r,o="number"==typeof t?t:0;r="number"==typeof n?o+n: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,t,n);let o="",s=0,a=0,i=0,c=0,l=0,u=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),u=s<<16|a<<8|i<<0,c=(16777215&u)>>18,o+=Nt[c],c=(262143&u)>>12,o+=Nt[c],l<2&&(c=(4095&u)>>6,o+=Nt[c]),2===l?o+="==":1===l?o+="=":(c=(63&u)>>0,o+=Nt[c]);return o}const Nt=["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 Mt,Pt,Ot,Ft={},zt=0,Vt=-1;function mono_wasm_runtime_ready(){if(r.mono_wasm_runtime_is_ready=u.mono_wasm_runtime_is_ready=!0,zt=0,Ft={},Vt=-1,globalThis.dotnetDebugger)debugger}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 Wt(e){e.length>Vt&&(Mt&&n._free(Mt),Vt=Math.max(e.length,Vt,256),Mt=n._malloc(Vt));const t=atob(e),r=xe();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:()=>qt(r.get.id,r.get.commandSet,r.get.command,r.get.buffer),set:function(e){return Ht(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 Ht(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=tn(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:tn(a)}}function en(e,t={}){return function(e,t){if(!(e in Ft))throw new Error(`Could not find any object with id ${e}`);const n=Ft[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 tn(e){const t="dotnet:cfo_res:"+zt++;return Ft[t]=e,t}function nn(e){e in Ft&&delete Ft[e]}function rn(){if(u.enablePerfMeasure)return globalThis.performance.now()}function on(e,t,n){if(u.enablePerfMeasure&&e){const r=a?{start:e}:{startTime:e},o=n?`${t}${n} `:t;globalThis.performance.measure(o,r)}}const sn=[],an=new Map,cn=new Map,ln=new Map,un=Symbol.for("wasm bound_cs_function"),dn=Symbol.for("wasm bound_js_function"),pn=Symbol.for("wasm imported_js_function"),_n=16;function fn(e){const t=n.stackAlloc(_n*e);return t&&t%8==0||v(!1,"Arg alignment"),Tn(mn(t,0),L.None),Tn(mn(t,1),L.None),t}function mn(e,t){return e||v(!1,"Null args"),e+t*_n}function hn(e,t){return e||v(!1,"Null signatures"),e+32*t+8}function gn(e){return e||v(!1,"Null sig"),le(e)}function bn(e){return e||v(!1,"Null sig"),le(e+16)}function yn(e){return e||v(!1,"Null sig"),le(e+20)}function wn(e){return e||v(!1,"Null sig"),le(e+24)}function vn(e){return e||v(!1,"Null sig"),le(e+28)}function kn(e){return e||v(!1,"Null signatures"),me(e+4)}function Sn(e){return e||v(!1,"Null signatures"),me(e)}function En(e){return e||v(!1,"Null arg"),le(e+12)}function Tn(e,t){e||v(!1,"Null arg"),X(e+12,t)}function Un(e){return e||v(!1,"Null arg"),le(e)}function In(e,t){if(e||v(!1,"Null arg"),"boolean"!=typeof t)throw new Error(`Assert failed: Value is not a Boolean: ${t} (${typeof t})`);H(e,t?1:0)}function An(e,t){e||v(!1,"Null arg"),X(e,t)}function xn(e,t){e||v(!1,"Null arg"),se(e,t.getTime())}function jn(e,t){e||v(!1,"Null arg"),se(e,t)}function Cn(e){return e||v(!1,"Null arg"),le(e+4)}function Rn(e,t){e||v(!1,"Null arg"),X(e+4,t)}function Ln(e){return e||v(!1,"Null arg"),le(e+4)}function $n(e,t){e||v(!1,"Null arg"),X(e+4,t)}function Dn(e){return e||v(!1,"Null arg"),Ve(e)}function Nn(e){return e||v(!1,"Null arg"),me(e+8)}function Bn(e,t){e||v(!1,"Null arg"),Q(e+8,t)}class ManagedObject{dispose(){so(this,x)}get isDisposed(){return this[Zr]===x}toString(){return`CsObject(gc_handle: ${this[Zr]})`}}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(d.is_runtime_running()&&u.jsSynchronizationContextInstalled){const e=this[Zr];if(e!==x){const t=u.javaScriptExports.get_managed_stack_trace(e);if(t)return this.managed_stack=t+"\n"+this.getSuperStack(),this.managed_stack}}return this.getSuperStack()}dispose(){so(this,x)}get isDisposed(){return this[Zr]===x}}function Mn(e){return e==L.Byte?1:e==L.Int32?4:e==L.Int52||e==L.Double?8:e==L.String||e==L.Object||e==L.JSObject?_n:-1}class Pn{constructor(e,t,n){this._pointer=e,this._length=t,this._viewType=n}_unsafe_create_view(){const e=0==this._viewType?new Uint8Array(xe().buffer,this._pointer,this._length):1==this._viewType?new Int32Array(Ie().buffer,this._pointer,this._length):2==this._viewType?new Float64Array(Le().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 Pn{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 Pn{constructor(e,t,n){super(e,t,n)}dispose(){so(this,x)}get isDisposed(){return this[Zr]===x}}function On(e,t,n){if(t===L.None||t===L.Void)return;let r,o,s,a;o=yo(yn(e)),s=yo(wn(e)),a=yo(vn(e));const i=bn(e);r=Fn(i),t===L.Nullable&&(t=i);const c=Fn(t),l=yn(e),u=n*_n;return e=>c(e+u,l,r,o,s,a)}function Fn(e){if(e===L.None||e===L.Void)return;const t=cn.get(e);return t&&"function"==typeof t||v(!1,`ERR41: Unknown converter for type ${e}. ${go}`),t}function zn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),!!ie(e)}(e)}function Vn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),ie(e)}(e)}function Wn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),ce(e)}(e)}function Hn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),fe(e)}(e)}function qn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),me(e)}(e)}function Gn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),we(e)}(e)}function Jn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),be(e)}(e)}function Xn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),ye(e)}(e)}function Yn(e){return En(e)==L.None?null:function(e){return e||v(!1,"Null arg"),we(e)}(e)}function Kn(e){return En(e)==L.None?null:Un(e)}function Zn(){return null}function Qn(e){return En(e)===L.None?null:function(e){e||v(!1,"Null arg");const t=we(e);return new Date(t)}(e)}function er(e,t,n,r,o,s){if(En(e)===L.None)return null;const a=Ln(e);let i=co(a);return null==i&&(i=(e,t,c)=>(i.isDisposed&&v(!1,"Delegate is disposed and should not be invoked anymore."),u.javaScriptExports.call_delegate(a,e,t,c,n,r,o,s)),i.dispose=()=>{i.isDisposed||(i.isDisposed=!0,so(i,a))},i.isDisposed=!1,oo(i,a)),i}function tr(e,t,n){const r=En(e);if(r===L.None)return null;if(r!==L.Task){n||(n=cn.get(r)),n||v(!1,`Unknown sub_converter for type ${L[r]}. ${go}`);const t=n(e);return new Promise((e=>e(t)))}const o=Cn(e);if(o==A)return new Promise((e=>e(void 0)));const s=to(o);s||v(!1,`ERR28: promise not found for js_handle: ${o} `),d.assertIsControllablePromise(s);const a=d.getPromiseController(s),i=a.resolve;return a.resolve=e=>{const t=En(e);if(t===L.None)return void i(null);n||(n=cn.get(t)),n||v(!1,`Unknown sub_converter for type ${L[t]}. ${go}`);const r=n(e);i(r)},s}function nr(e){if(En(e)==L.None)return null;const t=Dn(e);try{return ut(t)}finally{t.release()}}function rr(e){const t=En(e);if(t==L.None)return null;if(t==L.JSException)return to(Cn(e));const n=Ln(e);let r=co(n);if(null==r){const t=nr(e);r=new ManagedError(t),oo(r,n)}return r}function or(e){return En(e)==L.None?null:to(Cn(e))}function sr(e){const t=En(e);if(t==L.None)return null;if(t==L.JSObject)return to(Cn(e));if(t==L.Array){const t=function(e){return e||v(!1,"Null arg"),le(e+4)}(e);return ir(e,t)}if(t==L.Object){const t=Ln(e);if(t===x)return null;let n=co(t);return n||(n=new ManagedObject,oo(n,t)),n}const n=cn.get(t);return n||v(!1,`Unknown converter for type ${L[t]}. ${go}`),n(e)}function ar(e,t){return t||v(!1,"Expected valid element_type parameter"),ir(e,t)}function ir(e,t){if(En(e)==L.None)return null;-1==Mn(t)&&v(!1,`Element type ${L[t]} not supported`);const r=Un(e),o=Nn(e);let s=null;if(t==L.String){s=new Array(o);for(let e=0;e>2,(r>>2)+o).slice();else{if(t!=L.Double)throw new Error(`NotImplementedException ${L[t]}. ${go}`);s=Le().subarray(r>>3,(r>>3)+o).slice()}return n._free(r),s}function cr(e,t){t||v(!1,"Expected valid element_type parameter");const n=Un(e),r=Nn(e);let o=null;if(t==L.Byte)o=new Span(n,r,0);else if(t==L.Int32)o=new Span(n,r,1);else{if(t!=L.Double)throw new Error(`NotImplementedException ${L[t]}. ${go}`);o=new Span(n,r,2)}return o}function lr(e,t){t||v(!1,"Expected valid element_type parameter");const n=Un(e),r=Nn(e);let o=null;if(t==L.Byte)o=new ArraySegment(n,r,0);else if(t==L.Int32)o=new ArraySegment(n,r,1);else{if(t!=L.Double)throw new Error(`NotImplementedException ${L[t]}. ${go}`);o=new ArraySegment(n,r,2)}return oo(o,Ln(e)),o}const ur="dotnet:pthread:created";let dr;const pr=(e,t)=>(dr||(dr=class extends Event{constructor(e,t){super(e),this.pthread_self=t}}),new dr(e,t));class _r{constructor(e,t){this.pthreadId=e,this.portToBrowser=t,this.isBrowserThread=!1}postMessageToBrowser(e,t){t?this.portToBrowser.postMessage(e,t):this.portToBrowser.postMessage(e)}addEventListenerFromBrowser(e){this.portToBrowser.addEventListener("message",e)}}let fr,mr,hr=null;function gr(e){gt("got message from main on the dedicated channel",e.data)}function br(e){gt("creating a channel",e);const t=new MessageChannel,n=t.port1,r=t.port2;return n.addEventListener("message",gr),n.start(),hr=new _r(e,n),self.postMessage({[yr]:{monoCmd:"channel_created",threadId:e,port:r}},[r]),hr}const yr="__mono_message_please_dont_collide__";function wr(e){return void 0!==e&&"object"==typeof e&&null!==e&&yr in e}function vr(){u.jsSynchronizationContextInstalled||v(!1,"Please use dedicated worker for working with JavaScript interop. See https://github.com/dotnet/runtime/blob/main/src/mono/wasm/threads.md#JS-interop-on-dedicated-threads")}const kr=[null];function Sr(e,t){jr.set(e,t),gt(`added module imports '${e}'`)}function Er(e,t,n){if(!e)throw new Error("Assert failed: Null reference");e[t]=n}function Tr(e,t){if(!e)throw new Error("Assert failed: Null reference");return e[t]}function Ur(e,t){if(!e)throw new Error("Assert failed: Null reference");return t in e}function Ir(e,t){if(!e)throw new Error("Assert failed: Null reference");return typeof e[t]}function Ar(){return globalThis}const xr=new Map,jr=new Map;function Cr(e,t){e&&"string"==typeof e||v(!1,"module_name must be string"),t&&"string"==typeof t||v(!1,"module_url must be string"),vr();let n=xr.get(e);const r=!n;return r&&(gt(`importing ES6 module '${e}' from '${t}'`),n=import(t),xr.set(e,n)),_o((async()=>{const o=await n;return r&&(jr.set(e,o),gt(`imported ES6 module '${e}' from '${t}'`)),o}))}function Rr(e,t,n){const r=function(e,t){let n="unknown exception";if(t){n=t.toString();const e=t.stack;e&&(e.startsWith(n)?n=e:n+="\n"+e),n=St(n)}return e&&($e(),Z(e,1)),n}(e,t);dt(r,n)}function Lr(e,t){e&&($e(),Z(e,0)),t&&t.clear()}function $r(){d.assert_runtime_running(),u.mono_wasm_bindings_is_ready||v(!1,"Please use dedicated worker for working with JavaScript interop. See https://github.com/dotnet/runtime/blob/main/src/mono/wasm/threads.md#JS-interop-on-dedicated-threads")}const Dr="function"==typeof globalThis.WeakRef;function Nr(e){return Dr?new WeakRef(e):{deref:()=>e,dispose:()=>{e=null}}}const Br=new Map,Mr=new Map;let Pr=0;function Or(e){if(Br.has(e))return Br.get(e);const t=xt.mono_wasm_assembly_load(e);return Br.set(e,t),t}function Fr(e,t){Pr||(Pr=xt.mono_wasm_get_corlib());let n=function(e,t,n){let r=Mr.get(e);r||Mr.set(e,r=new Map);let o=r.get(t);return o||(o=new Map,r.set(t,o)),o.get(n)}(Pr,e,t);if(void 0!==n)return n;if(n=xt.mono_wasm_assembly_find_class(Pr,e,t),!n)throw new Error(`Failed to find corlib class ${e}.${t}`);return function(e,t,n,r){const o=Mr.get(e);if(!o)throw new Error("internal error");const s=o.get(t);if(!s)throw new Error("internal error");s.set(n,r)}(Pr,e,t,n),n}function zr(e,t){$r();const n=We();try{if(xt.mono_wasm_invoke_method_bound(e,t,n.address))throw new Error("ERR24: Unexpected error: "+ut(n));if(function(e){return e||v(!1,"Null args"),En(e)!==L.None}(t))throw rr(mn(t,0))}finally{n.release()}}const Vr=new Map;async function Wr(e){if($r(),!Vr.get(e)){const t=rn(),n=Or(e);if(!n)throw new Error("Could not find assembly: "+e);const r=xt.mono_wasm_assembly_find_class(n,u.runtime_interop_namespace,"__GeneratedInitializer");if(r){const e=xt.mono_wasm_assembly_find_method(r,"__Register_",-1);if(e){const t=We(),n=We();try{if(xt.mono_wasm_invoke_method_ref(e,U,j,t.address,n.address),t.value!==k){const e=ut(n);throw new Error(e)}}finally{t.release(),n.release()}}}else v(!1,`JSExport with multi-threading enabled is not supported with assembly ${e} as it was generated with the .NET 7 SDK`),xt.mono_wasm_runtime_run_module_cctor(n);on(t,"mono.getAssemblyExports:",e)}return Vr.get(e)||{}}function Hr(e){const t=e.substring(e.indexOf("[")+1,e.indexOf("]")).trim(),n=(e=e.substring(e.indexOf("]")+1).trim()).substring(e.indexOf(":")+1);let r="",o=e=e.substring(0,e.indexOf(":")).trim();if(-1!=e.indexOf(".")){const t=e.lastIndexOf(".");r=e.substring(0,t),o=e.substring(t+1)}if(!t.trim())throw new Error("No assembly name specified "+e);if(!o.trim())throw new Error("No class name specified "+e);if(!n.trim())throw new Error("No method name specified "+e);return{assembly:t,namespace:r,classname:o,methodname:n}}const qr="function"==typeof globalThis.FinalizationRegistry;let Gr;const Jr=[null],Xr=[];let Yr=1;const Kr=new Map;qr&&(Gr=new globalThis.FinalizationRegistry(io));const Zr=Symbol.for("wasm js_owned_gc_handle"),Qr=Symbol.for("wasm cs_owned_js_handle"),eo=Symbol.for("wasm do_not_force_dispose");function to(e){return e!==A&&e!==I?Jr[e]:null}function no(e){if(e[Qr])return e[Qr];const t=Xr.length?Xr.pop():Yr++;return Jr[t]=e,Object.isExtensible(e)&&(e[Qr]=t),t}function ro(e){const t=Jr[e];null!=t&&(void 0!==t[Qr]&&(t[Qr]=void 0),Jr[e]=void 0,Xr.push(e))}function oo(e,t){e[Zr]=t,qr&&Gr.register(e,t,e);const n=Nr(e);Kr.set(t,n)}function so(e,t){e&&(t=e[Zr],e[Zr]=x,qr&&Gr.unregister(e)),t!==x&&Kr.delete(t)&&u.javaScriptExports.release_js_owned_object_by_gc_handle(t)}function ao(e){const t=e[Zr];if(t==x)throw new Error("Assert failed: ObjectDisposedException");return t}function io(e){d.is_exited()||so(null,e)}function co(e){if(!e)return null;const t=Kr.get(e);return t?t.deref():null}function lo(e,t){let n=!1,r=!1,o=0,s=0,a=0,i=0;const c=[...Kr.keys()];for(const e of c){const r=Kr.get(e),o=r.deref();if(qr&&o&&Gr.unregister(o),o){const s="boolean"==typeof o[eo]&&o[eo];if(t&&yt(`Proxy of C# ${typeof o} with GCHandle ${e} was still alive. ${s?"keeping":"disposing"}.`),s)n=!0;else{const t=d.getPromiseController(o);t&&t.reject(new Error("WebWorker which is origin of the Task is being terminated.")),"function"==typeof o.dispose&&o.dispose(),o[Zr]===e&&(o[Zr]=x),!Dr&&r&&r.dispose(),a++}}}n||(Kr.clear(),qr&&(Gr=new globalThis.FinalizationRegistry(io)));for(let e=0;en.resolve(e))).catch((e=>n.reject(e))),t}function fo(e){const t=co(e);if(!t)return;const n=t.promise;n||v(!1,`Expected Promise for GCHandle ${e}`),d.assertIsControllablePromise(n),d.getPromiseController(n).reject(new Error("OperationCanceledException"))}let mo=0;function ho(){mo--}const go="For more information see https://aka.ms/dotnet-wasm-jsinterop";function bo(e,t,n){if(t===L.None||t===L.Void)return;let r,o,s,a;o=Fn(yn(e)),s=Fn(wn(e)),a=Fn(vn(e));const i=bn(e);r=yo(i),t===L.Nullable&&(t=i);const c=yo(t),l=yn(e),u=n*_n;return(e,t)=>{c(e+u,t,l,r,o,s,a)}}function yo(e){if(e===L.None||e===L.Void)return;const t=ln.get(e);return t&&"function"==typeof t||v(!1,`ERR30: Unknown converter for type ${e}`),t}function wo(e,t){null==t?Tn(e,L.None):(Tn(e,L.Boolean),In(e,t))}function vo(e,t){null==t?Tn(e,L.None):(Tn(e,L.Byte),function(e,t){e||v(!1,"Null arg"),H(e,t)}(e,t))}function ko(e,t){null==t?Tn(e,L.None):(Tn(e,L.Char),function(e,t){e||v(!1,"Null arg"),q(e,t)}(e,t))}function So(e,t){null==t?Tn(e,L.None):(Tn(e,L.Int16),function(e,t){e||v(!1,"Null arg"),K(e,t)}(e,t))}function Eo(e,t){null==t?Tn(e,L.None):(Tn(e,L.Int32),function(e,t){e||v(!1,"Null arg"),Q(e,t)}(e,t))}function To(e,t){null==t?Tn(e,L.None):(Tn(e,L.Int52),function(e,t){if(e||v(!1,"Null arg"),!Number.isSafeInteger(t))throw new Error(`Assert failed: Value is not an integer: ${t} (${typeof t})`);se(e,t)}(e,t))}function Uo(e,t){null==t?Tn(e,L.None):(Tn(e,L.BigInt64),function(e,t){e||v(!1,"Null arg"),re(e,t)}(e,t))}function Io(e,t){null==t?Tn(e,L.None):(Tn(e,L.Double),jn(e,t))}function Ao(e,t){null==t?Tn(e,L.None):(Tn(e,L.Single),function(e,t){e||v(!1,"Null arg"),oe(e,t)}(e,t))}function xo(e,t){null==t?Tn(e,L.None):(Tn(e,L.IntPtr),An(e,t))}function jo(e,t){if(null==t)Tn(e,L.None);else{if(!(t instanceof Date))throw new Error("Assert failed: Value is not a Date");Tn(e,L.DateTime),xn(e,t)}}function Co(e,t){if(null==t)Tn(e,L.None);else{if(!(t instanceof Date))throw new Error("Assert failed: Value is not a Date");Tn(e,L.DateTimeOffset),xn(e,t)}}function Ro(e,t){if(null==t)Tn(e,L.None);else{if(Tn(e,L.String),"string"!=typeof t)throw new Error("Assert failed: Value is not a String");Lo(e,t)}}function Lo(e,t){const n=Dn(e);try{dt(t,n)}finally{n.release()}}function $o(e){Tn(e,L.None)}function Do(e,t,n,r,o,s,a){if(null==t)return void Tn(e,L.None);if(!(t&&t instanceof Function))throw new Error("Assert failed: Value is not a Function");const i=e=>{const n=mn(e,0),c=mn(e,1),l=mn(e,2),u=mn(e,3),d=mn(e,4);try{let e,n,p;$&&i.isDisposed&&v(!1,"Function is disposed and should not be invoked anymore."),o&&(e=o(l)),s&&(n=s(u)),a&&(p=a(d));const _=t(e,n,p);r&&r(c,_)}catch(e){Mo(n,e)}};i[dn]=!0,i.isDisposed=!1,i.dispose=()=>{i.isDisposed=!0},Rn(e,no(i)),Tn(e,L.Function)}class No{constructor(e){this.promise=e}dispose(){so(this,x)}get isDisposed(){return this[Zr]===x}}function Bo(e,t,n,r){if(null==t)return void Tn(e,L.None);if(!po(t))throw new Error("Assert failed: Value is not a Promise");const o=u.javaScriptExports.create_task_callback();$n(e,o),Tn(e,L.Task);const s=new No(t);oo(s,o),mo++,t.then((e=>{try{d.assert_runtime_running(),s.isDisposed&&v(!1,"This promise can't be propagated to managed code, because the Task was already freed."),$&&ho(),u.javaScriptExports.complete_task(o,null,e,r||Oo),so(s,o)}catch(e){yt("Exception marshalling result of JS promise to CS: ",e)}})).catch((e=>{try{d.assert_runtime_running(),s.isDisposed&&v(!1,"This promise can't be propagated to managed code, because the Task was already freed."),$&&ho(),u.javaScriptExports.complete_task(o,e,null,void 0),so(s,o)}catch(e){d.is_exited()||yt("Exception marshalling error of JS promise to CS: ",e)}}))}function Mo(e,t){if(null==t)Tn(e,L.None);else if(t instanceof ManagedError)Tn(e,L.Exception),$n(e,ao(t));else{if("object"!=typeof t&&"string"!=typeof t)throw new Error("Assert failed: Value is not an Error "+typeof t);Tn(e,L.JSException),Lo(e,t.toString());const n=t[Qr];Rn(e,n||no(t))}}function Po(e,t){if(null==t)Tn(e,L.None);else{if(void 0!==t[Zr])throw new Error(`Assert failed: JSObject proxy of ManagedObject proxy is not supported. ${go}`);if("function"!=typeof t&&"object"!=typeof t)throw new Error(`Assert failed: JSObject proxy of ${typeof t} is not supported`);Tn(e,L.JSObject),Rn(e,no(t))}}function Oo(e,t){if(null==t)Tn(e,L.None);else{const n=t[Zr],r=typeof t;if(void 0===n)if("string"===r||"symbol"===r)Tn(e,L.String),Lo(e,t);else if("number"===r)Tn(e,L.Double),jn(e,t);else{if("bigint"===r)throw new Error("NotImplementedException: bigint");if("boolean"===r)Tn(e,L.Boolean),In(e,t);else if(t instanceof Date)Tn(e,L.DateTime),xn(e,t);else if(t instanceof Error)Mo(e,t);else if(t instanceof Uint8Array)zo(e,t,L.Byte);else if(t instanceof Float64Array)zo(e,t,L.Double);else if(t instanceof Int32Array)zo(e,t,L.Int32);else if(Array.isArray(t))zo(e,t,L.Object);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(po(t))Bo(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=no(t);Tn(e,L.JSObject),Rn(e,n)}}}}else{if(ao(t),t instanceof ArraySegment)throw new Error("NotImplementedException: ArraySegment. "+go);if(t instanceof ManagedError)Tn(e,L.Exception),$n(e,n);else{if(!(t instanceof ManagedObject))throw new Error("NotImplementedException "+r+". "+go);Tn(e,L.Object),$n(e,n)}}}}function Fo(e,t,n){n||v(!1,"Expected valid element_type parameter"),zo(e,t,n)}function zo(e,t,r){if(null==t)Tn(e,L.None);else{const o=Mn(r);-1==o&&v(!1,`Element type ${L[r]} not supported`);const s=t.length,a=o*s,i=n._malloc(a);if(r==L.String){if(!Array.isArray(t))throw new Error("Assert failed: Value is not an Array");V(i,a),xt.mono_wasm_register_root(i,a,"marshal_array_to_cs");for(let e=0;e>2,(i>>2)+s).set(t)}else{if(r!=L.Double)throw new Error("not implemented");if(!(Array.isArray(t)||t instanceof Float64Array))throw new Error("Assert failed: Value is not an Array or Float64Array");Le().subarray(i>>3,(i>>3)+s).set(t)}An(e,i),Tn(e,L.Array),function(e,t){e||v(!1,"Null arg"),X(e+4,t)}(e,r),Bn(e,t.length)}}function Vo(e,t,n){if(n||v(!1,"Expected valid element_type parameter"),t.isDisposed)throw new Error("Assert failed: ObjectDisposedException");Ho(n,t._viewType),Tn(e,L.Span),An(e,t._pointer),Bn(e,t.length)}function Wo(e,t,n){n||v(!1,"Expected valid element_type parameter");const r=ao(t);r||v(!1,"Only roundtrip of ArraySegment instance created by C#"),Ho(n,t._viewType),Tn(e,L.ArraySegment),An(e,t._pointer),Bn(e,t.length),$n(e,r)}function Ho(e,t){if(e==L.Byte){if(0!=t)throw new Error("Assert failed: Expected MemoryViewType.Byte")}else if(e==L.Int32){if(1!=t)throw new Error("Assert failed: Expected MemoryViewType.Int32")}else{if(e!=L.Double)throw new Error(`NotImplementedException ${L[e]} `);if(2!=t)throw new Error("Assert failed: Expected MemoryViewType.Double")}}const qo={get modulePThread(){return n.PThread},getWorker:e=>{var t;return null===(t=qo.modulePThread.pthreads[e])||void 0===t?void 0:t.worker},getThreadId:e=>{if(void 0!==e.pthread)return e.pthread.threadInfoStruct},allocateUnusedWorker:()=>{qo.modulePThread.allocateUnusedWorker()},getUnusedWorkerPool:()=>qo.modulePThread.unusedWorkers,loadWasmModuleToWorker:e=>qo.modulePThread.loadWasmModuleToWorker(e)},Go=new Map;class Jo{constructor(e,t,n){this.pthreadPtr=e,this.worker=t,this.port=n}postMessageToWorker(e){this.port.postMessage(e)}}const Xo=new Map;function Yo(e){{const t=e.loadWasmModuleToWorker;e.loadWasmModuleToWorker=e=>{const n=t(e);return function(e){e.addEventListener("message",(t=>function(e,t){const n=t.data;if(wr(r=n)&&"preload"===r[yr].monoCmd)n[yr].port.postMessage((o=u.config,{type:"pthread",cmd:"apply_mono_config",config:JSON.stringify(o)}));else if(function(e){return!(!wr(e)||"channel_created"!==e[yr].monoCmd)}(n)){gt("received the channel created message",n,e);const t=n[yr].port,r=n[yr].threadId,o=function(e,t,n){const r=new Jo(e,t,n);return Go.set(e,r),r}(r,e,t);t.addEventListener("message",(e=>function(e,t){gt("got message from worker on the dedicated channel",e.data,t)}(e,o))),t.start(),function(e,t){const n=Xo.get(e);void 0!==n&&(n.forEach((e=>e.resolve(t))),Xo.delete(e))}(r,o)}var r,o}(e,t))),gt("afterLoadWasmModuleToWorker added message event handler",e)}(e),n};const r=e.threadInitTLS;e.threadInitTLS=()=>{r(),function(){if(c){const e=n._pthread_self();C(e)&&v(!1,"pthread_self() returned null"),gt("after thread init, pthread ptr 0x"+e.toString(16));const t=br(e);fr.dispatchEvent(pr(ur,t))}}()},e.allocateUnusedWorker=Ko}}function Ko(){gt("replacementAllocateUnusedWorker");const e=d.resolve_single_asset_path("js-module-threads").resolvedUrl;void 0===e&&v(!1,"could not resolve the uri for the js-module-threads asset");const t=new Worker(e);qo.getUnusedWorkerPool().push(t)}const Zo={now:function(){return Date.now()}};function Qo(e){void 0===globalThis.performance&&(globalThis.performance=Zo),e.require=r.require,e.scriptDirectory=d.scriptDirectory,n.locateFile===n.__locateFile&&(n.locateFile=d.locateFile),e.fetch=d.fetch_like,e.noExitRuntime=a&&!c,e.pthreadReplacements&&Yo(e.pthreadReplacements);const t=e.updateMemoryViews;u.updateMemoryViews=e.updateMemoryViews=()=>{t()}}async function es(){var e;if(void 0===globalThis.Event&&(globalThis.Event=class{constructor(e){this.type=e}}),void 0===globalThis.EventTarget&&(globalThis.EventTarget=class{constructor(){this.subscribers=new Map}addEventListener(e,t,n){if(void 0===t||null==t)return;let r=!1;if(void 0!==n)for(const[e,t]of Object.entries(n)){if("once"!==e)throw new Error(`FIXME: addEventListener polyfill doesn't implement option '${e}'`);r=!!t}this.subscribers.has(e)||this.subscribers.set(e,[]);const o=this.subscribers.get(e);if(void 0===o)throw new Error("can't happen");o.push({listener:t,oneShot:r})}removeEventListener(e,t,n){if(void 0===t||null==t)return;if(void 0!==n)throw new Error("FIXME: removeEventListener polyfill doesn't implement options");if(!this.subscribers.has(e))return;const r=this.subscribers.get(e);if(void 0===r)return;let o=-1;const s=r.length;for(let e=0;e-1&&r.splice(o,1)}dispatchEvent(e){if(!this.subscribers.has(e.type))return!0;let t=this.subscribers.get(e.type);if(void 0===t)return!0;let n=!1;for(const e of t)if(e.oneShot){n=!0;break}n&&(t=t.slice(0));for(const n of t){const t=n.listener;n.oneShot&&this.removeEventListener(e.type,t),"function"==typeof t?t.call(this,e):t.handleEvent(e)}return!0}}),o){if(globalThis.performance===Zo){const{performance:e}=r.require("perf_hooks");globalThis.performance=e}if(r.process=await import("process"),globalThis.crypto||(globalThis.crypto={}),!globalThis.crypto.getRandomValues){let e;try{e=r.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.")}}}u.subtle=null===(e=globalThis.crypto)||void 0===e?void 0:e.subtle}function ts(e){const t=xt.mono_wasm_assembly_find_method(u.runtime_interop_exports_class,e,-1);if(!t)throw"Can't find method "+u.runtime_interop_namespace+"."+u.runtime_interop_exports_classname+"."+e;return t}function ns(){if("function"!=typeof globalThis.fetch||"function"!=typeof globalThis.AbortController)throw new Error(o?"Please install `node-fetch` and `node-abort-controller` npm packages to enable HTTP client support. See also https://aka.ms/dotnet-wasm-features":"This browser doesn't support fetch API. Please use a modern browser. See also https://aka.ms/dotnet-wasm-features")}function rs(){return"undefined"!=typeof Response&&"body"in Response.prototype&&"function"==typeof ReadableStream}function os(){return ns(),new AbortController}function ss(e){e.abort()}function as(e){e.__abort_controller.abort(),e.__reader&&e.__reader.cancel().catch((e=>{e&&"AbortError"!==e.name&&n.err("Error in http_wasm_abort_response: "+e)}))}function is(e,t,n,r,o,s,a,i){return cs(e,t,n,r,o,s,new Span(a,i,0).slice())}function cs(e,t,n,r,o,s,a){ns(),e&&"string"==typeof e||v(!1,"expected url string"),t&&n&&Array.isArray(t)&&Array.isArray(n)&&t.length===n.length||v(!1,"expected headerNames and headerValues arrays"),r&&o&&Array.isArray(r)&&Array.isArray(o)&&r.length===o.length||v(!1,"expected headerNames and headerValues arrays");const i=new Headers;for(let e=0;e{const t=await d.fetch_like(e,c);return t.__abort_controller=s,t}))}function ls(e){if(!e.__headerNames&&(e.__headerNames=[],e.__headerValues=[],e.headers&&e.headers.entries)){const t=e.headers.entries();for(const n of t)e.__headerNames.push(n[0]),e.__headerValues.push(n[1])}}function us(e){return ls(e),e.__headerNames}function ds(e){return ls(e),e.__headerValues}function ps(e){return _o((async()=>{const t=await e.arrayBuffer();return e.__buffer=t,e.__source_offset=0,t.byteLength}))}function _s(e,t){if(e.__buffer||v(!1,"expected resoved arrayBuffer"),e.__source_offset==e.__buffer.byteLength)return 0;const n=new Uint8Array(e.__buffer,e.__source_offset);t.set(n,0);const r=Math.min(t.byteLength,n.byteLength);return e.__source_offset+=r,r}function fs(e,t,n){const r=new Span(t,n,0);return _o((async()=>{if(e.__reader||(e.__reader=e.body.getReader()),e.__chunk||(e.__chunk=await e.__reader.read(),e.__source_offset=0),e.__chunk.done)return 0;const t=e.__chunk.value.byteLength-e.__source_offset;t>0||v(!1,"expected remaining_source to be greater than 0");const n=Math.min(t,r.byteLength),o=e.__chunk.value.subarray(e.__source_offset,e.__source_offset+n);return r.set(o,0),e.__source_offset+=n,t==n&&(e.__chunk=void 0),n}))}let ms,hs=0,gs=0;function bs(){if(!d.isChromium)return;const e=(new Date).valueOf(),t=e+36e4;for(let n=Math.max(e+1e3,hs);n0;)--gs,xt.mono_background_exec()}function mono_wasm_schedule_timer_tick(){n.maybeExit(),d.is_runtime_running()&&(ms=void 0,xt.mono_wasm_execute_timer())}class vs{constructor(){this.queue=[],this.offset=0}getLength(){return this.queue.length-this.offset}isEmpty(){return 0==this.queue.length}enqueue(e){this.queue.push(e)}dequeue(){if(0===this.queue.length)return;const e=this.queue[this.offset];return this.queue[this.offset]=null,2*++this.offset>=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 ks=Symbol.for("wasm ws_pending_send_buffer"),Ss=Symbol.for("wasm ws_pending_send_buffer_offset"),Es=Symbol.for("wasm ws_pending_send_buffer_type"),Ts=Symbol.for("wasm ws_pending_receive_event_queue"),Us=Symbol.for("wasm ws_pending_receive_promise_queue"),Is=Symbol.for("wasm ws_pending_open_promise"),As=Symbol.for("wasm wasm_ws_pending_open_promise_used"),xs=Symbol.for("wasm ws_pending_close_promises"),js=Symbol.for("wasm ws_pending_send_promises"),Cs=Symbol.for("wasm ws_is_aborted"),Rs=Symbol.for("wasm ws_on_closed"),Ls=Symbol.for("wasm wasm_ws_close_sent"),$s=Symbol.for("wasm wasm_ws_close_received"),Ds=Symbol.for("wasm ws_receive_status_ptr"),Ns=65536,Bs=new Uint8Array;function Ms(e){var t,n;return e.readyState!=WebSocket.CLOSED?null!==(t=e.readyState)&&void 0!==t?t:-1:0==e[Ts].getLength()?null!==(n=e.readyState)&&void 0!==n?n:-1:WebSocket.OPEN}function Ps(e,t,n,r){!function(){if(i)throw new Error("WebSockets are not supported in shell JS engine.");if("function"!=typeof globalThis.WebSocket)throw new Error(o?"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")}(),e&&"string"==typeof e||v(!1,"ERR12: Invalid uri "+typeof e),"function"!=typeof r&&v(!1,"ERR12: Invalid onClosed "+typeof r);const s=new globalThis.WebSocket(e,t||void 0),{promise_control:a}=w();s[Ts]=new vs,s[Us]=new vs,s[Is]=a,s[js]=[],s[xs]=[],s[Ds]=n,s[Rs]=r,s.binaryType="arraybuffer";const c=()=>{s[Cs]||d.is_exited()||(a.resolve(s),bs())},l=e=>{s[Cs]||d.is_exited()||(function(e,t){const n=e[Ts],r=e[Us];if("string"==typeof t.data)n.enqueue({type:0,data:st(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();qs(e,n,t.buffer_ptr,t.buffer_length),t.resolve()}bs()}(s,e),bs())},u=e=>{if(!(s.removeEventListener("message",l),s[Cs]||d.is_exited())){s[$s]=!0,r(e.code,e.reason),a.reject(new Error(e.reason));for(const e of s[xs])e.resolve();s[Us].drain((e=>{Q(n,0),Q(n+4,2),Q(n+8,1),e.resolve()})),s[Rs].dispose()}},p=e=>{if(s[Cs])return;if(d.is_exited())return;s.removeEventListener("message",l);const t=new Error(e.message||"WebSocket error");yt("WebSocket error",t),Hs(s,t)};return s.addEventListener("message",l),s.addEventListener("open",c,{once:!0}),s.addEventListener("close",u,{once:!0}),s.addEventListener("error",p,{once:!0}),s.dispose=()=>{s.removeEventListener("message",l),s.removeEventListener("open",c),s.removeEventListener("close",u),s.removeEventListener("error",p),Ws(s)},s}function Os(e){e||v(!1,"ERR17: expected ws instance");const t=e[Is];return e[As]=!0,t.promise}function Fs(e,t,r,o,s){if(e||v(!1,"ERR17: expected ws instance"),e[Cs]||e[Ls])return Promise.reject(new Error("InvalidState: The WebSocket is not connected."));if(e.readyState===WebSocket.CLOSED)return null;const a=function(e,t,r,o){let s=e[ks],a=0;const i=t.byteLength;if(s){if(a=e[Ss],r=e[Es],0!==i){if(a+i>s.length){const n=new Uint8Array(1.5*(a+i+50));n.set(s,0),n.subarray(a).set(t),e[ks]=s=n}else s.subarray(a).set(t);a+=i,e[Ss]=a}}else o?0!==i&&(s=t.slice(),a=i):(0!==i&&(s=t.slice(),a=i,e[Ss]=a,e[ks]=s),e[Es]=r);return o?0==a||null==s?Bs:0===r?function(e){return void 0===Qe?n.UTF8ArrayToString(e,0,e.byteLength):Qe.decode(e)}(ft(s,0,a)):s.subarray(0,a):null}(e,new Uint8Array(xe().buffer,t,r),o,s);return s&&a?function(e,t){if(e.send(t),e[ks]=null,e.bufferedAmount{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)};return globalThis.setTimeout(a,0),n}(e,a):null}function zs(e,t,n){if(e||v(!1,"ERR18: expected ws instance"),e[Cs]){const t=e[Ds];return Q(t,0),Q(t+4,2),Q(t+8,1),null}const r=e[Ts],o=e[Us];if(r.getLength())return 0!=o.getLength()&&v(!1,"ERR20: Invalid WS state"),qs(e,r,t,n),null;if(e[$s]){const t=e[Ds];return Q(t,0),Q(t+4,2),Q(t+8,1),null}const{promise:s,promise_control:a}=w(),i=a;return i.buffer_ptr=t,i.buffer_length=n,o.enqueue(i),s}function Vs(e,t,n,r){if(e||v(!1,"ERR19: expected ws instance"),e[Cs]||e[Ls]||e.readyState==WebSocket.CLOSED)return null;if(e[Ls]=!0,r){const{promise:r,promise_control:o}=w();return e[xs].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 Ws(e){var t;if(e||v(!1,"ERR18: expected ws instance"),!e[Cs]&&!e[Ls]){e[Cs]=!0,Hs(e,new Error("OperationCanceledException")),null===(t=e[Rs])||void 0===t||t.dispose();try{e.close(1e3,"Connection was aborted.")}catch(e){yt("WebSocket error while aborting",e)}}}function Hs(e,t){const n=e[Is],r=e[As];n&&r&&n.reject(t);for(const n of e[xs])n.reject(t);for(const n of e[js])n.reject(t);e[Us].drain((e=>{e.reject(t)}))}function qs(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(xe().buffer,n,r).set(e,0),o.offset+=s}const a=o.data.length===o.offset?1:0;a&&t.dequeue();const i=e[Ds];Q(i,s),Q(i+4,o.type),Q(i+8,a)}function Gs(e){return 1===xt.mono_wasm_load_icu_data(e)}function Js(e,t,r){gt(`Loaded:${e.name} as ${e.behavior} size ${r.length} from ${t}`);const o=rn(),s="string"==typeof e.virtualPath?e.virtualPath:e.name;let a=null;switch(e.behavior){case"dotnetwasm":case"js-module-threads":case"symbols":break;case"resource":case"assembly":case"pdb":d._loaded_files.push({url:t,file:s});case"heap":case"icu":a=ke(r);break;case"vfs":{const e=s.lastIndexOf("/");let t=e>0?s.substr(0,e):null,o=e>0?s.substr(e+1):s;o.startsWith("/")&&(o=o.substr(1)),t?(gt(`Creating directory '${t}'`),n.FS_createPath("/",t,!0,!0)):t="/",gt(`Creating file '${o}' in directory '${t}'`),n.FS_createDataFile(t,o,r,!0,!0,!0);break}default:throw new Error(`Unrecognized asset behavior:${e.behavior}, for asset ${e.name}`)}if("assembly"===e.behavior){if(!xt.mono_wasm_add_assembly(s,a,r.length)){const e=d._loaded_files.findIndex((e=>e.file==s));d._loaded_files.splice(e,1)}}else"pdb"===e.behavior?xt.mono_wasm_add_assembly(s,a,r.length):"icu"===e.behavior?Gs(a)||n.err(`Error loading ICU asset ${e.name}`):"resource"===e.behavior&&xt.mono_wasm_add_satellite_assembly(s,e.culture||"",a,r.length);on(o,"mono.instantiateAsset:",e.name),++d.actual_instantiated_assets_count}async function Xs(e){try{const t=await e.pendingDownloadInternal.response;(await t.text()).split(/[\r\n]/).forEach((e=>{const t=e.split(/:/);t.length<2||(t[1]=t.splice(1).join(":"),vt.set(Number(t[0]),t[1]))})),gt(`Loaded ${vt.size} symbols`)}catch(t){bt(`Error loading symbol file ${e.name}: ${JSON.stringify(t)}`)}}function Ys(){return d.loadedFiles}const Ks={};function Zs(e){let t=Ks[e];if("string"!=typeof t){const n=xt.mono_jiterp_get_opcode_info(e,0);Ks[e]=t=at(n)}return t}const Qs=2,ea=64,ta=64,na=["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"],ra={};class oa{constructor(e){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.constantSlots=[],this.backBranchOffsets=[],this.callHandlerReturnAddresses=[],this.nextConstantSlot=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 sa],this.clear(e),this.cfg=new aa(this)}clear(e){this.options=La(),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.nextConstantSlot=0,this.constantSlots.length=this.options.useConstants?e:0;for(let e=0;e=this.stack.length&&this.stack.push(new sa),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)}getWasmImports(){const e=n.getMemory();e instanceof WebAssembly.Memory||v(!1,`expected heap import to be WebAssembly.Memory but was ${e}`);const t={c:this.getConstants(),m:{h:e}},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!=(0|e)||0===e&&!0===t||v(!1,"Expected non-v128_load simd opcode or allowLoad==true"),this.current.appendULeb(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){let t=this.options.useConstants?this.constantSlots.indexOf(e):-1;this.options.useConstants&&t<0&&this.nextConstantSlot=0?(this.appendU8(35),this.appendLeb(t)):this.i32_const(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&&v(!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");this.beginSection(2),this.appendULeb(1+t.length+this.constantSlots.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=ha().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++)}defineFunction(e,t){const n={index:this.functions.length,name:e.name,typeName:e.type,typeIndex:this.functionTypes[e.type][0],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)}lea(e,t){"string"==typeof e?this.local(e):this.i32_const(e),this.i32_const(t),this.appendU8(106)}getArrayView(e){if(this.stackSize>1)throw new Error("Jiterpreter block stack not empty");return this.stack[0].getArrayView(e)}getConstants(){const e={};for(let t=0;t=this.capacity)throw new Error("Buffer full");const t=this.size;return xe()[this.buffer+this.size++]=e,t}appendU32(e){const t=this.size;return xt.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,0),this.size+=4,t}appendI32(e){const t=this.size;return xt.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,1),this.size+=4,t}appendF32(e){const t=this.size;return xt.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,2),this.size+=4,t}appendF64(e){const t=this.size;return xt.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=xt.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&&v(!1,`appendULeb expected number but got ${e}`),e>=0||v(!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=xt.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&&v(!1,`appendLeb expected number but got ${e}`),this.size+8>=this.capacity)throw new Error("Buffer full");const t=xt.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=xt.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){"number"!=typeof t&&(t=this.size),xe().copyWithin(e.buffer+e.size,this.buffer,this.buffer+t),e.size+=t}appendBytes(e,t){const n=this.size,r=xe();return e.buffer===r.buffer?("number"!=typeof t&&(t=e.length),r.copyWithin(this.buffer+n,e.byteOffset,e.byteOffset+t),this.size+=t):("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(xe().buffer,this.buffer,e?this.capacity:this.size)}}class aa{constructor(e){this.segments=[],this.backBranchTargets=null,this.lastSegmentEnd=0,this.overheadBytes=0,this.blockStack=[],this.backDispatchOffsets=[],this.dispatchTable=new Map,this.observedBranchTargets=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.builder.base,this.lastSegmentEnd=0,this.overheadBytes=10,this.dispatchTable.clear(),this.observedBranchTargets.clear(),this.trace=n,this.backDispatchOffsets.length=0}entry(e){this.entryIp=e,this.appendBlob(),1!==this.segments.length&&v(!1,"expected 1 segment"),"blob"!==this.segments[0].type&&v(!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)}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){this.observedBranchTargets.add(e),this.appendBlob(),this.segments.push({type:"branch",from:this.ip,target:e,isBackward:t,branchType:n}),this.overheadBytes+=4,t&&(this.overheadBytes+=11),3!==n&&2!==n||(this.overheadBytes+=17)}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.i32_const(0),this.builder.local("disp",33),this.builder.block(64,3));for(let e=0;ee-t));for(let e=0;e0&&bt("No back branch targets were reachable after filtering");else if(1===this.backDispatchOffsets.length)this.trace>0&&(this.backDispatchOffsets[0]===this.entryIp?bt(`Exactly one back dispatch offset and it was the entry point 0x${this.entryIp.toString(16)}`):bt(`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.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&&bt(`blockStack=${this.blockStack}`);for(let t=0;t1&&bt(`backward br from ${n.from.toString(16)} to ${n.target.toString(16)}: disp=${e}`),this.builder.i32_const(1),this.builder.local("backbranched",33),this.builder.i32_const(e),this.builder.local("disp",33),r=!0}else this.trace>0&&bt(`br from ${n.from.toString(16)} to ${n.target.toString(16)} failed: back branch target not in dispatch table`),t=-1;if(t>=0||r){let e=0;switch(n.branchType){case 2:_a(this.builder,n.from),this.builder.appendU8(12);break;case 3:this.builder.block(64,4),_a(this.builder,n.from),this.builder.appendU8(12),e=1;break;case 0:this.builder.appendU8(12);break;case 1:this.builder.appendU8(13);break;default:throw new Error("Unimplemented branch type")}this.builder.appendULeb(e+t),e&&this.builder.endBlock(),this.trace>1&&bt(`br from ${n.from.toString(16)} to ${n.target.toString(16)} breaking out ${e+t+1} level(s)`)}else{if(this.trace>0){const e=this.base;n.target>=e&&n.target1&&bt(`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),fa(this.builder,n.target,4),e&&this.builder.endBlock()}break}default:throw new Error("unreachable")}}return this.backBranchTargets&&(this.blockStack.length<=1||v(!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&&v(!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 ia,ca=-1,la=0;const ua={generation:0,compilation:0},da={traceCandidates:0,tracesCompiled:0,entryWrappersCompiled:0,jitCallsCompiled:0,directJitCallsCompiled:0,failures:0,bytesGenerated:0,nullChecksEliminated:0,nullChecksFused:0,backBranchesEmitted:0,backBranchesNotEmitted:0,simdFallback:{}},pa=globalThis.performance&&globalThis.performance.now?globalThis.performance.now.bind(globalThis.performance):Date.now;function _a(e,t){e.ptr_const(xt.mono_jiterp_get_polling_required_address()),e.appendU8(40),e.appendMemarg(0,2),e.block(64,4),e.local("frame"),e.i32_const(t),e.callImport("safepoint"),e.endBlock()}function fa(e,t,n){e.ip_const(t),e.options.countBailouts&&(e.i32_const(e.base),e.i32_const(n),e.callImport("bailout")),e.appendU8(15)}function ma(e,t,n,r){n<=e.options.monitoringLongDistance+2&&(e.local("cinfo"),e.i32_const(n),e.appendU8(54),e.appendMemarg(4,0),e.local("cinfo"),e.local("backbranched"),e.appendU8(54),e.appendMemarg(0,0)),e.ip_const(t),e.options.countBailouts&&(e.i32_const(e.base),e.i32_const(r),e.callImport("bailout")),e.appendU8(15)}function ha(){if(ia||(ia=n.getWasmIndirectFunctionTable()),!ia)throw new Error("Module did not export the indirect function table");return ia}function ga(e){e||v(!1,"Attempting to set null function into table"),u.storeMemorySnapshotPending&&v(!1,"Attempting to set function into table during creation of memory snapshot");const t=ha();la<=0&&(ca=t.length,la=512,t.grow(la));const n=ca;return ca++,la--,t.set(n,e),n}function ba(e,t,n,r,o){if(r<=0)return o&&e.appendU8(26),!0;if(r>=ea)return!1;if(0!==n)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 ya(e,t,n){ba(e,0,t,n,!0)||(e.i32_const(t),e.i32_const(n),e.appendU8(252),e.appendU8(11),e.appendU8(0))}function wa(e,t,n,r,o,s,a){if(r<=0)return o&&(e.appendU8(26),e.appendU8(26)),!0;if(r>=ta)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 va(e,t){return wa(e,0,0,t,!0)||(e.i32_const(t),e.appendU8(252),e.appendU8(10),e.appendU8(0),e.appendU8(0)),!0}function ka(){da.failures++,da.failures>=Qs&&(bt(`Disabling jiterpreter after ${da.failures} failures`),Ra({enableTraces:!1,enableInterpEntry:!1,enableJitCall:!1}))}const Sa={};function Ea(e){const t=Sa[e];return void 0===t?Sa[e]=xt.mono_jiterp_get_member_offset(e):t}function Ta(e){const t=n.asm[e];if("function"!=typeof t)throw new Error(`raw cwrap ${e} not found`);return t}const Ua={};function Ia(e){let t=Ua[e];return"number"!=typeof t&&(t=Ua[e]=xt.mono_jiterp_get_opcode_value_table_entry(e)),t}function Aa(e,t){return[e,e,t]}const xa={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",zeroPageOptimization:"jiterpreter-zero-page-optimization",enableStats:"jiterpreter-stats-enabled",disableHeuristic:"jiterpreter-disable-heuristic",estimateHeat:"jiterpreter-estimate-heat",countBailouts:"jiterpreter-count-bailouts",dumpTraces:"jiterpreter-dump-traces",useConstants:"jiterpreter-use-constants",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"};let ja=-1,Ca={};function Ra(e){for(const t in e){const n=xa[t];if(!n){wt(`Unrecognized jiterpreter option: ${t}`);continue}const r=e[t];"boolean"==typeof r?xt.mono_jiterp_parse_option((r?"--":"--no-")+n):"number"==typeof r?xt.mono_jiterp_parse_option(`--${n}=${r}`):wt(`Jiterpreter option must be a boolean or a number but was ${typeof r} '${r}'`)}}function La(){const e=xt.mono_jiterp_get_options_version();return e!==ja&&(function(){const e=xt.mono_jiterp_get_options_as_json(),t=at(e);n._free(e);const r=JSON.parse(t);Ca={};for(const e in xa){const t=xa[e];Ca[e]=r[t]}}(),ja=e),Ca}const $a={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","ConvertToDoubleLowerR8","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_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"]},Da={13:[65,-1],14:[65,0],15:[65,1],16:[65,2],17:[65,3],18:[65,4],19:[65,5],20:[65,6],21:[65,7],22:[65,8]},Na={463:168,469:174,464:170,470:176},Ba={515:[69,40,54],435:[106,40,54],437:[107,40,54],439:[107,40,54],443:[115,40,54],436:[124,41,55],438:[125,41,55],440:[125,41,55],444:[133,41,55],518:[106,40,54],522:[108,40,54],519:[124,41,55],523:[126,41,55],441:[140,42,56],442:[154,43,57],471:[178,40,56],474:[183,40,57],445:[184,40,57],472:[180,41,56],475:[185,41,57],446:[186,41,57],476:[187,42,57],473:[182,43,56],467:[1,52,55],468:[1,53,55],451:[113,40,54],459:[113,40,54],447:[117,40,54],455:[117,40,54],452:[113,41,54],460:[113,41,54],448:[117,41,54],456:[117,41,54],526:[116,40,54],527:[134,41,55],528:[117,40,54],529:[135,41,55],524:[118,40,54],525:[136,41,55],628:[119,40,54],629:[137,41,55],630:[120,40,54],631:[138,41,55],632:[103,40,54],634:[104,40,54],636:[105,40,54],633:[121,41,55],635:[122,41,55],637:[123,41,55]},Ma={401:187,402:1,405:187,406:1,409:187,410:1,413:187,414:1,419:187,420:1,423:187,424:1,433:187,434:1,427:187,428:1,65536:187,65537:187,65535:187,65539:1,65540:1,65538:1},Pa={351:[106,40,54],369:[106,40,54],371:[106,40,54],355:[107,40,54],359:[108,40,54],373:[108,40,54],375:[108,40,54],363:[109,40,54],367:[110,40,54],387:[111,40,54],391:[112,40,54],381:[113,40,54],383:[114,40,54],385:[115,40,54],395:[116,40,54],397:[117,40,54],393:[118,40,54],352:[124,41,55],356:[125,41,55],360:[126,41,55],364:[127,41,55],388:[129,41,55],368:[128,41,55],392:[130,41,55],382:[131,41,55],384:[132,41,55],386:[133,41,55],396:[134,41,55],398:[135,41,55],394:[136,41,55],353:[146,42,56],357:[147,42,56],361:[148,42,56],365:[149,42,56],354:[160,43,57],358:[161,43,57],362:[162,43,57],366:[163,43,57],399:[70,40,54],403:[71,40,54],421:[72,40,54],407:[74,40,54],425:[76,40,54],411:[78,40,54],431:[73,40,54],417:[75,40,54],429:[77,40,54],415:[79,40,54],400:[81,41,54],404:[82,41,54],422:[83,41,54],408:[85,41,54],426:[87,41,54],412:[89,41,54],432:[84,41,54],418:[86,41,54],430:[88,41,54],416:[90,41,54]},Oa={195:399,215:403,203:407,223:417,207:421,231:431,199:411,219:415,211:425,227:429,239:[399,!1,!0],249:[403,!1,!0],243:[407,!1,!0],253:[417,!1,!0],245:[421,!1,!0],257:[431,!1,!0],241:[411,!1,!0],251:[415,!1,!0],247:[425,!1,!0],255:[429,!1,!0],259:[399,65,!0],269:[403,65,!0],263:[407,65,!0],273:[417,65,!0],265:[421,65,!0],277:[431,65,!0],261:[411,65,!0],271:[415,65,!0],267:[425,65,!0],275:[429,65,!0],196:400,216:404,204:408,224:418,208:422,232:432,200:412,220:416,212:426,228:430,260:[400,66,!0],264:[408,66,!0],274:[418,66,!0],266:[422,66,!0],278:[432,66,!0],262:[412,66,!0],272:[416,66,!0],268:[426,66,!0],276:[430,66,!0],197:401,217:65535,205:409,225:419,209:423,233:433,201:413,221:65536,213:427,229:65537,198:402,218:65538,206:410,226:420,210:424,234:434,202:414,222:65539,214:428,230:65540},Fa={588:[!0,!1,159],615:[!0,!0,145],575:[!0,!1,155],602:[!0,!0,141],581:[!0,!1,156],608:[!0,!0,142],592:[!0,!1,153],619:[!0,!0,139],570:[!0,!1,"acos"],597:[!0,!0,"acosf"],571:[!0,!1,"acosh"],598:[!0,!0,"acoshf"],576:[!0,!1,"cos"],603:[!0,!0,"cosf"],568:[!0,!1,"asin"],595:[!0,!0,"asinf"],569:[!0,!1,"asinh"],596:[!0,!0,"asinhf"],587:[!0,!1,"sin"],614:[!0,!0,"sinf"],572:[!0,!1,"atan"],599:[!0,!0,"atanf"],573:[!0,!1,"atanh"],600:[!0,!0,"atanhf"],590:[!0,!1,"tan"],617:[!0,!0,"tanf"],577:[!0,!1,"cbrt"],604:[!0,!0,"cbrtf"],579:[!0,!1,"exp"],606:[!0,!0,"expf"],582:[!0,!1,"log"],609:[!0,!0,"logf"],583:[!0,!1,"log2"],610:[!0,!0,"log2f"],584:[!0,!1,"log10"],611:[!0,!0,"log10f"],593:[!1,!1,164],620:[!1,!0,150],594:[!1,!1,165],621:[!1,!0,151],574:[!1,!1,"atan2"],601:[!1,!0,"atan2f"],585:[!1,!1,"pow"],612:[!1,!0,"powf"],390:[!1,!1,"fmod"],389:[!1,!0,"fmodf"]},za={641:1,642:2,643:4,644:8},Va={641:44,642:46,643:40,644:41},Wa={641:58,642:59,643:54,644:55},Ha=new Set([20,21,22,23,24,25,26,27,28,29,30]),qa={47:[16,54],48:[16,54],49:[8,54],50:[8,54],51:[4,54],53:[4,56],52:[2,55],54:[2,57]},Ga={1:[16,40],2:[8,40],3:[4,40],5:[4,42],4:[2,41],6:[2,43]},Ja=new Set([81,84,85,86,87,82,83,88,89,90,91,92,93]),Xa={13:[16],14:[8],15:[4],16:[2]},Ya={10:100,11:132,12:164,13:196},Ka={6:[44,23],7:[46,26],8:[40,28],9:[41,30]};function Za(e,t){return ce(e+2*t)}function Qa(e,t){return fe(e+2*t)}function ei(e,t){return de(e+2*t)}function ti(e,t){return pe(e+2*t)}function ni(e){return pe(e+Ea(4))}function ri(e,t){const n=pe(ni(e)+Ea(5));return pe(n+t*Qi)}function oi(e,t){const n=pe(ni(e)+Ea(12));return pe(n+t*Qi)}function si(e,t,n){if(!n)return!1;for(let r=0;r=40||v(!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=mi(t,n,r);e.appendMemarg(t,o)}function gi(e,t,n,r){n>=54||v(!1,`Expected store opcode but got ${n}`),e.appendU8(n),void 0!==r&&e.appendULeb(r);const o=mi(t,n,r);e.appendMemarg(t,o),pi(t),void 0!==r&&pi(t+8)}function bi(e,t,n){"number"!=typeof n&&(n=512),n>0&&_i(t,n),e.lea("pLocals",t)}function yi(e,t,n,r){_i(t,r),ba(e,t,n,r,!1)||(bi(e,t,r),ya(e,n,r))}function wi(e,t,n,r){if(_i(t,r),wa(e,t,n,r,!1))return!0;bi(e,t,r),bi(e,n,0),va(e,r)}function vi(e,t){return 0!==xt.mono_jiterp_is_imethod_var_address_taken(ni(e.frame),t)}function ki(e,t,n,r){if(e.allowNullCheckOptimization&&ci.has(t)&&!vi(e,t))return da.nullChecksEliminated++,void(ui===t?r&&e.local("cknull_ptr"):(hi(e,t,40),e.local("cknull_ptr",r?34:33),ui=t));hi(e,t,40),e.local("cknull_ptr",34),e.appendU8(69),e.block(64,4),fa(e,n,2),e.endBlock(),r&&e.local("cknull_ptr"),e.allowNullCheckOptimization&&!vi(e,t)?(ci.set(t,n),ui=t):ui=-1}function Si(e,t,n){let r,o=54;const s=Da[n];if(s)e.local("pLocals"),e.appendU8(s[0]),r=s[1],e.appendLeb(r);else switch(n){case 23:e.local("pLocals"),r=Qa(t,2),e.i32_const(r);break;case 24:e.local("pLocals"),r=ei(t,2),e.i32_const(r);break;case 25:e.local("pLocals"),e.i52_const(0),o=55;break;case 27:e.local("pLocals"),e.appendU8(66),e.appendLebRef(t+4,!0),o=55;break;case 26:e.local("pLocals"),e.i52_const(Qa(t,2)),o=55;break;case 28:e.local("pLocals"),e.appendU8(67),e.appendF32(function(e,t){return n=e+2*t,xt.mono_wasm_get_f32_unaligned(n);var n}(t,2)),o=56;break;case 29:e.local("pLocals"),e.appendU8(68),e.appendF64(function(e,t){return n=e+2*t,xt.mono_wasm_get_f64_unaligned(n);var n}(t,2)),o=57;break;default:return!1}e.appendU8(o);const a=Za(t,1);return e.appendMemarg(a,2),pi(a),"number"==typeof r?ai.set(a,r):ai.delete(a),!0}function Ei(e,t,n){let r=40,o=54;switch(n){case 82:r=44;break;case 83:r=45;break;case 84:r=46;break;case 85:r=47;break;case 86:r=45,o=58;break;case 87:r=47,o=59;break;case 88:break;case 89:r=41,o=55;break;case 90:{const n=Za(t,3);return wi(e,Za(t,1),Za(t,2),n),!0}case 91:return wi(e,Za(t,1),Za(t,2),8),wi(e,Za(t,3),Za(t,4),8),!0;case 92:return wi(e,Za(t,1),Za(t,2),8),wi(e,Za(t,3),Za(t,4),8),wi(e,Za(t,5),Za(t,6),8),!0;case 93:return wi(e,Za(t,1),Za(t,2),8),wi(e,Za(t,3),Za(t,4),8),wi(e,Za(t,5),Za(t,6),8),wi(e,Za(t,7),Za(t,8),8),!0;default:return!1}return e.local("pLocals"),hi(e,Za(t,2),r),gi(e,Za(t,1),o),!0}function Ti(e,t,n,r){const o=r>=31&&r<=44||r>=58&&r<=68,s=Za(n,o?2:1),a=Za(n,3),i=Za(n,o?1:2),c=e.allowNullCheckOptimization&&ci.has(s)&&!vi(e,s);44!==r&&53!==r&&ki(e,s,n,!1);let l=54,u=40;switch(r){case 31:u=44;break;case 32:u=45;break;case 33:u=46;break;case 34:u=47;break;case 39:case 49:case 35:break;case 51:case 37:u=42,l=56;break;case 52:case 38:u=43,l=57;break;case 45:case 46:l=58;break;case 47:case 48:l=59;break;case 36:case 50:u=41,l=55;break;case 53: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.nullChecksEliminated++):(e.appendU8(13),e.appendULeb(0),fa(e,n,2),e.endBlock()),!0;case 40:{const t=Za(n,4);return bi(e,i,t),e.local("cknull_ptr"),0!==a&&(e.i32_const(a),e.appendU8(106)),va(e,t),!0}case 54:{const r=ri(t,Za(n,4));return e.local("cknull_ptr"),0!==a&&(e.i32_const(a),e.appendU8(106)),bi(e,i,0),e.ptr_const(r),e.callImport("value_copy"),!0}case 55:{const t=Za(n,4);return e.local("cknull_ptr"),0!==a&&(e.i32_const(a),e.appendU8(106)),bi(e,i,0),va(e,t),!0}case 44:case 43:return e.local("pLocals"),hi(e,s,40),0!==a&&(e.i32_const(a),e.appendU8(106)),gi(e,i,l),!0;default:return!1}return o&&e.local("pLocals"),e.local("cknull_ptr"),o?(e.appendU8(u),e.appendMemarg(a,0),gi(e,i,l),!0):(hi(e,i,u),e.appendU8(l),e.appendMemarg(a,0),!0)}function Ui(e,t,n,r){const o=r>=31&&r<=44||r>=58&&r<=68,s=Za(n,1),a=ri(t,Za(n,2)),i=ri(t,Za(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),fa(e,n,3),e.endBlock()}(e,a,n);let c=54,l=40;switch(r){case 58:l=44;break;case 59:l=45;break;case 60:l=46;break;case 61:l=47;break;case 66:case 73:case 62:break;case 75:case 64:l=42,c=56;break;case 76:case 65:l=43,c=57;break;case 69:case 70:c=58;break;case 71:case 72:c=59;break;case 63:case 74:l=41,c=55;break;case 77:return e.ptr_const(i),bi(e,s,0),e.callImport("copy_ptr"),!0;case 67:{const t=Za(n,4);return bi(e,s,t),e.ptr_const(i),va(e,t),!0}case 80:return e.local("pLocals"),e.ptr_const(i),gi(e,s,c),!0;default:return!1}return o?(e.local("pLocals"),e.ptr_const(i),e.appendU8(l),e.appendMemarg(0,0),gi(e,s,c),!0):(e.ptr_const(i),hi(e,s,l),e.appendU8(c),e.appendMemarg(0,0),!0)}function Ii(e,t,n){let r,o,s,a,i="math_lhs32",c="math_rhs32",l=!1;const u=Ma[n];if(u){e.local("pLocals");const r=1==u;return hi(e,Za(t,2),r?43:42),r||e.appendU8(u),hi(e,Za(t,3),r?43:42),r||e.appendU8(u),e.i32_const(n),e.callImport("relop_fp"),gi(e,Za(t,1),54),!0}switch(n){case 389:case 390:return Ri(e,t,n);default:if(a=Pa[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 363:case 364:case 367:case 368:case 387:case 388:case 391:case 392:{const s=368===n||392===n||364===n||388===n;i=s?"math_lhs64":"math_lhs32",c=s?"math_rhs64":"math_rhs32",e.block(),hi(e,Za(t,2),r),e.local(i,33),hi(e,Za(t,3),o),e.local(c,34),l=!0,s&&(e.appendU8(80),e.appendU8(69)),e.appendU8(13),e.appendULeb(0),fa(e,t,12),e.endBlock(),363!==n&&387!==n&&364!==n&&388!==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),fa(e,t,13),e.endBlock());break}case 369:case 371:case 373:case 375:hi(e,Za(t,2),r),e.local(i,34),hi(e,Za(t,3),o),e.local(c,34),e.i32_const(n),e.callImport(371===n||375===n?"ckovr_u4":"ckovr_i4"),e.block(64,4),fa(e,t,13),e.endBlock(),l=!0}return e.local("pLocals"),l?(e.local(i),e.local(c)):(hi(e,Za(t,2),r),hi(e,Za(t,3),o)),e.appendU8(a[0]),gi(e,Za(t,1),s),!0}function Ai(e,t,n){const r=Ba[n];if(!r)return!1;const o=r[1],s=r[2];switch((n<479||n>514)&&e.local("pLocals"),n){case 435:case 437:hi(e,Za(t,2),o),e.i32_const(1);break;case 439:e.i32_const(0),hi(e,Za(t,2),o);break;case 443:hi(e,Za(t,2),o),e.i32_const(-1);break;case 451:case 452:hi(e,Za(t,2),o),41===o&&e.appendU8(167),e.i32_const(255);break;case 459:case 460:hi(e,Za(t,2),o),41===o&&e.appendU8(167),e.i32_const(65535);break;case 447:case 448:hi(e,Za(t,2),o),41===o&&e.appendU8(167),e.i32_const(24),e.appendU8(116),e.i32_const(24);break;case 455:case 456:hi(e,Za(t,2),o),41===o&&e.appendU8(167),e.i32_const(16),e.appendU8(116),e.i32_const(16);break;case 436:case 438:hi(e,Za(t,2),o),e.i52_const(1);break;case 440:e.i52_const(0),hi(e,Za(t,2),o);break;case 444:hi(e,Za(t,2),o),e.i52_const(-1);break;case 518:case 522:case 526:case 528:case 524:case 628:case 630:hi(e,Za(t,2),o),e.i32_const(Qa(t,3));break;case 519:case 523:case 527:case 529:case 525:case 629:case 631:hi(e,Za(t,2),o),e.i52_const(Qa(t,3));break;default:hi(e,Za(t,2),o)}return 1!==r[0]&&e.appendU8(r[0]),gi(e,Za(t,1),s),!0}function xi(e,t,n,r){const o=141===r?t+6:t+8,s=oi(n,ce(o-2));e.local("pLocals"),e.ptr_const(o),e.appendU8(54),e.appendMemarg(s,0),e.callHandlerReturnAddresses.push(o)}function ji(e,t,n,r,o){const s=r>=235&&r<=278;switch(r){case 140:case 141:case 136:case 137:{const s=140===r||141===r,a=t+2*(o=136===r||140===r?ei(t,1):Qa(t,1));return o<=0?e.backBranchOffsets.indexOf(a)>=0?(s&&xi(e,t,n,r),e.cfg.branch(a,!0,0),da.backBranchesEmitted++,!0):(a1&&bt(`${Zs(r)} target 0x${a.toString(16)} before start of trace`):e.cfg.trace>0&&bt(`0x${t.toString(16)} ${Zs(r)} target 0x${a.toString(16)} not found in list `+e.backBranchOffsets.map((e=>"0x"+e.toString(16))).join(", ")),xt.mono_jiterp_boost_back_branch_target(a),fa(e,a,5),da.backBranchesNotEmitted++,!0):(e.branchTargets.add(a),s&&xi(e,t,n,r),e.cfg.branch(a,!1,0),!0)}case 153:case 151:case 237:case 235:case 154:case 152:{const n=154===r||152===r;o=Qa(t,2),hi(e,Za(t,1),n?41:40),151===r||235===r?e.appendU8(69):152===r?e.appendU8(80):154===r&&(e.appendU8(80),e.appendU8(69));break}default:if(void 0===Oa[r])throw new Error(`Unsupported relop branch opcode: ${Zs(r)}`);if(4!==xt.mono_jiterp_get_opcode_info(r,1))throw new Error(`Unsupported long branch opcode: ${Zs(r)}`)}if(!o)throw new Error("Branch had no displacement");const a=t+2*o;return o<0?e.backBranchOffsets.indexOf(a)>=0?(e.cfg.branch(a,!0,s?3:1),da.backBranchesEmitted++):(a1&&bt(`${Zs(r)} target 0x${a.toString(16)} before start of trace`):e.cfg.trace>0&&bt(`0x${t.toString(16)} ${Zs(r)} target 0x${a.toString(16)} not found in list `+e.backBranchOffsets.map((e=>"0x"+e.toString(16))).join(", ")),xt.mono_jiterp_boost_back_branch_target(a),e.block(64,4),fa(e,a,5),e.endBlock(),da.backBranchesNotEmitted++):(e.branchTargets.add(a),e.cfg.branch(a,!1,s?3:1)),!0}function Ci(e,t,n,r){const o=Oa[r];if(!o)return!1;const s=Array.isArray(o)?o[0]:o,a=Pa[s],i=Ma[s];if(!a&&!i)return!1;const c=Qa(t,3),l=a?a[1]:1===i?43:42;return hi(e,Za(t,1),l),a||1===i||e.appendU8(i),Array.isArray(o)&&o[1]?(e.appendU8(o[1]),e.appendLeb(Qa(t,2))):hi(e,Za(t,2),l),a||1==i||e.appendU8(i),a?e.appendU8(a[0]):(e.i32_const(s),e.callImport("relop_fp")),ji(e,t,n,r,c)}function Ri(e,t,n){let r,o,s,a;const i=Za(t,1),c=Za(t,2),l=Za(t,3),u=Fa[n];if(!u)return!1;if(r=u[0],o=u[1],"string"==typeof u[2]?s=u[2]:a=u[2],e.local("pLocals"),r){if(hi(e,c,o?42:43),a)e.appendU8(a);else{if(!s)throw new Error("internal error");e.callImport(s)}return gi(e,i,o?56:57),!0}if(hi(e,c,o?42:43),hi(e,l,o?42:43),a)e.appendU8(a);else{if(!s)throw new Error("internal error");e.callImport(s)}return gi(e,i,o?56:57),!0}function Li(e,t,n){const r=n>=95&&n<=120,o=n>=115&&n<=120,s=n>=103&&n<=114||n>=128&&n<=135||o,a=n>=109&&n<=114||n>=132&&n<=135||o;let i,c,l=-1,u=0,d=1;o?(i=Za(t,1),c=Za(t,2),l=Za(t,3),u=Qa(t,4),d=Qa(t,5)):s?a?r?(i=Za(t,1),c=Za(t,2),u=Qa(t,3)):(i=Za(t,2),c=Za(t,1),u=Qa(t,3)):r?(i=Za(t,1),c=Za(t,2),l=Za(t,3)):(i=Za(t,3),c=Za(t,1),l=Za(t,2)):r?(c=Za(t,2),i=Za(t,1)):(c=Za(t,1),i=Za(t,2));let p,_=54;switch(n){case 95:case 103:case 109:case 115:p=44;break;case 96:case 104:case 110:case 116:p=45;break;case 97:case 105:case 111:case 117:p=46;break;case 98:case 106:case 112:case 118:p=47;break;case 121:case 128:case 132:p=40,_=58;break;case 122:case 129:case 133:p=40,_=59;break;case 99:case 107:case 113:case 119:case 123:case 130:case 134:case 127:p=40;break;case 101:case 125:p=42,_=56;break;case 102:case 126:p=43,_=57;break;case 100:case 108:case 114:case 120:case 124:case 131:case 135:p=41,_=55;break;default:return!1}return ki(e,c,t,!1),r?(e.local("pLocals"),e.local("cknull_ptr"),o?(hi(e,l,40),0!==u&&(e.i32_const(u),e.appendU8(106),u=0),1!==d&&(e.i32_const(d),e.appendU8(108)),e.appendU8(106)):s&&l>=0?(hi(e,l,40),e.appendU8(106)):u<0&&(e.i32_const(u),e.appendU8(106),u=0),e.appendU8(p),e.appendMemarg(u,0),gi(e,i,_)):127===n?(e.local("cknull_ptr"),bi(e,i,0),e.callImport("copy_ptr")):(e.local("cknull_ptr"),s&&l>=0?(hi(e,l,40),e.appendU8(106)):u<0&&(e.i32_const(u),e.appendU8(106),u=0),hi(e,i,p),e.appendU8(_),e.appendMemarg(u,0)),!0}function $i(e,t,n,r,o){e.block(),hi(e,r,40),e.local("index",34);e.options.zeroPageOptimization,ki(e,n,t,!0),e.appendU8(40),e.appendMemarg(Ea(9),2),e.appendU8(73),e.appendU8(13),e.appendULeb(0),fa(e,t,9),e.endBlock(),e.local("cknull_ptr"),e.i32_const(Ea(1)),e.appendU8(106),e.local("index"),1!=o&&(e.i32_const(o),e.appendU8(108)),e.appendU8(106)}function Di(e,t,n,r){const o=r<=336&&r>=323||348===r,s=Za(n,o?2:1),a=Za(n,o?1:3),i=Za(n,o?3:2);let c,l,u=54;switch(r){case 348:return e.local("pLocals"),ki(e,s,n,!0),e.appendU8(40),e.appendMemarg(Ea(9),2),gi(e,a,54),!0;case 334:return e.local("pLocals"),l=Za(n,4),$i(e,n,s,i,l),gi(e,a,54),!0;case 345:return e.block(),hi(e,Za(n,1),40),hi(e,Za(n,2),40),hi(e,Za(n,3),40),e.callImport("stelem_ref"),e.appendU8(13),e.appendULeb(0),fa(e,n,10),e.endBlock(),!0;case 332:case 328:case 327:case 341:l=4,c=40;break;case 323:l=1,c=44;break;case 324:l=1,c=45;break;case 338:case 337:l=1,c=40,u=58;break;case 325:l=2,c=46;break;case 326:l=2,c=47;break;case 340:case 339:l=2,c=40,u=59;break;case 330:case 343:l=4,c=42,u=56;break;case 329:case 342:l=8,c=41,u=55;break;case 331:case 344:l=8,c=43,u=57;break;case 333:{const t=Za(n,4);return e.local("pLocals"),e.i32_const(Za(n,1)),e.appendU8(106),$i(e,n,s,i,t),va(e,t),_i(Za(n,1),t),!0}case 346:{const r=Za(n,5),o=ri(t,Za(n,4));return $i(e,n,s,i,r),bi(e,a,0),e.ptr_const(o),e.callImport("value_copy"),!0}case 347:{const t=Za(n,5);return $i(e,n,s,i,t),bi(e,a,0),va(e,t),!0}default:return!1}return o?(e.local("pLocals"),$i(e,n,s,i,l),e.appendU8(c),e.appendMemarg(0,0),gi(e,a,u)):($i(e,n,s,i,l),hi(e,a,c),e.appendU8(u),e.appendMemarg(0,0)),!0}function Ni(){if(void 0!==li)return li;try{const e=function(){const e=new oa(0);e.defineType("test",{},64,!0),e.defineFunction({type:"test",name:"test",export:!0,locals:{}},(()=>{e.i32_const(0),e.appendSimd(17),e.appendU8(26),e.appendU8(11)})),e.appendU32(1836278016),e.appendU32(1),e.generateTypeSection(),e.emitImportsAndFunctions(!1);const t=e.getArrayView();return new WebAssembly.Module(t)}();li=!!e}catch(e){bt("Disabling WASM SIMD support due to JIT failure",e),li=!1}return li}function Bi(e,t,n){const r=`${t}_${n.toString(16)}`;return"object"!=typeof e.importedFunctions[r]&&e.defineImportedFunction("s",r,t,!1,n),r}function Mi(e,t,n,r,o,s){if(e.options.enableSimd&&Ni())switch(o){case 2:if(function(e,t,n){const r=xt.mono_jiterp_get_simd_opcode(1,n);if(r>=0)return Ja.has(n)?(e.local("pLocals"),hi(e,Za(t,2),40),e.appendSimd(r,!0),e.appendMemarg(0,0),Pi(e,t)):(Oi(e,t),e.appendSimd(r),Pi(e,t)),!0;const o=Ya[n];if(o)return Oi(e,t),e.appendSimd(o),gi(e,Za(t,1),54),!0;switch(n){case 6:case 7:case 8:case 9:{const r=Ka[n];return e.local("pLocals"),e.v128_const(0),hi(e,Za(t,2),r[0]),e.appendSimd(r[1]),e.appendU8(0),gi(e,Za(t,1),253,11),!0}case 14:return Oi(e,t,7),Pi(e,t),!0;case 15:return Oi(e,t,8),Pi(e,t),!0;case 16:return Oi(e,t,9),Pi(e,t),!0;case 17:return Oi(e,t,10),Pi(e,t),!0;default:return!1}}(e,t,s))return!0;break;case 3:if(function(e,t,n){const r=xt.mono_jiterp_get_simd_opcode(2,n);if(r>=0){const o=Ha.has(n),s=qa[n];if(o)e.local("pLocals"),hi(e,Za(t,2),253,0),hi(e,Za(t,3),40),e.appendSimd(r),Pi(e,t);else if(Array.isArray(s)){const n=ii(e,Za(t,3)),o=s[0];if("number"!=typeof n)return wt(`${e.functions[0].name}: Non-constant lane index passed to ExtractScalar`),!1;if(n>=o||n<0)return wt(`${e.functions[0].name}: ExtractScalar index ${n} out of range (0 - ${o-1})`),!1;e.local("pLocals"),hi(e,Za(t,2),253,0),e.appendSimd(r),e.appendU8(n),gi(e,Za(t,1),s[1])}else Fi(e,t),e.appendSimd(r),Pi(e,t);return!0}switch(n){case 187:return hi(e,Za(t,2),40),hi(e,Za(t,3),253,0),e.appendSimd(11),e.appendMemarg(0,0),!0;case 10:case 11:return Fi(e,t),e.appendSimd(214),e.appendSimd(195),11===n&&e.appendU8(69),gi(e,Za(t,1),54),!0;case 12:case 13:{const r=13===n,o=r?71:65;return e.local("pLocals"),hi(e,Za(t,2),253,0),e.local("math_lhs128",34),hi(e,Za(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),gi(e,Za(t,1),54),!0}case 43:{const n=Za(t,3),r=ii(e,n);return e.local("pLocals"),hi(e,Za(t,2),253,0),"object"==typeof r?(e.appendSimd(12),e.appendBytes(r)):hi(e,n,253,0),e.appendSimd(14),Pi(e,t),!0}case 44:case 45:return function(e,t,n){const r=16/n,o=Za(t,3),s=ii(e,o);if(2!==r&&4!==r&&v(!1,"Unsupported shuffle element size"),e.local("pLocals"),hi(e,Za(t,2),253,0),"object"==typeof s){const t=new Uint8Array(ec),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=Ga[n],s=Xa[n];if(Array.isArray(o)){const n=o[0],s=ii(e,Za(t,3));if("number"!=typeof s)return wt(`${e.functions[0].name}: Non-constant lane index passed to ReplaceScalar`),!1;if(s>=n||s<0)return wt(`${e.functions[0].name}: ReplaceScalar index ${s} out of range (0 - ${n-1})`),!1;e.local("pLocals"),hi(e,Za(t,2),253,0),hi(e,Za(t,4),o[1]),e.appendSimd(r),e.appendU8(s),Pi(e,t)}else if(Array.isArray(s)){const n=s[0],o=ii(e,Za(t,4));if("number"!=typeof o)return wt(`${e.functions[0].name}: Non-constant lane index passed to store method`),!1;if(o>=n||o<0)return wt(`${e.functions[0].name}: Store lane ${o} out of range (0 - ${n-1})`),!1;hi(e,Za(t,2),40),hi(e,Za(t,3),253,0),e.appendSimd(r),e.appendMemarg(0,0),e.appendU8(o)}else!function(e,t){e.local("pLocals"),hi(e,Za(t,2),253,0),hi(e,Za(t,3),253,0),hi(e,Za(t,4),253,0)}(e,t),e.appendSimd(r),Pi(e,t);return!0}switch(n){case 0:return e.local("pLocals"),hi(e,Za(t,3),253,0),hi(e,Za(t,4),253,0),hi(e,Za(t,2),253,0),e.appendSimd(82),Pi(e,t),!0;case 7:{const n=ii(e,Za(t,4));if("object"!=typeof n)return wt(`${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 wt(`${e.functions[0].name}: Shuffle lane index #${t} (${r}) out of range (0 - 31)`),!1}return e.local("pLocals"),hi(e,Za(t,2),253,0),hi(e,Za(t,3),253,0),e.appendSimd(13),e.appendBytes(n),Pi(e,t),!0}default:return!1}}(e,t,s))return!0}switch(n){case 640:if(e.options.enableSimd&&Ni()){e.local("pLocals");const n=xe().slice(t+4,t+4+ec);e.v128_const(n),Pi(e,t),ai.set(Za(t,1),n)}else bi(e,Za(t,1),ec),e.ptr_const(t+4),va(e,ec);return!0;case 641:case 642:case 643:case 644:{const r=za[n],o=ec/r,s=Za(t,1),a=Za(t,2),i=Va[n],c=Wa[n];for(let t=0;t0&&(rc.push(["trace_eip","trace_eip",uc]),rc.push(["trace_args","trace_eip",dc]));const e=(e,t)=>{for(let n=0;n>>0,Vi.operand2=t>>>0}function pc(e,t,n,r){if("number"==typeof r)xt.mono_jiterp_adjust_abort_count(r,1),r=Zs(r);else{let e=Ki[r];"number"!=typeof e?e=1:e++,Ki[r]=e}Zi[e].abortReason=r}function _c(e,t){if(!u.runtimeReady)return;if(Wi&&void 0===e||(Wi=La()),!Wi.enableStats&&void 0!==e)return;const n=da.backBranchesEmitted/(da.backBranchesEmitted+da.backBranchesNotEmitted)*100,r=xt.mono_jiterp_get_rejected_trace_count(),o=Wi.eliminateNullChecks?da.nullChecksEliminated.toString():"off",s=Wi.zeroPageOptimization?da.nullChecksFused.toString()+" (disabled)":"off",a=Wi.enableBackwardBranches?`emitted: ${da.backBranchesEmitted}, failed: ${da.backBranchesNotEmitted} (${n.toFixed(1)}%)`:": off",i=da.jitCallsCompiled?Wi.directJitCalls?`direct jit calls: ${da.directJitCallsCompiled} (${(da.directJitCallsCompiled/da.jitCallsCompiled*100).toFixed(1)}%)`:"direct jit calls: off":"";if(bt(`// jitted ${da.bytesGenerated} bytes; ${da.tracesCompiled} traces (${(da.tracesCompiled/da.traceCandidates*100).toFixed(1)}%) (${r} rejected); ${da.jitCallsCompiled} jit_calls; ${da.entryWrappersCompiled} interp_entries`),bt(`// cknulls eliminated: ${o}, fused: ${s}; back-branches ${a}; ${i}`),bt(`// time: ${0|ua.generation}ms generating, ${0|ua.compilation}ms compiling wasm.`),!t){if(Wi.countBailouts){const e=Object.values(Zi);e.sort(((e,t)=>(t.bailoutCount||0)-(e.bailoutCount||0)));for(let e=0;et.hitCount-e.hitCount)),bt("// 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++,bt(`${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])),bt("// heat:");for(let e=0;e0?Ki[t]=n:delete Ki[t]}const e=Object.keys(Ki);e.sort(((e,t)=>Ki[t]-Ki[e]));for(let t=0;t_c(e)),15e3)}}let fc=!1;function mc(){if(fc)throw new Error("GC is already locked");if(c)throw new Error("GC lock only supported in main thread");xt.mono_wasm_gc_lock(),fc=!0}function hc(){if(!fc)throw new Error("GC is not locked");if(c)throw new Error("GC lock only supported in main thread");xt.mono_wasm_gc_unlock(),fc=!1}async function gc(e){const t=d.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.");if(!t[e])throw new Error(`${e} must be marked with 'BlazorWebAssemblyLazyLoad' item group in your project file to allow lazy-loading.`);const n={name:e,hash:t[e],behavior:"assembly"};if(d.loadedAssemblies.includes(e))return!1;const r=function(e,t){const n=e.lastIndexOf(".");if(n<0)throw new Error(`No extension to replace in '${e}'`);return e.substring(0,n)+".pdb"}(n.name),o=d.hasDebuggingEnabled(d.config)&&Object.prototype.hasOwnProperty.call(t,r),s=d.retrieve_asset_download(n);let a=null,i=null;if(o){const e=t[r]?d.retrieve_asset_download({name:r,hash:t[r],behavior:"pdb"}):Promise.resolve(null),[n,o]=await Promise.all([s,e]);a=new Uint8Array(n),i=o?new Uint8Array(o):null}else{const e=await s;a=new Uint8Array(e),i=null}return u.javaScriptExports.load_lazy_assembly(a,i),!0}async function bc(e){const t=d.config.resources.satelliteResources;t&&await Promise.all(e.filter((e=>Object.prototype.hasOwnProperty.call(t,e))).map((e=>{const n=[];for(const r in t[e]){const o={name:r,hash:t[e][r],behavior:"resource",culture:e};n.push(d.retrieve_asset_download(o))}return n})).reduce(((e,t)=>e.concat(t)),new Array).map((async e=>{const t=await e;u.javaScriptExports.load_satellite_assembly(new Uint8Array(t))})))}function yc(e){return function(e){if("object"!=typeof e||null===e)return!1;const t=e;return"string"==typeof t.type&&"string"==typeof t.cmd}(e)&&"diagnostic_server"===e.type}function wc(e){return{type:"diagnostic_server",cmd:e}}class vc{constructor(e){this.server=e,e.port.addEventListener("message",this.onServerReply.bind(this))}start(){gt("signaling the diagnostic server to start"),this.server.postMessageToWorker(wc("start"))}stop(){gt("signaling the diagnostic server to stop"),this.server.postMessageToWorker(wc("stop"))}postServerAttachToRuntime(){gt("signal the diagnostic server to attach to the runtime"),this.server.postMessageToWorker(wc("attach_to_runtime"))}onServerReply(e){const t=e.data;yc(t)&&(t.cmd,yt("Unknown control reply command: ",t))}}let kc=null;let Sc=!1,Ec=!1,Tc=!1;async function Uc(){if(Tc)return;const e=function(){const e=u.config.environmentVariables?u.config.environmentVariables.DOTNET_DiagnosticPorts:void 0;return C(e)?null:function(e){if(""===e)return null;const t=e.split(";");if(0===t.length)return null;1!==t.length&&yt("multiple diagnostic ports specified, only the last one will be used");const n=t[t.length-1].split(",");if(n.length<1||n.length>3)return yt("invalid diagnostic port specification, should be of the form [,],[]"),null;const r=n[0];let o=!0,s=!0;for(let e=n.length-1;e>=1;e--){const t=n[e];switch(t.toLowerCase()){case"nosuspend":s=!1;break;case"suspend":s=!0;break;case"listen":o=!1;break;case"connect":o=!0;break;default:yt(`invalid diagnostic port specification component: ${t}`)}}return o?{server:{connectUrl:r,suspend:s}}:(yt("this runtime does not support listening on a diagnostic port; no diagnostic server started"),null)}(e)}();if(e&&(Tc=!0,!C(null==e?void 0:e.server))){if(void 0===e.server.connectUrl||"string"!=typeof e.server.connectUrl)throw new Error("server.connectUrl must be a string");const t=e.server.connectUrl,n=function(e){if(!0===e||!1===e)return e;if("string"==typeof e){if("true"===e)return!0;if("false"===e)return!1}throw new Error(`invalid option: "${e}", should be true, false, or "true" or "false"`)}(e.server.suspend);await async function(e){bt(`starting the diagnostic server url: ${e}`);const t=ve(4,(t=>{if(Ct.mono_wasm_diagnostic_server_create_thread(e,t))return me(t)}));if(void 0===t)return yt("diagnostic server failed to start"),null;const n=await function(e){if(Go.has(e))return Promise.resolve(Go.get(e));const t=w(),n=Xo.get(e);return void 0===n?Xo.set(e,[t.promise_control]):n.push(t.promise_control),t.promise}(t);if(void 0===n)throw new Error("unexpected diagnostic server thread not found");const r=new vc(n);return kc=r,r.start(),r}(t)&&(Ec=!0,n&&(Sc=!0))}}const Ic=64;let Ac,xc,jc,Cc=0;const Rc=[],Lc={};function $c(){return xc||(xc=[Aa("interp_entry_prologue",Ta("mono_jiterp_interp_entry_prologue")),Aa("interp_entry",Ta("mono_jiterp_interp_entry")),Aa("unbox",Ta("mono_jiterp_object_unbox")),Aa("stackval_from_data",Ta("mono_jiterp_stackval_from_data"))],xc)}let Dc;function Nc(){if(Rc.length<=0)return;const e=4*Rc.length+1;let t=Ac;if(t?t.clear(e):(Ac=t=new oa(e),t.defineType("unbox",{pMonoObject:127},127,!0),t.defineType("interp_entry_prologue",{pData:127,this_arg:127},127,!0),t.defineType("interp_entry",{pData:127,res:127},64,!0),t.defineType("stackval_from_data",{type:127,result:127,value:127},64,!0)),t.options.wasmBytesLimit<=da.bytesGenerated)return void(Rc.length=0);const n=pa();let r=0,o=!0,s=!1;try{t.appendU32(1836278016),t.appendU32(1);for(let e=0;eQc[xt.mono_jiterp_type_to_ldind(e)])),this.enableDirect=La().directJitCalls&&!this.noWrapper&&this.wasmNativeReturnType&&(0===this.wasmNativeSignature.length||this.wasmNativeSignature.every((e=>e))),this.enableDirect&&(this.target=this.addr);let i=this.target.toString(16);const c=Wc++;this.name=`${this.enableDirect?"jcp":"jcw"}_${i}_${c.toString(16)}`}}function Xc(e){let t=Hc[e];return t||(e>=Hc.length&&(Hc.length=e+1),zc||(zc=ha()),Hc[e]=t=zc.get(e)),t}let Yc;function Kc(){if(void 0!==Vc)return Vc;try{Yc=function(){const e=new oa(0);e.defineType("jit_call_cb",{cb_data:127},64,!0),e.defineType("do_jit_call",{unused:127,cb_data:127,thrown:127},64,!0),e.defineImportedFunction("i","jit_call_cb","jit_call_cb",!0),e.defineFunction({type:"do_jit_call",name:"do_jit_call_indirect",export:!0,locals:{}},(()=>{e.block(64,6),e.local("cb_data"),e.callImport("jit_call_cb"),e.appendU8(25),e.local("thrown"),e.i32_const(1),e.appendU8(54),e.appendMemarg(0,0),e.endBlock(),e.appendU8(11)})),e.appendU32(1836278016),e.appendU32(1),e.generateTypeSection(),e.emitImportsAndFunctions(!1);const t=e.getArrayView();return new WebAssembly.Module(t)}(),Vc=!0}catch(e){bt("Disabling WASM EH support due to JIT failure",e),Vc=!1}return Vc}function Zc(){if(0===Gc.length)return;let e=Fc;if(e?e.clear(0):(Fc=e=new oa(0),e.defineType("trampoline",{ret_sp:127,sp:127,ftndesc:127,thrown:127},64,!0)),e.options.wasmBytesLimit<=da.bytesGenerated)return void(Gc.length=0);e.options.enableWasmEh&&(Kc()||(Ra({enableWasmEh:!1}),e.options.enableWasmEh=!1));const t=pa();let n=0,r=!0,o=!1;const s=[];try{zc||(zc=ha()),e.appendU32(1836278016),e.appendU32(1);for(let t=0;tsl.MinimalHeaderSize+2+2+(e?e instanceof Uint8Array?e.byteLength:e:0),serializeMagic(e,t){e.set(sl.DOTNET_IPC_V1,t.pos),al(t,sl.DOTNET_IPC_V1.byteLength)},serializeUint8(e,t,n){e[t.pos++]=n},serializeUint16(e,t,n){e[t.pos++]=255&n,e[t.pos++]=n>>8&255},serializeUint32(e,t,n){e[t.pos++]=255&n,e[t.pos++]=n>>8&255,e[t.pos++]=n>>16&255,e[t.pos++]=n>>24&255},serializeUint64(e,t,n){il.serializeUint32(e,t,n[0]),il.serializeUint32(e,t,n[1])},serializeHeader:function(e,t,n,r,o){il.serializeMagic(e,t),il.serializeUint16(e,t,o),il.serializeUint8(e,t,n),il.serializeUint8(e,t,r),il.serializeUint16(e,t,0)},serializePayload(e,t,n){e.set(n,t.pos),al(t,n.byteLength)},serializeString(e,t,n){if(null==n||""===n)il.serializeUint32(e,t,0);else{const r=n.length,o="\0"===n[r-1];il.serializeUint32(e,t,r+(o?0:1));for(let o=0;o0&&this.syncSendBuffer(e,t)}Ee.storeI32(this.buf_full_addr,0),Ee.notifyI32(this.buf_full_addr,1)}}const hl=new Map;function gl(e,t,n){let r,o;return Q(e,0),"file"===n.type?(r=n.filePath,o=0):(r=null,o=n.stream),!!Ct.mono_wasm_event_pipe_enable(r,o,t.bufferSizeInMB,t.providers,t.rundownRequested,e)&&le(e)}class bl{constructor(e,t,n){this.sessionID=e,this.queue=t,this.connection=n}}function yl(e){return e.map((function(e){const n=0===e.keywords[0]&&0===e.keywords[1]?"":function(e){const n=e[0],r=e[1],o=t(n.toString(16),"0",8);return t(r.toString(16),"0",8)+o}(e.keywords),r=""===e.filter_data?"":":"+e.filter_data;return e.provider_name+":"+n+":"+e.logLevel+r})).join(",");function t(e,t,n){return e.length>=n?e:t.repeat(n-e.length)+e}}const wl=4;function vl(e,t){e.pos+=t}const kl={tryParseHeader(e,t){let n=t.pos;for(let t=0;tkl.tryParseUint16(e,t),tryParseCommand(e,t){const n=kl.tryParseUint8(e,t);if(void 0===n)return;const r=kl.tryParseUint8(e,t);return void 0!==r&&void 0!==kl.tryParseReserved(e,t)?{commandSet:n,command:r,payload:e.slice(t.pos)}:void 0},tryParseReserved(e,t){for(let n=0;n<2;n++){const n=kl.tryParseUint8(e,t);if(void 0===n||0!==n)return}return!0},tryParseUint8(e,t){const n=t.pos;if(n>=e.byteLength)return;const r=e[n];return vl(t,1),r},tryParseUint16(e,t){const n=t.pos;if(n+1>=e.byteLength)return;const r=e[n+1]<<8|e[n];return vl(t,2),r},tryParseUint32(e,t){const n=t.pos;if(n+3>=e.byteLength)return;const r=e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n];return vl(t,4),r},tryParseUint64(e,t){const n=kl.tryParseUint32(e,t);if(void 0===n)return;const r=kl.tryParseUint32(e,t);return void 0!==r?[n,r]:void 0},tryParseBool(e,t){const n=kl.tryParseUint8(e,t);if(void 0!==n)return 0!==n},tryParseArraySize(e,t){const n=kl.tryParseUint32(e,t);if(void 0!==n)return n},tryParseStringLength:(e,t)=>kl.tryParseArraySize(e,t),tryParseUtf16String(e,t){const n=kl.tryParseStringLength(e,t);if(void 0===n)return;const r=t.pos;if(r+2*n>e.byteLength)return;const o=new Array(n);for(let t=0;t=0&&0===o[e];e--)s=e;return s>=0&&o.splice(s),String.fromCharCode.apply(null,o)}},Sl="dotnet:diagnostics:protocolCommand";var El;!function(e){e[e.Idle=0]="Idle",e[e.PartialCommand=1]="PartialCommand",e[e.Error=2]="Error"}(El||(El={}));class Tl{constructor(e){this.emitCommandCallback=e,this.state={state:El.Idle}}receiveBuffer(e){if(this.state.state==El.Error)return;let t;if(t=this.state.state===El.Idle?this.tryParseHeader(new Uint8Array(e)):this.tryAppendBuffer(new Uint8Array(e)),t.success){if(gt("protocol-socket: got result",t),this.setState(t.newState),t.command){const e=t.command;this.emitCommandCallback(e)}}else yt("socket received invalid command header",e,t.error),this.setState({state:El.Error})}tryParseHeader(e){const t={pos:0};if(e.byteLength{gt("dispatching protocol event with command",e),this.dispatchProtocolCommandEvent(e)}))}dispatchProtocolCommandEvent(e){const t=new Event(Sl);t.data=e,this.sock.dispatchEvent(t)}addEventListener(e,t,n){this.sock.addEventListener(e,t,n),e===Sl&&(0===this.protocolListeners&&(gt("adding protocol listener, with a message chaser"),this.sock.addEventListener("message",this.messageListener)),this.protocolListeners++)}removeEventListener(e,t){e===Sl&&(gt("removing protocol listener and message chaser"),this.protocolListeners--,0===this.protocolListeners&&(this.sock.removeEventListener("message",this.messageListener),this.statefulParser.reset())),this.sock.removeEventListener(e,t)}send(e){this.sock.send(e)}close(){this.sock.close(),this.statefulParser.reset()}}function Il(e,t){const n=kl.tryParseUint64(e,t);if(void 0===n)return{success:!1,error:"failed to parse keywords in EventPipe CollectTracing provider"};const r=kl.tryParseUint32(e,t);if(void 0===r)return{success:!1,error:"failed to parse logLevel in EventPipe CollectTracing provider"};const o=kl.tryParseUtf16String(e,t);if(void 0===o)return{success:!1,error:"failed to parse providerName in EventPipe CollectTracing provider"};const s=kl.tryParseUtf16String(e,t);return void 0===s?{success:!1,error:"failed to parse filterData in EventPipe CollectTracing provider"}:{success:!0,result:{keywords:n,logLevel:r,provider_name:o,filter_data:s}}}class Al{constructor(e,t){this.runtimeResumed=!1,this.startRequestedController=w().promise_control,this.stopRequested=!1,this.stopRequestedController=w().promise_control,this.attachToRuntimeController=w().promise_control,this.openCount=0,this.websocketUrl=e,hr.addEventListenerFromBrowser(this.onMessageFromMainThread.bind(this)),this.mocked=void 0}start(){bt(`starting diagnostic server with url: ${this.websocketUrl}`),this.startRequestedController.resolve()}stop(){this.stopRequested=!0,this.stopRequestedController.resolve()}attachToRuntime(){Ct.mono_wasm_diagnostic_server_thread_attach_to_runtime(),this.attachToRuntimeController.resolve()}async serverLoop(){for(await this.startRequestedController.promise,await this.attachToRuntimeController.promise;!this.stopRequested;){gt("diagnostic server: advertising and waiting for client");const e=this.advertiseAndWaitForClient().then((()=>"first")),t=this.stopRequestedController.promise.then((()=>"second")),n=await Promise.race([e,t]);switch(n){case"first":break;case"second":gt("stop requested");break;default:R(n)}}}async openSocket(){{const t=new WebSocket(this.websocketUrl);return await(e=t,new Promise((t=>{e.addEventListener("open",(e=>{t(e)}),{once:!0})}))),t}var e}async advertiseAndWaitForClient(){try{const t=this.openCount++;gt("opening websocket and sending ADVR_V1",t);const n=await this.openSocket(),r=(e=new Ul(n),new Promise((t=>{e.addEventListener(Sl,(e=>{t(e)}),{once:!0})})));this.sendAdvertise(n);const o=await r;gt("received advertising response: ",o,t),queueMicrotask((()=>this.parseAndDispatchMessage(n,t,o)))}finally{this.resumeRuntime()}var e}async parseAndDispatchMessage(e,t,n){try{const r=this.parseCommand(n,t);if(null===r)return void wt("unexpected message from client",n,t);ul(r)?await this.dispatchEventPipeCommand(e,r):ll(r)?await this.dispatchProcessCommand(e,r):yt("MONO_WASM Client sent unknown command",r)}finally{this.resumeRuntime()}}sendAdvertise(e){const t=function(e,t){const n=new Uint8Array(34),r={pos:0};return function(e,t,n){const r="\0"===n[7];for(let r=0;r<8;r++)il.serializeUint8(e,t,n.charCodeAt(r));r||il.serializeUint8(e,t,0)}(n,r,"ADVR_V1\0"),function(e,t,n){n.split("-").forEach((n=>{for(let r=0;r>8&255,r[2]=n.sessionID>>16&255,r[3]=n.sessionID>>24&255,this.postClientReplyOK(e,r),gt("created session, now streaming: ",n),Ct.mono_wasm_event_pipe_session_start_streaming(n.sessionID)}async dispatchProcessCommand(e,t){var n;ll(n=t)&&"ResumeRuntime"===n.command?this.processResumeRuntime(e):yt("unknown Process command",t)}processResumeRuntime(e){this.postClientReplyOK(e),this.resumeRuntime()}resumeRuntime(){this.runtimeResumed||(gt("resuming runtime startup"),Ct.mono_wasm_diagnostic_server_post_resume_runtime(),this.runtimeResumed=!0)}}function xl(e,t){return"\ud800"<=e[t]&&e[t]<="\udbff"&&t+10?t[0]:void 0}catch(t){throw new Error(`Get culture info failed for culture = ${e} with error: ${t}`)}}const Nl="MMMM",Bl="yyyy",Ml="d",Pl="dddd",Ol=[Nl,Bl,Ml,Pl];function Fl(e,t,n,r){let o=n;const s=t.indexOf(n);if(-1==s||-1!=s&&t.length>s+n.length&&" "!=t[s+n.length]&&","!=t[s+n.length]&&"،"!=t[s+n.length]){const s=r.format(e).toLowerCase();o=t.split(/,| /).filter((e=>!s.split(/,| /).includes(e)&&e[0]==n[0]))[0]}return o}async function zl(e,t){try{const n=await Vl(e,t);return d.mono_exit(n),n}catch(e){try{d.mono_exit(1,e)}catch(e){}return e&&"number"==typeof e.status?e.status:1}}async function Vl(e,t){!function(e,t){const r=t.length+1,o=n._malloc(4*r);let s=0;n.setValue(o+4*s,xt.mono_wasm_strdup(e),"i32"),s+=1;for(let e=0;e{const t=setInterval((()=>{1==u.waitForDebugger&&(clearInterval(t),e())}),100)})));const r=Wl(e);return u.javaScriptExports.call_entry_point(r,t)}function Wl(e){d.assert_runtime_running(),$r();const t=Or(e);if(!t)throw new Error("Could not find assembly: "+e);let n=0;1==u.waitForDebugger&&(n=1);const r=xt.mono_wasm_assembly_get_entry_point(t,n);if(!r)throw new Error("Could not find entry point for assembly: "+e);return r}let Hl,ql;const Gl={},Jl=Symbol.for("wasm type");function Xl(e){return"undefined"!=typeof SharedArrayBuffer?e.buffer instanceof ArrayBuffer||e.buffer instanceof SharedArrayBuffer:e.buffer instanceof ArrayBuffer}function Yl(e,t,n){switch(!0){case null===t:case void 0===t:return void n.clear();case"symbol"==typeof t:case"string"==typeof t:return void fu._create_uri_ref(t,n.address);default:return void Ql(e,t,n)}}function Kl(e){pu();const t=We();try{return Zl(e,t,!1),t.value}finally{t.release()}}function Zl(e,t,n){if(pu(),C(t))throw new Error("Expected (value, WasmRoot, boolean)");switch(!0){case null===e:case void 0===e:return void t.clear();case"number"==typeof e:{let n;return(0|e)===e?(Z(Gl._box_buffer,e),n=Gl._class_int32):e>>>0===e?(J(Gl._box_buffer,e),n=Gl._class_uint32):(se(Gl._box_buffer,e),n=Gl._class_double),void jt.mono_wasm_box_primitive_ref(n,Gl._box_buffer,8,t.address)}case"string"==typeof e:return void dt(e,t);case"symbol"==typeof e:return void pt(e,t);case"boolean"==typeof e:return W(Gl._box_buffer,e),void jt.mono_wasm_box_primitive_ref(Gl._class_boolean,Gl._box_buffer,4,t.address);case!0===po(e):return void function(e,t){if(!e)return t.clear(),null;const n=no(e),r=fu._create_tcs(),o={tcs_gc_handle:r};oo(o,r),e.then((e=>{fu._set_tcs_result_ref(r,e)}),(e=>{fu._set_tcs_failure(r,e?e.toString():"")})).finally((()=>{ro(n),so(o,r)})),fu._get_tcs_task_ref(r,t.address)}(e,t);case"Date"===e.constructor.name:return void fu._create_date_time_ref(e.getTime(),t.address);default:return void Ql(n,e,t)}}function Ql(e,t,n){if(n.clear(),null!=t)if(void 0===t[Zr]){if(t[Qr]&&(function(e,t,n){e!==A&&e!==I?fu._get_cs_owned_object_by_js_handle_ref(e,t?1:0,n):Z(n,0)}(t[Qr],e,n.address),n.value||delete t[Qr]),!n.value){const r=t[Jl],o=void 0===r?0:r,s=no(t);fu._create_cs_owned_proxy_ref(s,o,e?1:0,n.address)}}else Tu(ao(t),n.address)}function eu(e,t){if(!Xl(e)||!e.BYTES_PER_ELEMENT)throw new Error("Object '"+e+"' is not a typed array");{const r=e[Jl],o=function(e){pu();const t=e.length*e.BYTES_PER_ELEMENT,r=n._malloc(t),o=xe(),s=new Uint8Array(o.buffer,r,t);return s.set(new Uint8Array(e.buffer,e.byteOffset,t)),s}(e);jt.mono_wasm_typed_array_new_ref(o.byteOffset,e.length,e.BYTES_PER_ELEMENT,r,t.address),n._free(o.byteOffset)}}function tu(e){const t=We();try{return eu(e,t),t.value}finally{t.release()}}function nu(e){if("number"!=typeof e)throw new Error(`Expected numeric value for enum argument, got '${e}'`);return 0|e}const ru=/[^A-Za-z0-9_$]/g,ou=new Map,su=new Map,au=new Map;function iu(e,t,n,r){let o=null,s=null,a=null;if(r){a=Object.keys(r),s=new Array(a.length);for(let e=0,t=a.length;e=512)throw new Error(`Got marshaling error ${t} when attempting to unbox object at address ${e.value} (root located at ${e.address})`);let r=E;if((4===t||7==t)&&(r=le(n),r<1024))throw new Error(`Got invalid MonoType ${r} for object at address ${e.value} (root located at ${e.address})`);return function(e,t,n,r){switch(t){case 0:return null;case 26:case 27:throw new Error("int64 not available");case 3:case 29:return ut(e);case 4:throw new Error("no idea on how to unbox value types");case 5:return function(e){return e.value===k?null:function(e){let t=co(e);if(t)ao(t);else{t=function(...e){return ao(t),(0,t[yu])(...e)};const n=We();Tu(e,n.address);try{if(void 0===t[yu]){const r=jt.mono_wasm_get_delegate_invoke_ref(n.address),o=cu(r,du(r,n),!0);if(t[yu]=o.bind({this_arg_gc_handle:e}),!t[yu])throw new Error("System.Delegate Invoke method can not be resolved.")}}finally{n.release()}oo(t,e)}return t}(fu._get_js_owned_object_gc_handle_ref(e.address))}(e);case 6:return function(e){if(e.value===k)return null;if(!uo)throw new Error("Promises are not supported thus 'System.Threading.Tasks.Task' can not work in this context.");const t=fu._get_js_owned_object_gc_handle_ref(e.address);let n=co(t);if(!n){const r=()=>so(n,t),{promise:o,promise_control:s}=w(r,r);n=o,fu._setup_js_cont_ref(e.address,s),oo(n,t)}return n}(e);case 7:return function(e){if(e.value===k)return null;const t=fu._try_get_cs_owned_object_js_handle_ref(e.address,0);if(t){if(t===I)throw new Error("Cannot access a disposed JSObject at "+e.value);return to(t)}const n=fu._get_js_owned_object_gc_handle_ref(e.address);let r=co(n);return C(r)&&(r=new ManagedObject,oo(r,n)),r}(e);case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:throw new Error("Marshaling of primitive arrays are not supported.");case 20:return new Date(fu._get_date_value_ref(e.address));case 21:case 22:return fu._object_to_string_ref(e.address);case 23:return function(e){return to(fu._get_cs_owned_object_js_handle_ref(e.address,0))}(e);case 30:return;default:throw new Error(`no idea on how to unbox object of MarshalType ${t} at offset ${e.value} (root address is ${e.address})`)}}(e,t)}function ku(e){if(0===e.value)return;const t=Gl._unbox_buffer,n=jt.mono_wasm_try_unbox_primitive_and_get_type_ref(e.address,t,Gl._unbox_buffer_size);switch(n){case 1:return me(t);case 25:case 32:return le(t);case 24:return ye(t);case 2:return we(t);case 8:return 0!==me(t);case 28:return String.fromCharCode(me(t));case 0:return null;default:return vu(e,n,t)}}function Su(e){if(pu(),e===S)return null;const t=We(e);try{return Eu(t)}finally{t.release()}}function Eu(e){if(e.value===S)return null;const t=e.address,n=We(),r=n.address;try{const e=jt.mono_wasm_array_length_ref(t),s=new Array(e);for(let a=0;a0&&Array.isArray(e[0])&&(e[0]=function(e,t,n){const r=We();jt.mono_wasm_string_array_new_ref(e.length,r.address);const o=We(k),s=r.address,a=o.address;try{for(let t=0;tnew RegExp("^((?![0-9]).)*$").test(e)));return e&&0!=e.length?e.join(" "):""}return s}function $u(e){try{return new Intl.Locale(e).weekInfo}catch(t){try{return new Intl.Locale(e).getWeekInfo()}catch(e){return}}}const Du=[function(e){ms&&(globalThis.clearTimeout(ms),ms=void 0,n.runtimeKeepalivePop()),ms=n.safeSetTimeout(mono_wasm_schedule_timer_tick,e)},function(e,t,n,r,o){if(!0!==u.mono_wasm_runtime_is_ready)return;const s=xe(),a=0!==e?at(e).concat(".dll"):"",i=Dt(new Uint8Array(s.buffer,t,n));let c;r&&(c=Dt(new Uint8Array(s.buffer,r,o))),Kt({eventName:"AssemblyLoaded",assembly_name:a,assembly_b64:i,pdb_b64:c})},function(e,t){const n=at(t);r.logging&&"function"==typeof r.logging.debugger&&r.logging.debugger(e,n)},function(e,t,n,r){const o={res_ok:e,res:{id:t,value:Dt(new Uint8Array(xe().buffer,n,r))}};Bt.has(t)&&yt(`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(Dt(new Uint8Array(xe().buffer,e,t)))},mono_wasm_fire_debugger_agent_message_with_data_to_pause,function(){++gs,n.safeSetTimeout(ws,0)},function(e,t,r,o,s,a,i){if(r||v(!1,"expected instruction pointer"),Wi||(Wi=La()),!Wi.enableTraces)return 1;if(Wi.wasmBytesLimit<=da.bytesGenerated)return 1;let c,l=Zi[r];if(l||(Zi[r]=l=new Ji(r,o,i)),da.traceCandidates++,Wi.estimateHeat||qi.length>0||l.isVerbose){const e=xt.mono_wasm_method_get_full_name(t);c=at(e),n._free(e)}const d=at(xt.mono_wasm_method_get_name(t));l.name=c||d;const p=pe(Ea(4)+e),_=pe(Ea(11)+p),f=pe(Ea(10)+p);let m=_?new Uint16Array(xe().buffer,f,_):null;if(m&&r!==s){const e=(r-s)/2;let t=!1;for(let n=0;ne){t=!0;break}t||(m=null)}const h=function(e,t,n,r,o,s,a){let i=nc;i?i.clear(8):(nc=i=new oa(8),function(e){e.defineType("trace",{frame:127,pLocals:127,cinfo: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("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("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("cmpxchg_i32",{dest:127,newVal:127,expected:127},127,!0),e.defineType("cmpxchg_i64",{dest:127,newVal:127,expected:127,oldVal:127},64,!0),e.defineType("transfer",{displacement:127,trace:127,frame:127,locals:127,cinfo:127},127,!0),e.defineType("stelem_ref",{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=lc();for(let n=0;ns.indexOf(e)>=0))>=0;h&&!s&&v(!1,"Expected methodFullName if trace is instrumented");const g=h?Yi++:0;h&&(bt(`instrumenting: ${s}`),Xi[g]=new Gi(s)),i.compressImportNames=!h;try{i.appendU32(1836278016),i.appendU32(1),i.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,backbranched:127};i.options.enableSimd&&(t.v128_zero=123,t.math_lhs128=123,t.math_rhs128=123);let o=!0,s=0;if(i.defineFunction({type:"trace",name:l,export:!0,locals:t},(()=>{if(i.base=n,i.frame=e,662!==ce(n))throw new Error(`Expected *ip to be MINT_TIER_PREPARE_JITERPRETER but was ${ce(n)}`);return i.cfg.initialize(r,a,h?1:0),s=function(e,t,n,r,o,s,a,i){let c=!0,l=!1,u=!0,d=!1,p=!1,_=!1,f=0,m=0,h=0;const g=n;di();let b=n+=2*xt.mono_jiterp_get_opcode_info(664,1);for(s.cfg.entry(n);n&&n;){if(s.cfg.ip=n,n>=o){pc(g,0,0,"end-of-body"),a&&bt(`instrumented trace ${t} exited at end of body @${n.toString(16)}`);break}const y=3840-s.bytesGeneratedSoFar-s.cfg.overheadBytes;if(s.size>=y){pc(g,0,0,"trace-too-big"),a&&bt(`instrumented trace ${t} exited because of size limit at @${n.toString(16)} (spaceLeft=${y}b)`);break}let w=ce(n);const k=xt.mono_jiterp_get_opcode_info(w,2),S=xt.mono_jiterp_get_opcode_info(w,3),E=xt.mono_jiterp_get_opcode_info(w,1),T=w>=645&&w<=647,U=T?w-645+2:0,I=T?Za(n,1+U):0;w>=0&&w<673||v(!1,`invalid opcode ${w}`);const A=T?$a[U][I]:Zs(w),x=n,j=s.options.noExitBackwardBranches&&si(n,r,i),C=s.branchTargets.has(n),R=j||C||c&&i,L=h+m+s.branchTargets.size;let $=!1,D=Ia(w);switch(j&&s.backBranchOffsets.push(n),R&&(p=!1,_=!1,fi(s,n,j),l=!0,u=!0,di(),h=0),D<-1&&l&&(D=-2===D?2:0),c=!1,279===w||(Hi.indexOf(w)>=0?(fa(s,n,23),w=666):p&&(w=666)),w){case 666:p&&(_||s.appendU8(0),_=!0);break;case 321:case 322:yi(s,Za(n,1),0,Za(n,2));break;case 320:bi(s,Za(n,1)),hi(s,Za(n,2),40),s.local("frame"),s.callImport("localloc");break;case 294:hi(s,Za(n,1),40),ya(s,0,Za(n,2));break;case 318:{const e=Za(n,3),t=Za(n,2),r=Za(n,1),o=ii(s,e);0!==o&&("number"!=typeof o?(hi(s,e,40),s.local("count",34),s.block(64,4)):(s.i32_const(o),s.local("count",33)),hi(s,r,40),s.local("dest_ptr",34),s.appendU8(69),hi(s,t,40),s.local("src_ptr",34),s.appendU8(69),s.appendU8(114),s.block(64,4),fa(s,n,2),s.endBlock(),"number"==typeof o&&wa(s,0,0,o,!1,"dest_ptr","src_ptr")||(s.local("dest_ptr"),s.local("src_ptr"),s.local("count"),s.appendU8(252),s.appendU8(10),s.appendU8(0),s.appendU8(0)),"number"!=typeof o&&s.endBlock());break}case 319:{const e=Za(n,3),t=Za(n,2);ki(s,Za(n,1),n,!0),hi(s,t,40),hi(s,e,40),s.appendU8(252),s.appendU8(11),s.appendU8(0);break}case 151:case 153:case 235:case 237:case 152:case 154:case 137:case 140:case 141:ji(s,n,e,w)?l=!0:n=0;break;case 537:{const e=Za(n,2),t=Za(n,1);e!==t?(s.local("pLocals"),ki(s,e,n,!0),gi(s,t,54)):ki(s,e,n,!1),s.allowNullCheckOptimization&&ci.set(t,n),$=!0;break}case 626:case 627:{const t=pe(e+Ea(4));s.ptr_const(t),s.callImport("entry"),s.block(64,4),fa(s,n,1),s.endBlock();break}case 664:if(D=0,f>=s.options.minimumTraceValue&&!s.options.noExitBackwardBranches&&(!l||u)){const e=ti(n,1);s.ip_const(n),s.i32_const(e),s.local("frame"),s.local("pLocals"),s.local("cinfo"),s.callImport("transfer"),s.appendU8(15),n=0}break;case 146:_a(s,n);break;case 94:{s.local("pLocals");const e=Za(n,2);vi(s,e)||wt(`${t}: Expected local ${e} to have address taken flag`),bi(s,e),gi(s,Za(n,1),54);break}case 280:case 308:case 309:case 555:{s.local("pLocals");let t=ri(e,Za(n,2));308===w&&(t=xt.mono_jiterp_imethod_to_ftnptr(t)),s.ptr_const(t),gi(s,Za(n,1),54);break}case 313:{const t=ri(e,Za(n,3));hi(s,Za(n,1),40),hi(s,Za(n,2),40),s.ptr_const(t),s.callImport("value_copy");break}case 314:{const e=Za(n,3);hi(s,Za(n,1),40),hi(s,Za(n,2),40),va(s,e);break}case 315:{const e=Za(n,3);bi(s,Za(n,1),e),ki(s,Za(n,2),n,!0),va(s,e);break}case 316:{const t=ri(e,Za(n,3));hi(s,Za(n,1),40),bi(s,Za(n,2),0),s.ptr_const(t),s.callImport("value_copy");break}case 317:{const e=Za(n,3);hi(s,Za(n,1),40),bi(s,Za(n,2),0),va(s,e);break}case 539:s.local("pLocals"),ki(s,Za(n,2),n,!0),s.appendU8(40),s.appendMemarg(Ea(2),2),gi(s,Za(n,1),54);break;case 538:{s.block(),hi(s,Za(n,3),40),s.local("index",34);let e="cknull_ptr";s.options.zeroPageOptimization,ki(s,Za(n,2),n,!0),s.appendU8(40),s.appendMemarg(Ea(2),2),s.appendU8(72),s.local("index"),s.i32_const(0),s.appendU8(78),s.appendU8(113),s.appendU8(13),s.appendULeb(0),fa(s,n,11),s.endBlock(),s.local("pLocals"),s.local("index"),s.i32_const(2),s.appendU8(108),s.local(e),s.appendU8(106),s.appendU8(47),s.appendMemarg(Ea(3),1),gi(s,Za(n,1),54);break}case 349:case 350:{const e=Qa(n,4);s.block(),hi(s,Za(n,3),40),s.local("index",34);let t="cknull_ptr";349===w?ki(s,Za(n,2),n,!0):(bi(s,Za(n,2),0),t="src_ptr",s.local(t,34)),s.appendU8(40),s.appendMemarg(Ea(7),2),s.appendU8(73),s.local("index"),s.i32_const(0),s.appendU8(78),s.appendU8(113),s.appendU8(13),s.appendULeb(0),fa(s,n,18),s.endBlock(),s.local("pLocals"),s.local(t),s.appendU8(40),s.appendMemarg(Ea(8),2),s.local("index"),s.i32_const(e),s.appendU8(108),s.appendU8(106),gi(s,Za(n,1),54);break}case 652:s.block(),hi(s,Za(n,3),40),s.local("count",34),s.i32_const(0),s.appendU8(78),s.appendU8(13),s.appendULeb(0),fa(s,n,18),s.endBlock(),bi(s,Za(n,1),16),s.local("dest_ptr",34),hi(s,Za(n,2),40),s.appendU8(54),s.appendMemarg(0,0),s.local("dest_ptr"),s.local("count"),s.appendU8(54),s.appendMemarg(4,0);break;case 567:bi(s,Za(n,1),8),bi(s,Za(n,2),8),s.callImport("ld_del_ptr");break;case 81:bi(s,Za(n,1),4),s.ptr_const(ei(n,2)),s.callImport("ldtsflda");break;case 651:s.block(),bi(s,Za(n,1),4),bi(s,Za(n,2),0),s.callImport("gettype"),s.appendU8(13),s.appendULeb(0),fa(s,n,2),s.endBlock();break;case 648:{const t=ri(e,Za(n,4));s.ptr_const(t),bi(s,Za(n,1),4),bi(s,Za(n,2),0),bi(s,Za(n,3),0),s.callImport("hasflag");break}case 657:{const e=Ea(1);s.local("pLocals"),ki(s,Za(n,2),n,!0),s.i32_const(e),s.appendU8(106),gi(s,Za(n,1),54);break}case 649:s.local("pLocals"),bi(s,Za(n,2),0),s.callImport("hashcode"),gi(s,Za(n,1),54);break;case 650:s.local("pLocals"),bi(s,Za(n,2),0),s.callImport("try_hash"),gi(s,Za(n,1),54);break;case 653:s.local("pLocals"),bi(s,Za(n,2),0),s.callImport("hascsize"),gi(s,Za(n,1),54);break;case 658:s.local("pLocals"),hi(s,Za(n,2),40),s.local("math_lhs32",34),hi(s,Za(n,3),40),s.appendU8(115),s.i32_const(2),s.appendU8(116),s.local("math_rhs32",33),s.local("math_lhs32"),s.i32_const(327685),s.appendU8(106),s.i32_const(10485920),s.appendU8(114),s.i32_const(1703962),s.appendU8(106),s.i32_const(-8388737),s.appendU8(114),s.local("math_rhs32"),s.appendU8(113),s.appendU8(69),gi(s,Za(n,1),54);break;case 540:case 541:s.block(),bi(s,Za(n,1),4),bi(s,Za(n,2),0),s.callImport(540===w?"array_rank":"a_elesize"),s.appendU8(13),s.appendULeb(0),fa(s,n,2),s.endBlock();break;case 297:case 298:{const t=ri(e,Za(n,3)),r=xt.mono_jiterp_is_special_interface(t),o=297===w,a=Za(n,1);if(!t){pc(g,0,0,"null-klass"),n=0;continue}s.block(),s.options.zeroPageOptimization,s.block(),hi(s,Za(n,2),40),s.local("dest_ptr",34),s.appendU8(13),s.appendULeb(0),s.local("pLocals"),s.i32_const(0),gi(s,a,54),s.appendU8(12),s.appendULeb(1),s.endBlock(),s.local("dest_ptr"),r&&s.local("dest_ptr"),s.appendU8(40),s.appendMemarg(Ea(14),0),s.ptr_const(t),s.callImport(r?"imp_iface_s":"imp_iface"),o&&(s.local("dest_ptr"),s.appendU8(69),s.appendU8(114)),s.block(64,4),s.local("pLocals"),s.local("dest_ptr"),gi(s,a,54),s.appendU8(5),o?fa(s,n,19):(s.local("pLocals"),s.i32_const(0),gi(s,a,54)),s.endBlock(),s.endBlock();break}case 299:case 300:case 295:case 296:{const t=ri(e,Za(n,3)),r=299===w||300===w,o=295===w||299===w,a=Za(n,1);if(!t){pc(g,0,0,"null-klass"),n=0;continue}s.block(),s.options.zeroPageOptimization,s.block(),hi(s,Za(n,2),40),s.local("dest_ptr",34),s.appendU8(13),s.appendULeb(0),s.local("pLocals"),s.i32_const(0),gi(s,a,54),s.appendU8(12),s.appendULeb(1),s.endBlock(),s.local("dest_ptr"),s.appendU8(40),s.appendMemarg(Ea(14),0),s.appendU8(40),s.appendMemarg(Ea(15),0),r&&s.local("src_ptr",34),s.i32_const(t),s.appendU8(70),s.block(64,4),s.local("pLocals"),s.local("dest_ptr"),gi(s,a,54),s.appendU8(5),r?(s.local("src_ptr"),s.ptr_const(t),s.callImport("hasparent"),o&&(s.local("dest_ptr"),s.appendU8(69),s.appendU8(114)),s.block(64,4),s.local("pLocals"),s.local("dest_ptr"),gi(s,a,54),s.appendU8(5),o?fa(s,n,19):(s.local("pLocals"),s.i32_const(0),gi(s,a,54)),s.endBlock()):(bi(s,Za(n,1),4),s.local("dest_ptr"),s.ptr_const(t),s.i32_const(w),s.callImport("castv2"),s.appendU8(69),s.block(64,4),fa(s,n,19),s.endBlock()),s.endBlock(),s.endBlock();break}case 303:case 304:s.ptr_const(ri(e,Za(n,3))),bi(s,Za(n,1),4),bi(s,Za(n,2),0),s.i32_const(304===w?1:0),s.callImport("box");break;case 307:{const t=ri(e,Za(n,3)),r=Ea(17),o=Za(n,1),a=pe(t+r);if(!t||!a){pc(g,0,0,"null-klass"),n=0;continue}s.options.zeroPageOptimization,ki(s,Za(n,2),n,!0),s.local("dest_ptr",34),s.appendU8(40),s.appendMemarg(Ea(14),0),s.appendU8(40),s.appendMemarg(Ea(15),0),s.local("src_ptr",34),s.appendU8(40),s.appendMemarg(r,0),s.i32_const(a),s.appendU8(70),s.local("src_ptr"),s.appendU8(45),s.appendMemarg(Ea(16),0),s.appendU8(69),s.appendU8(113),s.block(64,4),s.local("pLocals"),s.local("dest_ptr"),s.i32_const(Ea(18)),s.appendU8(106),gi(s,o,54),s.appendU8(5),fa(s,n,21),s.endBlock();break}case 302:s.block(),bi(s,Za(n,1),4),hi(s,Za(n,2),40),s.callImport("newstr"),s.appendU8(13),s.appendULeb(0),fa(s,n,17),s.endBlock();break;case 291:s.block(),bi(s,Za(n,1),4),s.ptr_const(ri(e,Za(n,2))),s.callImport("newobj_i"),s.appendU8(13),s.appendULeb(0),fa(s,n,17),s.endBlock();break;case 293:{const e=Za(n,3);bi(s,Za(n,2),e),ya(s,0,e),s.local("pLocals"),bi(s,Za(n,2),e),gi(s,Za(n,1),54);break}case 290:case 292:case 543:case 542:l?(ma(s,n,L,15),p=!0,D=0):n=0;break;case 545:case 546:case 547:case 548:case 544:l?(ma(s,n,L,544==w?22:15),p=!0):n=0;break;case 145:case 142:fa(s,n,16),p=!0;break;case 138:case 139:fa(s,n,26),p=!0;break;case 144:if(s.callHandlerReturnAddresses.length>0&&s.callHandlerReturnAddresses.length<=3){const t=oi(e,Za(n,1));s.local("pLocals"),s.appendU8(40),s.appendMemarg(t,0),s.local("index",33);for(let e=0;e=3&&w<=12||w>=516&&w<=517?l||s.options.countBailouts?(fa(s,n,14),p=!0):n=0:w>=13&&w<=29?Si(s,n,w)?$=!0:n=0:w>=82&&w<=93?Ei(s,n,w)||(n=0):w>=351&&w<=434?Ii(s,n,w)||(n=0):Ba[w]?Ai(s,n,w)||(n=0):Oa[w]?Ci(s,n,e,w)?l=!0:n=0:w>=31&&w<=57?Ti(s,e,n,w)||(n=0):w>=58&&w<=81?Ui(s,e,n,w)||(n=0):w>=95&&w<=135?Li(s,n,w)||(n=0):w>=568&&w<=621?Ri(s,n,w)||(n=0):w>=323&&w<=348?Di(s,e,n,w)||(n=0):w>=235&&w<=278?s.branchTargets.size>0?(ma(s,n,L,8),p=!0):n=0:w>=640&&w<=647?Mi(s,n,w,A,U,I)?(d=!0,$=!0):n=0:0===D||(n=0)}if(n){if(!$){const e=n+2;for(let t=0;t0&&(e+=" -> ");for(let n=0;n0&&(l?h++:m++,f+=D),(n+=2*E)<=o&&(b=n)}else a&&bt(`instrumented trace ${t} aborted for opcode ${A} @${x.toString(16)}`),pc(g,0,0,w)}for(;s.activeBlocks>0;)s.endBlock();return s.cfg.exitIp=b,d&&(f+=10240),f}(e,l,n,r,c,i,g,a),o=s>=Wi.minimumTraceValue,i.cfg.generate()})),i.emitImportsAndFunctions(!1),!o)return m&&"end-of-body"===m.abortReason&&(m.abortReason="trace-too-small"),0;p=pa();const d=i.getArrayView();if(da.bytesGenerated+=d.length,d.length>=4080)return yt(`Jiterpreter generated too much code (${d.length} bytes) for trace ${l}. Please report this issue.`),0;const f=new WebAssembly.Module(d),b=i.getWasmImports(),y=new WebAssembly.Instance(f,b).exports[l];_=!1,u.storeMemorySnapshotPending&&v(!1,"Attempting to set function into table during creation of memory snapshot");const w=ga(y);if(!w)throw new Error("add_function_pointer returned a 0 index");return i.options.enableStats&&da.tracesCompiled&&da.tracesCompiled%500==0&&_c(!1,!0),w}catch(e){return f=!0,_=!1,wt(`${s||l} code generation failed: ${e} ${e.stack}`),ka(),0}finally{const e=pa();if(p?(ua.generation+=p-d,ua.compilation+=e-p):ua.generation+=e-d,f||!_&&Wi.dumpTraces||h){if(f||Wi.dumpTraces||h)for(let e=0;e0;)i.endBlock();i.inSection&&i.endSection()}catch(e){}const n=i.getArrayView();for(let r=0;r=4?Nc():Cc>0||"function"==typeof globalThis.setTimeout&&(Cc=globalThis.setTimeout((()=>{Cc=0,Nc()}),10))}},function(e,t,n,r,o,s,a,i,c){if(n>16)return 0;const l=new class{constructor(e,t,n,r,o,s,a,i,c){this.imethod=e,this.method=t,this.argumentCount=n,this.unbox=o,this.hasThisReference=s,this.hasReturnValue=a,this.name=i,this.paramTypes=new Array(n);for(let e=0;ee&&(l=l.substring(l.length-e,l.length)),l=`${this.imethod.toString(16)}_${l}`}else l=`${this.imethod.toString(16)}_${this.hasThisReference?"i":"s"}${this.hasReturnValue?"_r":""}_${this.argumentCount}`;this.traceName=l,this.hitCount=0}}(e,t,n,r,o,s,a,at(i),c);jc||(jc=ha());const u=jc.get(c);return l.result=ga(u),Lc[e]=l,l.result},function(e,t,n,r,o){const s=pe(n+0),a=qc[s];if(a)return void(a.result>0?xt.mono_jiterp_register_jit_call_thunk(n,a.result):(a.queue.push(n),a.queue.length>12&&Zc()));const i=new Jc(e,t,n,r,0!==o);qc[s]=i,Gc.push(i),Gc.length>=6&&Zc()},function(e,t,n,r,o){const s=Xc(e);try{s(t,n,r,o)}catch(e){$e(),J(o,1)}},Zc,function(e,t,r){u.storeMemorySnapshotPending&&v(!1,"Attempting to set function into table during creation of memory snapshot");const o=ha().get(e),s=function(e,t,n){try{o(t)}catch(e){$e(),J(n,1)}};let a=!Kc();if(!a)try{const e=new WebAssembly.Instance(Yc,{i:{jit_call_cb:o},m:{h:n.getMemory()}}).exports.do_jit_call_indirect;if("function"!=typeof e)throw new Error("Did not find exported do_jit_call handler");const t=ga(e);xt.mono_jiterp_update_jit_call_dispatcher(t),a=!1}catch(e){wt("failed to compile do_jit_call handler",e),a=!0}if(a)try{const e=n.addFunction(s,"viii");xt.mono_jiterp_update_jit_call_dispatcher(e)}catch(e){xt.mono_jiterp_update_jit_call_dispatcher(0)}s(0,t,r)},function(){u.enablePerfMeasure&&sn.push(globalThis.performance.now())},function(e){if(u.enablePerfMeasure){const t=sn.pop(),n=a?{start:t}:{startTime:t};let r=an.get(e);r||(r=at(Rt.mono_wasm_method_get_name(e)),an.set(e,r)),globalThis.performance.measure(r,n)}},function(e,t,n,o,s){const a=at(n),i=!!o,c=at(e),l=s,u=at(t),d=`[MONO] ${a}`;if(r.logging&&"function"==typeof r.logging.trace)r.logging.trace(c,u,d,i,l);else switch(u){case"critical":case"error":console.error(Et(d));break;case"warning":console.warn(d);break;case"message":default:console.log(d);break;case"info":console.info(d);break;case"debug":console.debug(d)}},function(e,t){Pt=at(e).concat(".dll"),Ot=t,console.assert(!0,`Adding an entrypoint breakpoint ${Pt} at method token ${Ot}`);debugger},function(){},ro,function(e,t,o,s,a,i){$r();const c=Ve(e),l=Ve(t),u=Ve(i);try{const e=Sn(o);1!==e&&v(!1,`Signature version ${e} mismatch.`);const t=ut(c),n=rn(),i=ut(l);gt(`Binding [JSImport] ${t} from ${i} module`);const d=function(e,t){e&&"string"==typeof e||v(!1,"function_name must be string");let n={};const o=e.split(".");t?(n=jr.get(t),n||v(!1,`ES6 module ${t} was not imported yet, please call JSHost.ImportAsync() first.`)):"INTERNAL"===o[0]?(n=r,o.shift()):"globalThis"===o[0]&&(n=globalThis,o.shift());for(let t=0;t{e&&e.dispose()},m=!0):n==L.Task&&vr()}const h=hn(o,1),g=gn(h);g==L.Task&&vr();const b=bo(h,g,1),y={fn:d,fqn:i+":"+t,args_count:p,arg_marshalers:_,res_converter:b,has_cleanup:m,arg_cleanup:f,isDisposed:!1};let w;w=0!=p||b?1!=p||m||b?1==p&&!m&&b?function(e){const t=e.fn,n=e.arg_marshalers[0],r=e.res_converter,o=e.fqn;return function(s){const a=rn();try{$&&e.isDisposed&&v(!1,"The function was already disposed");const o=n(s),a=t(o);r(s,a)}catch(e){Mo(s,e)}finally{on(a,"mono.callCsFunction:",o)}}}(y):2==p&&!m&&b?function(e){const t=e.fn,n=e.arg_marshalers[0],r=e.arg_marshalers[1],o=e.res_converter,s=e.fqn;return function(a){const i=rn();try{$&&e.isDisposed&&v(!1,"The function was already disposed");const s=n(a),i=r(a),c=t(s,i);o(a,c)}catch(e){Mo(a,e)}finally{on(i,"mono.callCsFunction:",s)}}}(y):function(e){const t=e.args_count,n=e.arg_marshalers,r=e.res_converter,o=e.arg_cleanup,s=e.has_cleanup,a=e.fn,i=e.fqn;return function(c){const l=rn();try{$&&e.isDisposed&&v(!1,"The function was already disposed");const i=new Array(t);for(let e=0;e2?t:r,e)}else{u=1;const t=a[e].toUpperCase();G(l,n+2*e,(t.length>1?a[e]:t).charCodeAt(0))}else for(let e=0;e2?t:r,e)}else{u=1;const t=a[e].toLowerCase();G(l,n+2*e,(t.length>1?a[e]:t).charCodeAt(0))}}catch(e){Rr(s,e,i)}finally{i.release()}},function(e,t,n,r,o,s,a,i){const c=Ve(e),l=Ve(i);try{const e=ut(c);if(!e)throw new Error("Cannot change case, the culture name is null.");const i=ct(t,t+2*n),u=s?i.toLocaleUpperCase(e):i.toLocaleLowerCase(e);if(u.length<=i.length)return lt(r,r+2*o,u),void Lr(a,l);const d=je();let p=1;if(s)for(let t=0;t2?n:o,t)}else{p=1;const n=i[t].toLocaleUpperCase(e);G(d,r+2*t,(n.length>1?i[t]:n).charCodeAt(0))}else for(let t=0;t2?n:o,t)}else{p=1;const n=i[t].toLocaleLowerCase(e);G(d,r+2*t,(n.length>1?i[t]:n).charCodeAt(0))}Lr(a,l)}catch(e){Rr(a,e,l)}finally{c.release(),l.release()}},function(e,t,n,r,o,s,a,i){const c=Ve(e),l=Ve(i);try{const e=ut(c),i=it(t,t+2*n),u=it(r,r+2*o),d=31&s,p=e||void 0;return Lr(a,l),Cl(i,u,p,d)}catch(e){return Rr(a,e,l),-2}finally{c.release(),l.release()}},function(e,t,n,r,o,s,a,i){const c=Ve(e),l=Ve(i);try{const e=ut(c),i=Rl(r,o);if(0==i.length)return 1;const u=Rl(t,n);if(u.lengthe.segment));let h=0,g=!1,b=-1,y=0,w=0,v=0;for(;!g;){const e=f.segment(c.slice(h,c.length))[Symbol.iterator]();let t=e.next();if(t.done)break;let n=d(t.value.segment,m[0],p,_);if(w=v,t=e.next(),t.done){b=n?w:b;break}if(y=t.value.index,v=w+y,n){for(let r=1;re==t)).length&&(n[e]=`'${n[e].slice(0,-2)}'.,`)}else n[e].endsWith(".")?n[e]=`'${n[e].slice(0,-1)}'.`:n[e].endsWith(",")?n[e]=`'${n[e].slice(0,-1)}',`:n[e]=`'${n[e]}'`;return n.join(" ")}(n,e)}(e,c);const d=function(e,t,n){if(function(e){return e>1&&e<15||22==e||23==e}(n))return{eraNames:"",abbreviatedEraNames:""};const r=e.toLocaleDateString(t,{year:"numeric"}),o=e.toLocaleDateString(t,{day:"numeric"}),s=e.toLocaleDateString(t,{era:"short"}),a=e.toLocaleDateString(t,{era:"narrow"}),i=s.includes(r)?l(r):l(e.getFullYear().toString());return{eraNames:c(i.eraDateParts,i.ignoredPart),abbreviatedEraNames:c(i.abbrEraDateParts,i.ignoredPart)};function c(e,n){const r=new RegExp(`^((?!${n}|[0-9]).)*$`),o=e.filter((e=>r.test(e)));if(0==o.length)throw new Error(`Internal error, era for locale ${t} was in non-standard format.`);return o[0].trim()}function l(e){return s.startsWith(e)||s.endsWith(e)?{eraDateParts:s.split(o),abbrEraDateParts:a.split(o),ignoredPart:e}:{eraDateParts:s.split(e),abbrEraDateParts:a.split(e),ignoredPart:o}}}(c,e,t);s.EraNames=d.eraNames,s.AbbreviatedEraNames=d.abbreviatedEraNames;const p=Object.values(s).join("##");if(p.length>r)throw new Error(`Calendar info exceeds length of ${r}.`);return lt(n,n+2*p.length,p),Lr(o,i),p.length}catch(e){return Rr(o,e,i),-1}finally{a.release(),i.release()}},function(e,t,n,r,o){const s=Ve(e),a=Ve(o);try{const e=ut(s),o={AmDesignator:"",PmDesignator:"",LongTimePattern:"",ShortTimePattern:""},i=Dl(e),c=function(e){const t=new Date("August 19, 1975 12:15:33"),n=new Date("August 19, 1975 11:15:33"),r=Lu(t,e);return{am:Lu(n,e),pm:r}}(i);o.AmDesignator=c.am,o.PmDesignator=c.pm,o.LongTimePattern=function(e,t){const n=18..toLocaleString(e),r=6..toLocaleString(e),o=new Date("August 19, 1975 18:15:30"),s=new Intl.DateTimeFormat(e,{timeStyle:"medium"}),a=s.format(o),i=o.toLocaleTimeString(e,{minute:"numeric"}),c=o.toLocaleTimeString(e,{second:"numeric"});let l=a.replace(t.pm,"tt").replace(i,"mm").replace(c,Cu);const u=l.includes(n),d=`${(0).toLocaleString(e)}${r}`,p=new Date("August 19, 1975 6:15:30"),_=s.format(p);let f;if(u)f=_.includes(d)?"HH":"H",l=l.replace(n,f);else{const e=_.includes(d);f=e?"hh":"h",l=l.replace(e?d:r,f)}return function(e){const t=e.split(/\s+/);for(let e=0;e0){const n=`${e[t-1]}ss`,r=e.replace(n,"");e=r.length>t&&"t"!=r[r.length-1]?e.split(n)[0]:r}return e}(o.LongTimePattern);const l=Object.values(o).join("##");if(l.length>n)throw new Error(`Culture info exceeds length of ${n}.`);return lt(t,t+2*l.length,l),Lr(r,a),l.length}catch(e){return Rr(r,e,a),-1}finally{s.release(),a.release()}},function(e,t,n){const r=Ve(e),o=Ve(n);try{return function(e){const t=$u(e);if(t)return 7==t.firstDay?0:t.firstDay;if(["en-AE","en-SD","fa-IR"].includes(e))return 6;const n=e.split("-")[0];return["zh","th","pt","mr","ml","ko","kn","ja","id","hi","he","gu","fil","bn","am","ar"].includes(n)||["ta-SG","ta-IN","sw-KE","ms-SG","fr-CA","es-MX","en-US","en-ZW","en-ZA","en-WS","en-VI","en-UM","en-TT","en-SG","en-PR","en-PK","en-PH","en-MT","en-MO","en-MH","en-KE","en-JM","en-IN","en-IL","en-HK","en-GU","en-DM","en-CA","en-BZ","en-BW","en-BS","en-AU","en-AS","en-AG"].includes(e)?0:1}(Dl(ut(r)))}catch(e){return Rr(t,e,o),-1}finally{r.release(),o.release()}},function(e,t,n){const r=Ve(e),o=Ve(n);try{return function(e){const t=$u(e);if(t)return 7==t.minimalDays?1:t.minimalDays<4?0:2;const n=e.split("-")[0];return["pt-PT","fr-CH","fr-FR","fr-BE","es-ES","en-SE","en-NL","en-JE","en-IM","en-IE","en-GI","en-GG","en-GB","en-FJ","en-FI","en-DK","en-DE","en-CH","en-BE","en-AT","el-GR"].includes(e)||["sv","sk","ru","pl","nl","no","lt","it","hu","fi","et","de","da","cs","ca","bg"].includes(n)?2:0}(Dl(ut(r)))}catch(e){return Rr(t,e,o),-1}finally{r.release(),o.release()}}],Nu=[...Du,function(e){const t=hr;null!==t&&t.pthreadId==e||v(!1,"expected pthread_self to be set already when attaching"),ht("0x"+e.toString(16)),gt("attaching pthread to mono runtime 0x"+e.toString(16)),u.runtimeReady=!0,u.afterPreRun.promise_control.resolve(),fr.dispatchEvent(pr("dotnet:pthread:attached",t))},function(e){gt("detaching pthread from mono runtime 0x"+e.toString(16)),0!==Kr.size&&v(!1,"There should be no proxies on this thread."),1!==Jr.length&&v(!1,"There should be no proxies on this thread."),0!==Vr.size&&v(!1,"There should be no exports on this thread."),1!==kr.length&&v(!1,"There should be no imports on this thread."),u.runtimeReady=!1,u.afterPreRun=w(),ht("")},function(){return mo>0},function(e){const t=at(e);gt(`mono_wasm_diagnostic_server_on_server_thread_created, url ${t}`);const n=new Al(t,void 0);queueMicrotask((()=>{n.serverLoop()}))},function(e){Ec&&(function(){if(kc)return kc;throw new Error("unexpected no server controller")}().postServerAttachToRuntime(),Q(e,Sc?1:0))},function(e,t){const n=hl.get(e);n&&(0===t?n.wakeup():n.workAvailableNow())},function(e){Ju(),e&&!u.jsSynchronizationContextInstalled&&(u.jsSynchronizationContextInstalled=!0,gt("Installed JSSynchronizationContext")),e&&n.runtimeKeepalivePush(),hr&&hr.pthreadId},function(e){u.mono_wasm_bindings_is_ready||v(!1,"JS interop is not installed on this worker."),e&&!u.jsSynchronizationContextInstalled&&v(!1,"JSSynchronizationContext is not installed on this worker."),e&&(lo(!0,u.diagnosticTracing),n.runtimeKeepalivePop()),u.jsSynchronizationContextInstalled=!1,u.mono_wasm_bindings_is_ready=!1,hr&&hr.pthreadId},function(e,t,n,r,o){pu();const s=Ve(n),a=Ve(t),i=Ve(o);try{const t=ut(a);if(!t||"string"!=typeof t)return void Rr(r,"ERR12: Invalid method name object @"+a.value,i);const n=function(e){return e!==A&&e!==I?to(e):null}(e);if(C(n))return void Rr(r,"ERR13: Invalid JS object handle '"+e+"' while invoking '"+t+"'",i);const o=Eu(s);try{const e=n[t];if(void 0===e)throw new Error("Method: '"+t+"' not found for: '"+Object.prototype.toString.call(n)+"'");Zl(e.apply(n,o),i,!0),Lr(r)}catch(e){Rr(r,e,i)}}finally{s.release(),a.release(),i.release()}},function(e,t,n,r){pu();const o=Ve(t),s=Ve(r);try{const t=ut(o);if(!t)return void Rr(n,"Invalid property name object '"+o.value+"'",s);const r=to(e);if(C(r))return void Rr(n,"ERR01: Invalid JS object handle '"+e+"' while geting '"+t+"'",s);Zl(r[t],s,!0),Lr(n)}catch(e){Rr(n,e,s)}finally{s.release(),o.release()}},function(e,t,n,r,o,s,a){pu();const i=Ve(n),c=Ve(t),l=Ve(a);try{const n=ut(c);if(!n)return void Rr(s,"Invalid property name object '"+t+"'",l);const a=to(e);if(C(a))return void Rr(s,"ERR02: Invalid JS object handle '"+e+"' while setting '"+n+"'",l);const u=ku(i);if(r)a[n]=u;else{if(!r&&!Object.prototype.hasOwnProperty.call(a,n))return;!0===o?Object.prototype.hasOwnProperty.call(a,n)&&(a[n]=u):a[n]=u}Lr(s,l)}catch(e){Rr(s,e,l)}finally{l.release(),c.release(),i.release()}},function(e,t,n,r){pu();const o=Ve(r);try{const r=to(e);if(C(r))return void Rr(n,"ERR03: Invalid JS object handle '"+e+"' while getting ["+t+"]",o);Zl(r[t],o,!0),Lr(n)}catch(e){Rr(n,e,o)}finally{o.release()}},function(e,t,n,r,o){pu();const s=Ve(n),a=Ve(o);try{const n=to(e);if(C(n))return void Rr(r,"ERR04: Invalid JS object handle '"+e+"' while setting ["+t+"]",a);const o=ku(s);n[t]=o,Lr(r,a)}catch(e){Rr(r,e,a)}finally{a.release(),s.release()}},function(e,t,o){pu();const s=Ve(e),a=Ve(o);try{const e=ut(s);let o;if(o=e?"Module"==e?n:"INTERNAL"==e?r:globalThis[e]:globalThis,null===o||void 0===typeof o)return void Rr(t,"Global object '"+e+"' not found.",a);Zl(o,a,!0),Lr(t)}catch(e){Rr(t,e,a)}finally{a.release(),s.release()}},function(e,t,n,r){const o=Ve(t),s=Ve(e),a=Ve(r);try{const e=ut(s);if(!e)return void Rr(n,"Invalid name @"+s.value,a);const t=globalThis[e];if(null==t)return void Rr(n,"JavaScript host object '"+e+"' not found.",a);try{const e=Eu(o),r=function(e,t){let n=[];return n[0]=e,t&&(n=n.concat(t)),new(e.bind.apply(e,n))};Zl(no(r(t,e)),a,!1),Lr(n)}catch(e){return void Rr(n,e,a)}}finally{a.release(),o.release(),s.release()}},function(e,t,n){const r=Ve(n);try{const n=to(e);if(C(n))return void Rr(t,"ERR06: Invalid JS object handle '"+e+"'",r);eu(n,r),Lr(t)}catch(e){Rr(t,String(e),r)}finally{r.release()}},function(e,t,n,r,o,s,a){const i=Ve(a);try{const a=function(e,t,n,r,o){let s=null;switch(o){case 5:s=new Int8Array(n-t);break;case 6:s=new Uint8Array(n-t);break;case 7:s=new Int16Array(n-t);break;case 8:s=new Uint16Array(n-t);break;case 9:s=new Int32Array(n-t);break;case 10:s=new Uint32Array(n-t);break;case 13:s=new Float32Array(n-t);break;case 14:s=new Float64Array(n-t);break;case 15:s=new Uint8ClampedArray(n-t);break;default:throw new Error("Unknown array type "+o)}return function(e,t,n,r,o){if(Xl(e)&&e.BYTES_PER_ELEMENT){if(o!==e.BYTES_PER_ELEMENT)throw new Error("Inconsistent element sizes: TypedArray.BYTES_PER_ELEMENT '"+e.BYTES_PER_ELEMENT+"' sizeof managed element: '"+o+"'");let s=(r-n)*o;const a=e.length*e.BYTES_PER_ELEMENT;s>a&&(s=a);const i=n*o;return new Uint8Array(e.buffer,0,s).set(xe().subarray(t+i,t+i+s)),s}throw new Error("Object '"+e+"' is not a typed array")}(s,e,t,n,r),s}(e,t,n,r,o);Zl(a,i,!0),Lr(s)}catch(e){Rr(s,String(e),i)}finally{i.release()}},function(e,t,n,r,o){try{pu();const e=globalThis.Blazor;if(!e)throw new Error("The blazor.webassembly.js library is not loaded.");return e._internal.invokeJSFromDotNet(t,n,r,o)}catch(t){const n=t.message+"\n"+t.stack,r=We();return dt(n,r),r.copy_to_address(e),r.release(),0}}];function Bu(e){const t=e.env||e.a;if(!t)return void yt("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(Nu.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 Nu.entries()){const o=n[e];if(void 0!==o){const e=t[o];if("function"!=typeof e)throw new Error(`Expected ${o} to be a function`);t[o]=r,gt(`Replaced WASM import ${o} stub ${e.name} with ${r.name||"minified implementation"}`)}}}const Mu="https://dotnet.generated.invalid/wasm-memory";async function Pu(){if(void 0===globalThis.caches)return null;if(a&&!1===globalThis.window.isSecureContext)return null;const e=`dotnet-resources${document.baseURI.substring(document.location.origin.length)}`;try{return await globalThis.caches.open(e)||null}catch(e){return yt("Failed to open cache"),null}}async function Ou(){if(u.memorySnapshotCacheKey)return u.memorySnapshotCacheKey;if(!u.subtle)return null;const t=Object.assign({},u.config);t.resourcesHash=t.resources.hash,delete t.assets,delete t.resources,t.preferredIcuAsset=d.preferredIcuAsset,delete t.forwardConsoleLogsToWS,delete t.diagnosticTracing,delete t.appendElementOnExit,delete t.assertAfterExit,delete t.interopCleanupOnExit,delete t.logExitCode,delete t.pthreadPoolSize,delete t.asyncFlushOnExit,delete t.remoteSources,delete t.ignorePdbLoadErrors,delete t.maxParallelDownloads,delete t.enableDownloadRetry,delete t.exitAfterSnapshot,delete t.extensions,t.GitHash=d.gitHash,t.ProductVersion=e;const n=JSON.stringify(t),r=await u.subtle.digest("SHA-256",(new TextEncoder).encode(n)),o=new Uint8Array(r),s=Array.from(o).map((e=>e.toString(16).padStart(2,"0"))).join("");return u.memorySnapshotCacheKey=`${Mu}-${s}`,u.memorySnapshotCacheKey}async function Fu(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),d.out=e.print,d.err=e.printErr,await es(),await async function(){try{if(!u.config.startupMemoryCache)return;const e=await Ou();if(!e)return;const t=await Pu();if(!t)return;const n=await t.match(e),r=null==n?void 0:n.headers.get("content-length"),o=r?parseInt(r):void 0;u.loadedMemorySnapshotSize=o,u.storeMemorySnapshotPending=!o}catch(e){yt("Failed find memory snapshot in the cache",e)}finally{u.loadedMemorySnapshotSize||d.memorySnapshotSkippedOrDone.promise_control.resolve()}}()}function zu(e){const t=rn();e.locateFile||(e.locateFile=e.__locateFile=e=>d.scriptDirectory+e),e.mainScriptUrlOrBlob=d.scriptUrl;const r=e.instantiateWasm,c=e.preInit?"function"==typeof e.preInit?[e.preInit]:e.preInit:[],p=e.preRun?"function"==typeof e.preRun?[e.preRun]:e.preRun:[],g=e.postRun?"function"==typeof e.postRun?[e.postRun]:e.postRun:[],b=e.onRuntimeInitialized?e.onRuntimeInitialized:()=>{};e.instantiateWasm=(e,t)=>function(e,t,r){const o=rn();if(r){const n=r(e,((e,n)=>{on(o,"mono.instantiateWasm"),u.afterInstantiateWasm.promise_control.resolve(),t(e,n)}));return n}return async function(e,t){var r;try{await d.afterConfigLoaded,gt("instantiate_wasm_module"),await u.beforePreInit.promise,n.addRunDependency("instantiate_wasm_module");const o=async function(){_&&(await d.simd()||v(!1,"This browser/engine doesn't support WASM SIMD. Please use a modern version. See also https://aka.ms/dotnet-wasm-features")),f&&(await d.exceptions()||v(!1,"This browser/engine doesn't support WASM exception handling. Please use a modern version. See also https://aka.ms/dotnet-wasm-features"))}();Bu(e);const s=await d.wasmDownloadPromise.promise;if(await o,await async function(e,t,n){e&&e.pendingDownloadInternal&&e.pendingDownloadInternal.response||v(!1,"Can't load dotnet.native.wasm");const r=await e.pendingDownloadInternal.response,o=r.headers&&r.headers.get?r.headers.get("Content-Type"):void 0;let s,c;if("function"==typeof WebAssembly.instantiateStreaming&&"application/wasm"===o){gt("instantiate_wasm_module streaming");const e=await WebAssembly.instantiateStreaming(r,t);s=e.instance,c=e.module}else{a&&"application/wasm"!==o&&yt('WebAssembly resource does not have the expected content type "application/wasm", so falling back to slower ArrayBuffer instantiation.');const e=await r.arrayBuffer();if(gt("instantiate_wasm_module buffered"),i)c=new WebAssembly.Module(e),s=new WebAssembly.Instance(c,t);else{const n=await WebAssembly.instantiate(e,t);s=n.instance,c=n.module}}n(s,c)}(s,e,t),s.pendingDownloadInternal=null,s.pendingDownload=null,s.buffer=null,s.moduleExports=null,gt("instantiate_wasm_module done"),u.loadedMemorySnapshotSize){try{const e=(null===(r=n.asm)||void 0===r?void 0:r.memory)||n.wasmMemory;e.grow(u.loadedMemorySnapshotSize-e.buffer.byteLength+65535>>>16),u.updateMemoryViews()}catch(e){yt("failed to resize memory for the snapshot",e),u.loadedMemorySnapshotSize=void 0}d.memorySnapshotSkippedOrDone.promise_control.resolve()}u.afterInstantiateWasm.promise_control.resolve()}catch(e){throw wt("instantiate_wasm_module() failed",e),d.mono_exit(1,e),e}n.removeRunDependency("instantiate_wasm_module")}(e,t),[]}(e,t,r),e.preInit=[()=>function(e){n.addRunDependency("mono_pre_init");const t=rn();try{Hu(!1),gt("preInit"),u.beforePreInit.promise_control.resolve(),e.forEach((e=>e()))}catch(e){throw wt("user preInint() failed",e),d.mono_exit(1,e),e}(async()=>{try{await async function(){gt("mono_wasm_pre_init_essential_async"),n.addRunDependency("mono_wasm_pre_init_essential_async"),function(e,t){const n=null==t?void 0:t.pthreadPoolSize;let r;null==n?r=4:("number"!=typeof n&&v(!1,"pthreadPoolSize must be a number"),r=n<0?4:n);for(let e=0;easync function(e){n.addRunDependency("mono_pre_run_async");try{await u.afterInstantiateWasm.promise,await u.afterPreInit.promise,gt("preRunAsync");const t=rn();e.map((e=>e())),on(t,"mono.preRun")}catch(e){throw wt("user callback preRun() failed",e),d.mono_exit(1,e),e}u.afterPreRun.promise_control.resolve(),n.removeRunDependency("mono_pre_run_async")}(p)],e.onRuntimeInitialized=()=>async function(e){try{await u.afterPreRun.promise,gt("onRuntimeInitialized"),u.mono_wasm_exit=xt.mono_wasm_exit,u.abort=e=>{throw d.is_exited()||xt.mono_wasm_abort(),e};const t=rn();if(u.beforeOnRuntimeInitialized.promise_control.resolve(),await async function(){await u.allAssetsInMemory.promise,u.config.assets&&(d.actual_downloaded_assets_count!=d.expected_downloaded_assets_count&&v(!1,`Expected ${d.expected_downloaded_assets_count} assets to be downloaded, but only finished ${d.actual_downloaded_assets_count}`),d.actual_instantiated_assets_count!=d.expected_instantiated_assets_count&&v(!1,`Expected ${d.expected_instantiated_assets_count} assets to be in memory, but only instantiated ${d.actual_instantiated_assets_count}`),d._loaded_files.forEach((e=>d.loadedFiles.push(e.url))),gt("all assets are loaded in wasm memory"))}(),$&&!u.config.startupMemoryCache&&await Wu(),await async function(){const e=rn();if(u.loadedMemorySnapshotSize){const e=await async function(){try{const e=await Ou();if(!e)return;const t=await Pu();if(!t)return;const n=await t.match(e);if(!n)return;return n.arrayBuffer()}catch(e){return void yt("Failed load memory snapshot from the cache",e)}}(),t=xe();return e.byteLength!==t.byteLength&&v(!1,"Loaded memory is not the expected size"),t.set(new Uint8Array(e),0),void gt("Loaded WASM linear memory from browser cache")}for(const e in u.config.environmentVariables){const t=u.config.environmentVariables[e];if("string"!=typeof t)throw new Error(`Expected environment variable '${e}' to be a string but it was ${typeof t}: '${t}'`);qu(e,t)}u.config.startupMemoryCache&&xt.mono_jiterp_update_jit_call_dispatcher(0),u.config.runtimeOptions&&function(e){if(!Array.isArray(e))throw new Error("Expected runtimeOptions to be an array of strings");const t=n._malloc(4*e.length);let r=0;for(let o=0;oaot; 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;Rt.mono_wasm_profiler_init_aot(t)}(u.config.aotProfilerOptions),u.config.browserProfilerOptions&&(u.config.browserProfilerOptions,h||v(!1,"Browser profiler is not enabled, please use browser; in your project file."),Rt.mono_wasm_profiler_init_browser("browser:")),Gu("unused",u.config.debugLevel),u.config.startupMemoryCache&&(xt.mono_jiterp_update_jit_call_dispatcher(-1),await async function(e){try{const t=await Ou();if(!t)return;const n=await Pu();if(!n)return;const r=$?new Uint8Array(e).slice(0):e,o=new Response(r,{headers:{"content-type":"wasm-memory","content-length":e.byteLength.toString()}});await n.put(t,o),async function(e){try{const t=await Pu();if(!t)return;const n=await t.keys();for(const r of n)r.url&&r.url!==e&&r.url.startsWith(Mu)&&await t.delete(r)}catch(e){return}}(t)}catch(e){return void yt("Failed to store memory snapshot in the cache",e)}}(xe().buffer),u.storeMemorySnapshotPending=!1),on(e,"mono.memorySnapshot")}(),u.config.exitAfterSnapshot){const e=u.ExitStatus?new u.ExitStatus(0):new Error("Snapshot taken, exiting because exitAfterSnapshot was set.");return e.silent=!0,void d.mono_exit(0,e)}$&&u.config.startupMemoryCache&&await Wu(),Ju(),u.runtimeReady=!0,o&&!s&&n.runtimeKeepalivePush(),$&&(u.javaScriptExports.install_synchronization_context(),u.jsSynchronizationContextInstalled=!0),u.mono_wasm_runtime_is_ready||mono_wasm_runtime_ready(),0!==d.config.debugLevel&&d.config.cacheBootResources&&d.logDownloadStatsToConsole(),setTimeout((()=>{d.purgeUnusedCacheEntriesAsync()}),d.config.cachedResourcesPurgeDelay);try{e()}catch(e){throw wt("user callback onRuntimeInitialized() failed",e),e}await async function(){gt("mono_wasm_after_user_runtime_initialized");try{if(!n.disableDotnet6Compatibility&&n.exports){const e=globalThis;for(let t=0;tasync function(e){try{await u.afterOnRuntimeInitialized.promise,gt("postRunAsync");const t=rn();n.FS_createPath("/","usr",!0,!0),n.FS_createPath("/","usr/share",!0,!0),e.map((e=>e())),on(t,"mono.postRun")}catch(e){throw wt("user callback posRun() failed",e),d.mono_exit(1,e),e}u.afterPostRun.promise_control.resolve()}(g)],e.ready.then((async()=>{await u.afterPostRun.promise,on(t,"mono.emscriptenStartup"),u.dotnetReady.promise_control.resolve(l)})).catch((e=>{u.dotnetReady.promise_control.reject(e)})),e.ready=u.dotnetReady.promise,e.onAbort||(e.onAbort=e=>{d.mono_exit(1,e)}),e.onExit||(e.onExit=e=>{d.mono_exit(e,null)})}async function Vu(e,t){await d.afterConfigLoaded.promise,Bu(e),t(new WebAssembly.Instance(n.wasmModule,e),void 0),n.wasmModule=null}async function Wu(){ht(`0x${(void 0===mr&&(mr=n._emscripten_main_runtime_thread_id()),mr).toString(16)}-main`),await async function(){const e=qo.getUnusedWorkerPool();if(e.length>0){const t=e.map(qo.loadWasmModuleToWorker);await Promise.all(t)}}(),await Uc()}function Hu(e){var t,o,s;e||n.addRunDependency("mono_wasm_pre_init_essential"),gt("mono_wasm_pre_init_essential"),d.gitHash!==u.gitHash&&yt("The version of dotnet.runtime.js is different from the version of dotnet.js!"),d.gitHash!==u.moduleGitHash&&yt("The version of dotnet.native.js is different from the version of dotnet.js!"),function(){const e=[...It,...p?[]:Ut];for(const t of e){const e=At,[n,r,o,s,a]=t,i="function"==typeof n;if(!0===n||i)e[r]=function(...t){!i||!n()||v(!1,`cwrap ${r} should not be called when binding was skipped`);const c=$t(r,o,s,a);return e[r]=c,c(...t)};else{const t=$t(r,o,s,a);e[r]=t}}}(),t=r,Object.assign(t,{mono_wasm_exit:xt.mono_wasm_exit,mono_wasm_enable_on_demand_gc:xt.mono_wasm_enable_on_demand_gc,mono_wasm_profiler_init_aot:Rt.mono_wasm_profiler_init_aot,mono_wasm_profiler_init_browser:Rt.mono_wasm_profiler_init_browser,mono_wasm_exec_regression:xt.mono_wasm_exec_regression}),p||(s=Hl,Object.assign(s,{mono_wasm_add_assembly:jt.mono_wasm_add_assembly}),o=ql,Object.assign(o,{mono_obj_array_new:jt.mono_wasm_obj_array_new,mono_obj_array_set:jt.mono_wasm_obj_array_set,mono_obj_array_new_ref:jt.mono_wasm_obj_array_new_ref,mono_obj_array_set_ref:jt.mono_wasm_obj_array_set_ref})),e||n.removeRunDependency("mono_wasm_pre_init_essential")}function qu(e,t){xt.mono_wasm_setenv(e,t)}function Gu(e,t){gt("mono_wasm_load_runtime");try{const n=rn();null==t&&(t=0,u.config.debugLevel&&(t=0+t)),xt.mono_wasm_load_runtime(e||"unused",t),on(n,"mono.loadRuntime")}catch(e){throw wt("mono_wasm_load_runtime () failed",e),d.mono_exit(1,e),e}}function Ju(){if(!u.mono_wasm_bindings_is_ready){gt("bindings_init"),u.mono_wasm_bindings_is_ready=!0;try{const e=rn();Ye||("undefined"!=typeof TextDecoder&&(Ze=new TextDecoder("utf-16le"),Qe=new TextDecoder("utf-8",{fatal:!1}),et=new TextDecoder("utf-8"),tt=new TextEncoder),Ye=n._malloc(12)),function(){const e="System.Runtime.InteropServices.JavaScript";if(u.runtime_interop_module=xt.mono_wasm_assembly_load(e),!u.runtime_interop_module)throw"Can't find bindings module assembly: "+e;if(u.runtime_interop_namespace="System.Runtime.InteropServices.JavaScript",u.runtime_interop_exports_classname="JavaScriptExports",u.runtime_interop_exports_class=xt.mono_wasm_assembly_find_class(u.runtime_interop_module,u.runtime_interop_namespace,u.runtime_interop_exports_classname),!u.runtime_interop_exports_class)throw"Can't find "+u.runtime_interop_namespace+"."+u.runtime_interop_exports_classname+" class";const t=ts("InstallSynchronizationContext");t||v(!1,"Can't find InstallSynchronizationContext method");const r=ts("CallEntrypoint");r||v(!1,"Can't find CallEntrypoint method");const o=ts("ReleaseJSOwnedObjectByGCHandle");o||v(!1,"Can't find ReleaseJSOwnedObjectByGCHandle method");const s=ts("CreateTaskCallback");s||v(!1,"Can't find CreateTaskCallback method");const a=ts("CompleteTask");a||v(!1,"Can't find CompleteTask method");const i=ts("CallDelegate");i||v(!1,"Can't find CallDelegate method");const c=ts("GetManagedStackTrace");c||v(!1,"Can't find GetManagedStackTrace method");const l=ts("LoadSatelliteAssembly");l||v(!1,"Can't find LoadSatelliteAssembly method");const p=ts("LoadLazyAssembly");p||v(!1,"Can't find LoadLazyAssembly method"),u.javaScriptExports.call_entry_point=async(e,t)=>{d.assert_runtime_running();const o=n.stackSave();try{n.runtimeKeepalivePush();const o=fn(4),s=mn(o,1),a=mn(o,2),i=mn(o,3);xo(a,e),t&&0==t.length&&(t=void 0),zo(i,t,L.String),zr(r,o);let c=tr(s,0,qn);return null==c&&(c=Promise.resolve(0)),c[eo]=!0,await c}finally{n.runtimeKeepalivePop(),n.stackRestore(o)}},u.javaScriptExports.load_satellite_assembly=e=>{const t=n.stackSave();try{const t=fn(3),n=mn(t,2);Tn(n,L.Array),Fo(n,e,L.Byte),zr(l,t)}finally{n.stackRestore(t)}},u.javaScriptExports.load_lazy_assembly=(e,t)=>{const r=n.stackSave();try{const n=fn(4),r=mn(n,2),o=mn(n,3);Tn(r,L.Array),Tn(o,L.Array),Fo(r,e,L.Byte),Fo(o,t,L.Byte),zr(p,n)}finally{n.stackRestore(r)}},u.javaScriptExports.release_js_owned_object_by_gc_handle=e=>{e||v(!1,"Must be valid gc_handle"),d.assert_runtime_running();const t=n.stackSave();try{const t=fn(3),n=mn(t,2);Tn(n,L.Object),$n(n,e),zr(o,t)}finally{n.stackRestore(t)}},u.javaScriptExports.create_task_callback=()=>{const e=n.stackSave();d.assert_runtime_running();try{const e=fn(2);return zr(s,e),Ln(mn(e,1))}finally{n.stackRestore(e)}},u.javaScriptExports.complete_task=(e,t,r,o)=>{d.assert_runtime_running();const s=n.stackSave();try{const n=fn(5),s=mn(n,2);Tn(s,L.Object),$n(s,e);const i=mn(n,3);if(t)Mo(i,t);else{Tn(i,L.None);const e=mn(n,4);o||v(!1,"res_converter missing"),o(e,r)}zr(a,n)}finally{n.stackRestore(s)}},u.javaScriptExports.call_delegate=(e,t,r,o,s,a,c,l)=>{d.assert_runtime_running();const u=n.stackSave();try{const n=fn(6),u=mn(n,2);if(Tn(u,L.Object),$n(u,e),a&&a(mn(n,3),t),c&&c(mn(n,4),r),l&&l(mn(n,5),o),zr(i,n),s)return s(mn(n,1))}finally{n.stackRestore(u)}},u.javaScriptExports.get_managed_stack_trace=e=>{d.assert_runtime_running();const t=n.stackSave();try{const t=fn(3),n=mn(t,2);return Tn(n,L.Exception),$n(n,e),zr(c,t),nr(mn(t,1))}finally{n.stackRestore(t)}},t&&(u.javaScriptExports.install_synchronization_context=()=>{const e=n.stackSave();try{const e=fn(2);zr(t,e)}finally{n.stackRestore(e)}})}(),!t||p||c||function(){if(Object.prototype[Jl]=0,Array.prototype[Jl]=1,ArrayBuffer.prototype[Jl]=2,DataView.prototype[Jl]=3,Function.prototype[Jl]=4,Uint8Array.prototype[Jl]=11,Gl._unbox_buffer_size=65536,Gl._box_buffer=n._malloc(65536),Gl._unbox_buffer=n._malloc(Gl._unbox_buffer_size),Gl._class_int32=Fr("System","Int32"),Gl._class_uint32=Fr("System","UInt32"),Gl._class_double=Fr("System","Double"),Gl._class_boolean=Fr("System","Boolean"),Gl._null_root=We(),function(){const e=ou;e.set("m",{steps:[{}],size:0}),e.set("s",{steps:[{convert_root:dt.bind(n)}],size:0,needs_root:!0}),e.set("S",{steps:[{convert_root:pt.bind(n)}],size:0,needs_root:!0}),e.set("o",{steps:[{convert_root:Zl.bind(n)}],size:0,needs_root:!0}),e.set("u",{steps:[{convert_root:Yl.bind(n,!1)}],size:0,needs_root:!0}),e.set("R",{steps:[{convert_root:Zl.bind(n),byref:!0}],size:0,needs_root:!0}),e.set("j",{steps:[{convert:nu.bind(n),indirect:"i32"}],size:8}),e.set("b",{steps:[{indirect:"bool"}],size:8}),e.set("i",{steps:[{indirect:"i32"}],size:8}),e.set("I",{steps:[{indirect:"u32"}],size:8}),e.set("l",{steps:[{indirect:"i52"}],size:8}),e.set("L",{steps:[{indirect:"u52"}],size:8}),e.set("f",{steps:[{indirect:"float"}],size:8}),e.set("d",{steps:[{indirect:"double"}],size:8})}(),Gl.runtime_legacy_exports_classname="LegacyExports",Gl.runtime_legacy_exports_class=xt.mono_wasm_assembly_find_class(u.runtime_interop_module,u.runtime_interop_namespace,Gl.runtime_legacy_exports_classname),!Gl.runtime_legacy_exports_class)throw"Can't find "+u.runtime_interop_namespace+"."+Gl.runtime_legacy_exports_classname+" class";for(const e of _u){const t=fu,[n,r,o,s]=e;if(n)t[r]=function(...e){const n=mu(o,s);return t[r]=n,n(...e)};else{const e=mu(o,s);t[r]=e}}}(),0==cn.size&&(cn.set(L.Array,ar),cn.set(L.Span,cr),cn.set(L.ArraySegment,lr),cn.set(L.Boolean,zn),cn.set(L.Byte,Vn),cn.set(L.Char,Wn),cn.set(L.Int16,Hn),cn.set(L.Int32,qn),cn.set(L.Int52,Gn),cn.set(L.BigInt64,Jn),cn.set(L.Single,Xn),cn.set(L.IntPtr,Kn),cn.set(L.Double,Yn),cn.set(L.String,nr),cn.set(L.Exception,rr),cn.set(L.JSException,rr),cn.set(L.JSObject,or),cn.set(L.Object,sr),cn.set(L.DateTime,Qn),cn.set(L.DateTimeOffset,Qn),cn.set(L.Task,tr),cn.set(L.Action,er),cn.set(L.Function,er),cn.set(L.None,Zn),cn.set(L.Void,Zn),cn.set(L.Discard,Zn)),0==ln.size&&(ln.set(L.Array,Fo),ln.set(L.Span,Vo),ln.set(L.ArraySegment,Wo),ln.set(L.Boolean,wo),ln.set(L.Byte,vo),ln.set(L.Char,ko),ln.set(L.Int16,So),ln.set(L.Int32,Eo),ln.set(L.Int52,To),ln.set(L.BigInt64,Uo),ln.set(L.Double,Io),ln.set(L.Single,Ao),ln.set(L.IntPtr,xo),ln.set(L.DateTime,jo),ln.set(L.DateTimeOffset,Co),ln.set(L.String,Ro),ln.set(L.Exception,Mo),ln.set(L.JSException,Mo),ln.set(L.JSObject,Po),ln.set(L.Object,Oo),ln.set(L.Task,Bo),ln.set(L.Action,Do),ln.set(L.Function,Do),ln.set(L.None,$o),ln.set(L.Discard,$o),ln.set(L.Void,$o)),u._i52_error_scratch_buffer=n._malloc(4),on(e,"mono.bindingsInit")}catch(e){throw wt("Error in bindings_init",e),e}}}async function Xu(e){fr=new globalThis.EventTarget,fr.addEventListener(ur,(e=>{gt("pthread created 0x"+e.pthread_self.pthreadId.toString(16))})),e.preInit=[()=>async function(){gt("worker initializing essential C exports and APIs");const e=rn();try{gt("preInitWorker"),u.beforePreInit.promise_control.resolve(),Hu(!0),await es(),u.afterPreInit.promise_control.resolve(),on(e,"mono.preInitWorker")}catch(e){throw wt("user preInitWorker() failed",e),d.mono_exit(1,e),e}}()],e.instantiateWasm=Vu,await u.afterPreInit.promise}function Yu(t){const r=n,o=t,s=globalThis;p||function(e){Hl=e.mono,ql=e.binding}(o),p||(Object.assign(o.mono,{mono_wasm_setenv:qu,mono_wasm_load_bytes_into_heap:ke,mono_wasm_load_icu_data:Gs,mono_wasm_runtime_ready:mono_wasm_runtime_ready,mono_wasm_new_root_buffer:ze,mono_wasm_new_root:We,mono_wasm_new_external_root:Ve,mono_wasm_release_roots:He,mono_run_main:Vl,mono_run_main_and_exit:zl,mono_wasm_add_assembly:null,mono_wasm_load_runtime:Gu,config:u.config,loaded_files:[],setB32:W,setI8:Y,setI16:K,setI32:Q,setI52:te,setU52:ne,setI64Big:re,setU8:H,setU16:q,setU32:X,setF32:oe,setF64:se,getB32:ae,getI8:_e,getI16:fe,getI32:me,getI52:he,getU52:ge,getI64Big:be,getU8:ie,getU16:ce,getU32:le,getF32:ye,getF64:we}),Object.assign(o.binding,{bind_static_method:xu,call_assembly_entry_point:ju,mono_obj_array_new:null,mono_obj_array_set:null,js_string_to_mono_string:gu,js_typed_array_to_array:tu,mono_array_to_js_array:Su,js_to_mono_obj:Kl,conv_string:Uu,unbox_mono_obj:wu,mono_obj_array_new_ref:null,mono_obj_array_set_ref:null,js_string_to_mono_string_root:dt,js_typed_array_to_array_root:eu,js_to_mono_obj_root:Zl,conv_string_root:ut,unbox_mono_obj_root:ku,mono_array_root_to_js_array:Eu}),Object.assign(o.internal,{stringToMonoStringIntern:bu,mono_method_resolve:uu})),Object.assign(o.internal,{mono_wasm_exit:e=>{n.err("early exit "+e)},forceDisposeProxies:lo,logging:void 0,mono_wasm_stringify_as_error_with_stack:Et,mono_wasm_get_loaded_files:Ys,mono_wasm_send_dbg_command_with_parms:Ht,mono_wasm_send_dbg_command:qt,mono_wasm_get_dbg_command_info:Gt,mono_wasm_get_details:en,mono_wasm_release_object:nn,mono_wasm_call_function_on:Qt,mono_wasm_debugger_resume:Jt,mono_wasm_detach_debugger:Xt,mono_wasm_raise_debug_event:Kt,mono_wasm_change_debugger_log_level:Yt,mono_wasm_debugger_attached:Zt,mono_wasm_runtime_is_ready:u.mono_wasm_runtime_is_ready,mono_wasm_get_func_id_to_name_mappings:Tt,get_property:Tr,set_property:Er,has_property:Ur,get_typeof_property:Ir,get_global_this:Ar,get_dotnet_instance:()=>l,dynamic_import:Cr,mono_wasm_cancel_promise:fo,ws_wasm_create:Ps,ws_wasm_open:Os,ws_wasm_send:Fs,ws_wasm_receive:zs,ws_wasm_close:Vs,ws_wasm_abort:Ws,ws_get_state:Ms,http_wasm_supports_streaming_response:rs,http_wasm_create_abort_controler:os,http_wasm_abort_request:ss,http_wasm_abort_response:as,http_wasm_fetch:cs,http_wasm_fetch_bytes:is,http_wasm_get_response_header_names:us,http_wasm_get_response_header_values:ds,http_wasm_get_response_bytes:_s,http_wasm_get_response_length:ps,http_wasm_get_streamed_response_bytes:fs,jiterpreter_dump_stats:_c,jiterpreter_apply_options:Ra,jiterpreter_get_options:La,mono_wasm_gc_lock:mc,mono_wasm_gc_unlock:hc,loadLazyAssembly:gc,loadSatelliteAssemblies:bc}),Object.assign(u,{stringify_as_error_with_stack:Et,instantiate_symbols_asset:Xs,instantiate_asset:Js,jiterpreter_dump_stats:_c,forceDisposeProxies:lo});const a={runMain:Vl,runMainAndExit:zl,setEnvironmentVariable:qu,getAssemblyExports:Wr,setModuleImports:Sr,getConfig:()=>u.config,invokeLibraryInitializers:d.invokeLibraryInitializers,setHeapB32:W,setHeapU8:H,setHeapU16:q,setHeapU32:X,setHeapI8:Y,setHeapI16:K,setHeapI32:Q,setHeapI52:te,setHeapU52:ne,setHeapI64Big:re,setHeapF32:oe,setHeapF64:se,getHeapB32:ae,getHeapU8:ie,getHeapU16:ce,getHeapU32:le,getHeapI8:_e,getHeapI16:fe,getHeapI32:me,getHeapI52:he,getHeapU52:ge,getHeapI64Big:be,getHeapF32:ye,getHeapF64:we,localHeapViewU8:xe,localHeapViewU16:je,localHeapViewU32:Ce,localHeapViewI8:Te,localHeapViewI16:Ue,localHeapViewI32:Ie,localHeapViewI64Big:Ae,localHeapViewF32:Re,localHeapViewF64:Le};if(Object.assign(l,{INTERNAL:o.internal,Module:r,runtimeBuildInfo:{productVersion:e,gitHash:u.gitHash,buildConfiguration:"Release"},...a}),p||Object.assign(l,{MONO:o.mono,BINDING:o.binding}),void 0===r.disableDotnet6Compatibility&&(r.disableDotnet6Compatibility=!0),!r.disableDotnet6Compatibility){Object.assign(r,l),p||(r.mono_bind_static_method=(e,t)=>(yt("Module.mono_bind_static_method is obsolete, please use [JSExportAttribute] interop instead"),xu(e,t)));const e=(e,t)=>{if(void 0!==s[e])return;let n;Object.defineProperty(globalThis,e,{get:()=>{if(C(n)){const r=(new Error).stack,o=r?r.substr(r.indexOf("\n",8)+1):"";yt(`global ${e} is obsolete, please use Module.${e} instead ${o}`),n=t()}return n}})};s.MONO=o.mono,s.BINDING=o.binding,s.INTERNAL=o.internal,s.Module=r,e("cwrap",(()=>r.cwrap)),e("addRunDependency",(()=>r.addRunDependency)),e("removeRunDependency",(()=>r.removeRunDependency))}let i;return s.getDotnetRuntime?i=s.getDotnetRuntime.__list:(s.getDotnetRuntime=e=>s.getDotnetRuntime.__list.getRuntime(e),s.getDotnetRuntime.__list=i=new Ku),i.registerRuntime(l),l}class Ku{constructor(){this.list={}}registerRuntime(e){return e.runtimeId=Object.keys(this.list).length,this.list[e.runtimeId]=Nr(e),e.runtimeId}getRuntime(e){const t=this.list[e];return t?t.deref():void 0}}export{zu as configureEmscriptenStartup,Fu as configureRuntimeStartup,Xu as configureWorkerStartup,Yu as initializeExports,Qo as initializeReplacements,b as passEmscriptenInternals,y as setRuntimeGlobals}; -//# sourceMappingURL=dotnet.runtime.js.map diff --git a/packages/dotnet-runtime/src/vendor/lib/Microsoft.CSharp.dll b/packages/dotnet-runtime/src/vendor/lib/Microsoft.CSharp.dll index 9e02683..98541c2 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/Microsoft.CSharp.dll and b/packages/dotnet-runtime/src/vendor/lib/Microsoft.CSharp.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/Microsoft.VisualBasic.Core.dll b/packages/dotnet-runtime/src/vendor/lib/Microsoft.VisualBasic.Core.dll index 208ff48..62fe091 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/Microsoft.VisualBasic.Core.dll and b/packages/dotnet-runtime/src/vendor/lib/Microsoft.VisualBasic.Core.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/Microsoft.VisualBasic.dll b/packages/dotnet-runtime/src/vendor/lib/Microsoft.VisualBasic.dll index 5d3e3e0..7de2871 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/Microsoft.VisualBasic.dll and b/packages/dotnet-runtime/src/vendor/lib/Microsoft.VisualBasic.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/Microsoft.Win32.Primitives.dll b/packages/dotnet-runtime/src/vendor/lib/Microsoft.Win32.Primitives.dll index 9d7da60..d994bb1 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/Microsoft.Win32.Primitives.dll and b/packages/dotnet-runtime/src/vendor/lib/Microsoft.Win32.Primitives.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/Microsoft.Win32.Registry.dll b/packages/dotnet-runtime/src/vendor/lib/Microsoft.Win32.Registry.dll index 19e4fae..6a9f3ba 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/Microsoft.Win32.Registry.dll and b/packages/dotnet-runtime/src/vendor/lib/Microsoft.Win32.Registry.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.AppContext.dll b/packages/dotnet-runtime/src/vendor/lib/System.AppContext.dll index 3a9d728..dc275bb 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.AppContext.dll and b/packages/dotnet-runtime/src/vendor/lib/System.AppContext.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Buffers.dll b/packages/dotnet-runtime/src/vendor/lib/System.Buffers.dll index d44982b..5dec56c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Buffers.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Buffers.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Collections.Concurrent.dll b/packages/dotnet-runtime/src/vendor/lib/System.Collections.Concurrent.dll index 02438a4..b4ba53f 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Collections.Concurrent.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Collections.Concurrent.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Collections.Immutable.dll b/packages/dotnet-runtime/src/vendor/lib/System.Collections.Immutable.dll index 35a594b..20a2267 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Collections.Immutable.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Collections.Immutable.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Collections.NonGeneric.dll b/packages/dotnet-runtime/src/vendor/lib/System.Collections.NonGeneric.dll index 5003caf..3683381 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Collections.NonGeneric.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Collections.NonGeneric.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Collections.Specialized.dll b/packages/dotnet-runtime/src/vendor/lib/System.Collections.Specialized.dll index 7914ebe..abcb126 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Collections.Specialized.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Collections.Specialized.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Collections.dll b/packages/dotnet-runtime/src/vendor/lib/System.Collections.dll index ff2cf25..2c07ce0 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Collections.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Collections.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.Annotations.dll b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.Annotations.dll index 5562e8e..a0c4239 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.Annotations.dll and b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.Annotations.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.DataAnnotations.dll b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.DataAnnotations.dll index 6951908..f7c7fba 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.DataAnnotations.dll and b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.DataAnnotations.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.EventBasedAsync.dll b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.EventBasedAsync.dll index 6e16820..89e9c70 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.EventBasedAsync.dll and b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.EventBasedAsync.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.Primitives.dll b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.Primitives.dll index baf040a..41910a4 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.Primitives.dll and b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.Primitives.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.TypeConverter.dll b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.TypeConverter.dll index 387c3c8..792f2df 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.TypeConverter.dll and b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.TypeConverter.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.dll b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.dll index f8f250f..0583acd 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.dll and b/packages/dotnet-runtime/src/vendor/lib/System.ComponentModel.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Configuration.dll b/packages/dotnet-runtime/src/vendor/lib/System.Configuration.dll index f05cbaa..0f7146f 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Configuration.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Configuration.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Console.dll b/packages/dotnet-runtime/src/vendor/lib/System.Console.dll index 00f4297..dd51ea7 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Console.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Console.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Core.dll b/packages/dotnet-runtime/src/vendor/lib/System.Core.dll index 2db77fc..0d5d8a9 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Core.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Core.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Data.Common.dll b/packages/dotnet-runtime/src/vendor/lib/System.Data.Common.dll index f059912..baaaf0d 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Data.Common.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Data.Common.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Data.DataSetExtensions.dll b/packages/dotnet-runtime/src/vendor/lib/System.Data.DataSetExtensions.dll index ea04286..bb99e60 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Data.DataSetExtensions.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Data.DataSetExtensions.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Data.dll b/packages/dotnet-runtime/src/vendor/lib/System.Data.dll index 5600a57..339b522 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Data.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Data.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Contracts.dll b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Contracts.dll index aba959c..2c0bf0b 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Contracts.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Contracts.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Debug.dll b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Debug.dll index 06c2fe1..d590ab5 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Debug.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Debug.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.DiagnosticSource.dll b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.DiagnosticSource.dll index 1185f94..88b68f4 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.DiagnosticSource.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.DiagnosticSource.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.FileVersionInfo.dll b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.FileVersionInfo.dll index 5ba5e1b..3541bfd 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.FileVersionInfo.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.FileVersionInfo.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Process.dll b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Process.dll index bbd83ef..4f4e621 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Process.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Process.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.StackTrace.dll b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.StackTrace.dll index 950adf7..2ae54ad 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.StackTrace.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.StackTrace.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.TextWriterTraceListener.dll b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.TextWriterTraceListener.dll index 60e4d9b..758dbcf 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.TextWriterTraceListener.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.TextWriterTraceListener.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Tools.dll b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Tools.dll index 7ed637d..62d56f3 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Tools.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Tools.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.TraceSource.dll b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.TraceSource.dll index 24e71c5..4e6621d 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.TraceSource.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.TraceSource.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Tracing.dll b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Tracing.dll index 0b13aa2..1621442 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Tracing.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Diagnostics.Tracing.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Drawing.Primitives.dll b/packages/dotnet-runtime/src/vendor/lib/System.Drawing.Primitives.dll index 20c3c42..1b46615 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Drawing.Primitives.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Drawing.Primitives.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Drawing.dll b/packages/dotnet-runtime/src/vendor/lib/System.Drawing.dll index 22e2315..941deaa 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Drawing.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Drawing.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Dynamic.Runtime.dll b/packages/dotnet-runtime/src/vendor/lib/System.Dynamic.Runtime.dll index 8c677e0..a34d814 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Dynamic.Runtime.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Dynamic.Runtime.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Formats.Asn1.dll b/packages/dotnet-runtime/src/vendor/lib/System.Formats.Asn1.dll index 1c80fa9..2767477 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Formats.Asn1.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Formats.Asn1.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Formats.Tar.dll b/packages/dotnet-runtime/src/vendor/lib/System.Formats.Tar.dll index 003d02e..21d4ccc 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Formats.Tar.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Formats.Tar.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Globalization.Calendars.dll b/packages/dotnet-runtime/src/vendor/lib/System.Globalization.Calendars.dll index e896306..2250423 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Globalization.Calendars.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Globalization.Calendars.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Globalization.Extensions.dll b/packages/dotnet-runtime/src/vendor/lib/System.Globalization.Extensions.dll index bfc44e2..22c4143 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Globalization.Extensions.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Globalization.Extensions.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Globalization.dll b/packages/dotnet-runtime/src/vendor/lib/System.Globalization.dll index 510ee4f..5470c84 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Globalization.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Globalization.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.Brotli.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.Brotli.dll index 4e00fac..671a493 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.Brotli.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.Brotli.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.FileSystem.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.FileSystem.dll index cf751b6..e6bb4f7 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.FileSystem.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.FileSystem.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.ZipFile.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.ZipFile.dll index 168b8cf..023919c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.ZipFile.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.ZipFile.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.dll index 7a3d763..66732e1 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.Compression.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.AccessControl.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.AccessControl.dll index 7f4e06c..7956736 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.AccessControl.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.AccessControl.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.DriveInfo.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.DriveInfo.dll index 99a0130..ca620a7 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.DriveInfo.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.DriveInfo.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.Primitives.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.Primitives.dll index 6e38b2d..8af27f9 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.Primitives.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.Primitives.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.Watcher.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.Watcher.dll index b3ed40f..fa782e0 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.Watcher.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.Watcher.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.dll index cf04c0b..8cefd20 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.FileSystem.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.IsolatedStorage.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.IsolatedStorage.dll index e332571..66bfae3 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.IsolatedStorage.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.IsolatedStorage.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.MemoryMappedFiles.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.MemoryMappedFiles.dll index 97561bb..8d749b8 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.MemoryMappedFiles.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.MemoryMappedFiles.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.Pipes.AccessControl.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.Pipes.AccessControl.dll index 1553cc3..5bab3d3 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.Pipes.AccessControl.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.Pipes.AccessControl.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.Pipes.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.Pipes.dll index 5c9be26..92f1186 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.Pipes.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.Pipes.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.UnmanagedMemoryStream.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.UnmanagedMemoryStream.dll index 2bd4a03..db7b6db 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.UnmanagedMemoryStream.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.UnmanagedMemoryStream.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.IO.dll b/packages/dotnet-runtime/src/vendor/lib/System.IO.dll index 5b354b8..03a63df 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.IO.dll and b/packages/dotnet-runtime/src/vendor/lib/System.IO.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Linq.Expressions.dll b/packages/dotnet-runtime/src/vendor/lib/System.Linq.Expressions.dll index 2312a0d..62bbee3 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Linq.Expressions.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Linq.Expressions.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Linq.Parallel.dll b/packages/dotnet-runtime/src/vendor/lib/System.Linq.Parallel.dll index d95c2e1..afd36cd 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Linq.Parallel.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Linq.Parallel.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Linq.Queryable.dll b/packages/dotnet-runtime/src/vendor/lib/System.Linq.Queryable.dll index 4a0a18a..5b10fdd 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Linq.Queryable.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Linq.Queryable.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Linq.dll b/packages/dotnet-runtime/src/vendor/lib/System.Linq.dll index dac1cde..90bbf9b 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Linq.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Linq.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Memory.dll b/packages/dotnet-runtime/src/vendor/lib/System.Memory.dll index e215346..20fabd2 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Memory.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Memory.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.Http.Json.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.Http.Json.dll index 6d41541..f57018f 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.Http.Json.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.Http.Json.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.Http.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.Http.dll index 76476b4..26d03eb 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.Http.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.Http.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.HttpListener.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.HttpListener.dll index b34bebf..d93e967 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.HttpListener.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.HttpListener.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.Mail.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.Mail.dll index a365352..4a03b9b 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.Mail.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.Mail.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.NameResolution.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.NameResolution.dll index 57c0ed5..fc66ce3 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.NameResolution.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.NameResolution.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.NetworkInformation.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.NetworkInformation.dll index a61a7fe..c51781a 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.NetworkInformation.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.NetworkInformation.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.Ping.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.Ping.dll index 179fe2c..663ca2a 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.Ping.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.Ping.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.Primitives.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.Primitives.dll index 04c1af6..fbeca09 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.Primitives.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.Primitives.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.Quic.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.Quic.dll index ac403db..0036fc9 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.Quic.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.Quic.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.Requests.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.Requests.dll index 527fa43..5a81457 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.Requests.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.Requests.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.Security.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.Security.dll index 83d7667..6647bd5 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.Security.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.Security.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.ServicePoint.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.ServicePoint.dll index 6ff227c..5e98f2c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.ServicePoint.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.ServicePoint.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.Sockets.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.Sockets.dll index 9ac1718..ebbcde0 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.Sockets.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.Sockets.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.WebClient.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.WebClient.dll index b621444..a9f6f1b 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.WebClient.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.WebClient.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.WebHeaderCollection.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.WebHeaderCollection.dll index a643330..43ead10 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.WebHeaderCollection.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.WebHeaderCollection.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.WebProxy.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.WebProxy.dll index 80bc59b..6b480de 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.WebProxy.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.WebProxy.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.WebSockets.Client.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.WebSockets.Client.dll index c037e37..1b7834c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.WebSockets.Client.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.WebSockets.Client.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.WebSockets.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.WebSockets.dll index 066cd49..b7b8e6a 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.WebSockets.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.WebSockets.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Net.dll b/packages/dotnet-runtime/src/vendor/lib/System.Net.dll index d7131ba..a405b94 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Net.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Net.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Numerics.Vectors.dll b/packages/dotnet-runtime/src/vendor/lib/System.Numerics.Vectors.dll index 0302d3a..e2cb64e 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Numerics.Vectors.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Numerics.Vectors.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Numerics.dll b/packages/dotnet-runtime/src/vendor/lib/System.Numerics.dll index 3a68c9e..c825fb7 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Numerics.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Numerics.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.ObjectModel.dll b/packages/dotnet-runtime/src/vendor/lib/System.ObjectModel.dll index c94f276..48d67c2 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.ObjectModel.dll and b/packages/dotnet-runtime/src/vendor/lib/System.ObjectModel.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Private.CoreLib.dll b/packages/dotnet-runtime/src/vendor/lib/System.Private.CoreLib.dll index 95d9516..f77e113 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Private.CoreLib.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Private.CoreLib.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Private.DataContractSerialization.dll b/packages/dotnet-runtime/src/vendor/lib/System.Private.DataContractSerialization.dll index e9dd6c5..bd65a57 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Private.DataContractSerialization.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Private.DataContractSerialization.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Private.Uri.dll b/packages/dotnet-runtime/src/vendor/lib/System.Private.Uri.dll index 15641ef..1bb1c8a 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Private.Uri.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Private.Uri.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Private.Xml.Linq.dll b/packages/dotnet-runtime/src/vendor/lib/System.Private.Xml.Linq.dll index b483de8..351e5fd 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Private.Xml.Linq.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Private.Xml.Linq.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Private.Xml.dll b/packages/dotnet-runtime/src/vendor/lib/System.Private.Xml.dll index ffcfef6..3b62f8a 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Private.Xml.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Private.Xml.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.DispatchProxy.dll b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.DispatchProxy.dll index 0c489be..4e55205 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.DispatchProxy.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.DispatchProxy.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.ILGeneration.dll b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.ILGeneration.dll index 74ad2b0..7efe651 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.ILGeneration.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.ILGeneration.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.Lightweight.dll b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.Lightweight.dll index 8b6ec3d..865c6e7 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.Lightweight.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.Lightweight.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.dll b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.dll index d113fde..5c1abab 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Emit.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Extensions.dll b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Extensions.dll index e7a3842..03e483f 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Extensions.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Extensions.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Metadata.dll b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Metadata.dll index e6af89d..d627b5e 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Metadata.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Metadata.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Primitives.dll b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Primitives.dll index 07d957e..e0e540c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Primitives.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.Primitives.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.TypeExtensions.dll b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.TypeExtensions.dll index 4a1de3d..75c19c0 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.TypeExtensions.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.TypeExtensions.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.dll b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.dll index db0c0ec..933ac2f 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Reflection.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Reflection.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Resources.Reader.dll b/packages/dotnet-runtime/src/vendor/lib/System.Resources.Reader.dll index 3aa624e..ebbd152 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Resources.Reader.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Resources.Reader.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Resources.ResourceManager.dll b/packages/dotnet-runtime/src/vendor/lib/System.Resources.ResourceManager.dll index 1a57b89..e308572 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Resources.ResourceManager.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Resources.ResourceManager.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Resources.Writer.dll b/packages/dotnet-runtime/src/vendor/lib/System.Resources.Writer.dll index bc178bc..d275e5b 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Resources.Writer.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Resources.Writer.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.CompilerServices.Unsafe.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.CompilerServices.Unsafe.dll index 35febe0..cf3d764 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.CompilerServices.Unsafe.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.CompilerServices.Unsafe.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.CompilerServices.VisualC.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.CompilerServices.VisualC.dll index 527776d..924e704 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.CompilerServices.VisualC.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.CompilerServices.VisualC.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Extensions.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Extensions.dll index a70272f..25056ac 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Extensions.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Extensions.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Handles.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Handles.dll index 630ff55..14707b3 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Handles.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Handles.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.JavaScript.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.JavaScript.dll index 859fc6a..e5c500c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.JavaScript.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.JavaScript.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.RuntimeInformation.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.RuntimeInformation.dll index b1849c5..de7ee60 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.RuntimeInformation.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.RuntimeInformation.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.dll index 4fad2ab..9d75b69 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.InteropServices.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Intrinsics.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Intrinsics.dll index d8a90ed..bb9a290 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Intrinsics.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Intrinsics.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Loader.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Loader.dll index dc7794a..173deee 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Loader.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Loader.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Numerics.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Numerics.dll index c3285c1..52d212c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Numerics.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Numerics.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Formatters.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Formatters.dll index 4327396..a0c56de 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Formatters.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Formatters.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Json.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Json.dll index 3547067..1569b2a 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Json.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Json.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Primitives.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Primitives.dll index b373537..cfb84b1 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Primitives.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Primitives.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Xml.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Xml.dll index a38ecd1..9380483 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Xml.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.Xml.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.dll index 448df43..55754bd 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.Serialization.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.dll b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.dll index c4b5820..227e566 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Runtime.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Runtime.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.AccessControl.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.AccessControl.dll index 61621d4..febfb7c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.AccessControl.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.AccessControl.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Claims.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Claims.dll index 2fafd59..b318611 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Claims.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Claims.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Algorithms.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Algorithms.dll index 7e43185..42b8faa 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Algorithms.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Algorithms.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Cng.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Cng.dll index 794c596..53f3d0c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Cng.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Cng.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Csp.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Csp.dll index eed87fe..649d298 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Csp.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Csp.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Encoding.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Encoding.dll index 9cd3ede..87febf2 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Encoding.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Encoding.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.OpenSsl.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.OpenSsl.dll index 276982e..76d0ba8 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.OpenSsl.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.OpenSsl.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Primitives.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Primitives.dll index 7f5c17b..ba89c52 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Primitives.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.Primitives.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.X509Certificates.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.X509Certificates.dll index cd2d3de..5cc7417 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.X509Certificates.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.X509Certificates.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.dll index eb09677..ee762ed 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Cryptography.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Principal.Windows.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Principal.Windows.dll index 07ee57b..9443e9c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Principal.Windows.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Principal.Windows.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.Principal.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.Principal.dll index e4a2e1f..1b04735 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.Principal.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.Principal.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.SecureString.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.SecureString.dll index 0d15cbd..cf4c441 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.SecureString.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.SecureString.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Security.dll b/packages/dotnet-runtime/src/vendor/lib/System.Security.dll index bca99a3..0d43920 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Security.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Security.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.ServiceModel.Web.dll b/packages/dotnet-runtime/src/vendor/lib/System.ServiceModel.Web.dll index eeadee8..f37819f 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.ServiceModel.Web.dll and b/packages/dotnet-runtime/src/vendor/lib/System.ServiceModel.Web.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.ServiceProcess.dll b/packages/dotnet-runtime/src/vendor/lib/System.ServiceProcess.dll index 20db163..90f0cd8 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.ServiceProcess.dll and b/packages/dotnet-runtime/src/vendor/lib/System.ServiceProcess.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.CodePages.dll b/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.CodePages.dll index 17b9027..a06f215 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.CodePages.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.CodePages.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.Extensions.dll b/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.Extensions.dll index 238da65..1f3e332 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.Extensions.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.Extensions.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.dll b/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.dll index 1b4e147..ae8ef1e 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Text.Encoding.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Text.Encodings.Web.dll b/packages/dotnet-runtime/src/vendor/lib/System.Text.Encodings.Web.dll index 9ad5286..48b7a01 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Text.Encodings.Web.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Text.Encodings.Web.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Text.Json.dll b/packages/dotnet-runtime/src/vendor/lib/System.Text.Json.dll index 65d4fd5..6ef9263 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Text.Json.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Text.Json.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Text.RegularExpressions.dll b/packages/dotnet-runtime/src/vendor/lib/System.Text.RegularExpressions.dll index 029b7b4..6606068 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Text.RegularExpressions.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Text.RegularExpressions.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Channels.dll b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Channels.dll index acbd622..0d720d8 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Channels.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Channels.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Overlapped.dll b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Overlapped.dll index 4a91065..daf72ed 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Overlapped.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Overlapped.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Dataflow.dll b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Dataflow.dll index a434fef..416af26 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Dataflow.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Dataflow.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Extensions.dll b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Extensions.dll index b45ba22..939968c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Extensions.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Extensions.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Parallel.dll b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Parallel.dll index 99a99d1..f759012 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Parallel.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.Parallel.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.dll b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.dll index 09a2740..c975d7a 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Tasks.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Thread.dll b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Thread.dll index b913cbc..7d0edad 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Thread.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Thread.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Threading.ThreadPool.dll b/packages/dotnet-runtime/src/vendor/lib/System.Threading.ThreadPool.dll index b96548a..21acd1d 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Threading.ThreadPool.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Threading.ThreadPool.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Timer.dll b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Timer.dll index f3f131f..c05afdf 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Threading.Timer.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Threading.Timer.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Threading.dll b/packages/dotnet-runtime/src/vendor/lib/System.Threading.dll index 148ba2d..31d2edd 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Threading.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Threading.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Transactions.Local.dll b/packages/dotnet-runtime/src/vendor/lib/System.Transactions.Local.dll index c392280..318e502 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Transactions.Local.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Transactions.Local.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Transactions.dll b/packages/dotnet-runtime/src/vendor/lib/System.Transactions.dll index a153f0b..ac4ccbf 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Transactions.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Transactions.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.ValueTuple.dll b/packages/dotnet-runtime/src/vendor/lib/System.ValueTuple.dll index 02efd06..16b7d38 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.ValueTuple.dll and b/packages/dotnet-runtime/src/vendor/lib/System.ValueTuple.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Web.HttpUtility.dll b/packages/dotnet-runtime/src/vendor/lib/System.Web.HttpUtility.dll index 810ab9c..b2f89f7 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Web.HttpUtility.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Web.HttpUtility.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Web.dll b/packages/dotnet-runtime/src/vendor/lib/System.Web.dll index 74a4169..ab94f81 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Web.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Web.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Windows.dll b/packages/dotnet-runtime/src/vendor/lib/System.Windows.dll index 3cd4f6c..f94ae10 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Windows.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Windows.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Xml.Linq.dll b/packages/dotnet-runtime/src/vendor/lib/System.Xml.Linq.dll index eb7fdad..560fa2c 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Xml.Linq.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Xml.Linq.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Xml.ReaderWriter.dll b/packages/dotnet-runtime/src/vendor/lib/System.Xml.ReaderWriter.dll index 0ce53d1..8637aba 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Xml.ReaderWriter.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Xml.ReaderWriter.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Xml.Serialization.dll b/packages/dotnet-runtime/src/vendor/lib/System.Xml.Serialization.dll index bf5a522..b62ad97 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Xml.Serialization.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Xml.Serialization.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Xml.XDocument.dll b/packages/dotnet-runtime/src/vendor/lib/System.Xml.XDocument.dll index afa35f8..7b1d2be 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Xml.XDocument.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Xml.XDocument.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Xml.XPath.XDocument.dll b/packages/dotnet-runtime/src/vendor/lib/System.Xml.XPath.XDocument.dll index 3d18065..f38de4b 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Xml.XPath.XDocument.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Xml.XPath.XDocument.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Xml.XPath.dll b/packages/dotnet-runtime/src/vendor/lib/System.Xml.XPath.dll index 1d2b654..442888e 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Xml.XPath.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Xml.XPath.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Xml.XmlDocument.dll b/packages/dotnet-runtime/src/vendor/lib/System.Xml.XmlDocument.dll index 273d7d2..cf14520 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Xml.XmlDocument.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Xml.XmlDocument.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Xml.XmlSerializer.dll b/packages/dotnet-runtime/src/vendor/lib/System.Xml.XmlSerializer.dll index 4fe7bce..76523ef 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Xml.XmlSerializer.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Xml.XmlSerializer.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.Xml.dll b/packages/dotnet-runtime/src/vendor/lib/System.Xml.dll index aa0400d..75f1897 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.Xml.dll and b/packages/dotnet-runtime/src/vendor/lib/System.Xml.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/System.dll b/packages/dotnet-runtime/src/vendor/lib/System.dll index 59ffc03..e55aa75 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/System.dll and b/packages/dotnet-runtime/src/vendor/lib/System.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/WindowsBase.dll b/packages/dotnet-runtime/src/vendor/lib/WindowsBase.dll index 0fe43af..85e0586 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/WindowsBase.dll and b/packages/dotnet-runtime/src/vendor/lib/WindowsBase.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/compiler.dll b/packages/dotnet-runtime/src/vendor/lib/compiler.dll index fbe481b..264d125 100644 Binary files a/packages/dotnet-runtime/src/vendor/lib/compiler.dll and b/packages/dotnet-runtime/src/vendor/lib/compiler.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/mscorlib.dll b/packages/dotnet-runtime/src/vendor/lib/mscorlib.dll index 8b434b3..06e20db 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/mscorlib.dll and b/packages/dotnet-runtime/src/vendor/lib/mscorlib.dll differ diff --git a/packages/dotnet-runtime/src/vendor/lib/netstandard.dll b/packages/dotnet-runtime/src/vendor/lib/netstandard.dll index d491267..32d590e 100755 Binary files a/packages/dotnet-runtime/src/vendor/lib/netstandard.dll and b/packages/dotnet-runtime/src/vendor/lib/netstandard.dll differ diff --git a/packages/dotnet-runtime/src/version.ts b/packages/dotnet-runtime/src/version.ts index 20b160b..34d9f20 100644 --- a/packages/dotnet-runtime/src/version.ts +++ b/packages/dotnet-runtime/src/version.ts @@ -1 +1 @@ -export const version = "8.0.7"; +export const version = "8.0.10"; diff --git a/packages/go-runtime/public/compiler.wasm b/packages/go-runtime/public/compiler.wasm index 4924ea5..2c9020d 100755 Binary files a/packages/go-runtime/public/compiler.wasm and b/packages/go-runtime/public/compiler.wasm differ diff --git a/packages/rust-runtime/public/lib/libstd-bdedb7706a556da2.so b/packages/rust-runtime/public/lib/libstd-bdedb7706a556da2.so index 200da38..8f10673 100755 Binary files a/packages/rust-runtime/public/lib/libstd-bdedb7706a556da2.so and b/packages/rust-runtime/public/lib/libstd-bdedb7706a556da2.so differ