<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
if (typeof gdjs.evtsExt__THNK__onFirstSceneLoaded !== "undefined") {
  gdjs.evtsExt__THNK__onFirstSceneLoaded.registeredGdjsCallbacks.forEach(callback =&gt;
    gdjs._unregisterCallback(callback)
  );
}

gdjs.evtsExt__THNK__onFirstSceneLoaded = {};


gdjs.evtsExt__THNK__onFirstSceneLoaded.userFunc0xd83f40 = function GDJSInlineCode(runtimeScene, eventsFunctionContext) {
"use strict";
}// Load THNK library (https://github.com/arthuro555/THNK)
window.THNK=(()=&gt;{var ii=Object.defineProperty;var hn=Object.getOwnPropertyDescriptor;var cn=Object.getOwnPropertyNames;var bn=Object.prototype.hasOwnProperty;var fn=(t,e)=&gt;{for(var i in e)ii(t,i,{get:e[i],enumerable:!0})},un=(t,e,i,s)=&gt;{if(e&amp;&amp;typeof e=="object"||typeof e=="function")for(let a of cn(e))!bn.call(t,a)&amp;&amp;a!==i&amp;&amp;ii(t,a,{get:()=&gt;e[a],enumerable:!(s=hn(e,a))||s.enumerable});return t};var _n=t=&gt;un(ii({},"__esModule",{value:!0}),t);var id={};fn(id,{ClientAdapter:()=&gt;td,ServerAdapter:()=&gt;ed,client:()=&gt;ka,players:()=&gt;ba,server:()=&gt;Js,settings:()=&gt;fa});var pn=Object.defineProperty,$e=(t,e)=&gt;{for(var i in e)pn(t,i,{get:e[i],enumerable:!0})},Js={};$e(Js,{events:()=&gt;rr,startServer:()=&gt;nr});var Vt=new Int32Array(2),$i=new Float32Array(Vt.buffer),Qi=new Float64Array(Vt.buffer),De=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1,mi;(function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"})(mi||(mi={}));var Ut=class{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new Ut(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)&lt;&lt;24&gt;&gt;24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)&lt;&lt;16&gt;&gt;16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]&lt;&lt;8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]&lt;&lt;8|this.bytes_[t+2]&lt;&lt;16|this.bytes_[t+3]&lt;&lt;24}readUint32(t){return this.readInt32(t)&gt;&gt;&gt;0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))&lt;&lt;BigInt(32)))}readUint64(t){return BigInt.asUintN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))&lt;&lt;BigInt(32)))}readFloat32(t){return Vt[0]=this.readInt32(t),$i[0]}readFloat64(t){return Vt[De?0:1]=this.readInt32(t),Vt[De?1:0]=this.readInt32(t+4),Qi[0]}writeInt8(t,e){this.bytes_[t]=e}writeUint8(t,e){this.bytes_[t]=e}writeInt16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e&gt;&gt;8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e&gt;&gt;8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e&gt;&gt;8,this.bytes_[t+2]=e&gt;&gt;16,this.bytes_[t+3]=e&gt;&gt;24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e&gt;&gt;8,this.bytes_[t+2]=e&gt;&gt;16,this.bytes_[t+3]=e&gt;&gt;24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e&gt;&gt;BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e&gt;&gt;BigInt(32))))}writeFloat32(t,e){$i[0]=e,this.writeInt32(t,Vt[0])}writeFloat64(t,e){Qi[0]=e,this.writeInt32(t,Vt[De?0:1]),this.writeInt32(t+4,Vt[De?1:0])}getBufferIdentifier(){if(this.bytes_.length&lt;this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let t="";for(let e=0;e&lt;4;e++)t+=String.fromCharCode(this.readInt8(this.position_+4+e));return t}__offset(t,e){let i=t-this.readInt32(t);return e&lt;this.readInt16(i)?this.readInt16(i+e):0}__union(t,e){return t.bb_pos=e+this.readInt32(e),t.bb=this,t}__string(t,e){t+=this.readInt32(t);let i=this.readInt32(t);t+=4;let s=this.bytes_.subarray(t,t+i);return e===mi.UTF8_BYTES?s:this.text_decoder_.decode(s)}__union_with_string(t,e){return typeof t=="string"?this.__string(e):this.__union(t,e)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+4}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(t.length!=4)throw new Error("FlatBuffers: file identifier must be length "+4);for(let e=0;e&lt;4;e++)if(t.charCodeAt(e)!=this.readInt8(this.position()+4+e))return!1;return!0}createScalarList(t,e){let i=[];for(let s=0;s&lt;e;++s)t(s)!==null&amp;&amp;i.push(t(s));return i}createObjList(t,e){let i=[];for(let s=0;s&lt;e;++s){let a=t(s);a!==null&amp;&amp;i.push(a.unpack())}return i}},Et=class{constructor(t){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let e;t?e=t:e=1024,this.bb=Ut.allocate(e),this.space=e}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(t){this.force_defaults=t}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(t,e){t&gt;this.minalign&amp;&amp;(this.minalign=t);let i=~(this.bb.capacity()-this.space+e)+1&amp;t-1;for(;this.space&lt;i+t+e;){let s=this.bb.capacity();this.bb=Et.growByteBuffer(this.bb),this.space+=this.bb.capacity()-s}this.pad(i)}pad(t){for(let e=0;e&lt;t;e++)this.bb.writeInt8(--this.space,0)}writeInt8(t){this.bb.writeInt8(this.space-=1,t)}writeInt16(t){this.bb.writeInt16(this.space-=2,t)}writeInt32(t){this.bb.writeInt32(this.space-=4,t)}writeInt64(t){this.bb.writeInt64(this.space-=8,t)}writeFloat32(t){this.bb.writeFloat32(this.space-=4,t)}writeFloat64(t){this.bb.writeFloat64(this.space-=8,t)}addInt8(t){this.prep(1,0),this.writeInt8(t)}addInt16(t){this.prep(2,0),this.writeInt16(t)}addInt32(t){this.prep(4,0),this.writeInt32(t)}addInt64(t){this.prep(8,0),this.writeInt64(t)}addFloat32(t){this.prep(4,0),this.writeFloat32(t)}addFloat64(t){this.prep(8,0),this.writeFloat64(t)}addFieldInt8(t,e,i){(this.force_defaults||e!=i)&amp;&amp;(this.addInt8(e),this.slot(t))}addFieldInt16(t,e,i){(this.force_defaults||e!=i)&amp;&amp;(this.addInt16(e),this.slot(t))}addFieldInt32(t,e,i){(this.force_defaults||e!=i)&amp;&amp;(this.addInt32(e),this.slot(t))}addFieldInt64(t,e,i){(this.force_defaults||e!==i)&amp;&amp;(this.addInt64(e),this.slot(t))}addFieldFloat32(t,e,i){(this.force_defaults||e!=i)&amp;&amp;(this.addFloat32(e),this.slot(t))}addFieldFloat64(t,e,i){(this.force_defaults||e!=i)&amp;&amp;(this.addFloat64(e),this.slot(t))}addFieldOffset(t,e,i){(this.force_defaults||e!=i)&amp;&amp;(this.addOffset(e),this.slot(t))}addFieldStruct(t,e,i){e!=i&amp;&amp;(this.nested(e),this.slot(t))}nested(t){if(t!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")}slot(t){this.vtable!==null&amp;&amp;(this.vtable[t]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(t){let e=t.capacity();if(e&amp;3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");let i=e&lt;&lt;1,s=Ut.allocate(i);return s.setPosition(i-e),s.bytes().set(t.bytes(),i-e),s}addOffset(t){this.prep(4,0),this.writeInt32(this.offset()-t+4)}startObject(t){this.notNested(),this.vtable==null&amp;&amp;(this.vtable=[]),this.vtable_in_use=t;for(let e=0;e&lt;t;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);let t=this.offset(),e=this.vtable_in_use-1;for(;e&gt;=0&amp;&amp;this.vtable[e]==0;e--);let i=e+1;for(;e&gt;=0;e--)this.addInt16(this.vtable[e]!=0?t-this.vtable[e]:0);let s=2;this.addInt16(t-this.object_start);let a=(i+s)*2;this.addInt16(a);let n=0,r=this.space;t:for(e=0;e&lt;this.vtables.length;e++){let o=this.bb.capacity()-this.vtables[e];if(a==this.bb.readInt16(o)){for(let u=2;u&lt;a;u+=2)if(this.bb.readInt16(r+u)!=this.bb.readInt16(o+u))continue t;n=this.vtables[e];break}}return n?(this.space=this.bb.capacity()-t,this.bb.writeInt32(this.space,n-t)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-t,this.offset()-t)),this.isNested=!1,t}finish(t,e,i){let s=i?4:0;if(e){let a=e;if(this.prep(this.minalign,4+4+s),a.length!=4)throw new Error("FlatBuffers: file identifier must be length "+4);for(let n=4-1;n&gt;=0;n--)this.writeInt8(a.charCodeAt(n))}this.prep(this.minalign,4+s),this.addOffset(t),s&amp;&amp;this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,e){this.finish(t,e,!0)}requiredField(t,e){let i=this.bb.capacity()-t,s=i-this.bb.readInt32(i);if(this.bb.readInt16(s+e)==0)throw new Error("FlatBuffers: field "+e+" must be set")}startVector(t,e,i){this.notNested(),this.vector_num_elems=e,this.prep(4,t*e),this.prep(i,t*e)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(t){if(!t)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(t))return this.string_maps.get(t);let e=this.createString(t);return this.string_maps.set(t,e),e}createString(t){if(t==null)return 0;let e;t instanceof Uint8Array?e=t:e=this.text_encoder.encode(t),this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length);for(let i=0,s=this.space,a=this.bb.bytes();i&lt;e.length;i++)a[s++]=e[i];return this.endVector()}createObjectOffset(t){return t===null?0:typeof t=="string"?this.createString(t):t.pack(this)}createObjectOffsetList(t){let e=[];for(let i=0;i&lt;t.length;++i){let s=t[i];if(s!==null)e.push(this.createObjectOffset(s));else throw new Error("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return e}createStructOffsetList(t,e){return e(this,t.length),this.createObjectOffsetList(t.slice().reverse()),this.endVector()}},Ot=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsClientInputMessage(t,e){return(e||new Ot).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsClientInputMessage(t,e){return t.setPosition(t.position()+4),(e||new Ot).__init(t.readInt32(t.position())+t.position(),t)}name(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}content(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}contentLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}contentArray(){let t=this.bb.__offset(this.bb_pos,6);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startClientInputMessage(t){t.startObject(2)}static addName(t,e){t.addFieldOffset(0,e,0)}static addContent(t,e){t.addFieldOffset(1,e,0)}static createContentVector(t,e){t.startVector(1,e.length,1);for(let i=e.length-1;i&gt;=0;i--)t.addInt8(e[i]);return t.endVector()}static startContentVector(t,e){t.startVector(1,e,1)}static endClientInputMessage(t){let e=t.endObject();return t.requiredField(e,4),t.requiredField(e,6),e}static createClientInputMessage(t,e,i){return Ot.startClientInputMessage(t),Ot.addName(t,e),Ot.addContent(t,i),Ot.endClientInputMessage(t)}},Ft=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsConnectionRequestMessage(t,e){return(e||new Ft).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsConnectionRequestMessage(t,e){return t.setPosition(t.position()+4),(e||new Ft).__init(t.readInt32(t.position())+t.position(),t)}token(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}static startConnectionRequestMessage(t){t.startObject(1)}static addToken(t,e){t.addFieldOffset(0,e,0)}static endConnectionRequestMessage(t){return t.endObject()}static createConnectionRequestMessage(t,e){return Ft.startConnectionRequestMessage(t),Ft.addToken(t,e),Ft.endConnectionRequestMessage(t)}},At=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsClientMessage(t,e){return(e||new At).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsClientMessage(t,e){return t.setPosition(t.position()+4),(e||new At).__init(t.readInt32(t.position())+t.position(),t)}contentType(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint8(this.bb_pos+t):0}content(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__union(t,this.bb_pos+e):null}static startClientMessage(t){t.startObject(2)}static addContentType(t,e){t.addFieldInt8(0,e,0)}static addContent(t,e){t.addFieldOffset(1,e,0)}static endClientMessage(t){let e=t.endObject();return t.requiredField(e,6),e}static createClientMessage(t,e,i){return At.startClientMessage(t),At.addContentType(t,e),At.addContent(t,i),At.endClientMessage(t)}},N=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsVariable(t,e){return(e||new N).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsVariable(t,e){return t.setPosition(t.position()+4),(e||new N).__init(t.readInt32(t.position())+t.position(),t)}type(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint8(this.bb_pos+t):0}text(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}number(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readFloat32(this.bb_pos+t):0}boolean(){let t=this.bb.__offset(this.bb_pos,10);return t?!!this.bb.readInt8(this.bb_pos+t):!1}operations(t,e){let i=this.bb.__offset(this.bb_pos,12);return i?(e||new $).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+t*4),this.bb):null}operationsLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startVariable(t){t.startObject(5)}static addType(t,e){t.addFieldInt8(0,e,0)}static addText(t,e){t.addFieldOffset(1,e,0)}static addNumber(t,e){t.addFieldFloat32(2,e,0)}static addBoolean(t,e){t.addFieldInt8(3,+e,0)}static addOperations(t,e){t.addFieldOffset(4,e,0)}static createOperationsVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i&gt;=0;i--)t.addOffset(e[i]);return t.endVector()}static startOperationsVector(t,e){t.startVector(4,e,4)}static endVariable(t){return t.endObject()}static createVariable(t,e,i,s,a,n){return N.startVariable(t),N.addType(t,e),N.addText(t,i),N.addNumber(t,s),N.addBoolean(t,a),N.addOperations(t,n),N.endVariable(t)}},$=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCollectionOperation(t,e){return(e||new $).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCollectionOperation(t,e){return t.setPosition(t.position()+4),(e||new $).__init(t.readInt32(t.position())+t.position(),t)}operation(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint8(this.bb_pos+t):0}name(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}index(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint16(this.bb_pos+t):0}val(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new N).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startCollectionOperation(t){t.startObject(4)}static addOperation(t,e){t.addFieldInt8(0,e,0)}static addName(t,e){t.addFieldOffset(1,e,0)}static addIndex(t,e){t.addFieldInt16(2,e,0)}static addVal(t,e){t.addFieldOffset(3,e,0)}static endCollectionOperation(t){return t.endObject()}},Mi=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}r(){return this.bb.readUint16(this.bb_pos)}g(){return this.bb.readUint16(this.bb_pos+2)}b(){return this.bb.readUint16(this.bb_pos+4)}static sizeOf(){return 6}static createRGB(t,e,i,s){return t.prep(2,6),t.writeInt16(s),t.writeInt16(i),t.writeInt16(e),t.offset()}},j=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsObjState(t,e){return(e||new j).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsObjState(t,e){return t.setPosition(t.position()+4),(e||new j).__init(t.readInt32(t.position())+t.position(),t)}layer(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}x(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readFloat32(this.bb_pos+t):null}y(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readFloat32(this.bb_pos+t):null}height(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readFloat32(this.bb_pos+t):null}width(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readFloat32(this.bb_pos+t):null}angle(){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readFloat32(this.bb_pos+t):null}scale(){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readFloat32(this.bb_pos+t):null}tint(t){let e=this.bb.__offset(this.bb_pos,18);return e?(t||new Mi).__init(this.bb_pos+e,this.bb):null}setXTo0(){let t=this.bb.__offset(this.bb_pos,20);return t?!!this.bb.readInt8(this.bb_pos+t):!1}setYTo0(){let t=this.bb.__offset(this.bb_pos,22);return t?!!this.bb.readInt8(this.bb_pos+t):!1}setHeightTo0(){let t=this.bb.__offset(this.bb_pos,24);return t?!!this.bb.readInt8(this.bb_pos+t):!1}setWidthTo0(){let t=this.bb.__offset(this.bb_pos,26);return t?!!this.bb.readInt8(this.bb_pos+t):!1}setAngleTo0(){let t=this.bb.__offset(this.bb_pos,28);return t?!!this.bb.readInt8(this.bb_pos+t):!1}setScaleTo0(){let t=this.bb.__offset(this.bb_pos,30);return t?!!this.bb.readInt8(this.bb_pos+t):!1}zOrder(){let t=this.bb.__offset(this.bb_pos,32);return t?this.bb.readUint16(this.bb_pos+t):null}bigZOrder(){let t=this.bb.__offset(this.bb_pos,34);return t?this.bb.readUint32(this.bb_pos+t):null}visible(){let t=this.bb.__offset(this.bb_pos,36);return t?this.bb.readUint8(this.bb_pos+t):null}flippedX(){let t=this.bb.__offset(this.bb_pos,38);return t?this.bb.readUint8(this.bb_pos+t):null}flippedY(){let t=this.bb.__offset(this.bb_pos,40);return t?this.bb.readUint8(this.bb_pos+t):null}opacity(){let t=this.bb.__offset(this.bb_pos,42);return t?this.bb.readUint8(this.bb_pos+t):null}setOpacityTo0(){let t=this.bb.__offset(this.bb_pos,44);return t?!!this.bb.readInt8(this.bb_pos+t):!1}animation(){let t=this.bb.__offset(this.bb_pos,46);return t?this.bb.readUint8(this.bb_pos+t):null}text(t){let e=this.bb.__offset(this.bb_pos,48);return e?this.bb.__string(this.bb_pos+e,t):null}static startObjState(t){t.startObject(23)}static addLayer(t,e){t.addFieldOffset(0,e,0)}static addX(t,e){t.addFieldFloat32(1,e,0)}static addY(t,e){t.addFieldFloat32(2,e,0)}static addHeight(t,e){t.addFieldFloat32(3,e,0)}static addWidth(t,e){t.addFieldFloat32(4,e,0)}static addAngle(t,e){t.addFieldFloat32(5,e,0)}static addScale(t,e){t.addFieldFloat32(6,e,0)}static addTint(t,e){t.addFieldStruct(7,e,0)}static addSetXTo0(t,e){t.addFieldInt8(8,+e,0)}static addSetYTo0(t,e){t.addFieldInt8(9,+e,0)}static addSetHeightTo0(t,e){t.addFieldInt8(10,+e,0)}static addSetWidthTo0(t,e){t.addFieldInt8(11,+e,0)}static addSetAngleTo0(t,e){t.addFieldInt8(12,+e,0)}static addSetScaleTo0(t,e){t.addFieldInt8(13,+e,0)}static addZOrder(t,e){t.addFieldInt16(14,e,0)}static addBigZOrder(t,e){t.addFieldInt32(15,e,0)}static addVisible(t,e){t.addFieldInt8(16,e,0)}static addFlippedX(t,e){t.addFieldInt8(17,e,0)}static addFlippedY(t,e){t.addFieldInt8(18,e,0)}static addOpacity(t,e){t.addFieldInt8(19,e,0)}static addSetOpacityTo0(t,e){t.addFieldInt8(20,+e,0)}static addAnimation(t,e){t.addFieldInt8(21,e,0)}static addText(t,e){t.addFieldOffset(22,e,0)}static endObjState(t){return t.endObject()}},K=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsGameObject(t,e){return(e||new K).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsGameObject(t,e){return t.setPosition(t.position()+4),(e||new K).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint16(this.bb_pos+t):0}name(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}objState(t){let e=this.bb.__offset(this.bb_pos,8);return e?(t||new j).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}publicStateDiff(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}publicStateDiffLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}publicStateDiffArray(){let t=this.bb.__offset(this.bb_pos,10);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}privateStateDiff(t){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}privateStateDiffLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}privateStateDiffArray(){let t=this.bb.__offset(this.bb_pos,12);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}packedPublicState(t){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}packedPublicStateLength(){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}packedPublicStateArray(){let t=this.bb.__offset(this.bb_pos,14);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}packedPrivateState(t){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}packedPrivateStateLength(){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}packedPrivateStateArray(){let t=this.bb.__offset(this.bb_pos,16);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startGameObject(t){t.startObject(7)}static addId(t,e){t.addFieldInt16(0,e,0)}static addName(t,e){t.addFieldOffset(1,e,0)}static addObjState(t,e){t.addFieldOffset(2,e,0)}static addPublicStateDiff(t,e){t.addFieldOffset(3,e,0)}static createPublicStateDiffVector(t,e){t.startVector(1,e.length,1);for(let i=e.length-1;i&gt;=0;i--)t.addInt8(e[i]);return t.endVector()}static startPublicStateDiffVector(t,e){t.startVector(1,e,1)}static addPrivateStateDiff(t,e){t.addFieldOffset(4,e,0)}static createPrivateStateDiffVector(t,e){t.startVector(1,e.length,1);for(let i=e.length-1;i&gt;=0;i--)t.addInt8(e[i]);return t.endVector()}static startPrivateStateDiffVector(t,e){t.startVector(1,e,1)}static addPackedPublicState(t,e){t.addFieldOffset(5,e,0)}static createPackedPublicStateVector(t,e){t.startVector(1,e.length,1);for(let i=e.length-1;i&gt;=0;i--)t.addInt8(e[i]);return t.endVector()}static startPackedPublicStateVector(t,e){t.startVector(1,e,1)}static addPackedPrivateState(t,e){t.addFieldOffset(6,e,0)}static createPackedPrivateStateVector(t,e){t.startVector(1,e.length,1);for(let i=e.length-1;i&gt;=0;i--)t.addInt8(e[i]);return t.endVector()}static startPackedPrivateStateVector(t,e){t.startVector(1,e,1)}static endGameObject(t){return t.endObject()}},it=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsGameStateSnapshot(t,e){return(e||new it).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsGameStateSnapshot(t,e){return t.setPosition(t.position()+4),(e||new it).__init(t.readInt32(t.position())+t.position(),t)}objects(t,e){let i=this.bb.__offset(this.bb_pos,4);return i?(e||new K).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+t*4),this.bb):null}objectsLength(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}publicStatePacked(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}publicStatePackedLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}publicStatePackedArray(){let t=this.bb.__offset(this.bb_pos,6);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}privateStatePacked(t){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}privateStatePackedLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}privateStatePackedArray(){let t=this.bb.__offset(this.bb_pos,8);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startGameStateSnapshot(t){t.startObject(3)}static addObjects(t,e){t.addFieldOffset(0,e,0)}static createObjectsVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i&gt;=0;i--)t.addOffset(e[i]);return t.endVector()}static startObjectsVector(t,e){t.startVector(4,e,4)}static addPublicStatePacked(t,e){t.addFieldOffset(1,e,0)}static createPublicStatePackedVector(t,e){t.startVector(1,e.length,1);for(let i=e.length-1;i&gt;=0;i--)t.addInt8(e[i]);return t.endVector()}static startPublicStatePackedVector(t,e){t.startVector(1,e,1)}static addPrivateStatePacked(t,e){t.addFieldOffset(2,e,0)}static createPrivateStatePackedVector(t,e){t.startVector(1,e.length,1);for(let i=e.length-1;i&gt;=0;i--)t.addInt8(e[i]);return t.endVector()}static startPrivateStatePackedVector(t,e){t.startVector(1,e,1)}static endGameStateSnapshot(t){return t.endObject()}static createGameStateSnapshot(t,e,i,s){return it.startGameStateSnapshot(t),it.addObjects(t,e),it.addPublicStatePacked(t,i),it.addPrivateStatePacked(t,s),it.endGameStateSnapshot(t)}},Ht=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsConnectionStartMessage(t,e){return(e||new Ht).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsConnectionStartMessage(t,e){return t.setPosition(t.position()+4),(e||new Ht).__init(t.readInt32(t.position())+t.position(),t)}sceneName(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}sceneSnapshot(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new it).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startConnectionStartMessage(t){t.startObject(2)}static addSceneName(t,e){t.addFieldOffset(0,e,0)}static addSceneSnapshot(t,e){t.addFieldOffset(1,e,0)}static endConnectionStartMessage(t){let e=t.endObject();return t.requiredField(e,4),t.requiredField(e,6),e}},zt=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCreatedObject(t,e){return(e||new zt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCreatedObject(t,e){return t.setPosition(t.position()+4),(e||new zt).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint16(this.bb_pos+t):0}name(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startCreatedObject(t){t.startObject(2)}static addId(t,e){t.addFieldInt16(0,e,0)}static addName(t,e){t.addFieldOffset(1,e,0)}static endCreatedObject(t){let e=t.endObject();return t.requiredField(e,6),e}static createCreatedObject(t,e,i){return zt.startCreatedObject(t),zt.addId(t,e),zt.addName(t,i),zt.endCreatedObject(t)}},G=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsScene(t,e){return(e||new G).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsScene(t,e){return t.setPosition(t.position()+4),(e||new G).__init(t.readInt32(t.position())+t.position(),t)}publicStateDiff(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}publicStateDiffLength(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}publicStateDiffArray(){let t=this.bb.__offset(this.bb_pos,4);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}privateStateDiff(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}privateStateDiffLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}privateStateDiffArray(){let t=this.bb.__offset(this.bb_pos,6);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}objects(t,e){let i=this.bb.__offset(this.bb_pos,8);return i?(e||new K).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+t*4),this.bb):null}objectsLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}createdObjects(t,e){let i=this.bb.__offset(this.bb_pos,10);return i?(e||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+t*4),this.bb):null}createdObjectsLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}deletedObjects(t){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.readUint16(this.bb.__vector(this.bb_pos+e)+t*2):0}deletedObjectsLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}deletedObjectsArray(){let t=this.bb.__offset(this.bb_pos,12);return t?new Uint16Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startScene(t){t.startObject(5)}static addPublicStateDiff(t,e){t.addFieldOffset(0,e,0)}static createPublicStateDiffVector(t,e){t.startVector(1,e.length,1);for(let i=e.length-1;i&gt;=0;i--)t.addInt8(e[i]);return t.endVector()}static startPublicStateDiffVector(t,e){t.startVector(1,e,1)}static addPrivateStateDiff(t,e){t.addFieldOffset(1,e,0)}static createPrivateStateDiffVector(t,e){t.startVector(1,e.length,1);for(let i=e.length-1;i&gt;=0;i--)t.addInt8(e[i]);return t.endVector()}static startPrivateStateDiffVector(t,e){t.startVector(1,e,1)}static addObjects(t,e){t.addFieldOffset(2,e,0)}static createObjectsVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i&gt;=0;i--)t.addOffset(e[i]);return t.endVector()}static startObjectsVector(t,e){t.startVector(4,e,4)}static addCreatedObjects(t,e){t.addFieldOffset(3,e,0)}static createCreatedObjectsVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i&gt;=0;i--)t.addOffset(e[i]);return t.endVector()}static startCreatedObjectsVector(t,e){t.startVector(4,e,4)}static addDeletedObjects(t,e){t.addFieldOffset(4,e,0)}static createDeletedObjectsVector(t,e){t.startVector(2,e.length,2);for(let i=e.length-1;i&gt;=0;i--)t.addInt16(e[i]);return t.endVector()}static startDeletedObjectsVector(t,e){t.startVector(2,e,2)}static endScene(t){return t.endObject()}static createScene(t,e,i,s,a,n){return G.startScene(t),G.addPublicStateDiff(t,e),G.addPrivateStateDiff(t,i),G.addObjects(t,s),G.addCreatedObjects(t,a),G.addDeletedObjects(t,n),G.endScene(t)}},jt=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsGameStateUpdateMessage(t,e){return(e||new jt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsGameStateUpdateMessage(t,e){return t.setPosition(t.position()+4),(e||new jt).__init(t.readInt32(t.position())+t.position(),t)}scene(t){let e=this.bb.__offset(this.bb_pos,4);return e?(t||new G).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startGameStateUpdateMessage(t){t.startObject(1)}static addScene(t,e){t.addFieldOffset(0,e,0)}static endGameStateUpdateMessage(t){return t.endObject()}static createGameStateUpdateMessage(t,e){return jt.startGameStateUpdateMessage(t),jt.addScene(t,e),jt.endGameStateUpdateMessage(t)}},ft=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsResumePreviousSceneMessage(t,e){return(e||new ft).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsResumePreviousSceneMessage(t,e){return t.setPosition(t.position()+4),(e||new ft).__init(t.readInt32(t.position())+t.position(),t)}snapshot(t){let e=this.bb.__offset(this.bb_pos,4);return e?(t||new it).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}name(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startResumePreviousSceneMessage(t){t.startObject(2)}static addSnapshot(t,e){t.addFieldOffset(0,e,0)}static addName(t,e){t.addFieldOffset(1,e,0)}static endResumePreviousSceneMessage(t){return t.endObject()}static createResumePreviousSceneMessage(t,e,i){return ft.startResumePreviousSceneMessage(t),ft.addSnapshot(t,e),ft.addName(t,i),ft.endResumePreviousSceneMessage(t)}},ut=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSceneSwitchMessage(t,e){return(e||new ut).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSceneSwitchMessage(t,e){return t.setPosition(t.position()+4),(e||new ut).__init(t.readInt32(t.position())+t.position(),t)}sceneName(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}isPause(){let t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startSceneSwitchMessage(t){t.startObject(2)}static addSceneName(t,e){t.addFieldOffset(0,e,0)}static addIsPause(t,e){t.addFieldInt8(1,+e,0)}static endSceneSwitchMessage(t){let e=t.endObject();return t.requiredField(e,4),e}static createSceneSwitchMessage(t,e,i){return ut.startSceneSwitchMessage(t),ut.addSceneName(t,e),ut.addIsPause(t,i),ut.endSceneSwitchMessage(t)}},_t=class{bb=null;bb_pos=0;__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsServerMessage(t,e){return(e||new _t).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsServerMessage(t,e){return t.setPosition(t.position()+4),(e||new _t).__init(t.readInt32(t.position())+t.position(),t)}contentType(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint8(this.bb_pos+t):0}content(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__union(t,this.bb_pos+e):null}static startServerMessage(t){t.startObject(2)}static addContentType(t,e){t.addFieldInt8(0,e,0)}static addContent(t,e){t.addFieldOffset(1,e,0)}static endServerMessage(t){let e=t.endObject();return t.requiredField(e,6),e}static createServerMessage(t,e,i){return _t.startServerMessage(t),_t.addContentType(t,e),_t.addContent(t,i),_t.endServerMessage(t)}},vi;try{vi=new TextDecoder}catch{}var v,ct,h=0,X={},P,Rt,ht=0,wt=0,tt,Ct,dt=[],R,Ji={useRecords:!1,mapsAsObjects:!0},ta=class{},ea=new ta;ea.name="MessagePack 0xC1";var se=!1,ia=2,ts;try{new Function("")}catch{ia=1/0}var Ye=class{constructor(t){t&amp;&amp;(t.useRecords===!1&amp;&amp;t.mapsAsObjects===void 0&amp;&amp;(t.mapsAsObjects=!0),t.sequential&amp;&amp;t.trusted!==!1&amp;&amp;(t.trusted=!0,!t.structures&amp;&amp;t.useRecords!=!1&amp;&amp;(t.structures=[],t.maxSharedStructures||(t.maxSharedStructures=0))),t.structures?t.structures.sharedLength=t.structures.length:t.getStructures&amp;&amp;((t.structures=[]).uninitialized=!0,t.structures.sharedLength=0),t.int64AsNumber&amp;&amp;(t.int64AsType="number")),Object.assign(this,t)}unpack(t,e){if(v)return oa(()=&gt;(ki(),this?this.unpack(t,e):Ye.prototype.unpack.call(Ji,t,e)));typeof e=="object"?(ct=e.end||t.length,h=e.start||0):(h=0,ct=e&gt;-1?e:t.length),wt=0,Rt=null,tt=null,v=t;try{R=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(i){throw v=null,t instanceof Uint8Array?i:new Error("Source must be a Uint8Array or Buffer but was a "+(t&amp;&amp;typeof t=="object"?t.constructor.name:typeof t))}if(this instanceof Ye){if(X=this,this.structures)return P=this.structures,Re(e);(!P||P.length&gt;0)&amp;&amp;(P=[])}else X=Ji,(!P||P.length&gt;0)&amp;&amp;(P=[]);return Re(e)}unpackMultiple(t,e){let i,s=0;try{se=!0;let a=t.length,n=this?this.unpack(t,a):la.unpack(t,a);if(e){for(e(n);h&lt;a;)if(s=h,e(Re())===!1)return}else{for(i=[n];h&lt;a;)s=h,i.push(Re());return i}}catch(a){throw a.lastPosition=s,a.values=i,a}finally{se=!1,ki()}}_mergeStructures(t,e){t=t||[],Object.isFrozen(t)&amp;&amp;(t=t.map(i=&gt;i.slice(0)));for(let i=0,s=t.length;i&lt;s;i++){let a=t[i];a&amp;&amp;(a.isShared=!0,i&gt;=32&amp;&amp;(a.highByte=i-32&gt;&gt;5))}t.sharedLength=t.length;for(let i in e||[])if(i&gt;=0){let s=t[i],a=e[i];a&amp;&amp;(s&amp;&amp;((t.restoreStructures||(t.restoreStructures=[]))[i]=s),t[i]=a)}return this.structures=t}decode(t,e){return this.unpack(t,e)}};function Re(t){try{if(!X.trusted&amp;&amp;!se){let i=P.sharedLength||0;i&lt;P.length&amp;&amp;(P.length=i)}let e;if(X.randomAccessStructure&amp;&amp;v[h]&lt;64&amp;&amp;v[h]&gt;=32&amp;&amp;ts?(e=ts(v,h,ct,X),v=null,!(t&amp;&amp;t.lazy)&amp;&amp;e&amp;&amp;(e=e.toJSON()),h=ct):e=q(),tt&amp;&amp;(h=tt.postBundlePosition,tt=null),h==ct)P&amp;&amp;P.restoreStructures&amp;&amp;es(),P=null,v=null,Ct&amp;&amp;(Ct=null);else{if(h&gt;ct)throw new Error("Unexpected end of MessagePack data");if(!se)throw new Error("Data read, but end of buffer not reached "+JSON.stringify(e).slice(0,100))}return e}catch(e){throw P&amp;&amp;P.restoreStructures&amp;&amp;es(),ki(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer")||h&gt;ct)&amp;&amp;(e.incomplete=!0),e}}function es(){for(let t in P.restoreStructures)P[t]=P.restoreStructures[t];P.restoreStructures=null}function q(){let t=v[h++];if(t&lt;160)if(t&lt;128){if(t&lt;64)return t;{let e=P[t&amp;63]||X.getStructures&amp;&amp;sa()[t&amp;63];return e?(e.read||(e.read=Bi(e,t&amp;63)),e.read()):t}}else if(t&lt;144)if(t-=128,X.mapsAsObjects){let e={};for(let i=0;i&lt;t;i++){let s=na();s==="__proto__"&amp;&amp;(s="__proto_"),e[s]=q()}return e}else{let e=new Map;for(let i=0;i&lt;t;i++)e.set(q(),q());return e}else{t-=144;let e=new Array(t);for(let i=0;i&lt;t;i++)e[i]=q();return X.freezeData?Object.freeze(e):e}else if(t&lt;192){let e=t-160;if(wt&gt;=h)return Rt.slice(h-ht,(h+=e)-ht);if(wt==0&amp;&amp;ct&lt;140){let i=e&lt;16?Ni(e):aa(e);if(i!=null)return i}return Si(e)}else{let e;switch(t){case 192:return null;case 193:return tt?(e=q(),e&gt;0?tt[1].slice(tt.position1,tt.position1+=e):tt[0].slice(tt.position0,tt.position0-=e)):ea;case 194:return!1;case 195:return!0;case 196:if(e=v[h++],e===void 0)throw new Error("Unexpected end of buffer");return si(e);case 197:return e=R.getUint16(h),h+=2,si(e);case 198:return e=R.getUint32(h),h+=4,si(e);case 199:return Zt(v[h++]);case 200:return e=R.getUint16(h),h+=2,Zt(e);case 201:return e=R.getUint32(h),h+=4,Zt(e);case 202:if(e=R.getFloat32(h),X.useFloat32&gt;2){let i=Ei[(v[h]&amp;127)&lt;&lt;1|v[h+1]&gt;&gt;7];return h+=4,(i*e+(e&gt;0?.5:-.5)&gt;&gt;0)/i}return h+=4,e;case 203:return e=R.getFloat64(h),h+=8,e;case 204:return v[h++];case 205:return e=R.getUint16(h),h+=2,e;case 206:return e=R.getUint32(h),h+=4,e;case 207:return X.int64AsType==="number"?(e=R.getUint32(h)*4294967296,e+=R.getUint32(h+4)):X.int64AsType==="string"?e=R.getBigUint64(h).toString():e=R.getBigUint64(h),h+=8,e;case 208:return R.getInt8(h++);case 209:return e=R.getInt16(h),h+=2,e;case 210:return e=R.getInt32(h),h+=4,e;case 211:return X.int64AsType==="number"?(e=R.getInt32(h)*4294967296,e+=R.getUint32(h+4)):X.int64AsType==="string"?e=R.getBigInt64(h).toString():e=R.getBigInt64(h),h+=8,e;case 212:if(e=v[h++],e==114)return os(v[h++]&amp;63);{let i=dt[e];if(i)return i.read?(h++,i.read(q())):i.noBuffer?(h++,i()):i(v.subarray(h,++h));throw new Error("Unknown extension "+e)}case 213:return e=v[h],e==114?(h++,os(v[h++]&amp;63,v[h++])):Zt(2);case 214:return Zt(4);case 215:return Zt(8);case 216:return Zt(16);case 217:return e=v[h++],wt&gt;=h?Rt.slice(h-ht,(h+=e)-ht):wn(e);case 218:return e=R.getUint16(h),h+=2,wt&gt;=h?Rt.slice(h-ht,(h+=e)-ht):yn(e);case 219:return e=R.getUint32(h),h+=4,wt&gt;=h?Rt.slice(h-ht,(h+=e)-ht):mn(e);case 220:return e=R.getUint16(h),h+=2,ss(e);case 221:return e=R.getUint32(h),h+=4,ss(e);case 222:return e=R.getUint16(h),h+=2,as(e);case 223:return e=R.getUint32(h),h+=4,as(e);default:if(t&gt;=224)return t-256;if(t===void 0){let i=new Error("Unexpected end of MessagePack data");throw i.incomplete=!0,i}throw new Error("Unknown MessagePack token "+t)}}}var gn=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function Bi(t,e){function i(){if(i.count++&gt;ia){let a=t.read=new Function("r","return function(){return "+(X.freezeData?"Object.freeze":"")+"({"+t.map(n=&gt;n==="__proto__"?"__proto_:r()":gn.test(n)?n+":r()":"["+JSON.stringify(n)+"]:r()").join(",")+"})}")(q);return t.highByte===0&amp;&amp;(t.read=is(e,t.read)),a()}let s={};for(let a=0,n=t.length;a&lt;n;a++){let r=t[a];r==="__proto__"&amp;&amp;(r="__proto_"),s[r]=q()}return X.freezeData?Object.freeze(s):s}return i.count=0,t.highByte===0?is(e,i):i}var is=(t,e)=&gt;function(){let i=v[h++];if(i===0)return e();let s=t&lt;32?-(t+(i&lt;&lt;5)):t+(i&lt;&lt;5),a=P[s]||sa()[s];if(!a)throw new Error("Record id is not defined for "+s);return a.read||(a.read=Bi(a,t)),a.read()};function sa(){let t=oa(()=&gt;(v=null,X.getStructures()));return P=X._mergeStructures(t,P)}var Si=Ue,wn=Ue,yn=Ue,mn=Ue;function Ue(t){let e;if(t&lt;16&amp;&amp;(e=Ni(t)))return e;if(t&gt;64&amp;&amp;vi)return vi.decode(v.subarray(h,h+=t));let i=h+t,s=[];for(e="";h&lt;i;){let a=v[h++];if((a&amp;128)===0)s.push(a);else if((a&amp;224)===192){let n=v[h++]&amp;63;s.push((a&amp;31)&lt;&lt;6|n)}else if((a&amp;240)===224){let n=v[h++]&amp;63,r=v[h++]&amp;63;s.push((a&amp;31)&lt;&lt;12|n&lt;&lt;6|r)}else if((a&amp;248)===240){let n=v[h++]&amp;63,r=v[h++]&amp;63,o=v[h++]&amp;63,u=(a&amp;7)&lt;&lt;18|n&lt;&lt;12|r&lt;&lt;6|o;u&gt;65535&amp;&amp;(u-=65536,s.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|u&amp;1023),s.push(u)}else s.push(a);s.length&gt;=4096&amp;&amp;(e+=Q.apply(String,s),s.length=0)}return s.length&gt;0&amp;&amp;(e+=Q.apply(String,s)),e}function ss(t){let e=new Array(t);for(let i=0;i&lt;t;i++)e[i]=q();return X.freezeData?Object.freeze(e):e}function as(t){if(X.mapsAsObjects){let e={};for(let i=0;i&lt;t;i++){let s=na();s==="__proto__"&amp;&amp;(s="__proto_"),e[s]=q()}return e}else{let e=new Map;for(let i=0;i&lt;t;i++)e.set(q(),q());return e}}var Q=String.fromCharCode;function aa(t){let e=h,i=new Array(t);for(let s=0;s&lt;t;s++){let a=v[h++];if((a&amp;128)&gt;0){h=e;return}i[s]=a}return Q.apply(String,i)}function Ni(t){if(t&lt;4)if(t&lt;2){if(t===0)return"";{let e=v[h++];if((e&amp;128)&gt;1){h-=1;return}return Q(e)}}else{let e=v[h++],i=v[h++];if((e&amp;128)&gt;0||(i&amp;128)&gt;0){h-=2;return}if(t&lt;3)return Q(e,i);let s=v[h++];if((s&amp;128)&gt;0){h-=3;return}return Q(e,i,s)}else{let e=v[h++],i=v[h++],s=v[h++],a=v[h++];if((e&amp;128)&gt;0||(i&amp;128)&gt;0||(s&amp;128)&gt;0||(a&amp;128)&gt;0){h-=4;return}if(t&lt;6){if(t===4)return Q(e,i,s,a);{let n=v[h++];if((n&amp;128)&gt;0){h-=5;return}return Q(e,i,s,a,n)}}else if(t&lt;8){let n=v[h++],r=v[h++];if((n&amp;128)&gt;0||(r&amp;128)&gt;0){h-=6;return}if(t&lt;7)return Q(e,i,s,a,n,r);let o=v[h++];if((o&amp;128)&gt;0){h-=7;return}return Q(e,i,s,a,n,r,o)}else{let n=v[h++],r=v[h++],o=v[h++],u=v[h++];if((n&amp;128)&gt;0||(r&amp;128)&gt;0||(o&amp;128)&gt;0||(u&amp;128)&gt;0){h-=8;return}if(t&lt;10){if(t===8)return Q(e,i,s,a,n,r,o,u);{let l=v[h++];if((l&amp;128)&gt;0){h-=9;return}return Q(e,i,s,a,n,r,o,u,l)}}else if(t&lt;12){let l=v[h++],d=v[h++];if((l&amp;128)&gt;0||(d&amp;128)&gt;0){h-=10;return}if(t&lt;11)return Q(e,i,s,a,n,r,o,u,l,d);let O=v[h++];if((O&amp;128)&gt;0){h-=11;return}return Q(e,i,s,a,n,r,o,u,l,d,O)}else{let l=v[h++],d=v[h++],O=v[h++],g=v[h++];if((l&amp;128)&gt;0||(d&amp;128)&gt;0||(O&amp;128)&gt;0||(g&amp;128)&gt;0){h-=12;return}if(t&lt;14){if(t===12)return Q(e,i,s,a,n,r,o,u,l,d,O,g);{let p=v[h++];if((p&amp;128)&gt;0){h-=13;return}return Q(e,i,s,a,n,r,o,u,l,d,O,g,p)}}else{let p=v[h++],C=v[h++];if((p&amp;128)&gt;0||(C&amp;128)&gt;0){h-=14;return}if(t&lt;15)return Q(e,i,s,a,n,r,o,u,l,d,O,g,p,C);let M=v[h++];if((M&amp;128)&gt;0){h-=15;return}return Q(e,i,s,a,n,r,o,u,l,d,O,g,p,C,M)}}}}}function ns(){let t=v[h++],e;if(t&lt;192)e=t-160;else switch(t){case 217:e=v[h++];break;case 218:e=R.getUint16(h),h+=2;break;case 219:e=R.getUint32(h),h+=4;break;default:throw new Error("Expected string")}return Ue(e)}function si(t){return X.copyBuffers?Uint8Array.prototype.slice.call(v,h,h+=t):v.subarray(h,h+=t)}function Zt(t){let e=v[h++];if(dt[e]){let i;return dt[e](v.subarray(h,i=h+=t),s=&gt;{h=s;try{return q()}finally{h=i}})}else throw new Error("Unknown extension type "+e)}var rs=new Array(4096);function na(){let t=v[h++];if(t&gt;=160&amp;&amp;t&lt;192){if(t=t-160,wt&gt;=h)return Rt.slice(h-ht,(h+=t)-ht);if(!(wt==0&amp;&amp;ct&lt;180))return Si(t)}else return h--,q().toString();let e=(t&lt;&lt;5^(t&gt;1?R.getUint16(h):t&gt;0?v[h]:0))&amp;4095,i=rs[e],s=h,a=h+t-3,n,r=0;if(i&amp;&amp;i.bytes==t){for(;s&lt;a;){if(n=R.getUint32(s),n!=i[r++]){s=1879048192;break}s+=4}for(a+=3;s&lt;a;)if(n=v[s++],n!=i[r++]){s=1879048192;break}if(s===a)return h=s,i.string;a-=3,s=h}for(i=[],rs[e]=i,i.bytes=t;s&lt;a;)n=R.getUint32(s),i.push(n),s+=4;for(a+=3;s&lt;a;)n=v[s++],i.push(n);let o=t&lt;16?Ni(t):aa(t);return o!=null?i.string=o:i.string=Si(t)}var os=(t,e)=&gt;{let i=q().map(n=&gt;n.toString()),s=t;e!==void 0&amp;&amp;(t=t&lt;32?-((e&lt;&lt;5)+t):(e&lt;&lt;5)+t,i.highByte=e);let a=P[t];return a&amp;&amp;a.isShared&amp;&amp;((P.restoreStructures||(P.restoreStructures=[]))[t]=a),P[t]=i,i.read=Bi(i,s),i.read()};dt[0]=()=&gt;{};dt[0].noBuffer=!0;dt[101]=()=&gt;{let t=q();return(globalThis[t[0]]||Error)(t[1])};dt[105]=t=&gt;{let e=R.getUint32(h-4);Ct||(Ct=new Map);let i=v[h],s;i&gt;=144&amp;&amp;i&lt;160||i==220||i==221?s=[]:s={};let a={target:s};Ct.set(e,a);let n=q();return a.used?Object.assign(s,n):(a.target=n,n)};dt[112]=t=&gt;{let e=R.getUint32(h-4),i=Ct.get(e);return i.used=!0,i.target};dt[115]=()=&gt;new Set(q());var ra=["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64","BigInt64","BigUint64"].map(t=&gt;t+"Array");dt[116]=t=&gt;{let e=t[0],i=ra[e];if(!i)throw new Error("Could not find typed array for code "+e);return new globalThis[i](Uint8Array.prototype.slice.call(t,1).buffer)};dt[120]=()=&gt;{let t=q();return new RegExp(t[0],t[1])};var vn=[];dt[98]=t=&gt;{let e=(t[0]&lt;&lt;24)+(t[1]&lt;&lt;16)+(t[2]&lt;&lt;8)+t[3],i=h;return h+=e-t.length,tt=vn,tt=[ns(),ns()],tt.position0=0,tt.position1=0,tt.postBundlePosition=h,h=i,q()};dt[255]=t=&gt;t.length==4?new Date((t[0]*16777216+(t[1]&lt;&lt;16)+(t[2]&lt;&lt;8)+t[3])*1e3):t.length==8?new Date(((t[0]&lt;&lt;22)+(t[1]&lt;&lt;14)+(t[2]&lt;&lt;6)+(t[3]&gt;&gt;2))/1e6+((t[3]&amp;3)*4294967296+t[4]*16777216+(t[5]&lt;&lt;16)+(t[6]&lt;&lt;8)+t[7])*1e3):t.length==12?new Date(((t[0]&lt;&lt;24)+(t[1]&lt;&lt;16)+(t[2]&lt;&lt;8)+t[3])/1e6+((t[4]&amp;128?-281474976710656:0)+t[6]*1099511627776+t[7]*4294967296+t[8]*16777216+(t[9]&lt;&lt;16)+(t[10]&lt;&lt;8)+t[11])*1e3):new Date("invalid");function oa(t){let e=ct,i=h,s=ht,a=wt,n=Rt,r=Ct,o=tt,u=new Uint8Array(v.slice(0,ct)),l=P,d=P.slice(0,P.length),O=X,g=se,p=t();return ct=e,h=i,ht=s,wt=a,Rt=n,Ct=r,tt=o,v=u,se=g,P=l,P.splice(0,P.length,...d),X=O,R=new DataView(v.buffer,v.byteOffset,v.byteLength),p}function ki(){v=null,Ct=null,P=null}var Ei=new Array(147);for(let t=0;t&lt;256;t++)Ei[t]=+("1e"+Math.floor(45.15-t*.30103));var la=new Ye({useRecords:!1}),Sn=la.unpack,Ze;try{Ze=new TextEncoder}catch{}var Oi,da,Qe=typeof Buffer&lt;"u",Pe=Qe?function(t){return Buffer.allocUnsafeSlow(t)}:Uint8Array,ha=Qe?Buffer:Uint8Array,ls=Qe?4294967296:2144337920,f,ce,L,c=0,st,Y=null,kn,On=61440,An=/[\u0080-\uFFFF]/,Qt=Symbol("record-id"),In=class extends Ye{constructor(t){super(t),this.offset=0;let e,i,s,a,n=ha.prototype.utf8Write?function(b,y){return f.utf8Write(b,y,4294967295)}:Ze&amp;&amp;Ze.encodeInto?function(b,y){return Ze.encodeInto(b,f.subarray(y)).written}:!1,r=this;t||(t={});let o=t&amp;&amp;t.sequential,u=t.structures||t.saveStructures,l=t.maxSharedStructures;if(l==null&amp;&amp;(l=u?32:0),l&gt;8160)throw new Error("Maximum maxSharedStructure is 8160");t.structuredClone&amp;&amp;t.moreTypes==null&amp;&amp;(t.moreTypes=!0);let d=t.maxOwnStructures;d==null&amp;&amp;(d=u?32:64),!this.structures&amp;&amp;t.useRecords!=!1&amp;&amp;(this.structures=[]);let O=l&gt;32||d+l&gt;64,g=l+64,p=l+d+64;if(p&gt;8256)throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");let C=[],M=0,U=0;this.pack=this.encode=function(b,y){if(f||(f=new Pe(8192),L=f.dataView||(f.dataView=new DataView(f.buffer,0,8192)),c=0),st=f.length-10,st-c&lt;2048?(f=new Pe(f.length),L=f.dataView||(f.dataView=new DataView(f.buffer,0,f.length)),st=f.length-10,c=0):c=c+7&amp;2147483640,e=c,a=r.structuredClone?new Map:null,r.bundleStrings&amp;&amp;typeof b!="string"?(Y=[],Y.size=1/0):Y=null,s=r.structures,s){s.uninitialized&amp;&amp;(s=r._mergeStructures(r.getStructures()));let _=s.sharedLength||0;if(_&gt;l)throw new Error("Shared structures is larger than maximum shared structures, try increasing maxSharedStructures to "+s.sharedLength);if(!s.transitions){s.transitions=Object.create(null);for(let w=0;w&lt;_;w++){let S=s[w];if(!S)continue;let V,T=s.transitions;for(let x=0,W=S.length;x&lt;W;x++){let E=S[x];V=T[E],V||(V=T[E]=Object.create(null)),T=V}T[Qt]=w+64}this.lastNamedStructuresLength=_}o||(s.nextId=_+64)}i&amp;&amp;(i=!1);try{r.randomAccessStructure&amp;&amp;b.constructor&amp;&amp;b.constructor===Object?z(b):k(b);let _=Y;if(Y&amp;&amp;cs(e,k,0),a&amp;&amp;a.idsToInsert){let w=a.idsToInsert.sort((x,W)=&gt;x.offset&gt;W.offset?1:-1),S=w.length,V=-1;for(;_&amp;&amp;S&gt;0;){let x=w[--S].offset+e;x&lt;_.stringsPosition+e&amp;&amp;V===-1&amp;&amp;(V=0),x&gt;_.position+e?V&gt;=0&amp;&amp;(V+=6):(V&gt;=0&amp;&amp;(L.setUint32(_.position+e,L.getUint32(_.position+e)+V),V=-1),_=_.previous,S++)}V&gt;=0&amp;&amp;_&amp;&amp;L.setUint32(_.position+e,L.getUint32(_.position+e)+V),c+=w.length*6,c&gt;st&amp;&amp;I(c),r.offset=c;let T=jn(f.subarray(e,c),w);return a=null,T}return r.offset=c,y&amp;Vn?(f.start=e,f.end=c,f):f.subarray(e,c)}finally{if(s){U&lt;10&amp;&amp;U++;let _=s.sharedLength||0;if(s.length&gt;_&amp;&amp;(s.length=_),M&gt;1e4)s.transitions=null,U=0,M=0,C.length&gt;0&amp;&amp;(C=[]);else if(C.length&gt;0&amp;&amp;!o){for(let w=0,S=C.length;w&lt;S;w++)C[w][Qt]=0;C=[]}if(i&amp;&amp;r.saveStructures){let w=f.subarray(e,c),S=Cn(s,r);return r.saveStructures(S,S.isCompatible)===!1?r.pack(b):(r.lastNamedStructuresLength=_,w)}}y&amp;zn&amp;&amp;(c=e)}};let A=b=&gt;{var y=b.length;y&lt;16?f[c++]=144|y:y&lt;65536?(f[c++]=220,f[c++]=y&gt;&gt;8,f[c++]=y&amp;255):(f[c++]=221,L.setUint32(c,y),c+=4);for(let _=0;_&lt;y;_++)k(b[_])},k=b=&gt;{c&gt;st&amp;&amp;(f=I(c));var y=typeof b,_;if(y==="string"){let w=b.length;if(Y&amp;&amp;w&gt;=4&amp;&amp;w&lt;4096){if((Y.size+=w)&gt;On){let x,W=(Y[0]?Y[0].length*3+Y[1].length:0)+10;c+W&gt;st&amp;&amp;(f=I(c+W));let E;Y.position?(E=Y,f[c]=200,c+=3,f[c++]=98,x=c-e,c+=4,cs(e,k,0),L.setUint16(x+e-3,c-e-x)):(f[c++]=214,f[c++]=98,x=c-e,c+=4),Y=["",""],Y.previous=E,Y.size=0,Y.position=x}let T=An.test(b);Y[T?0:1]+=b,f[c++]=193,k(T?-w:w);return}let S;w&lt;32?S=1:w&lt;256?S=2:w&lt;65536?S=3:S=5;let V=w*3;if(c+V&gt;st&amp;&amp;(f=I(c+V)),w&lt;64||!n){let T,x,W,E=c+S;for(T=0;T&lt;w;T++)x=b.charCodeAt(T),x&lt;128?f[E++]=x:x&lt;2048?(f[E++]=x&gt;&gt;6|192,f[E++]=x&amp;63|128):(x&amp;64512)===55296&amp;&amp;((W=b.charCodeAt(T+1))&amp;64512)===56320?(x=65536+((x&amp;1023)&lt;&lt;10)+(W&amp;1023),T++,f[E++]=x&gt;&gt;18|240,f[E++]=x&gt;&gt;12&amp;63|128,f[E++]=x&gt;&gt;6&amp;63|128,f[E++]=x&amp;63|128):(f[E++]=x&gt;&gt;12|224,f[E++]=x&gt;&gt;6&amp;63|128,f[E++]=x&amp;63|128);_=E-c-S}else _=n(b,c+S);_&lt;32?f[c++]=160|_:_&lt;256?(S&lt;2&amp;&amp;f.copyWithin(c+2,c+1,c+1+_),f[c++]=217,f[c++]=_):_&lt;65536?(S&lt;3&amp;&amp;f.copyWithin(c+3,c+2,c+2+_),f[c++]=218,f[c++]=_&gt;&gt;8,f[c++]=_&amp;255):(S&lt;5&amp;&amp;f.copyWithin(c+5,c+3,c+3+_),f[c++]=219,L.setUint32(c,_),c+=4),c+=_}else if(y==="number")if(b&gt;&gt;&gt;0===b)b&lt;32||b&lt;128&amp;&amp;this.useRecords===!1||b&lt;64&amp;&amp;!this.randomAccessStructure?f[c++]=b:b&lt;256?(f[c++]=204,f[c++]=b):b&lt;65536?(f[c++]=205,f[c++]=b&gt;&gt;8,f[c++]=b&amp;255):(f[c++]=206,L.setUint32(c,b),c+=4);else if(b&gt;&gt;0===b)b&gt;=-32?f[c++]=256+b:b&gt;=-128?(f[c++]=208,f[c++]=b+256):b&gt;=-32768?(f[c++]=209,L.setInt16(c,b),c+=2):(f[c++]=210,L.setInt32(c,b),c+=4);else{let w;if((w=this.useFloat32)&gt;0&amp;&amp;b&lt;4294967296&amp;&amp;b&gt;=-2147483648){f[c++]=202,L.setFloat32(c,b);let S;if(w&lt;4||(S=b*Ei[(f[c]&amp;127)&lt;&lt;1|f[c+1]&gt;&gt;7])&gt;&gt;0===S){c+=4;return}else c--}f[c++]=203,L.setFloat64(c,b),c+=8}else if(y==="object")if(!b)f[c++]=192;else{if(a){let S=a.get(b);if(S){if(!S.id){let V=a.idsToInsert||(a.idsToInsert=[]);S.id=V.push(S)}f[c++]=214,f[c++]=112,L.setUint32(c,S.id),c+=4;return}else a.set(b,{offset:c-e})}let w=b.constructor;if(w===Object)m(b,!0);else if(w===Array)A(b);else if(w===Map){_=b.size,_&lt;16?f[c++]=128|_:_&lt;65536?(f[c++]=222,f[c++]=_&gt;&gt;8,f[c++]=_&amp;255):(f[c++]=223,L.setUint32(c,_),c+=4);for(let[S,V]of b)k(S),k(V)}else{for(let S=0,V=Oi.length;S&lt;V;S++){let T=da[S];if(b instanceof T){let x=Oi[S];if(x.write){x.type&amp;&amp;(f[c++]=212,f[c++]=x.type,f[c++]=0);let Tt=x.write.call(this,b);Tt===b?Array.isArray(b)?A(b):m(b):k(Tt);return}let W=f,E=L,St=c;f=null;let Lt;try{Lt=x.pack.call(this,b,Tt=&gt;(f=W,W=null,c+=Tt,c&gt;st&amp;&amp;I(c),{target:f,targetView:L,position:c-Tt}),k)}finally{W&amp;&amp;(f=W,L=E,c=St,st=f.length-10)}Lt&amp;&amp;(Lt.length+c&gt;st&amp;&amp;I(Lt.length+c),c=xn(Lt,f,c,x.type));return}}Array.isArray(b)?A(b):m(b,!b.hasOwnProperty)}}else if(y==="boolean")f[c++]=b?195:194;else if(y==="bigint"){if(b&lt;BigInt(1)&lt;&lt;BigInt(63)&amp;&amp;b&gt;=-(BigInt(1)&lt;&lt;BigInt(63)))f[c++]=211,L.setBigInt64(c,b);else if(b&lt;BigInt(1)&lt;&lt;BigInt(64)&amp;&amp;b&gt;0)f[c++]=207,L.setBigUint64(c,b);else if(this.largeBigIntToFloat)f[c++]=203,L.setFloat64(c,Number(b));else throw new RangeError(b+" was too large to fit in MessagePack 64-bit integer format, set largeBigIntToFloat to convert to float-64");c+=8}else if(y==="undefined")this.encodeUndefinedAsNil?f[c++]=192:(f[c++]=212,f[c++]=0,f[c++]=0);else if(y==="function")k(this.writeFunction&amp;&amp;this.writeFunction());else throw new Error("Unknown type: "+y)},m=this.useRecords===!1?this.variableMapSize?b=&gt;{let y=Object.keys(b),_=y.length;_&lt;16?f[c++]=128|_:_&lt;65536?(f[c++]=222,f[c++]=_&gt;&gt;8,f[c++]=_&amp;255):(f[c++]=223,L.setUint32(c,_),c+=4);let w;for(let S=0;S&lt;_;S++)k(w=y[S]),k(b[w])}:(b,y)=&gt;{f[c++]=222;let _=c-e;c+=2;let w=0;for(let S in b)(y||b.hasOwnProperty(S))&amp;&amp;(k(S),k(b[S]),w++);f[_+++e]=w&gt;&gt;8,f[_+e]=w&amp;255}:t.progressiveRecords&amp;&amp;!O?(b,y)=&gt;{let _,w=s.transitions||(s.transitions=Object.create(null)),S=c++-e,V;for(let T in b)if(y||b.hasOwnProperty(T)){if(_=w[T],_)w=_;else{let x=Object.keys(b),W=w;w=s.transitions;let E=0;for(let St=0,Lt=x.length;St&lt;Lt;St++){let Tt=x[St];_=w[Tt],_||(_=w[Tt]=Object.create(null),E++),w=_}S+e+1==c?(c--,H(w,x,E)):F(w,x,S,E),V=!0,w=W[T]}k(b[T])}if(!V){let T=w[Qt];T?f[S+e]=T:F(w,Object.keys(b),S,0)}}:(b,y)=&gt;{let _,w=s.transitions||(s.transitions=Object.create(null)),S=0;for(let T in b)(y||b.hasOwnProperty(T))&amp;&amp;(_=w[T],_||(_=w[T]=Object.create(null),S++),w=_);let V=w[Qt];V?V&gt;=96&amp;&amp;O?(f[c++]=((V-=96)&amp;31)+96,f[c++]=V&gt;&gt;5):f[c++]=V:H(w,w.__keys__||Object.keys(b),S);for(let T in b)(y||b.hasOwnProperty(T))&amp;&amp;k(b[T])},I=b=&gt;{let y;if(b&gt;16777216){if(b-e&gt;ls)throw new Error("Packed buffer would be larger than maximum buffer size");y=Math.min(ls,Math.round(Math.max((b-e)*(b&gt;67108864?1.25:2),4194304)/4096)*4096)}else y=(Math.max(b-e&lt;&lt;2,f.length-1)&gt;&gt;12)+1&lt;&lt;12;let _=new Pe(y);return L=_.dataView||(_.dataView=new DataView(_.buffer,0,y)),b=Math.min(b,f.length),f.copy?f.copy(_,0,e,b):_.set(f.slice(e,b)),c-=e,e=0,st=_.length-10,f=_},H=(b,y,_)=&gt;{let w=s.nextId;w||(w=64),w&lt;g&amp;&amp;this.shouldShareStructure&amp;&amp;!this.shouldShareStructure(y)?(w=s.nextOwnId,w&lt;p||(w=g),s.nextOwnId=w+1):(w&gt;=p&amp;&amp;(w=g),s.nextId=w+1);let S=y.highByte=w&gt;=96&amp;&amp;O?w-96&gt;&gt;5:-1;b[Qt]=w,b.__keys__=y,s[w-64]=y,w&lt;g?(y.isShared=!0,s.sharedLength=w-63,i=!0,S&gt;=0?(f[c++]=(w&amp;31)+96,f[c++]=S):f[c++]=w):(S&gt;=0?(f[c++]=213,f[c++]=114,f[c++]=(w&amp;31)+96,f[c++]=S):(f[c++]=212,f[c++]=114,f[c++]=w),_&amp;&amp;(M+=U*_),C.length&gt;=d&amp;&amp;(C.shift()[Qt]=0),C.push(b),k(y))},F=(b,y,_,w)=&gt;{let S=f,V=c,T=st,x=e;f=ce,c=0,e=0,f||(ce=f=new Pe(8192)),st=f.length-10,H(b,y,w),ce=f;let W=c;if(f=S,c=V,st=T,e=x,W&gt;1){let E=c+W-1;E&gt;st&amp;&amp;I(E);let St=_+e;f.copyWithin(St+W,St+1,c),f.set(ce.slice(0,W),St),c=E}else f[_+e]=ce[0]},z=(b,y)=&gt;{let _=kn(b,f,c,s,I,(w,S,V)=&gt;{if(V)return i=!0;if(c=S,e&gt;0){if(k(w),e==0)return{position:c,targetView:L,target:f}}else k(w);return c},this);if(_===0)return m(b,!0);c=_}}useBuffer(t){f=t,L=new DataView(f.buffer,f.byteOffset,f.byteLength),c=0}clearSharedData(){this.structures&amp;&amp;(this.structures=[]),this.typedStructs&amp;&amp;(this.typedStructs=[])}};da=[Date,Set,Error,RegExp,ArrayBuffer,Object.getPrototypeOf(Uint8Array.prototype).constructor,ta];Oi=[{pack(t,e,i){let s=t.getTime()/1e3;if((this.useTimestamp32||t.getMilliseconds()===0)&amp;&amp;s&gt;=0&amp;&amp;s&lt;4294967296){let{target:a,targetView:n,position:r}=e(6);a[r++]=214,a[r++]=255,n.setUint32(r,s)}else if(s&gt;0&amp;&amp;s&lt;4294967296){let{target:a,targetView:n,position:r}=e(10);a[r++]=215,a[r++]=255,n.setUint32(r,t.getMilliseconds()*4e6+(s/1e3/4294967296&gt;&gt;0)),n.setUint32(r+4,s)}else if(isNaN(s)){if(this.onInvalidDate)return e(0),i(this.onInvalidDate());let{target:a,targetView:n,position:r}=e(3);a[r++]=212,a[r++]=255,a[r++]=255}else{let{target:a,targetView:n,position:r}=e(15);a[r++]=199,a[r++]=12,a[r++]=255,n.setUint32(r,t.getMilliseconds()*1e6),n.setBigInt64(r+4,BigInt(Math.floor(s)))}}},{pack(t,e,i){let s=Array.from(t),{target:a,position:n}=e(this.moreTypes?3:0);this.moreTypes&amp;&amp;(a[n++]=212,a[n++]=115,a[n++]=0),i(s)}},{pack(t,e,i){let{target:s,position:a}=e(this.moreTypes?3:0);this.moreTypes&amp;&amp;(s[a++]=212,s[a++]=101,s[a++]=0),i([t.name,t.message])}},{pack(t,e,i){let{target:s,position:a}=e(this.moreTypes?3:0);this.moreTypes&amp;&amp;(s[a++]=212,s[a++]=120,s[a++]=0),i([t.source,t.flags])}},{pack(t,e){this.moreTypes?ds(t,16,e):hs(Qe?Buffer.from(t):new Uint8Array(t),e)}},{pack(t,e){let i=t.constructor;i!==ha&amp;&amp;this.moreTypes?ds(t,ra.indexOf(i.name),e):hs(t,e)}},{pack(t,e){let{target:i,position:s}=e(1);i[s]=193}}];function ds(t,e,i,s){let a=t.byteLength;if(a+1&lt;256){var{target:n,position:r}=i(4+a);n[r++]=199,n[r++]=a+1}else if(a+1&lt;65536){var{target:n,position:r}=i(5+a);n[r++]=200,n[r++]=a+1&gt;&gt;8,n[r++]=a+1&amp;255}else{var{target:n,position:r,targetView:o}=i(7+a);n[r++]=201,o.setUint32(r,a+1),r+=4}n[r++]=116,n[r++]=e,n.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),r)}function hs(t,e){let i=t.byteLength;var s,a;if(i&lt;256){var{target:s,position:a}=e(i+2);s[a++]=196,s[a++]=i}else if(i&lt;65536){var{target:s,position:a}=e(i+3);s[a++]=197,s[a++]=i&gt;&gt;8,s[a++]=i&amp;255}else{var{target:s,position:a,targetView:n}=e(i+5);s[a++]=198,n.setUint32(a,i),a+=4}s.set(t,a)}function xn(t,e,i,s){let a=t.length;switch(a){case 1:e[i++]=212;break;case 2:e[i++]=213;break;case 4:e[i++]=214;break;case 8:e[i++]=215;break;case 16:e[i++]=216;break;default:a&lt;256?(e[i++]=199,e[i++]=a):a&lt;65536?(e[i++]=200,e[i++]=a&gt;&gt;8,e[i++]=a&amp;255):(e[i++]=201,e[i++]=a&gt;&gt;24,e[i++]=a&gt;&gt;16&amp;255,e[i++]=a&gt;&gt;8&amp;255,e[i++]=a&amp;255)}return e[i++]=s,e.set(t,i),i+=a,i}function jn(t,e){let i,s=e.length*6,a=t.length-s;for(;i=e.pop();){let n=i.offset,r=i.id;t.copyWithin(n+s,n,a),s-=6;let o=n+s;t[o++]=214,t[o++]=105,t[o++]=r&gt;&gt;24,t[o++]=r&gt;&gt;16&amp;255,t[o++]=r&gt;&gt;8&amp;255,t[o++]=r&amp;255,a=n}return t}function cs(t,e,i){if(Y.length&gt;0){L.setUint32(Y.position+t,c+i-Y.position-t),Y.stringsPosition=c-t;let s=Y;Y=null,e(s[0]),e(s[1])}}function Cn(t,e){return t.isCompatible=i=&gt;{let s=!i||(e.lastNamedStructuresLength||0)===i.length;return s||e._mergeStructures(i),s},t}var Un=new In({useRecords:!1}),Tn=Un.pack,Vn=512,zn=1024,ye=t=&gt;Tn(t.toJSObject()),me=(t,e)=&gt;t.fromJSObject(Sn(e)),ca=(t,e,i)=&gt;{if(!e.thnkServer)return-1;let{stateVariables:s,objectsRegistery:a}=e.thnkServer,{publicStateVariable:n,privateStateVariable:r}=s,o=n.getChildrenCount()!==0?it.createPublicStatePackedVector(t,ye(n)):null,u=r.getChild(i),l=u.getChildrenCount()!==0?it.createPrivateStatePackedVector(t,ye(u)):null,d=a.createObjectsSnapshot(t,i),O=d.length?it.createObjectsVector(t,d):null;return it.startGameStateSnapshot(t),o&amp;&amp;it.addPublicStatePacked(t,o),l&amp;&amp;it.addPrivateStatePacked(t,l),O&amp;&amp;it.addObjects(t,O),it.endGameStateSnapshot(t)},Fn=(t,e,i)=&gt;{let s=new Et(512),a=s.createString(i.getName()),n=ca(s,i,t);Ht.startConnectionStartMessage(s),Ht.addSceneName(s,a),Ht.addSceneSnapshot(s,n),e.sendServerMessageTo(t,s,_t.createServerMessage(s,1,Ht.endConnectionStartMessage(s)))},Dn=(t,e,i)=&gt;{let s=new Et(256),a=i.serialize(s,t);if(!a)return;jt.startGameStateUpdateMessage(s),jt.addScene(s,a);let n=jt.endGameStateUpdateMessage(s);e.sendServerMessageTo(t,s,_t.createServerMessage(s,2,n))},Rn=(t,e,i)=&gt;{let s=new Et(512),a=s.createString(e);ut.startSceneSwitchMessage(s),ut.addSceneName(s,a),ut.addIsPause(s,i),t.sendServerMessageToAll(s,_t.createServerMessage(s,3,ut.endSceneSwitchMessage(s)))},ai=(t,e,i)=&gt;{for(let s of t){let a=new Et(512),n=i?a.createString(i.getName()):null,r=i?ca(a,i,s):null;ft.startResumePreviousSceneMessage(a),r&amp;&amp;n&amp;&amp;(ft.addSnapshot(a,r),ft.addName(a,n));let o=_t.createServerMessage(a,4,ft.endResumePreviousSceneMessage(a));e.sendServerMessageTo(s,a,o)}},ba={};$e(ba,{getCurrentPlayerID:()=&gt;Pn,markObjectAsOwned:()=&gt;Mn,pickOwnedObjects:()=&gt;Bn,switchPlayerContext:()=&gt;Ge});var ve="",Ai=new Map,Pn=()=&gt;ve,Ge=t=&gt;{ve=t},Mn=t=&gt;{let e=Ai.get(ve);e||Ai.set(ve,e=new gdjs.LongLivedObjectsList),e.addObject(t.getName(),t)},Bn=t=&gt;{let e=Ai.get(ve);if(!e){for(let i of Object.values(t.items))i.length=0;return!1}for(let[i,s]of Object.entries(t.items))gdjs.copyArray(e.getObjects(i),s);return!0},bs=new Map,Li=t=&gt;{let e=bs.get(t);return e||bs.set(t,e=[]),e},Nn=(t,e,i)=&gt;{Li(e).push({initiatorUserID:t,serializedExtraData:i})},En=(t,e,i)=&gt;{Li(e).push({initiatorUserID:t,extraData:i})},Ln=(t,e)=&gt;{let i=Li(t);if(i.length){let s=i.shift();return Ge(s.initiatorUserID),s.serializedExtraData?me(e,s.serializedExtraData):s.extraData&amp;&amp;gdjs.Variable.copy(s.extraData,e),!0}return!1},Zn=t=&gt;!!t.thnkServer?.playerManager.popConnection(),Hn=t=&gt;!!t.thnkServer?.playerManager.popDisconnection(),fa={};$e(fa,{getTickRate:()=&gt;Zi,isDedicated:()=&gt;pa,setDedicated:()=&gt;Yn,setTickRate:()=&gt;Gn});var ua=!1,_a=120,Yn=()=&gt;{ua=!0},Gn=t=&gt;{_a=Math.max(1,t)},Zi=()=&gt;_a,pa=()=&gt;ua,at=class extends gdjs.Variable{dirty=!0;operations=[];static setupSyncedVariable(t,e){let i=new at;return t.has(e)&amp;&amp;gdjs.Variable.copy(t.get(e),i),t.add(e,i),i}static setupStateVariables(t){let e=at.setupSyncedVariable(t,"State"),i=at.setupSyncedVariable(t,"PlayerState"),s=at.setupSyncedVariable(t,"TeamState");return{publicStateVariable:e,privateStateVariable:i,teamStateVariable:s}}reinitialize(t){if(this._type="number",this._value=0,this._str="0",this._bool=!1,this._children={},this._childrenArray=[],this._undefinedInContainer=!1,t!==void 0){if(this._type=t.type||"number",this._type==="number")this._value=parseFloat(t.value||"0"),this._value!==this._value&amp;&amp;(this._value=0);else if(this._type==="string")this._str=""+t.value||"0";else if(this._type==="boolean")this._bool=!!t.value;else if(this._type==="structure"){if(t.children!==void 0)for(var e=0,i=t.children.length;e&lt;i;++e){var s=t.children[e];if(s.name===void 0)continue;let a=new at(s);this._children[s.name]=a,this.operations.push({type:1,targetName:s.name,targetVariable:a})}}else if(this._type==="array"&amp;&amp;t.children)for(let a of t.children){let n=new at(a);this._childrenArray.push(n),this.operations.push({type:1,targetName:a.name,targetVariable:n})}}}setBoolean(t){t!==this._bool&amp;&amp;(this.dirty=!0),super.setBoolean(t)}setNumber(t){t!==this._value&amp;&amp;(this.dirty=!0),super.setNumber(t)}setString(t){t!==this._str&amp;&amp;(this.dirty=!0),super.setString(t)}clearChildren(){this.dirty=!0,this.operations.length=0,this.operations.push({type:3}),super.clearChildren()}static _convertToSyncedVariable(t){let e=t;if(Object.getPrototypeOf(e)!==at.prototype){if(Object.setPrototypeOf(e,at.prototype),e.operations=[],e.dirty=!0,e._type==="array"){let i=e._childrenArray.length;for(let s=0;s&lt;i;s++)e.operations.push({type:1,targetName:s,targetVariable:this._convertToSyncedVariable(e._childrenArray[s])})}else if(e._type==="structure")for(let i in e._children)e.operations.push({type:1,targetName:i,targetVariable:this._convertToSyncedVariable(e._children[i])})}return e}addChild(t,e){return this.dirty=!0,e=at._convertToSyncedVariable(e),this.operations.push({type:1,targetName:t,targetVariable:e}),super.addChild(t,e)}getChild(t){if(this.isPrimitive()&amp;&amp;this.castTo("structure"),this._type==="array")return this.getChildAt(parseInt(t,10)||0);if(this._children[t]===void 0||this._children[t]===null){this.dirty=!0;let e=new at;this._children[t]=e,this.operations.push({type:1,targetName:t,targetVariable:e})}return this._children[t]}getChildAt(t){if(this.castTo("array"),this._childrenArray[t]===void 0||this._childrenArray[t]===null){this.dirty=!0;let e=new at;this._childrenArray[t]=e,this.operations.push({type:1,targetName:t,targetVariable:e})}return this._childrenArray[t]}removeChild(t){super.removeChild(t),this.operations.push({type:2,targetName:t})}removeAtIndex(t){super.removeAtIndex(t),this.operations.push({type:2,targetName:t})}pushValue(t){this.dirty=!0;let e=this._childrenArray.length;this.castTo("array"),this._childrenArray.push(new at({type:typeof t,value:t})),this.operations.push({type:1,targetName:e,targetVariable:this._childrenArray[e]})}pushVariableCopy(t){this.dirty=!0;let e=this._childrenArray.length;this.castTo("array"),this._childrenArray.push(gdjs.Variable.copy(t,new at)),this.operations.push({type:1,targetName:e,targetVariable:this._childrenArray[e]})}getAllChildrenArray(){return super.getAllChildrenArray()}getAllChildren(){return super.getAllChildren()}isDirty(){if(this.dirty)return!0;if(!this.isPrimitive()){for(let t of this.getAllChildrenArray())if(t.isDirty())return this.dirty=!0,!0}return!1}serialize(t){switch(this.dirty=!1,this.getType()){case"number":return N.startVariable(t),N.addType(t,2),N.addNumber(t,this._value),N.endVariable(t);case"string":let s=t.createSharedString(this._str);return N.startVariable(t),N.addType(t,1),N.addText(t,s),N.endVariable(t);case"boolean":return N.startVariable(t),N.addType(t,3),N.addBoolean(t,this._bool),N.endVariable(t)}let e=[];for(let s of this.operations){let a=typeof s.targetName=="string"?t.createString(s.targetName):null,n=typeof s.targetName=="number"?s.targetName:null,r=s.targetVariable?s.targetVariable.serialize(t):null;$.startCollectionOperation(t),$.addOperation(t,s.type),a&amp;&amp;$.addName(t,a),n&amp;&amp;$.addIndex(t,n),r&amp;&amp;$.addVal(t,r),e.push($.endCollectionOperation(t))}if(this.operations.length=0,this._type==="array")for(let s in this._childrenArray){let a=+s,n=this._childrenArray[a];if(n.isDirty()){let r=n.serialize(t);$.startCollectionOperation(t),$.addOperation(t,1),$.addIndex(t,a),$.addVal(t,r),e.push($.endCollectionOperation(t))}}else for(let[s,a]of Object.entries(this.getAllChildren()))if(a.isDirty()){let n=t.createString(s),r=a.serialize(t);$.startCollectionOperation(t),$.addOperation(t,1),$.addName(t,n),$.addVal(t,r),e.push($.endCollectionOperation(t))}let i=N.createOperationsVector(t,e);return N.startVariable(t),N.addType(t,this._type==="structure"?4:5),N.addOperations(t,i),N.endVariable(t)}serializeToBinary(){let t=new Et(64);return t.finish(this.serialize(t)),t.asUint8Array()}},Xn=class{connectedPlayers=new Set;connectionsQueue=[];disconnectionsQueue=[];_onConnect(t){this.connectedPlayers.add(t),this.connectionsQueue.push(t)}_onDisconnect(t){this.connectedPlayers.delete(t),this.disconnectionsQueue.push(t)}alreadyHas(t){return this.connectedPlayers.has(t)}popConnection(){return this.connectionsQueue.length?(Ge(this.connectionsQueue.shift()),!0):!1}popDisconnection(){return this.disconnectionsQueue.length?(Ge(this.disconnectionsQueue.shift()),!0):!1}},ga=(t,e)=&gt;{let[i,s,a]=e.split(";").map(n=&gt;parseInt(n,10));return Mi.createRGB(t,i,s,a)},Wn=(t,e,i)=&gt;{let s=e.getString?t.createSharedString(e.getString()):null,a=t.createSharedString(e.getLayer());j.startObjState(t),a&amp;&amp;j.addLayer(t,a),j.addX(t,e.getX()),j.addY(t,e.getY()),j.addHeight(t,e.getHeight()),j.addWidth(t,e.getWidth()),j.addAngle(t,e.getAngle()),e.getX()===0&amp;&amp;j.addSetXTo0(t,!0),e.getY()===0&amp;&amp;j.addSetYTo0(t,!0),e.getHeight()===0&amp;&amp;j.addSetHeightTo0(t,!0),e.getWidth()===0&amp;&amp;j.addSetWidthTo0(t,!0),e.getAngle()===0&amp;&amp;j.addSetAngleTo0(t,!0),e.getZOrder()&lt;=65535?j.addZOrder(t,e.getZOrder()+1):j.addBigZOrder(t,e.getZOrder()+1),j.addVisible(t,e.isHidden()?1:2),e.isFlippedX&amp;&amp;j.addFlippedX(t,e.isFlippedX()?1:2),e.isFlippedY&amp;&amp;j.addFlippedY(t,e.isFlippedY()?1:2),e.getOpacity&amp;&amp;(e.getOpacity()!==0?j.addOpacity(t,e.getOpacity()):j.addSetOpacityTo0(t,!0)),e.getAnimation&amp;&amp;j.addAnimation(t,e.getAnimation()+1),e.getColor&amp;&amp;j.addTint(t,ga(t,e.getColor())),s&amp;&amp;j.addText(t,s);let n=j.endObjState(t),{stateVariables:r}=e,{publicStateVariable:o,privateStateVariable:u}=r,l=o.getChildrenCount()!==0?K.createPackedPublicStateVector(t,ye(o)):null,d=u.getChild(i),O=d.getChildrenCount()!==0?K.createPackedPrivateStateVector(t,ye(d)):null,g=t.createSharedString(e.getName());return K.startGameObject(t),K.addId(t,e.thnkID),K.addName(t,g),K.addObjState(t,n),l&amp;&amp;K.addPackedPublicState(t,l),O&amp;&amp;K.addPackedPrivateState(t,O),K.endGameObject(t)},Kn=new gdjs.Logger("THNK - Objects replication"),qn=class{recycledIDs=[];currentNewID=1;generateNewID=()=&gt;{let t=this.recycledIDs.pop()??this.currentNewID++;return t&gt;65535?(Kn.error("Maximum amount of simultaneously replicated objects reached! Weird stuff is going to happen..."),t%65535):t};registeredObjects=new Map;forEach(t){for(let e of this.registeredObjects.values())t(e)}registerObject(t){t.thnkID=this.generateNewID(),this.registeredObjects.set(t.thnkID,t),this.createdObjects.set(t.thnkID,t.getName()),t.prevLayer=void 0,t.prevX=NaN,t.prevY=NaN,t.prevAngle=NaN,t.prevScale=NaN,t.prevZOrder=NaN,t.prevHeight=NaN,t.prevWidth=NaN,t.prevOpacity=NaN,t.prevFlippedX=void 0,t.prevFlippedY=void 0,t.prevVisibility=void 0,t.prevAnimation=NaN,t.prevText=void 0,t.prevColor=void 0,t.stateVariables=at.setupStateVariables(t.getVariables())}unregisterObject(t){this.recycledIDs.push(t.thnkID),this.registeredObjects.delete(t.thnkID),this.deletedObjects.add(t.thnkID),this.createdObjects.delete(t.thnkID),t.thnkID=void 0}createObjectsSnapshot(t,e){let i=[];for(let s of this.registeredObjects.values())i.push(Wn(t,s,e));return i}createdObjects=new Map;deletedObjects=new Set;getCreatedObjects(){let t=[...this.createdObjects.entries()];return this.createdObjects.clear(),t}getDeletedObjects(){let t=Uint16Array.from(this.deletedObjects.values());return this.deletedObjects.clear(),t}},$n=class{diffsCount;diffs;currentDiff=0;constructor(){this.diffsCount=Math.min(30,Zi()*4),this.diffs=new Array(this.diffsCount)}createSnapshot(t){let e=wa.createDiff(t);return e&amp;&amp;(this.diffs[++this.currentDiff%this.diffsCount]=e),e}getSnapshot(t){return this.currentDiff-t&gt;this.diffsCount?null:this.diffs[t%this.diffsCount]}},wa=class{sceneDiff;constructor(){}static createDiff(t){let e=ya.createDiff(t);if(!e)return null;let i=new wa;return i.sceneDiff=e,i}serialize(t,e){return this.sceneDiff?.serialize(t,e)}},ya=class{publicStateVariableDiff;privateStateVariablesDiffs=new Map;teamStateVariablesDiffs=new Map;objectsDiff=new Map;deletedObjects=new Set;createdObjects=new Map;constructor(){}static createDiff(t){let{thnkServer:e}=t;if(!e)throw new Error("Impossible to take a diff snapshot when not running a THNK server!");let{stateVariables:i,objectsRegistery:s}=e,{publicStateVariable:a,privateStateVariable:n,teamStateVariable:r}=i,o=new ya;a.isDirty()&amp;&amp;(o.publicStateVariableDiff=a.serializeToBinary());{let u=n.getAllChildren();for(let l in u)u[l].isDirty()&amp;&amp;o.privateStateVariablesDiffs.set(l,u[l].serializeToBinary())}{let u=r.getAllChildren();for(let l in u)u[l].isDirty()&amp;&amp;o.teamStateVariablesDiffs.set(l,u[l].serializeToBinary())}s.forEach(u=&gt;{let l=ma.createDiff(u);l&amp;&amp;o.objectsDiff.set(u.thnkID,l)});for(let[u,l]of s.getCreatedObjects())o.createdObjects.set(u,l);for(let u of s.getDeletedObjects())o.deletedObjects.add(u);return o}serialize(t,e){let i=this.publicStateVariableDiff?G.createPublicStateDiffVector(t,this.publicStateVariableDiff):null,s=this.privateStateVariablesDiffs.get(e),a=s?G.createPrivateStateDiffVector(t,s):null,n=[];for(let l of this.objectsDiff.values())l.needsToBeSerialized(e)&amp;&amp;n.push(l.serialize(t,e));let r=n.length?G.createObjectsVector(t,n):null,o=null;if(this.createdObjects.size){let l=new Uint16Array(this.createdObjects.size),d=0;for(let[O,g]of this.createdObjects){let p=t.createSharedString(g);l[d++]=zt.createCreatedObject(t,O,p)}o=G.createCreatedObjectsVector(t,l)}let u=this.deletedObjects.size?G.createDeletedObjectsVector(t,[...this.deletedObjects]):null;return G.startScene(t),i&amp;&amp;G.addPublicStateDiff(t,i),a&amp;&amp;G.addPrivateStateDiff(t,a),r&amp;&amp;G.addObjects(t,r),o&amp;&amp;G.addCreatedObjects(t,o),u&amp;&amp;G.addDeletedObjects(t,u),G.endScene(t)}},ma=class{id;aabb;publicStateVariableDiff;privateStateVariablesDiffs=new Map;teamStateVariablesDiffs=new Map;propertyChanged=!1;layer;x;y;height;width;angle;zOrder;hidden;flippedX;flippedY;opacity;animation;string;color;constructor(t,e){this.id=t,this.aabb=e}static createDiff(t){let e=new ma(t.thnkID,t.getVisibilityAABB()||t.getAABB());t.getLayer()!==t.prevLayer&amp;&amp;(t.prevLayer=t.getLayer(),e.propertyChanged=!0,e.layer=t.getLayer()),t.getX()!==t.prevX&amp;&amp;(t.prevX=t.getX(),e.propertyChanged=!0,e.x=t.getX()),t.getY()!==t.prevY&amp;&amp;(t.prevY=t.getY(),e.propertyChanged=!0,e.y=t.getY()),t.getHeight()!==t.prevHeight&amp;&amp;(t.prevHeight=t.getHeight(),e.propertyChanged=!0,e.height=t.getHeight()),t.getWidth()!==t.prevWidth&amp;&amp;(t.prevWidth=t.getWidth(),e.propertyChanged=!0,e.width=t.getWidth()),t.getAngle()!==t.prevAngle&amp;&amp;(t.prevAngle=t.getAngle(),e.propertyChanged=!0,e.angle=t.getAngle()),t.getZOrder()!==t.prevZOrder&amp;&amp;(t.prevZOrder=t.getZOrder(),e.propertyChanged=!0,e.zOrder=t.getZOrder()),t.isHidden()!==t.prevVisibility&amp;&amp;(t.prevVisibility=t.isHidden(),e.propertyChanged=!0,e.hidden=t.isHidden()),t.isFlippedX&amp;&amp;t.isFlippedX()!==t.prevFlippedX&amp;&amp;(t.prevFlippedX=t.isFlippedX(),e.propertyChanged=!0,e.flippedX=t.isFlippedX()),t.isFlippedY&amp;&amp;t.isFlippedY()!==t.prevFlippedY&amp;&amp;(t.prevFlippedY=t.isFlippedY(),e.propertyChanged=!0,e.flippedY=t.isFlippedY()),t.getOpacity&amp;&amp;t.getOpacity()!==t.prevOpacity&amp;&amp;(t.prevOpacity=t.getOpacity(),e.propertyChanged=!0,e.opacity=t.getOpacity()),t.getString&amp;&amp;t.getString()!==t.prevText&amp;&amp;(t.prevText=t.getString(),e.propertyChanged=!0,e.string=t.getString()),t.getColor&amp;&amp;t.getColor()!==t.prevColor&amp;&amp;(t.prevColor=t.getColor(),e.propertyChanged=!0,e.color=t.getColor()),t.getAnimation&amp;&amp;t.getAnimation()!==t.prevAnimation&amp;&amp;(t.prevAnimation=t.getAnimation(),e.propertyChanged=!0,e.animation=t.getAnimation());let{publicStateVariable:i,privateStateVariable:s,teamStateVariable:a}=t.stateVariables;i.isDirty()&amp;&amp;(e.publicStateVariableDiff=i.serializeToBinary());{let n=s.getAllChildren();for(let r in n)n[r].isDirty()&amp;&amp;e.privateStateVariablesDiffs.set(r,n[r].serializeToBinary())}{let n=a.getAllChildren();for(let r in n)n[r].isDirty()&amp;&amp;e.teamStateVariablesDiffs.set(r,n[r].serializeToBinary())}return e.propertyChanged||e.publicStateVariableDiff||e.privateStateVariablesDiffs.size||e.teamStateVariablesDiffs.size?e:null}needsToBeSerialized(t){return this.propertyChanged||this.publicStateVariableDiff||this.privateStateVariablesDiffs.has(t)}serialize(t,e){let i=this.layer!==void 0?t.createSharedString(this.layer):null,s=this.string!==void 0?t.createSharedString(this.string):null;this.propertyChanged&amp;&amp;(j.startObjState(t),i&amp;&amp;j.addLayer(t,i),this.x!==void 0&amp;&amp;(this.x===0?j.addSetXTo0(t,!0):j.addX(t,this.x)),this.y!==void 0&amp;&amp;(this.y===0?j.addSetYTo0(t,!0):j.addY(t,this.y)),this.height!==void 0&amp;&amp;(this.height===0?j.addSetHeightTo0(t,!0):j.addHeight(t,this.height)),this.width!==void 0&amp;&amp;(this.width===0?j.addSetWidthTo0(t,!0):j.addWidth(t,this.width)),this.angle!==void 0&amp;&amp;(this.angle===0?j.addSetAngleTo0(t,!0):j.addAngle(t,this.angle)),this.zOrder!==void 0&amp;&amp;(this.zOrder&lt;=65535?j.addZOrder(t,this.zOrder+1):j.addBigZOrder(t,this.zOrder+1)),this.hidden!==void 0&amp;&amp;j.addVisible(t,this.hidden?1:2),this.flippedX!==void 0&amp;&amp;j.addFlippedX(t,this.flippedX?1:2),this.flippedY!==void 0&amp;&amp;j.addFlippedY(t,this.flippedY?1:2),this.opacity!==void 0&amp;&amp;(this.opacity===0?j.addSetOpacityTo0(t,!0):j.addOpacity(t,this.opacity)),this.animation!==void 0&amp;&amp;j.addAnimation(t,this.animation+1),s&amp;&amp;j.addText(t,s),this.color!==void 0&amp;&amp;j.addTint(t,ga(t,this.color)));let a=this.propertyChanged?j.endObjState(t):null,n=this.publicStateVariableDiff?K.createPublicStateDiffVector(t,this.publicStateVariableDiff):null,r=this.privateStateVariablesDiffs.get(e),o=r?K.createPrivateStateDiffVector(t,r):null;return K.startGameObject(t),K.addId(t,this.id),a&amp;&amp;K.addObjState(t,a),n&amp;&amp;K.addPublicStateDiff(t,n),o&amp;&amp;K.addPrivateStateDiff(t,o),K.endGameObject(t)}},Qn=class{adapter;stateVariables;objectsRegistery=new qn;playerManager=new Xn;runServerCode=!0;previouslyConnectedUsers;snapshotsManager=new $n;constructor(t,e){this.adapter=t,this.stateVariables=e}},va=(t,e)=&gt;{t.thnkServer=new Qn(e,at.setupStateVariables(t.getVariables())),pa()||t.thnkServer.playerManager._onConnect(e.getServerID())},Ii=new gdjs.Logger("THNK - Server"),ni=0,Jn=t=&gt;{if(!t.thnkServer)return;let{adapter:e}=t.thnkServer;for(let[s,a]of e.getUsersPendingMessages()){for(let n of a)switch(n.contentType()){case 1:if(t.thnkServer.playerManager.alreadyHas(s))continue;Fn(s,e,t),t.thnkServer.playerManager._onConnect(s);continue;case 2:let r=n.content(new Ot),o=r.name();if(!o)continue;let u=r.contentArray();Nn(s,o,u);continue;default:Ii.error(`Received message with unknown type '${n.contentType()}'`);continue}a.length=0}for(let s of e.getDisconnectedUsers())t.thnkServer.playerManager._onDisconnect(s);e.getDisconnectedUsers().length=0;let i=t.getTimeManager();ni+=i.getElapsedTime()/i.getTimeScale(),ni&gt;1e3/Zi()&amp;&amp;(ni=0,t.thnkServer.runServerCode=!0);{let s=t.thnkServer.adapter.getServerID(),a=r=&gt;{let o=r.getChild(s).getAllChildren();for(let u in o)r.addChild(u,o[u])},{privateStateVariable:n}=t.thnkServer.stateVariables;a(n),t.thnkServer.objectsRegistery.forEach(r=&gt;a(r.getVariables().get("PlayerState")))}},tr=t=&gt;{if(!t.thnkServer||!t.thnkServer.runServerCode)return;t.thnkServer.runServerCode=!1;let{snapshotsManager:e}=t.thnkServer,i=e.createSnapshot(t);if(i)for(let s of t.thnkServer.playerManager.connectedPlayers.values())s!==t.thnkServer.adapter.getServerID()&amp;&amp;Dn(s,t.thnkServer.adapter,i)},ee=null,Sa=(t,e)=&gt;{if(t.thnkServer){let{adapter:i}=t.thnkServer;ee={adapter:i,isPause:e},e&amp;&amp;(t.thnkServer.previouslyConnectedUsers=new Set(i.getConnectedUsers()))}},er=t=&gt;{if(ee){let{adapter:e,isPause:i}=ee;va(t,e);for(let s of e.getConnectedUsers())t.thnkServer.playerManager._onConnect(s);Rn(e,t.getName(),i),ee=null}},ir=t=&gt;{if(ee)if(t.thnkServer){let{adapter:e,previouslyConnectedUsers:i}=t.thnkServer;if(i){let s=[],a=[];for(let n of e.getConnectedUsers())i.has(n)?a.push(n):s.push(n);ai(s,e,t),ai(a,e)}else Ii.warn("List of previously connected players not found! A full snapshot will be sent to all players. This is likely a bug, please open an issue on the THNK GitHub page!"),ai([...e.getConnectedUsers()],e,t)}else Ii.warn("Resumed a scene that is not a server, shutting the server down. This is likely a bug, please open an issue on the THNK GitHub page!"),ee.adapter.close()};gdjs.registerRuntimeScenePreEventsCallback(Jn);gdjs.registerRuntimeScenePostEventsCallback(tr);gdjs.registerRuntimeSceneUnloadedCallback(t=&gt;Sa(t,!1));gdjs.registerRuntimeScenePausedCallback(t=&gt;Sa(t,!0));gdjs.registerRuntimeSceneLoadedCallback(er);gdjs.registerRuntimeSceneResumedCallback(ir);async function Xe(t,e){return t.areSceneAssetsReady(e)||await t.loadSceneAssets(e),t.getSceneStack().replace(e,!0)}async function sr(t,e){return t.areSceneAssetsReady(e)||await t.loadSceneAssets(e),t.getSceneStack().push(e)}var ar=new gdjs.Logger("THNK - Server"),nr=async(t,e,i)=&gt;{try{await t.prepare(e)}catch(n){ar.error("Adapter crashed while starting server! Error: ",n);return}let s=e.getGame(),a=i?await Xe(s,i):e;va(a,t)},rr={popMessage:Ln,addRawMessageToTheQueue:En,popConnection:Zn,popDisconnection:Hn},ka={};$e(ka,{getConnectionState:()=&gt;fr,messages:()=&gt;pr,startClient:()=&gt;_r});var ae=(t,e)=&gt;{switch(e.type()){case 1:return t.setString(e.text()),t;case 2:return t.setNumber(e.number()),t;case 3:return t.setBoolean(e.boolean()),t}if(e.type()===4){t.castTo("structure");for(let i=e.operationsLength(),s=0,a=e.operations(0);s&lt;i;a=e.operations(++s))switch(a.operation()){case 1:let n=a.name(),r=a.val();n&amp;&amp;r&amp;&amp;ae(t.getChild(n),r);continue;case 2:let o=a.name();o&amp;&amp;t.removeChild(o);continue;case 3:t.clearChildren();continue}}else{t.castTo("array");for(let i=e.operationsLength(),s=0,a=e.operations(0);s&lt;i;a=e.operations(++s))switch(a.operation()){case 1:let n=a.val();n&amp;&amp;ae(t.getChildAt(a.index()),n);continue;case 2:t.removeAtIndex(a.index());continue;case 3:t.clearChildren();continue}}return t},or=new Mi,Oa=(t,e)=&gt;{let i=t.objState();if(i){let o=i.layer();o!==null&amp;&amp;e.setLayer(o);let u=i.x();u!==null&amp;&amp;e.setX(u);let l=i.y();l!==null&amp;&amp;e.setY(l);let d=i.height();d!==null&amp;&amp;e.setHeight(d);let O=i.width();O!==null&amp;&amp;e.setWidth(O);let g=i.angle();g!==null&amp;&amp;e.setAngle(g),i.setXTo0()&amp;&amp;e.setX(0),i.setYTo0()&amp;&amp;e.setY(0),i.setHeightTo0()&amp;&amp;e.setHeight(0),i.setWidthTo0()&amp;&amp;e.setWidth(0),i.setAngleTo0()&amp;&amp;e.setAngle(0);{let A=i.visible();A!==null&amp;&amp;e.hide(A===1);let k=i.flippedX();k!==null&amp;&amp;e.flipX&amp;&amp;e.flipX(k===1);let m=i.flippedY();m!==null&amp;&amp;e.flipY&amp;&amp;e.flipY(m===1)}let p=i.zOrder()??i.bigZOrder();p!==null&amp;&amp;e.setZOrder(p-1);let C=i.opacity();e.setOpacity&amp;&amp;(C!==null&amp;&amp;e.setOpacity(C),i.setOpacityTo0()&amp;&amp;e.setOpacity(0));let M=i.animation();M!==null&amp;&amp;e.setAnimation&amp;&amp;e.setAnimation(M-1);let U=i.text();if(U!==null&amp;&amp;e.setString&amp;&amp;e.setString(U),e.setColor){let A=i.tint(or);A&amp;&amp;e.setColor(`${A.r()};${A.g()};${A.b()}`)}}let s=e.getVariables().get("State"),a=t.publicStateDiffArray();if(a)ae(s,N.getRootAsVariable(new Ut(a)));else{let o=t.packedPublicStateArray();o&amp;&amp;me(s,o)}let n=e.getVariables().get("PlayerState"),r=t.privateStateDiffArray();if(r)ae(n,N.getRootAsVariable(new Ut(r)));else{let o=t.packedPrivateStateArray();o&amp;&amp;me(n,o)}},Aa=(t,e)=&gt;{if(!e.thnkClient)return;let{objectsRegistery:i}=e.thnkClient,s=t.publicStatePackedArray();s&amp;&amp;me(e.getVariables().get("State"),s);let a=t.privateStatePackedArray();if(a&amp;&amp;me(e.getVariables().get("PlayerState"),a),i.clear(),t.objectsLength()!==0)for(let n=t.objectsLength(),r=0,o=t.objects(0);r&lt;n;o=t.objects(++r)){let u=o.name();if(!u)continue;let l=e.createObject(u);Oa(o,l),i.registerObject(o.id(),l)}},lr=(t,e)=&gt;{if(!e.thnkClient)return;let{objectsRegistery:i}=e.thnkClient,s=t.publicStateDiffArray();s&amp;&amp;ae(e.getVariables().get("State"),N.getRootAsVariable(new Ut(s)));let a=t.privateStateDiffArray();a&amp;&amp;ae(e.getVariables().get("PlayerState"),N.getRootAsVariable(new Ut(a)));let n=t.deletedObjectsArray();if(n)for(let r of n)i.deleteObject(r);if(t.createdObjectsLength()!==0)for(let r=t.createdObjectsLength(),o=0,u=t.createdObjects(0);o&lt;r;u=t.createdObjects(++o)){let l=u.name();if(!l)continue;let d=e.createObject(l);i.registerObject(u.id(),d)}if(t.objectsLength()!==0)for(let r=t.objectsLength(),o=0,u=t.objects(0);o&lt;r;u=t.objects(++o)){let l=i.getObject(u.id());if(!l){let d=u.name();d&amp;&amp;(l=e.createObject(d),i.registerObject(u.id(),l))}l&amp;&amp;Oa(u,l)}},dr=class{objectsRegistery=new Map;runtimeScene;constructor(t){this.runtimeScene=t}registerObject(t,e){e.thnkID=t,this.objectsRegistery.set(t,e)}getObject(t){return this.objectsRegistery.get(t)}deleteObject(t){let e=this.objectsRegistery.get(t);!e||(e.deleteFromScene(this.runtimeScene),this.objectsRegistery.delete(t))}clear(){this.objectsRegistery.forEach(t=&gt;t.deleteFromScene(this.runtimeScene)),this.objectsRegistery.clear()}},xi=class{adapter;objectsRegistery;constructor(t,e){this.adapter=t,this.objectsRegistery=new dr(e)}},fs=new gdjs.Logger("THNK - Client"),hr=async t=&gt;{if(!t.thnkClient)return;let{adapter:e}=t.thnkClient,i=t.getGame();for(let s of e.getPendingMessages())switch(s.contentType()){case 1:fs.warn("A second ConnectionStartMessage was received from the server. This is likely a bug, please open an issue on the THNK GitHub!");continue;case 2:let a=s.content(new jt).scene();a&amp;&amp;lr(a,t);continue;case 3:let n=s.content(new ut),r=n.sceneName();if(!r){console.error("Server requested scene switch, but no scene name was sent! This is likely a bug, please open an issue on the THNK GitHub!");continue}let o=await(n.isPause()?sr(i,r):Xe(i,r));o.thnkClient=new xi(t.thnkClient.adapter,o),t=o;continue;case 4:let u=s.content(new ft),l=u.name(),d=l?await Xe(i,l):i.getSceneStack().pop();if(!d)continue;let O=u.snapshot();O&amp;&amp;Aa(O,d),d.thnkClient=new xi(t.thnkClient.adapter,d),t=d;continue;default:fs.error(`Received message with unknown type '${s.contentType()}'`)}e.markPendingMessagesAsRead()};gdjs.registerRuntimeScenePreEventsCallback(hr);var cr=(t,e)=&gt;{let i=new Et(32),s=e?i.createString(e):null;Ft.startConnectionRequestMessage(i),s&amp;&amp;Ft.addToken(i,s);let a=Ft.endConnectionRequestMessage(i);t.sendClientMessage(i,At.createClientMessage(i,1,a))},br=(t,e,i)=&gt;{let s=new Et(256),a=s.createString(e),n=Ot.createContentVector(s,ye(i)),r=Ot.createClientInputMessage(s,a,n);t.sendClientMessage(s,At.createClientMessage(s,2,r))},Ia="disconnected",_e=t=&gt;Ia=t,fr=()=&gt;Ia,ur=new gdjs.Logger("THNK - Client"),us=t=&gt;{_e("failed"),ur.error("Connection failed: "+t)},_r=async(t,e)=&gt;{_e("connecting"),t.getGame().getSceneStack();try{await e.prepare(t)}catch{us("Adapter crashed while starting server!");return}_e("loading"),cr(e);let i=setInterval(async()=&gt;{let s=e.getPendingMessages().shift();if(!!s&amp;&amp;s.contentType()===1){clearInterval(i);let a=s.content(new Ht),n=a.sceneName(),r=a.sceneSnapshot();if(!n||!r){us("Server Connection Start Message was invalid, couldn't finish setting up the connection.");return}let o=await Xe(t.getGame(),n);o.thnkClient=new xi(e,o),Aa(r,o),_e("connected")}},100)},pr={sendClientMessage:br};function oe(t){let e=t.length;for(;--e&gt;=0;)t[e]=0}var gr=0,xa=1,wr=2,yr=3,mr=258,Hi=29,Te=256,Se=Te+1+Hi,ie=30,Yi=19,ja=2*Se+1,Yt=15,ri=16,vr=7,Gi=256,Ca=16,Ua=17,Ta=18,ji=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),He=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Sr=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Va=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),kr=512,It=new Array((Se+2)*2);oe(It);var pe=new Array(ie*2);oe(pe);var ke=new Array(kr);oe(ke);var Oe=new Array(mr-yr+1);oe(Oe);var Xi=new Array(Hi);oe(Xi);var We=new Array(ie);oe(We);function oi(t,e,i,s,a){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=s,this.max_length=a,this.has_stree=t&amp;&amp;t.length}var za,Fa,Da;function li(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}var Ra=t=&gt;t&lt;256?ke[t]:ke[256+(t&gt;&gt;&gt;7)],Ae=(t,e)=&gt;{t.pending_buf[t.pending++]=e&amp;255,t.pending_buf[t.pending++]=e&gt;&gt;&gt;8&amp;255},rt=(t,e,i)=&gt;{t.bi_valid&gt;ri-i?(t.bi_buf|=e&lt;&lt;t.bi_valid&amp;65535,Ae(t,t.bi_buf),t.bi_buf=e&gt;&gt;ri-t.bi_valid,t.bi_valid+=i-ri):(t.bi_buf|=e&lt;&lt;t.bi_valid&amp;65535,t.bi_valid+=i)},yt=(t,e,i)=&gt;{rt(t,i[e*2],i[e*2+1])},Pa=(t,e)=&gt;{let i=0;do i|=t&amp;1,t&gt;&gt;&gt;=1,i&lt;&lt;=1;while(--e&gt;0);return i&gt;&gt;&gt;1},Or=t=&gt;{t.bi_valid===16?(Ae(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid&gt;=8&amp;&amp;(t.pending_buf[t.pending++]=t.bi_buf&amp;255,t.bi_buf&gt;&gt;=8,t.bi_valid-=8)},Ar=(t,e)=&gt;{let i=e.dyn_tree,s=e.max_code,a=e.stat_desc.static_tree,n=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,u=e.stat_desc.max_length,l,d,O,g,p,C,M=0;for(g=0;g&lt;=Yt;g++)t.bl_count[g]=0;for(i[t.heap[t.heap_max]*2+1]=0,l=t.heap_max+1;l&lt;ja;l++)d=t.heap[l],g=i[i[d*2+1]*2+1]+1,g&gt;u&amp;&amp;(g=u,M++),i[d*2+1]=g,!(d&gt;s)&amp;&amp;(t.bl_count[g]++,p=0,d&gt;=o&amp;&amp;(p=r[d-o]),C=i[d*2],t.opt_len+=C*(g+p),n&amp;&amp;(t.static_len+=C*(a[d*2+1]+p)));if(M!==0){do{for(g=u-1;t.bl_count[g]===0;)g--;t.bl_count[g]--,t.bl_count[g+1]+=2,t.bl_count[u]--,M-=2}while(M&gt;0);for(g=u;g!==0;g--)for(d=t.bl_count[g];d!==0;)O=t.heap[--l],!(O&gt;s)&amp;&amp;(i[O*2+1]!==g&amp;&amp;(t.opt_len+=(g-i[O*2+1])*i[O*2],i[O*2+1]=g),d--)}},Ma=(t,e,i)=&gt;{let s=new Array(Yt+1),a=0,n,r;for(n=1;n&lt;=Yt;n++)a=a+i[n-1]&lt;&lt;1,s[n]=a;for(r=0;r&lt;=e;r++){let o=t[r*2+1];o!==0&amp;&amp;(t[r*2]=Pa(s[o]++,o))}},Ir=()=&gt;{let t,e,i,s,a,n=new Array(Yt+1);for(i=0,s=0;s&lt;Hi-1;s++)for(Xi[s]=i,t=0;t&lt;1&lt;&lt;ji[s];t++)Oe[i++]=s;for(Oe[i-1]=s,a=0,s=0;s&lt;16;s++)for(We[s]=a,t=0;t&lt;1&lt;&lt;He[s];t++)ke[a++]=s;for(a&gt;&gt;=7;s&lt;ie;s++)for(We[s]=a&lt;&lt;7,t=0;t&lt;1&lt;&lt;He[s]-7;t++)ke[256+a++]=s;for(e=0;e&lt;=Yt;e++)n[e]=0;for(t=0;t&lt;=143;)It[t*2+1]=8,t++,n[8]++;for(;t&lt;=255;)It[t*2+1]=9,t++,n[9]++;for(;t&lt;=279;)It[t*2+1]=7,t++,n[7]++;for(;t&lt;=287;)It[t*2+1]=8,t++,n[8]++;for(Ma(It,Se+1,n),t=0;t&lt;ie;t++)pe[t*2+1]=5,pe[t*2]=Pa(t,5);za=new oi(It,ji,Te+1,Se,Yt),Fa=new oi(pe,He,0,ie,Yt),Da=new oi(new Array(0),Sr,0,Yi,vr)},Ba=t=&gt;{let e;for(e=0;e&lt;Se;e++)t.dyn_ltree[e*2]=0;for(e=0;e&lt;ie;e++)t.dyn_dtree[e*2]=0;for(e=0;e&lt;Yi;e++)t.bl_tree[e*2]=0;t.dyn_ltree[Gi*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},Na=t=&gt;{t.bi_valid&gt;8?Ae(t,t.bi_buf):t.bi_valid&gt;0&amp;&amp;(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},_s=(t,e,i,s)=&gt;{let a=e*2,n=i*2;return t[a]&lt;t[n]||t[a]===t[n]&amp;&amp;s[e]&lt;=s[i]},di=(t,e,i)=&gt;{let s=t.heap[i],a=i&lt;&lt;1;for(;a&lt;=t.heap_len&amp;&amp;(a&lt;t.heap_len&amp;&amp;_s(e,t.heap[a+1],t.heap[a],t.depth)&amp;&amp;a++,!_s(e,s,t.heap[a],t.depth));)t.heap[i]=t.heap[a],i=a,a&lt;&lt;=1;t.heap[i]=s},ps=(t,e,i)=&gt;{let s,a,n=0,r,o;if(t.sym_next!==0)do s=t.pending_buf[t.sym_buf+n++]&amp;255,s+=(t.pending_buf[t.sym_buf+n++]&amp;255)&lt;&lt;8,a=t.pending_buf[t.sym_buf+n++],s===0?yt(t,a,e):(r=Oe[a],yt(t,r+Te+1,e),o=ji[r],o!==0&amp;&amp;(a-=Xi[r],rt(t,a,o)),s--,r=Ra(s),yt(t,r,i),o=He[r],o!==0&amp;&amp;(s-=We[r],rt(t,s,o)));while(n&lt;t.sym_next);yt(t,Gi,e)},Ci=(t,e)=&gt;{let i=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,n=e.stat_desc.elems,r,o,u=-1,l;for(t.heap_len=0,t.heap_max=ja,r=0;r&lt;n;r++)i[r*2]!==0?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):i[r*2+1]=0;for(;t.heap_len&lt;2;)l=t.heap[++t.heap_len]=u&lt;2?++u:0,i[l*2]=1,t.depth[l]=0,t.opt_len--,a&amp;&amp;(t.static_len-=s[l*2+1]);for(e.max_code=u,r=t.heap_len&gt;&gt;1;r&gt;=1;r--)di(t,i,r);l=n;do r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],di(t,i,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,i[l*2]=i[r*2]+i[o*2],t.depth[l]=(t.depth[r]&gt;=t.depth[o]?t.depth[r]:t.depth[o])+1,i[r*2+1]=i[o*2+1]=l,t.heap[1]=l++,di(t,i,1);while(t.heap_len&gt;=2);t.heap[--t.heap_max]=t.heap[1],Ar(t,e),Ma(i,u,t.bl_count)},gs=(t,e,i)=&gt;{let s,a=-1,n,r=e[0*2+1],o=0,u=7,l=4;for(r===0&amp;&amp;(u=138,l=3),e[(i+1)*2+1]=65535,s=0;s&lt;=i;s++)n=r,r=e[(s+1)*2+1],!(++o&lt;u&amp;&amp;n===r)&amp;&amp;(o&lt;l?t.bl_tree[n*2]+=o:n!==0?(n!==a&amp;&amp;t.bl_tree[n*2]++,t.bl_tree[Ca*2]++):o&lt;=10?t.bl_tree[Ua*2]++:t.bl_tree[Ta*2]++,o=0,a=n,r===0?(u=138,l=3):n===r?(u=6,l=3):(u=7,l=4))},ws=(t,e,i)=&gt;{let s,a=-1,n,r=e[0*2+1],o=0,u=7,l=4;for(r===0&amp;&amp;(u=138,l=3),s=0;s&lt;=i;s++)if(n=r,r=e[(s+1)*2+1],!(++o&lt;u&amp;&amp;n===r)){if(o&lt;l)do yt(t,n,t.bl_tree);while(--o!==0);else n!==0?(n!==a&amp;&amp;(yt(t,n,t.bl_tree),o--),yt(t,Ca,t.bl_tree),rt(t,o-3,2)):o&lt;=10?(yt(t,Ua,t.bl_tree),rt(t,o-3,3)):(yt(t,Ta,t.bl_tree),rt(t,o-11,7));o=0,a=n,r===0?(u=138,l=3):n===r?(u=6,l=3):(u=7,l=4)}},xr=t=&gt;{let e;for(gs(t,t.dyn_ltree,t.l_desc.max_code),gs(t,t.dyn_dtree,t.d_desc.max_code),Ci(t,t.bl_desc),e=Yi-1;e&gt;=3&amp;&amp;t.bl_tree[Va[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},jr=(t,e,i,s)=&gt;{let a;for(rt(t,e-257,5),rt(t,i-1,5),rt(t,s-4,4),a=0;a&lt;s;a++)rt(t,t.bl_tree[Va[a]*2+1],3);ws(t,t.dyn_ltree,e-1),ws(t,t.dyn_dtree,i-1)},Cr=t=&gt;{let e=4093624447,i;for(i=0;i&lt;=31;i++,e&gt;&gt;&gt;=1)if(e&amp;1&amp;&amp;t.dyn_ltree[i*2]!==0)return 0;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return 1;for(i=32;i&lt;Te;i++)if(t.dyn_ltree[i*2]!==0)return 1;return 0},ys=!1,Ur=t=&gt;{ys||(Ir(),ys=!0),t.l_desc=new li(t.dyn_ltree,za),t.d_desc=new li(t.dyn_dtree,Fa),t.bl_desc=new li(t.bl_tree,Da),t.bi_buf=0,t.bi_valid=0,Ba(t)},Ea=(t,e,i,s)=&gt;{rt(t,(gr&lt;&lt;1)+(s?1:0),3),Na(t),Ae(t,i),Ae(t,~i),i&amp;&amp;t.pending_buf.set(t.window.subarray(e,e+i),t.pending),t.pending+=i},Tr=t=&gt;{rt(t,xa&lt;&lt;1,3),yt(t,Gi,It),Or(t)},Vr=(t,e,i,s)=&gt;{let a,n,r=0;t.level&gt;0?(t.strm.data_type===2&amp;&amp;(t.strm.data_type=Cr(t)),Ci(t,t.l_desc),Ci(t,t.d_desc),r=xr(t),a=t.opt_len+3+7&gt;&gt;&gt;3,n=t.static_len+3+7&gt;&gt;&gt;3,n&lt;=a&amp;&amp;(a=n)):a=n=i+5,i+4&lt;=a&amp;&amp;e!==-1?Ea(t,e,i,s):t.strategy===4||n===a?(rt(t,(xa&lt;&lt;1)+(s?1:0),3),ps(t,It,pe)):(rt(t,(wr&lt;&lt;1)+(s?1:0),3),jr(t,t.l_desc.max_code+1,t.d_desc.max_code+1,r+1),ps(t,t.dyn_ltree,t.dyn_dtree)),Ba(t),s&amp;&amp;Na(t)},zr=(t,e,i)=&gt;(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e&gt;&gt;8,t.pending_buf[t.sym_buf+t.sym_next++]=i,e===0?t.dyn_ltree[i*2]++:(t.matches++,e--,t.dyn_ltree[(Oe[i]+Te+1)*2]++,t.dyn_dtree[Ra(e)*2]++),t.sym_next===t.sym_end),Fr=Ur,Dr=Ea,Rr=Vr,Pr=zr,Mr=Tr,Br={_tr_init:Fr,_tr_stored_block:Dr,_tr_flush_block:Rr,_tr_tally:Pr,_tr_align:Mr},Nr=(t,e,i,s)=&gt;{let a=t&amp;65535|0,n=t&gt;&gt;&gt;16&amp;65535|0,r=0;for(;i!==0;){r=i&gt;2e3?2e3:i,i-=r;do a=a+e[s++]|0,n=n+a|0;while(--r);a%=65521,n%=65521}return a|n&lt;&lt;16|0},Ie=Nr,Er=()=&gt;{let t,e=[];for(var i=0;i&lt;256;i++){t=i;for(var s=0;s&lt;8;s++)t=t&amp;1?3988292384^t&gt;&gt;&gt;1:t&gt;&gt;&gt;1;e[i]=t}return e},Lr=new Uint32Array(Er()),Zr=(t,e,i,s)=&gt;{let a=Lr,n=s+i;t^=-1;for(let r=s;r&lt;n;r++)t=t&gt;&gt;&gt;8^a[(t^e[r])&amp;255];return t^-1},J=Zr,Wt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},le={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:Hr,_tr_stored_block:Ui,_tr_flush_block:Yr,_tr_tally:Mt,_tr_align:Gr}=Br,{Z_NO_FLUSH:Bt,Z_PARTIAL_FLUSH:Xr,Z_FULL_FLUSH:Wr,Z_FINISH:bt,Z_BLOCK:ms,Z_OK:et,Z_STREAM_END:vs,Z_STREAM_ERROR:mt,Z_DATA_ERROR:Kr,Z_BUF_ERROR:hi,Z_DEFAULT_COMPRESSION:qr,Z_FILTERED:$r,Z_HUFFMAN_ONLY:Me,Z_RLE:Qr,Z_FIXED:Jr,Z_DEFAULT_STRATEGY:to,Z_UNKNOWN:eo,Z_DEFLATED:Je}=le,io=9,so=15,ao=8,no=29,ro=256,Ti=ro+1+no,oo=30,lo=19,ho=2*Ti+1,co=15,D=3,Pt=258,vt=Pt+D+1,bo=32,ne=42,Wi=57,Vi=69,zi=73,Fi=91,Di=103,Gt=113,fe=666,nt=1,de=2,Kt=3,he=4,fo=3,Xt=(t,e)=&gt;(t.msg=Wt[e],e),Ss=t=&gt;t*2-(t&gt;4?9:0),Dt=t=&gt;{let e=t.length;for(;--e&gt;=0;)t[e]=0},uo=t=&gt;{let e,i,s,a=t.w_size;e=t.hash_size,s=e;do i=t.head[--s],t.head[s]=i&gt;=a?i-a:0;while(--e);e=a,s=e;do i=t.prev[--s],t.prev[s]=i&gt;=a?i-a:0;while(--e)},_o=(t,e,i)=&gt;(e&lt;&lt;t.hash_shift^i)&amp;t.hash_mask,Nt=_o,ot=t=&gt;{let e=t.state,i=e.pending;i&gt;t.avail_out&amp;&amp;(i=t.avail_out),i!==0&amp;&amp;(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+i),t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,e.pending===0&amp;&amp;(e.pending_out=0))},lt=(t,e)=&gt;{Yr(t,t.block_start&gt;=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ot(t.strm)},B=(t,e)=&gt;{t.pending_buf[t.pending++]=e},be=(t,e)=&gt;{t.pending_buf[t.pending++]=e&gt;&gt;&gt;8&amp;255,t.pending_buf[t.pending++]=e&amp;255},Ri=(t,e,i,s)=&gt;{let a=t.avail_in;return a&gt;s&amp;&amp;(a=s),a===0?0:(t.avail_in-=a,e.set(t.input.subarray(t.next_in,t.next_in+a),i),t.state.wrap===1?t.adler=Ie(t.adler,e,a,i):t.state.wrap===2&amp;&amp;(t.adler=J(t.adler,e,a,i)),t.next_in+=a,t.total_in+=a,a)},La=(t,e)=&gt;{let i=t.max_chain_length,s=t.strstart,a,n,r=t.prev_length,o=t.nice_match,u=t.strstart&gt;t.w_size-vt?t.strstart-(t.w_size-vt):0,l=t.window,d=t.w_mask,O=t.prev,g=t.strstart+Pt,p=l[s+r-1],C=l[s+r];t.prev_length&gt;=t.good_match&amp;&amp;(i&gt;&gt;=2),o&gt;t.lookahead&amp;&amp;(o=t.lookahead);do if(a=e,!(l[a+r]!==C||l[a+r-1]!==p||l[a]!==l[s]||l[++a]!==l[s+1])){s+=2,a++;do;while(l[++s]===l[++a]&amp;&amp;l[++s]===l[++a]&amp;&amp;l[++s]===l[++a]&amp;&amp;l[++s]===l[++a]&amp;&amp;l[++s]===l[++a]&amp;&amp;l[++s]===l[++a]&amp;&amp;l[++s]===l[++a]&amp;&amp;l[++s]===l[++a]&amp;&amp;s&lt;g);if(n=Pt-(g-s),s=g-Pt,n&gt;r){if(t.match_start=e,r=n,n&gt;=o)break;p=l[s+r-1],C=l[s+r]}}while((e=O[e&amp;d])&gt;u&amp;&amp;--i!==0);return r&lt;=t.lookahead?r:t.lookahead},re=t=&gt;{let e=t.w_size,i,s,a;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart&gt;=e+(e-vt)&amp;&amp;(t.window.set(t.window.subarray(e,e+e-s),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert&gt;t.strstart&amp;&amp;(t.insert=t.strstart),uo(t),s+=e),t.strm.avail_in===0)break;if(i=Ri(t.strm,t.window,t.strstart+t.lookahead,s),t.lookahead+=i,t.lookahead+t.insert&gt;=D)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=Nt(t,t.ins_h,t.window[a+1]);t.insert&amp;&amp;(t.ins_h=Nt(t,t.ins_h,t.window[a+D-1]),t.prev[a&amp;t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert&lt;D)););}while(t.lookahead&lt;vt&amp;&amp;t.strm.avail_in!==0)},Za=(t,e)=&gt;{let i=t.pending_buf_size-5&gt;t.w_size?t.w_size:t.pending_buf_size-5,s,a,n,r=0,o=t.strm.avail_in;do{if(s=65535,n=t.bi_valid+42&gt;&gt;3,t.strm.avail_out&lt;n||(n=t.strm.avail_out-n,a=t.strstart-t.block_start,s&gt;a+t.strm.avail_in&amp;&amp;(s=a+t.strm.avail_in),s&gt;n&amp;&amp;(s=n),s&lt;i&amp;&amp;(s===0&amp;&amp;e!==bt||e===Bt||s!==a+t.strm.avail_in)))break;r=e===bt&amp;&amp;s===a+t.strm.avail_in?1:0,Ui(t,0,0,r),t.pending_buf[t.pending-4]=s,t.pending_buf[t.pending-3]=s&gt;&gt;8,t.pending_buf[t.pending-2]=~s,t.pending_buf[t.pending-1]=~s&gt;&gt;8,ot(t.strm),a&amp;&amp;(a&gt;s&amp;&amp;(a=s),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,s-=a),s&amp;&amp;(Ri(t.strm,t.strm.output,t.strm.next_out,s),t.strm.next_out+=s,t.strm.avail_out-=s,t.strm.total_out+=s)}while(r===0);return o-=t.strm.avail_in,o&amp;&amp;(o&gt;=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart&lt;=o&amp;&amp;(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches&lt;2&amp;&amp;t.matches++,t.insert&gt;t.strstart&amp;&amp;(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o&gt;t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water&lt;t.strstart&amp;&amp;(t.high_water=t.strstart),r?he:e!==Bt&amp;&amp;e!==bt&amp;&amp;t.strm.avail_in===0&amp;&amp;t.strstart===t.block_start?de:(n=t.window_size-t.strstart,t.strm.avail_in&gt;n&amp;&amp;t.block_start&gt;=t.w_size&amp;&amp;(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches&lt;2&amp;&amp;t.matches++,n+=t.w_size,t.insert&gt;t.strstart&amp;&amp;(t.insert=t.strstart)),n&gt;t.strm.avail_in&amp;&amp;(n=t.strm.avail_in),n&amp;&amp;(Ri(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n&gt;t.w_size-t.insert?t.w_size-t.insert:n),t.high_water&lt;t.strstart&amp;&amp;(t.high_water=t.strstart),n=t.bi_valid+42&gt;&gt;3,n=t.pending_buf_size-n&gt;65535?65535:t.pending_buf_size-n,i=n&gt;t.w_size?t.w_size:n,a=t.strstart-t.block_start,(a&gt;=i||(a||e===bt)&amp;&amp;e!==Bt&amp;&amp;t.strm.avail_in===0&amp;&amp;a&lt;=n)&amp;&amp;(s=a&gt;n?n:a,r=e===bt&amp;&amp;t.strm.avail_in===0&amp;&amp;s===a?1:0,Ui(t,t.block_start,s,r),t.block_start+=s,ot(t.strm)),r?Kt:nt)},ci=(t,e)=&gt;{let i,s;for(;;){if(t.lookahead&lt;vt){if(re(t),t.lookahead&lt;vt&amp;&amp;e===Bt)return nt;if(t.lookahead===0)break}if(i=0,t.lookahead&gt;=D&amp;&amp;(t.ins_h=Nt(t,t.ins_h,t.window[t.strstart+D-1]),i=t.prev[t.strstart&amp;t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),i!==0&amp;&amp;t.strstart-i&lt;=t.w_size-vt&amp;&amp;(t.match_length=La(t,i)),t.match_length&gt;=D)if(s=Mt(t,t.strstart-t.match_start,t.match_length-D),t.lookahead-=t.match_length,t.match_length&lt;=t.max_lazy_match&amp;&amp;t.lookahead&gt;=D){t.match_length--;do t.strstart++,t.ins_h=Nt(t,t.ins_h,t.window[t.strstart+D-1]),i=t.prev[t.strstart&amp;t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Nt(t,t.ins_h,t.window[t.strstart+1]);else s=Mt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(s&amp;&amp;(lt(t,!1),t.strm.avail_out===0))return nt}return t.insert=t.strstart&lt;D-1?t.strstart:D-1,e===bt?(lt(t,!0),t.strm.avail_out===0?Kt:he):t.sym_next&amp;&amp;(lt(t,!1),t.strm.avail_out===0)?nt:de},Jt=(t,e)=&gt;{let i,s,a;for(;;){if(t.lookahead&lt;vt){if(re(t),t.lookahead&lt;vt&amp;&amp;e===Bt)return nt;if(t.lookahead===0)break}if(i=0,t.lookahead&gt;=D&amp;&amp;(t.ins_h=Nt(t,t.ins_h,t.window[t.strstart+D-1]),i=t.prev[t.strstart&amp;t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=D-1,i!==0&amp;&amp;t.prev_length&lt;t.max_lazy_match&amp;&amp;t.strstart-i&lt;=t.w_size-vt&amp;&amp;(t.match_length=La(t,i),t.match_length&lt;=5&amp;&amp;(t.strategy===$r||t.match_length===D&amp;&amp;t.strstart-t.match_start&gt;4096)&amp;&amp;(t.match_length=D-1)),t.prev_length&gt;=D&amp;&amp;t.match_length&lt;=t.prev_length){a=t.strstart+t.lookahead-D,s=Mt(t,t.strstart-1-t.prev_match,t.prev_length-D),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart&lt;=a&amp;&amp;(t.ins_h=Nt(t,t.ins_h,t.window[t.strstart+D-1]),i=t.prev[t.strstart&amp;t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=D-1,t.strstart++,s&amp;&amp;(lt(t,!1),t.strm.avail_out===0))return nt}else if(t.match_available){if(s=Mt(t,0,t.window[t.strstart-1]),s&amp;&amp;lt(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return nt}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&amp;&amp;(s=Mt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart&lt;D-1?t.strstart:D-1,e===bt?(lt(t,!0),t.strm.avail_out===0?Kt:he):t.sym_next&amp;&amp;(lt(t,!1),t.strm.avail_out===0)?nt:de},po=(t,e)=&gt;{let i,s,a,n,r=t.window;for(;;){if(t.lookahead&lt;=Pt){if(re(t),t.lookahead&lt;=Pt&amp;&amp;e===Bt)return nt;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead&gt;=D&amp;&amp;t.strstart&gt;0&amp;&amp;(a=t.strstart-1,s=r[a],s===r[++a]&amp;&amp;s===r[++a]&amp;&amp;s===r[++a])){n=t.strstart+Pt;do;while(s===r[++a]&amp;&amp;s===r[++a]&amp;&amp;s===r[++a]&amp;&amp;s===r[++a]&amp;&amp;s===r[++a]&amp;&amp;s===r[++a]&amp;&amp;s===r[++a]&amp;&amp;s===r[++a]&amp;&amp;a&lt;n);t.match_length=Pt-(n-a),t.match_length&gt;t.lookahead&amp;&amp;(t.match_length=t.lookahead)}if(t.match_length&gt;=D?(i=Mt(t,1,t.match_length-D),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=Mt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&amp;&amp;(lt(t,!1),t.strm.avail_out===0))return nt}return t.insert=0,e===bt?(lt(t,!0),t.strm.avail_out===0?Kt:he):t.sym_next&amp;&amp;(lt(t,!1),t.strm.avail_out===0)?nt:de},go=(t,e)=&gt;{let i;for(;;){if(t.lookahead===0&amp;&amp;(re(t),t.lookahead===0)){if(e===Bt)return nt;break}if(t.match_length=0,i=Mt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&amp;&amp;(lt(t,!1),t.strm.avail_out===0))return nt}return t.insert=0,e===bt?(lt(t,!0),t.strm.avail_out===0?Kt:he):t.sym_next&amp;&amp;(lt(t,!1),t.strm.avail_out===0)?nt:de};function gt(t,e,i,s,a){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=s,this.func=a}var ue=[new gt(0,0,0,0,Za),new gt(4,4,8,4,ci),new gt(4,5,16,8,ci),new gt(4,6,32,32,ci),new gt(4,4,16,16,Jt),new gt(8,16,32,32,Jt),new gt(8,16,128,128,Jt),new gt(8,32,128,256,Jt),new gt(32,128,258,1024,Jt),new gt(32,258,258,4096,Jt)],wo=t=&gt;{t.window_size=2*t.w_size,Dt(t.head),t.max_lazy_match=ue[t.level].max_lazy,t.good_match=ue[t.level].good_length,t.nice_match=ue[t.level].nice_length,t.max_chain_length=ue[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=D-1,t.match_available=0,t.ins_h=0};function yo(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Je,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(ho*2),this.dyn_dtree=new Uint16Array((2*oo+1)*2),this.bl_tree=new Uint16Array((2*lo+1)*2),Dt(this.dyn_ltree),Dt(this.dyn_dtree),Dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(co+1),this.heap=new Uint16Array(2*Ti+1),Dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Ti+1),Dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ve=t=&gt;{if(!t)return 1;let e=t.state;return!e||e.strm!==t||e.status!==ne&amp;&amp;e.status!==Wi&amp;&amp;e.status!==Vi&amp;&amp;e.status!==zi&amp;&amp;e.status!==Fi&amp;&amp;e.status!==Di&amp;&amp;e.status!==Gt&amp;&amp;e.status!==fe?1:0},Ha=t=&gt;{if(Ve(t))return Xt(t,mt);t.total_in=t.total_out=0,t.data_type=eo;let e=t.state;return e.pending=0,e.pending_out=0,e.wrap&lt;0&amp;&amp;(e.wrap=-e.wrap),e.status=e.wrap===2?Wi:e.wrap?ne:Gt,t.adler=e.wrap===2?0:1,e.last_flush=-2,Hr(e),et},Ya=t=&gt;{let e=Ha(t);return e===et&amp;&amp;wo(t.state),e},mo=(t,e)=&gt;Ve(t)||t.state.wrap!==2?mt:(t.state.gzhead=e,et),Ga=(t,e,i,s,a,n)=&gt;{if(!t)return mt;let r=1;if(e===qr&amp;&amp;(e=6),s&lt;0?(r=0,s=-s):s&gt;15&amp;&amp;(r=2,s-=16),a&lt;1||a&gt;io||i!==Je||s&lt;8||s&gt;15||e&lt;0||e&gt;9||n&lt;0||n&gt;Jr||s===8&amp;&amp;r!==1)return Xt(t,mt);s===8&amp;&amp;(s=9);let o=new yo;return t.state=o,o.strm=t,o.status=ne,o.wrap=r,o.gzhead=null,o.w_bits=s,o.w_size=1&lt;&lt;o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=a+7,o.hash_size=1&lt;&lt;o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+D-1)/D),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1&lt;&lt;a+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=e,o.strategy=n,o.method=i,Ya(t)},vo=(t,e)=&gt;Ga(t,e,Je,so,ao,to),So=(t,e)=&gt;{if(Ve(t)||e&gt;ms||e&lt;0)return t?Xt(t,mt):mt;let i=t.state;if(!t.output||t.avail_in!==0&amp;&amp;!t.input||i.status===fe&amp;&amp;e!==bt)return Xt(t,t.avail_out===0?hi:mt);let s=i.last_flush;if(i.last_flush=e,i.pending!==0){if(ot(t),t.avail_out===0)return i.last_flush=-1,et}else if(t.avail_in===0&amp;&amp;Ss(e)&lt;=Ss(s)&amp;&amp;e!==bt)return Xt(t,hi);if(i.status===fe&amp;&amp;t.avail_in!==0)return Xt(t,hi);if(i.status===ne&amp;&amp;i.wrap===0&amp;&amp;(i.status=Gt),i.status===ne){let a=Je+(i.w_bits-8&lt;&lt;4)&lt;&lt;8,n=-1;if(i.strategy&gt;=Me||i.level&lt;2?n=0:i.level&lt;6?n=1:i.level===6?n=2:n=3,a|=n&lt;&lt;6,i.strstart!==0&amp;&amp;(a|=bo),a+=31-a%31,be(i,a),i.strstart!==0&amp;&amp;(be(i,t.adler&gt;&gt;&gt;16),be(i,t.adler&amp;65535)),t.adler=1,i.status=Gt,ot(t),i.pending!==0)return i.last_flush=-1,et}if(i.status===Wi){if(t.adler=0,B(i,31),B(i,139),B(i,8),i.gzhead)B(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),B(i,i.gzhead.time&amp;255),B(i,i.gzhead.time&gt;&gt;8&amp;255),B(i,i.gzhead.time&gt;&gt;16&amp;255),B(i,i.gzhead.time&gt;&gt;24&amp;255),B(i,i.level===9?2:i.strategy&gt;=Me||i.level&lt;2?4:0),B(i,i.gzhead.os&amp;255),i.gzhead.extra&amp;&amp;i.gzhead.extra.length&amp;&amp;(B(i,i.gzhead.extra.length&amp;255),B(i,i.gzhead.extra.length&gt;&gt;8&amp;255)),i.gzhead.hcrc&amp;&amp;(t.adler=J(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Vi;else if(B(i,0),B(i,0),B(i,0),B(i,0),B(i,0),B(i,i.level===9?2:i.strategy&gt;=Me||i.level&lt;2?4:0),B(i,fo),i.status=Gt,ot(t),i.pending!==0)return i.last_flush=-1,et}if(i.status===Vi){if(i.gzhead.extra){let a=i.pending,n=(i.gzhead.extra.length&amp;65535)-i.gzindex;for(;i.pending+n&gt;i.pending_buf_size;){let o=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+o),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&amp;&amp;i.pending&gt;a&amp;&amp;(t.adler=J(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex+=o,ot(t),i.pending!==0)return i.last_flush=-1,et;a=0,n-=o}let r=new Uint8Array(i.gzhead.extra);i.pending_buf.set(r.subarray(i.gzindex,i.gzindex+n),i.pending),i.pending+=n,i.gzhead.hcrc&amp;&amp;i.pending&gt;a&amp;&amp;(t.adler=J(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex=0}i.status=zi}if(i.status===zi){if(i.gzhead.name){let a=i.pending,n;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&amp;&amp;i.pending&gt;a&amp;&amp;(t.adler=J(t.adler,i.pending_buf,i.pending-a,a)),ot(t),i.pending!==0)return i.last_flush=-1,et;a=0}i.gzindex&lt;i.gzhead.name.length?n=i.gzhead.name.charCodeAt(i.gzindex++)&amp;255:n=0,B(i,n)}while(n!==0);i.gzhead.hcrc&amp;&amp;i.pending&gt;a&amp;&amp;(t.adler=J(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex=0}i.status=Fi}if(i.status===Fi){if(i.gzhead.comment){let a=i.pending,n;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&amp;&amp;i.pending&gt;a&amp;&amp;(t.adler=J(t.adler,i.pending_buf,i.pending-a,a)),ot(t),i.pending!==0)return i.last_flush=-1,et;a=0}i.gzindex&lt;i.gzhead.comment.length?n=i.gzhead.comment.charCodeAt(i.gzindex++)&amp;255:n=0,B(i,n)}while(n!==0);i.gzhead.hcrc&amp;&amp;i.pending&gt;a&amp;&amp;(t.adler=J(t.adler,i.pending_buf,i.pending-a,a))}i.status=Di}if(i.status===Di){if(i.gzhead.hcrc){if(i.pending+2&gt;i.pending_buf_size&amp;&amp;(ot(t),i.pending!==0))return i.last_flush=-1,et;B(i,t.adler&amp;255),B(i,t.adler&gt;&gt;8&amp;255),t.adler=0}if(i.status=Gt,ot(t),i.pending!==0)return i.last_flush=-1,et}if(t.avail_in!==0||i.lookahead!==0||e!==Bt&amp;&amp;i.status!==fe){let a=i.level===0?Za(i,e):i.strategy===Me?go(i,e):i.strategy===Qr?po(i,e):ue[i.level].func(i,e);if((a===Kt||a===he)&amp;&amp;(i.status=fe),a===nt||a===Kt)return t.avail_out===0&amp;&amp;(i.last_flush=-1),et;if(a===de&amp;&amp;(e===Xr?Gr(i):e!==ms&amp;&amp;(Ui(i,0,0,!1),e===Wr&amp;&amp;(Dt(i.head),i.lookahead===0&amp;&amp;(i.strstart=0,i.block_start=0,i.insert=0))),ot(t),t.avail_out===0))return i.last_flush=-1,et}return e!==bt?et:i.wrap&lt;=0?vs:(i.wrap===2?(B(i,t.adler&amp;255),B(i,t.adler&gt;&gt;8&amp;255),B(i,t.adler&gt;&gt;16&amp;255),B(i,t.adler&gt;&gt;24&amp;255),B(i,t.total_in&amp;255),B(i,t.total_in&gt;&gt;8&amp;255),B(i,t.total_in&gt;&gt;16&amp;255),B(i,t.total_in&gt;&gt;24&amp;255)):(be(i,t.adler&gt;&gt;&gt;16),be(i,t.adler&amp;65535)),ot(t),i.wrap&gt;0&amp;&amp;(i.wrap=-i.wrap),i.pending!==0?et:vs)},ko=t=&gt;{if(Ve(t))return mt;let e=t.state.status;return t.state=null,e===Gt?Xt(t,Kr):et},Oo=(t,e)=&gt;{let i=e.length;if(Ve(t))return mt;let s=t.state,a=s.wrap;if(a===2||a===1&amp;&amp;s.status!==ne||s.lookahead)return mt;if(a===1&amp;&amp;(t.adler=Ie(t.adler,e,i,0)),s.wrap=0,i&gt;=s.w_size){a===0&amp;&amp;(Dt(s.head),s.strstart=0,s.block_start=0,s.insert=0);let u=new Uint8Array(s.w_size);u.set(e.subarray(i-s.w_size,i),0),e=u,i=s.w_size}let n=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=i,t.next_in=0,t.input=e,re(s);s.lookahead&gt;=D;){let u=s.strstart,l=s.lookahead-(D-1);do s.ins_h=Nt(s,s.ins_h,s.window[u+D-1]),s.prev[u&amp;s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=u,u++;while(--l);s.strstart=u,s.lookahead=D-1,re(s)}return s.strstart+=s.lookahead,s.block_start=s.strstart,s.insert=s.lookahead,s.lookahead=0,s.match_length=s.prev_length=D-1,s.match_available=0,t.next_in=r,t.input=o,t.avail_in=n,s.wrap=a,et},Ao=vo,Io=Ga,xo=Ya,jo=Ha,Co=mo,Uo=So,To=ko,Vo=Oo,zo="pako deflate (from Nodeca project)",ge={deflateInit:Ao,deflateInit2:Io,deflateReset:xo,deflateResetKeep:jo,deflateSetHeader:Co,deflate:Uo,deflateEnd:To,deflateSetDictionary:Vo,deflateInfo:zo},Fo=(t,e)=&gt;Object.prototype.hasOwnProperty.call(t,e),Do=function(t){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let i=e.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(let s in i)Fo(i,s)&amp;&amp;(t[s]=i[s])}}return t},Ro=t=&gt;{let e=0;for(let s=0,a=t.length;s&lt;a;s++)e+=t[s].length;let i=new Uint8Array(e);for(let s=0,a=0,n=t.length;s&lt;n;s++){let r=t[s];i.set(r,a),a+=r.length}return i},ti={assign:Do,flattenChunks:Ro},Xa=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Xa=!1}var xe=new Uint8Array(256);for(let t=0;t&lt;256;t++)xe[t]=t&gt;=252?6:t&gt;=248?5:t&gt;=240?4:t&gt;=224?3:t&gt;=192?2:1;xe[254]=xe[254]=1;var Po=t=&gt;{if(typeof TextEncoder=="function"&amp;&amp;TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,i,s,a,n,r=t.length,o=0;for(a=0;a&lt;r;a++)i=t.charCodeAt(a),(i&amp;64512)===55296&amp;&amp;a+1&lt;r&amp;&amp;(s=t.charCodeAt(a+1),(s&amp;64512)===56320&amp;&amp;(i=65536+(i-55296&lt;&lt;10)+(s-56320),a++)),o+=i&lt;128?1:i&lt;2048?2:i&lt;65536?3:4;for(e=new Uint8Array(o),n=0,a=0;n&lt;o;a++)i=t.charCodeAt(a),(i&amp;64512)===55296&amp;&amp;a+1&lt;r&amp;&amp;(s=t.charCodeAt(a+1),(s&amp;64512)===56320&amp;&amp;(i=65536+(i-55296&lt;&lt;10)+(s-56320),a++)),i&lt;128?e[n++]=i:i&lt;2048?(e[n++]=192|i&gt;&gt;&gt;6,e[n++]=128|i&amp;63):i&lt;65536?(e[n++]=224|i&gt;&gt;&gt;12,e[n++]=128|i&gt;&gt;&gt;6&amp;63,e[n++]=128|i&amp;63):(e[n++]=240|i&gt;&gt;&gt;18,e[n++]=128|i&gt;&gt;&gt;12&amp;63,e[n++]=128|i&gt;&gt;&gt;6&amp;63,e[n++]=128|i&amp;63);return e},Mo=(t,e)=&gt;{if(e&lt;65534&amp;&amp;t.subarray&amp;&amp;Xa)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let i="";for(let s=0;s&lt;e;s++)i+=String.fromCharCode(t[s]);return i},Bo=(t,e)=&gt;{let i=e||t.length;if(typeof TextDecoder=="function"&amp;&amp;TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let s,a,n=new Array(i*2);for(a=0,s=0;s&lt;i;){let r=t[s++];if(r&lt;128){n[a++]=r;continue}let o=xe[r];if(o&gt;4){n[a++]=65533,s+=o-1;continue}for(r&amp;=o===2?31:o===3?15:7;o&gt;1&amp;&amp;s&lt;i;)r=r&lt;&lt;6|t[s++]&amp;63,o--;if(o&gt;1){n[a++]=65533;continue}r&lt;65536?n[a++]=r:(r-=65536,n[a++]=55296|r&gt;&gt;10&amp;1023,n[a++]=56320|r&amp;1023)}return Mo(n,a)},No=(t,e)=&gt;{e=e||t.length,e&gt;t.length&amp;&amp;(e=t.length);let i=e-1;for(;i&gt;=0&amp;&amp;(t[i]&amp;192)===128;)i--;return i&lt;0||i===0?e:i+xe[t[i]]&gt;e?i:e},je={string2buf:Po,buf2string:Bo,utf8border:No};function Eo(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Wa=Eo,Ka=Object.prototype.toString,{Z_NO_FLUSH:Lo,Z_SYNC_FLUSH:Zo,Z_FULL_FLUSH:Ho,Z_FINISH:Yo,Z_OK:Ke,Z_STREAM_END:Go,Z_DEFAULT_COMPRESSION:Xo,Z_DEFAULT_STRATEGY:Wo,Z_DEFLATED:Ko}=le;function ze(t){this.options=ti.assign({level:Xo,method:Ko,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wo},t||{});let e=this.options;e.raw&amp;&amp;e.windowBits&gt;0?e.windowBits=-e.windowBits:e.gzip&amp;&amp;e.windowBits&gt;0&amp;&amp;e.windowBits&lt;16&amp;&amp;(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Wa,this.strm.avail_out=0;let i=ge.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(i!==Ke)throw new Error(Wt[i]);if(e.header&amp;&amp;ge.deflateSetHeader(this.strm,e.header),e.dictionary){let s;if(typeof e.dictionary=="string"?s=je.string2buf(e.dictionary):Ka.call(e.dictionary)==="[object ArrayBuffer]"?s=new Uint8Array(e.dictionary):s=e.dictionary,i=ge.deflateSetDictionary(this.strm,s),i!==Ke)throw new Error(Wt[i]);this._dict_set=!0}}ze.prototype.push=function(t,e){let i=this.strm,s=this.options.chunkSize,a,n;if(this.ended)return!1;for(e===~~e?n=e:n=e===!0?Yo:Lo,typeof t=="string"?i.input=je.string2buf(t):Ka.call(t)==="[object ArrayBuffer]"?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;){if(i.avail_out===0&amp;&amp;(i.output=new Uint8Array(s),i.next_out=0,i.avail_out=s),(n===Zo||n===Ho)&amp;&amp;i.avail_out&lt;=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(a=ge.deflate(i,n),a===Go)return i.next_out&gt;0&amp;&amp;this.onData(i.output.subarray(0,i.next_out)),a=ge.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Ke;if(i.avail_out===0){this.onData(i.output);continue}if(n&gt;0&amp;&amp;i.next_out&gt;0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(i.avail_in===0)break}return!0};ze.prototype.onData=function(t){this.chunks.push(t)};ze.prototype.onEnd=function(t){t===Ke&amp;&amp;(this.result=ti.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Ki(t,e){let i=new ze(e);if(i.push(t,!0),i.err)throw i.msg||Wt[i.err];return i.result}function qo(t,e){return e=e||{},e.raw=!0,Ki(t,e)}function $o(t,e){return e=e||{},e.gzip=!0,Ki(t,e)}var Qo=ze,Jo=Ki,tl=qo,el=$o,il=le,sl={Deflate:Qo,deflate:Jo,deflateRaw:tl,gzip:el,constants:il},Be=16209,al=16191,nl=function(t,e){let i,s,a,n,r,o,u,l,d,O,g,p,C,M,U,A,k,m,I,H,F,z,b,y,_=t.state;i=t.next_in,b=t.input,s=i+(t.avail_in-5),a=t.next_out,y=t.output,n=a-(e-t.avail_out),r=a+(t.avail_out-257),o=_.dmax,u=_.wsize,l=_.whave,d=_.wnext,O=_.window,g=_.hold,p=_.bits,C=_.lencode,M=_.distcode,U=(1&lt;&lt;_.lenbits)-1,A=(1&lt;&lt;_.distbits)-1;t:do{p&lt;15&amp;&amp;(g+=b[i++]&lt;&lt;p,p+=8,g+=b[i++]&lt;&lt;p,p+=8),k=C[g&amp;U];e:for(;;){if(m=k&gt;&gt;&gt;24,g&gt;&gt;&gt;=m,p-=m,m=k&gt;&gt;&gt;16&amp;255,m===0)y[a++]=k&amp;65535;else if(m&amp;16){I=k&amp;65535,m&amp;=15,m&amp;&amp;(p&lt;m&amp;&amp;(g+=b[i++]&lt;&lt;p,p+=8),I+=g&amp;(1&lt;&lt;m)-1,g&gt;&gt;&gt;=m,p-=m),p&lt;15&amp;&amp;(g+=b[i++]&lt;&lt;p,p+=8,g+=b[i++]&lt;&lt;p,p+=8),k=M[g&amp;A];i:for(;;){if(m=k&gt;&gt;&gt;24,g&gt;&gt;&gt;=m,p-=m,m=k&gt;&gt;&gt;16&amp;255,m&amp;16){if(H=k&amp;65535,m&amp;=15,p&lt;m&amp;&amp;(g+=b[i++]&lt;&lt;p,p+=8,p&lt;m&amp;&amp;(g+=b[i++]&lt;&lt;p,p+=8)),H+=g&amp;(1&lt;&lt;m)-1,H&gt;o){t.msg="invalid distance too far back",_.mode=Be;break t}if(g&gt;&gt;&gt;=m,p-=m,m=a-n,H&gt;m){if(m=H-m,m&gt;l&amp;&amp;_.sane){t.msg="invalid distance too far back",_.mode=Be;break t}if(F=0,z=O,d===0){if(F+=u-m,m&lt;I){I-=m;do y[a++]=O[F++];while(--m);F=a-H,z=y}}else if(d&lt;m){if(F+=u+d-m,m-=d,m&lt;I){I-=m;do y[a++]=O[F++];while(--m);if(F=0,d&lt;I){m=d,I-=m;do y[a++]=O[F++];while(--m);F=a-H,z=y}}}else if(F+=d-m,m&lt;I){I-=m;do y[a++]=O[F++];while(--m);F=a-H,z=y}for(;I&gt;2;)y[a++]=z[F++],y[a++]=z[F++],y[a++]=z[F++],I-=3;I&amp;&amp;(y[a++]=z[F++],I&gt;1&amp;&amp;(y[a++]=z[F++]))}else{F=a-H;do y[a++]=y[F++],y[a++]=y[F++],y[a++]=y[F++],I-=3;while(I&gt;2);I&amp;&amp;(y[a++]=y[F++],I&gt;1&amp;&amp;(y[a++]=y[F++]))}}else if((m&amp;64)===0){k=M[(k&amp;65535)+(g&amp;(1&lt;&lt;m)-1)];continue i}else{t.msg="invalid distance code",_.mode=Be;break t}break}}else if((m&amp;64)===0){k=C[(k&amp;65535)+(g&amp;(1&lt;&lt;m)-1)];continue e}else if(m&amp;32){_.mode=al;break t}else{t.msg="invalid literal/length code",_.mode=Be;break t}break}}while(i&lt;s&amp;&amp;a&lt;r);I=p&gt;&gt;3,i-=I,p-=I&lt;&lt;3,g&amp;=(1&lt;&lt;p)-1,t.next_in=i,t.next_out=a,t.avail_in=i&lt;s?5+(s-i):5-(i-s),t.avail_out=a&lt;r?257+(r-a):257-(a-r),_.hold=g,_.bits=p},te=15,ks=852,Os=592,As=0,bi=1,Is=2,rl=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ol=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ll=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),dl=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),hl=(t,e,i,s,a,n,r,o)=&gt;{let u=o.bits,l=0,d=0,O=0,g=0,p=0,C=0,M=0,U=0,A=0,k=0,m,I,H,F,z,b=null,y,_=new Uint16Array(te+1),w=new Uint16Array(te+1),S=null,V,T,x;for(l=0;l&lt;=te;l++)_[l]=0;for(d=0;d&lt;s;d++)_[e[i+d]]++;for(p=u,g=te;g&gt;=1&amp;&amp;_[g]===0;g--);if(p&gt;g&amp;&amp;(p=g),g===0)return a[n++]=1&lt;&lt;24|64&lt;&lt;16|0,a[n++]=1&lt;&lt;24|64&lt;&lt;16|0,o.bits=1,0;for(O=1;O&lt;g&amp;&amp;_[O]===0;O++);for(p&lt;O&amp;&amp;(p=O),U=1,l=1;l&lt;=te;l++)if(U&lt;&lt;=1,U-=_[l],U&lt;0)return-1;if(U&gt;0&amp;&amp;(t===As||g!==1))return-1;for(w[1]=0,l=1;l&lt;te;l++)w[l+1]=w[l]+_[l];for(d=0;d&lt;s;d++)e[i+d]!==0&amp;&amp;(r[w[e[i+d]]++]=d);if(t===As?(b=S=r,y=20):t===bi?(b=rl,S=ol,y=257):(b=ll,S=dl,y=0),k=0,d=0,l=O,z=n,C=p,M=0,H=-1,A=1&lt;&lt;p,F=A-1,t===bi&amp;&amp;A&gt;ks||t===Is&amp;&amp;A&gt;Os)return 1;for(;;){V=l-M,r[d]+1&lt;y?(T=0,x=r[d]):r[d]&gt;=y?(T=S[r[d]-y],x=b[r[d]-y]):(T=32+64,x=0),m=1&lt;&lt;l-M,I=1&lt;&lt;C,O=I;do I-=m,a[z+(k&gt;&gt;M)+I]=V&lt;&lt;24|T&lt;&lt;16|x|0;while(I!==0);for(m=1&lt;&lt;l-1;k&amp;m;)m&gt;&gt;=1;if(m!==0?(k&amp;=m-1,k+=m):k=0,d++,--_[l]===0){if(l===g)break;l=e[i+r[d]]}if(l&gt;p&amp;&amp;(k&amp;F)!==H){for(M===0&amp;&amp;(M=p),z+=O,C=l-M,U=1&lt;&lt;C;C+M&lt;g&amp;&amp;(U-=_[C+M],!(U&lt;=0));)C++,U&lt;&lt;=1;if(A+=1&lt;&lt;C,t===bi&amp;&amp;A&gt;ks||t===Is&amp;&amp;A&gt;Os)return 1;H=k&amp;F,a[H]=p&lt;&lt;24|C&lt;&lt;16|z-n|0}}return k!==0&amp;&amp;(a[z+k]=l-M&lt;&lt;24|64&lt;&lt;16|0),o.bits=p,0},we=hl,cl=0,qa=1,$a=2,{Z_FINISH:xs,Z_BLOCK:bl,Z_TREES:Ne,Z_OK:qt,Z_STREAM_END:fl,Z_NEED_DICT:ul,Z_STREAM_ERROR:pt,Z_DATA_ERROR:Qa,Z_MEM_ERROR:Ja,Z_BUF_ERROR:_l,Z_DEFLATED:js}=le,ei=16180,Cs=16181,Us=16182,Ts=16183,Vs=16184,zs=16185,Fs=16186,Ds=16187,Rs=16188,Ps=16189,qe=16190,kt=16191,fi=16192,Ms=16193,ui=16194,Bs=16195,Ns=16196,Es=16197,Ls=16198,Ee=16199,Le=16200,Zs=16201,Hs=16202,Ys=16203,Gs=16204,Xs=16205,_i=16206,Ws=16207,Ks=16208,Z=16209,tn=16210,en=16211,pl=852,gl=592,wl=15,yl=wl,qs=t=&gt;(t&gt;&gt;&gt;24&amp;255)+(t&gt;&gt;&gt;8&amp;65280)+((t&amp;65280)&lt;&lt;8)+((t&amp;255)&lt;&lt;24);function ml(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var $t=t=&gt;{if(!t)return 1;let e=t.state;return!e||e.strm!==t||e.mode&lt;ei||e.mode&gt;en?1:0},sn=t=&gt;{if($t(t))return pt;let e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&amp;&amp;(t.adler=e.wrap&amp;1),e.mode=ei,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(pl),e.distcode=e.distdyn=new Int32Array(gl),e.sane=1,e.back=-1,qt},an=t=&gt;{if($t(t))return pt;let e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,sn(t)},nn=(t,e)=&gt;{let i;if($t(t))return pt;let s=t.state;return e&lt;0?(i=0,e=-e):(i=(e&gt;&gt;4)+5,e&lt;48&amp;&amp;(e&amp;=15)),e&amp;&amp;(e&lt;8||e&gt;15)?pt:(s.window!==null&amp;&amp;s.wbits!==e&amp;&amp;(s.window=null),s.wrap=i,s.wbits=e,an(t))},rn=(t,e)=&gt;{if(!t)return pt;let i=new ml;t.state=i,i.strm=t,i.window=null,i.mode=ei;let s=nn(t,e);return s!==qt&amp;&amp;(t.state=null),s},vl=t=&gt;rn(t,yl),$s=!0,pi,gi,Sl=t=&gt;{if($s){pi=new Int32Array(512),gi=new Int32Array(32);let e=0;for(;e&lt;144;)t.lens[e++]=8;for(;e&lt;256;)t.lens[e++]=9;for(;e&lt;280;)t.lens[e++]=7;for(;e&lt;288;)t.lens[e++]=8;for(we(qa,t.lens,0,288,pi,0,t.work,{bits:9}),e=0;e&lt;32;)t.lens[e++]=5;we($a,t.lens,0,32,gi,0,t.work,{bits:5}),$s=!1}t.lencode=pi,t.lenbits=9,t.distcode=gi,t.distbits=5},on=(t,e,i,s)=&gt;{let a,n=t.state;return n.window===null&amp;&amp;(n.wsize=1&lt;&lt;n.wbits,n.wnext=0,n.whave=0,n.window=new Uint8Array(n.wsize)),s&gt;=n.wsize?(n.window.set(e.subarray(i-n.wsize,i),0),n.wnext=0,n.whave=n.wsize):(a=n.wsize-n.wnext,a&gt;s&amp;&amp;(a=s),n.window.set(e.subarray(i-s,i-s+a),n.wnext),s-=a,s?(n.window.set(e.subarray(i-s,i),0),n.wnext=s,n.whave=n.wsize):(n.wnext+=a,n.wnext===n.wsize&amp;&amp;(n.wnext=0),n.whave&lt;n.wsize&amp;&amp;(n.whave+=a))),0},kl=(t,e)=&gt;{let i,s,a,n,r,o,u,l,d,O,g,p,C,M,U=0,A,k,m,I,H,F,z,b,y=new Uint8Array(4),_,w,S=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if($t(t)||!t.output||!t.input&amp;&amp;t.avail_in!==0)return pt;i=t.state,i.mode===kt&amp;&amp;(i.mode=fi),r=t.next_out,a=t.output,u=t.avail_out,n=t.next_in,s=t.input,o=t.avail_in,l=i.hold,d=i.bits,O=o,g=u,b=qt;t:for(;;)switch(i.mode){case ei:if(i.wrap===0){i.mode=fi;break}for(;d&lt;16;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}if(i.wrap&amp;2&amp;&amp;l===35615){i.wbits===0&amp;&amp;(i.wbits=15),i.check=0,y[0]=l&amp;255,y[1]=l&gt;&gt;&gt;8&amp;255,i.check=J(i.check,y,2,0),l=0,d=0,i.mode=Cs;break}if(i.head&amp;&amp;(i.head.done=!1),!(i.wrap&amp;1)||(((l&amp;255)&lt;&lt;8)+(l&gt;&gt;8))%31){t.msg="incorrect header check",i.mode=Z;break}if((l&amp;15)!==js){t.msg="unknown compression method",i.mode=Z;break}if(l&gt;&gt;&gt;=4,d-=4,z=(l&amp;15)+8,i.wbits===0&amp;&amp;(i.wbits=z),z&gt;15||z&gt;i.wbits){t.msg="invalid window size",i.mode=Z;break}i.dmax=1&lt;&lt;i.wbits,i.flags=0,t.adler=i.check=1,i.mode=l&amp;512?Ps:kt,l=0,d=0;break;case Cs:for(;d&lt;16;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}if(i.flags=l,(i.flags&amp;255)!==js){t.msg="unknown compression method",i.mode=Z;break}if(i.flags&amp;57344){t.msg="unknown header flags set",i.mode=Z;break}i.head&amp;&amp;(i.head.text=l&gt;&gt;8&amp;1),i.flags&amp;512&amp;&amp;i.wrap&amp;4&amp;&amp;(y[0]=l&amp;255,y[1]=l&gt;&gt;&gt;8&amp;255,i.check=J(i.check,y,2,0)),l=0,d=0,i.mode=Us;case Us:for(;d&lt;32;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}i.head&amp;&amp;(i.head.time=l),i.flags&amp;512&amp;&amp;i.wrap&amp;4&amp;&amp;(y[0]=l&amp;255,y[1]=l&gt;&gt;&gt;8&amp;255,y[2]=l&gt;&gt;&gt;16&amp;255,y[3]=l&gt;&gt;&gt;24&amp;255,i.check=J(i.check,y,4,0)),l=0,d=0,i.mode=Ts;case Ts:for(;d&lt;16;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}i.head&amp;&amp;(i.head.xflags=l&amp;255,i.head.os=l&gt;&gt;8),i.flags&amp;512&amp;&amp;i.wrap&amp;4&amp;&amp;(y[0]=l&amp;255,y[1]=l&gt;&gt;&gt;8&amp;255,i.check=J(i.check,y,2,0)),l=0,d=0,i.mode=Vs;case Vs:if(i.flags&amp;1024){for(;d&lt;16;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}i.length=l,i.head&amp;&amp;(i.head.extra_len=l),i.flags&amp;512&amp;&amp;i.wrap&amp;4&amp;&amp;(y[0]=l&amp;255,y[1]=l&gt;&gt;&gt;8&amp;255,i.check=J(i.check,y,2,0)),l=0,d=0}else i.head&amp;&amp;(i.head.extra=null);i.mode=zs;case zs:if(i.flags&amp;1024&amp;&amp;(p=i.length,p&gt;o&amp;&amp;(p=o),p&amp;&amp;(i.head&amp;&amp;(z=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(s.subarray(n,n+p),z)),i.flags&amp;512&amp;&amp;i.wrap&amp;4&amp;&amp;(i.check=J(i.check,s,p,n)),o-=p,n+=p,i.length-=p),i.length))break t;i.length=0,i.mode=Fs;case Fs:if(i.flags&amp;2048){if(o===0)break t;p=0;do z=s[n+p++],i.head&amp;&amp;z&amp;&amp;i.length&lt;65536&amp;&amp;(i.head.name+=String.fromCharCode(z));while(z&amp;&amp;p&lt;o);if(i.flags&amp;512&amp;&amp;i.wrap&amp;4&amp;&amp;(i.check=J(i.check,s,p,n)),o-=p,n+=p,z)break t}else i.head&amp;&amp;(i.head.name=null);i.length=0,i.mode=Ds;case Ds:if(i.flags&amp;4096){if(o===0)break t;p=0;do z=s[n+p++],i.head&amp;&amp;z&amp;&amp;i.length&lt;65536&amp;&amp;(i.head.comment+=String.fromCharCode(z));while(z&amp;&amp;p&lt;o);if(i.flags&amp;512&amp;&amp;i.wrap&amp;4&amp;&amp;(i.check=J(i.check,s,p,n)),o-=p,n+=p,z)break t}else i.head&amp;&amp;(i.head.comment=null);i.mode=Rs;case Rs:if(i.flags&amp;512){for(;d&lt;16;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}if(i.wrap&amp;4&amp;&amp;l!==(i.check&amp;65535)){t.msg="header crc mismatch",i.mode=Z;break}l=0,d=0}i.head&amp;&amp;(i.head.hcrc=i.flags&gt;&gt;9&amp;1,i.head.done=!0),t.adler=i.check=0,i.mode=kt;break;case Ps:for(;d&lt;32;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}t.adler=i.check=qs(l),l=0,d=0,i.mode=qe;case qe:if(i.havedict===0)return t.next_out=r,t.avail_out=u,t.next_in=n,t.avail_in=o,i.hold=l,i.bits=d,ul;t.adler=i.check=1,i.mode=kt;case kt:if(e===bl||e===Ne)break t;case fi:if(i.last){l&gt;&gt;&gt;=d&amp;7,d-=d&amp;7,i.mode=_i;break}for(;d&lt;3;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}switch(i.last=l&amp;1,l&gt;&gt;&gt;=1,d-=1,l&amp;3){case 0:i.mode=Ms;break;case 1:if(Sl(i),i.mode=Ee,e===Ne){l&gt;&gt;&gt;=2,d-=2;break t}break;case 2:i.mode=Ns;break;case 3:t.msg="invalid block type",i.mode=Z}l&gt;&gt;&gt;=2,d-=2;break;case Ms:for(l&gt;&gt;&gt;=d&amp;7,d-=d&amp;7;d&lt;32;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}if((l&amp;65535)!==(l&gt;&gt;&gt;16^65535)){t.msg="invalid stored block lengths",i.mode=Z;break}if(i.length=l&amp;65535,l=0,d=0,i.mode=ui,e===Ne)break t;case ui:i.mode=Bs;case Bs:if(p=i.length,p){if(p&gt;o&amp;&amp;(p=o),p&gt;u&amp;&amp;(p=u),p===0)break t;a.set(s.subarray(n,n+p),r),o-=p,n+=p,u-=p,r+=p,i.length-=p;break}i.mode=kt;break;case Ns:for(;d&lt;14;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}if(i.nlen=(l&amp;31)+257,l&gt;&gt;&gt;=5,d-=5,i.ndist=(l&amp;31)+1,l&gt;&gt;&gt;=5,d-=5,i.ncode=(l&amp;15)+4,l&gt;&gt;&gt;=4,d-=4,i.nlen&gt;286||i.ndist&gt;30){t.msg="too many length or distance symbols",i.mode=Z;break}i.have=0,i.mode=Es;case Es:for(;i.have&lt;i.ncode;){for(;d&lt;3;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}i.lens[S[i.have++]]=l&amp;7,l&gt;&gt;&gt;=3,d-=3}for(;i.have&lt;19;)i.lens[S[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,_={bits:i.lenbits},b=we(cl,i.lens,0,19,i.lencode,0,i.work,_),i.lenbits=_.bits,b){t.msg="invalid code lengths set",i.mode=Z;break}i.have=0,i.mode=Ls;case Ls:for(;i.have&lt;i.nlen+i.ndist;){for(;U=i.lencode[l&amp;(1&lt;&lt;i.lenbits)-1],A=U&gt;&gt;&gt;24,k=U&gt;&gt;&gt;16&amp;255,m=U&amp;65535,!(A&lt;=d);){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}if(m&lt;16)l&gt;&gt;&gt;=A,d-=A,i.lens[i.have++]=m;else{if(m===16){for(w=A+2;d&lt;w;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}if(l&gt;&gt;&gt;=A,d-=A,i.have===0){t.msg="invalid bit length repeat",i.mode=Z;break}z=i.lens[i.have-1],p=3+(l&amp;3),l&gt;&gt;&gt;=2,d-=2}else if(m===17){for(w=A+3;d&lt;w;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}l&gt;&gt;&gt;=A,d-=A,z=0,p=3+(l&amp;7),l&gt;&gt;&gt;=3,d-=3}else{for(w=A+7;d&lt;w;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}l&gt;&gt;&gt;=A,d-=A,z=0,p=11+(l&amp;127),l&gt;&gt;&gt;=7,d-=7}if(i.have+p&gt;i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=Z;break}for(;p--;)i.lens[i.have++]=z}}if(i.mode===Z)break;if(i.lens[256]===0){t.msg="invalid code -- missing end-of-block",i.mode=Z;break}if(i.lenbits=9,_={bits:i.lenbits},b=we(qa,i.lens,0,i.nlen,i.lencode,0,i.work,_),i.lenbits=_.bits,b){t.msg="invalid literal/lengths set",i.mode=Z;break}if(i.distbits=6,i.distcode=i.distdyn,_={bits:i.distbits},b=we($a,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,_),i.distbits=_.bits,b){t.msg="invalid distances set",i.mode=Z;break}if(i.mode=Ee,e===Ne)break t;case Ee:i.mode=Le;case Le:if(o&gt;=6&amp;&amp;u&gt;=258){t.next_out=r,t.avail_out=u,t.next_in=n,t.avail_in=o,i.hold=l,i.bits=d,nl(t,g),r=t.next_out,a=t.output,u=t.avail_out,n=t.next_in,s=t.input,o=t.avail_in,l=i.hold,d=i.bits,i.mode===kt&amp;&amp;(i.back=-1);break}for(i.back=0;U=i.lencode[l&amp;(1&lt;&lt;i.lenbits)-1],A=U&gt;&gt;&gt;24,k=U&gt;&gt;&gt;16&amp;255,m=U&amp;65535,!(A&lt;=d);){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}if(k&amp;&amp;(k&amp;240)===0){for(I=A,H=k,F=m;U=i.lencode[F+((l&amp;(1&lt;&lt;I+H)-1)&gt;&gt;I)],A=U&gt;&gt;&gt;24,k=U&gt;&gt;&gt;16&amp;255,m=U&amp;65535,!(I+A&lt;=d);){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}l&gt;&gt;&gt;=I,d-=I,i.back+=I}if(l&gt;&gt;&gt;=A,d-=A,i.back+=A,i.length=m,k===0){i.mode=Xs;break}if(k&amp;32){i.back=-1,i.mode=kt;break}if(k&amp;64){t.msg="invalid literal/length code",i.mode=Z;break}i.extra=k&amp;15,i.mode=Zs;case Zs:if(i.extra){for(w=i.extra;d&lt;w;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}i.length+=l&amp;(1&lt;&lt;i.extra)-1,l&gt;&gt;&gt;=i.extra,d-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=Hs;case Hs:for(;U=i.distcode[l&amp;(1&lt;&lt;i.distbits)-1],A=U&gt;&gt;&gt;24,k=U&gt;&gt;&gt;16&amp;255,m=U&amp;65535,!(A&lt;=d);){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}if((k&amp;240)===0){for(I=A,H=k,F=m;U=i.distcode[F+((l&amp;(1&lt;&lt;I+H)-1)&gt;&gt;I)],A=U&gt;&gt;&gt;24,k=U&gt;&gt;&gt;16&amp;255,m=U&amp;65535,!(I+A&lt;=d);){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}l&gt;&gt;&gt;=I,d-=I,i.back+=I}if(l&gt;&gt;&gt;=A,d-=A,i.back+=A,k&amp;64){t.msg="invalid distance code",i.mode=Z;break}i.offset=m,i.extra=k&amp;15,i.mode=Ys;case Ys:if(i.extra){for(w=i.extra;d&lt;w;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}i.offset+=l&amp;(1&lt;&lt;i.extra)-1,l&gt;&gt;&gt;=i.extra,d-=i.extra,i.back+=i.extra}if(i.offset&gt;i.dmax){t.msg="invalid distance too far back",i.mode=Z;break}i.mode=Gs;case Gs:if(u===0)break t;if(p=g-u,i.offset&gt;p){if(p=i.offset-p,p&gt;i.whave&amp;&amp;i.sane){t.msg="invalid distance too far back",i.mode=Z;break}p&gt;i.wnext?(p-=i.wnext,C=i.wsize-p):C=i.wnext-p,p&gt;i.length&amp;&amp;(p=i.length),M=i.window}else M=a,C=r-i.offset,p=i.length;p&gt;u&amp;&amp;(p=u),u-=p,i.length-=p;do a[r++]=M[C++];while(--p);i.length===0&amp;&amp;(i.mode=Le);break;case Xs:if(u===0)break t;a[r++]=i.length,u--,i.mode=Le;break;case _i:if(i.wrap){for(;d&lt;32;){if(o===0)break t;o--,l|=s[n++]&lt;&lt;d,d+=8}if(g-=u,t.total_out+=g,i.total+=g,i.wrap&amp;4&amp;&amp;g&amp;&amp;(t.adler=i.check=i.flags?J(i.check,a,g,r-g):Ie(i.check,a,g,r-g)),g=u,i.wrap&amp;4&amp;&amp;(i.flags?l:qs(l))!==i.check){t.msg="incorrect data check",i.mode=Z;break}l=0,d=0}i.mode=Ws;case Ws:if(i.wrap&amp;&amp;i.flags){for(;d&lt;32;){if(o===0)break t;o--,l+=s[n++]&lt;&lt;d,d+=8}if(i.wrap&amp;4&amp;&amp;l!==(i.total&amp;4294967295)){t.msg="incorrect length check",i.mode=Z;break}l=0,d=0}i.mode=Ks;case Ks:b=fl;break t;case Z:b=Qa;break t;case tn:return Ja;case en:default:return pt}return t.next_out=r,t.avail_out=u,t.next_in=n,t.avail_in=o,i.hold=l,i.bits=d,(i.wsize||g!==t.avail_out&amp;&amp;i.mode&lt;Z&amp;&amp;(i.mode&lt;_i||e!==xs))&amp;&amp;on(t,t.output,t.next_out,g-t.avail_out),O-=t.avail_in,g-=t.avail_out,t.total_in+=O,t.total_out+=g,i.total+=g,i.wrap&amp;4&amp;&amp;g&amp;&amp;(t.adler=i.check=i.flags?J(i.check,a,g,t.next_out-g):Ie(i.check,a,g,t.next_out-g)),t.data_type=i.bits+(i.last?64:0)+(i.mode===kt?128:0)+(i.mode===Ee||i.mode===ui?256:0),(O===0&amp;&amp;g===0||e===xs)&amp;&amp;b===qt&amp;&amp;(b=_l),b},Ol=t=&gt;{if($t(t))return pt;let e=t.state;return e.window&amp;&amp;(e.window=null),t.state=null,qt},Al=(t,e)=&gt;{if($t(t))return pt;let i=t.state;return(i.wrap&amp;2)===0?pt:(i.head=e,e.done=!1,qt)},Il=(t,e)=&gt;{let i=e.length,s,a,n;return $t(t)||(s=t.state,s.wrap!==0&amp;&amp;s.mode!==qe)?pt:s.mode===qe&amp;&amp;(a=1,a=Ie(a,e,i,0),a!==s.check)?Qa:(n=on(t,e,i,i),n?(s.mode=tn,Ja):(s.havedict=1,qt))},xl=an,jl=nn,Cl=sn,Ul=vl,Tl=rn,Vl=kl,zl=Ol,Fl=Al,Dl=Il,Rl="pako inflate (from Nodeca project)",xt={inflateReset:xl,inflateReset2:jl,inflateResetKeep:Cl,inflateInit:Ul,inflateInit2:Tl,inflate:Vl,inflateEnd:zl,inflateGetHeader:Fl,inflateSetDictionary:Dl,inflateInfo:Rl};function Pl(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Ml=Pl,ln=Object.prototype.toString,{Z_NO_FLUSH:Bl,Z_FINISH:Nl,Z_OK:Ce,Z_STREAM_END:wi,Z_NEED_DICT:yi,Z_STREAM_ERROR:El,Z_DATA_ERROR:Qs,Z_MEM_ERROR:Ll}=le;function Fe(t){this.options=ti.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});let e=this.options;e.raw&amp;&amp;e.windowBits&gt;=0&amp;&amp;e.windowBits&lt;16&amp;&amp;(e.windowBits=-e.windowBits,e.windowBits===0&amp;&amp;(e.windowBits=-15)),e.windowBits&gt;=0&amp;&amp;e.windowBits&lt;16&amp;&amp;!(t&amp;&amp;t.windowBits)&amp;&amp;(e.windowBits+=32),e.windowBits&gt;15&amp;&amp;e.windowBits&lt;48&amp;&amp;(e.windowBits&amp;15)===0&amp;&amp;(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Wa,this.strm.avail_out=0;let i=xt.inflateInit2(this.strm,e.windowBits);if(i!==Ce)throw new Error(Wt[i]);if(this.header=new Ml,xt.inflateGetHeader(this.strm,this.header),e.dictionary&amp;&amp;(typeof e.dictionary=="string"?e.dictionary=je.string2buf(e.dictionary):ln.call(e.dictionary)==="[object ArrayBuffer]"&amp;&amp;(e.dictionary=new Uint8Array(e.dictionary)),e.raw&amp;&amp;(i=xt.inflateSetDictionary(this.strm,e.dictionary),i!==Ce)))throw new Error(Wt[i])}Fe.prototype.push=function(t,e){let i=this.strm,s=this.options.chunkSize,a=this.options.dictionary,n,r,o;if(this.ended)return!1;for(e===~~e?r=e:r=e===!0?Nl:Bl,ln.call(t)==="[object ArrayBuffer]"?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;){for(i.avail_out===0&amp;&amp;(i.output=new Uint8Array(s),i.next_out=0,i.avail_out=s),n=xt.inflate(i,r),n===yi&amp;&amp;a&amp;&amp;(n=xt.inflateSetDictionary(i,a),n===Ce?n=xt.inflate(i,r):n===Qs&amp;&amp;(n=yi));i.avail_in&gt;0&amp;&amp;n===wi&amp;&amp;i.state.wrap&gt;0&amp;&amp;t[i.next_in]!==0;)xt.inflateReset(i),n=xt.inflate(i,r);switch(n){case El:case Qs:case yi:case Ll:return this.onEnd(n),this.ended=!0,!1}if(o=i.avail_out,i.next_out&amp;&amp;(i.avail_out===0||n===wi))if(this.options.to==="string"){let u=je.utf8border(i.output,i.next_out),l=i.next_out-u,d=je.buf2string(i.output,u);i.next_out=l,i.avail_out=s-l,l&amp;&amp;i.output.set(i.output.subarray(u,u+l),0),this.onData(d)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(!(n===Ce&amp;&amp;o===0)){if(n===wi)return n=xt.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(i.avail_in===0)break}}return!0};Fe.prototype.onData=function(t){this.chunks.push(t)};Fe.prototype.onEnd=function(t){t===Ce&amp;&amp;(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ti.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function qi(t,e){let i=new Fe(e);if(i.push(t),i.err)throw i.msg||Wt[i.err];return i.result}function Zl(t,e){return e=e||{},e.raw=!0,qi(t,e)}var Hl=Fe,Yl=qi,Gl=Zl,Xl=qi,Wl=le,Kl={Inflate:Hl,inflate:Yl,inflateRaw:Gl,ungzip:Xl,constants:Wl},{Deflate:ad,deflate:nd,deflateRaw:ql,gzip:rd}=sl,{Inflate:od,inflate:ld,inflateRaw:$l,ungzip:dd}=Kl,Ql=ql,Jl=$l,dn=t=&gt;Jl(t),Pi=t=&gt;Ql(t,{level:9}),td=class{sendClientMessage(t,e){t.finish(e),this.doSendMessage(Pi(t.asUint8Array()))}pendingMessages=[];getPendingMessages(){return this.pendingMessages}markPendingMessagesAsRead(){this.pendingMessages.length=0}onMessage(t){this.pendingMessages.push(_t.getRootAsServerMessage(new Ut(dn(t))))}onDisconnection(){_e("disconnected")}},ed=class{sendServerMessageTo(t,e,i){e.finish(i),this.doSendMessageTo(t,Pi(e.asUint8Array()))}sendServerMessageToAll(t,e){t.finish(e);let i=Pi(t.asUint8Array());for(let s of this.usersPendingMessages.keys())this.doSendMessageTo(s,i)}usersPendingMessages=new Map;getUsersPendingMessages(){return this.usersPendingMessages.entries()}getConnectedUsers(){return this.usersPendingMessages.keys()}disconnectedUsers=[];getDisconnectedUsers(){return this.disconnectedUsers}onMessage(t,e){this.usersPendingMessages.get(t).push(At.getRootAsClientMessage(new Ut(dn(e))))}onConnection(t){this.usersPendingMessages.set(t,[])}onDisconnection(t){this.usersPendingMessages.delete(t),this.disconnectedUsers.push(t)}};gdjs.registerFirstRuntimeSceneLoadedCallback(()=&gt;{gdjs.BBTextRuntimeObject&amp;&amp;(gdjs.BBTextRuntimeObject.prototype.getString=gdjs.BBTextRuntimeObject.prototype.getBBText,gdjs.BBTextRuntimeObject.prototype.setString=gdjs.BBTextRuntimeObject.prototype.setBBText),gdjs.BitmapTextRuntimeObject&amp;&amp;(gdjs.BitmapTextRuntimeObject.prototype.getString=gdjs.BitmapTextRuntimeObject.prototype.getText,gdjs.BitmapTextRuntimeObject.prototype.setString=gdjs.BitmapTextRuntimeObject.prototype.setText,gdjs.BitmapTextRuntimeObject.prototype.getColor=gdjs.BitmapTextRuntimeObject.prototype.getTint,gdjs.BitmapTextRuntimeObject.prototype.setColor=gdjs.BitmapTextRuntimeObject.prototype.setTint)});return _n(id);})();
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
{
};
gdjs.evtsExt__THNK__onFirstSceneLoaded.eventsList0 = function(runtimeScene, eventsFunctionContext) {

{


gdjs.evtsExt__THNK__onFirstSceneLoaded.userFunc0xd83f40(runtimeScene, typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined);

}


};

gdjs.evtsExt__THNK__onFirstSceneLoaded.func = function(runtimeScene, parentEventsFunctionContext) {
var eventsFunctionContext = {
  _objectsMap: {
},
  _objectArraysMap: {
},
  _behaviorNamesMap: {
},
  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("THNK"),
  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("THNK"),
  localVariables: [],
  getObjects: function(objectName) {
    return eventsFunctionContext._objectArraysMap[objectName] || [];
  },
  getObjectsLists: function(objectName) {
    return eventsFunctionContext._objectsMap[objectName] || null;
  },
  getBehaviorName: function(behaviorName) {
    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
  },
  createObject: function(objectName) {
    const objectsList = eventsFunctionContext._objectsMap[objectName];
    if (objectsList) {
      const object = parentEventsFunctionContext ?
        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
        runtimeScene.createObject(objectsList.firstKey());
      if (object) {
        objectsList.get(objectsList.firstKey()).push(object);
        eventsFunctionContext._objectArraysMap[objectName].push(object);
      }
      return object;    }
    return null;
  },
  getInstancesCountOnScene: function(objectName) {
    const objectsList = eventsFunctionContext._objectsMap[objectName];
    let count = 0;
    if (objectsList) {
      for(const objectName in objectsList.items)
        count += parentEventsFunctionContext ?
parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
        runtimeScene.getInstancesCountOnScene(objectName);
    }
    return count;
  },
  getLayer: function(layerName) {
    return runtimeScene.getLayer(layerName);
  },
  getArgument: function(argName) {
    return "";
  },
  getOnceTriggers: function() { return runtimeScene.getOnceTriggers(); }
};


gdjs.evtsExt__THNK__onFirstSceneLoaded.eventsList0(runtimeScene, eventsFunctionContext);


return;
}

gdjs.evtsExt__THNK__onFirstSceneLoaded.registeredGdjsCallbacks = [];
gdjs.evtsExt__THNK__onFirstSceneLoaded.registeredGdjsCallbacks.push((runtimeScene) =&gt; {
    gdjs.evtsExt__THNK__onFirstSceneLoaded.func(runtimeScene, runtimeScene);
})
gdjs.registerFirstRuntimeSceneLoadedCallback(gdjs.evtsExt__THNK__onFirstSceneLoaded.registeredGdjsCallbacks[gdjs.evtsExt__THNK__onFirstSceneLoaded.registeredGdjsCallbacks.length - 1]);
</pre></body></html>