diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/404.html b/404.html new file mode 100644 index 00000000..2a007446 --- /dev/null +++ b/404.html @@ -0,0 +1,10 @@ + + +
0}function $r(e){return e<-1}wr&&(kr=new globalThis.FinalizationRegistry(Pr));const Lr=Symbol.for("wasm js_owned_gc_handle"),Rr=Symbol.for("wasm cs_owned_js_handle"),Br=Symbol.for("wasm do_not_force_dispose");function Nr(e){return jr(e)?Sr[e]:Ar(e)?vr[0-e]:null}function Cr(e){if(dr(),e[Rr])return e[Rr];const t=Ur.length?Ur.pop():Er++;return Sr[t]=e,Object.isExtensible(e)&&(e[Rr]=t),t}function Or(e){let t;jr(e)?(t=Sr[e],Sr[e]=void 0,Ur.push(e)):Ar(e)&&(t=vr[0-e],vr[0-e]=void 0),null==t&&ut(!1,"ObjectDisposedException"),void 0!==t[Rr]&&(t[Rr]=void 0)}function Dr(e,t){dr(),e[Lr]=t,wr&&kr.register(e,t,e);const n=mr(e);Tr.set(t,n)}function Fr(e,t,r){var o;dr(),e&&(t=e[Lr],e[Lr]=p,wr&&kr.unregister(e)),t!==p&&Tr.delete(t)&&!r&&at.is_runtime_running()&&!zr&&function(e){e||ut(!1,"Must be valid gc_handle"),at.assert_runtime_running();const t=Xe.stackSave();try{const t=xn(3),r=In(t,2);Mn(r,14),Xn(r,e),n&&!$r(e)&&_n.isUI||gn(mn.ReleaseJSOwnedObjectByGCHandle,t)}finally{Xe.stackRestore(t)}}(t),$r(t)&&(o=t,xr.push(o))}function Mr(e){const t=e[Lr];if(t==p)throw new Error("Assert failed: ObjectDisposedException");return t}function Pr(e){at.is_runtime_running()&&Fr(null,e)}function Vr(e){if(!e)return null;const t=Tr.get(e);return t?t.deref():null}let zr=!1;function Hr(e,t){let n=!1,r=!1;zr=!0;let o=0,a=0,s=0,i=0;const c=[...Tr.keys()];for(const e of c){const r=Tr.get(e),o=r&&r.deref();if(wr&&o&&kr.unregister(o),o){const a="boolean"==typeof o[Br]&&o[Br];if(t&&Me(`Proxy of C# ${typeof o} with GCHandle ${e} was still alive. ${a?"keeping":"disposing"}.`),a)n=!0;else{const t=at.getPromiseController(o);t&&t.reject(new Error("WebWorker which is origin of the Task is being terminated.")),"function"==typeof o.dispose&&o.dispose(),o[Lr]===e&&(o[Lr]=p),!_r&&r&&r.dispose(),s++}}}n||(Tr.clear(),wr&&(kr=new globalThis.FinalizationRegistry(Pr)));const l=(e,n)=>{const o=n[e],a=o&&"boolean"==typeof o[Br]&&o[Br];if(a||(n[e]=void 0),o)if(t&&Me(`Proxy of JS ${typeof o} with JSHandle ${e} was still alive. ${a?"keeping":"disposing"}.`),a)r=!0;else{const t=at.getPromiseController(o);t&&t.reject(new Error("WebWorker which is origin of the Task is being terminated.")),"function"==typeof o.dispose&&o.dispose(),o[Rr]===e&&(o[Rr]=void 0),i++}};for(let e=0;en.resolve(e))).catch((e=>n.reject(e))),t}const Gr=Symbol.for("wasm promise_holder");class Jr extends ManagedObject{constructor(e,t,n,r){super(),this.promise=e,this.gc_handle=t,this.promiseHolderPtr=n,this.res_converter=r,this.isResolved=!1,this.isPosted=!1,this.isPostponed=!1,this.data=null,this.reason=void 0}setIsResolving(){return!0}resolve(e){at.is_runtime_running()?(this.isResolved&&ut(!1,"resolve could be called only once"),this.isDisposed&&ut(!1,"resolve is already disposed."),this.isResolved=!0,this.complete_task_wrapper(e,null)):at.diagnosticTracing&&De("This promise resolution can't be propagated to managed code, mono runtime already exited.")}reject(e){at.is_runtime_running()?(e||(e=new Error),this.isResolved&&ut(!1,"reject could be called only once"),this.isDisposed&&ut(!1,"resolve is already disposed."),e[Gr],this.isResolved=!0,this.complete_task_wrapper(null,e)):at.diagnosticTracing&&De("This promise rejection can't be propagated to managed code, mono runtime already exited.")}cancel(){if(at.is_runtime_running())if(this.isResolved&&ut(!1,"cancel could be called only once"),this.isDisposed&&ut(!1,"resolve is already disposed."),this.isPostponed)this.isResolved=!0,void 0!==this.reason?this.complete_task_wrapper(null,this.reason):this.complete_task_wrapper(this.data,null);else{const e=this.promise;at.assertIsControllablePromise(e);const t=at.getPromiseController(e),n=new Error("OperationCanceledException");n[Gr]=this,t.reject(n)}else at.diagnosticTracing&&De("This promise cancelation can't be propagated to managed code, mono runtime already exited.")}complete_task_wrapper(e,t){try{this.isPosted&&ut(!1,"Promise is already posted to managed."),this.isPosted=!0,Fr(this,this.gc_handle,!0),function(e,t,n,r){at.assert_runtime_running();const o=Xe.stackSave();try{const o=xn(5),a=In(o,2);Mn(a,14),Xn(a,e);const s=In(o,3);if(t)ho(s,t);else{Mn(s,0);const e=In(o,4);r||ut(!1,"res_converter missing"),r(e,n)}hn(ot.ioThreadTID,mn.CompleteTask,o)}finally{Xe.stackRestore(o)}}(this.gc_handle,t,e,this.res_converter||bo)}catch(e){try{at.mono_exit(1,e)}catch(e){}}}}const Xr="For more information see https://aka.ms/dotnet-wasm-jsinterop";function Qr(e,t,n){if(0===t||1===t||2===t||26===t)return;let r,o,a,s;o=Ft(Rn(e)),a=Ft(Bn(e)),s=Ft(Nn(e));const i=Ln(e);r=Yr(i),19===t&&(t=i);const c=Yr(t),l=Rn(e),p=n*Un;return(e,t)=>{c(e+p,t,l,r,o,a,s)}}function Yr(e){if(0===e||1===e)return;const t=wn.get(e);return t&&"function"==typeof t||ut(!1,`ERR30: Unknown converter for type ${e}`),t}function Zr(e,t){null==t?Mn(e,0):(Mn(e,3),Vn(e,t))}function Kr(e,t){null==t?Mn(e,0):(Mn(e,4),function(e,t){e||ut(!1,"Null arg"),g(e,t)}(e,t))}function eo(e,t){null==t?Mn(e,0):(Mn(e,5),function(e,t){e||ut(!1,"Null arg"),b(e,t)}(e,t))}function to(e,t){null==t?Mn(e,0):(Mn(e,6),function(e,t){e||ut(!1,"Null arg"),S(e,t)}(e,t))}function no(e,t){null==t?Mn(e,0):(Mn(e,7),function(e,t){e||ut(!1,"Null arg"),v(e,t)}(e,t))}function ro(e,t){null==t?Mn(e,0):(Mn(e,8),function(e,t){if(e||ut(!1,"Null arg"),!Number.isSafeInteger(t))throw new Error(`Assert failed: Value is not an integer: ${t} (${typeof t})`);A(e,t)}(e,t))}function oo(e,t){null==t?Mn(e,0):(Mn(e,9),function(e,t){e||ut(!1,"Null arg"),x(e,t)}(e,t))}function ao(e,t){null==t?Mn(e,0):(Mn(e,10),Wn(e,t))}function so(e,t){null==t?Mn(e,0):(Mn(e,11),function(e,t){e||ut(!1,"Null arg"),I(e,t)}(e,t))}function io(e,t){null==t?Mn(e,0):(Mn(e,12),zn(e,t))}function co(e,t){if(null==t)Mn(e,0);else{if(!(t instanceof Date))throw new Error("Assert failed: Value is not a Date");Mn(e,17),Hn(e,t)}}function lo(e,t){if(null==t)Mn(e,0);else{if(!(t instanceof Date))throw new Error("Assert failed: Value is not a Date");Mn(e,18),Hn(e,t)}}function po(e,t){if(null==t)Mn(e,0);else{if(Mn(e,15),"string"!=typeof t)throw new Error("Assert failed: Value is not a String");uo(e,t)}}function uo(e,t){{const n=Qn(e);try{!function(e,t){if(t.clear(),null!==e)if("symbol"==typeof e)Re(e,t);else{if("string"!=typeof e)throw new Error("Expected string argument, got "+typeof e);if(0===e.length)Re(e,t);else{if(e.length<=256){const n=_e.get(e);if(n)return void t.set(n)}Be(e,t)}}}(t,n)}finally{n.release()}}}function fo(e){Mn(e,0)}function _o(e,t,r,o,a,s,i){if(null==t)return void Mn(e,0);if(!(t&&t instanceof Function))throw new Error("Assert failed: Value is not a Function");const c=function(e){const r=In(e,0),l=In(e,1),p=In(e,2),u=In(e,3),d=In(e,4),f=ot.isPendingSynchronousCall;try{let e,r,f;n&&c.isDisposed,a&&(e=a(p)),s&&(r=s(u)),i&&(f=i(d)),ot.isPendingSynchronousCall=!0;const _=t(e,r,f);o&&o(l,_)}catch(e){ho(r,e)}finally{ot.isPendingSynchronousCall=f}};c[Sn]=!0,c.isDisposed=!1,c.dispose=()=>{c.isDisposed=!0},Gn(e,Cr(c)),Mn(e,25)}function mo(e,t,n,r){const o=30==Dn(e);if(null==t)return void Mn(e,0);if(!Wr(t))throw new Error("Assert failed: Value is not a Promise");const a=o?Jn(e):xr.length?xr.pop():Ir--;o||(Xn(e,a),Mn(e,20));const s=new Jr(t,a,0,r);Dr(s,a),t.then((e=>s.resolve(e)),(e=>s.reject(e)))}function ho(e,t){if(null==t)Mn(e,0);else if(t instanceof ManagedError)Mn(e,16),Xn(e,Mr(t));else{if("object"!=typeof t&&"string"!=typeof t)throw new Error("Assert failed: Value is not an Error "+typeof t);Mn(e,27),uo(e,t.toString());const n=t[Rr];Gn(e,n||Cr(t))}}function go(e,t){if(null==t)Mn(e,0);else{if(void 0!==t[Lr])throw new Error(`Assert failed: JSObject proxy of ManagedObject proxy is not supported. ${Xr}`);if("function"!=typeof t&&"object"!=typeof t)throw new Error(`Assert failed: JSObject proxy of ${typeof t} is not supported`);Mn(e,13),Gn(e,Cr(t))}}function bo(e,t){if(null==t)Mn(e,0);else{const n=t[Lr],r=typeof t;if(void 0===n)if("string"===r||"symbol"===r)Mn(e,15),uo(e,t);else if("number"===r)Mn(e,10),Wn(e,t);else{if("bigint"===r)throw new Error("NotImplementedException: bigint");if("boolean"===r)Mn(e,3),Vn(e,t);else if(t instanceof Date)Mn(e,17),Hn(e,t);else if(t instanceof Error)ho(e,t);else if(t instanceof Uint8Array)wo(e,t,4);else if(t instanceof Float64Array)wo(e,t,10);else if(t instanceof Int32Array)wo(e,t,7);else if(Array.isArray(t))wo(e,t,14);else{if(t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array)throw new Error("NotImplementedException: TypedArray");if(Wr(t))mo(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=Cr(t);Mn(e,13),Gn(e,n)}}}}else{if(Mr(t),t instanceof ArraySegment)throw new Error("NotImplementedException: ArraySegment. "+Xr);if(t instanceof ManagedError)Mn(e,16),Xn(e,n);else{if(!(t instanceof ManagedObject))throw new Error("NotImplementedException "+r+". "+Xr);Mn(e,14),Xn(e,n)}}}}function yo(e,t,n){n||ut(!1,"Expected valid element_type parameter"),wo(e,t,n)}function wo(e,t,n){if(null==t)Mn(e,0);else{const r=Kn(n);-1==r&&ut(!1,`Element type ${n} not supported`);const a=t.length,s=r*a,i=Xe._malloc(s);if(15==n){if(!Array.isArray(t))throw new Error("Assert failed: Value is not an Array");_(i,s),o.mono_wasm_register_root(i,s,"marshal_array_to_cs");for(let e=0;e>2,(i>>2)+a).set(t)}else{if(10!=n)throw new Error("not implemented");if(!(Array.isArray(t)||t instanceof Float64Array))throw new Error("Assert failed: Value is not an Array or Float64Array");te().subarray(i>>3,(i>>3)+a).set(t)}zn(e,i),Mn(e,21),function(e,t){e||ut(!1,"Null arg"),g(e+13,t)}(e,n),Zn(e,t.length)}}function ko(e,t,n){if(n||ut(!1,"Expected valid element_type parameter"),t.isDisposed)throw new Error("Assert failed: ObjectDisposedException");vo(n,t._viewType),Mn(e,23),zn(e,t._pointer),Zn(e,t.length)}function So(e,t,n){n||ut(!1,"Expected valid element_type parameter");const r=Mr(t);r||ut(!1,"Only roundtrip of ArraySegment instance created by C#"),vo(n,t._viewType),Mn(e,22),zn(e,t._pointer),Zn(e,t.length),Xn(e,r)}function vo(e,t){if(4==e){if(0!=t)throw new Error("Assert failed: Expected MemoryViewType.Byte")}else if(7==e){if(1!=t)throw new Error("Assert failed: Expected MemoryViewType.Int32")}else{if(10!=e)throw new Error(`NotImplementedException ${e} `);if(2!=t)throw new Error("Assert failed: Expected MemoryViewType.Double")}}const Uo={now:function(){return Date.now()}};function Eo(e){void 0===globalThis.performance&&(globalThis.performance=Uo),e.require=Qe.require,e.scriptDirectory=at.scriptDirectory,Xe.locateFile===Xe.__locateFile&&(Xe.locateFile=at.locateFile),e.fetch=at.fetch_like,e.ENVIRONMENT_IS_WORKER=et}function To(){if("function"!=typeof globalThis.fetch||"function"!=typeof globalThis.AbortController)throw new Error(Ye?"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")}let xo,Io;function Ao(){if(void 0!==xo)return xo;if("undefined"!=typeof Request&&"body"in Request.prototype&&"function"==typeof ReadableStream&&"function"==typeof TransformStream){let e=!1;const t=new Request("",{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");xo=e&&!t}else xo=!1;return xo}function jo(){return void 0!==Io||(Io="undefined"!=typeof Response&&"body"in Response.prototype&&"function"==typeof ReadableStream),Io}function $o(){return To(),dr(),{abortController:new AbortController}}function Lo(e){e.catch((e=>{e&&"AbortError"!==e&&"AbortError"!==e.name&&Xe.err("Unexpected error: "+e)}))}function Ro(e){try{e.isAborted||(e.streamWriter&&(Lo(e.streamWriter.abort()),e.isAborted=!0),e.streamReader&&(Lo(e.streamReader.cancel()),e.isAborted=!0)),e.isAborted||e.abortController.abort("AbortError")}catch(e){}}function Bo(e,t,n){n>0||ut(!1,"expected bufferLength > 0");const r=new Span(t,n,0).slice();return qr((async()=>{e.streamWriter||ut(!1,"expected streamWriter"),e.responsePromise||ut(!1,"expected fetch promise");try{await e.streamWriter.ready,await e.streamWriter.write(r)}catch(e){throw new Error("BrowserHttpWriteStream.Rejected")}}))}function No(e){return e||ut(!1,"expected controller"),qr((async()=>{e.streamWriter||ut(!1,"expected streamWriter"),e.responsePromise||ut(!1,"expected fetch promise");try{await e.streamWriter.ready,await e.streamWriter.close()}catch(e){throw new Error("BrowserHttpWriteStream.Rejected")}}))}function Co(e,t,n,r,o,a){const s=new TransformStream;return e.streamWriter=s.writable.getWriter(),Lo(e.streamWriter.closed),Lo(e.streamWriter.ready),Do(e,t,n,r,o,a,s.readable)}function Oo(e,t,n,r,o,a,s,i){return Do(e,t,n,r,o,a,new Span(s,i,0).slice())}function Do(e,t,n,r,o,a,s){To(),dr(),t&&"string"==typeof t||ut(!1,"expected url string"),n&&r&&Array.isArray(n)&&Array.isArray(r)&&n.length===r.length||ut(!1,"expected headerNames and headerValues arrays"),o&&a&&Array.isArray(o)&&Array.isArray(a)&&o.length===a.length||ut(!1,"expected headerNames and headerValues arrays");const i=new Headers;for(let e=0;eat.fetch_like(t,c))),e.responsePromise.then((t=>{if(e.response=t,e.responseHeaderNames=[],e.responseHeaderValues=[],t.headers&&t.headers.entries){const n=t.headers.entries();for(const t of n)e.responseHeaderNames.push(t[0]),e.responseHeaderValues.push(t[1])}})).catch((()=>{})),e.responsePromise}function Fo(e){var t;return null===(t=e.response)||void 0===t?void 0:t.type}function Mo(e){var t,n;return null!==(n=null===(t=e.response)||void 0===t?void 0:t.status)&&void 0!==n?n:0}function Po(e){return e.responseHeaderNames||ut(!1,"expected responseHeaderNames"),e.responseHeaderNames}function Vo(e){return e.responseHeaderValues||ut(!1,"expected responseHeaderValues"),e.responseHeaderValues}function zo(e){return qr((async()=>{const t=await e.response.arrayBuffer();return e.responseBuffer=t,e.currentBufferOffset=0,t.byteLength}))}function Ho(e,t){if(e||ut(!1,"expected controller"),e.responseBuffer||ut(!1,"expected resoved arrayBuffer"),null==e.currentBufferOffset&&ut(!1,"expected currentBufferOffset"),e.currentBufferOffset==e.responseBuffer.byteLength)return 0;const n=new Uint8Array(e.responseBuffer,e.currentBufferOffset);t.set(n,0);const r=Math.min(t.byteLength,n.byteLength);return e.currentBufferOffset+=r,r}function Wo(e,t,n){const r=new Span(t,n,0);return qr((async()=>{if(e.response||ut(!1,"expected response"),e.streamReader||(e.streamReader=e.response.body.getReader()),e.currentStreamReaderChunk&&void 0!==e.currentBufferOffset||(e.currentStreamReaderChunk=await e.streamReader.read(),e.currentBufferOffset=0),e.currentStreamReaderChunk.done){if(e.isAborted)throw new Error("OperationCanceledException");return 0}const t=e.currentStreamReaderChunk.value.byteLength-e.currentBufferOffset;t>0||ut(!1,"expected remaining_source to be greater than 0");const n=Math.min(t,r.byteLength),o=e.currentStreamReaderChunk.value.subarray(e.currentBufferOffset,e.currentBufferOffset+n);return r.set(o,0),e.currentBufferOffset+=n,t==n&&(e.currentStreamReaderChunk=void 0),n}))}let qo,Go=0,Jo=0;function Xo(){if(!at.isChromium)return;const e=(new Date).valueOf(),t=e+36e4;for(let n=Math.max(e+1e3,Go);n0;){if(--Jo,!at.is_runtime_running())return;o.mono_background_exec()}}catch(e){at.mono_exit(1,e)}}function mono_wasm_schedule_timer_tick(){if(Xe.maybeExit(),at.is_runtime_running()){qo=void 0;try{o.mono_wasm_execute_timer(),Jo++}catch(e){at.mono_exit(1,e)}}}class Zo{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 Ko=Symbol.for("wasm ws_pending_send_buffer"),ea=Symbol.for("wasm ws_pending_send_buffer_offset"),ta=Symbol.for("wasm ws_pending_send_buffer_type"),na=Symbol.for("wasm ws_pending_receive_event_queue"),ra=Symbol.for("wasm ws_pending_receive_promise_queue"),oa=Symbol.for("wasm ws_pending_open_promise"),aa=Symbol.for("wasm wasm_ws_pending_open_promise_used"),sa=Symbol.for("wasm wasm_ws_pending_error"),ia=Symbol.for("wasm ws_pending_close_promises"),ca=Symbol.for("wasm ws_pending_send_promises"),la=Symbol.for("wasm ws_is_aborted"),pa=Symbol.for("wasm wasm_ws_close_sent"),ua=Symbol.for("wasm wasm_ws_close_received"),da=Symbol.for("wasm ws_receive_status_ptr"),fa=65536,_a=new Uint8Array;function ma(e){var t,n;return e.readyState!=WebSocket.CLOSED?null!==(t=e.readyState)&&void 0!==t?t:-1:0==e[na].getLength()?null!==(n=e.readyState)&&void 0!==n?n:-1:WebSocket.OPEN}function ha(e,t,n){let r;!function(){if(nt)throw new Error("WebSockets are not supported in shell JS engine.");if("function"!=typeof globalThis.WebSocket)throw new Error(Ye?"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")}(),dr(),e&&"string"==typeof e||ut(!1,"ERR12: Invalid uri "+typeof e);try{r=new globalThis.WebSocket(e,t||void 0)}catch(e){throw Me("WebSocket error in ws_wasm_create: "+e.toString()),e}const{promise_control:o}=pt();r[na]=new Zo,r[ra]=new Zo,r[oa]=o,r[ca]=[],r[ia]=[],r[da]=n,r.binaryType="arraybuffer";const a=()=>{try{if(r[la])return;if(!at.is_runtime_running())return;o.resolve(r),Xo()}catch(e){Me("failed to propagate WebSocket open event: "+e.toString())}},s=e=>{try{if(r[la])return;if(!at.is_runtime_running())return;!function(e,t){const n=e[na],r=e[ra];if("string"==typeof t.data)n.enqueue({type:0,data:Te(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();va(e,n,t.buffer_ptr,t.buffer_length),t.resolve()}Xo()}(r,e),Xo()}catch(e){Me("failed to propagate WebSocket message event: "+e.toString())}},i=e=>{try{if(r.removeEventListener("message",s),r[la])return;if(!at.is_runtime_running())return;r[ua]=!0,r.close_status=e.code,r.close_status_description=e.reason,r[aa]&&o.reject(new Error(e.reason));for(const e of r[ia])e.resolve();r[ra].drain((e=>{v(n,0),v(n+4,2),v(n+8,1),e.resolve()}))}catch(e){Me("failed to propagate WebSocket close event: "+e.toString())}},c=e=>{try{if(r[la])return;if(!at.is_runtime_running())return;r.removeEventListener("message",s);const t=e.message?"WebSocket error: "+e.message:"WebSocket error";Me(t),r[sa]=t,Sa(r,new Error(t))}catch(e){Me("failed to propagate WebSocket error event: "+e.toString())}};return r.addEventListener("message",s),r.addEventListener("open",a,{once:!0}),r.addEventListener("close",i,{once:!0}),r.addEventListener("error",c,{once:!0}),r.dispose=()=>{r.removeEventListener("message",s),r.removeEventListener("open",a),r.removeEventListener("close",i),r.removeEventListener("error",c),ka(r)},r}function ga(e){if(e||ut(!1,"ERR17: expected ws instance"),e[sa])return Ua(e[sa]);const t=e[oa];return e[aa]=!0,t.promise}function ba(e,t,n,r,o){if(e||ut(!1,"ERR17: expected ws instance"),e[sa])return Ua(e[sa]);if(e[la]||e[pa])return Ua("InvalidState: The WebSocket is not connected.");if(e.readyState==WebSocket.CLOSED)return null;const a=function(e,t,n,r){let o=e[Ko],a=0;const s=t.byteLength;if(o){if(a=e[ea],n=e[ta],0!==s){if(a+s>o.length){const n=new Uint8Array(1.5*(a+s+50));n.set(o,0),n.subarray(a).set(t),e[Ko]=o=n}else o.subarray(a).set(t);a+=s,e[ea]=a}}else r?0!==s&&(o=t,a=s):(0!==s&&(o=t.slice(),a=s,e[ea]=a,e[Ko]=o),e[ta]=n);return r?0==a||null==o?_a:0===n?function(e){return void 0===ye?Xe.UTF8ArrayToString(e,0,e.byteLength):ye.decode(e)}(Ne(o,0,a)):o.subarray(0,a):null}(e,new Uint8Array(Y().buffer,t,n),r,o);return o&&a?function(e,t){if(e.send(t),e[Ko]=null,e.bufferedAmount{try{if(0===e.bufferedAmount)r.resolve();else{const t=e.readyState;if(t!=WebSocket.OPEN&&t!=WebSocket.CLOSING)r.reject(new Error(`InvalidState: ${t} The WebSocket is not connected.`));else if(!r.isDone)return globalThis.setTimeout(s,a),void(a=Math.min(1.5*a,1e3))}const t=o.indexOf(r);t>-1&&o.splice(t,1)}catch(e){Me("WebSocket error in web_socket_send_and_wait: "+e.toString()),r.reject(e)}};return globalThis.setTimeout(s,0),n}(e,a):null}function ya(e,t,n){if(e||ut(!1,"ERR18: expected ws instance"),e[sa])return Ua(e[sa]);if(e[la]){const t=e[da];return v(t,0),v(t+4,2),v(t+8,1),null}const r=e[na],o=e[ra];if(r.getLength())return 0!=o.getLength()&&ut(!1,"ERR20: Invalid WS state"),va(e,r,t,n),null;if(e[ua]){const t=e[da];return v(t,0),v(t+4,2),v(t+8,1),null}const{promise:a,promise_control:s}=pt(),i=s;return i.buffer_ptr=t,i.buffer_length=n,o.enqueue(i),a}function wa(e,t,n,r){if(e||ut(!1,"ERR19: expected ws instance"),e[la]||e[pa]||e.readyState==WebSocket.CLOSED)return null;if(e[sa])return Ua(e[sa]);if(e[pa]=!0,r){const{promise:r,promise_control:o}=pt();return e[ia].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 ka(e){if(e||ut(!1,"ERR18: expected ws instance"),!e[la]&&!e[pa]){e[la]=!0,Sa(e,new Error("OperationCanceledException"));try{e.close(1e3,"Connection was aborted.")}catch(e){Me("WebSocket error in ws_wasm_abort: "+e.toString())}}}function Sa(e,t){const n=e[oa],r=e[aa];n&&r&&n.reject(t);for(const n of e[ia])n.reject(t);for(const n of e[ca])n.reject(t);e[ra].drain((e=>{e.reject(t)}))}function va(e,t,n,r){const o=t.peek(),a=Math.min(r,o.data.length-o.offset);if(a>0){const e=o.data.subarray(o.offset,o.offset+a);new Uint8Array(Y().buffer,n,r).set(e,0),o.offset+=a}const s=o.data.length===o.offset?1:0;s&&t.dequeue();const i=e[da];v(i,a),v(i+4,o.type),v(i+8,s)}function Ua(e){return function(e){const{promise:t,promise_control:n}=pt();return e.then((e=>n.resolve(e))).catch((e=>n.reject(e))),t}(Promise.reject(new Error(e)))}function Ea(e,t,n){at.diagnosticTracing&&De(`Loaded:${e.name} as ${e.behavior} size ${n.length} from ${t}`);const r=Bt(),a="string"==typeof e.virtualPath?e.virtualPath:e.name;let s=null;switch(e.behavior){case"dotnetwasm":case"js-module-threads":case"js-module-globalization":case"symbols":case"segmentation-rules":break;case"resource":case"assembly":case"pdb":at._loaded_files.push({url:t,file:a});case"heap":case"icu":s=function(e){const t=e.length+16;let n=Xe._sbrk(t);if(n<=0){if(n=Xe._sbrk(t),n<=0)throw Pe(`sbrk failed to allocate ${t} bytes, and failed upon retry.`),new Error("Out of memory");Me(`sbrk failed to allocate ${t} bytes, but succeeded upon retry!`)}return new Uint8Array(Y().buffer,n,e.length).set(e),n}(n);break;case"vfs":{const e=a.lastIndexOf("/");let t=e>0?a.substring(0,e):null,r=e>0?a.substring(e+1):a;r.startsWith("/")&&(r=r.substring(1)),t?(t.startsWith("/")||(t="/"+t),De(`Creating directory '${t}'`),Xe.FS_createPath("/",t,!0,!0)):t="/",at.diagnosticTracing&&De(`Creating file '${r}' in directory '${t}'`),Xe.FS_createDataFile(t,r,n,!0,!0,!0);break}default:throw new Error(`Unrecognized asset behavior:${e.behavior}, for asset ${e.name}`)}if("assembly"===e.behavior){if(!o.mono_wasm_add_assembly(a,s,n.length)){const e=at._loaded_files.findIndex((e=>e.file==a));at._loaded_files.splice(e,1)}}else"pdb"===e.behavior?o.mono_wasm_add_assembly(a,s,n.length):"icu"===e.behavior?function(e){if(!o.mono_wasm_load_icu_data(e))throw new Error("Failed to load ICU data")}(s):"resource"===e.behavior&&o.mono_wasm_add_satellite_assembly(a,e.culture||"",s,n.length);Nt(r,"mono.instantiateAsset:",e.name),++at.actual_instantiated_assets_count}async function Ta(e){try{const n=await e.pendingDownloadInternal.response;t=await n.text(),ze&&ut(!1,"Another symbol map was already loaded"),ze=t,at.diagnosticTracing&&De(`Deferred loading of ${t.length}ch symbol map`)}catch(t){Fe(`Error loading symbol file ${e.name}: ${JSON.stringify(t)}`)}var t}async function xa(e){try{const t=await e.pendingDownloadInternal.response,n=await t.json();st.setSegmentationRulesFromJson(n)}catch(t){Fe(`Error loading static json asset ${e.name}: ${JSON.stringify(t)}`)}}function Ia(){return at.loadedFiles}const Aa={};function ja(e){let t=Aa[e];if("string"!=typeof t){const n=o.mono_jiterp_get_opcode_info(e,0);Aa[e]=t=xe(n)}return t}const $a=2,La=64,Ra=64,Ba={};class Na{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.backBranchTraceLevel=0,this.compressImportNames=!1,this.lockImports=!1,this._assignParameterIndices=e=>{let t=0;for(const n in e)this.locals.set(n,t),t++;return t},this.stack=[new Ca],this.clear(e),this.cfg=new Oa(this),this.defineType("__cpp_exception",{ptr:127},64,!0)}clear(e){this.options=ps(),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 Ca),this.current.clear()}_pop(e){if(this.stackSize<=1)throw new Error("Stack empty");const t=this.current;return this.stackSize--,e?(this.appendULeb(t.size),t.copyTo(this.current),null):t.getArrayView(!1).slice(0,t.size)}setImportFunction(e,t){const n=this.importedFunctions[e];if(!n)throw new Error("No import named "+e);n.func=t}getExceptionTag(){const e=Xe.wasmExports.__cpp_exception;return void 0!==e&&(e instanceof WebAssembly.Tag||ut(!1,`expected __cpp_exception export from dotnet.wasm to be WebAssembly.Tag but was ${e}`)),e}getWasmImports(){const e=ot.getMemory();e instanceof WebAssembly.Memory||ut(!1,`expected heap import to be WebAssembly.Memory but was ${e}`);const t=this.getExceptionTag(),n={c:this.getConstants(),m:{h:e}};t&&(n.x={e:t});const r=this.getImportsToEmit();for(let e=0;e>>0||e>255)throw new Error(`Byte out of range: ${e}`);return this.current.appendU8(e)}appendSimd(e,t){return this.current.appendU8(253),0|e||0===e&&!0===t||ut(!1,"Expected non-v128_load simd opcode or allowLoad==true"),this.current.appendULeb(e)}appendAtomic(e,t){return this.current.appendU8(254),0|e||0===e&&!0===t||ut(!1,"Expected non-notify atomic opcode or allowNotify==true"),this.current.appendU8(e)}appendU32(e){return this.current.appendU32(e)}appendF32(e){return this.current.appendF32(e)}appendF64(e){return this.current.appendF64(e)}appendBoundaryValue(e,t){return this.current.appendBoundaryValue(e,t)}appendULeb(e){return this.current.appendULeb(e)}appendLeb(e){return this.current.appendLeb(e)}appendLebRef(e,t){return this.current.appendLebRef(e,t)}appendBytes(e){return this.current.appendBytes(e)}appendName(e){return this.current.appendName(e)}ret(e){this.ip_const(e),this.appendU8(15)}i32_const(e){this.appendU8(65),this.appendLeb(e)}ptr_const(e){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&&ut(!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 a=this.functionTypesByShape[o];"number"!=typeof a&&(a=this.functionTypeCount++,r?(this.permanentFunctionTypeCount++,this.permanentFunctionTypesByShape[o]=a,this.permanentFunctionTypesByIndex[a]=[t,Object.values(t).length,n]):(this.functionTypesByShape[o]=a,this.functionTypesByIndex[a]=[t,Object.values(t).length,n]));const s=[a,t,n,`(${JSON.stringify(t)}) -> ${n}`,r];return r?this.permanentFunctionTypes[e]=s:this.functionTypes[e]=s,a}generateTypeSection(){this.beginSection(1),this.appendULeb(this.functionTypeCount);for(let e=0;ee.index-t.index)),e}_generateImportSection(e){const t=this.getImportsToEmit();if(this.lockImports=!0,!1!==e)throw new Error("function table imports are disabled");const n=void 0!==this.getExceptionTag();this.beginSection(2),this.appendULeb(1+(n?1:0)+t.length+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 a=this.functionTypes[n];if(!a)throw new Error("No function type named "+n);if(r&&!a[4])throw new Error("A permanent import must have a permanent function type");const s=a[0],i=r?this.permanentImportedFunctions:this.importedFunctions;if("number"==typeof o&&(o=za().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:s,module:e,name:t,func:o}}markImportAsUsed(e){const t=this.importedFunctions[e];if(!t)throw new Error("No imported function named "+e);"number"!=typeof t.index&&(t.index=this.importedFunctionCount++)}getTypeIndex(e){const t=this.functionTypes[e];if(!t)throw new Error("No type named "+e);return t[0]}defineFunction(e,t){const n={index:this.functions.length,name:e.name,typeName:e.type,typeIndex:this.getTypeIndex(e.type),export:e.export,locals:e.locals,generator:t,error:null,blob:null};return this.functions.push(n),n.export&&(this.estimatedExportBytes+=n.name.length+8),n}emitImportsAndFunctions(e){let t=0;for(let e=0;e0)throw new Error(`${this.activeBlocks} unclosed block(s) at end of function`);const t=this._pop(e);return this.inFunction=!1,t}block(e,t){const n=this.appendU8(t||2);return e?this.appendU8(e):this.appendU8(64),this.activeBlocks++,n}endBlock(){if(this.activeBlocks<=0)throw new Error("No blocks active");this.activeBlocks--,this.appendU8(11)}arg(e,t){const n="string"==typeof e?this.locals.has(e)?this.locals.get(e):void 0:e;if("number"!=typeof n)throw new Error("No local named "+e);t&&this.appendU8(t),this.appendULeb(n)}local(e,t){const n="string"==typeof e?this.locals.has(e)?this.locals.get(e):void 0:e+this.argumentCount;if("number"!=typeof n)throw new Error("No local named "+e);t?this.appendU8(t):this.appendU8(32),this.appendULeb(n)}appendMemarg(e,t){this.appendULeb(t),this.appendULeb(e)}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 Y()[this.buffer+this.size++]=e,t}appendU32(e){const t=this.size;return o.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,0),this.size+=4,t}appendI32(e){const t=this.size;return o.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,1),this.size+=4,t}appendF32(e){const t=this.size;return o.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,2),this.size+=4,t}appendF64(e){const t=this.size;return o.mono_jiterp_write_number_unaligned(this.buffer+this.size,e,3),this.size+=8,t}appendBoundaryValue(e,t){if(this.size+8>=this.capacity)throw new Error("Buffer full");const n=o.mono_jiterp_encode_leb_signed_boundary(this.buffer+this.size,e,t);if(n<1)throw new Error(`Failed to encode ${e} bit boundary value with sign ${t}`);return this.size+=n,n}appendULeb(e){if("number"!=typeof e&&ut(!1,`appendULeb expected number but got ${e}`),e>=0||ut(!1,"cannot pass negative value to appendULeb"),e<127){if(this.size+1>=this.capacity)throw new Error("Buffer full");return this.appendU8(e),1}if(this.size+8>=this.capacity)throw new Error("Buffer full");const t=o.mono_jiterp_encode_leb52(this.buffer+this.size,e,0);if(t<1)throw new Error(`Failed to encode value '${e}' as unsigned leb`);return this.size+=t,t}appendLeb(e){if("number"!=typeof e&&ut(!1,`appendLeb expected number but got ${e}`),this.size+8>=this.capacity)throw new Error("Buffer full");const t=o.mono_jiterp_encode_leb52(this.buffer+this.size,e,1);if(t<1)throw new Error(`Failed to encode value '${e}' as signed leb`);return this.size+=t,t}appendLebRef(e,t){if(this.size+8>=this.capacity)throw new Error("Buffer full");const n=o.mono_jiterp_encode_leb64_ref(this.buffer+this.size,e,t?1:0);if(n<1)throw new Error("Failed to encode value as leb");return this.size+=n,n}copyTo(e,t){"number"!=typeof t&&(t=this.size),Y().copyWithin(e.buffer+e.size,this.buffer,this.buffer+t),e.size+=t}appendBytes(e,t){const n=this.size,r=Y();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(Y().buffer,this.buffer,e?this.capacity:this.size)}}class Oa{constructor(e){this.segments=[],this.backBranchTargets=null,this.lastSegmentEnd=0,this.overheadBytes=0,this.blockStack=[],this.backDispatchOffsets=[],this.dispatchTable=new Map,this.observedBackBranchTargets=new Set,this.trace=0,this.builder=e}initialize(e,t,n){this.segments.length=0,this.blockStack.length=0,this.startOfBody=e,this.backBranchTargets=t,this.base=this.builder.base,this.ip=this.lastSegmentStartIp=this.firstOpcodeIp=this.builder.base,this.lastSegmentEnd=0,this.overheadBytes=10,this.dispatchTable.clear(),this.observedBackBranchTargets.clear(),this.trace=n,this.backDispatchOffsets.length=0}entry(e){this.entryIp=e;const t=o.mono_jiterp_get_opcode_info(674,1);return this.firstOpcodeIp=e+2*t,this.appendBlob(),1!==this.segments.length&&ut(!1,"expected 1 segment"),"blob"!==this.segments[0].type&&ut(!1,"expected blob"),this.entryBlob=this.segments[0],this.segments.length=0,this.overheadBytes+=9,this.backBranchTargets&&(this.overheadBytes+=20,this.overheadBytes+=this.backBranchTargets.length),this.firstOpcodeIp}appendBlob(){this.builder.current.size!==this.lastSegmentEnd&&(this.segments.push({type:"blob",ip:this.lastSegmentStartIp,start:this.lastSegmentEnd,length:this.builder.current.size-this.lastSegmentEnd}),this.lastSegmentStartIp=this.ip,this.lastSegmentEnd=this.builder.current.size,this.overheadBytes+=2)}startBranchBlock(e,t){this.appendBlob(),this.segments.push({type:"branch-block-header",ip:e,isBackBranchTarget:t}),this.overheadBytes+=1}branch(e,t,n){t&&this.observedBackBranchTargets.add(e),this.appendBlob(),this.segments.push({type:"branch",from:this.ip,target:e,isBackward:t,branchType:n}),this.overheadBytes+=4,t&&(this.overheadBytes+=4)}emitBlob(e,t){const n=t.subarray(e.start,e.start+e.length);this.builder.appendBytes(n)}generate(){this.appendBlob();const e=this.builder.endFunction(!1);this.builder._push(),this.builder.base=this.base,this.emitBlob(this.entryBlob,e),this.backBranchTargets&&this.builder.block(64,3);for(let e=0;ee-t));for(let e=0;e0&&Fe("No back branch targets were reachable after filtering");else if(1===this.backDispatchOffsets.length)this.trace>0&&(this.backDispatchOffsets[0]===this.entryIp?Fe(`Exactly one back dispatch offset and it was the entry point 0x${this.entryIp.toString(16)}`):Fe(`Exactly one back dispatch offset and it was 0x${this.backDispatchOffsets[0].toString(16)}`)),this.builder.local("disp"),this.builder.appendU8(13),this.builder.appendULeb(this.blockStack.indexOf(this.backDispatchOffsets[0]));else{this.trace>0&&Fe(`${this.backDispatchOffsets.length} back branch offsets after filtering.`),this.builder.block(64),this.builder.block(64),this.builder.local("disp"),this.builder.appendU8(14),this.builder.appendULeb(this.backDispatchOffsets.length+1),this.builder.appendULeb(1);for(let e=0;e0&&this.blockStack.push(0)}this.trace>1&&Fe(`blockStack=${this.blockStack}`);for(let t=0;t1&&Fe(`backward br from ${n.from.toString(16)} to ${n.target.toString(16)}: disp=${t}`),o=!0):(this.trace>0&&Fe(`br from ${n.from.toString(16)} to ${n.target.toString(16)} failed: back branch target not in dispatch table`),r=-1)),r>=0||o){let e=0;switch(n.branchType){case 2:this.builder,n.from,void 0!==t&&(this.builder.i32_const(t),this.builder.local("disp",33)),this.builder.appendU8(12);break;case 3:this.builder.block(64,4),this.builder,n.from,void 0!==t&&(this.builder.i32_const(t),this.builder.local("disp",33)),this.builder.appendU8(12),e=1;break;case 0:void 0!==t&&(this.builder.i32_const(t),this.builder.local("disp",33)),this.builder.appendU8(12);break;case 1:void 0!==t?(this.builder.block(64,4),this.builder.i32_const(t),this.builder.local("disp",33),e=1,this.builder.appendU8(12)):this.builder.appendU8(13);break;default:throw new Error("Unimplemented branch type")}this.builder.appendULeb(e+r),e&&this.builder.endBlock(),this.trace>1&&Fe(`br from ${n.from.toString(16)} to ${n.target.toString(16)} breaking out ${e+r+1} level(s)`)}else{if(this.trace>0){const e=this.base;n.target>=e&&n.target1&&Fe(`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),Pa(this.builder,n.target,4),e&&this.builder.endBlock()}break}default:throw new Error("unreachable")}}return this.backBranchTargets&&(this.blockStack.length<=1||ut(!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&&ut(!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 Da;const Fa={},Ma=globalThis.performance&&globalThis.performance.now?globalThis.performance.now.bind(globalThis.performance):Date.now;function Pa(e,t,n){e.ip_const(t),e.options.countBailouts&&(e.i32_const(e.traceIndex),e.i32_const(n),e.callImport("bailout")),e.appendU8(15)}function Va(e,t,n,r){e.local("cinfo"),e.block(64,4),e.local("cinfo"),e.local("disp"),e.appendU8(54),e.appendMemarg(Ya(19),0),n<=e.options.monitoringLongDistance+2&&(e.local("cinfo"),e.i32_const(n),e.appendU8(54),e.appendMemarg(Ya(20),0)),e.endBlock(),e.ip_const(t),e.options.countBailouts&&(e.i32_const(e.traceIndex),e.i32_const(r),e.callImport("bailout")),e.appendU8(15)}function za(){if(Da||(Da=ot.getWasmIndirectFunctionTable()),!Da)throw new Error("Module did not export the indirect function table");return Da}function Ha(e,t){t||ut(!1,"Attempting to set null function into table");const n=o.mono_jiterp_allocate_table_entry(e);return n>0&&za().set(n,t),n}function Wa(e,t,n,r,o){if(r<=0)return o&&e.appendU8(26),!0;if(r>=La)return!1;const a=o?"memop_dest":"pLocals";o&&e.local(a,33);let s=o?0:t;if(e.options.enableSimd){const t=16;for(;r>=t;)e.local(a),e.v128_const(0),e.appendSimd(11),e.appendMemarg(s,0),s+=t,r-=t}for(;r>=8;)e.local(a),e.i52_const(0),e.appendU8(55),e.appendMemarg(s,0),s+=8,r-=8;for(;r>=1;){e.local(a),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(s,0),s+=t,r-=t}return!0}function qa(e,t,n){Wa(e,0,0,n,!0)||(e.i32_const(t),e.i32_const(n),e.appendU8(252),e.appendU8(11),e.appendU8(0))}function Ga(e,t,n,r,o,a,s){if(r<=0)return o&&(e.appendU8(26),e.appendU8(26)),!0;if(r>=Ra)return!1;o?(a=a||"memop_dest",s=s||"memop_src",e.local(s,33),e.local(a,33)):a&&s||(a=s="pLocals");let i=o?0:t,c=o?0:n;if(e.options.enableSimd){const t=16;for(;r>=t;)e.local(a),e.local(s),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(a),e.local(s),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(a),e.local(s),e.appendU8(t),e.appendMemarg(c,0),e.appendU8(n),e.appendMemarg(i,0),c+=o,i+=o,r-=o}return!0}function Ja(e,t){return Ga(e,0,0,t,!0)||(e.i32_const(t),e.appendU8(252),e.appendU8(10),e.appendU8(0),e.appendU8(0)),!0}function Xa(){const e=ls(5,1);e>=$a&&(Fe(`Disabling jiterpreter after ${e} failures`),is({enableTraces:!1,enableInterpEntry:!1,enableJitCall:!1}))}const Qa={};function Ya(e){const t=Qa[e];return void 0===t?Qa[e]=o.mono_jiterp_get_member_offset(e):t}function Za(e){const t=Xe.wasmExports[e];if("function"!=typeof t)throw new Error(`raw cwrap ${e} not found`);return t}const Ka={};function es(e){let t=Ka[e];return"number"!=typeof t&&(t=Ka[e]=o.mono_jiterp_get_opcode_value_table_entry(e)),t}function ts(e,t){return[e,e,t]}let ns;function rs(){if(!o.mono_wasm_is_zero_page_reserved())return!1;if(!0===ns)return!1;const e=K();for(let t=0;t<8;t++)if(0!==e[t])return!1===ns&&Pe(`Zero page optimizations are enabled but garbage appeared in memory at address ${4*t}: ${e[t]}`),ns=!0,!1;return ns=!1,!0}const os={enableTraces:"jiterpreter-traces-enabled",enableInterpEntry:"jiterpreter-interp-entry-enabled",enableJitCall:"jiterpreter-jit-call-enabled",enableBackwardBranches:"jiterpreter-backward-branch-entries-enabled",enableCallResume:"jiterpreter-call-resume-enabled",enableWasmEh:"jiterpreter-wasm-eh-enabled",enableSimd:"jiterpreter-simd-enabled",enableAtomics:"jiterpreter-atomics-enabled",zeroPageOptimization:"jiterpreter-zero-page-optimization",cprop:"jiterpreter-constant-propagation",enableStats:"jiterpreter-stats-enabled",disableHeuristic:"jiterpreter-disable-heuristic",estimateHeat:"jiterpreter-estimate-heat",countBailouts:"jiterpreter-count-bailouts",dumpTraces:"jiterpreter-dump-traces",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",tableSize:"jiterpreter-table-size",aotTableSize:"jiterpreter-aot-table-size"};let as=-1,ss={};function is(e){for(const t in e){const n=os[t];if(!n){Pe(`Unrecognized jiterpreter option: ${t}`);continue}const r=e[t];"boolean"==typeof r?o.mono_jiterp_parse_option((r?"--":"--no-")+n):"number"==typeof r?o.mono_jiterp_parse_option(`--${n}=${r}`):Pe(`Jiterpreter option must be a boolean or a number but was ${typeof r} '${r}'`)}}function cs(e){return o.mono_jiterp_get_counter(e)}function ls(e,t){return o.mono_jiterp_modify_counter(e,t)}function ps(){const e=o.mono_jiterp_get_options_version();return e!==as&&(function(){ss={};for(const e in os){const t=o.mono_jiterp_get_option_as_int(os[e]);t>-2147483647?ss[e]=t:Fe(`Failed to retrieve value of option ${os[e]}`)}}(),as=e),ss}function us(e,t,n,r){const a=za(),s=t,i=s+n-1;return i= ${a.length}`),a.set(s,r),o.mono_jiterp_initialize_table(e,s,i),t+n}let ds=!1;const fs=["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"],_s={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_I1_EQUALS_ANY","V128_I2_EQUALS_ANY","V128_I4_EQUALS_ANY","V128_I8_EQUALS_ANY","V128_AND_NOT","V128_U2_LESS_THAN_EQUAL","V128_I1_SHUFFLE","V128_I2_SHUFFLE","V128_I4_SHUFFLE","V128_I8_SHUFFLE","ExtractScalarI1","ExtractScalarU1","ExtractScalarI2","ExtractScalarU2","ExtractScalarD4","ExtractScalarD8","ExtractScalarR4","ExtractScalarR8","SwizzleD1","AddD1","AddD2","AddD4","AddD8","AddR4","AddR8","SubtractD1","SubtractD2","SubtractD4","SubtractD8","SubtractR4","SubtractR8","MultiplyD2","MultiplyD4","MultiplyD8","MultiplyR4","MultiplyR8","DivideR4","DivideR8","DotI2","ShiftLeftD1","ShiftLeftD2","ShiftLeftD4","ShiftLeftD8","ShiftRightArithmeticD1","ShiftRightArithmeticD2","ShiftRightArithmeticD4","ShiftRightArithmeticD8","ShiftRightLogicalD1","ShiftRightLogicalD2","ShiftRightLogicalD4","ShiftRightLogicalD8","AndANY","AndNotANY","OrANY","XorANY","CompareEqualD1","CompareEqualD2","CompareEqualD4","CompareEqualD8","CompareEqualR4","CompareEqualR8","CompareNotEqualD1","CompareNotEqualD2","CompareNotEqualD4","CompareNotEqualD8","CompareNotEqualR4","CompareNotEqualR8","CompareLessThanI1","CompareLessThanU1","CompareLessThanI2","CompareLessThanU2","CompareLessThanI4","CompareLessThanU4","CompareLessThanI8","CompareLessThanR4","CompareLessThanR8","CompareLessThanOrEqualI1","CompareLessThanOrEqualU1","CompareLessThanOrEqualI2","CompareLessThanOrEqualU2","CompareLessThanOrEqualI4","CompareLessThanOrEqualU4","CompareLessThanOrEqualI8","CompareLessThanOrEqualR4","CompareLessThanOrEqualR8","CompareGreaterThanI1","CompareGreaterThanU1","CompareGreaterThanI2","CompareGreaterThanU2","CompareGreaterThanI4","CompareGreaterThanU4","CompareGreaterThanI8","CompareGreaterThanR4","CompareGreaterThanR8","CompareGreaterThanOrEqualI1","CompareGreaterThanOrEqualU1","CompareGreaterThanOrEqualI2","CompareGreaterThanOrEqualU2","CompareGreaterThanOrEqualI4","CompareGreaterThanOrEqualU4","CompareGreaterThanOrEqualI8","CompareGreaterThanOrEqualR4","CompareGreaterThanOrEqualR8","ConvertNarrowingSaturateSignedI2","ConvertNarrowingSaturateSignedI4","ConvertNarrowingSaturateUnsignedI2","ConvertNarrowingSaturateUnsignedI4","MultiplyWideningLowerI1","MultiplyWideningLowerI2","MultiplyWideningLowerI4","MultiplyWideningLowerU1","MultiplyWideningLowerU2","MultiplyWideningLowerU4","MultiplyWideningUpperI1","MultiplyWideningUpperI2","MultiplyWideningUpperI4","MultiplyWideningUpperU1","MultiplyWideningUpperU2","MultiplyWideningUpperU4","AddSaturateI1","AddSaturateU1","AddSaturateI2","AddSaturateU2","SubtractSaturateI1","SubtractSaturateU1","SubtractSaturateI2","SubtractSaturateU2","MultiplyRoundedSaturateQ15I2","MinI1","MinI2","MinI4","MinU1","MinU2","MinU4","MaxI1","MaxI2","MaxI4","MaxU1","MaxU2","MaxU4","AverageRoundedU1","AverageRoundedU2","MinR4","MinR8","MaxR4","MaxR8","PseudoMinR4","PseudoMinR8","PseudoMaxR4","PseudoMaxR8","StoreANY"],4:["V128_CONDITIONAL_SELECT","ReplaceScalarD1","ReplaceScalarD2","ReplaceScalarD4","ReplaceScalarD8","ReplaceScalarR4","ReplaceScalarR8","ShuffleD1","BitwiseSelectANY","LoadScalarAndInsertX1","LoadScalarAndInsertX2","LoadScalarAndInsertX4","LoadScalarAndInsertX8","StoreSelectedScalarX1","StoreSelectedScalarX2","StoreSelectedScalarX4","StoreSelectedScalarX8"]},ms={13:[65,0],14:[65,1]},hs={456:168,462:174,457:170,463:176},gs={508:[69,40,54],428:[106,40,54],430:[107,40,54],432:[107,40,54],436:[115,40,54],429:[124,41,55],431:[125,41,55],433:[125,41,55],437:[133,41,55],511:[106,40,54],515:[108,40,54],513:[124,41,55],517:[126,41,55],434:[140,42,56],435:[154,43,57],464:[178,40,56],467:[183,40,57],438:[184,40,57],465:[180,41,56],468:[185,41,57],439:[186,41,57],469:[187,42,57],466:[182,43,56],460:[1,52,55],461:[1,53,55],444:[113,40,54],452:[113,40,54],440:[117,40,54],448:[117,40,54],445:[113,41,54],453:[113,41,54],441:[117,41,54],449:[117,41,54],525:[116,40,54],526:[134,41,55],527:[117,40,54],528:[135,41,55],523:[118,40,54],524:[136,41,55],638:[119,40,54],639:[137,41,55],640:[120,40,54],641:[138,41,55],642:[103,40,54],644:[104,40,54],646:[105,40,54],643:[121,41,55],645:[122,41,55],647:[123,41,55],512:[106,40,54],516:[108,40,54],514:[124,41,55],518:[126,41,55],519:[113,40,54],520:[113,40,54],521:[114,40,54],522:[114,40,54]},bs={394:187,395:1,398:187,399:1,402:187,403:1,406:187,407:1,412:187,413:1,416:187,417:1,426:187,427:1,420:187,421:1,65536:187,65537:187,65535:187,65539:1,65540:1,65538:1},ys={344:[106,40,54],362:[106,40,54],364:[106,40,54],348:[107,40,54],352:[108,40,54],366:[108,40,54],368:[108,40,54],356:[109,40,54],360:[110,40,54],380:[111,40,54],384:[112,40,54],374:[113,40,54],376:[114,40,54],378:[115,40,54],388:[116,40,54],390:[117,40,54],386:[118,40,54],345:[124,41,55],349:[125,41,55],353:[126,41,55],357:[127,41,55],381:[129,41,55],361:[128,41,55],385:[130,41,55],375:[131,41,55],377:[132,41,55],379:[133,41,55],389:[134,41,55],391:[135,41,55],387:[136,41,55],346:[146,42,56],350:[147,42,56],354:[148,42,56],358:[149,42,56],347:[160,43,57],351:[161,43,57],355:[162,43,57],359:[163,43,57],392:[70,40,54],396:[71,40,54],414:[72,40,54],400:[74,40,54],418:[76,40,54],404:[78,40,54],424:[73,40,54],410:[75,40,54],422:[77,40,54],408:[79,40,54],393:[81,41,54],397:[82,41,54],415:[83,41,54],401:[85,41,54],419:[87,41,54],405:[89,41,54],425:[84,41,54],411:[86,41,54],423:[88,41,54],409:[90,41,54]},ws={187:392,207:396,195:400,215:410,199:414,223:424,191:404,211:408,203:418,219:422,231:[392,!1,!0],241:[396,!1,!0],235:[400,!1,!0],245:[410,!1,!0],237:[414,!1,!0],249:[424,!1,!0],233:[404,!1,!0],243:[408,!1,!0],239:[418,!1,!0],247:[422,!1,!0],251:[392,65,!0],261:[396,65,!0],255:[400,65,!0],265:[410,65,!0],257:[414,65,!0],269:[424,65,!0],253:[404,65,!0],263:[408,65,!0],259:[418,65,!0],267:[422,65,!0],188:393,208:397,196:401,216:411,200:415,224:425,192:405,212:409,204:419,220:423,252:[393,66,!0],256:[401,66,!0],266:[411,66,!0],258:[415,66,!0],270:[425,66,!0],254:[405,66,!0],264:[409,66,!0],260:[419,66,!0],268:[423,66,!0],189:394,209:65535,197:402,217:412,201:416,225:426,193:406,213:65536,205:420,221:65537,190:395,210:65538,198:403,218:413,202:417,226:427,194:407,214:65539,206:421,222:65540},ks={598:[!0,!1,159],625:[!0,!0,145],585:[!0,!1,155],612:[!0,!0,141],591:[!0,!1,156],618:[!0,!0,142],602:[!0,!1,153],629:[!0,!0,139],580:[!0,!1,"acos"],607:[!0,!0,"acosf"],581:[!0,!1,"acosh"],608:[!0,!0,"acoshf"],586:[!0,!1,"cos"],613:[!0,!0,"cosf"],578:[!0,!1,"asin"],605:[!0,!0,"asinf"],579:[!0,!1,"asinh"],606:[!0,!0,"asinhf"],597:[!0,!1,"sin"],624:[!0,!0,"sinf"],582:[!0,!1,"atan"],609:[!0,!0,"atanf"],583:[!0,!1,"atanh"],610:[!0,!0,"atanhf"],600:[!0,!1,"tan"],627:[!0,!0,"tanf"],587:[!0,!1,"cbrt"],614:[!0,!0,"cbrtf"],589:[!0,!1,"exp"],616:[!0,!0,"expf"],592:[!0,!1,"log"],619:[!0,!0,"logf"],593:[!0,!1,"log2"],620:[!0,!0,"log2f"],594:[!0,!1,"log10"],621:[!0,!0,"log10f"],603:[!1,!1,164],630:[!1,!0,150],604:[!1,!1,165],631:[!1,!0,151],584:[!1,!1,"atan2"],611:[!1,!0,"atan2f"],595:[!1,!1,"pow"],622:[!1,!0,"powf"],383:[!1,!1,"fmod"],382:[!1,!0,"fmodf"]},Ss={560:[67,0,0],561:[67,192,0],562:[68,0,1],563:[68,193,1],564:[65,0,2],565:[66,0,3]},vs={566:[74,0,0],567:[74,192,0],568:[75,0,1],569:[75,193,1],570:[72,0,2],571:[73,0,3]},Us={651:1,652:2,653:4,654:8},Es={651:44,652:46,653:40,654:41},Ts={651:58,652:59,653:54,654:55},xs=new Set([20,21,22,23,24,25,26,27,28,29,30]),Is={51:[16,54],52:[16,54],53:[8,54],54:[8,54],55:[4,54],57:[4,56],56:[2,55],58:[2,57]},As={1:[16,40],2:[8,40],3:[4,40],5:[4,42],4:[2,41],6:[2,43]},js=new Set([81,84,85,86,87,82,83,88,89,90,91,92,93]),$s={13:[16],14:[8],15:[4],16:[2]},Ls={10:100,11:132,12:164,13:196},Rs={6:[44,23],7:[46,26],8:[40,28],9:[41,30]};function Bs(e,t){return B(e+2*t)}function Ns(e,t){return M(e+2*t)}function Cs(e,t){return O(e+2*t)}function Os(e){return D(e+Ya(4))}function Ds(e,t){const n=D(Os(e)+Ya(5));return D(n+t*fc)}function Fs(e,t){const n=D(Os(e)+Ya(12));return D(n+t*fc)}function Ms(e,t,n){if(!n)return!1;for(let r=0;r=40||ut(!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=Ys(t,n,r);e.appendMemarg(t,o)}function ei(e,t,n,r){n>=54||ut(!1,`Expected store opcode but got ${n}`),e.appendU8(n),void 0!==r&&e.appendULeb(r);const o=Ys(t,n,r);e.appendMemarg(t,o),Js(t),void 0!==r&&Js(t+8)}function ti(e,t,n){"number"!=typeof n&&(n=512),n>0&&Xs(t,n),e.lea("pLocals",t)}function ni(e,t,n,r){Xs(t,r),Wa(e,t,0,r,!1)||(ti(e,t,r),qa(e,n,r))}function ri(e,t,n,r){if(Xs(t,r),Ga(e,t,n,r,!1))return!0;ti(e,t,r),ti(e,n,0),Ja(e,r)}function oi(e,t){return 0!==o.mono_jiterp_is_imethod_var_address_taken(Os(e.frame),t)}function ai(e,t,n,r){if(e.allowNullCheckOptimization&&Hs.has(t)&&!oi(e,t))return ls(7,1),void(qs===t?r&&e.local("cknull_ptr"):(Ks(e,t,40),e.local("cknull_ptr",r?34:33),qs=t));Ks(e,t,40),e.local("cknull_ptr",34),e.appendU8(69),e.block(64,4),Pa(e,n,2),e.endBlock(),r&&e.local("cknull_ptr"),e.allowNullCheckOptimization&&!oi(e,t)?(Hs.set(t,n),qs=t):qs=-1}function si(e,t,n){let r,a=54;const s=ms[n];if(s)e.local("pLocals"),e.appendU8(s[0]),r=s[1],e.appendLeb(r);else switch(n){case 15:e.local("pLocals"),r=Ns(t,2),e.i32_const(r);break;case 16:e.local("pLocals"),r=Cs(t,2),e.i32_const(r);break;case 17:e.local("pLocals"),e.i52_const(0),a=55;break;case 19:e.local("pLocals"),e.appendU8(66),e.appendLebRef(t+4,!0),a=55;break;case 18:e.local("pLocals"),e.i52_const(Ns(t,2)),a=55;break;case 20:e.local("pLocals"),e.appendU8(67),e.appendF32(function(e,t){return n=e+2*t,o.mono_wasm_get_f32_unaligned(n);var n}(t,2)),a=56;break;case 21:e.local("pLocals"),e.appendU8(68),e.appendF64(function(e,t){return n=e+2*t,o.mono_wasm_get_f64_unaligned(n);var n}(t,2)),a=57;break;default:return!1}e.appendU8(a);const i=Bs(t,1);return e.appendMemarg(i,2),Js(i),"number"==typeof r?Ps.set(i,{type:"i32",value:r}):Ps.delete(i),!0}function ii(e,t,n){let r=40,o=54;switch(n){case 74:r=44;break;case 75:r=45;break;case 76:r=46;break;case 77:r=47;break;case 78:r=45,o=58;break;case 79:r=47,o=59;break;case 80:break;case 81:r=41,o=55;break;case 82:{const n=Bs(t,3);return ri(e,Bs(t,1),Bs(t,2),n),!0}case 83:return ri(e,Bs(t,1),Bs(t,2),8),ri(e,Bs(t,3),Bs(t,4),8),!0;case 84:return ri(e,Bs(t,1),Bs(t,2),8),ri(e,Bs(t,3),Bs(t,4),8),ri(e,Bs(t,5),Bs(t,6),8),!0;case 85:return ri(e,Bs(t,1),Bs(t,2),8),ri(e,Bs(t,3),Bs(t,4),8),ri(e,Bs(t,5),Bs(t,6),8),ri(e,Bs(t,7),Bs(t,8),8),!0;default:return!1}return e.local("pLocals"),Ks(e,Bs(t,2),r),ei(e,Bs(t,1),o),!0}function ci(e,t,n,r){const o=r>=23&&r<=36||r>=50&&r<=60,a=Bs(n,o?2:1),s=Bs(n,3),i=Bs(n,o?1:2),c=e.allowNullCheckOptimization&&Hs.has(a)&&!oi(e,a);36!==r&&45!==r&&ai(e,a,n,!1);let l=54,p=40;switch(r){case 23:p=44;break;case 24:p=45;break;case 25:p=46;break;case 26:p=47;break;case 31:case 41:case 27:break;case 43:case 29:p=42,l=56;break;case 44:case 30:p=43,l=57;break;case 37:case 38:l=58;break;case 39:case 40:l=59;break;case 28:case 42:p=41,l=55;break;case 45:return c||e.block(),e.local("pLocals"),e.i32_const(s),e.i32_const(a),e.i32_const(i),e.callImport("stfld_o"),c?(e.appendU8(26),ls(7,1)):(e.appendU8(13),e.appendULeb(0),Pa(e,n,2),e.endBlock()),!0;case 32:{const t=Bs(n,4);return ti(e,i,t),e.local("cknull_ptr"),0!==s&&(e.i32_const(s),e.appendU8(106)),Ja(e,t),!0}case 46:{const r=Ds(t,Bs(n,4));return e.local("cknull_ptr"),0!==s&&(e.i32_const(s),e.appendU8(106)),ti(e,i,0),e.ptr_const(r),e.callImport("value_copy"),!0}case 47:{const t=Bs(n,4);return e.local("cknull_ptr"),0!==s&&(e.i32_const(s),e.appendU8(106)),ti(e,i,0),Ja(e,t),!0}case 36:case 35:return e.local("pLocals"),Ks(e,a,40),0!==s&&(e.i32_const(s),e.appendU8(106)),ei(e,i,l),!0;default:return!1}return o&&e.local("pLocals"),e.local("cknull_ptr"),o?(e.appendU8(p),e.appendMemarg(s,0),ei(e,i,l),!0):(Ks(e,i,p),e.appendU8(l),e.appendMemarg(s,0),!0)}function li(e,t,n,r){const o=r>=23&&r<=36||r>=50&&r<=60,a=Bs(n,1),s=Ds(t,Bs(n,2)),i=Ds(t,Bs(n,3));!function(e,t,n){e.block(),e.ptr_const(t),e.appendU8(45),e.appendMemarg(Ya(0),0),e.appendU8(13),e.appendULeb(0),Pa(e,n,3),e.endBlock()}(e,s,n);let c=54,l=40;switch(r){case 50:l=44;break;case 51:l=45;break;case 52:l=46;break;case 53:l=47;break;case 58:case 65:case 54:break;case 67:case 56:l=42,c=56;break;case 68:case 57:l=43,c=57;break;case 61:case 62:c=58;break;case 63:case 64:c=59;break;case 55:case 66:l=41,c=55;break;case 69:return e.ptr_const(i),ti(e,a,0),e.callImport("copy_ptr"),!0;case 59:{const t=Bs(n,4);return ti(e,a,t),e.ptr_const(i),Ja(e,t),!0}case 72:return e.local("pLocals"),e.ptr_const(i),ei(e,a,c),!0;default:return!1}return o?(e.local("pLocals"),e.ptr_const(i),e.appendU8(l),e.appendMemarg(0,0),ei(e,a,c),!0):(e.ptr_const(i),Ks(e,a,l),e.appendU8(c),e.appendMemarg(0,0),!0)}function pi(e,t,n){let r,o,a,s,i="math_lhs32",c="math_rhs32",l=!1;const p=bs[n];if(p){e.local("pLocals");const r=1==p;return Ks(e,Bs(t,2),r?43:42),r||e.appendU8(p),Ks(e,Bs(t,3),r?43:42),r||e.appendU8(p),e.i32_const(n),e.callImport("relop_fp"),ei(e,Bs(t,1),54),!0}switch(n){case 382:case 383:return hi(e,t,n);default:if(s=ys[n],!s)return!1;s.length>3?(r=s[1],o=s[2],a=s[3]):(r=o=s[1],a=s[2])}switch(n){case 356:case 357:case 360:case 361:case 380:case 381:case 384:case 385:{const a=361===n||385===n||357===n||381===n;i=a?"math_lhs64":"math_lhs32",c=a?"math_rhs64":"math_rhs32",e.block(),Ks(e,Bs(t,2),r),e.local(i,33),Ks(e,Bs(t,3),o),e.local(c,34),l=!0,a&&(e.appendU8(80),e.appendU8(69)),e.appendU8(13),e.appendULeb(0),Pa(e,t,12),e.endBlock(),356!==n&&380!==n&&357!==n&&381!==n||(e.block(),e.local(c),a?e.i52_const(-1):e.i32_const(-1),e.appendU8(a?82:71),e.appendU8(13),e.appendULeb(0),e.local(i),e.appendU8(a?66:65),e.appendBoundaryValue(a?64:32,-1),e.appendU8(a?82:71),e.appendU8(13),e.appendULeb(0),Pa(e,t,13),e.endBlock());break}case 362:case 364:case 366:case 368:Ks(e,Bs(t,2),r),e.local(i,34),Ks(e,Bs(t,3),o),e.local(c,34),e.i32_const(n),e.callImport(364===n||368===n?"ckovr_u4":"ckovr_i4"),e.block(64,4),Pa(e,t,13),e.endBlock(),l=!0}return e.local("pLocals"),l?(e.local(i),e.local(c)):(Ks(e,Bs(t,2),r),Ks(e,Bs(t,3),o)),e.appendU8(s[0]),ei(e,Bs(t,1),a),!0}function ui(e,t,n){const r=gs[n];if(!r)return!1;const o=r[1],a=r[2];switch((n<472||n>507)&&e.local("pLocals"),n){case 428:case 430:Ks(e,Bs(t,2),o),e.i32_const(1);break;case 432:e.i32_const(0),Ks(e,Bs(t,2),o);break;case 436:Ks(e,Bs(t,2),o),e.i32_const(-1);break;case 444:case 445:Ks(e,Bs(t,2),o),41===o&&e.appendU8(167),e.i32_const(255);break;case 452:case 453:Ks(e,Bs(t,2),o),41===o&&e.appendU8(167),e.i32_const(65535);break;case 440:case 441:Ks(e,Bs(t,2),o),41===o&&e.appendU8(167),e.i32_const(24),e.appendU8(116),e.i32_const(24);break;case 448:case 449:Ks(e,Bs(t,2),o),41===o&&e.appendU8(167),e.i32_const(16),e.appendU8(116),e.i32_const(16);break;case 429:case 431:Ks(e,Bs(t,2),o),e.i52_const(1);break;case 433:e.i52_const(0),Ks(e,Bs(t,2),o);break;case 437:Ks(e,Bs(t,2),o),e.i52_const(-1);break;case 511:case 515:case 519:case 521:case 525:case 527:case 523:case 638:case 640:Ks(e,Bs(t,2),o),e.i32_const(Ns(t,3));break;case 512:case 516:case 520:case 522:Ks(e,Bs(t,2),o),e.i32_const(Cs(t,3));break;case 513:case 517:case 526:case 528:case 524:case 639:case 641:Ks(e,Bs(t,2),o),e.i52_const(Ns(t,3));break;case 514:case 518:Ks(e,Bs(t,2),o),e.i52_const(Cs(t,3));break;default:Ks(e,Bs(t,2),o)}return 1!==r[0]&&e.appendU8(r[0]),ei(e,Bs(t,1),a),!0}function di(e,t,n,r){const o=133===r?t+6:t+8,a=Fs(n,B(o-2));e.local("pLocals"),e.ptr_const(o),e.appendU8(54),e.appendMemarg(a,0),e.callHandlerReturnAddresses.push(o)}function fi(e,t){const n=o.mono_jiterp_get_opcode_info(t,4),r=e+2+2*o.mono_jiterp_get_opcode_info(t,2);let a;switch(n){case 7:a=O(r);break;case 8:a=M(r);break;case 17:a=M(r+2);break;default:return}return a}function _i(e,t,n,r){const a=r>=227&&r<=270,s=fi(t,r);if("number"!=typeof s)return!1;switch(r){case 132:case 133:case 128:case 129:{const a=132===r||133===r,i=t+2*s;return s<=0?e.backBranchOffsets.indexOf(i)>=0?(e.backBranchTraceLevel>1&&Fe(`0x${t.toString(16)} performing backward branch to 0x${i.toString(16)}`),a&&di(e,t,n,r),e.cfg.branch(i,!0,0),ls(9,1),!0):(i1||e.cfg.trace>1)&&Fe(`0x${t.toString(16)} ${ja(r)} target 0x${i.toString(16)} before start of trace`):(e.backBranchTraceLevel>0||e.cfg.trace>0)&&Fe(`0x${t.toString(16)} ${ja(r)} target 0x${i.toString(16)} not found in list `+e.backBranchOffsets.map((e=>"0x"+e.toString(16))).join(", ")),o.mono_jiterp_boost_back_branch_target(i),Pa(e,i,5),ls(10,1),!0):(e.branchTargets.add(i),a&&di(e,t,n,r),e.cfg.branch(i,!1,0),!0)}case 145:case 143:case 229:case 227:case 146:case 144:{const n=146===r||144===r;Ks(e,Bs(t,1),n?41:40),143===r||227===r?e.appendU8(69):144===r?e.appendU8(80):146===r&&(e.appendU8(80),e.appendU8(69));break}default:if(void 0===ws[r])throw new Error(`Unsupported relop branch opcode: ${ja(r)}`);if(4!==o.mono_jiterp_get_opcode_info(r,1))throw new Error(`Unsupported long branch opcode: ${ja(r)}`)}const i=t+2*s;return s<0?e.backBranchOffsets.indexOf(i)>=0?(e.backBranchTraceLevel>1&&Fe(`0x${t.toString(16)} performing conditional backward branch to 0x${i.toString(16)}`),e.cfg.branch(i,!0,a?3:1),ls(9,1)):(i1||e.cfg.trace>1)&&Fe(`0x${t.toString(16)} ${ja(r)} target 0x${i.toString(16)} before start of trace`):(e.backBranchTraceLevel>0||e.cfg.trace>0)&&Fe(`0x${t.toString(16)} ${ja(r)} target 0x${i.toString(16)} not found in list `+e.backBranchOffsets.map((e=>"0x"+e.toString(16))).join(", ")),o.mono_jiterp_boost_back_branch_target(i),e.block(64,4),Pa(e,i,5),e.endBlock(),ls(10,1)):(e.branchTargets.add(i),e.cfg.branch(i,!1,a?3:1)),!0}function mi(e,t,n,r){const o=ws[r];if(!o)return!1;const a=Array.isArray(o)?o[0]:o,s=ys[a],i=bs[a];if(!s&&!i)return!1;const c=s?s[1]:1===i?43:42;return Ks(e,Bs(t,1),c),s||1===i||e.appendU8(i),Array.isArray(o)&&o[1]?(e.appendU8(o[1]),e.appendLeb(Ns(t,2))):Ks(e,Bs(t,2),c),s||1==i||e.appendU8(i),s?e.appendU8(s[0]):(e.i32_const(a),e.callImport("relop_fp")),_i(e,t,n,r)}function hi(e,t,n){let r,o,a,s;const i=Bs(t,1),c=Bs(t,2),l=Bs(t,3),p=ks[n];if(!p)return!1;if(r=p[0],o=p[1],"string"==typeof p[2]?a=p[2]:s=p[2],e.local("pLocals"),r){if(Ks(e,c,o?42:43),s)e.appendU8(s);else{if(!a)throw new Error("internal error");e.callImport(a)}return ei(e,i,o?56:57),!0}if(Ks(e,c,o?42:43),Ks(e,l,o?42:43),s)e.appendU8(s);else{if(!a)throw new Error("internal error");e.callImport(a)}return ei(e,i,o?56:57),!0}function gi(e,t,n){const r=n>=87&&n<=112,o=n>=107&&n<=112,a=n>=95&&n<=106||n>=120&&n<=127||o,s=n>=101&&n<=106||n>=124&&n<=127||o;let i,c,l=-1,p=0,u=1;o?(i=Bs(t,1),c=Bs(t,2),l=Bs(t,3),p=Ns(t,4),u=Ns(t,5)):a?s?r?(i=Bs(t,1),c=Bs(t,2),p=Ns(t,3)):(i=Bs(t,2),c=Bs(t,1),p=Ns(t,3)):r?(i=Bs(t,1),c=Bs(t,2),l=Bs(t,3)):(i=Bs(t,3),c=Bs(t,1),l=Bs(t,2)):r?(c=Bs(t,2),i=Bs(t,1)):(c=Bs(t,1),i=Bs(t,2));let d,f=54;switch(n){case 87:case 95:case 101:case 107:d=44;break;case 88:case 96:case 102:case 108:d=45;break;case 89:case 97:case 103:case 109:d=46;break;case 90:case 98:case 104:case 110:d=47;break;case 113:case 120:case 124:d=40,f=58;break;case 114:case 121:case 125:d=40,f=59;break;case 91:case 99:case 105:case 111:case 115:case 122:case 126:case 119:d=40;break;case 93:case 117:d=42,f=56;break;case 94:case 118:d=43,f=57;break;case 92:case 100:case 106:case 112:case 116:case 123:case 127:d=41,f=55;break;default:return!1}const _=Zs(e,c,40,!0,!0);return _||ai(e,c,t,!1),r?(e.local("pLocals"),_?ut(Zs(e,c,40,!1,!0),"Unknown jiterpreter cprop failure"):e.local("cknull_ptr"),o?(Ks(e,l,40),0!==p&&(e.i32_const(p),e.appendU8(106),p=0),1!==u&&(e.i32_const(u),e.appendU8(108)),e.appendU8(106)):a&&l>=0?(Ks(e,l,40),e.appendU8(106)):p<0&&(e.i32_const(p),e.appendU8(106),p=0),e.appendU8(d),e.appendMemarg(p,0),ei(e,i,f)):119===n?(_?ut(Zs(e,c,40,!1,!0),"Unknown jiterpreter cprop failure"):e.local("cknull_ptr"),ti(e,i,0),e.callImport("copy_ptr")):(_?ut(Zs(e,c,40,!1,!0),"Unknown jiterpreter cprop failure"):e.local("cknull_ptr"),a&&l>=0?(Ks(e,l,40),e.appendU8(106)):p<0&&(e.i32_const(p),e.appendU8(106),p=0),Ks(e,i,d),e.appendU8(f),e.appendMemarg(p,0)),!0}function bi(e,t,n,r,o){e.block(),Ks(e,r,40),e.local("index",34);let a="cknull_ptr";e.options.zeroPageOptimization&&rs()?(ls(8,1),Ks(e,n,40),a="src_ptr",e.local(a,34)):ai(e,n,t,!0),e.appendU8(40),e.appendMemarg(Ya(9),2),e.appendU8(73),e.appendU8(13),e.appendULeb(0),Pa(e,t,9),e.endBlock(),e.local(a),e.i32_const(Ya(1)),e.appendU8(106),e.local("index"),1!=o&&(e.i32_const(o),e.appendU8(108)),e.appendU8(106)}function yi(e,t,n,r){const o=r<=328&&r>=315||341===r,a=Bs(n,o?2:1),s=Bs(n,o?1:3),i=Bs(n,o?3:2);let c,l,p=54;switch(r){case 341:return e.local("pLocals"),ai(e,a,n,!0),e.appendU8(40),e.appendMemarg(Ya(9),2),ei(e,s,54),!0;case 326:return e.local("pLocals"),l=Bs(n,4),bi(e,n,a,i,l),ei(e,s,54),!0;case 337:return e.block(),Ks(e,Bs(n,1),40),Ks(e,Bs(n,2),40),Ks(e,Bs(n,3),40),e.callImport("stelemr_tc"),e.appendU8(13),e.appendULeb(0),Pa(e,n,10),e.endBlock(),!0;case 340:return bi(e,n,a,i,4),ti(e,s,0),e.callImport("copy_ptr"),!0;case 324:case 320:case 319:case 333:l=4,c=40;break;case 315:l=1,c=44;break;case 316:l=1,c=45;break;case 330:case 329:l=1,c=40,p=58;break;case 317:l=2,c=46;break;case 318:l=2,c=47;break;case 332:case 331:l=2,c=40,p=59;break;case 322:case 335:l=4,c=42,p=56;break;case 321:case 334:l=8,c=41,p=55;break;case 323:case 336:l=8,c=43,p=57;break;case 325:{const t=Bs(n,4);return e.local("pLocals"),e.i32_const(Bs(n,1)),e.appendU8(106),bi(e,n,a,i,t),Ja(e,t),Xs(Bs(n,1),t),!0}case 338:{const r=Bs(n,5),o=Ds(t,Bs(n,4));return bi(e,n,a,i,r),ti(e,s,0),e.ptr_const(o),e.callImport("value_copy"),!0}case 339:{const t=Bs(n,5);return bi(e,n,a,i,t),ti(e,s,0),Ja(e,t),!0}default:return!1}return o?(e.local("pLocals"),bi(e,n,a,i,l),e.appendU8(c),e.appendMemarg(0,0),ei(e,s,p)):(bi(e,n,a,i,l),Ks(e,s,c),e.appendU8(p),e.appendMemarg(0,0)),!0}function wi(){return void 0!==Ws||(Ws=!0===ot.featureWasmSimd,Ws||Fe("Disabling Jiterpreter SIMD")),Ws}function ki(e,t,n){const r=`${t}_${n.toString(16)}`;return"object"!=typeof e.importedFunctions[r]&&e.defineImportedFunction("s",r,t,!1,n),r}function Si(e,t,n,r,a,s){if(e.options.enableSimd&&wi())switch(a){case 2:if(function(e,t,n){const r=o.mono_jiterp_get_simd_opcode(1,n);if(r>=0)return js.has(n)?(e.local("pLocals"),Ks(e,Bs(t,2),40),e.appendSimd(r,!0),e.appendMemarg(0,0),vi(e,t)):(Ui(e,t),e.appendSimd(r),vi(e,t)),!0;const a=Ls[n];if(a)return Ui(e,t),e.appendSimd(a),ei(e,Bs(t,1),54),!0;switch(n){case 6:case 7:case 8:case 9:{const r=Rs[n];return e.local("pLocals"),e.v128_const(0),Ks(e,Bs(t,2),r[0]),e.appendSimd(r[1]),e.appendU8(0),ei(e,Bs(t,1),253,11),!0}case 14:return Ui(e,t,7),vi(e,t),!0;case 15:return Ui(e,t,8),vi(e,t),!0;case 16:return Ui(e,t,9),vi(e,t),!0;case 17:return Ui(e,t,10),vi(e,t),!0;default:return!1}}(e,t,s))return!0;break;case 3:if(function(e,t,n){const r=o.mono_jiterp_get_simd_opcode(2,n);if(r>=0){const o=xs.has(n),a=Is[n];if(o)e.local("pLocals"),Ks(e,Bs(t,2),253,0),Ks(e,Bs(t,3),40),e.appendSimd(r),vi(e,t);else if(Array.isArray(a)){const n=zs(e,Bs(t,3)),o=a[0];if("number"!=typeof n)return Pe(`${e.functions[0].name}: Non-constant lane index passed to ExtractScalar`),!1;if(n>=o||n<0)return Pe(`${e.functions[0].name}: ExtractScalar index ${n} out of range (0 - ${o-1})`),!1;e.local("pLocals"),Ks(e,Bs(t,2),253,0),e.appendSimd(r),e.appendU8(n),ei(e,Bs(t,1),a[1])}else Ei(e,t),e.appendSimd(r),vi(e,t);return!0}switch(n){case 191:return Ks(e,Bs(t,2),40),Ks(e,Bs(t,3),253,0),e.appendSimd(11),e.appendMemarg(0,0),!0;case 10:case 11:return Ei(e,t),e.appendSimd(214),e.appendSimd(195),11===n&&e.appendU8(69),ei(e,Bs(t,1),54),!0;case 12:case 13:{const r=13===n,o=r?71:65;return e.local("pLocals"),Ks(e,Bs(t,2),253,0),e.local("math_lhs128",34),Ks(e,Bs(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),ei(e,Bs(t,1),54),!0}case 47:{const n=Bs(t,3),r=zs(e,n);return e.local("pLocals"),Ks(e,Bs(t,2),253,0),"object"==typeof r?(e.appendSimd(12),e.appendBytes(r)):Ks(e,n,253,0),e.appendSimd(14),vi(e,t),!0}case 48:case 49:return function(e,t,n){const r=16/n,o=Bs(t,3),a=zs(e,o);if(2!==r&&4!==r&&ut(!1,"Unsupported shuffle element size"),e.local("pLocals"),Ks(e,Bs(t,2),253,0),"object"==typeof a){const t=new Uint8Array(_c),o=2===r?new Uint16Array(a.buffer,a.byteOffset,n):new Uint32Array(a.buffer,a.byteOffset,n);for(let e=0,a=0;e=0){const o=As[n],a=$s[n];if(Array.isArray(o)){const n=o[0],a=zs(e,Bs(t,3));if("number"!=typeof a)return Pe(`${e.functions[0].name}: Non-constant lane index passed to ReplaceScalar`),!1;if(a>=n||a<0)return Pe(`${e.functions[0].name}: ReplaceScalar index ${a} out of range (0 - ${n-1})`),!1;e.local("pLocals"),Ks(e,Bs(t,2),253,0),Ks(e,Bs(t,4),o[1]),e.appendSimd(r),e.appendU8(a),vi(e,t)}else if(Array.isArray(a)){const n=a[0],o=zs(e,Bs(t,4));if("number"!=typeof o)return Pe(`${e.functions[0].name}: Non-constant lane index passed to store method`),!1;if(o>=n||o<0)return Pe(`${e.functions[0].name}: Store lane ${o} out of range (0 - ${n-1})`),!1;Ks(e,Bs(t,2),40),Ks(e,Bs(t,3),253,0),e.appendSimd(r),e.appendMemarg(0,0),e.appendU8(o)}else!function(e,t){e.local("pLocals"),Ks(e,Bs(t,2),253,0),Ks(e,Bs(t,3),253,0),Ks(e,Bs(t,4),253,0)}(e,t),e.appendSimd(r),vi(e,t);return!0}switch(n){case 0:return e.local("pLocals"),Ks(e,Bs(t,3),253,0),Ks(e,Bs(t,4),253,0),Ks(e,Bs(t,2),253,0),e.appendSimd(82),vi(e,t),!0;case 7:{const n=zs(e,Bs(t,4));if("object"!=typeof n)return Pe(`${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 Pe(`${e.functions[0].name}: Shuffle lane index #${t} (${r}) out of range (0 - 31)`),!1}return e.local("pLocals"),Ks(e,Bs(t,2),253,0),Ks(e,Bs(t,3),253,0),e.appendSimd(13),e.appendBytes(n),vi(e,t),!0}default:return!1}}(e,t,s))return!0}switch(n){case 650:if(e.options.enableSimd&&wi()){e.local("pLocals");const n=Y().slice(t+4,t+4+_c);e.v128_const(n),vi(e,t),Ps.set(Bs(t,1),{type:"v128",value:n})}else ti(e,Bs(t,1),_c),e.ptr_const(t+4),Ja(e,_c);return!0;case 651:case 652:case 653:case 654:{const r=Us[n],o=_c/r,a=Bs(t,1),s=Bs(t,2),i=Es[n],c=Ts[n];for(let t=0;t2;return e.local("pLocals"),ai(e,Bs(t,2),t,!0),Ks(e,Bs(t,3),n?41:40),e.appendAtomic(r[0],!1),e.appendMemarg(0,r[2]),0!==r[1]&&e.appendU8(r[1]),ei(e,Bs(t,1),n?55:54),!0}const o=vs[n];if(o){const n=o[2]>2;return e.local("pLocals"),ai(e,Bs(t,2),t,!0),Ks(e,Bs(t,4),n?41:40),Ks(e,Bs(t,3),n?41:40),e.appendAtomic(o[0],!1),e.appendMemarg(0,o[2]),0!==o[1]&&e.appendU8(o[1]),ei(e,Bs(t,1),n?55:54),!0}return!1}const xi=64;let Ii,Ai,ji,$i=0;const Li={};function Ri(){return Ai||(Ai=[ts("interp_entry_prologue",Za("mono_jiterp_interp_entry_prologue")),ts("interp_entry",Za("mono_jiterp_interp_entry")),ts("unbox",Za("mono_jiterp_object_unbox")),ts("stackval_from_data",Za("mono_jiterp_stackval_from_data"))],Ai)}let Bi,Ni=class{constructor(e,t,n,r,o,a,s,i){this.imethod=e,this.method=t,this.argumentCount=n,this.unbox=o,this.hasThisReference=a,this.hasReturnValue=s,this.paramTypes=new Array(n);for(let e=0;ee&&(n=n.substring(n.length-e,n.length)),n=`${this.imethod.toString(16)}_${n}`}else n=`${this.imethod.toString(16)}_${this.hasThisReference?"i":"s"}${this.hasReturnValue?"_r":""}_${this.argumentCount}`;this.traceName=n}finally{e&&Xe._free(e)}}getTraceName(){return this.traceName||this.generateName(),this.traceName||"unknown"}getName(){return this.name||this.generateName(),this.name||"unknown"}};function Ci(){const e=[];let t=0;for(;0!=(t=o.mono_jiterp_tlqueue_next(1));){const n=Li[t];n?e.push(n):Fe(`Failed to find corresponding info for method ptr ${t} from jit queue!`)}if(!e.length)return;const n=4*e.length+1;let r=Ii;if(r?r.clear(n):(Ii=r=new Na(n),r.defineType("unbox",{pMonoObject:127},127,!0),r.defineType("interp_entry_prologue",{pData:127,this_arg:127},127,!0),r.defineType("interp_entry",{pData:127,res:127},64,!0),r.defineType("stackval_from_data",{type:127,result:127,value:127},64,!0)),r.options.wasmBytesLimit<=cs(6))return;const a=Ma();let s=0,i=!0,c=!1;try{r.appendU32(1836278016),r.appendU32(1);for(let t=0;tYi[o.mono_jiterp_type_to_ldind(e)])),this.enableDirect=ps().directJitCalls&&!this.noWrapper&&this.wasmNativeReturnType&&(0===this.wasmNativeSignature.length||this.wasmNativeSignature.every((e=>e))),this.enableDirect&&(this.target=this.addr);let c=this.target.toString(16);const l=Hi++;this.name=`${this.enableDirect?"jcp":"jcw"}_${c}_${l.toString(16)}`}}function Xi(e){let t=Wi[e];return t||(e>=Wi.length&&(Wi.length=e+1),Vi||(Vi=za()),Wi[e]=t=Vi.get(e)),t}function Qi(){const e=[];let t=0;for(;0!=(t=o.mono_jiterp_tlqueue_next(0));){const n=Gi[t];if(n)for(let t=0;t0){o.mono_jiterp_register_jit_call_thunk(n.cinfo,r);for(let e=0;e0&&(gc.push(["trace_eip","trace_eip",Uc]),gc.push(["trace_args","trace_eip",Ec]));const e=(e,t)=>{for(let n=0;n>>0,rc.operand2=t>>>0}function Tc(e,t,n,r){if("number"==typeof r)o.mono_jiterp_adjust_abort_count(r,1),r=ja(r);else{let e=uc[r];"number"!=typeof e?e=1:e++,uc[r]=e}dc[e].abortReason=r}function xc(e){if(!ot.runtimeReady)return;if(oc||(oc=ps()),!oc.enableStats)return;const t=cs(9),n=cs(10),r=cs(7),a=cs(8),s=cs(3),i=cs(4),c=cs(2),l=cs(1),p=cs(0),u=cs(6),d=cs(11),f=cs(12),_=t/(t+n)*100,m=o.mono_jiterp_get_rejected_trace_count(),h=oc.eliminateNullChecks?r.toString():"off",g=oc.zeroPageOptimization?a.toString()+(rs()?"":" (disabled)"):"off",b=oc.enableBackwardBranches?`emitted: ${t}, failed: ${n} (${_.toFixed(1)}%)`:": off",y=s?oc.directJitCalls?`direct jit calls: ${i} (${(i/s*100).toFixed(1)}%)`:"direct jit calls: off":"";if(Fe(`// jitted ${u} bytes; ${l} traces (${(l/p*100).toFixed(1)}%) (${m} rejected); ${s} jit_calls; ${c} interp_entries`),Fe(`// cknulls eliminated: ${h}, fused: ${g}; back-branches ${b}; ${y}`),Fe(`// time: ${0|d}ms generating, ${0|f}ms compiling wasm.`),!e){if(oc.countBailouts){const e=Object.values(dc);e.sort(((e,t)=>(t.bailoutCount||0)-(e.bailoutCount||0)));for(let e=0;et.hitCount-e.hitCount)),Fe("// 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++,Fe(`${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])),Fe("// heat:");for(let e=0;e0?uc[t]=n:delete uc[t]}const e=Object.keys(uc);e.sort(((e,t)=>uc[t]-uc[e]));for(let t=0;te.toString(16).padStart(2,"0"))).join("")}`}async function Rc(e){const t=at.config.resources.lazyAssembly;if(!t)throw new Error("No assemblies have been marked as lazy-loadable. Use the 'BlazorWebAssemblyLazyLoad' item group in your project file to enable lazy loading an assembly.");let n=e;e.endsWith(".dll")?n=e.substring(0,e.length-4):e.endsWith(".wasm")&&(n=e.substring(0,e.length-5));const r=n+".dll",o=n+".wasm";if(at.config.resources.fingerprinting){const t=at.config.resources.fingerprinting;for(const n in t){const a=t[n];if(a==r||a==o){e=n;break}}}if(!t[e])if(t[r])e=r;else{if(!t[o])throw new Error(`${e} must be marked with 'BlazorWebAssemblyLazyLoad' item group in your project file to allow lazy-loading.`);e=o}const a={name:e,hash:t[e],behavior:"assembly"};if(at.loadedAssemblies.includes(e))return!1;let s=n+".pdb",i=!1;if(0!=at.config.debugLevel&&(i=Object.prototype.hasOwnProperty.call(t,s),at.config.resources.fingerprinting)){const e=at.config.resources.fingerprinting;for(const t in e)if(e[t]==s){s=t,i=!0;break}}const c=at.retrieve_asset_download(a);let l=null,p=null;if(i){const e=t[s]?at.retrieve_asset_download({name:s,hash:t[s],behavior:"pdb"}):Promise.resolve(null),[n,r]=await Promise.all([c,e]);l=new Uint8Array(n),p=r?new Uint8Array(r):null}else{const e=await c;l=new Uint8Array(e),p=null}return function(e,t){at.assert_runtime_running();const n=Xe.stackSave();try{const n=xn(4),r=In(n,2),o=In(n,3);Mn(r,21),Mn(o,21),yo(r,e,4),yo(o,t,4),gn(mn.LoadLazyAssembly,n)}finally{Xe.stackRestore(n)}}(l,p),!0}async function Bc(e){const t=at.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(at.retrieve_asset_download(o))}return n})).reduce(((e,t)=>e.concat(t)),new Array).map((async e=>{const t=await e;!function(e){at.assert_runtime_running();const t=Xe.stackSave();try{const t=xn(3),n=In(t,2);Mn(n,21),yo(n,e,4),gn(mn.LoadSatelliteAssembly,t)}finally{Xe.stackRestore(t)}}(new Uint8Array(t))})))}function Nc(e){if(e===c)return null;const t=o.mono_wasm_read_as_bool_or_null_unsafe(e);return 0!==t&&(1===t||null)}var Cc,Oc;function Dc(e){if(e)try{(e=e.toLocaleLowerCase()).includes("zh")&&(e=e.replace("chs","HANS").replace("cht","HANT"));const t=Intl.getCanonicalLocales(e.replace("_","-"));return t.length>0?t[0]:void 0}catch(e){return}}!function(e){e[e.Sending=0]="Sending",e[e.Closed=1]="Closed",e[e.Error=2]="Error"}(Cc||(Cc={})),function(e){e[e.Idle=0]="Idle",e[e.PartialCommand=1]="PartialCommand",e[e.Error=2]="Error"}(Oc||(Oc={}));const Fc=[function(e){qo&&(globalThis.clearTimeout(qo),qo=void 0),qo=Xe.safeSetTimeout(mono_wasm_schedule_timer_tick,e)},function(e,t,n,r,o){if(!0!==ot.mono_wasm_runtime_is_ready)return;const a=Y(),s=0!==e?xe(e).concat(".dll"):"",i=dt(new Uint8Array(a.buffer,t,n));let c;r&&(c=dt(new Uint8Array(a.buffer,r,o))),It({eventName:"AssemblyLoaded",assembly_name:s,assembly_b64:i,pdb_b64:c})},function(e,t){const n=xe(t);Qe.logging&&"function"==typeof Qe.logging.debugger&&Qe.logging.debugger(e,n)},function(e,t,n,r){const o={res_ok:e,res:{id:t,value:dt(new Uint8Array(Y().buffer,n,r))}};_t.has(t)&&Me(`Adding an id (${t}) that already exists in commands_received`),_t.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(Y().buffer,e,t)))},mono_wasm_fire_debugger_agent_message_with_data_to_pause,function(){++Jo,Xe.safeSetTimeout(Yo,0)},function(e,t,n,r,a,s,i,c){if(n||ut(!1,"expected instruction pointer"),oc||(oc=ps()),!oc.enableTraces)return 1;if(oc.wasmBytesLimit<=cs(6))return 1;let l,p=dc[r];if(p||(dc[r]=p=new cc(n,r,i)),ls(0,1),oc.estimateHeat||sc.length>0||p.isVerbose){const e=o.mono_wasm_method_get_full_name(t);l=xe(e),Xe._free(e)}const u=xe(o.mono_wasm_method_get_name(t));p.name=l||u;let d=oc.noExitBackwardBranches?function(e,t,n){const r=t+n,a=[],s=(e-t)/2;for(;e=s&&a.push(t)}switch(r){case 132:case 133:a.push(n+i)}e+=2*i}else e+=2*i}return a.length<=0?null:new Uint16Array(a)}(n,a,s):null;if(d&&n!==a){const e=(n-a)/2;let t=!1;for(let n=0;n=e){t=!0;break}t||(d=null)}const f=function(e,t,n,r,a,s,i,c,l){let p=hc;p?p.clear(8):(hc=p=new Na(8),function(e){e.defineType("trace",{frame:127,pLocals:127,cinfo:127,ip:127},127,!0),e.defineType("bailout",{retval:127,base:127,reason:127},127,!0),e.defineType("copy_ptr",{dest:127,src:127},64,!0),e.defineType("value_copy",{dest:127,src:127,klass:127},64,!0),e.defineType("entry",{imethod:127},127,!0),e.defineType("strlen",{ppString:127,pResult:127},127,!0),e.defineType("getchr",{ppString:127,pIndex:127,pResult:127},127,!0),e.defineType("getspan",{destination:127,span:127,index:127,element_size:127},127,!0),e.defineType("overflow_check_i4",{lhs:127,rhs:127,opcode:127},127,!0),e.defineType("mathop_d_d",{value:124},124,!0),e.defineType("mathop_dd_d",{lhs:124,rhs:124},124,!0),e.defineType("mathop_f_f",{value:125},125,!0),e.defineType("mathop_ff_f",{lhs:125,rhs:125},125,!0),e.defineType("fmaf",{x:125,y:125,z:125},125,!0),e.defineType("fma",{x:124,y:124,z:124},124,!0),e.defineType("trace_eip",{traceId:127,eip:127},64,!0),e.defineType("newobj_i",{ppDestination:127,vtable:127},127,!0),e.defineType("newstr",{ppDestination:127,length:127},127,!0),e.defineType("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("stelemr",{o:127,aindex:127,ref:127},127,!0),e.defineType("simd_p_p",{arg0:127,arg1:127},64,!0),e.defineType("simd_p_pp",{arg0:127,arg1:127,arg2:127},64,!0),e.defineType("simd_p_ppp",{arg0:127,arg1:127,arg2:127,arg3:127},64,!0);const t=vc();for(let n=0;ni.indexOf(e)>=0))>=0;b&&!i&&ut(!1,"Expected methodFullName if trace is instrumented");const y=b?pc++:0;b&&(Fe(`instrumenting: ${i}`),lc[y]=new ic(i)),p.compressImportNames=!b;try{p.appendU32(1836278016),p.appendU32(1),p.generateTypeSection();const t={disp:127,cknull_ptr:127,dest_ptr:127,src_ptr:127,memop_dest:127,memop_src:127,index:127,count:127,math_lhs32:127,math_rhs32:127,math_lhs64:126,math_rhs64:126,temp_f32:125,temp_f64:124};p.options.enableSimd&&(t.v128_zero=123,t.math_lhs128=123,t.math_rhs128=123);let a=!0,i=0;if(p.defineFunction({type:"trace",name:d,export:!0,locals:t},(()=>{switch(p.base=n,p.traceIndex=s,p.frame=e,B(n)){case 672:case 673:case 675:case 674:break;default:throw new Error(`Expected *ip to be a jiterpreter opcode but it was ${B(n)}`)}return p.cfg.initialize(r,c,b?1:0),i=function(e,t,n,r,a,s,i,c){let l=!0,p=!1,u=!1,d=!1,f=0,_=0,m=0;Gs(),s.backBranchTraceLevel=i?2:0;let h=s.cfg.entry(n);for(;n&&n;){if(s.cfg.ip=n,n>=a){Tc(s.traceIndex,0,0,"end-of-body"),i&&Fe(`instrumented trace ${t} exited at end of body @${n.toString(16)}`);break}const g=3840-s.bytesGeneratedSoFar-s.cfg.overheadBytes;if(s.size>=g){Tc(s.traceIndex,0,0,"trace-too-big"),i&&Fe(`instrumented trace ${t} exited because of size limit at @${n.toString(16)} (spaceLeft=${g}b)`);break}let b=B(n);const y=o.mono_jiterp_get_opcode_info(b,2),w=o.mono_jiterp_get_opcode_info(b,3),k=o.mono_jiterp_get_opcode_info(b,1),S=b>=655&&b<=657,v=S?b-655+2:0,U=S?Bs(n,1+v):0;b>=0&&b<689||ut(!1,`invalid opcode ${b}`);const E=S?_s[v][U]:ja(b),T=n,x=s.options.noExitBackwardBranches&&Ms(n,r,c),I=s.branchTargets.has(n),A=x||I||l&&c,j=m+_+s.branchTargets.size;let $=!1,L=es(b);switch(x&&(s.backBranchTraceLevel>1&&Fe(`${t} recording back branch target 0x${n.toString(16)}`),s.backBranchOffsets.push(n)),A&&(u=!1,d=!1,Qs(s,n,x),p=!0,Gs(),m=0),L<-1&&p&&(L=-2===L?2:0),l=!1,271===b||(ac.indexOf(b)>=0?(Pa(s,n,23),b=676):u&&(b=676)),b){case 676:u&&(d||s.appendU8(0),d=!0);break;case 313:case 314:ni(s,Bs(n,1),0,Bs(n,2));break;case 312:ti(s,Bs(n,1)),Ks(s,Bs(n,2),40),s.local("frame"),s.callImport("localloc");break;case 285:Ks(s,Bs(n,1),40),s.i32_const(0),Ks(s,Bs(n,2),40),s.appendU8(252),s.appendU8(11),s.appendU8(0);break;case 286:Ks(s,Bs(n,1),40),qa(s,0,Bs(n,2));break;case 310:{const e=Bs(n,3),t=Bs(n,2),r=Bs(n,1),o=zs(s,e);0!==o&&("number"!=typeof o?(Ks(s,e,40),s.local("count",34),s.block(64,4)):(s.i32_const(o),s.local("count",33)),Ks(s,r,40),s.local("dest_ptr",34),s.appendU8(69),Ks(s,t,40),s.local("src_ptr",34),s.appendU8(69),s.appendU8(114),s.block(64,4),Pa(s,n,2),s.endBlock(),"number"==typeof o&&Ga(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 311:{const e=Bs(n,3),t=Bs(n,2);ai(s,Bs(n,1),n,!0),Ks(s,t,40),Ks(s,e,40),s.appendU8(252),s.appendU8(11),s.appendU8(0);break}case 143:case 145:case 227:case 229:case 144:case 146:case 129:case 132:case 133:_i(s,n,e,b)?p=!0:n=0;break;case 538:{const e=Bs(n,2),t=Bs(n,1);e!==t?(s.local("pLocals"),ai(s,e,n,!0),ei(s,t,54)):ai(s,e,n,!1),s.allowNullCheckOptimization&&Hs.set(t,n),$=!0;break}case 636:case 637:{const t=D(e+Ya(4));s.ptr_const(t),s.callImport("entry"),s.block(64,4),Pa(s,n,1),s.endBlock();break}case 674:L=0;break;case 138:break;case 86:{s.local("pLocals");const e=Bs(n,2),r=oi(s,e),o=Bs(n,1);r||Pe(`${t}: Expected local ${e} to have address taken flag`),ti(s,e),ei(s,o,54),Ps.set(o,{type:"ldloca",offset:e}),$=!0;break}case 272:case 300:case 301:case 556:{s.local("pLocals");let t=Ds(e,Bs(n,2));300===b&&(t=o.mono_jiterp_imethod_to_ftnptr(t)),s.ptr_const(t),ei(s,Bs(n,1),54);break}case 305:{const t=Ds(e,Bs(n,3));Ks(s,Bs(n,1),40),Ks(s,Bs(n,2),40),s.ptr_const(t),s.callImport("value_copy");break}case 306:{const e=Bs(n,3);Ks(s,Bs(n,1),40),Ks(s,Bs(n,2),40),Ja(s,e);break}case 307:{const e=Bs(n,3);ti(s,Bs(n,1),e),ai(s,Bs(n,2),n,!0),Ja(s,e);break}case 308:{const t=Ds(e,Bs(n,3));Ks(s,Bs(n,1),40),ti(s,Bs(n,2),0),s.ptr_const(t),s.callImport("value_copy");break}case 309:{const e=Bs(n,3);Ks(s,Bs(n,1),40),ti(s,Bs(n,2),0),Ja(s,e);break}case 540:s.local("pLocals"),ai(s,Bs(n,2),n,!0),s.appendU8(40),s.appendMemarg(Ya(2),2),ei(s,Bs(n,1),54);break;case 539:{s.block(),Ks(s,Bs(n,3),40),s.local("index",34);let e="cknull_ptr";s.options.zeroPageOptimization&&rs()?(ls(8,1),Ks(s,Bs(n,2),40),e="src_ptr",s.local(e,34)):ai(s,Bs(n,2),n,!0),s.appendU8(40),s.appendMemarg(Ya(2),2),s.appendU8(72),s.local("index"),s.i32_const(0),s.appendU8(78),s.appendU8(113),s.appendU8(13),s.appendULeb(0),Pa(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(Ya(3),1),ei(s,Bs(n,1),54);break}case 342:case 343:{const e=Ns(n,4);s.block(),Ks(s,Bs(n,3),40),s.local("index",34);let t="cknull_ptr";342===b?ai(s,Bs(n,2),n,!0):(ti(s,Bs(n,2),0),t="src_ptr",s.local(t,34)),s.appendU8(40),s.appendMemarg(Ya(7),2),s.appendU8(73),s.local("index"),s.i32_const(0),s.appendU8(78),s.appendU8(113),s.appendU8(13),s.appendULeb(0),Pa(s,n,18),s.endBlock(),s.local("pLocals"),s.local(t),s.appendU8(40),s.appendMemarg(Ya(8),2),s.local("index"),s.i32_const(e),s.appendU8(108),s.appendU8(106),ei(s,Bs(n,1),54);break}case 662:s.block(),Ks(s,Bs(n,3),40),s.local("count",34),s.i32_const(0),s.appendU8(78),s.appendU8(13),s.appendULeb(0),Pa(s,n,18),s.endBlock(),ti(s,Bs(n,1),16),s.local("dest_ptr",34),Ks(s,Bs(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 577:ti(s,Bs(n,1),8),ti(s,Bs(n,2),8),s.callImport("ld_del_ptr");break;case 73:ti(s,Bs(n,1),4),s.ptr_const(Cs(n,2)),s.callImport("ldtsflda");break;case 661:s.block(),ti(s,Bs(n,1),4),ti(s,Bs(n,2),0),s.callImport("gettype"),s.appendU8(13),s.appendULeb(0),Pa(s,n,2),s.endBlock();break;case 658:{const t=Ds(e,Bs(n,4));s.ptr_const(t),ti(s,Bs(n,1),4),ti(s,Bs(n,2),0),ti(s,Bs(n,3),0),s.callImport("hasflag");break}case 667:{const e=Ya(1);s.local("pLocals"),ai(s,Bs(n,2),n,!0),s.i32_const(e),s.appendU8(106),ei(s,Bs(n,1),54);break}case 659:s.local("pLocals"),ti(s,Bs(n,2),0),s.callImport("hashcode"),ei(s,Bs(n,1),54);break;case 660:s.local("pLocals"),ti(s,Bs(n,2),0),s.callImport("try_hash"),ei(s,Bs(n,1),54);break;case 663:s.local("pLocals"),ti(s,Bs(n,2),0),s.callImport("hascsize"),ei(s,Bs(n,1),54);break;case 668:s.local("pLocals"),Ks(s,Bs(n,2),40),s.local("math_lhs32",34),Ks(s,Bs(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),ei(s,Bs(n,1),54);break;case 541:case 542:s.block(),ti(s,Bs(n,1),4),ti(s,Bs(n,2),0),s.callImport(541===b?"array_rank":"a_elesize"),s.appendU8(13),s.appendULeb(0),Pa(s,n,2),s.endBlock();break;case 289:case 290:{const t=Ds(e,Bs(n,3)),r=o.mono_jiterp_is_special_interface(t),a=289===b,i=Bs(n,1);if(!t){Tc(s.traceIndex,0,0,"null-klass"),n=0;continue}s.block(),s.options.zeroPageOptimization&&rs()?(Ks(s,Bs(n,2),40),s.local("dest_ptr",34),ls(8,1)):(s.block(),Ks(s,Bs(n,2),40),s.local("dest_ptr",34),s.appendU8(13),s.appendULeb(0),s.local("pLocals"),s.i32_const(0),ei(s,i,54),s.appendU8(12),s.appendULeb(1),s.endBlock(),s.local("dest_ptr")),r&&s.local("dest_ptr"),s.appendU8(40),s.appendMemarg(Ya(14),0),s.ptr_const(t),s.callImport(r?"imp_iface_s":"imp_iface"),a&&(s.local("dest_ptr"),s.appendU8(69),s.appendU8(114)),s.block(64,4),s.local("pLocals"),s.local("dest_ptr"),ei(s,i,54),s.appendU8(5),a?Pa(s,n,19):(s.local("pLocals"),s.i32_const(0),ei(s,i,54)),s.endBlock(),s.endBlock();break}case 291:case 292:case 287:case 288:{const t=Ds(e,Bs(n,3)),r=291===b||292===b,o=287===b||291===b,a=Bs(n,1);if(!t){Tc(s.traceIndex,0,0,"null-klass"),n=0;continue}s.block(),s.options.zeroPageOptimization&&rs()?(Ks(s,Bs(n,2),40),s.local("dest_ptr",34),ls(8,1)):(s.block(),Ks(s,Bs(n,2),40),s.local("dest_ptr",34),s.appendU8(13),s.appendULeb(0),s.local("pLocals"),s.i32_const(0),ei(s,a,54),s.appendU8(12),s.appendULeb(1),s.endBlock(),s.local("dest_ptr")),s.appendU8(40),s.appendMemarg(Ya(14),0),s.appendU8(40),s.appendMemarg(Ya(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"),ei(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"),ei(s,a,54),s.appendU8(5),o?Pa(s,n,19):(s.local("pLocals"),s.i32_const(0),ei(s,a,54)),s.endBlock()):(ti(s,Bs(n,1),4),s.local("dest_ptr"),s.ptr_const(t),s.i32_const(b),s.callImport("castv2"),s.appendU8(69),s.block(64,4),Pa(s,n,19),s.endBlock()),s.endBlock(),s.endBlock();break}case 295:case 296:s.ptr_const(Ds(e,Bs(n,3))),ti(s,Bs(n,1),4),ti(s,Bs(n,2),0),s.i32_const(296===b?1:0),s.callImport("box");break;case 299:{const t=Ds(e,Bs(n,3)),r=Ya(17),o=Bs(n,1),a=D(t+r);if(!t||!a){Tc(s.traceIndex,0,0,"null-klass"),n=0;continue}s.options.zeroPageOptimization&&rs()?(Ks(s,Bs(n,2),40),s.local("dest_ptr",34),ls(8,1)):(ai(s,Bs(n,2),n,!0),s.local("dest_ptr",34)),s.appendU8(40),s.appendMemarg(Ya(14),0),s.appendU8(40),s.appendMemarg(Ya(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(Ya(16),0),s.appendU8(69),s.appendU8(113),s.block(64,4),s.local("pLocals"),s.local("dest_ptr"),s.i32_const(Ya(18)),s.appendU8(106),ei(s,o,54),s.appendU8(5),Pa(s,n,21),s.endBlock();break}case 294:s.block(),ti(s,Bs(n,1),4),Ks(s,Bs(n,2),40),s.callImport("newstr"),s.appendU8(13),s.appendULeb(0),Pa(s,n,17),s.endBlock();break;case 283:s.block(),ti(s,Bs(n,1),4),s.ptr_const(Ds(e,Bs(n,2))),s.callImport("newobj_i"),s.appendU8(13),s.appendULeb(0),Pa(s,n,17),s.endBlock();break;case 282:case 284:case 544:case 543:p?(Va(s,n,j,15),u=!0,L=0):n=0;break;case 546:case 547:case 548:case 549:case 545:p?(Va(s,n,j,545==b?22:15),u=!0):n=0;break;case 137:case 134:Pa(s,n,16),u=!0;break;case 130:case 131:Pa(s,n,26),u=!0;break;case 136:if(s.callHandlerReturnAddresses.length>0&&s.callHandlerReturnAddresses.length<=3){const t=Fs(e,Bs(n,1));s.local("pLocals"),s.appendU8(40),s.appendMemarg(t,0),s.local("index",33);for(let e=0;e=3&&b<=12||b>=509&&b<=510?p||s.options.countBailouts?(Pa(s,n,14),u=!0):n=0:b>=13&&b<=21?si(s,n,b)?$=!0:n=0:b>=74&&b<=85?ii(s,n,b)||(n=0):b>=344&&b<=427?pi(s,n,b)||(n=0):gs[b]?ui(s,n,b)||(n=0):ws[b]?mi(s,n,e,b)?p=!0:n=0:b>=23&&b<=49?ci(s,e,n,b)||(n=0):b>=50&&b<=73?li(s,e,n,b)||(n=0):b>=87&&b<=127?gi(s,n,b)||(n=0):b>=578&&b<=631?hi(s,n,b)||(n=0):b>=315&&b<=341?yi(s,e,n,b)||(n=0):b>=227&&b<=270?s.branchTargets.size>0?(Va(s,n,j,8),u=!0):n=0:b>=650&&b<=657?(s.containsSimd=!0,Si(s,n,b,E,v,U)?$=!0:n=0):b>=559&&b<=571?(s.containsAtomics=!0,Ti(s,n,b)||(n=0)):0===L||(n=0)}if(n){if(!$){const e=n+2;for(let t=0;t0&&(e+=" -> ");for(let n=0;n0&&(p?m++:_++,f+=L),(n+=2*k)<=a&&(h=n)}else i&&Fe(`instrumented trace ${t} aborted for opcode ${E} @${T.toString(16)}`),Tc(s.traceIndex,0,0,b)}for(;s.activeBlocks>0;)s.endBlock();return s.cfg.exitIp=h,s.containsSimd&&(f+=10240),f}(e,d,n,r,u,p,y,c),a=i>=oc.minimumTraceValue,p.cfg.generate()})),p.emitImportsAndFunctions(!1),!a)return g&&"end-of-body"===g.abortReason&&(g.abortReason="trace-too-small"),0;_=Ma();const f=p.getArrayView();if(ls(6,f.length),f.length>=4080)return Me(`Jiterpreter generated too much code (${f.length} bytes) for trace ${d}. Please report this issue.`),0;const h=new WebAssembly.Module(f),w=p.getWasmImports(),k=new WebAssembly.Instance(h,w).exports[d];let S;m=!1,l?(za().set(l,k),S=l):S=Ha(0,k);const v=cs(1);return p.options.enableStats&&v&&v%500==0&&xc(!0),S}catch(e){h=!0,m=!1;let t=p.containsSimd?" (simd)":"";return p.containsAtomics&&(t+=" (atomics)"),Pe(`${i||d}${t} code generation failed: ${e} ${e.stack}`),Xa(),0}finally{const e=Ma();if(_?(ls(11,_-f),ls(12,e-_)):ls(11,e-f),h||!m&&oc.dumpTraces||b){if(h||oc.dumpTraces||b)for(let e=0;e0;)p.endBlock();p.inSection&&p.endSection()}catch(e){}const n=p.getArrayView();for(let r=0;r=4?Ci():$i>0||"function"==typeof globalThis.setTimeout&&($i=globalThis.setTimeout((()=>{$i=0,Ci()}),10))}},function(e,t,n,r,o,a,s,i){if(n>16)return 0;const c=new Ni(e,t,n,r,o,a,s,i);ji||(ji=za());const l=ji.get(i),p=(a?s?29:20:s?11:2)+n;return c.result=Ha(p,l),Li[e]=c,c.result},function(e,t,n,r,a){const s=D(n+0),i=qi[s];if(i)return void(i.result>0?o.mono_jiterp_register_jit_call_thunk(n,i.result):(i.queue.push(n),i.queue.length>12&&Qi()));const c=new Ji(e,t,n,r,0!==a);qi[s]=c;const l=o.mono_jiterp_tlqueue_add(0,e);let p=Gi[e];p||(p=Gi[e]=[]),p.push(c),l>=6&&Qi()},function(e,t,n,r,a){const s=Xi(e);try{s(t,n,r,a)}catch(e){const t=Xe.wasmExports.__cpp_exception,n=t instanceof WebAssembly.Tag;if(n&&!(e instanceof WebAssembly.Exception&&e.is(t)))throw e;if(i=a,Xe.HEAPU32[i>>>2]=1,n){const n=e.getArg(t,0);o.mono_jiterp_begin_catch(n),o.mono_jiterp_end_catch()}else{if("number"!=typeof e)throw e;o.mono_jiterp_begin_catch(e),o.mono_jiterp_end_catch()}}var i},Qi,function(e,t,n){delete dc[n],function(e){delete Li[e]}(t),function(e){const t=Gi[e];if(t){for(let e=0;e{e&&e.dispose()},u=!0)}const d=jn(e,1),f=$n(d),_=Qr(d,f,1),m=26==f,h=20==f||30==f,g={fn:i,fqn:a+":"+o,args_count:c,arg_marshalers:l,res_converter:_,has_cleanup:u,arg_cleanup:p,is_discard_no_wait:m,is_async:h,isDisposed:!1};let b;b=h||m||u?nr(g):0!=c||_?1!=c||_?1==c&&_?function(e){const t=e.fn,r=e.arg_marshalers[0],o=e.res_converter,a=e.fqn;return e=null,function(s){const i=Bt();try{n&&e.isDisposed;const a=r(s),i=t(a);o(s,i)}catch(e){ho(s,e)}finally{Nt(i,"mono.callCsFunction:",a)}}}(g):2==c&&_?function(e){const t=e.fn,r=e.arg_marshalers[0],o=e.arg_marshalers[1],a=e.res_converter,s=e.fqn;return e=null,function(i){const c=Bt();try{n&&e.isDisposed;const s=r(i),c=o(i),l=t(s,c);a(i,l)}catch(e){ho(i,e)}finally{Nt(c,"mono.callCsFunction:",s)}}}(g):nr(g):function(e){const t=e.fn,r=e.arg_marshalers[0],o=e.fqn;return e=null,function(a){const s=Bt();try{n&&e.isDisposed;const o=r(a);t(o)}catch(e){ho(a,e)}finally{Nt(s,"mono.callCsFunction:",o)}}}(g):function(e){const t=e.fn,r=e.fqn;return e=null,function(o){const a=Bt();try{n&&e.isDisposed,t()}catch(e){ho(o,e)}finally{Nt(a,"mono.callCsFunction:",r)}}}(g);let y=b;y[vn]=g,tr[s]=y,Nt(t,"mono.bindJsFunction:",o)}(e),0}catch(e){return $e(function(e){let t="unknown exception";if(e){t=e.toString();const n=e.stack;n&&(n.startsWith(t)?t=n:t+="\n"+n),t=We(t)}return t}(e))}},function(e,t){!function(e,t){at.assert_runtime_running();const n=Nr(e);n&&"function"==typeof n&&n[Sn]||ut(!1,`Bound function handle expected ${e}`),n(t)}(e,t)},function(e,t){at.assert_runtime_running();const n=tr[e];n||ut(!1,`Imported function handle expected ${e}`),n(t)},function(e){fr((()=>function(e){if(!at.is_runtime_running())return void(at.diagnosticTracing&&De("This promise resolution/rejection can't be propagated to managed code, mono runtime already exited."));const t=In(e,0),r=n;try{at.assert_runtime_running();const n=In(e,1),o=In(e,2),a=In(e,3),s=Dn(o),i=qn(o),c=Nr(i);c||ut(!1,`Cannot find Promise for JSHandle ${i}`),c.resolve_or_reject(s,i,a),r||(Mn(n,1),Mn(t,0))}catch(e){ho(t,e)}}(e)))},function(e){fr((()=>function(e){if(!at.is_runtime_running())return void(at.diagnosticTracing&&De("This promise can't be canceled, mono runtime already exited."));const t=Vr(e);t||ut(!1,`Expected Promise for GCHandle ${e}`),t.cancel()}(e)))},function(e,t,n,r,o,a,s){return"function"==typeof st.mono_wasm_change_case?st.mono_wasm_change_case(e,t,n,r,o,a,s):0},function(e,t,n,r,o,a,s,i){return"function"==typeof st.mono_wasm_compare_string?st.mono_wasm_compare_string(e,t,n,r,o,a,s,i):0},function(e,t,n,r,o,a,s,i){return"function"==typeof st.mono_wasm_starts_with?st.mono_wasm_starts_with(e,t,n,r,o,a,s,i):0},function(e,t,n,r,o,a,s,i){return"function"==typeof st.mono_wasm_ends_with?st.mono_wasm_ends_with(e,t,n,r,o,a,s,i):0},function(e,t,n,r,o,a,s,i,c){return"function"==typeof st.mono_wasm_index_of?st.mono_wasm_index_of(e,t,n,r,o,a,s,i,c):0},function(e,t,n,r,o,a){return"function"==typeof st.mono_wasm_get_calendar_info?st.mono_wasm_get_calendar_info(e,t,n,r,o,a):0},function(e,t,n,r,o){return"function"==typeof st.mono_wasm_get_culture_info?st.mono_wasm_get_culture_info(e,t,n,r,o):0},function(e,t,n){return"function"==typeof st.mono_wasm_get_first_day_of_week?st.mono_wasm_get_first_day_of_week(e,t,n):0},function(e,t,n){return"function"==typeof st.mono_wasm_get_first_week_of_year?st.mono_wasm_get_first_week_of_year(e,t,n):0},function(e,t,n,r,o,a,s){try{const i=Ie(n,n+2*r),c=Dc(i);if(!c&&i)return je(o,o+2*i.length,i),v(s,i.length),0;const l=Dc(Ie(e,e+2*t));if(!c||!l)throw new Error(`Locale or culture name is null or empty. localeName=${c}, cultureName=${l}`);const p=c.split("-");let u,d;try{const e=p.length>1?p.pop():void 0;d=e?new Intl.DisplayNames([l],{type:"region"}).of(e):void 0;const t=p.join("-");u=new Intl.DisplayNames([l],{type:"language"}).of(t)}catch(e){if(!(e instanceof RangeError))throw e;try{u=new Intl.DisplayNames([l],{type:"language"}).of(c)}catch(e){if(e instanceof RangeError&&i)return je(o,o+2*i.length,i),v(s,i.length),0;throw e}}const f={LanguageName:u,RegionName:d},_=Object.values(f).join("##");if(!_)throw new Error(`Locale info for locale=${c} is null or empty.`);if(_.length>a)throw new Error(`Locale info for locale=${c} exceeds length of ${a}.`);return je(o,o+2*_.length,_),v(s,_.length),0}catch(e){return v(s,-1),$e(e.toString())}}];async function Mc(e,t){try{const n=await Pc(e,t);return at.mono_exit(n),n}catch(e){try{at.mono_exit(1,e)}catch(e){}return e&&"number"==typeof e.status?e.status:1}}async function Pc(e,t){null!=e&&""!==e||(e=at.config.mainAssemblyName)||ut(!1,"Null or empty config.mainAssemblyName"),null==t&&(t=ot.config.applicationArguments),null==t&&(t=Ye?(await import(/*! webpackIgnore: true */"process")).argv.slice(2):[]),function(e,t){const n=t.length+1,r=Xe._malloc(4*n);let a=0;Xe.setValue(r+4*a,o.mono_wasm_strdup(e),"i32"),a+=1;for(let e=0;e{const t=setInterval((()=>{1==ot.waitForDebugger&&(clearInterval(t),e())}),100)})));try{return Xe.runtimeKeepalivePush(),await new Promise((e=>globalThis.setTimeout(e,0))),await function(e,t,n){at.assert_runtime_running();const r=Xe.stackSave();try{const r=xn(5),o=In(r,1),a=In(r,2),s=In(r,3),i=In(r,4),c=function(e){const t=Xe.lengthBytesUTF8(e)+1,n=Xe._malloc(t),r=Y().subarray(n,n+t);return Xe.stringToUTF8Array(e,r,0,t),r[t-1]=0,n}(e);io(a,c),wo(s,t&&!t.length?void 0:t,15),Zr(i,n);let l=tn(o,0,Ht);return hn(ot.managedThreadTID,mn.CallEntrypoint,r),l=nn(r,Ht,l),null==l&&(l=Promise.resolve(0)),l[Br]=!0,l}finally{Xe.stackRestore(r)}}(e,t,1==ot.waitForDebugger)}finally{Xe.runtimeKeepalivePop()}}function Vc(e){ot.runtimeReady&&(ot.runtimeReady=!1,o.mono_wasm_exit(e))}function zc(e){if(at.exitReason=e,ot.runtimeReady){ot.runtimeReady=!1;const t=qe(e);Xe.abort(t)}throw e}async function Hc(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),at.out=e.print,at.err=e.printErr,await async function(){var e;if(Ye){if(globalThis.performance===Uo){const{performance:e}=Qe.require("perf_hooks");globalThis.performance=e}if(Qe.process=await import(/*! webpackIgnore: true */"process"),globalThis.crypto||(globalThis.crypto={}),!globalThis.crypto.getRandomValues){let e;try{e=Qe.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.")}}}ot.subtle=null===(e=globalThis.crypto)||void 0===e?void 0:e.subtle}()}function Wc(e){const t=Bt();e.locateFile||(e.locateFile=e.__locateFile=e=>at.scriptDirectory+e),e.mainScriptUrlOrBlob=at.scriptUrl;const s=e.instantiateWasm,c=e.preInit?"function"==typeof e.preInit?[e.preInit]:e.preInit:[],l=e.preRun?"function"==typeof e.preRun?[e.preRun]:e.preRun:[],p=e.postRun?"function"==typeof e.postRun?[e.postRun]:e.postRun:[],u=e.onRuntimeInitialized?e.onRuntimeInitialized:()=>{};e.instantiateWasm=(e,t)=>function(e,t,n){const r=Bt();if(n){const o=n(e,((e,n)=>{Nt(r,"mono.instantiateWasm"),ot.afterInstantiateWasm.promise_control.resolve(),t(e,n)}));return o}return async function(e,t){try{await at.afterConfigLoaded,at.diagnosticTracing&&De("instantiate_wasm_module"),await ot.beforePreInit.promise,Xe.addRunDependency("instantiate_wasm_module"),await async function(){ot.featureWasmSimd=await at.simd(),ot.featureWasmEh=await at.exceptions(),ot.emscriptenBuildOptions.wasmEnableSIMD&&(ot.featureWasmSimd||ut(!1,"This browser/engine doesn't support WASM SIMD. Please use a modern version. See also https://aka.ms/dotnet-wasm-features")),ot.emscriptenBuildOptions.wasmEnableEH&&(ot.featureWasmEh||ut(!1,"This browser/engine doesn't support WASM exception handling. Please use a modern version. See also https://aka.ms/dotnet-wasm-features"))}(),function(e){const t=e.env||e.a;if(!t)return void Me("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(Fc.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 Fc.entries()){const o=n[e];if(void 0!==o){if("function"!=typeof t[o])throw new Error(`Expected ${o} to be a function`);t[o]=r}}}(e);const n=await at.wasmCompilePromise.promise;t(await WebAssembly.instantiate(n,e),n),at.diagnosticTracing&&De("instantiate_wasm_module done"),ot.afterInstantiateWasm.promise_control.resolve()}catch(e){throw Pe("instantiate_wasm_module() failed",e),at.mono_exit(1,e),e}Xe.removeRunDependency("instantiate_wasm_module")}(e,t),[]}(e,t,s),e.preInit=[()=>function(e){Xe.addRunDependency("mono_pre_init");const t=Bt();try{Xe.addRunDependency("mono_wasm_pre_init_essential"),at.diagnosticTracing&&De("mono_wasm_pre_init_essential"),at.gitHash!==ot.gitHash&&Me(`The version of dotnet.runtime.js ${ot.gitHash} is different from the version of dotnet.js ${at.gitHash}!`),at.gitHash!==ot.emscriptenBuildOptions.gitHash&&Me(`The version of dotnet.native.js ${ot.emscriptenBuildOptions.gitHash} is different from the version of dotnet.js ${at.gitHash}!`),n!==ot.emscriptenBuildOptions.wasmEnableThreads&&Me(`The threads of dotnet.native.js ${ot.emscriptenBuildOptions.wasmEnableThreads} is different from the version of dotnet.runtime.js ${n}!`),function(){const e=[...r];for(const t of e){const e=o,[n,r,a,s,c]=t,l="function"==typeof n;if(!0===n||l)e[r]=function(...t){!l||!n()||ut(!1,`cwrap ${r} should not be called when binding was skipped`);const o=i(r,a,s,c);return e[r]=o,o(...t)};else{const t=i(r,a,s,c);e[r]=t}}}(),s=Qe,Object.assign(s,{mono_wasm_exit:o.mono_wasm_exit,mono_wasm_profiler_init_aot:a.mono_wasm_profiler_init_aot,mono_wasm_profiler_init_browser:a.mono_wasm_profiler_init_browser,mono_wasm_exec_regression:o.mono_wasm_exec_regression,mono_wasm_print_thread_dump:void 0}),Xe.removeRunDependency("mono_wasm_pre_init_essential"),at.diagnosticTracing&&De("preInit"),ot.beforePreInit.promise_control.resolve(),e.forEach((e=>e()))}catch(e){throw Pe("user preInint() failed",e),at.mono_exit(1,e),e}var s;(async()=>{try{await async function(){at.diagnosticTracing&&De("mono_wasm_pre_init_essential_async"),Xe.addRunDependency("mono_wasm_pre_init_essential_async"),Xe.removeRunDependency("mono_wasm_pre_init_essential_async")}(),Nt(t,"mono.preInit")}catch(e){throw at.mono_exit(1,e),e}ot.afterPreInit.promise_control.resolve(),Xe.removeRunDependency("mono_pre_init")})()}(c)],e.preRun=[()=>async function(e){Xe.addRunDependency("mono_pre_run_async");try{await ot.afterInstantiateWasm.promise,await ot.afterPreInit.promise,at.diagnosticTracing&&De("preRunAsync");const t=Bt();e.map((e=>e())),Nt(t,"mono.preRun")}catch(e){throw Pe("preRunAsync() failed",e),at.mono_exit(1,e),e}ot.afterPreRun.promise_control.resolve(),Xe.removeRunDependency("mono_pre_run_async")}(l)],e.onRuntimeInitialized=()=>async function(e){try{await ot.afterPreRun.promise,at.diagnosticTracing&&De("onRuntimeInitialized"),ot.nativeExit=Vc,ot.nativeAbort=zc;const t=Bt();if(ot.beforeOnRuntimeInitialized.promise_control.resolve(),await ot.coreAssetsInMemory.promise,ot.config.virtualWorkingDirectory){const e=Xe.FS,t=ot.config.virtualWorkingDirectory;try{const n=e.stat(t);n?n&&e.isDir(n.mode)||ut(!1,`FS.chdir: ${t} is not a directory`):Xe.FS_createPath("/",t,!0,!0)}catch(e){Xe.FS_createPath("/",t,!0,!0)}e.chdir(t)}ot.config.interpreterPgo&&setTimeout(Gc,1e3*(ot.config.interpreterPgoSaveDelay||15)),Xe.runtimeKeepalivePush(),n||await async function(){try{const t=Bt();at.diagnosticTracing&&De("Initializing mono runtime");for(const e in ot.config.environmentVariables){const t=ot.config.environmentVariables[e];if("string"!=typeof t)throw new Error(`Expected environment variable '${e}' to be a string but it was ${typeof t}: '${t}'`);qc(e,t)}ot.config.runtimeOptions&&function(e){if(!Array.isArray(e))throw new Error("Expected runtimeOptions to be an array of strings");const t=Xe._malloc(4*e.length);let n=0;for(let r=0;raot; in your project file."),null==e&&(e={}),"writeAt"in e||(e.writeAt="System.Runtime.InteropServices.JavaScript.JavaScriptExports::StopProfile"),"sendTo"in e||(e.sendTo="Interop/Runtime::DumpAotProfileData");const t="aot:write-at-method="+e.writeAt+",send-to-method="+e.sendTo;a.mono_wasm_profiler_init_aot(t)}(ot.config.aotProfilerOptions),ot.config.browserProfilerOptions&&(ot.config.browserProfilerOptions,ot.emscriptenBuildOptions.enableBrowserProfiler||ut(!1,"Browser profiler is not enabled, please use browser; in your project file."),a.mono_wasm_profiler_init_browser("browser:")),ot.config.logProfilerOptions&&(e=ot.config.logProfilerOptions,ot.emscriptenBuildOptions.enableLogProfiler||ut(!1,"Log profiler is not enabled, please use log; in your project file."),e.takeHeapshot||ut(!1,"Log profiler is not enabled, the takeHeapshot method must be defined in LogProfilerOptions.takeHeapshot"),a.mono_wasm_profiler_init_log((e.configuration||"log:alloc,output=output.mlpd")+`,take-heapshot-method=${e.takeHeapshot}`)),function(){at.diagnosticTracing&&De("mono_wasm_load_runtime");try{const e=Bt();let t=ot.config.debugLevel;null==t&&(t=0,ot.config.debugLevel&&(t=0+t)),o.mono_wasm_load_runtime(t),Nt(e,"mono.loadRuntime")}catch(e){throw Pe("mono_wasm_load_runtime () failed",e),at.mono_exit(1,e),e}}(),function(){if(ds)return;ds=!0;const e=ps(),t=e.tableSize,n=ot.emscriptenBuildOptions.runAOTCompilation?e.tableSize:1,r=ot.emscriptenBuildOptions.runAOTCompilation?e.aotTableSize:1,a=t+n+36*r+1,s=za();let i=s.length;const c=performance.now();s.grow(a);const l=performance.now();e.enableStats&&Fe(`Allocated ${a} function table entries for jiterpreter, bringing total table size to ${s.length}`),i=us(0,i,t,Za("mono_jiterp_placeholder_trace")),i=us(1,i,n,Za("mono_jiterp_placeholder_jit_call"));for(let e=2;e<=37;e++)i=us(e,i,r,s.get(o.mono_jiterp_get_interp_entry_func(e)));const p=performance.now();e.enableStats&&Fe(`Growing wasm function table took ${l-c}. Filling table took ${p-l}.`)}(),function(){if(!ot.mono_wasm_bindings_is_ready){at.diagnosticTracing&&De("bindings_init"),ot.mono_wasm_bindings_is_ready=!0;try{const e=Bt();he||("undefined"!=typeof TextDecoder&&(be=new TextDecoder("utf-16le"),ye=new TextDecoder("utf-8",{fatal:!1}),we=new TextDecoder("utf-8"),ke=new TextEncoder),he=Xe._malloc(12)),Se||(Se=function(e){let t;if(le.length>0)t=le.pop();else{const e=function(){if(null==se||!ie){se=ue(ae,"js roots"),ie=new Int32Array(ae),ce=ae;for(let e=0;eat.loadedFiles.push(e.url))),at.diagnosticTracing&&De("all assets are loaded in wasm memory"))}(),Xc.registerRuntime(rt),0===at.config.debugLevel||ot.mono_wasm_runtime_is_ready||function mono_wasm_runtime_ready(){if(Qe.mono_wasm_runtime_is_ready=ot.mono_wasm_runtime_is_ready=!0,yt=0,bt={},wt=-1,globalThis.dotnetDebugger)debugger}(),0!==at.config.debugLevel&&at.config.cacheBootResources&&at.logDownloadStatsToConsole(),setTimeout((()=>{at.purgeUnusedCacheEntriesAsync()}),at.config.cachedResourcesPurgeDelay);try{e()}catch(e){throw Pe("user callback onRuntimeInitialized() failed",e),e}await async function(){at.diagnosticTracing&&De("mono_wasm_after_user_runtime_initialized");try{if(Xe.onDotnetReady)try{await Xe.onDotnetReady()}catch(e){throw Pe("onDotnetReady () failed",e),e}}catch(e){throw Pe("mono_wasm_after_user_runtime_initialized () failed",e),e}}(),Nt(t,"mono.onRuntimeInitialized")}catch(e){throw Xe.runtimeKeepalivePop(),Pe("onRuntimeInitializedAsync() failed",e),at.mono_exit(1,e),e}ot.afterOnRuntimeInitialized.promise_control.resolve()}(u),e.postRun=[()=>async function(e){try{await ot.afterOnRuntimeInitialized.promise,at.diagnosticTracing&&De("postRunAsync");const t=Bt();Xe.FS_createPath("/","usr",!0,!0),Xe.FS_createPath("/","usr/share",!0,!0),e.map((e=>e())),Nt(t,"mono.postRun")}catch(e){throw Pe("postRunAsync() failed",e),at.mono_exit(1,e),e}ot.afterPostRun.promise_control.resolve()}(p)],e.ready.then((async()=>{await ot.afterPostRun.promise,Nt(t,"mono.emscriptenStartup"),ot.dotnetReady.promise_control.resolve(rt)})).catch((e=>{ot.dotnetReady.promise_control.reject(e)})),e.ready=ot.dotnetReady.promise}function qc(e,t){o.mono_wasm_setenv(e,t)}async function Gc(){void 0!==at.exitCode&&0!==at.exitCode||await Ac()}async function Jc(e){}let Xc;function Qc(r){const o=Xe,a=r,s=globalThis;Object.assign(a.internal,{mono_wasm_exit:e=>{Xe.err("early exit "+e)},forceDisposeProxies:Hr,mono_wasm_dump_threads:void 0,logging:void 0,mono_wasm_stringify_as_error_with_stack:qe,mono_wasm_get_loaded_files:Ia,mono_wasm_send_dbg_command_with_parms:St,mono_wasm_send_dbg_command:vt,mono_wasm_get_dbg_command_info:Ut,mono_wasm_get_details:$t,mono_wasm_release_object:Rt,mono_wasm_call_function_on:jt,mono_wasm_debugger_resume:Et,mono_wasm_detach_debugger:Tt,mono_wasm_raise_debug_event:It,mono_wasm_change_debugger_log_level:xt,mono_wasm_debugger_attached:At,mono_wasm_runtime_is_ready:ot.mono_wasm_runtime_is_ready,mono_wasm_get_func_id_to_name_mappings:Je,get_property:ar,set_property:or,has_property:sr,get_typeof_property:ir,get_global_this:cr,get_dotnet_instance:()=>rt,dynamic_import:ur,mono_wasm_bind_cs_function:hr,ws_wasm_create:ha,ws_wasm_open:ga,ws_wasm_send:ba,ws_wasm_receive:ya,ws_wasm_close:wa,ws_wasm_abort:ka,ws_get_state:ma,http_wasm_supports_streaming_request:Ao,http_wasm_supports_streaming_response:jo,http_wasm_create_controller:$o,http_wasm_get_response_type:Fo,http_wasm_get_response_status:Mo,http_wasm_abort:Ro,http_wasm_transform_stream_write:Bo,http_wasm_transform_stream_close:No,http_wasm_fetch:Do,http_wasm_fetch_stream:Co,http_wasm_fetch_bytes:Oo,http_wasm_get_response_header_names:Po,http_wasm_get_response_header_values:Vo,http_wasm_get_response_bytes:Ho,http_wasm_get_response_length:zo,http_wasm_get_streamed_response_bytes:Wo,jiterpreter_dump_stats:xc,jiterpreter_apply_options:is,jiterpreter_get_options:ps,interp_pgo_load_data:jc,interp_pgo_save_data:Ac,mono_wasm_gc_lock:re,mono_wasm_gc_unlock:oe,monoObjectAsBoolOrNullUnsafe:Nc,monoStringToStringUnsafe:Ce,loadLazyAssembly:Rc,loadSatelliteAssemblies:Bc});const i={stringify_as_error_with_stack:qe,instantiate_symbols_asset:Ta,instantiate_asset:Ea,jiterpreter_dump_stats:xc,forceDisposeProxies:Hr,instantiate_segmentation_rules_asset:xa};"hybrid"===at.config.globalizationMode&&(i.stringToUTF16=je,i.stringToUTF16Ptr=$e,i.utf16ToString=Ie,i.utf16ToStringLoop=Ae,i.localHeapViewU16=Z,i.setU16_local=y,i.setI32=v),Object.assign(ot,i);const c={runMain:Pc,runMainAndExit:Mc,exit:at.mono_exit,setEnvironmentVariable:qc,getAssemblyExports:yr,setModuleImports:rr,getConfig:()=>ot.config,invokeLibraryInitializers:at.invokeLibraryInitializers,setHeapB32:m,setHeapB8:h,setHeapU8:g,setHeapU16:b,setHeapU32:w,setHeapI8:k,setHeapI16:S,setHeapI32:v,setHeapI52:E,setHeapU52:T,setHeapI64Big:x,setHeapF32:I,setHeapF64:A,getHeapB32:$,getHeapB8:L,getHeapU8:R,getHeapU16:B,getHeapU32:N,getHeapI8:F,getHeapI16:M,getHeapI32:P,getHeapI52:V,getHeapU52:z,getHeapI64Big:H,getHeapF32:W,getHeapF64:q,localHeapViewU8:Y,localHeapViewU16:Z,localHeapViewU32:K,localHeapViewI8:G,localHeapViewI16:J,localHeapViewI32:X,localHeapViewI64Big:Q,localHeapViewF32:ee,localHeapViewF64:te};return Object.assign(rt,{INTERNAL:a.internal,Module:o,runtimeBuildInfo:{productVersion:e,gitHash:ot.gitHash,buildConfiguration:t,wasmEnableThreads:n,wasmEnableSIMD:!0,wasmEnableExceptionHandling:!0},...c}),s.getDotnetRuntime?Xc=s.getDotnetRuntime.__list:(s.getDotnetRuntime=e=>s.getDotnetRuntime.__list.getRuntime(e),s.getDotnetRuntime.__list=Xc=new Yc),rt}class Yc{constructor(){this.list={}}registerRuntime(e){return void 0===e.runtimeId&&(e.runtimeId=Object.keys(this.list).length),this.list[e.runtimeId]=mr(e),at.config.runtimeId=e.runtimeId,e.runtimeId}getRuntime(e){const t=this.list[e];return t?t.deref():void 0}}export{Wc as configureEmscriptenStartup,Hc as configureRuntimeStartup,Jc as configureWorkerStartup,Qc as initializeExports,Eo as initializeReplacements,ct as passEmscriptenInternals,Xc as runtimeList,lt as setRuntimeGlobals}; +//# sourceMappingURL=dotnet.runtime.js.map diff --git a/_framework/dotnet.runtime.tsg4gsv2hg.js.br b/_framework/dotnet.runtime.tsg4gsv2hg.js.br new file mode 100644 index 00000000..27d1b699 Binary files /dev/null and b/_framework/dotnet.runtime.tsg4gsv2hg.js.br differ diff --git a/_framework/dotnet.runtime.tsg4gsv2hg.js.gz b/_framework/dotnet.runtime.tsg4gsv2hg.js.gz new file mode 100644 index 00000000..dd30ce1a Binary files /dev/null and b/_framework/dotnet.runtime.tsg4gsv2hg.js.gz differ diff --git a/_framework/icudt_CJK.tjcz0u77k5.dat b/_framework/icudt_CJK.tjcz0u77k5.dat new file mode 100755 index 00000000..118a60d5 Binary files /dev/null and b/_framework/icudt_CJK.tjcz0u77k5.dat differ diff --git a/_framework/icudt_CJK.tjcz0u77k5.dat.br b/_framework/icudt_CJK.tjcz0u77k5.dat.br new file mode 100644 index 00000000..8c765172 Binary files /dev/null and b/_framework/icudt_CJK.tjcz0u77k5.dat.br differ diff --git a/_framework/icudt_CJK.tjcz0u77k5.dat.gz b/_framework/icudt_CJK.tjcz0u77k5.dat.gz new file mode 100644 index 00000000..d21edc5c Binary files /dev/null and b/_framework/icudt_CJK.tjcz0u77k5.dat.gz differ diff --git a/_framework/icudt_EFIGS.tptq2av103.dat b/_framework/icudt_EFIGS.tptq2av103.dat new file mode 100755 index 00000000..e4c1c910 Binary files /dev/null and b/_framework/icudt_EFIGS.tptq2av103.dat differ diff --git a/_framework/icudt_EFIGS.tptq2av103.dat.br b/_framework/icudt_EFIGS.tptq2av103.dat.br new file mode 100644 index 00000000..d8755b47 Binary files /dev/null and b/_framework/icudt_EFIGS.tptq2av103.dat.br differ diff --git a/_framework/icudt_EFIGS.tptq2av103.dat.gz b/_framework/icudt_EFIGS.tptq2av103.dat.gz new file mode 100644 index 00000000..cc9ab5a7 Binary files /dev/null and b/_framework/icudt_EFIGS.tptq2av103.dat.gz differ diff --git a/_framework/icudt_no_CJK.lfu7j35m59.dat b/_framework/icudt_no_CJK.lfu7j35m59.dat new file mode 100755 index 00000000..87b08e08 Binary files /dev/null and b/_framework/icudt_no_CJK.lfu7j35m59.dat differ diff --git a/_framework/icudt_no_CJK.lfu7j35m59.dat.br b/_framework/icudt_no_CJK.lfu7j35m59.dat.br new file mode 100644 index 00000000..3acc4ee2 Binary files /dev/null and b/_framework/icudt_no_CJK.lfu7j35m59.dat.br differ diff --git a/_framework/icudt_no_CJK.lfu7j35m59.dat.gz b/_framework/icudt_no_CJK.lfu7j35m59.dat.gz new file mode 100644 index 00000000..4f24a806 Binary files /dev/null and b/_framework/icudt_no_CJK.lfu7j35m59.dat.gz differ diff --git a/_framework/netstandard.56u9l8qn2l.wasm b/_framework/netstandard.56u9l8qn2l.wasm new file mode 100644 index 00000000..5422242a Binary files /dev/null and b/_framework/netstandard.56u9l8qn2l.wasm differ diff --git a/_framework/netstandard.56u9l8qn2l.wasm.br b/_framework/netstandard.56u9l8qn2l.wasm.br new file mode 100644 index 00000000..368e5715 Binary files /dev/null and b/_framework/netstandard.56u9l8qn2l.wasm.br differ diff --git a/_framework/netstandard.56u9l8qn2l.wasm.gz b/_framework/netstandard.56u9l8qn2l.wasm.gz new file mode 100644 index 00000000..5887aea4 Binary files /dev/null and b/_framework/netstandard.56u9l8qn2l.wasm.gz differ diff --git a/commit.txt b/commit.txt new file mode 100644 index 00000000..5643f86f --- /dev/null +++ b/commit.txt @@ -0,0 +1 @@ +90e6a121847f8b2bc184d3d4c2d618bd4cc502ed \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 00000000..a3a79998 Binary files /dev/null and b/favicon.ico differ diff --git a/favicon.ico.br b/favicon.ico.br new file mode 100644 index 00000000..d8574737 Binary files /dev/null and b/favicon.ico.br differ diff --git a/favicon.ico.gz b/favicon.ico.gz new file mode 100644 index 00000000..5b8641ac Binary files /dev/null and b/favicon.ico.gz differ diff --git a/index.html b/index.html new file mode 100644 index 00000000..bf815cc6 --- /dev/null +++ b/index.html @@ -0,0 +1,23 @@ + + + + + + Excubo.Blazor.Grids demo (Blazor ClientSide) + + + + + + Loading... + + + + An unhandled error has occurred. + Reload + 🗙 + + + + + diff --git a/index.html.br b/index.html.br new file mode 100644 index 00000000..7a5349da Binary files /dev/null and b/index.html.br differ diff --git a/index.html.gz b/index.html.gz new file mode 100644 index 00000000..6c5c0668 Binary files /dev/null and b/index.html.gz differ diff --git a/sample-data/weather.json b/sample-data/weather.json new file mode 100644 index 00000000..06463c02 --- /dev/null +++ b/sample-data/weather.json @@ -0,0 +1,27 @@ +[ + { + "date": "2018-05-06", + "temperatureC": 1, + "summary": "Freezing" + }, + { + "date": "2018-05-07", + "temperatureC": 14, + "summary": "Bracing" + }, + { + "date": "2018-05-08", + "temperatureC": -13, + "summary": "Freezing" + }, + { + "date": "2018-05-09", + "temperatureC": -16, + "summary": "Balmy" + }, + { + "date": "2018-05-10", + "temperatureC": -2, + "summary": "Chilly" + } +] diff --git a/sample-data/weather.json.br b/sample-data/weather.json.br new file mode 100644 index 00000000..43f4b875 --- /dev/null +++ b/sample-data/weather.json.br @@ -0,0 +1,2 @@ +@, +l4kWb8i}iteYd$)6$EZbx+T`!&FXJnYJ%H4fw/3-^㰽@rRz#P%0e \ No newline at end of file diff --git a/sample-data/weather.json.gz b/sample-data/weather.json.gz new file mode 100644 index 00000000..35a77422 Binary files /dev/null and b/sample-data/weather.json.gz differ