>u);else{var h,p,m=u-14,w=0;if(u===C&&(w=a),s!==w&&(i=0,s=w),h=i,i>0&&(i-=2,i<<=m),o+(p=(i+=n.readBits(m)+3)-h)>t)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var b=0;b>>5]),this.htrees=new Uint32Array(t)}function p(e,t){var r,n,a={num_htrees:null,context_map:null},i=0;t.readMoreInput();var l=a.num_htrees=o(t)+1,c=a.context_map=new Uint8Array(e);if(l<=1)return a;for(t.readBits(1)&&(i=t.readBits(4)+1),r=[],n=0;n=e)throw new Error("[DecodeContextMap] i >= context_map_size");c[n]=0,++n}else c[n]=u-i,++n}return t.readBits(1)&&f(c,e),a}function m(e,t,r,n,o,a,i){var d,l=2*r,c=r,u=s(t,r*T,i);(d=0===u?o[l+(1&a[c])]:1===u?o[l+(a[c]-1&1)]+1:u-2)>=e&&(d-=e),n[r]=d,o[l+(1&a[c])]=d,++a[c]}function w(e,t,r,n,o,a){var i,s=o+1,d=r&o,l=a.pos_&U.IBUF_MASK;if(t<8||a.bit_pos_+(t<<3)0;)a.readMoreInput(),n[d++]=a.readBits(8),d===s&&(e.write(n,s),d=0);else{if(a.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;a.bit_pos_<32;)n[d]=a.val_>>>a.bit_pos_,a.bit_pos_+=8,++d,--t;if(l+(i=a.bit_end_pos_-a.bit_pos_>>3)>U.IBUF_MASK){for(var c=U.IBUF_MASK+1-l,u=0;u=s){e.write(n,s),d-=s;for(u=0;u=s;){if(i=s-d,a.input_.read(n,d,i)t.buffer.length){var ye=new Uint8Array(C+re);ye.set(t.buffer),t.buffer=ye}if(I=be.input_end,J=be.is_uncompressed,be.is_metadata)for(b(k);re>0;--re)k.readMoreInput(),k.readBits(8);else if(0!==re)if(J)k.bit_pos_=k.bit_pos_+7&-8,w(t,re,C,y,f,k),C+=re;else{for(r=0;r<3;++r)ae[r]=o(k)+1,ae[r]>=2&&(d(ae[r]+2,v,r*T,k),d(R,A,r*T,k),ne[r]=l(A,r*T,k),se[r]=1);for(k.readMoreInput(),K=(1<<(j=k.readBits(2)))-1,Q=(X=q+(k.readBits(4)<0;){var Ae,Ue,xe,Ee,ke,Be,Le,We,Oe,Ce,Me,Ne;for(k.readMoreInput(),0===ne[1]&&(m(ae[1],v,1,oe,ie,se,k),ne[1]=l(A,T,k),te=Y[1].htrees[oe[1]]),--ne[1],(Ue=(Ae=s(Y[1].codes,te,k))>>6)>=2?(Ue-=2,Le=-1):Le=0,xe=L.kInsertRangeLut[Ue]+(Ae>>3&7),Ee=L.kCopyRangeLut[Ue]+(7&Ae),ke=L.kInsertLengthPrefixCode[xe].offset+k.readBits(L.kInsertLengthPrefixCode[xe].nbits),Be=L.kCopyLengthPrefixCode[Ee].offset+k.readBits(L.kCopyLengthPrefixCode[Ee].nbits),V=y[C-1&f],Z=y[C-2&f],Oe=0;Oe4?3:Be-2))],(Le=s(Y[2].codes,Y[2].htrees[pe],k))>=X)Ne=(Le-=X)&K,Le=X+((Re=(2+(1&(Le>>=j))<<(Me=1+(Le>>1)))-4)+k.readBits(Me)<(P=C=x.minDictionaryWordLength&&Be<=x.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+C+" distance: "+We+" len: "+Be+" bytes left: "+re);var Re=x.offsetsByLength[Be],He=We-P-1,Se=x.sizeBitsByLength[Be],Ie=He>>Se;if(Re+=(He&(1<=g){t.write(y,u);for(var Te=0;Te0&&(D[3&F]=We,++F),Be>re)throw new Error("Invalid backward reference. pos: "+C+" distance: "+We+" len: "+Be+" bytes left: "+re);for(Oe=0;Oe>=1;return(e&r-1)+r}function a(e,t,r,o,a){do{e[t+(o-=r)]=new n(a.bits,a.value)}while(o>0)}function i(e,t,r){for(var n=1<0;--A[c])a(e,t+f,h,b,new n(255&c,65535&g[u++])),f=o(f,c);for(m=y-1,p=-1,c=r+1,h=2;c<=s;++c,h<<=1)for(;A[c]>0;--A[c])(f&m)!==p&&(t+=b,y+=b=1<<(w=i(A,c,r)),e[v+(p=f&m)]=new n(w+r&255,t-v-p&65535)),a(e,t+(f>>r),h,b,new n(c-r&255,65535&g[u++])),f=o(f,c);return y}},"dec/prefix.js":function(e,t,r){function n(e,t){this.offset=e,this.nbits=t}r.kBlockLengthPrefixCode=[new n(1,2),new n(5,2),new n(9,2),new n(13,2),new n(17,3),new n(25,3),new n(33,3),new n(41,3),new n(49,4),new n(65,4),new n(81,4),new n(97,4),new n(113,5),new n(145,5),new n(177,5),new n(209,5),new n(241,6),new n(305,6),new n(369,7),new n(497,8),new n(753,9),new n(1265,10),new n(2289,11),new n(4337,12),new n(8433,13),new n(16625,24)],r.kInsertLengthPrefixCode=[new n(0,0),new n(1,0),new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,1),new n(8,1),new n(10,2),new n(14,2),new n(18,3),new n(26,3),new n(34,4),new n(50,4),new n(66,5),new n(98,5),new n(130,6),new n(194,7),new n(322,8),new n(578,9),new n(1090,10),new n(2114,12),new n(6210,14),new n(22594,24)],r.kCopyLengthPrefixCode=[new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,0),new n(7,0),new n(8,0),new n(9,0),new n(10,1),new n(12,1),new n(14,2),new n(18,2),new n(22,3),new n(30,3),new n(38,4),new n(54,4),new n(70,5),new n(102,5),new n(134,6),new n(198,7),new n(326,8),new n(582,9),new n(1094,10),new n(2118,24)],r.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],r.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},"dec/streams.js":function(e,t,r){function n(e){this.buffer=e,this.pos=0}function o(e){this.buffer=e,this.pos=0}n.prototype.read=function(e,t,r){this.pos+r>this.buffer.length&&(r=this.buffer.length-this.pos);for(var n=0;nthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(e.subarray(0,t),this.pos),this.pos+=t,t},r.BrotliOutput=o},"dec/transform.js":function(e,t,r){function n(e,t,r){this.prefix=new Uint8Array(e.length),this.transform=t,this.suffix=new Uint8Array(r.length);for(var n=0;n=97&&e[t]<=122&&(e[t]^=32),1):e[t]<224?(e[t+1]^=32,2):(e[t+2]^=5,3)}var a=e("./dictionary");const i=10,s=11;var d=[new n("",0,""),new n("",0," "),new n(" ",0," "),new n("",12,""),new n("",i," "),new n("",0," the "),new n(" ",0,""),new n("s ",0," "),new n("",0," of "),new n("",i,""),new n("",0," and "),new n("",13,""),new n("",1,""),new n(", ",0," "),new n("",0,", "),new n(" ",i," "),new n("",0," in "),new n("",0," to "),new n("e ",0," "),new n("",0,'"'),new n("",0,"."),new n("",0,'">'),new n("",0,"\n"),new n("",3,""),new n("",0,"]"),new n("",0," for "),new n("",14,""),new n("",2,""),new n("",0," a "),new n("",0," that "),new n(" ",i,""),new n("",0,". "),new n(".",0,""),new n(" ",0,", "),new n("",15,""),new n("",0," with "),new n("",0,"'"),new n("",0," from "),new n("",0," by "),new n("",16,""),new n("",17,""),new n(" the ",0,""),new n("",4,""),new n("",0,". The "),new n("",s,""),new n("",0," on "),new n("",0," as "),new n("",0," is "),new n("",7,""),new n("",1,"ing "),new n("",0,"\n\t"),new n("",0,":"),new n(" ",0,". "),new n("",0,"ed "),new n("",20,""),new n("",18,""),new n("",6,""),new n("",0,"("),new n("",i,", "),new n("",8,""),new n("",0," at "),new n("",0,"ly "),new n(" the ",0," of "),new n("",5,""),new n("",9,""),new n(" ",i,", "),new n("",i,'"'),new n(".",0,"("),new n("",s," "),new n("",i,'">'),new n("",0,'="'),new n(" ",0,"."),new n(".com/",0,""),new n(" the ",0," of the "),new n("",i,"'"),new n("",0,". This "),new n("",0,","),new n(".",0," "),new n("",i,"("),new n("",i,"."),new n("",0," not "),new n(" ",0,'="'),new n("",0,"er "),new n(" ",s," "),new n("",0,"al "),new n(" ",s,""),new n("",0,"='"),new n("",s,'"'),new n("",i,". "),new n(" ",0,"("),new n("",0,"ful "),new n(" ",i,". "),new n("",0,"ive "),new n("",0,"less "),new n("",s,"'"),new n("",0,"est "),new n(" ",i,"."),new n("",s,'">'),new n(" ",0,"='"),new n("",i,","),new n("",0,"ize "),new n("",s,"."),new n(" ",0,""),new n(" ",0,","),new n("",i,'="'),new n("",s,'="'),new n("",0,"ous "),new n("",s,", "),new n("",i,"='"),new n(" ",i,","),new n(" ",s,'="'),new n(" ",s,", "),new n("",s,","),new n("",s,"("),new n("",s,". "),new n(" ",s,"."),new n("",s,"='"),new n(" ",s,". "),new n(" ",i,'="'),new n(" ",s,"='"),new n(" ",i,"='")];r.kTransforms=d,r.kNumTransforms=d.length,r.transformDictionaryWord=function(e,t,r,n,l){var c,u=d[l].prefix,f=d[l].suffix,h=d[l].transform,p=h<12?0:h-11,m=0,w=t;p>n&&(p=n);for(var b=0;b0;){var y=o(e,c);c+=y,n-=y}for(var g=0;g0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function o(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function a(e,t,r){for(var n,a=[],i=t;i0?c-4:c;var u=0;for(t=0,r=0;t>16&255,l[u++]=a>>8&255,l[u++]=255&a;return 2===i?(a=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,l[u++]=255&a):1===i&&(a=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,l[u++]=a>>8&255,l[u++]=255&a),l},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o="",s=[],d=16383,l=0,c=r-n;lc?c:l+d));return 1===n?(t=e[r-1],o+=i[t>>2],o+=i[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=i[t>>10],o+=i[t>>4&63],o+=i[t<<2&63],o+="="),s.push(o),s.join("")};for(var i=[],s=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=l.length;c>3);if(commentOffset=r+1+2+1+2+(o<<3)+7>>3,17==n||commentOffset>e.length)return!1;for(var a=n+(6+(o<<4)+(t.length-1<<6)<>>=8)if(e[i]!=(255&a))return!1;return String.fromCharCode.apply(null,e.subarray(commentOffset,commentOffset+t.length))==t}},decompress:function(e,t){var r=this.gzip.hasUnityMarker(e)?this.gzip:this.brotli.hasUnityMarker(e)?this.brotli:this.identity;if(this.serverSetupWarningEnabled&&r!=this.identity&&(console.log("You can reduce your startup time if you configure your web server to host .unityweb files using "+(r==this.gzip?"gzip":"brotli")+" compression."),this.serverSetupWarningEnabled=!1),"function"!=typeof t)return r.decompress(e);if(!r.worker){var n=URL.createObjectURL(new Blob(["this.require = ",r.require.toString(),"; this.decompress = ",r.decompress.toString(),"; this.onmessage = ",function(e){var t={id:e.data.id,decompressed:this.decompress(e.data.compressed)};postMessage(t,t.decompressed?[t.decompressed.buffer]:[])}.toString(),"; postMessage({ ready: true });"],{type:"text/javascript"}));r.worker=new Worker(n),r.worker.onmessage=function(e){return e.data.ready?void URL.revokeObjectURL(n):(this.callbacks[e.data.id](e.data.decompressed),void delete this.callbacks[e.data.id])},r.worker.callbacks={},r.worker.nextCallbackId=0}var o=r.worker.nextCallbackId++;r.worker.callbacks[o]=t,r.worker.postMessage({id:o,compressed:e},[e.buffer])},serverSetupWarningEnabled:!0},Cryptography:{crc32:function(e){var t=UnityLoader.Cryptography.crc32.module;if(!t){var r=new ArrayBuffer(16777216),n=function(e,t,r){"use asm";var n=new e.Uint8Array(r);var o=new e.Uint32Array(r);function a(e,t){e=e|0;t=t|0;var r=0;for(r=o[1024>>2]|0;t;e=e+1|0,t=t-1|0)r=o[(r&255^n[e])<<2>>2]^r>>>8^4278190080;o[1024>>2]=r}return{process:a}}({Uint8Array:Uint8Array,Uint32Array:Uint32Array},null,r);t=UnityLoader.Cryptography.crc32.module={buffer:r,HEAPU8:new Uint8Array(r),HEAPU32:new Uint32Array(r),process:n.process,crc32:1024,data:1028};for(var o=0;o<256;o++){for(var a=255^o,i=0;i<8;i++)a=a>>>1^(1&a?3988292384:0);t.HEAPU32[o]=a}}t.HEAPU32[t.crc32>>2]=0;for(var s=0;s>2];return new Uint8Array([l>>24,l>>16,l>>8,l])},md5:function(e){var t=UnityLoader.Cryptography.md5.module;if(!t){var r=new ArrayBuffer(16777216),n=function(e,t,r){"use asm";var n=new e.Uint32Array(r);function o(e,t){e=e|0;t=t|0;var r=0,o=0,a=0,i=0,s=0,d=0,l=0,c=0,u=0,f=0,h=0,p=0;r=n[128]|0,o=n[129]|0,a=n[130]|0,i=n[131]|0;for(;t;e=e+64|0,t=t-1|0){s=r;d=o;l=a;c=i;for(f=0;(f|0)<512;f=f+8|0){p=n[f>>2]|0;r=r+(n[f+4>>2]|0)+(n[e+(p>>>14)>>2]|0)+((f|0)<128?i^o&(a^i):(f|0)<256?a^i&(o^a):(f|0)<384?o^a^i:a^(o|~i))|0;h=(r<<(p&31)|r>>>32-(p&31))+o|0;r=i;i=a;a=o;o=h}r=r+s|0;o=o+d|0;a=a+l|0;i=i+c|0}n[128]=r;n[129]=o;n[130]=a;n[131]=i}return{process:o}}({Uint32Array:Uint32Array},null,r);(t=UnityLoader.Cryptography.md5.module={buffer:r,HEAPU8:new Uint8Array(r),HEAPU32:new Uint32Array(r),process:n.process,md5:512,data:576}).HEAPU32.set(new Uint32Array([7,3614090360,65548,3905402710,131089,606105819,196630,3250441966,262151,4118548399,327692,1200080426,393233,2821735955,458774,4249261313,524295,1770035416,589836,2336552879,655377,4294925233,720918,2304563134,786439,1804603682,851980,4254626195,917521,2792965006,983062,1236535329,65541,4129170786,393225,3225465664,720910,643717713,20,3921069994,327685,3593408605,655369,38016083,983054,3634488961,262164,3889429448,589829,568446438,917513,3275163606,196622,4107603335,524308,1163531501,851973,2850285829,131081,4243563512,458766,1735328473,786452,2368359562,327684,4294588738,524299,2272392833,720912,1839030562,917527,4259657740,65540,2763975236,262155,1272893353,458768,4139469664,655383,3200236656,851972,681279174,11,3936430074,196624,3572445317,393239,76029189,589828,3654602809,786443,3873151461,983056,530742520,131095,3299628645,6,4096336452,458762,1126891415,917519,2878612391,327701,4237533241,786438,1700485571,196618,2399980690,655375,4293915773,65557,2240044497,524294,1873313359,983050,4264355552,393231,2734768916,851989,1309151649,262150,4149444226,720906,3174756917,131087,718787259,589845,3951481745]))}t.HEAPU32.set(new Uint32Array([1732584193,4023233417,2562383102,271733878]),t.md5>>2);for(var o=0;o>6),e.length-o<64){if(a=e.length-o,t.HEAPU8.set(e.subarray(e.length-a,e.length),t.data),o+=a,t.HEAPU8[t.data+a++]=128,a>56){for(var i=a;i<64;i++)t.HEAPU8[t.data+i]=0;t.process(t.data,1),a=0}for(i=a;i<64;i++)t.HEAPU8[t.data+i]=0;var s=e.length,d=0;for(i=56;i<64;i++,d=(224&s)>>5,s/=256)t.HEAPU8[t.data+i]=((31&s)<<3)+d;t.process(t.data,1)}}return new Uint8Array(t.HEAPU8.subarray(t.md5,t.md5+16))},sha1:function(e){var t=UnityLoader.Cryptography.sha1.module;if(!t){var r=new ArrayBuffer(16777216),n=function(e,t,r){"use asm";var n=new e.Uint32Array(r);function o(e,t){e=e|0;t=t|0;var r=0,o=0,a=0,i=0,s=0,d=0,l=0,c=0,u=0,f=0,h=0,p=0;r=n[80]|0,o=n[81]|0,a=n[82]|0,i=n[83]|0,s=n[84]|0;for(;t;e=e+64|0,t=t-1|0){d=r;l=o;c=a;u=i;f=s;for(p=0;(p|0)<320;p=p+4|0,s=i,i=a,a=o<<30|o>>>2,o=r,r=h){if((p|0)<64){h=n[e+p>>2]|0;h=h<<24&4278190080|h<<8&16711680|h>>>8&65280|h>>>24&255}else{h=n[p-12>>2]^n[p-32>>2]^n[p-56>>2]^n[p-64>>2];h=h<<1|h>>>31}n[p>>2]=h;h=h+((r<<5|r>>>27)+s)+((p|0)<80?(o&a|~o&i|0)+1518500249|0:(p|0)<160?(o^a^i)+1859775393|0:(p|0)<240?(o&a|o&i|a&i)+2400959708|0:(o^a^i)+3395469782|0)|0}r=r+d|0;o=o+l|0;a=a+c|0;i=i+u|0;s=s+f|0}n[80]=r;n[81]=o;n[82]=a;n[83]=i;n[84]=s}return{process:o}}({Uint32Array:Uint32Array},null,r);t=UnityLoader.Cryptography.sha1.module={buffer:r,HEAPU8:new Uint8Array(r),HEAPU32:new Uint32Array(r),process:n.process,sha1:320,data:384}}t.HEAPU32.set(new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520]),t.sha1>>2);for(var o=0;o>6),e.length-o<64){if(a=e.length-o,t.HEAPU8.set(e.subarray(e.length-a,e.length),t.data),o+=a,t.HEAPU8[t.data+a++]=128,a>56){for(var i=a;i<64;i++)t.HEAPU8[t.data+i]=0;t.process(t.data,1),a=0}for(i=a;i<64;i++)t.HEAPU8[t.data+i]=0;var s=e.length,d=0;for(i=63;i>=56;i--,d=(224&s)>>5,s/=256)t.HEAPU8[t.data+i]=((31&s)<<3)+d;t.process(t.data,1)}}var l=new Uint8Array(20);for(i=0;i\\[(\\d+)\\]\\+\\d+\\))()":"((\\s*)wasm-function\\[(\\d+)\\])@(blob:.*)",blobParseRegExp:new RegExp("^(blob:.*)(:\\d+:\\d+)$"),getModule:function(e){var t=e.message.match(new RegExp(this.stackTraceFormat,"g"));for(var r in t){var n=t[r].match(new RegExp("^"+this.stackTraceFormat+"$"))[7].match(this.blobParseRegExp);if(n&&UnityLoader.Blobs[n[1]]&&UnityLoader.Blobs[n[1]].Module)return UnityLoader.Blobs[n[1]].Module}},demangle:function(e,t){var r=e.message;return t?(r=r.replace(new RegExp(this.stackTraceFormat,"g"),function(e){var r=e.match(new RegExp("^"+this.stackTraceFormat+"$")),n=r[7].match(this.blobParseRegExp),o=t.demangleSymbol?t.demangleSymbol(r[4]):r[4],a=n&&UnityLoader.Blobs[n[1]]&&UnityLoader.Blobs[n[1]].url?UnityLoader.Blobs[n[1]].url:"blob";return r[1]+o+(r[2]!=o?" ["+r[2]+"]":"")+" ("+(n?a.substr(a.lastIndexOf("/")+1)+n[2]:r[7])+")"}.bind(this)),t.useWasm&&(r=r.replace(new RegExp(this.stackTraceFormatWasm,"g"),function(e){var r=e.match(new RegExp("^"+this.stackTraceFormatWasm+"$")),n=t.demangleSymbol?t.demangleSymbol(r[3]):r[3],o=r[4].match(this.blobParseRegExp),a=o&&UnityLoader.Blobs[o[1]]&&UnityLoader.Blobs[o[1]].url?UnityLoader.Blobs[o[1]].url:"blob";return(n==r[3]?r[1]:r[2]+n+" [wasm:"+r[3]+"]")+(r[4]?" ("+(o?a.substr(a.lastIndexOf("/")+1)+o[2]:r[4])+")":"")}.bind(this))),r):r},handler:function(e,t){var r=t?this.demangle(e,t):e.message;t&&t.errorhandler&&t.errorhandler(r,e.filename,e.lineno)||(console.log("Invoking error handler due to\n"+r),"function"==typeof dump&&dump("Invoking error handler due to\n"+r),-1!=r.indexOf("UnknownError")||-1!=r.indexOf("Program terminated with exit(0)")||this.didShowErrorMessage)||(-1!=(r="An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:\n"+r).indexOf("DISABLE_EXCEPTION_CATCHING")?r="An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace.":-1!=r.indexOf("Cannot enlarge memory arrays")?r="Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.":-1==r.indexOf("Invalid array buffer length")&&-1==r.indexOf("Invalid typed array length")&&-1==r.indexOf("out of memory")||(r="The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."),alert(r),this.didShowErrorMessage=!0)},popup:function(e,t,r){r=r||[{text:"OK"}];var n=document.createElement("div");n.style.cssText="position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); text-align: center; border: 1px solid black; padding: 5px; background: #E8E8E8";var o=document.createElement("span");o.textContent=t,n.appendChild(o),n.appendChild(document.createElement("br"));for(var a=0;a=10.1)?1:0}(),hasWasm:"object"==typeof WebAssembly&&"function"==typeof WebAssembly.validate&&"function"==typeof WebAssembly.compile}}(),compatibilityCheck:function(e,t,r){UnityLoader.SystemInfo.hasWebGL?UnityLoader.SystemInfo.mobile?e.popup("Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway.",[{text:"OK",callback:t}]):-1==["Edge","Firefox","Chrome","Safari"].indexOf(UnityLoader.SystemInfo.browser)?e.popup("Please note that your browser is not currently supported for this Unity WebGL content. Press OK if you wish to continue anyway.",[{text:"OK",callback:t}]):t():e.popup("Your browser does not support WebGL",[{text:"OK",callback:r}])},Blobs:{},loadCode:function(e,t,r){var n=[].slice.call(UnityLoader.Cryptography.md5(e)).map(function(e){return("0"+e.toString(16)).substr(-2)}).join(""),o=document.createElement("script"),a=URL.createObjectURL(new Blob(['UnityLoader["'+n+'"]=',e],{type:"text/javascript"}));UnityLoader.Blobs[a]=r,o.src=a,o.onload=function(){URL.revokeObjectURL(a),t(n)},document.body.appendChild(o)},allocateHeapJob:function(e,t){for(var r=e.TOTAL_STACK||5242880,n=e.TOTAL_MEMORY||(e.buffer?e.buffer.byteLength:268435456),o=65536,a=16777216,i=o;i0;u=f,f=c.indexOf("/",u)+1)e.FS_createPath(c.substring(0,u),c.substring(u,f-1),!0,!0);e.FS_createDataFile(c,null,r.subarray(s,s+d),!0,!0,!0)}e.removeRunDependency("processDataJob"),t.complete()},downloadJob:function(e,t){var r=t.parameters.objParameters?new UnityLoader.UnityCache.XMLHttpRequest(t.parameters.objParameters):new XMLHttpRequest;r.open("GET",t.parameters.url),r.responseType="arraybuffer",r.onload=function(){UnityLoader.Compression.decompress(new Uint8Array(r.response),function(e){t.complete(e)})},t.parameters.onprogress&&r.addEventListener("progress",t.parameters.onprogress),t.parameters.onload&&r.addEventListener("load",t.parameters.onload),r.send()},scheduleBuildDownloadJob:function(e,t,r){UnityLoader.Progress.update(e,t),UnityLoader.Job.schedule(e,t,[],UnityLoader.downloadJob,{url:e.resolveBuildUrl(e[r]),onprogress:function(r){UnityLoader.Progress.update(e,t,r)},onload:function(r){UnityLoader.Progress.update(e,t,r)},objParameters:e.companyName&&e.productName&&e.cacheControl&&(e.cacheControl[r]||e.cacheControl.default)?{companyName:e.companyName,productName:e.productName,cacheControl:e.cacheControl[r]||e.cacheControl.default}:null})},loadModule:function(e){if(e.useWasm=e.wasmCodeUrl&&UnityLoader.SystemInfo.hasWasm,e.useWasm)UnityLoader.initWasmCache(e,"wasmCodeUrl"),UnityLoader.scheduleBuildDownloadJob(e,"downloadWasmCode","wasmCodeUrl"),UnityLoader.Job.schedule(e,"processWasmCode",["downloadWasmCode"],UnityLoader.processWasmCodeJob),UnityLoader.scheduleBuildDownloadJob(e,"downloadWasmFramework","wasmFrameworkUrl"),UnityLoader.Job.schedule(e,"processWasmFramework",["downloadWasmFramework","processWasmCode","setupIndexedDB"],UnityLoader.processWasmFrameworkJob);else{if(!e.asmCodeUrl)throw"WebAssembly support is not detected in this browser.";UnityLoader.scheduleBuildDownloadJob(e,"downloadAsmCode","asmCodeUrl"),UnityLoader.Job.schedule(e,"processAsmCode",["downloadAsmCode"],UnityLoader.processAsmCodeJob),UnityLoader.scheduleBuildDownloadJob(e,"downloadAsmMemory","asmMemoryUrl"),UnityLoader.Job.schedule(e,"processAsmMemory",["downloadAsmMemory"],UnityLoader.processAsmMemoryJob),e.memoryInitializerRequest={addEventListener:function(t,r){e.memoryInitializerRequest.callback=r}},e.asmLibraryUrl&&(e.dynamicLibraries=[e.asmLibraryUrl].map(e.resolveBuildUrl)),UnityLoader.scheduleBuildDownloadJob(e,"downloadAsmFramework","asmFrameworkUrl"),UnityLoader.Job.schedule(e,"processAsmFramework",["downloadAsmFramework","processAsmCode","setupIndexedDB"],UnityLoader.processAsmFrameworkJob)}UnityLoader.scheduleBuildDownloadJob(e,"downloadData","dataUrl"),UnityLoader.Job.schedule(e,"setupIndexedDB",[],UnityLoader.setupIndexedDBJob),e.preRun.push(function(){e.addRunDependency("processDataJob"),UnityLoader.Job.schedule(e,"processData",["downloadData"],UnityLoader.processDataJob)})},instantiate:function(e,t,r){function n(e,r){if("string"==typeof e&&!(e=document.getElementById(e)))return!1;e.innerHTML="",e.style.border=e.style.margin=e.style.padding=0,"static"==getComputedStyle(e).getPropertyValue("position")&&(e.style.position="relative"),e.style.width=r.width||e.style.width,e.style.height=r.height||e.style.height,r.container=e;var n=r.Module;return n.canvas=document.createElement("canvas"),n.canvas.style.width="100%",n.canvas.style.height="100%",n.canvas.addEventListener("contextmenu",function(e){e.preventDefault()}),n.canvas.id="#canvas",e.appendChild(n.canvas),r.compatibilityCheck(r,function(){var o=t;for(var a in o)void 0===n[a]&&(n[a]=o[a]);for(var i=!1,s=0;s=1?i=!0:n.print("Warning: Unsupported graphics API "+d)}return i?(e.style.background=n.backgroundUrl?"center/cover url('"+n.resolveBuildUrl(n.backgroundUrl)+"')":n.backgroundColor?" "+n.backgroundColor:"",r.onProgress(r,0),void UnityLoader.loadModule(n)):void r.popup("Your browser does not support any of the required graphics API for this content: "+n.graphicsAPI,[{text:"OK"}])},function(){n.printErr("Instantiation of the '"+t+"' terminated due to the failed compatibility check.")}),!0}var o={url:t,onProgress:UnityLoader.Progress.handler,compatibilityCheck:UnityLoader.compatibilityCheck,Module:{graphicsAPI:["WebGL 2.0","WebGL 1.0"],preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e)},Jobs:{},buildDownloadProgress:{},resolveBuildUrl:function(e){return e},wasmRequest:function(e,t){this.wasmCache?(this.wasmCache.request={wasmInstantiate:e,callback:t},this.wasmCache.update()):e(this.wasmBinary).then(function(e){t(e.instance)})}},SetFullscreen:function(){if(o.Module.SetFullscreen)return o.Module.SetFullscreen.apply(o.Module,arguments)},SendMessage:function(){if(o.Module.SendMessage)return o.Module.SendMessage.apply(o.Module,arguments)}};for(var a in o.Module.gameInstance=o,o.popup=function(e,t){return UnityLoader.Error.popup(o,e,t)},o.Module.postRun.push(function(){o.onProgress(o,1)}),r)if("Module"==a)for(var i in r[a])o.Module[i]=r[a][i];else o[a]=r[a];return n(e,o)||document.addEventListener("DOMContentLoaded",function(){n(e,o)}),o},Utils:{assert:function(e,t){e||abort("Assertion failed: "+t)},optimizeMathFround:function(e,t){console.log("optimizing out Math.fround calls");for(var r={LOOKING_FOR_MODULE:0,SCANNING_MODULE_VARIABLES:1,SCANNING_MODULE_FUNCTIONS:2},n=["EMSCRIPTEN_START_ASM","EMSCRIPTEN_START_FUNCS","EMSCRIPTEN_END_FUNCS"],o="global.Math.fround;",a=0,i=t?r.LOOKING_FOR_MODULE:r.SCANNING_MODULE_VARIABLES,s=0,d=0;i<=r.SCANNING_MODULE_FUNCTIONS&&a
+
+
+
+
+
+ Duck Life 4
+
+
+
+
+
+
+
+
diff --git a/ducklife4/index.html b/ducklife4/index.html
index fe8e39ef..4b2e1dfb 100644
--- a/ducklife4/index.html
+++ b/ducklife4/index.html
@@ -1,27 +1,32 @@
-
+
+
-
-
-
-
+
+
Duck Life 4
-
+
-
-
-
+ Unity
+ Flash
diff --git a/ducklife4/unity/WebGL.asm.code.unityweb b/ducklife4/unity/WebGL.asm.code.unityweb
new file mode 100644
index 00000000..72b64c7c
Binary files /dev/null and b/ducklife4/unity/WebGL.asm.code.unityweb differ
diff --git a/ducklife4/unity/WebGL.asm.framework.unityweb b/ducklife4/unity/WebGL.asm.framework.unityweb
new file mode 100644
index 00000000..2f97e7fe
Binary files /dev/null and b/ducklife4/unity/WebGL.asm.framework.unityweb differ
diff --git a/ducklife4/unity/WebGL.asm.memory.unityweb b/ducklife4/unity/WebGL.asm.memory.unityweb
new file mode 100644
index 00000000..35709359
Binary files /dev/null and b/ducklife4/unity/WebGL.asm.memory.unityweb differ
diff --git a/ducklife4/unity/index.html b/ducklife4/unity/index.html
new file mode 100644
index 00000000..16b92f07
--- /dev/null
+++ b/ducklife4/unity/index.html
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+
Downloading data...
+
+
+
+
+
+
+
diff --git a/ducklife4/unity/unity.js b/ducklife4/unity/unity.js
new file mode 100644
index 00000000..edd6392d
--- /dev/null
+++ b/ducklife4/unity/unity.js
@@ -0,0 +1 @@
+var UnityLoader=UnityLoader||{Compression:{identity:{require:function(){return{}},decompress:function(e){return e}},gzip:{require:function(e){var t={"inflate.js":function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=a.inflateInit2(this.strm,t.windowBits);if(r!==d.Z_OK)throw new Error(l[r]);this.header=new u,a.inflateGetHeader(this.strm,this.header)}function o(e,t){var r=new n(t);if(r.push(e,!0),r.err)throw r.msg||l[r.err];return r.result}var a=e("./zlib/inflate"),i=e("./utils/common"),s=e("./utils/strings"),d=e("./zlib/constants"),l=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),f=Object.prototype.toString;n.prototype.push=function(e,t){var r,n,o,l,c,u,h=this.strm,p=this.options.chunkSize,m=this.options.dictionary,w=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?d.Z_FINISH:d.Z_NO_FLUSH,"string"==typeof e?h.input=s.binstring2buf(e):"[object ArrayBuffer]"===f.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(r=a.inflate(h,d.Z_NO_FLUSH))===d.Z_NEED_DICT&&m&&(u="string"==typeof m?s.string2buf(m):"[object ArrayBuffer]"===f.call(m)?new Uint8Array(m):m,r=a.inflateSetDictionary(this.strm,u)),r===d.Z_BUF_ERROR&&!0===w&&(r=d.Z_OK,w=!1),r!==d.Z_STREAM_END&&r!==d.Z_OK)return this.onEnd(r),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&r!==d.Z_STREAM_END&&(0!==h.avail_in||n!==d.Z_FINISH&&n!==d.Z_SYNC_FLUSH)||("string"===this.options.to?(o=s.utf8border(h.output,h.next_out),l=h.next_out-o,c=s.buf2string(h.output,o),h.next_out=l,h.avail_out=p-l,l&&i.arraySet(h.output,h.output,o,l,0),this.onData(c)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(w=!0)}while((h.avail_in>0||0===h.avail_out)&&r!==d.Z_STREAM_END);return r===d.Z_STREAM_END&&(n=d.Z_FINISH),n===d.Z_FINISH?(r=a.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===d.Z_OK):n!==d.Z_SYNC_FLUSH||(this.onEnd(d.Z_OK),h.avail_out=0,!0)},n.prototype.onData=function(e){this.chunks.push(e)},n.prototype.onEnd=function(e){e===d.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=n,r.inflate=o,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,o(e,t)},r.ungzip=o},"utils/common.js":function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),o);else for(var a=0;a=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;s[254]=s[254]=1,r.string2buf=function(e){var t,r,n,a,i,s=e.length,d=0;for(a=0;a>>6,t[i++]=128|63&r):r<65536?(t[i++]=224|r>>>12,t[i++]=128|r>>>6&63,t[i++]=128|63&r):(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63,t[i++]=128|r>>>6&63,t[i++]=128|63&r);return t},r.buf2binstring=function(e){return n(e,e.length)},r.binstring2buf=function(e){for(var t=new o.Buf8(e.length),r=0,n=t.length;r4)l[o++]=65533,r+=i-1;else{for(a&=2===i?31:3===i?15:7;i>1&&r