com.beanbag.tiktokminigames 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DefaultTemplate/backgroundlandscape.png +0 -0
- package/DefaultTemplate/backgroundlandscape.png.meta +159 -0
- package/DefaultTemplate/backgroundportrait.png +0 -0
- package/DefaultTemplate/backgroundportrait.png.meta +159 -0
- package/DefaultTemplate/game.js +151 -0
- package/DefaultTemplate/game.js.meta +7 -0
- package/DefaultTemplate/images/unity_logo.png +0 -0
- package/DefaultTemplate/images/unity_logo.png.meta +159 -0
- package/DefaultTemplate/images.meta +8 -0
- package/DefaultTemplate/plugin-config.js +23 -0
- package/DefaultTemplate/plugin-config.js.meta +7 -0
- package/DefaultTemplate/plugin.js +1 -0
- package/DefaultTemplate/plugin.js.meta +7 -0
- package/DefaultTemplate/unity-namespace.js +11 -0
- package/DefaultTemplate/unity-namespace.js.meta +7 -0
- package/DefaultTemplate/webgl-wasm-split.js +17 -0
- package/DefaultTemplate/webgl-wasm-split.js.meta +7 -0
- package/DefaultTemplate.meta +8 -0
- package/Editor/Extras/Integration/DouYinMiniGameSettings.cs +30 -0
- package/Editor/Extras/Integration/DouYinMiniGameSettings.cs.meta +11 -0
- package/Editor/Extras/Integration/DouYinMiniGameSettingsEditor.cs +354 -0
- package/Editor/Extras/Integration/DouYinMiniGameSettingsEditor.cs.meta +3 -0
- package/Editor/Extras/Integration/DouYinSubplatformInterface.cs +153 -0
- package/Editor/Extras/Integration/DouYinSubplatformInterface.cs.meta +3 -0
- package/Editor/Extras/Integration.meta +8 -0
- package/Editor/Extras/Providers/TTMiniGameSupportProvider.cs +148 -0
- package/Editor/Extras/Providers/TTMiniGameSupportProvider.cs.meta +3 -0
- package/Editor/Extras/Providers.meta +3 -0
- package/Editor/Extras/TTEditorSupportProviderRegister.cs +15 -0
- package/Editor/Extras/TTEditorSupportProviderRegister.cs.meta +3 -0
- package/Editor/Extras.meta +3 -0
- package/Editor/ttsdk_tools.dll +0 -0
- package/Editor/ttsdk_tools.dll.meta +33 -0
- package/Editor/ttsdk_tools.pdb +0 -0
- package/Editor/ttsdk_tools.pdb.meta +7 -0
- package/Editor.meta +8 -0
- package/LitJson/TTLitJson.dll +0 -0
- package/LitJson/TTLitJson.dll.meta +33 -0
- package/LitJson/TTLitJson.pdb +0 -0
- package/LitJson/TTLitJson.pdb.meta +7 -0
- package/LitJson.meta +8 -0
- package/TTSDK/ttsdk.dll +0 -0
- package/TTSDK/ttsdk.dll.meta +33 -0
- package/TTSDK/ttsdk.pdb +0 -0
- package/TTSDK/ttsdk.pdb.meta +7 -0
- package/TTSDK.meta +8 -0
- package/WebGL/AssetBundle/DownloadHandlerTTAssetBundle.cs +85 -0
- package/WebGL/AssetBundle/DownloadHandlerTTAssetBundle.cs.meta +3 -0
- package/WebGL/AssetBundle/TTAssetBundle.cs +72 -0
- package/WebGL/AssetBundle/TTAssetBundle.cs.meta +3 -0
- package/WebGL/AssetBundle/TTAssetBundleExtensions.cs +25 -0
- package/WebGL/AssetBundle/TTAssetBundleExtensions.cs.meta +3 -0
- package/WebGL/AssetBundle/TTAssetBundleProviders.cs.txt +1301 -0
- package/WebGL/AssetBundle/TTAssetBundleProviders.cs.txt.meta +3 -0
- package/WebGL/AssetBundle/TTAssetBundleRequest.cs +96 -0
- package/WebGL/AssetBundle/TTAssetBundleRequest.cs.meta +3 -0
- package/WebGL/AssetBundle.meta +8 -0
- package/WebGL/Compatibility/UnityCacheCompatibility.cs +49 -0
- package/WebGL/Compatibility/UnityCacheCompatibility.cs.meta +3 -0
- package/WebGL/Compatibility/UnityWebRequestCompatibility.cs +18 -0
- package/WebGL/Compatibility/UnityWebRequestCompatibility.cs.meta +3 -0
- package/WebGL/Compatibility.meta +3 -0
- package/WebGL/FileSystem/TTFileSystemManager.cs +460 -0
- package/WebGL/FileSystem/TTFileSystemManager.cs.meta +11 -0
- package/WebGL/FileSystem/TTFileSystemManagerDefault.cs +1039 -0
- package/WebGL/FileSystem/TTFileSystemManagerDefault.cs.meta +11 -0
- package/WebGL/FileSystem/TTFileSystemManagerWebGL.cs +1278 -0
- package/WebGL/FileSystem/TTFileSystemManagerWebGL.cs.meta +11 -0
- package/WebGL/FileSystem.meta +3 -0
- package/WebGL/Input/Input.cs +230 -0
- package/WebGL/Input/Input.cs.meta +3 -0
- package/WebGL/Input/TTPCInputHandler.cs +199 -0
- package/WebGL/Input/TTPCInputHandler.cs.meta +3 -0
- package/WebGL/Input.meta +3 -0
- package/WebGL/Network/TTUDPSocketHandler.cs +130 -0
- package/WebGL/Network/TTUDPSocketHandler.cs.meta +11 -0
- package/WebGL/Network.meta +3 -0
- package/WebGL/TTAssetBundle.jslib +33 -0
- package/WebGL/TTAssetBundle.jslib.meta +32 -0
- package/WebGL/TTCallbackHandler.cs +139 -0
- package/WebGL/TTCallbackHandler.cs.meta +3 -0
- package/WebGL/TTModel.cs +582 -0
- package/WebGL/TTModel.cs.meta +11 -0
- package/WebGL/TTSDK.jslib +592 -0
- package/WebGL/TTSDK.jslib.meta +32 -0
- package/WebGL/TTSDKType.cs +10 -0
- package/WebGL/TTSDKType.cs.meta +3 -0
- package/WebGL/TTStorageManager.cs +155 -0
- package/WebGL/TTStorageManager.cs.meta +11 -0
- package/WebGL/TTUNBridge.jslib +117 -0
- package/WebGL/TTUNBridge.jslib.meta +32 -0
- package/WebGL/TTVersionAttribute.cs +21 -0
- package/WebGL/TTVersionAttribute.cs.meta +11 -0
- package/WebGL/TTWebGL.asmdef +18 -0
- package/WebGL/TTWebGL.asmdef.meta +7 -0
- package/WebGL/TTWebGLInterface.cs +63 -0
- package/WebGL/TTWebGLInterface.cs.meta +11 -0
- package/WebGL.meta +8 -0
- package/package.json +13 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var __webpack_modules__={131:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(5258),i=n(4134),o=n(1055),a=n(4611),s=n(4432),u="files",c="basePath",l=new i.A("stark_webgl_db",u,1);function d(e){l.isOpen()?e(null):l.setup(e,function(e){var t,n=e.result,r=e.transaction;n.objectStoreNames.contains(u)?t=r.objectStore(u):(t=n.createObjectStore(u,{keyPath:"path"})).createIndex("basePath","basePath",{unique:!1}),t.clear()})}function f(e){a.a.CanUseLocalStorage()&&(0,s.Ko)()?e(!1):l.isOpen()?e(!0):d(function(t){e(!t)})}function h(e,t){f(function(n){n?l.read(e,t):t&&t("open indexed db failed",null)})}function p(e,t,n,r){n||(n={});var i={path:e,meta:n,data:t};n.index&&(i.basePath=n.index),f(function(e){e?l.write(null,i,r):r&&r("open indexed db failed")})}function m(e,t){l.delete(e,t)}function _(e){l.listFiles(e)}function y(e,t){g(e,0,0,t)}function g(e,t,n,r){t<e.length?m(e[t],function(i){i||(n+=1),g(e,t+1,n,r)}):r&&r(n)}const v={setup:d,close:function(){l.isOpen()&&l.close()},read:h,readAsync:function(e){return new Promise(function(t,n){h(e,function(e,n){t(e?null:n)})})},write:p,writeAsync:function(e,t,n){return new Promise(function(r){p(e,t,n,function(e){r(!e)})})},fileExists:function(e,t,n){h(e,function(e,r){var i;!e&&r&&r.data?n(!0,t===(null===(i=r.meta)||void 0===i?void 0:i.md5),r.data):n(!1,!1)})},listFiles:_,listFilesAsync:function(){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(e){return[2,new Promise(function(e){l.listFiles(function(t){e(t)})})]})})},listIndexedFiles:function(e){l.listIndexedFiles(c,e)},listIndexedFilesByPath:function(e,t){l.listIndexedFilesByPath(c,e,t)},deleteFile:m,deleteFiles:y,deleteFilesByIndex:function(e,t){l.deleteFilesByIndex(c,e,t)},deleteFilesAsync:function(e,t){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(t){return[2,new Promise(function(t){g(e,0,0,function(e){t(e)})})]})})},deleteAllStreamingAssetsFiles:function(e,t){var n=o.A.getStreamingAssetsBasePath(),r="";e&&(r=o.A.join(o.A.getGameDataBasePath(),e)),_(function(e){var i=new Array;e.forEach(function(e){(e.startsWith(n)||r.length>0&&e.startsWith(r))&&i.push(e)}),y(i,t)})}}},169:(e,t,n)=>{"use strict";n.d(t,{Gm:()=>s,jw:()=>a,pV:()=>o,qF:()=>u,tF:()=>i,xq:()=>c});var r=n(1138).Vy.getLogger("String");function i(e,t,n,r){if(!t)return 0;if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a);if(s<=127){if(n>=o)break;t[n++]=s}else if(s<=2047){if(n+1>=o)break;t[n++]=192|s>>6,t[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|63&s}else if(s<=2097151){if(n+3>=o)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}else if(s<=67108863){if(n+4>=o)break;t[n++]=248|s>>24,t[n++]=128|s>>18&63,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}else{if(n+5>=o)break;t[n++]=252|s>>30,t[n++]=128|s>>24&63,t[n++]=128|s>>18&63,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}}return t[n]=0,n-i}function o(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:r<=2097151?4:r<=67108863?5:6}return t}function a(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()==t.toLowerCase()}function s(e,t,n){var r=0;if(e!==t)for(var i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length),s=0;s<a;s++){var u=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(u>c){r=1;break}if(u<c){r=-1;break}}if(!n)return r;switch(n){case">":return r>0;case"<":return r<0;case"=":return 0===r;case">=":return r>=0;case"<=":return r<=0;default:return!1}}function u(e){if(!e)return{};if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e)}catch(t){e=(e=e.replace('"[{',"[{")).replace('}]"',"}]");try{return JSON.parse(e)}catch(e){r.error("parse json error:",JSON.stringify(e))}}else r.error("invalid type:",typeof e);return{}}function c(e){return"string"!=typeof e?e:globalThis.TextEncoder&&"function"==typeof globalThis.TextEncoder?(new globalThis.TextEncoder).encode(e):e}},257:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(9809),i=!1;function o(){return i&&(0,r.rZ)()||(0,r.VS)()}},421:(e,t,n)=>{t.UINT32=n(3144),t.UINT64=n(615)},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>i,e:()=>r});var r={USER_DATA_PATH:"ttfile://user",PACKAGE_DATA_PATH:"ttfile://user",TEMP_DATA_PATH:"ttfile://temp",TT_USER_DATA_PATH:"ttfile://user",SC_USER_DATA_PATH:"scfile://user",TT_FILE_SCHEME:"ttfile://",SC_FILE_SCHEME:"scfile://"};function i(){Object.assign(globalThis,{COMMON_DEF:r})}},559:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var r=n(4502);const i=function(){function e(e,t,n){const r=e.body?e.body.getReader():void 0,i=void 0!==e.headers.get("Content-Length"),o=function(e,t){if(!t)return 0;const n=e.headers.get("Content-Encoding"),r=parseInt(e.headers.get("Content-Length"));switch(n){case"br":return Math.round(5*r);case"gzip":return Math.round(4*r);default:return r}}(e,i),a=new Uint8Array(o),s=[];let u=0,c=0;return i||console.warn("[UnityCache] Response is served without Content-Length header. Please reconfigure server to include valid Content-Length for better download performance."),function l(){return void 0===r?e.arrayBuffer().then(function(r){const o=new Uint8Array(r);return t({type:"progress",response:e,total:r.length,loaded:0,lengthComputable:i,chunk:n?o:null}),o}):r.read().then(function(r){return r.done?function(){if(u===o)return a;if(u<o)return a.slice(0,u);const e=new Uint8Array(u);e.set(a,0);let t=c;for(let n=0;n<s.length;++n)e.set(s[n],t),t+=s[n].length;return e}():(u+r.value.length<=a.length?(a.set(r.value,u),c=u+r.value.length):s.push(r.value),u+=r.value.length,t({type:"progress",response:e,total:Math.max(o,u),loaded:u,lengthComputable:i,chunk:n?r.value:null}),l())})}().then(function(n){return t({type:"load",response:e,total:n.length,loaded:n.length,lengthComputable:i,chunk:null}),e.parsedBody=n,e})}return function(t,n){n&&(n.method&&("GET"===n.method.toUpperCase()||"HEAD"===n.method.toUpperCase())&&n.body&&(n.body=void 0),n.enableStreamingDownload=!1);let i=function(){};n&&n.onProgress&&(i=n.onProgress);let o=fetch;return"function"!=typeof o&&(o=r.wq),o(t,n).then(function(t){return e(t,i,n.enableStreamingDownload)})}}()},615:function(e,t){var n;!function(){var r={16:o(Math.pow(16,5)),10:o(Math.pow(10,5)),2:o(Math.pow(2,5))},i={16:o(16),10:o(10),2:o(2)};function o(e,t,n,r){return this instanceof o?(this.remainder=null,"string"==typeof e?u.call(this,e,t):void 0===t?s.call(this,e):void a.apply(this,arguments)):new o(e,t,n,r)}function a(e,t,n,r){return void 0===n?(this._a00=65535&e,this._a16=e>>>16,this._a32=65535&t,this._a48=t>>>16,this):(this._a00=0|e,this._a16=0|t,this._a32=0|n,this._a48=0|r,this)}function s(e){return this._a00=65535&e,this._a16=e>>>16,this._a32=0,this._a48=0,this}function u(e,t){t=t||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var n=r[t]||new o(Math.pow(t,5)),i=0,a=e.length;i<a;i+=5){var s=Math.min(5,a-i),u=parseInt(e.slice(i,i+s),t);this.multiply(s<5?new o(Math.pow(t,s)):n).add(new o(u))}return this}o.prototype.fromBits=a,o.prototype.fromNumber=s,o.prototype.fromString=u,o.prototype.toNumber=function(){return 65536*this._a16+this._a00},o.prototype.toString=function(e){var t=i[e=e||10]||new o(e);if(!this.gt(t))return this.toNumber().toString(e);for(var n=this.clone(),r=new Array(64),a=63;a>=0&&(n.div(t),r[a]=n.remainder.toNumber().toString(e),n.gt(t));a--);return r[a-1]=n.toNumber().toString(e),r.join("")},o.prototype.add=function(e){var t=this._a00+e._a00,n=t>>>16,r=(n+=this._a16+e._a16)>>>16,i=(r+=this._a32+e._a32)>>>16;return i+=this._a48+e._a48,this._a00=65535&t,this._a16=65535&n,this._a32=65535&r,this._a48=65535&i,this},o.prototype.subtract=function(e){return this.add(e.clone().negate())},o.prototype.multiply=function(e){var t=this._a00,n=this._a16,r=this._a32,i=this._a48,o=e._a00,a=e._a16,s=e._a32,u=t*o,c=u>>>16,l=(c+=t*a)>>>16;c&=65535,l+=(c+=n*o)>>>16;var d=(l+=t*s)>>>16;return l&=65535,d+=(l+=n*a)>>>16,l&=65535,d+=(l+=r*o)>>>16,d+=t*e._a48,d&=65535,d+=n*s,d&=65535,d+=r*a,d&=65535,d+=i*o,this._a00=65535&u,this._a16=65535&c,this._a32=65535&l,this._a48=65535&d,this},o.prototype.div=function(e){if(0==e._a16&&0==e._a32&&0==e._a48){if(0==e._a00)throw Error("division by zero");if(1==e._a00)return this.remainder=new o(0),this}if(e.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(e))return this.remainder=new o(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=48?this._a48|=1<<n-48:n>=32?this._a32|=1<<n-32:n>=16?this._a16|=1<<n-16:this._a00|=1<<n);return this},o.prototype.negate=function(){var e=1+(65535&~this._a00);return this._a00=65535&e,e=(65535&~this._a16)+(e>>>16),this._a16=65535&e,e=(65535&~this._a32)+(e>>>16),this._a32=65535&e,this._a48=~this._a48+(e>>>16)&65535,this},o.prototype.equals=o.prototype.eq=function(e){return this._a48==e._a48&&this._a00==e._a00&&this._a32==e._a32&&this._a16==e._a16},o.prototype.greaterThan=o.prototype.gt=function(e){return this._a48>e._a48||!(this._a48<e._a48)&&(this._a32>e._a32||!(this._a32<e._a32)&&(this._a16>e._a16||!(this._a16<e._a16)&&this._a00>e._a00))},o.prototype.lessThan=o.prototype.lt=function(e){return this._a48<e._a48||!(this._a48>e._a48)&&(this._a32<e._a32||!(this._a32>e._a32)&&(this._a16<e._a16||!(this._a16>e._a16)&&this._a00<e._a00))},o.prototype.or=function(e){return this._a00|=e._a00,this._a16|=e._a16,this._a32|=e._a32,this._a48|=e._a48,this},o.prototype.and=function(e){return this._a00&=e._a00,this._a16&=e._a16,this._a32&=e._a32,this._a48&=e._a48,this},o.prototype.xor=function(e){return this._a00^=e._a00,this._a16^=e._a16,this._a32^=e._a32,this._a48^=e._a48,this},o.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},o.prototype.shiftRight=o.prototype.shiftr=function(e){return(e%=64)>=48?(this._a00=this._a48>>e-48,this._a16=0,this._a32=0,this._a48=0):e>=32?(e-=32,this._a00=65535&(this._a32>>e|this._a48<<16-e),this._a16=this._a48>>e&65535,this._a32=0,this._a48=0):e>=16?(e-=16,this._a00=65535&(this._a16>>e|this._a32<<16-e),this._a16=65535&(this._a32>>e|this._a48<<16-e),this._a32=this._a48>>e&65535,this._a48=0):(this._a00=65535&(this._a00>>e|this._a16<<16-e),this._a16=65535&(this._a16>>e|this._a32<<16-e),this._a32=65535&(this._a32>>e|this._a48<<16-e),this._a48=this._a48>>e&65535),this},o.prototype.shiftLeft=o.prototype.shiftl=function(e,t){return(e%=64)>=48?(this._a48=this._a00<<e-48,this._a32=0,this._a16=0,this._a00=0):e>=32?(e-=32,this._a48=this._a16<<e|this._a00>>16-e,this._a32=this._a00<<e&65535,this._a16=0,this._a00=0):e>=16?(e-=16,this._a48=this._a32<<e|this._a16>>16-e,this._a32=65535&(this._a16<<e|this._a00>>16-e),this._a16=this._a00<<e&65535,this._a00=0):(this._a48=this._a48<<e|this._a32>>16-e,this._a32=65535&(this._a32<<e|this._a16>>16-e),this._a16=65535&(this._a16<<e|this._a00>>16-e),this._a00=this._a00<<e&65535),t||(this._a48&=65535),this},o.prototype.rotateLeft=o.prototype.rotl=function(e){if(0==(e%=64))return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,i=n<<e|r>>>32-e,o=r<<e|n>>>32-e;return this._a00=65535&o,this._a16=o>>>16,this._a32=65535&i,this._a48=i>>>16,this},o.prototype.rotateRight=o.prototype.rotr=function(e){if(0==(e%=64))return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,i=n>>>e|r<<32-e,o=r>>>e|n<<32-e;return this._a00=65535&o,this._a16=o>>>16,this._a32=65535&i,this._a48=i>>>16,this},o.prototype.clone=function(){return new o(this._a00,this._a16,this._a32,this._a48)},void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},745:(e,t,n)=>{var r;e.exports=function(){function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}return e}()({1:[function(e,t,r){"use strict";e("core-js/fn/array/includes"),e("core-js/fn/object/values");var i=e("domexception"),o=e("typeson"),a=e("typeson-registry/dist/presets/structured-cloning-throwing"),s="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:void 0!==n.g?n.g:Function("return this;")();s.DOMException||(s.DOMException=i);var u=(new o).register(a);function c(e){return u.revive(u.encapsulate(e))}t.exports=c},{"core-js/fn/array/includes":2,"core-js/fn/object/values":3,domexception:46,typeson:49,"typeson-registry/dist/presets/structured-cloning-throwing":48}],2:[function(e,t,n){"use strict";e("../../modules/es7.array.includes"),t.exports=e("../../modules/_core").Array.includes},{"../../modules/_core":9,"../../modules/es7.array.includes":41}],3:[function(e,t,n){"use strict";e("../../modules/es7.object.values"),t.exports=e("../../modules/_core").Object.values},{"../../modules/_core":9,"../../modules/es7.object.values":42}],4:[function(e,t,n){"use strict";t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],5:[function(e,t,n){"use strict";var r=e("./_wks")("unscopables"),i=Array.prototype;null==i[r]&&e("./_hide")(i,r,{}),t.exports=function(e){i[r][e]=!0}},{"./_hide":20,"./_wks":40}],6:[function(e,t,n){"use strict";var r=e("./_is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":23}],7:[function(e,t,n){"use strict";var r=e("./_to-iobject"),i=e("./_to-length"),o=e("./_to-absolute-index");t.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},{"./_to-absolute-index":34,"./_to-iobject":36,"./_to-length":37}],8:[function(e,t,n){"use strict";var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],9:[function(e,t,n){"use strict";var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},{}],10:[function(e,t,n){"use strict";var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":4}],11:[function(e,t,n){"use strict";t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],12:[function(e,t,n){"use strict";t.exports=!e("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":16}],13:[function(e,t,n){"use strict";var r=e("./_is-object"),i=e("./_global").document,o=r(i)&&r(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}},{"./_global":18,"./_is-object":23}],14:[function(e,t,n){"use strict";t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],15:[function(e,t,n){"use strict";var r=e("./_global"),i=e("./_core"),o=e("./_hide"),a=e("./_redefine"),s=e("./_ctx"),u="prototype",c=function e(t,n,c){var l,d,f,h,p=t&e.F,m=t&e.G,_=t&e.P,y=t&e.B,g=m?r:t&e.S?r[n]||(r[n]={}):(r[n]||{})[u],v=m?i:i[n]||(i[n]={}),b=v[u]||(v[u]={});for(l in m&&(c=n),c)f=((d=!p&&g&&void 0!==g[l])?g:c)[l],h=y&&d?s(f,r):_&&"function"==typeof f?s(Function.call,f):f,g&&a(g,l,f,t&e.U),v[l]!=f&&o(v,l,h),_&&b[l]!=f&&(b[l]=f)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},{"./_core":9,"./_ctx":10,"./_global":18,"./_hide":20,"./_redefine":31}],16:[function(e,t,n){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],17:[function(e,t,n){"use strict";t.exports=e("./_shared")("native-function-to-string",Function.toString)},{"./_shared":33}],18:[function(e,t,n){"use strict";var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],19:[function(e,t,n){"use strict";var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],20:[function(e,t,n){"use strict";var r=e("./_object-dp"),i=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":12,"./_object-dp":25,"./_property-desc":30}],21:[function(e,t,n){"use strict";t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":12,"./_dom-create":13,"./_fails":16}],22:[function(e,t,n){"use strict";var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":8}],23:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.exports=function(e){return"object"===(void 0===e?"undefined":r(e))?null!==e:"function"==typeof e}},{}],24:[function(e,t,n){"use strict";t.exports=!1},{}],25:[function(e,t,n){"use strict";var r=e("./_an-object"),i=e("./_ie8-dom-define"),o=e("./_to-primitive"),a=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":6,"./_descriptors":12,"./_ie8-dom-define":21,"./_to-primitive":38}],26:[function(e,t,n){"use strict";var r=e("./_has"),i=e("./_to-iobject"),o=e("./_array-includes")(!1),a=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},{"./_array-includes":7,"./_has":19,"./_shared-key":32,"./_to-iobject":36}],27:[function(e,t,n){"use strict";var r=e("./_object-keys-internal"),i=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,i)}},{"./_enum-bug-keys":14,"./_object-keys-internal":26}],28:[function(e,t,n){"use strict";n.f={}.propertyIsEnumerable},{}],29:[function(e,t,n){"use strict";var r=e("./_descriptors"),i=e("./_object-keys"),o=e("./_to-iobject"),a=e("./_object-pie").f;t.exports=function(e){return function(t){for(var n,s=o(t),u=i(s),c=u.length,l=0,d=[];c>l;)n=u[l++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},{"./_descriptors":12,"./_object-keys":27,"./_object-pie":28,"./_to-iobject":36}],30:[function(e,t,n){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],31:[function(e,t,n){"use strict";var r=e("./_global"),i=e("./_hide"),o=e("./_has"),a=e("./_uid")("src"),s=e("./_function-to-string"),u="toString",c=(""+s).split(u);e("./_core").inspectSource=function(e){return s.call(e)},(t.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[a]||s.call(this)})},{"./_core":9,"./_function-to-string":17,"./_global":18,"./_has":19,"./_hide":20,"./_uid":39}],32:[function(e,t,n){"use strict";var r=e("./_shared")("keys"),i=e("./_uid");t.exports=function(e){return r[e]||(r[e]=i(e))}},{"./_shared":33,"./_uid":39}],33:[function(e,t,n){"use strict";var r=e("./_core"),i=e("./_global"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e("./_library")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"./_core":9,"./_global":18,"./_library":24}],34:[function(e,t,n){"use strict";var r=e("./_to-integer"),i=Math.max,o=Math.min;t.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},{"./_to-integer":35}],35:[function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?i:r)(e)}},{}],36:[function(e,t,n){"use strict";var r=e("./_iobject"),i=e("./_defined");t.exports=function(e){return r(i(e))}},{"./_defined":11,"./_iobject":22}],37:[function(e,t,n){"use strict";var r=e("./_to-integer"),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"./_to-integer":35}],38:[function(e,t,n){"use strict";var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":23}],39:[function(e,t,n){"use strict";var r=0,i=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+i).toString(36))}},{}],40:[function(e,t,n){"use strict";var r=e("./_shared")("wks"),i=e("./_uid"),o=e("./_global").Symbol,a="function"==typeof o;(t.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},{"./_global":18,"./_shared":33,"./_uid":39}],41:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_array-includes")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),e("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":5,"./_array-includes":7,"./_export":15}],42:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_object-to-array")(!1);r(r.S,"Object",{values:function(e){return i(e)}})},{"./_export":15,"./_object-to-array":29}],43:[function(e,t,n){"use strict";var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=e("./legacy-error-codes.json"),s=e("./utils.js");n.implementation=function(){function e(t){var n=r(t,2),i=n[0],a=n[1];o(this,e),this.name=a,this.message=i}return i(e,[{key:"code",get:function(){return a[this.name]||0}}]),e}(),n.init=function(e){if(Error.captureStackTrace){var t=s.wrapperForImpl(e);Error.captureStackTrace(t,t.constructor)}}},{"./legacy-error-codes.json":45,"./utils.js":47}],44:[function(e,t,n){"use strict";var r=e("webidl-conversions"),i=e("./utils.js"),o=i.implSymbol;function a(){for(var e=[],t=0;t<arguments.length&&t<2;++t)e[t]=arguments[t];void 0!==e[0]?e[0]=r.DOMString(e[0],{context:"Failed to construct 'DOMException': parameter 1"}):e[0]="",void 0!==e[1]?e[1]=r.DOMString(e[1],{context:"Failed to construct 'DOMException': parameter 2"}):e[1]="Error",s.setup(this,e)}Object.defineProperty(a,"prototype",{value:a.prototype,writable:!1,enumerable:!1,configurable:!1}),Object.defineProperty(a.prototype,"name",{get:function(){return this[o].name},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"message",{get:function(){return this[o].message},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"code",{get:function(){return this[o].code},enumerable:!0,configurable:!0}),Object.defineProperty(a,"INDEX_SIZE_ERR",{value:1,enumerable:!0}),Object.defineProperty(a.prototype,"INDEX_SIZE_ERR",{value:1,enumerable:!0}),Object.defineProperty(a,"DOMSTRING_SIZE_ERR",{value:2,enumerable:!0}),Object.defineProperty(a.prototype,"DOMSTRING_SIZE_ERR",{value:2,enumerable:!0}),Object.defineProperty(a,"HIERARCHY_REQUEST_ERR",{value:3,enumerable:!0}),Object.defineProperty(a.prototype,"HIERARCHY_REQUEST_ERR",{value:3,enumerable:!0}),Object.defineProperty(a,"WRONG_DOCUMENT_ERR",{value:4,enumerable:!0}),Object.defineProperty(a.prototype,"WRONG_DOCUMENT_ERR",{value:4,enumerable:!0}),Object.defineProperty(a,"INVALID_CHARACTER_ERR",{value:5,enumerable:!0}),Object.defineProperty(a.prototype,"INVALID_CHARACTER_ERR",{value:5,enumerable:!0}),Object.defineProperty(a,"NO_DATA_ALLOWED_ERR",{value:6,enumerable:!0}),Object.defineProperty(a.prototype,"NO_DATA_ALLOWED_ERR",{value:6,enumerable:!0}),Object.defineProperty(a,"NO_MODIFICATION_ALLOWED_ERR",{value:7,enumerable:!0}),Object.defineProperty(a.prototype,"NO_MODIFICATION_ALLOWED_ERR",{value:7,enumerable:!0}),Object.defineProperty(a,"NOT_FOUND_ERR",{value:8,enumerable:!0}),Object.defineProperty(a.prototype,"NOT_FOUND_ERR",{value:8,enumerable:!0}),Object.defineProperty(a,"NOT_SUPPORTED_ERR",{value:9,enumerable:!0}),Object.defineProperty(a.prototype,"NOT_SUPPORTED_ERR",{value:9,enumerable:!0}),Object.defineProperty(a,"INUSE_ATTRIBUTE_ERR",{value:10,enumerable:!0}),Object.defineProperty(a.prototype,"INUSE_ATTRIBUTE_ERR",{value:10,enumerable:!0}),Object.defineProperty(a,"INVALID_STATE_ERR",{value:11,enumerable:!0}),Object.defineProperty(a.prototype,"INVALID_STATE_ERR",{value:11,enumerable:!0}),Object.defineProperty(a,"SYNTAX_ERR",{value:12,enumerable:!0}),Object.defineProperty(a.prototype,"SYNTAX_ERR",{value:12,enumerable:!0}),Object.defineProperty(a,"INVALID_MODIFICATION_ERR",{value:13,enumerable:!0}),Object.defineProperty(a.prototype,"INVALID_MODIFICATION_ERR",{value:13,enumerable:!0}),Object.defineProperty(a,"NAMESPACE_ERR",{value:14,enumerable:!0}),Object.defineProperty(a.prototype,"NAMESPACE_ERR",{value:14,enumerable:!0}),Object.defineProperty(a,"INVALID_ACCESS_ERR",{value:15,enumerable:!0}),Object.defineProperty(a.prototype,"INVALID_ACCESS_ERR",{value:15,enumerable:!0}),Object.defineProperty(a,"VALIDATION_ERR",{value:16,enumerable:!0}),Object.defineProperty(a.prototype,"VALIDATION_ERR",{value:16,enumerable:!0}),Object.defineProperty(a,"TYPE_MISMATCH_ERR",{value:17,enumerable:!0}),Object.defineProperty(a.prototype,"TYPE_MISMATCH_ERR",{value:17,enumerable:!0}),Object.defineProperty(a,"SECURITY_ERR",{value:18,enumerable:!0}),Object.defineProperty(a.prototype,"SECURITY_ERR",{value:18,enumerable:!0}),Object.defineProperty(a,"NETWORK_ERR",{value:19,enumerable:!0}),Object.defineProperty(a.prototype,"NETWORK_ERR",{value:19,enumerable:!0}),Object.defineProperty(a,"ABORT_ERR",{value:20,enumerable:!0}),Object.defineProperty(a.prototype,"ABORT_ERR",{value:20,enumerable:!0}),Object.defineProperty(a,"URL_MISMATCH_ERR",{value:21,enumerable:!0}),Object.defineProperty(a.prototype,"URL_MISMATCH_ERR",{value:21,enumerable:!0}),Object.defineProperty(a,"QUOTA_EXCEEDED_ERR",{value:22,enumerable:!0}),Object.defineProperty(a.prototype,"QUOTA_EXCEEDED_ERR",{value:22,enumerable:!0}),Object.defineProperty(a,"TIMEOUT_ERR",{value:23,enumerable:!0}),Object.defineProperty(a.prototype,"TIMEOUT_ERR",{value:23,enumerable:!0}),Object.defineProperty(a,"INVALID_NODE_TYPE_ERR",{value:24,enumerable:!0}),Object.defineProperty(a.prototype,"INVALID_NODE_TYPE_ERR",{value:24,enumerable:!0}),Object.defineProperty(a,"DATA_CLONE_ERR",{value:25,enumerable:!0}),Object.defineProperty(a.prototype,"DATA_CLONE_ERR",{value:25,enumerable:!0}),Object.defineProperty(a.prototype,Symbol.toStringTag,{value:"DOMException",writable:!1,enumerable:!1,configurable:!0});var s={mixedInto:[],is:function(e){if(e){if(e[o]instanceof u.implementation)return!0;for(var n=0;n<t.exports.mixedInto.length;++n)if(e instanceof t.exports.mixedInto[n])return!0}return!1},isImpl:function(e){if(e){if(e instanceof u.implementation)return!0;for(var n=i.wrapperForImpl(e),r=0;r<t.exports.mixedInto.length;++r)if(n instanceof t.exports.mixedInto[r])return!0}return!1},convert:function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).context,r=void 0===n?"The provided value":n;if(t.exports.is(e))return i.implForWrapper(e);throw new TypeError(r+" is not of type 'DOMException'.")},create:function(e,t){var n=Object.create(a.prototype);return this.setup(n,e,t),n},createImpl:function(e,t){var n=Object.create(a.prototype);return this.setup(n,e,t),i.implForWrapper(n)},_internalSetup:function(e){},setup:function(e,t,n){n||(n={}),n.wrapper=e,this._internalSetup(e),Object.defineProperty(e,o,{value:new u.implementation(t,n),writable:!1,enumerable:!1,configurable:!0}),e[o][i.wrapperSymbol]=e,u.init&&u.init(e[o],n)},interface:a,expose:{Window:{DOMException:a},Worker:{DOMException:a}}};t.exports=s;var u=e(".//DOMException-impl.js")},{".//DOMException-impl.js":43,"./utils.js":47,"webidl-conversions":50}],45:[function(e,t,n){t.exports={IndexSizeError:1,DOMStringSizeError:2,HierarchyRequestError:3,WrongDocumentError:4,InvalidCharacterError:5,NoDataAllowedError:6,NoModificationAllowedError:7,NotFoundError:8,NotSupportedError:9,InUseAttributeError:10,InvalidStateError:11,SyntaxError:12,InvalidModificationError:13,NamespaceError:14,InvalidAccessError:15,ValidationError:16,TypeMismatchError:17,SecurityError:18,NetworkError:19,AbortError:20,URLMismatchError:21,QuotaExceededError:22,TimeoutError:23,InvalidNodeTypeError:24,DataCloneError:25}},{}],46:[function(e,t,n){"use strict";t.exports=e("./DOMException").interface,Object.setPrototypeOf(t.exports.prototype,Error.prototype)},{"./DOMException":44}],47:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e||"function"==typeof e}function o(e){return Object.getPrototypeOf(e)===Buffer.prototype?e:e instanceof ArrayBuffer?Buffer.from(e):Buffer.from(e.buffer,e.byteOffset,e.byteLength)}function a(e){return Buffer.from(o(e))}function s(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;++r)n[r]in e||Object.defineProperty(e,n[r],Object.getOwnPropertyDescriptor(t,n[r]))}var u=Symbol("wrapper"),c=Symbol("impl"),l=Symbol("SameObject caches");function d(e,t,n){return e[l]||(e[l]=Object.create(null)),t in e[l]||(e[l][t]=n()),e[l][t]}function f(e){return e?e[u]:null}function h(e){return e?e[c]:null}function p(e){var t=f(e);return t||e}function m(e){var t=h(e);return t||e}var _=Symbol("internal"),y=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));t.exports={isObject:i,getReferenceToBytes:o,getCopyToBytes:a,mixin:s,wrapperSymbol:u,implSymbol:c,getSameObject:d,wrapperForImpl:f,implForWrapper:h,tryWrapperForImpl:p,tryImplForWrapper:m,iterInternalSymbol:_,IteratorPrototype:y}},{}],48:[function(e,t,i){"use strict";var o,a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o=void 0,a=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":s(e)})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){return(c="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":s(e)})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v=function e(t){l(this,e),this.p=new Promise(t)};v.__typeson__type__="TypesonPromise","undefined"!=typeof Symbol&&(v.prototype[Symbol.toStringTag]="TypesonPromise"),v.prototype.then=function(e,t){var n=this;return new v(function(r,i){n.p.then(function(t){r(e?e(t):t)}).catch(function(e){return t?t(e):Promise.reject(e)}).then(r,i)})},v.prototype.catch=function(e){return this.then(null,e)},v.resolve=function(e){return new v(function(t){t(e)})},v.reject=function(e){return new v(function(t,n){n(e)})},["all","race"].forEach(function(e){v[e]=function(t){return new v(function(n,r){Promise[e](t.map(function(e){return e&&e.constructor&&"TypesonPromise"===e.constructor.__typeson__type__?e.p:e})).then(n,r)})}});var b={}.toString,E={}.hasOwnProperty,S=Object.getPrototypeOf,A=E.toString;function C(e,t){return O(e)&&"function"==typeof e.then&&(!t||"function"==typeof e.catch)}function w(e){return b.call(e).slice(8,-1)}function T(e,t){if(!e||"object"!==c(e))return!1;var n=S(e);if(!n)return null===t;var r=E.call(n,"constructor")&&n.constructor;return"function"!=typeof r?null===t:t===r||null!==t&&A.call(r)===A.call(t)||"function"==typeof t&&"string"==typeof r.__typeson__type__&&r.__typeson__type__===t.__typeson__type__}function R(e){return!(!e||"Object"!==w(e))&&(!S(e)||T(e,Object))}function O(e){return e&&"object"===c(e)}function I(e){return e.replace(/~/g,"~0").replace(/\./g,"~1")}function P(e){return e.replace(/~1/g,".").replace(/~0/g,"~")}function D(e,t){if(""===t)return e;var n=t.indexOf(".");if(n>-1){var r=e[P(t.slice(0,n))];return void 0===r?void 0:D(r,t.slice(n+1))}return e[P(t)]}function k(e,t,n){if(""===t)return n;var r=t.indexOf(".");return r>-1?k(e[P(t.slice(0,r))],t.slice(r+1),n):(e[P(t)]=n,e)}function M(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var F=Object.keys,x=Array.isArray,L={}.hasOwnProperty,N=["type","replaced","iterateIn","iterateUnsetNumeric"];function B(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}function U(e,t){if(""===e.keypath)return-1;var n=e.keypath.match(/\./g)||0,r=t.keypath.match(/\./g)||0;return n&&(n=n.length),r&&(r=r.length),n>r?-1:n<r?1:e.keypath<t.keypath?-1:e.keypath>t.keypath}var j=function(){function e(t){l(this,e),this.options=t,this.plainObjectReplacers=[],this.nonplainObjectReplacers=[],this.revivers={},this.types={}}return function(e,t,n){t&&d(e.prototype,t),n&&d(e,n)}(e,[{key:"stringify",value:function(e,t,n,r){r=p(p(p({},this.options),r),{},{stringification:!0});var i=this.encapsulate(e,null,r);return x(i)?JSON.stringify(i[0],t,n):i.then(function(e){return JSON.stringify(e,t,n)})}},{key:"stringifySync",value:function(e,t,n,r){return this.stringify(e,t,n,p(p({throwOnBadSyncType:!0},r),{},{sync:!0}))}},{key:"stringifyAsync",value:function(e,t,n,r){return this.stringify(e,t,n,p(p({throwOnBadSyncType:!0},r),{},{sync:!1}))}},{key:"parse",value:function(e,t,n){return n=p(p(p({},this.options),n),{},{parse:!0}),this.revive(JSON.parse(e,t),n)}},{key:"parseSync",value:function(e,t,n){return this.parse(e,t,p(p({throwOnBadSyncType:!0},n),{},{sync:!0}))}},{key:"parseAsync",value:function(e,t,n){return this.parse(e,t,p(p({throwOnBadSyncType:!0},n),{},{sync:!1}))}},{key:"specialTypeNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.returnTypeNames=!0,this.encapsulate(e,t,n)}},{key:"rootTypeName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.iterateNone=!0,this.encapsulate(e,t,n)}},{key:"encapsulate",value:function(t,n,r){var i=B(function(e,t){return M(Promise.all(t.map(function(e){return e[1].p})),function(n){return M(Promise.all(n.map(B(function(n){var r=!1,o=[],a=m(t.splice(0,1),1),s=m(a[0],7),u=s[0],c=s[2],l=s[3],d=s[4],f=s[5],h=s[6],p=E(u,n,c,l,o,!0,h),_=T(p,v);return function(e,t){var n=e();return n&&n.then?n.then(t):t(n)}(function(){if(u&&_)return M(p.p,function(t){return d[f]=t,r=!0,i(e,o)})},function(t){return r?t:(u?d[f]=p:e=_?p.p:p,i(e,o))})}))),function(){return e})})}),o=(r=p(p({sync:!0},this.options),r)).sync,a=this,s={},u=[],l=[],d=[],f=!("cyclic"in r)||r.cyclic,h=r.encapsulateObserver,y=E("",t,f,n||{},d);function g(t){var n=Object.values(s);if(r.iterateNone)return n.length?n[0]:e.getJSONType(t);if(n.length){if(r.returnTypeNames)return _(new Set(n));t&&R(t)&&!L.call(t,"$types")?t.$types=s:t={$:t,$types:{$:s}}}else O(t)&&L.call(t,"$types")&&(t={$:t,$types:!0});return!r.returnTypeNames&&t}function b(e,t,n){Object.assign(e,t);var r=N.map(function(t){var n=e[t];return delete e[t],n});n(),N.forEach(function(t,n){e[t]=r[n]})}function E(t,n,i,o,d,f,p){var m,_={},y=c(n),g=h?function(r){var a=p||o.type||e.getJSONType(n);h(Object.assign(r||_,{keypath:t,value:n,cyclic:i,stateObj:o,promisesData:d,resolvingTypesonPromise:f,awaitingTypesonPromise:T(n,v)},{type:a}))}:null;if(["string","boolean","number","undefined"].includes(y))return void 0===n||Number.isNaN(n)||n===Number.NEGATIVE_INFINITY||n===Number.POSITIVE_INFINITY?(m=o.replaced?n:S(t,n,o,d,!1,f,g))!==n&&(_={replaced:m}):m=n,g&&g(),m;if(null===n)return g&&g(),n;if(i&&!o.iterateIn&&!o.iterateUnsetNumeric&&n&&"object"===c(n)){var A=u.indexOf(n);if(!(A<0))return s[t]="#",g&&g({cyclicKeypath:l[A]}),"#"+l[A];!0===i&&(u.push(n),l.push(t))}var C,w=R(n),O=x(n),P=(w||O)&&(!a.plainObjectReplacers.length||o.replaced)||o.iterateIn?n:S(t,n,o,d,w||O,null,g);if(P!==n?(m=P,_={replaced:P}):""===t&&T(n,v)?(d.push([t,n,i,o,void 0,void 0,o.type]),m=n):O&&"object"!==o.iterateIn||"array"===o.iterateIn?(C=new Array(n.length),_={clone:C}):(["function","symbol"].includes(c(n))||"toJSON"in n||T(n,v)||T(n,Promise)||T(n,ArrayBuffer))&&!w&&"object"!==o.iterateIn?m=n:(C={},o.addLength&&(C.length=n.length),_={clone:C}),g&&g(),r.iterateNone)return C||m;if(!C)return m;if(o.iterateIn){var D=function(e){var r={ownKeys:L.call(n,e)};b(o,r,function(){var r=t+(t?".":"")+I(e),a=E(r,n[e],Boolean(i),o,d,f);T(a,v)?d.push([r,a,Boolean(i),o,C,e,o.type]):void 0!==a&&(C[e]=a)})};for(var k in n)D(k);g&&g({endIterateIn:!0,end:!0})}else F(n).forEach(function(e){var r=t+(t?".":"")+I(e);b(o,{ownKeys:!0},function(){var t=E(r,n[e],Boolean(i),o,d,f);T(t,v)?d.push([r,t,Boolean(i),o,C,e,o.type]):void 0!==t&&(C[e]=t)})}),g&&g({endIterateOwn:!0,end:!0});if(o.iterateUnsetNumeric){for(var M=n.length,N=function(e){if(!(e in n)){var r=t+(t?".":"")+e;b(o,{ownKeys:!1},function(){var t=E(r,void 0,Boolean(i),o,d,f);T(t,v)?d.push([r,t,Boolean(i),o,C,e,o.type]):void 0!==t&&(C[e]=t)})}},B=0;B<M;B++)N(B);g&&g({endIterateUnsetNumeric:!0,end:!0})}return C}function S(e,t,n,r,i,u,c){for(var l=i?a.plainObjectReplacers:a.nonplainObjectReplacers,d=l.length;d--;){var h=l[d];if(h.test(t,n)){var p=h.type;if(a.revivers[p]){var m=s[e];s[e]=m?[p].concat(m):p}return Object.assign(n,{type:p,replaced:!0}),!o&&h.replaceAsync||h.replace?(c&&c({replacing:!0}),E(e,h[o||!h.replaceAsync?"replace":"replaceAsync"](t,n),f&&"readonly",n,r,u,p)):(c&&c({typeDetected:!0}),E(e,t,f&&"readonly",n,r,u,p))}}return t}return d.length?o&&r.throwOnBadSyncType?function(){throw new TypeError("Sync method requested but async result obtained")}():Promise.resolve(i(y,d)).then(g):!o&&r.throwOnBadSyncType?function(){throw new TypeError("Async method requested but sync result obtained")}():r.stringification&&o?[g(y)]:o?g(y):Promise.resolve(g(y))}},{key:"encapsulateSync",value:function(e,t,n){return this.encapsulate(e,t,p(p({throwOnBadSyncType:!0},n),{},{sync:!0}))}},{key:"encapsulateAsync",value:function(e,t,n){return this.encapsulate(e,t,p(p({throwOnBadSyncType:!0},n),{},{sync:!1}))}},{key:"revive",value:function(e,t){var n=e&&e.$types;if(!n)return e;if(!0===n)return e.$;var r=(t=p(p({sync:!0},this.options),t)).sync,i=[],o={},a=!0;n.$&&R(n.$)&&(e=e.$,n=n.$,a=!1);var s=this;function u(e,t){var n=m(s.revivers[e]||[],1)[0];if(!n)throw new Error("Unregistered type: "+e);return r&&!("revive"in n)?t:n[r&&n.revive?"revive":!r&&n.reviveAsync?"reviveAsync":"revive"](t,o)}var c=[];function l(e){return T(e,V)?void 0:e}var d,f=function(){var t=[];if(Object.entries(n).forEach(function(e){var r=m(e,2),i=r[0],o=r[1];"#"!==o&&[].concat(o).forEach(function(e){m(s.revivers[e]||[null,{}],2)[1].plain&&(t.push({keypath:i,type:e}),delete n[i])})}),t.length)return t.sort(U).reduce(function t(n,r){var i=r.keypath,o=r.type;if(C(n))return n.then(function(e){return t(e,{keypath:i,type:o})});var a=D(e,i);if(T(a=u(o,a),v))return a.then(function(t){var n=k(e,i,t);n===t&&(e=n)});var s=k(e,i,a);s===a&&(e=s)},void 0)}();return T(f,v)?d=f.then(function(){return e}):(d=function e(t,r,o,s,l){if(!a||"$types"!==t){var d=n[t],f=x(r);if(f||R(r)){var h=f?new Array(r.length):{};for(F(r).forEach(function(n){var i=e(t+(t?".":"")+I(n),r[n],o||h,h,n),a=function(e){return T(e,V)?h[n]=void 0:void 0!==e&&(h[n]=e),e};T(i,v)?c.push(i.then(function(e){return a(e)})):a(i)}),r=h;i.length;){var p=m(i[0],4),_=p[0],y=p[1],g=p[2],b=p[3],E=D(_,y);if(void 0===E)break;g[b]=E,i.splice(0,1)}}if(!d)return r;if("#"===d){var S=D(o,r.slice(1));return void 0===S&&i.push([o,r.slice(1),s,l]),S}return[].concat(d).reduce(function e(t,n){return T(t,v)?t.then(function(t){return e(t,n)}):u(n,t)},r)}}("",e,null),c.length&&(d=v.resolve(d).then(function(e){return v.all([e].concat(c))}).then(function(e){return m(e,1)[0]}))),C(d)?r&&t.throwOnBadSyncType?function(){throw new TypeError("Sync method requested but async result obtained")}():T(d,v)?d.p.then(l):d:!r&&t.throwOnBadSyncType?function(){throw new TypeError("Async method requested but sync result obtained")}():r?l(d):Promise.resolve(l(d))}},{key:"reviveSync",value:function(e,t){return this.revive(e,p(p({throwOnBadSyncType:!0},t),{},{sync:!0}))}},{key:"reviveAsync",value:function(e,t){return this.revive(e,p(p({throwOnBadSyncType:!0},t),{},{sync:!1}))}},{key:"register",value:function(t,n){return n=n||{},[].concat(t).forEach(function t(r){var i=this;if(x(r))return r.map(function(e){return t.call(i,e)});r&&F(r).forEach(function(t){if("#"===t)throw new TypeError("# cannot be used as a type name as it is reserved for cyclic objects");if(e.JSON_TYPES.includes(t))throw new TypeError("Plain JSON object types are reserved as type names");var i=r[t],o=i&&i.testPlainObjects?this.plainObjectReplacers:this.nonplainObjectReplacers,a=o.filter(function(e){return e.type===t});if(a.length&&(o.splice(o.indexOf(a[0]),1),delete this.revivers[t],delete this.types[t]),"function"==typeof i){var s=i;i={test:function(e){return e&&e.constructor===s},replace:function(e){return p({},e)},revive:function(e){return Object.assign(Object.create(s.prototype),e)}}}else if(x(i)){var u=m(i,3);i={test:u[0],replace:u[1],revive:u[2]}}if(i&&i.test){var c={type:t,test:i.test.bind(i)};i.replace&&(c.replace=i.replace.bind(i)),i.replaceAsync&&(c.replaceAsync=i.replaceAsync.bind(i));var l="number"==typeof n.fallback?n.fallback:n.fallback?0:Number.POSITIVE_INFINITY;if(i.testPlainObjects?this.plainObjectReplacers.splice(l,0,c):this.nonplainObjectReplacers.splice(l,0,c),i.revive||i.reviveAsync){var d={};i.revive&&(d.revive=i.revive.bind(i)),i.reviveAsync&&(d.reviveAsync=i.reviveAsync.bind(i)),this.revivers[t]=[d,{plain:i.testPlainObjects}]}this.types[t]=i}},this)},this),this}}]),e}(),V=function e(){l(this,e)};V.__typeson__type__="TypesonUndefined",j.Undefined=V,j.Promise=v,j.isThenable=C,j.toStringTag=w,j.hasConstructorOf=T,j.isObject=O,j.isPlainObject=R,j.isUserObject=function e(t){if(!t||"Object"!==w(t))return!1;var n=S(t);return!n||T(t,Object)||e(n)},j.escapeKeyPathComponent=I,j.unescapeKeyPathComponent=P,j.getByKeyPath=D,j.getJSONType=function(e){return null===e?"null":Array.isArray(e)?"array":c(e)},j.JSON_TYPES=["null","boolean","number","string","array","object"];for(var H={userObject:{test:function(e,t){return j.isUserObject(e)},replace:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)},revive:function(e){return e}}},W=[{arrayNonindexKeys:{testPlainObjects:!0,test:function(e,t){return!!Array.isArray(e)&&(Object.keys(e).some(function(e){return String(Number.parseInt(e))!==e})&&(t.iterateIn="object",t.addLength=!0),!0)},replace:function(e,t){return t.iterateUnsetNumeric=!0,e},revive:function(e){if(Array.isArray(e))return e;var t=[];return Object.keys(e).forEach(function(n){var r=e[n];t[n]=r}),t}}},{sparseUndefined:{test:function(e,t){return void 0===e&&!1===t.ownKeys},replace:function(e){return 0},revive:function(e){}}}],q={undef:{test:function(e,t){return void 0===e&&(t.ownKeys||!("ownKeys"in t))},replace:function(e){return 0},revive:function(e){return new j.Undefined}}},G={StringObject:{test:function(t){return"String"===j.toStringTag(t)&&"object"===e(t)},replace:function(e){return String(e)},revive:function(e){return new String(e)}},BooleanObject:{test:function(t){return"Boolean"===j.toStringTag(t)&&"object"===e(t)},replace:function(e){return Boolean(e)},revive:function(e){return new Boolean(e)}},NumberObject:{test:function(t){return"Number"===j.toStringTag(t)&&"object"===e(t)},replace:function(e){return Number(e)},revive:function(e){return new Number(e)}}},K=[{nan:{test:function(e){return Number.isNaN(e)},replace:function(e){return"NaN"},revive:function(e){return Number.NaN}}},{infinity:{test:function(e){return e===Number.POSITIVE_INFINITY},replace:function(e){return"Infinity"},revive:function(e){return Number.POSITIVE_INFINITY}}},{negativeInfinity:{test:function(e){return e===Number.NEGATIVE_INFINITY},replace:function(e){return"-Infinity"},revive:function(e){return Number.NEGATIVE_INFINITY}}}],J={date:{test:function(e){return"Date"===j.toStringTag(e)},replace:function(e){var t=e.getTime();return Number.isNaN(t)?"NaN":t},revive:function(e){return"NaN"===e?new Date(Number.NaN):new Date(e)}}},X={regexp:{test:function(e){return"RegExp"===j.toStringTag(e)},replace:function(e){return{source:e.source,flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")}},revive:function(e){var t=e.source,n=e.flags;return new RegExp(t,n)}}},z={map:{test:function(e){return"Map"===j.toStringTag(e)},replace:function(e){return a(e.entries())},revive:function(e){return new Map(e)}}},Y={set:{test:function(e){return"Set"===j.toStringTag(e)},replace:function(e){return a(e.values())},revive:function(e){return new Set(e)}}},Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q=new Uint8Array(256),$=0;$<Z.length;$++)Q[Z.charCodeAt($)]=$;var ee=function(e,t,n){null==n&&(n=e.byteLength);for(var r=new Uint8Array(e,t||0,n),i=r.length,o="",a=0;a<i;a+=3)o+=Z[r[a]>>2],o+=Z[(3&r[a])<<4|r[a+1]>>4],o+=Z[(15&r[a+1])<<2|r[a+2]>>6],o+=Z[63&r[a+2]];return i%3==2?o=o.slice(0,-1)+"=":i%3==1&&(o=o.slice(0,-2)+"=="),o},te=function(e){var t,n,r,i,o=e.length,a=.75*e.length,s=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);for(var u=new ArrayBuffer(a),c=new Uint8Array(u),l=0;l<o;l+=4)t=Q[e.charCodeAt(l)],n=Q[e.charCodeAt(l+1)],r=Q[e.charCodeAt(l+2)],i=Q[e.charCodeAt(l+3)],c[s++]=t<<2|n>>4,c[s++]=(15&n)<<4|r>>2,c[s++]=(3&r)<<6|63&i;return u},ne={arraybuffer:{test:function(e){return"ArrayBuffer"===j.toStringTag(e)},replace:function(e,t){t.buffers||(t.buffers=[]);var n=t.buffers.indexOf(e);return n>-1?{index:n}:(t.buffers.push(e),ee(e))},revive:function(t,n){if(n.buffers||(n.buffers=[]),"object"===e(t))return n.buffers[t.index];var r=te(t);return n.buffers.push(r),r}}},re="undefined"==typeof self?n.g:self,ie={};["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(e){var t=e,n=re[t];n&&(ie[e.toLowerCase()]={test:function(e){return j.toStringTag(e)===t},replace:function(e,t){var n=e.buffer,r=e.byteOffset,i=e.length;t.buffers||(t.buffers=[]);var o=t.buffers.indexOf(n);return o>-1?{index:o,byteOffset:r,length:i}:(t.buffers.push(n),{encoded:ee(n),byteOffset:r,length:i})},revive:function(e,t){t.buffers||(t.buffers=[]);var r,i=e.byteOffset,o=e.length,a=e.encoded,s=e.index;return"index"in e?r=t.buffers[s]:(r=te(a),t.buffers.push(r)),new n(r,i,o)}})});var oe={dataview:{test:function(e){return"DataView"===j.toStringTag(e)},replace:function(e,t){var n=e.buffer,r=e.byteOffset,i=e.byteLength;t.buffers||(t.buffers=[]);var o=t.buffers.indexOf(n);return o>-1?{index:o,byteOffset:r,byteLength:i}:(t.buffers.push(n),{encoded:ee(n),byteOffset:r,byteLength:i})},revive:function(e,t){t.buffers||(t.buffers=[]);var n,r=e.byteOffset,i=e.byteLength,o=e.encoded,a=e.index;return"index"in e?n=t.buffers[a]:(n=te(o),t.buffers.push(n)),new DataView(n,r,i)}}},ae={IntlCollator:{test:function(e){return j.hasConstructorOf(e,Intl.Collator)},replace:function(e){return e.resolvedOptions()},revive:function(e){return new Intl.Collator(e.locale,e)}},IntlDateTimeFormat:{test:function(e){return j.hasConstructorOf(e,Intl.DateTimeFormat)},replace:function(e){return e.resolvedOptions()},revive:function(e){return new Intl.DateTimeFormat(e.locale,e)}},IntlNumberFormat:{test:function(e){return j.hasConstructorOf(e,Intl.NumberFormat)},replace:function(e){return e.resolvedOptions()},revive:function(e){return new Intl.NumberFormat(e.locale,e)}}};function se(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer}var ue={file:{test:function(e){return"File"===j.toStringTag(e)},replace:function(e){var t=new XMLHttpRequest;if(t.overrideMimeType("text/plain; charset=x-user-defined"),t.open("GET",URL.createObjectURL(e),!1),t.send(),200!==t.status&&0!==t.status)throw new Error("Bad File access: "+t.status);return{type:e.type,stringContents:t.responseText,name:e.name,lastModified:e.lastModified}},revive:function(e){var t=e.name,n=e.type,r=e.stringContents,i=e.lastModified;return new File([se(r)],t,{type:n,lastModified:i})},replaceAsync:function(e){return new j.Promise(function(t,n){var r=new FileReader;r.addEventListener("load",function(){t({type:e.type,stringContents:r.result,name:e.name,lastModified:e.lastModified})}),r.addEventListener("error",function(){n(r.error)}),r.readAsBinaryString(e)})}}},ce={bigint:{test:function(e){return"bigint"==typeof e},replace:function(e){return String(e)},revive:function(e){return BigInt(e)}}},le={bigintObject:{test:function(t){return"object"===e(t)&&j.hasConstructorOf(t,BigInt)},replace:function(e){return String(e)},revive:function(e){return new Object(BigInt(e))}}},de={cryptokey:{test:function(e){return"CryptoKey"===j.toStringTag(e)&&e.extractable},replaceAsync:function(e){return new j.Promise(function(t,n){crypto.subtle.exportKey("jwk",e).catch(function(e){n(e)}).then(function(n){t({jwk:n,algorithm:e.algorithm,usages:e.usages})})})},revive:function(e){var t=e.jwk,n=e.algorithm,r=e.usages;return crypto.subtle.importKey("jwk",t,n,!0,r)}}};return[H,q,W,G,K,J,X,{imagedata:{test:function(e){return"ImageData"===j.toStringTag(e)},replace:function(e){return{array:a(e.data),width:e.width,height:e.height}},revive:function(e){return new ImageData(new Uint8ClampedArray(e.array),e.width,e.height)}}},{imagebitmap:{test:function(e){return"ImageBitmap"===j.toStringTag(e)||e&&e.dataset&&"ImageBitmap"===e.dataset.toStringTag},replace:function(e){var t=document.createElement("canvas");return t.getContext("2d").drawImage(e,0,0),t.toDataURL()},revive:function(e){var t=document.createElement("canvas"),n=t.getContext("2d"),r=document.createElement("img");return r.addEventListener("load",function(){n.drawImage(r,0,0)}),r.src=e,t},reviveAsync:function(e){var t=document.createElement("canvas"),n=t.getContext("2d"),r=document.createElement("img");return r.addEventListener("load",function(){n.drawImage(r,0,0)}),r.src=e,createImageBitmap(t)}}},ue,{file:ue.file,filelist:{test:function(e){return"FileList"===j.toStringTag(e)},replace:function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e.item(n);return t},revive:function(e){return new(function(){function e(){t(this,e),this._files=arguments[0],this.length=this._files.length}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"item",value:function(e){return this._files[e]}},{key:Symbol.toStringTag,get:function(){return"FileList"}}]),e}())(e)}}},{blob:{test:function(e){return"Blob"===j.toStringTag(e)},replace:function(e){var t=new XMLHttpRequest;if(t.overrideMimeType("text/plain; charset=x-user-defined"),t.open("GET",URL.createObjectURL(e),!1),t.send(),200!==t.status&&0!==t.status)throw new Error("Bad Blob access: "+t.status);return{type:e.type,stringContents:t.responseText}},revive:function(e){var t=e.type,n=e.stringContents;return new Blob([se(n)],{type:t})},replaceAsync:function(e){return new j.Promise(function(t,n){var r=new FileReader;r.addEventListener("load",function(){t({type:e.type,stringContents:r.result})}),r.addEventListener("error",function(){n(r.error)}),r.readAsBinaryString(e)})}}}].concat("function"==typeof Map?z:[],"function"==typeof Set?Y:[],"function"==typeof ArrayBuffer?ne:[],"function"==typeof Uint8Array?ie:[],"function"==typeof DataView?oe:[],"undefined"!=typeof Intl?ae:[],"undefined"!=typeof crypto?de:[],"undefined"!=typeof BigInt?[ce,le]:[]).concat({checkDataCloneException:{test:function(t){var n={}.toString.call(t).slice(8,-1);if(["symbol","function"].includes(e(t))||["Arguments","Module","Error","Promise","WeakMap","WeakSet","Event","MessageChannel"].includes(n)||t&&"object"===e(t)&&"number"==typeof t.nodeType&&"function"==typeof t.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}}})},"object"==(void 0===i?"undefined":s(i))&&void 0!==t?t.exports=a():"function"==typeof r&&r.amd?r(a):((o="undefined"!=typeof globalThis?globalThis:o||self).Typeson=o.Typeson||{},o.Typeson.presets=o.Typeson.presets||{},o.Typeson.presets.structuredCloningThrowing=a())},{}],49:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e){return(i="function"==typeof Symbol&&"symbol"==r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p=function e(t){o(this,e),this.p=new Promise(t)};p.__typeson__type__="TypesonPromise","undefined"!=typeof Symbol&&(p.prototype[Symbol.toStringTag]="TypesonPromise"),p.prototype.then=function(e,t){var n=this;return new p(function(r,i){n.p.then(function(t){r(e?e(t):t)}).catch(function(e){return t?t(e):Promise.reject(e)}).then(r,i)})},p.prototype.catch=function(e){return this.then(null,e)},p.resolve=function(e){return new p(function(t){t(e)})},p.reject=function(e){return new p(function(t,n){n(e)})},["all","race","allSettled"].forEach(function(e){p[e]=function(t){return new p(function(n,r){Promise[e](t.map(function(e){return e&&e.constructor&&"TypesonPromise"===e.constructor.__typeson__type__?e.p:e})).then(n,r)})}});var m={}.toString,_={}.hasOwnProperty,y=Object.getPrototypeOf,g=_.toString;function v(e,t){return A(e)&&"function"==typeof e.then&&(!t||"function"==typeof e.catch)}function b(e){return m.call(e).slice(8,-1)}function E(e,t){if(!e||"object"!==i(e))return!1;var n=y(e);if(!n)return null===t;var r=_.call(n,"constructor")&&n.constructor;return"function"!=typeof r?null===t:t===r||null!==t&&g.call(r)===g.call(t)||"function"==typeof t&&"string"==typeof r.__typeson__type__&&r.__typeson__type__===t.__typeson__type__}function S(e){return!(!e||"Object"!==b(e))&&(!y(e)||E(e,Object))}function A(e){return e&&"object"===i(e)}function C(e){return e.replace(/~/g,"~0").replace(/\./g,"~1")}function w(e){return e.replace(/~1/g,".").replace(/~0/g,"~")}function T(e,t){if(""===t)return e;var n=t.indexOf(".");if(n>-1){var r=e[w(t.slice(0,n))];return void 0===r?void 0:T(r,t.slice(n+1))}return e[w(t)]}function R(e,t,n){if(""===t)return n;var r=t.indexOf(".");return r>-1?R(e[w(t.slice(0,r))],t.slice(r+1),n):(e[w(t)]=n,e)}function O(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var I=Object.keys,P=Array.isArray,D={}.hasOwnProperty,k=["type","replaced","iterateIn","iterateUnsetNumeric"];function M(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}function F(e,t){if(""===e.keypath)return-1;var n=e.keypath.match(/\./g)||0,r=t.keypath.match(/\./g)||0;return n&&(n=n.length),r&&(r=r.length),n>r?-1:n<r?1:e.keypath<t.keypath?-1:e.keypath>t.keypath}var x=function(){function e(t){o(this,e),this.options=t,this.plainObjectReplacers=[],this.nonplainObjectReplacers=[],this.revivers={},this.types={}}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"stringify",value:function(e,t,n,r){r=c(c(c({},this.options),r),{},{stringification:!0});var i=this.encapsulate(e,null,r);return P(i)?JSON.stringify(i[0],t,n):i.then(function(e){return JSON.stringify(e,t,n)})}},{key:"stringifySync",value:function(e,t,n,r){return this.stringify(e,t,n,c(c({throwOnBadSyncType:!0},r),{},{sync:!0}))}},{key:"stringifyAsync",value:function(e,t,n,r){return this.stringify(e,t,n,c(c({throwOnBadSyncType:!0},r),{},{sync:!1}))}},{key:"parse",value:function(e,t,n){return n=c(c(c({},this.options),n),{},{parse:!0}),this.revive(JSON.parse(e,t),n)}},{key:"parseSync",value:function(e,t,n){return this.parse(e,t,c(c({throwOnBadSyncType:!0},n),{},{sync:!0}))}},{key:"parseAsync",value:function(e,t,n){return this.parse(e,t,c(c({throwOnBadSyncType:!0},n),{},{sync:!1}))}},{key:"specialTypeNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.returnTypeNames=!0,this.encapsulate(e,t,n)}},{key:"rootTypeName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.iterateNone=!0,this.encapsulate(e,t,n)}},{key:"encapsulate",value:function(t,n,r){var o=M(function(e,t){return O(Promise.all(t.map(function(e){return e[1].p})),function(n){return O(Promise.all(n.map(M(function(n){var r=!1,i=[],a=l(t.splice(0,1),1),s=l(a[0],7),u=s[0],c=s[2],d=s[3],f=s[4],h=s[5],m=s[6],_=w(u,n,c,d,i,!0,m),y=E(_,p);return function(e,t){var n=e();return n&&n.then?n.then(t):t(n)}(function(){if(u&&y)return O(_.p,function(t){return f[h]=t,r=!0,o(e,i)})},function(t){return r?t:(u?f[h]=_:e=y?_.p:_,o(e,i))})}))),function(){return e})})}),a=(r=c(c({sync:!0},this.options),r)).sync,s=this,u={},f=[],h=[],m=[],_=!("cyclic"in r)||r.cyclic,y=r.encapsulateObserver,g=w("",t,_,n||{},m);function v(t){var n=Object.values(u);if(r.iterateNone)return n.length?n[0]:e.getJSONType(t);if(n.length){if(r.returnTypeNames)return d(new Set(n));t&&S(t)&&!D.call(t,"$types")?t.$types=u:t={$:t,$types:{$:u}}}else A(t)&&D.call(t,"$types")&&(t={$:t,$types:!0});return!r.returnTypeNames&&t}function b(e,t,n){Object.assign(e,t);var r=k.map(function(t){var n=e[t];return delete e[t],n});n(),k.forEach(function(t,n){e[t]=r[n]})}function w(t,n,o,a,c,l,d){var m,_={},g=i(n),v=y?function(r){var i=d||a.type||e.getJSONType(n);y(Object.assign(r||_,{keypath:t,value:n,cyclic:o,stateObj:a,promisesData:c,resolvingTypesonPromise:l,awaitingTypesonPromise:E(n,p)},{type:i}))}:null;if(["string","boolean","number","undefined"].includes(g))return void 0===n||Number.isNaN(n)||n===Number.NEGATIVE_INFINITY||n===Number.POSITIVE_INFINITY?(m=a.replaced?n:T(t,n,a,c,!1,l,v))!==n&&(_={replaced:m}):m=n,v&&v(),m;if(null===n)return v&&v(),n;if(o&&!a.iterateIn&&!a.iterateUnsetNumeric&&n&&"object"===i(n)){var A=f.indexOf(n);if(!(A<0))return u[t]="#",v&&v({cyclicKeypath:h[A]}),"#"+h[A];!0===o&&(f.push(n),h.push(t))}var R,O=S(n),k=P(n),M=(O||k)&&(!s.plainObjectReplacers.length||a.replaced)||a.iterateIn?n:T(t,n,a,c,O||k,null,v);if(M!==n?(m=M,_={replaced:M}):""===t&&E(n,p)?(c.push([t,n,o,a,void 0,void 0,a.type]),m=n):k&&"object"!==a.iterateIn||"array"===a.iterateIn?(R=new Array(n.length),_={clone:R}):(["function","symbol"].includes(i(n))||"toJSON"in n||E(n,p)||E(n,Promise)||E(n,ArrayBuffer))&&!O&&"object"!==a.iterateIn?m=n:(R={},a.addLength&&(R.length=n.length),_={clone:R}),v&&v(),r.iterateNone)return R||m;if(!R)return m;if(a.iterateIn){var F=function(e){var r={ownKeys:D.call(n,e)};b(a,r,function(){var r=t+(t?".":"")+C(e),i=w(r,n[e],Boolean(o),a,c,l);E(i,p)?c.push([r,i,Boolean(o),a,R,e,a.type]):void 0!==i&&(R[e]=i)})};for(var x in n)F(x);v&&v({endIterateIn:!0,end:!0})}else I(n).forEach(function(e){var r=t+(t?".":"")+C(e);b(a,{ownKeys:!0},function(){var t=w(r,n[e],Boolean(o),a,c,l);E(t,p)?c.push([r,t,Boolean(o),a,R,e,a.type]):void 0!==t&&(R[e]=t)})}),v&&v({endIterateOwn:!0,end:!0});if(a.iterateUnsetNumeric){for(var L=n.length,N=function(e){if(!(e in n)){var r=t+(t?".":"")+e;b(a,{ownKeys:!1},function(){var t=w(r,void 0,Boolean(o),a,c,l);E(t,p)?c.push([r,t,Boolean(o),a,R,e,a.type]):void 0!==t&&(R[e]=t)})}},B=0;B<L;B++)N(B);v&&v({endIterateUnsetNumeric:!0,end:!0})}return R}function T(e,t,n,r,i,o,c){for(var l=i?s.plainObjectReplacers:s.nonplainObjectReplacers,d=l.length;d--;){var f=l[d];if(f.test(t,n)){var h=f.type;if(s.revivers[h]){var p=u[e];u[e]=p?[h].concat(p):h}return Object.assign(n,{type:h,replaced:!0}),!a&&f.replaceAsync||f.replace?(c&&c({replacing:!0}),w(e,f[a||!f.replaceAsync?"replace":"replaceAsync"](t,n),_&&"readonly",n,r,o,h)):(c&&c({typeDetected:!0}),w(e,t,_&&"readonly",n,r,o,h))}}return t}return m.length?a&&r.throwOnBadSyncType?function(){throw new TypeError("Sync method requested but async result obtained")}():Promise.resolve(o(g,m)).then(v):!a&&r.throwOnBadSyncType?function(){throw new TypeError("Async method requested but sync result obtained")}():r.stringification&&a?[v(g)]:a?v(g):Promise.resolve(v(g))}},{key:"encapsulateSync",value:function(e,t,n){return this.encapsulate(e,t,c(c({throwOnBadSyncType:!0},n),{},{sync:!0}))}},{key:"encapsulateAsync",value:function(e,t,n){return this.encapsulate(e,t,c(c({throwOnBadSyncType:!0},n),{},{sync:!1}))}},{key:"revive",value:function(e,t){var n=e&&e.$types;if(!n)return e;if(!0===n)return e.$;var r=(t=c(c({sync:!0},this.options),t)).sync,i=[],o={},a=!0;n.$&&S(n.$)&&(e=e.$,n=n.$,a=!1);var s=this;function u(e,t){var n=l(s.revivers[e]||[],1)[0];if(!n)throw new Error("Unregistered type: "+e);return r&&!("revive"in n)?t:n[r&&n.revive?"revive":!r&&n.reviveAsync?"reviveAsync":"revive"](t,o)}var d=[];function f(e){return E(e,L)?void 0:e}var h,m=function(){var t=[];if(Object.entries(n).forEach(function(e){var r=l(e,2),i=r[0],o=r[1];"#"!==o&&[].concat(o).forEach(function(e){l(s.revivers[e]||[null,{}],2)[1].plain&&(t.push({keypath:i,type:e}),delete n[i])})}),t.length)return t.sort(F).reduce(function t(n,r){var i=r.keypath,o=r.type;if(v(n))return n.then(function(e){return t(e,{keypath:i,type:o})});var a=T(e,i);if(E(a=u(o,a),p))return a.then(function(t){var n=R(e,i,t);n===t&&(e=n)});var s=R(e,i,a);s===a&&(e=s)},void 0)}();return E(m,p)?h=m.then(function(){return e}):(h=function e(t,r,o,s,c){if(!a||"$types"!==t){var f=n[t],h=P(r);if(h||S(r)){var m=h?new Array(r.length):{};for(I(r).forEach(function(n){var i=e(t+(t?".":"")+C(n),r[n],o||m,m,n),a=function(e){return E(e,L)?m[n]=void 0:void 0!==e&&(m[n]=e),e};E(i,p)?d.push(i.then(function(e){return a(e)})):a(i)}),r=m;i.length;){var _=l(i[0],4),y=_[0],g=_[1],v=_[2],b=_[3],A=T(y,g);if(void 0===A)break;v[b]=A,i.splice(0,1)}}if(!f)return r;if("#"===f){var w=T(o,r.slice(1));return void 0===w&&i.push([o,r.slice(1),s,c]),w}return[].concat(f).reduce(function e(t,n){return E(t,p)?t.then(function(t){return e(t,n)}):u(n,t)},r)}}("",e,null),d.length&&(h=p.resolve(h).then(function(e){return p.all([e].concat(d))}).then(function(e){return l(e,1)[0]}))),v(h)?r&&t.throwOnBadSyncType?function(){throw new TypeError("Sync method requested but async result obtained")}():E(h,p)?h.p.then(f):h:!r&&t.throwOnBadSyncType?function(){throw new TypeError("Async method requested but sync result obtained")}():r?f(h):Promise.resolve(f(h))}},{key:"reviveSync",value:function(e,t){return this.revive(e,c(c({throwOnBadSyncType:!0},t),{},{sync:!0}))}},{key:"reviveAsync",value:function(e,t){return this.revive(e,c(c({throwOnBadSyncType:!0},t),{},{sync:!1}))}},{key:"register",value:function(t,n){return n=n||{},[].concat(t).forEach(function t(r){var i=this;if(P(r))return r.map(function(e){return t.call(i,e)});r&&I(r).forEach(function(t){if("#"===t)throw new TypeError("# cannot be used as a type name as it is reserved for cyclic objects");if(e.JSON_TYPES.includes(t))throw new TypeError("Plain JSON object types are reserved as type names");var i=r[t],o=i&&i.testPlainObjects?this.plainObjectReplacers:this.nonplainObjectReplacers,a=o.filter(function(e){return e.type===t});if(a.length&&(o.splice(o.indexOf(a[0]),1),delete this.revivers[t],delete this.types[t]),"function"==typeof i){var s=i;i={test:function(e){return e&&e.constructor===s},replace:function(e){return c({},e)},revive:function(e){return Object.assign(Object.create(s.prototype),e)}}}else if(P(i)){var u=l(i,3);i={test:u[0],replace:u[1],revive:u[2]}}if(i&&i.test){var d={type:t,test:i.test.bind(i)};i.replace&&(d.replace=i.replace.bind(i)),i.replaceAsync&&(d.replaceAsync=i.replaceAsync.bind(i));var f="number"==typeof n.fallback?n.fallback:n.fallback?0:Number.POSITIVE_INFINITY;if(i.testPlainObjects?this.plainObjectReplacers.splice(f,0,d):this.nonplainObjectReplacers.splice(f,0,d),i.revive||i.reviveAsync){var h={};i.revive&&(h.revive=i.revive.bind(i)),i.reviveAsync&&(h.reviveAsync=i.reviveAsync.bind(i)),this.revivers[t]=[h,{plain:i.testPlainObjects}]}this.types[t]=i}},this)},this),this}}]),e}(),L=function e(){o(this,e)};L.__typeson__type__="TypesonUndefined",x.Undefined=L,x.Promise=p,x.isThenable=v,x.toStringTag=b,x.hasConstructorOf=E,x.isObject=A,x.isPlainObject=S,x.isUserObject=function e(t){if(!t||"Object"!==b(t))return!1;var n=y(t);return!n||E(t,Object)||e(n)},x.escapeKeyPathComponent=C,x.unescapeKeyPathComponent=w,x.getByKeyPath=T,x.getJSONType=function(e){return null===e?"null":Array.isArray(e)?"array":i(e)},x.JSON_TYPES=["null","boolean","number","string","array","object"],t.exports=x},{}],50:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e,t){return(t&&t.context?t.context:"Value")+" "+e+"."}function o(e){if(null===e)return"Null";switch(void 0===e?"undefined":r(e)){case"undefined":return"Undefined";case"boolean":return"Boolean";case"number":return"Number";case"string":return"String";case"symbol":return"Symbol";default:return"Object"}}function a(e){return l(e>0&&e%1==.5&&!(1&e)||e<0&&e%1==-.5&&!(1&~e)?Math.floor(e):Math.round(e))}function s(e){return l(Math.trunc(e))}function u(e){return e<0?-1:1}function c(e,t){var n=e%t;return u(t)!==u(n)?n+t:n}function l(e){return 0===e?0:e}function d(e,t){var n=!t.unsigned,r=void 0,o=void 0;64===e?(o=Math.pow(2,53)-1,r=n?1-Math.pow(2,53):0):n?(r=-Math.pow(2,e-1),o=Math.pow(2,e-1)-1):(r=0,o=Math.pow(2,e)-1);var u=Math.pow(2,e),d=Math.pow(2,e-1);return function(e,t){void 0===t&&(t={});var f=+e;if(f=l(f),t.enforceRange){if(!Number.isFinite(f))throw new TypeError(i("is not a finite number",t));if((f=s(f))<r||f>o)throw new TypeError(i("is outside the accepted range of "+r+" to "+o+", inclusive",t));return f}return!Number.isNaN(f)&&t.clamp?f=a(f=Math.min(Math.max(f,r),o)):Number.isFinite(f)&&0!==f?(f=s(f))>=r&&f<=o?f:(f=c(f,u),n&&f>=d?f-u:f):0}}function f(e,t){if("function"!=typeof e)throw new TypeError(i("is not a function",t));return e}n.any=function(e){return e},n.void=function(){},n.boolean=function(e){return!!e},n.byte=d(8,{unsigned:!1}),n.octet=d(8,{unsigned:!0}),n.short=d(16,{unsigned:!1}),n["unsigned short"]=d(16,{unsigned:!0}),n.long=d(32,{unsigned:!1}),n["unsigned long"]=d(32,{unsigned:!0}),n["long long"]=d(64,{unsigned:!1}),n["unsigned long long"]=d(64,{unsigned:!0}),n.double=function(e,t){var n=+e;if(!Number.isFinite(n))throw new TypeError(i("is not a finite floating-point value",t));return n},n["unrestricted double"]=function(e){return+e},n.float=function(e,t){var n=+e;if(!Number.isFinite(n))throw new TypeError(i("is not a finite floating-point value",t));if(Object.is(n,-0))return n;var r=Math.fround(n);if(!Number.isFinite(r))throw new TypeError(i("is outside the range of a single-precision floating-point value",t));return r},n["unrestricted float"]=function(e){var t=+e;return isNaN(t)||Object.is(t,-0)?t:Math.fround(t)},n.DOMString=function(e,t){if(void 0===t&&(t={}),t.treatNullAsEmptyString&&null===e)return"";if("symbol"===(void 0===e?"undefined":r(e)))throw new TypeError(i("is a symbol, which cannot be converted to a string",t));return String(e)},n.ByteString=function(e,t){for(var r=n.DOMString(e,t),o=void 0,a=0;void 0!==(o=r.codePointAt(a));++a)if(o>255)throw new TypeError(i("is not a valid ByteString",t));return r},n.USVString=function(e,t){for(var r=n.DOMString(e,t),i=r.length,o=[],a=0;a<i;++a){var s=r.charCodeAt(a);if(s<55296||s>57343)o.push(String.fromCodePoint(s));else if(56320<=s&&s<=57343)o.push(String.fromCodePoint(65533));else if(a===i-1)o.push(String.fromCodePoint(65533));else{var u=r.charCodeAt(a+1);if(56320<=u&&u<=57343){var c=1023&s,l=1023&u;o.push(String.fromCodePoint(65536+1024*c+l)),++a}else o.push(String.fromCodePoint(65533))}}return o.join("")},n.object=function(e,t){if("Object"!==o(e))throw new TypeError(i("is not an object",t));return e},[Error,ArrayBuffer,DataView,Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach(function(e){var t=e.name,r=/^[AEIOU]/.test(t)?"an":"a";n[t]=function(n,o){if(!(n instanceof e))throw new TypeError(i("is not "+r+" "+t+" object",o));return n}}),n.ArrayBufferView=function(e,t){if(!ArrayBuffer.isView(e))throw new TypeError(i("is not a view on an ArrayBuffer object",t));return e},n.BufferSource=function(e,t){if(!(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))throw new TypeError(i("is not an ArrayBuffer object or a view on one",t));return e},n.DOMTimeStamp=n["unsigned long long"],n.Function=f,n.VoidFunction=f},{}]},{},[1])(1)},963:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(3487);function i(e,t,n){return n&&n.length?r.qO.get("dynCall_"+e).apply(null,[t].concat(n)):r.qO.get("dynCall_"+e).call(null,t)}},1022:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(9809),i=function(){function e(){}return e.lessThanOrEqualTo=function(t){var n=t.split(".");return e.compare(e.safeToNumber(n[0]),e.safeToNumber(n[1]))<=0},e.lessThan=function(t){var n=t.split(".");return e.compare(e.safeToNumber(n[0]),e.safeToNumber(n[1]))<0},e.largerThan=function(t){var n=t.split(".");return e.compare(e.safeToNumber(n[0]),e.safeToNumber(n[1]))>0},e.largerThanOrEqualTo=function(t){var n=t.split(".");return e.compare(e.safeToNumber(n[0]),e.safeToNumber(n[1]))>=0},e.equals=function(t){var n=t.split(".");return 0===e.compare(e.safeToNumber(n[0]),e.safeToNumber(n[1]))},e.compare=function(e,t){if(r.B8.nativeSCVersion.major>e)return 1;if(r.B8.nativeSCVersion.major===e){if(r.B8.nativeSCVersion.minor>t)return 1;if(r.B8.nativeSCVersion.minor===t)return 0}return-1},e.safeToNumber=function(e){return Number(e)||0},e}()},1055:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(5242),i=n(3131),o=n(534),a=n(9809);function s(e){if(!e)return"";var t=e.lastIndexOf("/");return t<0||(t=(e=e.substr(t+1)).indexOf("?"))<0?e:e.substr(0,t)}function u(e){if("string"!=typeof e)return!1;return/^((http|https):\/\/)/.test(e)}function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e||0===e.length)return"";var n="";return e.forEach(function(t,r){t=String(t),r>0&&t.startsWith("/")&&(t=t.substr(1)),n=n.concat(t),r===e.length-1||t.endsWith("/")||(n=n.concat("/"))}),n}var l,d=null;function f(){return(0,i.m0)()?o.e.PACKAGE_DATA_PATH:c("/",a.B8.gameModel.appId,a.B8.gameModel.versionType)}var h={getBaseName:s,getFileExtension:function(e){if(!e)return"";var t=e.lastIndexOf(".");return t<0?"":e.substr(t)},getBaseNameWithoutExtension:function(e){if(!e)return"";var t=s(e),n=t.lastIndexOf(".");return n<=0?"":t.substr(0,n)},getGameDataBasePath:f,getUserDataBasePath:function(){return(0,i.m0)()?o.e.USER_DATA_PATH:c("/",a.B8.gameModel.appId,a.B8.gameModel.versionType,"data")},getStreamingAssetsBasePath:function(){return d||(d=c(f(),"StreamingAssets"))},getCurrentVersionBasePath:function(){return c(f(),a.B8.gameVersion)},getPersistentDataPath:function(){return l||(l="/idbfs/"+(0,r.i)(h.getDirPath(a.B8.gamePageUrl)))},getDirPath:function(e){if(!e)return"";var t=e.indexOf("?");return t>0&&(e=e.substr(0,t)),(t=e.lastIndexOf("/"))<0?e:e.substr(0,t)},isHttpUrl:u,isLocalFileUrl:function(e){return!!e&&!u(e)},resolveLocalDataPath:function(e){return e.startsWith(o.e.USER_DATA_PATH)?e:(e.startsWith("/")||(e="/"+e),o.e.USER_DATA_PATH+e)},resolveSandboxPath:function(e){return e.replace(o.e.SC_FILE_SCHEME,o.e.TT_FILE_SCHEME)},join:c};const p=h},1123:(e,t,n)=>{"use strict";n.d(t,{BT:()=>u,PA:()=>f,lK:()=>s,nS:()=>d,wM:()=>h,z9:()=>l});var r=n(9406),i=n(6153),o=n(9809),a=n(1138).Vy.getLogger("Reporter");function s(e,t){var n;n={tag:e,data:t},(0,r.W)().invokeNative("systemLog",n)}function u(e,t){s("mp_engine_start",{unity_sdk_version:e||"",engine_version:t||""})}function c(e,t,n,r,i){var o={stage:e,url:t,path:n,errMsg:r};for(var u in i)o[u]=i[u];s("mp_unity_asset_bundle_cache_error",o),a.error("asset bundle error:",JSON.stringify(o))}function l(e,t,n,r,i,o){void 0===o&&(o=null),c("XHR",t,n,o,{size:r,from_cache:i,http_status:e})}function d(e,t,n,r,i){void 0===i&&(i=null),c("File",e,t,i,{size:n,expected_size:r})}function f(e){s("mp_unity_asset_bundle_cache_status",e)}function h(e){(0,i.Y)().enabled&&(e.unity_sdk_version=o.B8.unitySDKVersion,s("mp_unity_fs_api_status",e))}},1138:(e,t,n)=>{"use strict";n.d(t,{Am:()=>i.Am,BM:()=>i.BM,BT:()=>i.BT,CD:()=>i.CD,Hb:()=>i.Hb,IM:()=>i.IM,Ko:()=>c,NK:()=>i.NK,SZ:()=>u,Vp:()=>i.Vp,Vy:()=>i.Vy,cU:()=>i.cU,dJ:()=>i.dJ,i0:()=>s,oo:()=>i.oo,vn:()=>i.vn,w0:()=>i.w0,xF:()=>a,xG:()=>o,xe:()=>i.xe,z2:()=>i.z2});var r=n(9809),i=n(2147),o=(n(9305),console);function a(e){(0,r.VS)()&&console.info("[dev] ".concat(e))}function s(e){(0,r.VS)()&&console.warn("[dev] ".concat(e))}function u(e){(0,r.VS)()&&console.error("[dev] ".concat(e))}function c(){tt.canIUse("getAppLogManager")?((o=tt.getAppLogManager()).info("unity getAppLogManager success"),i.Vy.setOutput(o)):console.info("unity getAppLogManager fail, fallback to console")}},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8923);const i=function(){};i.TYPE_CALL=0,i.TYPE_LISTEN=1,i.TYPE_UNLISTEN=2,i.TYPE_EVENT=3,i.CODE_API_NOT_EXIST=100,i.CODE_API_NOT_SUPPORT_ASYNC=101,i.CODE_LACK_PARAM=102,i.CODE_API_NOT_SUPPORT_SYNC=103,i.CODE_NOT_MIX_API=104,i.VERSIONCODE=1,i.SOURCE_UNITY=1,i.SOURCE_NATIVE=2,i.SOURCE_WEBGL=3,i.TIMEOUT=1e4,i.unityObjectName="UNBridge",i.localEventList=new Array,i.remoteEventList=new Array,i.callbackMap={},i.timeoutMap={},i.eventCallbackMap={},i.apiMap={},i.syncApiMap={},i.maxTimeout=i.TIMEOUT,i.params=Object.create(null),i.start=function(e){s.logD("unbridge start..."),i.params=e??Object.create(null),Object.assign(globalThis,{UNBridgeCore:a}),s.logD("start")},i.stop=function(){for(var e in i.timeoutMap){var t=i.timeoutMap[e];void 0!==t&&clearTimeout(t)}i.timeoutMap={},i.callbackMap={},s.logD("stop")},i.setCallbackTimeout=function(e){i.maxTimeout=e},i.registerEvent=function(e){u.isInArray(i.localEventList,e)?s.logD("registerEvent: event exist:"+e):u.addToArray(i.localEventList,e)},i.registerMixCallAPI=function(e,t){"function"==typeof t?t={onCall:t,mixCall:!0}:t.mixCall=!0,i.registerAPI(e,t)},i.registerAPI=function(e,t){"function"==typeof t&&(t={onCall:t}),"object"==typeof t&&t.onCall?u.isInMap(i.apiMap,e)?s.logD("registerAPI: api exist:"+e):(s.logD("registerAPI:"+e),u.addToMap(i.apiMap,e,t)):s.logE("api should be a object with onCall function")},i.registerSyncAPI=function(e,t){"function"==typeof t&&(t={onCall:t}),u.isInMap(i.syncApiMap,e)?s.logD("registerSyncAPI: api exist:"+e):(s.logD("registerSyncAPI:"+e),u.addToMap(i.syncApiMap,e,t))},i.call=function(e,t,n){i.call(e,t,n,0)},i.call=function(e,t,n,r){var a="";if(n){a=o.getCallbackId();var c=void 0!==r&&r>0?r:i.maxTimeout;u.addToMap(i.callbackMap,a,{time:(new Date).getTime(),cb:n,timeout:r});var l=setTimeout(function(){var e=i.callbackMap[a];void 0!==e&&e.cb&&(e.cb.onTimeout(),u.mapRemove(i.callbackMap,a),u.mapRemove(i.timeoutMap,a),s.logD("timeout to remove:"+a))},c);u.addToMap(i.timeoutMap,a,l)}o.sendMessage(o.packCallMsg(e,t,a)),s.logD("call:"+e)},i.sendEvent=function(e,t){s.logD("remote:"+JSON.stringify(i.remoteEventList)),s.logD("local:"+JSON.stringify(i.localEventList)),u.isInArray(i.remoteEventList,e)&&u.isInArray(i.localEventList,e)?o.sendMessage(o.packEventMsg(e,t)):s.logD("sendEvent failed:"+e)},i.listen=function(e,t){e&&(u.addToMap(i.eventCallbackMap,e,t),o.sendMessage(o.packListenMsg(e))),s.logD("listen:"+e)},i.unListen=function(e){e&&(o.sendMessage(o.packUnListenMsg(e)),u.mapRemove(i.eventCallbackMap,e)),s.logD("unListen:"+e)},i.h5HasAPI=function(e){return i.apiMap.hasOwnProperty(e)||i.syncApiMap.hasOwnProperty(e)};var o=function(){};o.sendMessage=function(e){s.logD(e),"function"==typeof i.params.onSendMessage&&i.params.onSendMessage.call(this,e)},o.packCallMsg=function(e,t,n){var r={};return r.native_sdk_ver=i.VERSIONCODE,r.msg_id=o.getMsgId(),r.type=i.TYPE_CALL,r.callback_id=n,r.target=e,r.source=i.SOURCE_WEBGL,t&&(r.param=t),r.code=0,r.failMsg="",r.data={},JSON.stringify(r)},o.packCallbackSuccessMsg=function(e,t){var n={};return n.native_sdk_ver=i.VERSIONCODE,o.copyBasic(e,n),n.code=0,n.failMsg="",n.data=t,n.param={},JSON.stringify(n)},o.packCallbackFailedMsg=function(e,t,n,r){var a={};return a.native_sdk_ver=i.VERSIONCODE,o.copyBasic(e,a),a.code=t,a.failMsg=n,a.errorType=r,a.data={},a.param={},JSON.stringify(a)},o.packEventMsg=function(e,t){var n={};return n.native_sdk_ver=i.VERSIONCODE,n.msg_id=o.getMsgId(),n.callback_id="",n.type=i.TYPE_EVENT,n.target=e,n.source=i.SOURCE_WEBGL,n.data=t,n.code=0,n.failMsg="",n.param={},JSON.stringify(n)},o.packListenMsg=function(e){var t={};return t.native_sdk_ver=i.VERSIONCODE,t.msg_id=o.getMsgId(),t.type=i.TYPE_LISTEN,t.callback_id="",t.target=e,t.source=i.SOURCE_WEBGL,t.param={},t.data={},t.code=0,t.failMsg="",JSON.stringify(t)},o.packlistenBackMsg=function(e){var t={};return t.native_sdk_ver=i.VERSIONCODE,o.copyBasic(e,t),t.code=0,t.failMsg="",t.data={},JSON.stringify(t)},o.packUnListenMsg=function(e){var t={};return t.native_sdk_ver=i.VERSIONCODE,t.msg_id=o.getMsgId(),t.type=i.TYPE_UNLISTEN,t.callback_id="",t.target=e,t.source=i.SOURCE_WEBGL,t.param={},t.data={},t.code=0,t.failMsg="",JSON.stringify(t)},o.packSyncCallbackMsg=function(e,t,n){var r={};return r.native_sdk_ver=i.VERSIONCODE,r.code=e,r.failMsg=t,r.value=n,r.type="",JSON.stringify(r)},o.copyBasic=function(e,t){t.msg_id=e.msg_id,t.type=e.type,t.callback_id=void 0===e.callback_id?"":e.callback_id,t.target=e.target,t.source=e.source},o.getMsgId=function(){return r.g()},o.getCallbackId=function(){return r.g()},o.unPacketMsg=function(e){return JSON.parse(e)};var a=function(){};a.h5HasAPI=function(e){return i.h5HasAPI(e)},a.handleMsgFromUnity=function(e){s.logD("handleMsgFromUnity:"+e);var t=o.unPacketMsg(e);t?t.source===i.SOURCE_UNITY?a.onUnityCall(t):t.source===i.SOURCE_WEBGL&&a.onUnityCallback(t):s.logE("handleMsgFromUnity fail")},a.onUnityCall=function(e){switch(s.logD("onUnityCall"),e.type){case i.TYPE_CALL:var t=i.apiMap[e.target];s.logD(t),t&&t.onCall?t.onCall({bridgeMsg:e,callbackSuccess:function(t){o.sendMessage(o.packCallbackSuccessMsg(e,t))},callbackFailed:function(t,n,r){o.sendMessage(o.packCallbackFailedMsg(e,t,n,r))}},e.param):o.sendMessage(o.packCallbackFailedMsg(e,i.CODE_API_NOT_EXIST,"api["+e.target+"] not supported."));break;case i.TYPE_LISTEN:u.isInArray(i.remoteEventList,e.target)||u.addToArray(i.remoteEventList,e.target),o.sendMessage(o.packlistenBackMsg(e));break;case i.TYPE_UNLISTEN:u.arrayRemove(i.remoteEventList,e.target);break;case i.TYPE_EVENT:var n=i.eventCallbackMap[e.target];n&&(0===e.code?n.onSuccess(e.data):n.onFailed(e.code,e.failMsg))}},a.onUnityCallback=function(e){switch(s.logD("onUnityCallback"),e.type){case i.TYPE_CALL:var t=u.getInMap(i.callbackMap,e.callback_id);if(void 0===t)break;var n=u.getInMap(i.timeoutMap,e.callback_id);void 0!==n&&(clearTimeout(n),u.mapRemove(i.timeoutMap,e.callback_id));var r=t.cb;0===e.code?r&&r.onSuccess&&r.onSuccess(e.data):r&&r.onFailed&&r.onFailed(e.code,e.failMsg),u.mapRemove(i.callbackMap,e.callback_id)}},a.handleMsgFromUnitySync=function(e){s.logD("handleMsgFromUnitySync:"+e);var t=o.unPacketMsg(e);if(t){var n=i.syncApiMap[t.target];if(n){var r=n.onCall(t.param),a=o.packSyncCallbackMsg(0,"",r);return s.logD("payload:"+a),a}return o.packSyncCallbackMsg(i.CODE_API_NOT_EXIST,"",{})}s.logE("handleMsgFromUnitySync fail")},a.onUnityMixCall=function(e){s.logD("onUnityMixCall:"+e);var t=o.unPacketMsg(e);if(!t||t.source!==i.SOURCE_UNITY)return null;var n=i.apiMap[t.target];return n?null==n.mixCall||!1===n.mixCall?(o.sendMessage(o.packCallbackFailedMsg(t,i.CODE_NOT_MIX_API,"api["+t.target+"] not a mix call")),null):n.onCall({bridgeMsg:t,callbackSuccess:function(e){o.sendMessage(o.packCallbackSuccessMsg(t,e))},callbackFailed:function(e,n,r){o.sendMessage(o.packCallbackFailedMsg(t,e,n,r))}},t.param):(o.sendMessage(o.packCallbackFailedMsg(t,i.CODE_API_NOT_EXIST,"api["+t.target+"] not supported.")),null)};var s=function(){};s.logD=function(e){false},s.logE=function(e){console.log("WebGl_UNBridge[E]:"+e)},s.logW=function(e){console.log("WebGl_UNBridge[W]:"+e)};var u=function(){};u.arrayRemove=function(e,t){if(e&&Array.isArray(e)){var n=e.indexOf(t);n>=0&&(e.splice(n,1),s.logD("arrayRemove:"+t))}},u.addToArray=function(e,t){e&&Array.isArray(e)&&e.push(t),s.logD(JSON.stringify(e))},u.isInArray=function(e,t){return!(!e||!Array.isArray(e))&&e.indexOf(t)>=0},u.mapRemove=function(e,t){e&&t&&(e[t.toString()]=void 0),s.logD("mapRemove:"+t)},u.isInMap=function(e,t){return!(!e||!t)&&void 0!==e[t.toString()]},u.addToMap=function(e,t,n){e&&t&&(e[t.toString()]=n),s.logD(JSON.stringify(e))},u.getInMap=function(e,t){if(e&&t)return e[t.toString()]};const c=i},1626:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var r,i=n(9809);function o(){if(r)return r;var e={major:2019,minor:4};if("string"!=typeof i.u.unityVersion)return e;var t=i.u.unityVersion.split(".");if(t.length<2)return e;try{var n=parseInt(t[0]),o=parseInt(t[1]);return r={major:n,minor:o}}catch(t){return e}}},1669:(e,t,n)=>{"use strict";n.d(t,{Hk:()=>l,Lj:()=>u,hF:()=>c,lZ:()=>_,sH:()=>m,yy:()=>d});var r,i=n(7605),o=n(169),a=n(9809),s=n(1138),u="android",c="ios",l="pc",d="native",f="webgl",h={},p=new Map;function m(e,t){h[e]?s.IM.warn("".concat(e," already registered")):h[e]=t}function _(e){var t,n;if(p.has(e))return p.get(e);var s=(0,i.Jt)(h,e);if(!s||s.length<1)return p.set(e,!1),!1;for(var u=0;u<s.length;u++){var c=s[u];if((0,o.jw)(a.B8.platform,c.platform)){var l=!c.canUse||c.canUse(),m=!1;"string"==typeof c.minTMGVersion?("string"!=typeof r&&(r=null!==(n=null===(t=jssdk.getSystemInfoSync())||void 0===t?void 0:t.SDKVersion)&&void 0!==n?n:"0.0.0"),m=(0,o.Gm)(r,c.minTMGVersion,">=")):"string"==typeof c.minSCVersion&&(m=(0,o.Gm)(a.B8.nativeSCVersionString,c.minSCVersion,">="));var _=!0;if("string"==typeof c.runtime){var y=(0,a.Lr)();_=c.runtime===d&&y||c.runtime===f&&!y}var g=l&&_&&m;return p.set(e,g),g}}return p.set(e,!1),!1}},1693:(e,t,n)=>{"use strict";n.d(t,{U:()=>u});var r,i,o="UnityPrf";function a(e){try{return"function"==typeof i?i(e):(new TextDecoder).decode(e)}catch(e){return""}}function s(e,t){var n=t,i={next:-1,value:""},o=e[n++];if(o>r.kPTString&&o<r.kPTFloat)return i;switch(o){case r.kPTInt:var s=[e[n],e[n+1],e[n+2],e[n+3]],u=new Int32Array(new Uint8Array(s).buffer);i.value=u[0],n+=4;break;case r.kPTFloat:var c=[e[n],e[n+1],e[n+2],e[n+3]],l=new Float32Array(new Uint8Array(c).buffer);i.value=l[0],n+=4;break;case r.kPTString:var d=[e[n],e[n+1],e[n+2],e[n+3]];o=new Uint32Array(new Uint8Array(d).buffer)[0],n+=4;default:o>0&&(i.value=a(e.subarray(n,n+o))),n+=o}return i.next=n,i}function u(e){var t=new Map;if(e.length<16)return t;if(a(e.subarray(0,8))!=o)return t;for(var n=16;n<e.length;){var r=s(e,n);if(-1==r.next)break;var i=s(e,n=r.next);if(-1==r.next)break;n=i.next,"string"==typeof r.value&&r.value.length>0&&(t[r.value]=i.value)}return t}!function(e){e[e.kPTError=255]="kPTError",e[e.kPTInt=254]="kPTInt",e[e.kPTFloat=253]="kPTFloat",e[e.kPTString=128]="kPTString",e[e.kPTShortString=127]="kPTShortString"}(r||(r={}))},1887:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>b,B:()=>g,l7:()=>y});var r=n(1055),i=n(4729),o=n(3131),a=n(1987),s=n(131),u=n(3487),c=n(9809),l=n(1138),d="WEBGL_compressed_texture_s3tc",f="WEBGL_compressed_texture_astc",h="WEBGL_compressed_texture_etc1",p="WEBGL_compressed_texture_etc",m="WEBGL_compressed_texture_pvrtc",_=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096];function y(){var e=WebGLRenderingContext.prototype.getSupportedExtensions;WebGLRenderingContext.prototype.getSupportedExtensions=function(){var t=e.apply(this,arguments);return v.getTextureResourceUrl()&&t.push(d),t}}function g(e,t){return _.indexOf(e)>=0&&_.indexOf(t)>=0}var v=new(function(){function e(){this.supportedTextureFormat=void 0,this.supportedTextureFormatInt=-1,this.downloadedTextures=new Map}return e.prototype.getTextureResourceUrl=function(){if(c.u.streamingAssetsUrl&&c.u.textureConfig)return r.A.join(c.u.streamingAssetsUrl,c.u.textureConfig)},e.prototype.loadTextureResourceConfig=function(e,t){var n=this;if(this.textureResourceConfig)e&&e(this.textureResourceConfig);else if(this.getTextureResourceUrl()){var o=r.A.getBaseName(this.getTextureResourceUrl()),a=r.A.join(r.A.getStreamingAssetsBasePath(),o);this.readLocalFile(a,function(r){if(r)try{return n.textureResourceConfig||(n.textureResourceConfig=JSON.parse(r)),void(e&&e(n.textureResourceConfig))}catch(e){l.Am.error("parse error: "+e)}i.Ay.request({url:n.getTextureResourceUrl(),isText:!0,onload:function(r,i,o,s){try{n.textureResourceConfig=JSON.parse(r),n.saveToLocalFile(a,r),e&&e(n.textureResourceConfig)}catch(e){l.Am.error("download config failed, url: "+n.getTextureResourceUrl()),t&&t(String(e))}},onerror:function(e){t&&t(e)}})},"ascii")}else t&&t("empty texture resource config url")},e.prototype.getTexture=function(e,t){var n=this.getResourcesCacheObjectByType(e);if(n.has(t))return n.get(t)},e.prototype.getOrDownloadTexture=function(e,t,n){var o=this,a=this.getResourcesCacheObjectByType(e);a.has(t)?n(a.get(t)):this.loadTextureResourceConfig(function(e){var s=e[t];if(s&&s.url)if(g(s.width,s.height)){var u="__texture_"+r.A.getBaseName(s.url),c=r.A.join(r.A.getStreamingAssetsBasePath(),u.replace(" ",""));o.readLocalFile(c,function(e){if(e){var r={data:e,width:s.width||0,height:s.height||0};a.set(t,r),n(r)}else i.Ay.request({url:s.url,isText:!1,onload:function(e,r,i,u){var l={data:e,width:s.width||0,height:s.height||0};a.set(t,l),o.saveToLocalFile(c,e),n(l)}})})}else{var d=new Image(s.width,s.height);d.src=(0,i.xJ)(s.url),d.crossOrigin="anonymous",d.onload=function(){var e={data:d,width:s.width||0,height:s.height||0};a.set(t,e),n(e)}}else l.Am.warn("no texture config url")})},e.prototype.getResourcesCacheObjectByType=function(e){return"texture"==e?this.downloadedTextures:new Map},e.prototype.getSupportedTextureFormat=function(){return this.supportedTextureFormat||this.getSupportedTextureFormatString(),this.supportedTextureFormatInt},e.prototype.getSupportedTextureFormatString=function(){if(this.supportedTextureFormat)return this.supportedTextureFormat;var e=u.qO.ctx;if(!e)return"png";var t=-1;return e.getExtension(f)?(this.supportedTextureFormat="astc",t=e.getExtension(f).COMPRESSED_RGBA_ASTC_8x8_KHR):e.getExtension(p)?(this.supportedTextureFormat="etc2",t=e.getExtension(p).COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2):e.getExtension(m)?(this.supportedTextureFormat="pvrtc",t=e.getExtension(m).COMPRESSED_RGBA_PVRTC_4BPPV1_IMG):e.getExtension(h)?(this.supportedTextureFormat="etc1",t=e.getExtension(h).COMPRESSED_RGB_ETC1_WEBGL):this.supportedTextureFormat="png",this.supportedTextureFormatInt=t||-1,l.Am.info("supportedTextureFormat: "+this.supportedTextureFormat),this.supportedTextureFormat},e.prototype.readLocalFile=function(e,t,n){if(void 0===n&&(n=void 0),(0,o.m0)()){e.startsWith("/")&&(e=e.substr(1));var r=a.fs.readFileSync(e,n);t(r)}else s.A.read(e,function(e,n){t(e?null:n.data)})},e.prototype.saveToLocalFile=function(e,t){e&&t&&((0,o.m0)()?(e.startsWith("/")&&(e=e.substr(1)),a.fs.writeFileSync(e,t)):s.A.write(e,t))},e}());const b=v},1987:(e,t,n)=>{"use strict";n.d(t,{fs:()=>c});var r=n(5258),i=n(1055),o=n(9650),a=n(1138);function s(e,t){try{var n=u(e);if(!n||!n.isDirectory())return;0==t.length&&t.push((0,r.Cl)({filePath:e,modeInt:parseInt(n.mode)},n));var o=jssdk.getFileSystemManager().readdirSync(e);o||(o=[]);for(var a=0;a<o.length;a++){var c=i.A.join(e,o[a]),l=u(c);l&&(t.push((0,r.Cl)({filePath:c,modeInt:parseInt(l.mode)},l)),l.isDirectory()&&s(c,t))}}catch(e){}}function u(e){try{return jssdk.getFileSystemManager().statSync(e)}catch(e){return null}}var c={writeFile:function(e,t,n,r,i){try{(0,o.h)(t)&&(t=t.buffer),jssdk.getFileSystemManager().writeFile({filePath:e,data:t,encoding:n,success:r,fail:i})}catch(e){a.cU.error("writeFile: ".concat(e))}},writeFileAsync:function(e,t,n){return new Promise(function(r){try{(0,o.h)(t)&&(t=t.buffer),jssdk.getFileSystemManager().writeFile({filePath:e,data:t,encoding:n,success:function(){r(!0)},fail:function(e){a.cU.error("writeFileAsync failed: ".concat(null==e?void 0:e.errMsg)),r(!1)}})}catch(e){a.cU.error("writeFileAsync: ".concat(e)),r(!1)}})},removeFile:function(e,t,n){try{jssdk.getFileSystemManager().unlink({filePath:e,success:t,fail:n})}catch(e){a.cU.error("removeFile: ".concat(e))}},rename:function(e,t,n,r){try{return jssdk.getFileSystemManager().rename({oldPath:e,newPath:t,success:n,fail:r}),!0}catch(e){a.cU.error("rename: ".concat(e))}return!1},access:function(e){return new Promise(function(t){jssdk.getFileSystemManager().access({path:e,success:function(){t(!0)},fail:function(){t(!1)}})})},readFile:function(e,t){return new Promise(function(n,r){jssdk.getFileSystemManager().readFile({filePath:e,encoding:t,success:function(e){n(e.data)},fail:function(e){r(e.errMsg)}})})},mkdir:function(e,t){return new Promise(function(n){"boolean"!=typeof t&&(t=!1),jssdk.getFileSystemManager().mkdir({dirPath:e,recursive:t,success:function(){n(!0)},fail:function(){n(!1)}})})},accessSync:function(e){try{return jssdk.getFileSystemManager().accessSync(e),!0}catch(e){return!1}},readFileSync:function(e,t,n){void 0===n&&(n=!1);try{return jssdk.getFileSystemManager().readFileSync(e,t)}catch(e){return n&&a.cU.error("readFileSync: ".concat(e)),null}},writeFileSync:function(e,t,n){try{return(0,o.h)(t)&&(t=t.buffer),jssdk.getFileSystemManager().writeFileSync(e,t,n),!0}catch(e){return a.cU.error("writeFileSync: ".concat(e)),!1}},removeFileSync:function(e,t){void 0===t&&(t=!1);try{return jssdk.getFileSystemManager().unlinkSync(e),!0}catch(e){return t&&a.cU.error("removeFileSync: ".concat(e)),!1}},statSync:u,mkdirSync:function(e,t){try{return"boolean"!=typeof t&&(t=!1),jssdk.getFileSystemManager().mkdirSync(e,t),!0}catch(e){return a.cU.error("mkdirSync: ".concat(e)),!1}},readDirSync:function(e,t){if(t){var n=new Array;return s(e,n),n}return function(e){try{var t=jssdk.getFileSystemManager().readdirSync(e);t||(t=[]);for(var n=new Array,o=0;o<t.length;o++){var a=i.A.join(e,t[o]),s=u(a);s&&n.push((0,r.Cl)({filePath:a,modeInt:parseInt(s.mode)},s))}return n}catch(e){return[]}}(e)},rmdirSync:function(e,t){void 0===t&&(t=!1);try{return jssdk.getFileSystemManager().rmdirSync(e,t),!0}catch(e){return a.cU.error("rmdirSync: ".concat(e)),!1}},renameSync:function(e,t){try{return jssdk.getFileSystemManager().renameSync(e,t),!0}catch(e){a.cU.error("renameSync: ".concat(e))}return!1},copyFileSync:function(e,t){try{return jssdk.getFileSystemManager().copyFileSync(e,t),!0}catch(e){return null}}}},2147:(e,t,n)=>{"use strict";n.d(t,{Am:()=>O,BM:()=>B,BT:()=>V,CD:()=>H,Hb:()=>M,IM:()=>F,NK:()=>I,Vp:()=>U,Vy:()=>c,cU:()=>D,dJ:()=>L,oo:()=>j,vn:()=>P,w0:()=>x,xe:()=>k,z2:()=>N});var r=n(5258),i=n(9305),o=n(9809),a=new Map,s={level:function(){if((0,o.VS)())return i.$b.VERBOSE;if((0,o.Si)())return i.$b.DEBUG;return i.$b.INFO}(),showTimestamp:!0,showTag:!0,output:console,moduleLevels:new Map,enabled:!0};function u(e,t){var n,r,o,a,u,c=[];return s.showTimestamp&&c.push((n=new Date,r=String(n.getHours()).padStart(2,"0"),o=String(n.getMinutes()).padStart(2,"0"),a=String(n.getSeconds()).padStart(2,"0"),u=String(n.getMilliseconds()).padStart(3,"0"),"".concat(r,":").concat(o,":").concat(a,".").concat(u))),c.push("[".concat(i.JH[t],"]")),s.showTag&&e&&c.push("[".concat(e,"]")),c.length>0?c.join(" ")+" ":""}var c=function(){function e(e){this.tag=e}return e.getLogger=function(t){var n=a.get(t);return n||(n=new e(t),a.set(t,n)),n},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(i.$b.VERBOSE,e)},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(i.$b.DEBUG,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(i.$b.INFO,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(i.$b.WARN,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(i.$b.ERROR,e)},e.prototype.time=function(e){var t=this,n=Date.now();return this.debug("".concat(e," started")),function(){var r=Date.now()-n;t.debug("".concat(e," completed in ").concat(r,"ms"))}},e.prototype.infoIf=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&this.info.apply(this,(0,r.fX)([],(0,r.zs)(t),!1))},e.prototype.debugIf=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&this.debug.apply(this,(0,r.fX)([],(0,r.zs)(t),!1))},e.prototype.infoObject=function(e,t){try{this.info(e,JSON.stringify(t,null,2))}catch(n){this.info(e,t)}},e.prototype.group=function(e,t){this.info("▼ ".concat(e)),t(),this.info("▲ ".concat(e," end"))},e.prototype.log=function(e,t){if(function(e,t){if(!s.enabled)return!1;var n=s.moduleLevels.get(e);return void 0!==n?t<=n:t<=s.level}(this.tag,e)){var n=u(this.tag,e),o=s.output;switch(e){case i.$b.ERROR:o.error.apply(o,(0,r.fX)([n],(0,r.zs)(t),!1));break;case i.$b.WARN:o.warn.apply(o,(0,r.fX)([n],(0,r.zs)(t),!1));break;case i.$b.INFO:o.info.apply(o,(0,r.fX)([n],(0,r.zs)(t),!1));break;case i.$b.DEBUG:case i.$b.VERBOSE:default:o.debug.apply(o,(0,r.fX)([n],(0,r.zs)(t),!1))}}},e.configure=function(e){void 0!==e.level&&(s.level=e.level),void 0!==e.showTimestamp&&(s.showTimestamp=e.showTimestamp),void 0!==e.showTag&&(s.showTag=e.showTag),void 0!==e.output&&(s.output=e.output),void 0!==e.enabled&&(s.enabled=e.enabled)},e.setLevel=function(e){s.level=e},e.getLevel=function(){return s.level},e.setModuleLevel=function(e,t){s.moduleLevels.set(e,t)},e.clearModuleLevel=function(e){s.moduleLevels.delete(e)},e.setOutput=function(e){s.output=e},e.enable=function(){s.enabled=!0},e.disable=function(){s.enabled=!1},e.isEnabled=function(){return s.enabled},e.verbose=function(t){for(var n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];(n=e.getLogger(t)).verbose.apply(n,(0,r.fX)([],(0,r.zs)(i),!1))},e.debug=function(t){for(var n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];(n=e.getLogger(t)).debug.apply(n,(0,r.fX)([],(0,r.zs)(i),!1))},e.info=function(t){for(var n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];(n=e.getLogger(t)).info.apply(n,(0,r.fX)([],(0,r.zs)(i),!1))},e.warn=function(t){for(var n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];(n=e.getLogger(t)).warn.apply(n,(0,r.fX)([],(0,r.zs)(i),!1))},e.error=function(t){for(var n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];(n=e.getLogger(t)).error.apply(n,(0,r.fX)([],(0,r.zs)(i),!1))},e}(),l="Unity",d="Network",f="Audio",h="FS",p="ABFS",m="WASM",_="Bridge",y="StarkSDK",g="Perf",v="Game",b="Lifecycle",E="Cache",S="Download",A="Canvas",C="Engine",w="Plugin",T="DOM",R="Gyroscope",O=c.getLogger(l),I=c.getLogger(d),P=c.getLogger(f),D=c.getLogger(h),k=c.getLogger(p),M=c.getLogger(m),F=(c.getLogger(_),c.getLogger(y)),x=c.getLogger(g),L=c.getLogger(v),N=c.getLogger(b),B=c.getLogger(E),U=(c.getLogger(S),c.getLogger(A),c.getLogger(C)),j=c.getLogger(w),V=c.getLogger(T),H=c.getLogger(R)},2250:(e,t,n)=>{"use strict";n.d(t,{Q7:()=>o,fo:()=>i,ro:()=>r});var r={defaultDirMode:16877,defaultFileMode:33206};function i(e){return!!e&&32768==(61440&e)}function o(e){return!!e&&16384==(61440&e)}},2600:(e,t,n)=>{"use strict";n.d(t,{A:()=>h,i:()=>f});var r=n(1055),i=n(1987),o=n(2250),a=n(3131),s=n(6191),u=n(257),c=n(6115),l=n(1138),d=n(534);function f(e){return!!(e=String(e)).startsWith(r.A.getPersistentDataPath())&&(!/\.*Unity\/local.*\/Analytics.*/.test(e)&&!(e.indexOf("UnityCache")>=0))}const h={checkRecordValid:function(e){return!!e&&f(e.key)},loadAll:function(){var e=i.fs.readDirSync(r.A.resolveLocalDataPath(r.A.getPersistentDataPath()),!0),t=new Array;return e.forEach(function(e){e.filePath=e.filePath.replace(d.e.USER_DATA_PATH,""),t.push(e)}),t},storeAsync:function(e){var t=this;return new Promise(function(n){t.store(e,function(e){n(e)})})},store:function(e,t){try{this.storeDirectly(e,t)}catch(t){(0,l.i0)("[IndexedDB] unable to store record: "+(null==e?void 0:e.key)+", exception: "+t)}},storeDirectly:function(e,t){if(this.checkRecordValid(e)){if(!e.value||!e.value.mode)return(0,l.i0)("[IndexedDB] invalid record."),void(t&&t(!1));if(e.value.timestamp=new Date,(0,a.m0)()){var n=e.value.contents;if((0,o.fo)(e.value.mode)&&!n)return(0,l.i0)("[IndexedDB] ".concat(e.key," no contents.")),void(t&&t(!1));var u=r.A.resolveLocalDataPath(e.key);if((0,o.Q7)(e.value.mode)){if(!i.fs.statSync(u))if(!i.fs.mkdirSync(u,!0))return(0,l.i0)("[IndexedDB] unable to create directory: ".concat(u)),void(t&&t(!1));return void(t&&t(!0))}var c=r.A.getDirPath(u),d=!0;if(i.fs.accessSync(c)||i.fs.mkdirSync(c,!0)||(d=!1),d){var f=Date.now();i.fs.writeFileSync(u,n)?((0,l.xF)("[IndexedDB] save ".concat(e.key," succeed, time cost: ").concat(Date.now()-f," ms")),t&&t(!0)):((0,l.i0)("[IndexedDB] save ".concat(e.key," failed.")),t&&t(!1))}else t&&t(!1)}else{var h=Date.now();s.A.writeFile(e.value,e.key,function(n){n?((0,l.i0)("[IndexedDB] save ".concat(e.key," failed, ").concat(n)),t&&t(!1)):((0,l.xF)("[IndexedDB] save ".concat(e.key," succeed, time cost: ").concat(Date.now()-h," ms")),t&&t(!0))})}}else t&&t(!1)},deleteAsync:function(e){var t=this;return new Promise(function(n){t.delete(e,function(e){n(e)})})},delete:function(e,t){if(f(e))if((0,a.m0)()){var n=r.A.resolveLocalDataPath(e),o=i.fs.statSync(n);if(!o)return void(t&&t(!1));if(o.isDirectory()){(0,l.xF)("[IndexedDB] delete directory: "+e);var c=i.fs.rmdirSync(n,!0);t&&t(c)}else i.fs.removeFile(n,function(e){t&&t(!0)},function(e){t&&t(!1)})}else(0,l.xF)("[IndexedDB] delete file: "+e),s.A.deleteFiles([e],function(n){n>0?(0,l.xF)("[IndexedDB] succeed to delete file: "+e):(0,u.X)()&&(0,l.i0)("[IndexedDB] failed to delete file: "+e),t&&t(n>0)});else t&&t(!1)},moveAsync:function(e,t){var n=this;return new Promise(function(r){n.move(e,t,function(e){r(e)})})},move:function(e,t,n){if(f(e)&&f(t))if((0,a.m0)()){var o=r.A.resolveLocalDataPath(e);if(!i.fs.statSync(o))return(0,l.i0)("[IndexedDB] move failed, ".concat(e," not exists.")),void(n&&n(!1));var d=r.A.resolveLocalDataPath(t);if(c.A.isDir(t)){if(i.fs.statSync(d)&&!i.fs.rmdirSync(d,!0))return(0,l.i0)("[IndexedDB] unable to remove directory ".concat(d)),void(n&&n(!1));var h=r.A.getDirPath(d);if(!i.fs.statSync(h)&&!i.fs.mkdirSync(h,!0))return(0,l.i0)("[IndexedDB] unable to mkdir ".concat(h)),void(n&&n(!1))}i.fs.rename(o,d,function(e){(0,u.X)()&&l.Am.info("[IndexedDB] succeed to rename ".concat(o," to ").concat(d)),n&&n(!0)},function(e){(0,l.i0)("[IndexedDB] unable to rename file from ".concat(o," to ").concat(d,", ").concat(JSON.stringify(e))),n&&n(!1)})}else s.A.renameFile(e,t,function(r){r?(0,l.i0)("[IndexedDB] unable to rename file from ".concat(e," to ").concat(t,", errMsg: ").concat(r)):(0,u.X)()&&l.Am.info("[IndexedDB] succeed to rename ".concat(e," to ").concat(t)),n&&n(!r)});else n&&n(!1)},get:function(e){if((0,a.m0)()){var t=r.A.resolveLocalDataPath(e),n=i.fs.statSync(t);if(n){var o;if(n.isFile()){var s=i.fs.readFileSync(t);s&&(o=new Uint8Array(s))}return(0,u.X)()&&l.Am.info("[IndexedDB] get local file: "+e+", stat.mode: "+n.mode+", data length: "+(null==o?void 0:o.length)+", isView: "+ArrayBuffer.isView(o)),{key:e,value:{timestamp:new Date(n.lastModifiedTime),mode:parseInt(n.mode),contents:o}}}}}}},2621:(e,t,n)=>{"use strict";n.d(t,{K:()=>l});var r=n(4462),i=n(1123),o=n(7792),a=n(963),s=n(3487),u=n(5314),c=n(1138);function l(e,t,n,l,d){(0,r.qK)()&&c.xe.warn("handle request AssetBundle: ".concat(e.url));var f=e.originXHR;if(0==t.length||f.status>=400)return(0,i.z9)(f.status,e.url,(0,o.sC)(e.url),t.length,f.isReadFromCache),(0,r.qK)()&&c.xe.error("WebRequest status: ".concat(f.status,", url: ").concat(e.url,", size: ").concat(t.length)),void(0,a.Q)("viiiiii",l,[n,e.status,s.qO._malloc(1),1,0,d]);var h=f.response,p=r.NK.url2path(e.url),m=r.NK.path2fd.get(p);null==m&&(m=r.NK.createNewAbfsFD(),r.NK.path2fd.set(p,m));var _=r.NK.fd2stream.get(m);null==_&&((_={node:{mode:32768,usedBytes:t.length},fd:m,path:p,seekable:!0,position:0,stream_ops:s.qO.StarkMEMFS.stream_ops,ungotten:[],error:!1}).stream_ops.read=r.NK.read,(0,r.qK)()&&c.xe.warn("fd2stream set ".concat(m," ").concat(p)),r.NK.fd2stream.set(m,_)),(0,r.qK)()&&c.xe.info("http.isReadFromCache: "+f.isReadFromCache),r.NK.cache.put(m,h),(0,a.Q)("viiiiii",l,[n,f.status,0,0,0,d]),r.NK.disk.set((0,u.A)(p),t.length)}},2718:(e,t,n)=>{"use strict";n.d(t,{T:()=>r,j:()=>i});var r=null;function i(e){r=e}},3131:(e,t,n)=>{"use strict";n.d(t,{m0:()=>u,qD:()=>s,un:()=>c});var r=n(9406),i=n(6359),o=n(1138).Vy.getLogger("Platform"),a=(0,i.N)(function(){return(0,r.W)()?(0,r.W)().getContext().deviceInfo.platform:(o.error("innerApi not setup yet, too early to get platform, please check initialize order"),"unknown")});function s(){return!0}function u(){return"android"==a()}function c(){return"ios"==a()}},3144:function(e,t){var n;!function(){r(Math.pow(36,5)),r(Math.pow(16,7)),r(Math.pow(10,9)),r(Math.pow(2,30)),r(36),r(16),r(10),r(2);function r(e,t){return this instanceof r?(this._low=0,this._high=0,this.remainder=null,void 0===t?o.call(this,e):"string"==typeof e?a.call(this,e,t):void i.call(this,e,t)):new r(e,t)}function i(e,t){return this._low=0|e,this._high=0|t,this}function o(e){return this._low=65535&e,this._high=e>>>16,this}function a(e,t){var n=parseInt(e,t||10);return this._low=65535&n,this._high=n>>>16,this}r.prototype.fromBits=i,r.prototype.fromNumber=o,r.prototype.fromString=a,r.prototype.toNumber=function(){return 65536*this._high+this._low},r.prototype.toString=function(e){return this.toNumber().toString(e||10)},r.prototype.add=function(e){var t=this._low+e._low,n=t>>>16;return n+=this._high+e._high,this._low=65535&t,this._high=65535&n,this},r.prototype.subtract=function(e){return this.add(e.clone().negate())},r.prototype.multiply=function(e){var t,n,r=this._high,i=this._low,o=e._high,a=e._low;return t=(n=i*a)>>>16,t+=r*a,t&=65535,t+=i*o,this._low=65535&n,this._high=65535&t,this},r.prototype.div=function(e){if(0==e._low&&0==e._high)throw Error("division by zero");if(0==e._high&&1==e._low)return this.remainder=new r(0),this;if(e.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(e))return this.remainder=new r(0),this._low=1,this._high=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._low=0,this._high=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=16?this._high|=1<<n-16:this._low|=1<<n);return this},r.prototype.negate=function(){var e=1+(65535&~this._low);return this._low=65535&e,this._high=~this._high+(e>>>16)&65535,this},r.prototype.equals=r.prototype.eq=function(e){return this._low==e._low&&this._high==e._high},r.prototype.greaterThan=r.prototype.gt=function(e){return this._high>e._high||!(this._high<e._high)&&this._low>e._low},r.prototype.lessThan=r.prototype.lt=function(e){return this._high<e._high||!(this._high>e._high)&&this._low<e._low},r.prototype.or=function(e){return this._low|=e._low,this._high|=e._high,this},r.prototype.and=function(e){return this._low&=e._low,this._high&=e._high,this},r.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},r.prototype.xor=function(e){return this._low^=e._low,this._high^=e._high,this},r.prototype.shiftRight=r.prototype.shiftr=function(e){return e>16?(this._low=this._high>>e-16,this._high=0):16==e?(this._low=this._high,this._high=0):(this._low=this._low>>e|this._high<<16-e&65535,this._high>>=e),this},r.prototype.shiftLeft=r.prototype.shiftl=function(e,t){return e>16?(this._high=this._low<<e-16,this._low=0,t||(this._high&=65535)):16==e?(this._high=this._low,this._low=0):(this._high=this._high<<e|this._low>>16-e,this._low=this._low<<e&65535,t||(this._high&=65535)),this},r.prototype.rotateLeft=r.prototype.rotl=function(e){var t=this._high<<16|this._low;return t=t<<e|t>>>32-e,this._low=65535&t,this._high=t>>>16,this},r.prototype.rotateRight=r.prototype.rotr=function(e){var t=this._high<<16|this._low;return t=t>>>e|t<<32-e,this._low=65535&t,this._high=t>>>16,this},r.prototype.clone=function(){return new r(this._low,this._high)},void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},3145:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9809);const i={showToast:function(e){jssdk.showToast({title:e})},showDialog:function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=!1),(0,r.rZ)()&&jssdk.showModal({title:t,content:e,showCancel:n})},showDialogForce:function(e,t){void 0===t&&(t=""),jssdk.showModal({title:t,content:e,showCancel:!1})}}},3218:(e,t,n)=>{"use strict";n.d(t,{g:()=>R});n(5258);var r=n(9809),i=n(9406),o=n(3487),a=n(3131),s=n(7792),u=(n(1138),2),c=3;function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}var d={};function f(e){for(var t in d){if(d.hasOwnProperty(t))e(d[t])}}var h=!1;function p(){f(function(e){e._originVideo.paused?e._isPlayingBeforeBackground=!1:(e._isPlayingBeforeBackground=!0,e._originVideo.pause())})}function m(){f(function(e){e._isPlayingBeforeBackground&&e._originVideo.play()})}var _=0;var y=null;function g(e,t){l("_JS_Video_SetLoop, video: ".concat(e,", loop: ").concat(t));var n=d[e];n.loopEndPollInterval&&clearInterval(n.loopEndPollInterval),n.loop=t,n._onJsVideoEnded&&(n.offEnded(n._onJsVideoEnded),n._onJsVideoEnded=null),n._onJsVideoEnded=function(){!function(e){l("jsVideoEnded"),e.onendedCallback&&o.qO.dynCall_vi(e.onendedCallback,e.onendedRef)}(n),!t&&r.B8.useHighPerformancePlus&&(n.currentTime=0),n._lastSeenCurrentTime=n.duration},t?(n.loopEndPollInterval=setInterval(function(){var e=n.currentTime;e-n.lastSeenPlaybackTime<((0,a.m0)()?-n.duration/2:0)&&n._onJsVideoEnded(),n.lastSeenPlaybackTime=e},1e3/30),n.lastSeenPlaybackTime=n.currentTime,n.offEnded(n._onJsVideoEnded)):n.onEnded(n._onJsVideoEnded)}function v(e){if(l("jsVideoAllAudioTracksAreDisabled check, video obj: ".concat(e)),!e.enabledTracks)return!1;for(var t=0;t<e.enabledTracks.length;++t)if(e.enabledTracks[t])return!1;return!0}function b(e,t,n){l("_JS_Video_SetSeekedHandler/_JS_Video_SetSeekedOnceHandler, video: ".concat(e,", ref: ").concat(t,", onseeked: ").concat(n));var r=function(){d[e].lastUpdateTextureTime=null,o.qO.dynCall_vi(n,t)};d[e]._onSeekedCallback&&(d[e].offSeeked(d[e]._onSeekedCallback),d[e]._onSeekedCallback=null),d[e]._onSeekedCallback=r,d[e].onSeeked(r)}function E(){l("jsVideoCreateTexture2D");var e=o.qO.ctx,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),t}var S=null,A=null,C=null,w=null,T=null;var R={_JS_Video_CanPlayFormat:function(e){return!0},_JS_Video_Create:function(e){var t=o.qO.UTF8ToString(e);l("_JS_Video_Create: ",t);var n=tt.createOffscreenVideo();if(d[++_]=n,null==y&&(y="Chrome"==o.qO.SystemInfo.browser||"Edge"==o.qO.SystemInfo.browser),n._isReady=!1,n._seeking=!1,n._dummyPlaybackRate=1,n._lastSeenCurrentTime=-1,n.onCanplay(function(){n._isReady=!0}),n.onSeeked(function(){n._seeking=!1}),n.muted=!0,n.src=(0,s.pj)(t,"GET")||t,(0,a.un)()&&!r.B8.useHighPerformancePlus?n._originVideo=n.instance.sonicVideo.originVideo:n._originVideo=n.instance.sonicVideo,(0,a.un)()&&r.B8.useHighPerformancePlus&&(n._isPlayingBeforeBackground=!1,!h)){h=!0;var u=(0,i.W)().onNative;u&&(u("onAppEnterBackground",p),u("onAppEnterForeground",m))}return _},_JS_Video_Destroy:function(e){l("_JS_Video_Destroy: ",e);var t=d[e];t.loopEndPollInterval&&clearInterval(t.loopEndPollInterval),t.src="",delete t.onendedCallback,t.offEnded(t._onJsVideoEnded),t.offError(t._onErrorCallback),t.offCanplay(t._onCanplayCallback),t.offSeeked(t._onSeekedCallback),t._onJsVideoEnded=t._onErrorCallback=t._onCanplayCallback=t._onSeekedCallback=null,delete d[e]},_JS_Video_Duration:function(e){return l("_JS_Video_Duration: ",e,d[e].duration),d[e].duration},_JS_Video_EnableAudioTrack:function(e,t,n){l("_JS_Video_EnableAudioTrack, video: ".concat(e,", trackIndex: ").concat(t,", enabled: ").concat(n));var r=d[e];for(r.enabledTracks||(r.enabledTracks=[]);r.enabledTracks.length<=t;)r.enabledTracks.push(!0);r.enabledTracks[t]=n;var i=r.audioTracks;if(i){var o=i[t];o&&(o.enabled=!!n)}},_JS_Video_GetAudioLanguageCode:function(e,t){l("_JS_Video_EnableAudioTrack, video: ".concat(e,", trackIndex: ").concat(t));var n=d[e].audioTracks;if(!n)return"";var r=n[t];return r?r.language:""},_JS_Video_GetNumAudioTracks:function(e){l("_JS_Video_GetNumAudioTracks, video: ".concat(e));var t=d[e].audioTracks;return t?t.length:1},_JS_Video_GetPlaybackRate:function(e){return l("_JS_Video_GetPlaybackRate, video: ".concat(e)),d[e]._dummyPlaybackRate},_JS_Video_Height:function(e){return l("_JS_Video_Height, video: ".concat(e,", videoHeight: ").concat(d[e].videoHeight)),d[e].videoHeight},_JS_Video_IsPlaying:function(e){var t=d[e];return l("_JS_Video_IsPlaying, video: ".concat(e,", ").concat(!t._originVideo.paused)),!t._originVideo.paused},_JS_Video_IsSeeking:function(e){var t=d[e];return l("_JS_Video_IsSeeking, video: ".concat(e,", ").concat(t._seeking)),t._seeking},_JS_Video_IsReady:function(e){var t=d[e];return l("_JS_Video_IsReady, video: ".concat(e,", ").concat(t._isReady)),t._isReady},_JS_Video_Pause:function(e){l("_JS_Video_Pause, video: ".concat(e));var t=d[e];t._lastSeenCurrentTime=t.currentTime,t.pause(),t.loopEndPollInterval&&clearInterval(t.loopEndPollInterval)},_JS_Video_SetLoop:g,_JS_Video_Play:function(e,t){l("_JS_Video_Play, video: ".concat(e,", muted: ").concat(t));var n=d[e];n.muted=t||v(n),n.play(),g(e,n.loop)},_JS_Video_Seek:function(e,t){l("_JS_Video_Seek, video: ".concat(e,", time: ").concat(t));var n=d[e];n._seeking=!0,n.lastSeenPlaybackTime=n.currentTime=t,n._lastSeenCurrentTime=t},_JS_Video_SetEndedHandler:function(e,t,n){l("_JS_Video_SetEndedHandler, video: ".concat(e,", ref: ").concat(t,", onended: ").concat(n));var r=d[e];r.onendedCallback=n,r.onendedRef=t},_JS_Video_SetErrorHandler:function(e,t,n){l("_JS_Video_SetErrorHandler, video: ".concat(e,", ref: ").concat(t,", onerror: ").concat(n));var r=function(e){var r=c;"string"==typeof e&&(e.includes("服务器")||e.includes("资源的许可")||e.includes("java"))&&(r=u),o.qO.dynCall_vii(n,t,r)};d[e]._onErrorCallback&&(d[e].offError(d[e]._onErrorCallback),d[e]._onErrorCallback=null),d[e]._onErrorCallback=r,d[e].onError(r)},_JS_Video_SetMute:function(e,t){l("_JS_Video_SetMute, video: ".concat(e,", muted: ").concat(t));var n=d[e];n.muted=t||v(n)},_JS_Video_SetPlaybackRate:function(e,t){l("_JS_Video_SetPlaybackRate, video: ".concat(e)),d[e].dummyPlaybackRate=t},_JS_Video_SetReadyHandler:function(e,t,n){l("_JS_Video_SetPlaybackRate, video: ".concat(e,", ref: ").concat(t,", onready: ").concat(n));var r=function(){o.qO.dynCall_vi(n,t)};d[e]._onCanplayCallback&&(d[e].offCanplay(d[e]._onCanplayCallback),d[e]._onCanplayCallback=null),d[e]._onCanplayCallback=r,d[e].onCanplay(r)},_JS_Video_SetSeekedOnceHandler:b,_JS_Video_SetSeekedHandler:b,_JS_Video_SetVolume:function(e,t){l("_JS_Video_SetVolume, video: ".concat(e,", volume: ").concat(t)),r.B8.useHighPerformancePlus||(d[e].volume=t)},_JS_Video_Time:function(e){var t=d[e];return t._originVideo.paused?(l("_JS_Video_Time, video: ".concat(e,", currentTime: ").concat(t._lastSeenCurrentTime)),d[e]._lastSeenCurrentTime):(l("_JS_Video_Time, video: ".concat(e,", currentTime: ").concat(t.currentTime)),d[e].currentTime)},_JS_Video_UpdateToTexture:function(e,t,n){var r=o.qO.ctx,i=o.qO.StarkGL,a=d[e];if(!(a.videoWidth>0&&a.videoHeight>0))return!1;if(a._originVideo.paused&&a._lastSeenCurrentTime>=0){if(a.lastUpdateTextureTime===a._lastSeenCurrentTime)return!1;a.lastUpdateTextureTime=a._lastSeenCurrentTime}else{if(a.lastUpdateTextureTime===a.currentTime)return!1;a.lastUpdateTextureTime=a.currentTime}r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0);var s=n?y?r.RGBA:r.RGB:r.RGBA,u=n?y?r.RGBA:r.RGB:r.RGBA;if(a.previousUploadedWidth!=a.videoWidth||a.previousUploadedHeight!=a.videoHeight){r.deleteTexture(i.textures[t]);var c=E();c.name=t,i.textures[t]=c,a.previousUploadedWidth=a.videoWidth,a.previousUploadedHeight=a.videoHeight,n&&(r.texImage2D(r.TEXTURE_2D,0,s,a.videoWidth,a.videoHeight,0,u,r.UNSIGNED_BYTE,null),S?r.bindTexture(r.TEXTURE_2D,S):S=E()),r.texImage2D(r.TEXTURE_2D,0,s,u,r.UNSIGNED_BYTE,a)}else n?S?r.bindTexture(r.TEXTURE_2D,S):S=E():r.bindTexture(r.TEXTURE_2D,i.textures[t]),r.texImage2D(r.TEXTURE_2D,0,s,u,r.UNSIGNED_BYTE,a);if(r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),n){if(null==w){var l=r.createShader(r.VERTEX_SHADER);r.shaderSource(l,"precision lowp float;\n \t\t\t\tattribute vec2 vertexPositionNDC;\n \t\t\t\tvarying vec2 vTexCoords;\n \t\t\t\tconst vec2 scale = vec2(0.5, 0.5);\n \t\t\t\tvoid main() {\n \t\t\t\t vTexCoords = vertexPositionNDC * scale + scale; // scale vertex attribute to [0,1] range\n \t\t\t\t gl_Position = vec4(vertexPositionNDC, 0.0, 1.0);\n \t\t\t\t}"),r.compileShader(l);var f=r.createShader(r.FRAGMENT_SHADER);r.shaderSource(f,"precision mediump float;\n \t\t\t\tuniform sampler2D colorMap;\n \t\t\t\tvarying vec2 vTexCoords;\n \t\t\t\tvec4 toLinear(vec4 sRGB) {\n \t\t\t\t vec3 c = sRGB.rgb;\n \t\t\t\t return vec4(c * (c * (c * 0.305306011 + 0.682171111) + 0.012522878), sRGB.a);\n \t\t\t\t}\n \t\t\t\tvoid main() {\n \t\t\t\t gl_FragColor = toLinear(texture2D(colorMap, vTexCoords));\n \t\t\t\t}"),r.compileShader(f),w=r.createProgram(),r.attachShader(w,l),r.attachShader(w,f),r.linkProgram(w),T=r.getAttribLocation(w,"vertexPositionNDC")}if(null==C){C=r.createBuffer(),r.bindBuffer(r.ARRAY_BUFFER,C);r.bufferData(r.ARRAY_BUFFER,new Float32Array([1,1,-1,1,-1,-1,-1,-1,1,-1,1,1]),r.STATIC_DRAW)}A||(A=r.createFramebuffer()),r.bindFramebuffer(r.FRAMEBUFFER,A),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i.textures[t],0),r.bindTexture(r.TEXTURE_2D,S),r.viewport(0,0,a.videoWidth,a.videoHeight),r.useProgram(w),r.bindBuffer(r.ARRAY_BUFFER,C),r.enableVertexAttribArray(T),r.vertexAttribPointer(T,2,r.FLOAT,!1,0,0),r.drawArrays(r.TRIANGLES,0,6),r.viewport(0,0,r.canvas.width,r.canvas.height),r.bindFramebuffer(r.FRAMEBUFFER,null)}return!0},_JS_Video_Width:function(e){return l("_JS_Video_Width, video: ".concat(e,", videoWidth: ").concat(d[e].videoWidth)),d[e].videoWidth}}},3487:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{II:()=>BaseUnityInstance,PC:()=>MAIN_CALLED_EVENT_NAME,qO:()=>globalUnityInstance,zh:()=>mainCalledEmitter});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5258),_common_unity_unity_fetch_with_progress__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(559),_common_unity_unity_loader__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7247),_common_starksdk_module_exit_app__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9461),_common_unity_unity_version__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1626),_common_timing_timing__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3877),_common_unity_unity_filesystem__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(7123),_common_config_config__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9809),_common_wasmhook_wasmhook__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9115),_common_unbridge_UNBridge__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(1233),_common_unity_unity_gl_adapter__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6429),_common_utils_migrate_data__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(4432),_common_starksdk_starksdk__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4611),_common_utils_path__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(1055),_common_network_network_manager__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(4729),_common_fs_filesystem__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(1987),_common_unity_unity_js_func_hook__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(6636),_common_define__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(534),_common_unity_memory_hook__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6219),_common_starksdk_module_touchable__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6292),_common_error_error_reporter__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(9093),_common_unity_asset_bundle_abfs_syscalls__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(3849),_common_unity_asset_bundle_abfs__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(4462),_common_unity_unity_web_request__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(4584),_debug_summary_info__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(6269),_common_utils_platform__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(3131),_video_unity_tt_video__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(3218),_debug_logger__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(1138),_inner_web_assembly__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(2718),_utils_event_emitter__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__(4501),globalUnityInstance,MAIN_CALLED_EVENT_NAME="mainCalled",mainCalledEmitter=new _utils_event_emitter__WEBPACK_IMPORTED_MODULE_29__.b;function formatQuitError(e){if(null==e)return"no error object";if(e instanceof Error){var t=e.message||"",n=e.stack||"";return t?n?"".concat(t,"\n").concat(n):t:n||String(e)}if("string"==typeof e)return e;var r=e;return(null==r?void 0:r.message)||(null==r?void 0:r.stack)||String(e)}var BaseUnityInstance=function(){function BaseUnityInstance(){this.StarkFrameCallbacks=Object.create(null),this.mainCalledTime=0,globalUnityInstance=this,Object.assign(globalThis,{globalUnityInstance}),this.init()}return BaseUnityInstance.prototype.init=function(){this.canvas=null,this.indexedDB=window.indexedDB,_common_starksdk_starksdk__WEBPACK_IMPORTED_MODULE_12__.a.CanUseLocalStorage()&&(0,_common_utils_migrate_data__WEBPACK_IMPORTED_MODULE_11__.Ko)()&&(this.indexedDB=void 0,_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("indexedDB disabled")),this.registerAnimationFrameCollector(),this.CachedXMLHttpRequest=void 0,this.preRun=[this.processDataJob.bind(this),this.registerFSTrackingDelegate.bind(this)],this.postRun=[],this.webglContextAttributes={premultipliedAlpha:1,preserveDrawingBuffer:1,majorVersion:1,minorVersion:0},this.fetchWithProgress=_common_unity_unity_fetch_with_progress__WEBPACK_IMPORTED_MODULE_1__.G,this.deinitializers=[],this.SystemInfo=(0,_common_unity_unity_loader__WEBPACK_IMPORTED_MODULE_2__.y)(),this.CachedXMLHttpRequestDisable=!0,this.isMainCalled=!1},BaseUnityInstance.prototype.setStreamingAssetsUrl=function(){(0,_common_unity_unity_version__WEBPACK_IMPORTED_MODULE_4__.i)().major>=2020?this.streamingAssetsUrl=_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.streamingAssetsUrl:this.streamingAssetsUrl=function(){return _common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.streamingAssetsUrl}},BaseUnityInstance.prototype.instantiateWasm=function(e,t){var n,r=this;_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] instantiateWasm_start"),this.beforeInstantiateWasm(e),_debug_summary_info__WEBPACK_IMPORTED_MODULE_24__.Zm.feWebGLDoRunPoint.checkValidTimestamp("wasmInstantiateStart")||_debug_summary_info__WEBPACK_IMPORTED_MODULE_24__.Zm.feWebGLDoRunPoint.startWasmInstantiate();var i=!1;this.wasmModule instanceof _inner_web_assembly__WEBPACK_IMPORTED_MODULE_28__.T.Module?(n=this.wasmModule,i=!0,_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] wasm_using_precompiled")):(n=this.mainWasmBinary,_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] wasm_compile_start"));var o=Date.now();return _inner_web_assembly__WEBPACK_IMPORTED_MODULE_28__.T.instantiate(n,e).then(function(e){var a=Date.now()-o;_debug_summary_info__WEBPACK_IMPORTED_MODULE_24__.Zm.feWebGLDoRunPoint.endWasmInstantiate();var s,u,c=_debug_summary_info__WEBPACK_IMPORTED_MODULE_24__.Zm.feWebGLDoRunPoint.getWasmInstantiateCost();_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] wasm_instantiate_done | instantiate: ".concat(a,"ms | preCompiled: ").concat(i)),e instanceof _inner_web_assembly__WEBPACK_IMPORTED_MODULE_28__.T.Instance?(s=e,u=n):(s=e.instance,u=e.module),r.asm=s.exports,r.wasmModule=u,r.onWasmInstantiated(s,u,t,c)}).catch(function(e){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("wasm instantiate failed, reason: "+e),"function"==typeof r.exceptionOccurredCallback&&r.exceptionOccurredCallback("wasm instantiate failed, reason: ".concat(e))}),{}},BaseUnityInstance.prototype.doRunUnityModule=function(e,t){var n,r;_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] doRunUnityModule_start"),this.setStreamingAssetsUrl(),_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.enableWasmSplit&&(this.wasmTableSize=_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.wasmTableSize,this.wasmMaxTableSize=_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.wasmTableSize),(0,_common_config_config__WEBPACK_IMPORTED_MODULE_7__.qP)()&&1==_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.enableWasmCollect&&(0,_common_wasmhook_wasmhook__WEBPACK_IMPORTED_MODULE_8__.LJ)();try{if("function"==typeof e){if(this.wasmInstantiatedCallback=t.wasmInstantiatedCallback,this.exceptionOccurredCallback=t.exceptionOccurredCallback,this.mainCalledCallback=t.mainCalledCallback,this.postRun.push(this.mainCalled.bind(this)),_common_unbridge_UNBridge__WEBPACK_IMPORTED_MODULE_9__.A.start({onSendMessage:this.onSendMessage.bind(this)}),_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] unityModule_call_start"),this.beforeCallUnityModule(),e(this),_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] unityModule_call_end"),(0,_common_unity_unity_filesystem__WEBPACK_IMPORTED_MODULE_6__.wU)(this.StarkFS),_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.assetBundleFSEnabled){var i=null!==(n=_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.assetBundleBufferTTL)&&void 0!==n?n:5,o=null!==(r=_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.assetBundleBufferCapacity)&&void 0!==r?r:128;_common_unity_asset_bundle_abfs__WEBPACK_IMPORTED_MODULE_22__.NK.setup(i,1024*o*1024),_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("Asset Bundle Filesystem Enabled (ttl: ".concat(i,"s, capacity: ").concat(o,"MB)"))}setupRuntimeForUnity2021(),t.unityModuleInstantiatedCallback&&t.unityModuleInstantiatedCallback()}else"function"==typeof t.exceptionOccurredCallback&&(_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("UnityModule(".concat(typeof e,") is not a function")),t.exceptionOccurredCallback("UnityModule(".concat(typeof e," is not a function")))}catch(e){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("exception occurred: "+e),"function"==typeof t.exceptionOccurredCallback&&t.exceptionOccurredCallback(String(e)),(0,_common_error_error_reporter__WEBPACK_IMPORTED_MODULE_20__.M)(e)}Object.assign(globalThis,{unityFramework:void 0,UnityModule:void 0})},BaseUnityInstance.prototype.get=function(e){return this[e]},BaseUnityInstance.prototype.beforeCallUnityModule=function(){"object"!=typeof globalThis.UnityNamespace&&(globalThis.UnityNamespace={}),globalThis.UnityNamespace.UnityGLAdapter=_common_unity_unity_gl_adapter__WEBPACK_IMPORTED_MODULE_10__.A,globalThis.UnityNamespace.UnityWebAdapter=_common_unity_unity_web_request__WEBPACK_IMPORTED_MODULE_23__.J,globalThis.UnityNamespace.UnitySystemAdapter=_common_unity_asset_bundle_abfs_syscalls__WEBPACK_IMPORTED_MODULE_21__.o,_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("using tt video adapter"),globalThis.UnityNamespace.UnityVideoAdapter=_video_unity_tt_video__WEBPACK_IMPORTED_MODULE_26__.g,_common_starksdk_module_touchable__WEBPACK_IMPORTED_MODULE_19__.w.setup(this.canvas)},BaseUnityInstance.prototype.setInterval=function(e,t){return setInterval(e,t)},BaseUnityInstance.prototype.clearInterval=function(e){clearInterval(e)},BaseUnityInstance.prototype.onAbort=function(e){globalUnityInstance.isQuit=!0,_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("onAbort: "+e),"function"==typeof globalUnityInstance.exceptionOccurredCallback&&globalUnityInstance.exceptionOccurredCallback(String(e))},BaseUnityInstance.prototype.print=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.debug(e,t)},BaseUnityInstance.prototype.printErr=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error(e,t)},BaseUnityInstance.prototype.quit=function(e,t){if(globalUnityInstance.isQuit=!0,"function"==typeof globalUnityInstance.exceptionOccurredCallback){var n=formatQuitError(t);globalUnityInstance.exceptionOccurredCallback("quit: status: ".concat(e,", message: ").concat(n))}throw t},BaseUnityInstance.prototype.QuitCleanup=function(){for(var e=0;e<globalUnityInstance.deinitializers.length;e++)globalUnityInstance.deinitializers[e]();globalUnityInstance.deinitializers=[],"function"==typeof globalUnityInstance.onQuit&&globalUnityInstance.onQuit()},BaseUnityInstance.prototype.onQuit=function(){(0,_common_starksdk_module_exit_app__WEBPACK_IMPORTED_MODULE_3__.C)()},BaseUnityInstance.prototype.monitorRunDependencies=function(e){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.debug("current runDependencies: ".concat(e))},BaseUnityInstance.prototype.mainCalled=function(){var e=this;_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] mainCalled_start"),globalUnityInstance.isAbort||globalUnityInstance.isQuit||(this.isMainCalled=!0,this.mainCalledTime=Date.now(),(0,_common_timing_timing__WEBPACK_IMPORTED_MODULE_5__.T)(),"function"==typeof this.mainCalledCallback&&this.mainCalledCallback(),this.onMainCalled(),_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] mainCalled_end"),requestAnimationFrame(function(){var t=Date.now(),n=t-e.mainCalledTime,r=globalThis.__lifecycleStartTime||0,i=r>0?t-r:0;_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] firstFrame | total: ".concat(i,"ms | mainCalledToFirstFrame: ").concat(n,"ms"))}))},BaseUnityInstance.prototype.onMainCalled=function(){mainCalledEmitter._emit(MAIN_CALLED_EVENT_NAME),(0,_common_wasmhook_wasmhook__WEBPACK_IMPORTED_MODULE_8__.Gm)()},BaseUnityInstance.prototype.initGlobal=function(){this.asm&&"function"==typeof this.asm.initGlobal&&(_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.debug("init global."),this.asm.initGlobal())},BaseUnityInstance.prototype.instantiateSubWasm=function(){return!1},BaseUnityInstance.prototype.setSubWasmLoaded=function(){this.asm&&("function"==typeof this.asm.setSubWasmLoaded?(_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.debug("make sub wasm loaded."),this.asm.setSubWasmLoaded()):_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("setSubWasmLoaded is not a function"),this.subWasmBinary=null)},BaseUnityInstance.prototype.beforeInstantiateWasm=function(e){if((0,_common_unity_unity_js_func_hook__WEBPACK_IMPORTED_MODULE_16__.p)(e),this.importObject=e||{},_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.enableWasmSplit){var t=getGlobalVarList();Object.assign(_common_wasmhook_wasmhook__WEBPACK_IMPORTED_MODULE_8__.Ay,t),_common_wasmhook_wasmhook__WEBPACK_IMPORTED_MODULE_8__.Ay.waitTableId||(_common_wasmhook_wasmhook__WEBPACK_IMPORTED_MODULE_8__.Ay.waitTableId=new _inner_web_assembly__WEBPACK_IMPORTED_MODULE_28__.T.Global({value:"i32",mutable:!0},0))}this.importObject.scwebgl=_common_wasmhook_wasmhook__WEBPACK_IMPORTED_MODULE_8__.Ay},BaseUnityInstance.prototype.processDataJob=function(){var e=Date.now();if(_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] processDataJob_start"),!this.rawData)return _debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("rawData not ready, processDataJob will be skipped. This should not happen if resources are loaded correctly."),void _debug_logger__WEBPACK_IMPORTED_MODULE_27__.xG.error("[UnityInstance] rawData not ready when processDataJob called");if("function"!=typeof this.FS_createPath)return _debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("FS_createPath is not a function, processDataJob will be skipped"),void _debug_logger__WEBPACK_IMPORTED_MODULE_27__.xG.error("[UnityInstance] FS_createPath is not a function");if("function"!=typeof this.FS_createDataFile)return _debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("FS_createDataFile is not a function, processDataJob will be skipped"),void _debug_logger__WEBPACK_IMPORTED_MODULE_27__.xG.error("[UnityInstance] FS_createDataFile is not a function");var t=this.rawData;_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.debug("processDataJob begin...");var n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=this.getUnityWebDataPrefix(),i=0;if(String.fromCharCode.apply(null,t.subarray(i,i+r.length))===r){i+=r.length;var o=n.getUint32(i,!0);for(i+=4;i<o;){var a=n.getUint32(i,!0);i+=4;var s=n.getUint32(i,!0);i+=4;var u=n.getUint32(i,!0);i+=4;var c=String.fromCharCode.apply(null,t.subarray(i,i+u));i+=u;for(var l=0,d=c.indexOf("/",l)+1;d>0;l=d,d=c.indexOf("/",l)+1)this.FS_createPath(c.substring(0,l),c.substring(l,d-1),!0,!0);this.FS_createDataFile(c,null,t.subarray(a,a+s),!0,!0,!0)}var f=Date.now()-e;_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] processDataJob_end | cost: ".concat(f,"ms | fileCount: ").concat(t.length)),this.releaseRawData()}else _debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("processDataJob: unknown data format")},BaseUnityInstance.prototype.releaseRawData=function(){if(this.rawData){var e=this.rawData.byteLength;this.rawData=null,_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Memory] rawData released, freed: ".concat((e/1024/1024).toFixed(2),"MB"))}},BaseUnityInstance.prototype.registerFSTrackingDelegate=function(){if(this.StarkFS)if(this.StarkFS.trackingDelegate||(this.StarkFS.trackingDelegate={}),this.indexedDB){var e=this.StarkFS.trackingDelegate;e.onWriteToFile=_common_unity_unity_filesystem__WEBPACK_IMPORTED_MODULE_6__.Ay.delegate.onWriteToFile,e.onDeletePath=_common_unity_unity_filesystem__WEBPACK_IMPORTED_MODULE_6__.Ay.delegate.onDeletePath,e.onMovePath=_common_unity_unity_filesystem__WEBPACK_IMPORTED_MODULE_6__.Ay.delegate.onMovePath}else _debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.debug("indexedDB disabled, not need to register fs tracking.")},BaseUnityInstance.prototype.onWasmInstantiated=function(e,t,n,r){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] onWasmInstantiated_start"),this.beforeReceiveInstance();var i=Date.now();n(e,t);var o=Date.now()-i;_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] receiveInstance_done | cost: ".concat(o,"ms")),_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.enableWasmSplit&&(this.findWasmTableAndMemory(),this.initGlobal()),this.afterReceiveInstance(),_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] afterReceiveInstance_done"),"function"==typeof this.wasmInstantiatedCallback&&this.wasmInstantiatedCallback(r)},BaseUnityInstance.prototype.beforeReceiveInstance=function(){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.info("[Lifecycle] beforeReceiveInstance_start")},BaseUnityInstance.prototype.prepareSubCode=function(){},BaseUnityInstance.prototype.afterReceiveInstance=function(){(0,_common_unity_memory_hook__WEBPACK_IMPORTED_MODULE_18__.rY)()},BaseUnityInstance.prototype.findWasmTableAndMemory=function(){var e,t;if(!this.importObject.env||!this.importObject.env.table||!this.importObject.env.memory)for(var n in this.asm)if(this.asm[n]instanceof _inner_web_assembly__WEBPACK_IMPORTED_MODULE_28__.T.Table?t=this.asm[n]:this.asm[n]instanceof _inner_web_assembly__WEBPACK_IMPORTED_MODULE_28__.T.Memory&&(e=this.asm[n]),t&&e)break;this.importObject.scwebgl=this.importObject.scwebgl||{},t&&Object.assign(this.importObject.scwebgl,{table:t}),e&&Object.assign(this.importObject.scwebgl,{memory:e})},BaseUnityInstance.prototype.loadGameJsIfNeed=function(){var e=_common_utils_path__WEBPACK_IMPORTED_MODULE_13__.A.join(_common_define__WEBPACK_IMPORTED_MODULE_17__.e.PACKAGE_DATA_PATH,_common_config_config__WEBPACK_IMPORTED_MODULE_7__.q7);if(_common_fs_filesystem__WEBPACK_IMPORTED_MODULE_15__.fs.accessSync(e)&&1==_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.gameJsV2){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.debug("loading game.js");var t=(0,_common_utils_platform__WEBPACK_IMPORTED_MODULE_25__.un)()?e:_common_config_config__WEBPACK_IMPORTED_MODULE_7__.q7;try{globalThis.loadScript(t)}catch(e){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.warn("load ".concat(t," failed"),e)}}else _debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.debug("game.js not found, skip loading")},BaseUnityInstance.prototype.loadCpJsFilesIfNeed=function(){var e;return(0,tslib__WEBPACK_IMPORTED_MODULE_0__.sH)(this,void 0,void 0,function(){var t,n;return(0,tslib__WEBPACK_IMPORTED_MODULE_0__.YH)(this,function(r){switch(r.label){case 0:return!(t=_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.cpJsFiles)||"object"!=typeof t||t.length<1?[2]:(n=null===(e=globalThis.GameGlobal)||void 0===e?void 0:e.pluginGame)&&"function"==typeof n.ensureStreamingAssetsLoaded?[4,n.ensureStreamingAssetsLoaded()]:[3,2];case 1:r.sent(),r.label=2;case 2:return _debug_logger__WEBPACK_IMPORTED_MODULE_27__.xG.info("start load cp js files... total count: ".concat(t.length)),this.loadCpJsFileForPlugin(t),[2]}})})},BaseUnityInstance.prototype.loadCpJsFilesFromRemote=function(cpJsFiles){return(0,tslib__WEBPACK_IMPORTED_MODULE_0__.sH)(this,void 0,void 0,function(){var getUrl,tasks,map,_loop_1,i,i,filename,url,code;return(0,tslib__WEBPACK_IMPORTED_MODULE_0__.YH)(this,function(_a){switch(_a.label){case 0:for(getUrl=function(e){return _common_utils_path__WEBPACK_IMPORTED_MODULE_13__.A.join(_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.streamingAssetsUrl,"__cp_js_files",e)},tasks=[],map=new Map,_loop_1=function(e){var t=cpJsFiles[e],n=getUrl(t);tasks.push(new Promise(function(e){_common_network_network_manager__WEBPACK_IMPORTED_MODULE_14__.Ay.request({url:n,isText:!0,onload:function(n){map.set(t,n),e(0)},onerror:function(t){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("load ".concat(n," failed: ").concat(t)),e(0)}})}))},i=0;i<cpJsFiles.length;i++)_loop_1(i);return[4,Promise.all(tasks)];case 1:for(_a.sent(),i=0;i<cpJsFiles.length;i++)if(filename=cpJsFiles[i],url=getUrl(filename),code=map.get(filename),code)try{_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.debug("load cp js file ".concat(cpJsFiles[i],"...")),eval(code)}catch(e){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("eval ".concat(url," failed: ").concat(e,", code: ").concat(code))}else _debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.error("load ".concat(url," failed: code is ").concat(code));return[2]}})})},BaseUnityInstance.prototype.loadCpJsFilesFromPackage=function(cpJsFiles){cpJsFiles.forEach(function(filename){try{var path=_common_utils_path__WEBPACK_IMPORTED_MODULE_13__.A.join(_common_define__WEBPACK_IMPORTED_MODULE_17__.e.PACKAGE_DATA_PATH,"StreamingAssets/__cp_js_files",_common_utils_path__WEBPACK_IMPORTED_MODULE_13__.A.getBaseName(filename));if(_common_fs_filesystem__WEBPACK_IMPORTED_MODULE_15__.fs.accessSync(path)){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.Am.debug("load cp js file ".concat(filename,"..."));var code=_common_fs_filesystem__WEBPACK_IMPORTED_MODULE_15__.fs.readFileSync(path,"utf-8");eval(code)}}catch(e){_debug_logger__WEBPACK_IMPORTED_MODULE_27__.xG.error("load cp js file ".concat(filename," fail: ").concat(e)),(0,_common_error_error_reporter__WEBPACK_IMPORTED_MODULE_20__.b)(e)}})},BaseUnityInstance.prototype.loadCpJsFileForPlugin=function(e){var t,n,r="undefined"!=typeof require?require:__webpack_require__(5927);try{for(var i=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Ju)(e),o=i.next();!o.done;o=i.next()){var a=o.value;_debug_logger__WEBPACK_IMPORTED_MODULE_27__.xG.info("load cp js file for plugin ".concat(a,"...")),r(_common_utils_path__WEBPACK_IMPORTED_MODULE_13__.A.join("StreamingAssets","__cp_js_files",_common_utils_path__WEBPACK_IMPORTED_MODULE_13__.A.getBaseName(a)))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},BaseUnityInstance.prototype.onSendMessage=function(e){this.SendMessage(_common_unbridge_UNBridge__WEBPACK_IMPORTED_MODULE_9__.A.unityObjectName,"HandleMsgFromNative",e)},BaseUnityInstance.prototype.getUnityWebDataPrefix=function(){return"tuanjie"===_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.unityDistribution?"TuanjieWebData1.0\0":"UnityWebData1.0\0"},BaseUnityInstance.prototype.registerAnimationFrameCollector=function(){var e=this,t=window.requestAnimationFrame;window.requestAnimationFrame=function(n){var r=!1,i=function(t){r||(r=!0,n(t),delete e.StarkFrameCallbacks[o],e.StarkFrameCallLastTime=t)},o=t(i);return e.StarkFrameCallbacks[o]=i,o};var n=window.cancelAnimationFrame;window.cancelAnimationFrame=function(t){n(t),delete e.StarkFrameCallbacks[t]}},BaseUnityInstance.prototype.triggerAnimationFrame=function(){var e=this.StarkFrameCallLastTime;for(var t in document.timeline&&(e=document.timeline.currentTime),this.StarkFrameCallbacks)this.StarkFrameCallbacks[t](e)},BaseUnityInstance.prototype.setDevicePixelRatio=function(e){this.devicePixelRatio=e},BaseUnityInstance}();function dynCall(e,t,n){return n&&n.length?globalUnityInstance.get("dynCall_"+e).apply(null,[t].concat(n)):globalUnityInstance.get("dynCall_"+e).call(null,t)}function setupRuntimeForUnity2021(){var e=(0,_common_unity_unity_version__WEBPACK_IMPORTED_MODULE_4__.i)(),t=e.major,n=e.minor;(t>2021||2021==t&&n>=2)&&(void 0===globalThis.Runtime?Object.assign(globalThis,{Runtime:{dynCall}}):"function"!=typeof globalThis.Runtime.dynCall&&(globalThis.Runtime.dynCall=dynCall))}function getGlobalVarList(){if(!_common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.globalVarList)return{};var e={};return _common_config_config__WEBPACK_IMPORTED_MODULE_7__.u.globalVarList.forEach(function(t){t.name&&t.type&&(e[t.name]=new _inner_web_assembly__WEBPACK_IMPORTED_MODULE_28__.T.Global({value:t.type,mutable:t.mutable},0))}),e}},3849:(e,t,n)=>{"use strict";n.d(t,{O:()=>m,o:()=>_});var r=n(3487),i=n(1626),o=n(4462),a=n(1138);function s(e){if((0,o.qK)()&&a.xe.error("SYSCALL handleSyscallFSException "+e),void 0===r.qO.StarkFS||!(e instanceof r.qO.StarkFS.ErrnoError)){if(!((0,i.i)().major<=2021))throw e;return r.qO.abort(e),!0}return!1}function u(e){var t=r.qO.UTF8ToString(e);if(!t||!o.NK)return t;var n=t.replace(/^\/+/,"");if(n.toLowerCase().startsWith("streamingassets/"))return n;if(o.NK.isRegisteredAssetBundlePath(t)){var i=o.NK.url2path(t);return(0,o.qK)()&&a.xe.error("UnityFS getStr (".concat(t,") -> ").concat(i)),i}return t}function c(e){return e&&o.NK?o.NK.canonicalAbfsKey(e):e}function l(e,t){var n=r.qO.StarkSYSCALLS;if("function"==typeof(null==n?void 0:n.doAccess))return n.doAccess(e,t);try{return r.qO.StarkFS.stat(e),0}catch(e){return s(e)?-1:-e.errno}}function d(e){var t;if((null===o.NK||void 0===o.NK?void 0:o.NK.isRegisteredAssetBundleFD(e))?(t=o.NK.fd2stream.get(e),(0,o.qK)()&&a.xe.warn("UnityFS getStreamFromFD ".concat(e," -> ").concat(JSON.stringify({fd:t.fd,path:t.path,flags:t.flags,seekable:t.seekable,position:t.position,ungotten:t.ungotten,node:t.node,error:t.error})))):t=r.qO.StarkFS.getStream(e),!t)throw new r.qO.StarkFS.ErrnoError(8);return t}function f(e,t){var n=r.qO.StarkFS,i=r.qO.StarkSYSCALLS;try{var u=i.getStreamFromFD(e);return(0,o.qK)()&&a.xe.error("SYSCALL ___syscall_fstat64(".concat(e,") ").concat(u)),(null===o.NK||void 0===o.NK?void 0:o.NK.isRegisteredAssetBundleFD(e))?i.doStat(o.NK.stat,u.path,t):i.doStat(n.stat,u.path,t)}catch(e){if(!s(e))return-e.errno}}function h(e,t){var n=r.qO.StarkFS,i=r.qO.StarkSYSCALLS;try{var u=i.getStr(e),l=c(u=p(u));return(0,o.qK)()&&a.xe.error("SYSCALL ___syscall_stat64(".concat(e,") ").concat(u)),(null===o.NK||void 0===o.NK?void 0:o.NK.isRegisteredAssetBundlePath(l))?i.doStat(o.NK.stat,l,t):i.doStat(n.stat,u,t)}catch(e){if(!s(e))return-e.errno}}function p(e){if(e.startsWith("/scfile:/pkg")){var t=e.replace("/scfile:/pkg","scfile://pkg");return(0,o.qK)()&&a.xe.warn("SYSCALL fix_2022(".concat(e,") ").concat(t)),t}return e}function m(){var e=r.qO.StarkSYSCALLS;void 0!==e?(e.getStr=u,e.getStreamFromFD=d):a.xe.error("Asset Bundle Filesystem override syscalls failed.")}var _={___sys_open:function(e,t,n){var i=r.qO.StarkFS,u=r.qO.StarkSYSCALLS;u.varargs=n;try{var l=u.getStr(e),d=c(l);if((0,o.qK)()&&a.xe.error("SYSCALL ___sys_open(".concat(e,") ").concat(l)),o.NK.isRegisteredAssetBundlePath(d))return o.NK.open(d,t,r.qO.StarkMEMFS.stream_ops);var f=n?u.get():0;return i.open(l,t,f).fd}catch(e){if(!s(e))return-e.errno}},___sys_stat64:h,___sys_fstat64:f,___sys_access:function(e,t){var n=r.qO.StarkSYSCALLS;try{var i=n.getStr(e),u=c(i);return(0,o.qK)()&&a.xe.error("SYSCALL ___sys_access(".concat(e,") ").concat(i)),(null===o.NK||void 0===o.NK?void 0:o.NK.isRegisteredAssetBundlePath(u))?o.NK.path2fd.has(u)?0:o.NK.access(u,t):l(i,t)}catch(e){if(!s(e))return-e.errno}},___syscall_openat:function(e,t,n,i){var u=r.qO.StarkFS,l=r.qO.StarkSYSCALLS;l.varargs=i;try{var d=l.getStr(t),f=c(d=p(d=l.calculateAt(e,d)));if((0,o.qK)()&&a.xe.error("SYSCALL ___syscall_openat(".concat(t,") ").concat(d)),o.NK.isRegisteredAssetBundlePath(f))return o.NK.open(f,n,r.qO.StarkMEMFS.stream_ops);var h=i?l.get():0;return u.open(d,n,h).fd}catch(e){if(!s(e))return-e.errno}},___syscall_stat64:h,___syscall_fstat64:f,___syscall_faccessat:function(e,t,n,i){var u=r.qO.StarkSYSCALLS;try{var d=u.getStr(t),f=c(d=p(d=u.calculateAt(e,d)));return(0,o.qK)()&&a.xe.error("SYSCALL ___syscall_faccessat(".concat(t,") ").concat(d," abfsKey=").concat(f)),(null===o.NK||void 0===o.NK?void 0:o.NK.isRegisteredAssetBundlePath(f))?o.NK.path2fd.has(f)?0:o.NK.access(f,n):l(d,n)}catch(e){if(!s(e))return-e.errno}}}},3877:(e,t,n)=>{"use strict";n.d(t,{T:()=>p});var r,i=n(5258),o=n(9406),a=n(7605),s=n(1138),u=(n(3131),n(169),n(9809)),c=s.Vy.getLogger("Timing"),l={};function d(){return r||(r=Date.now),r()}function f(){var e=(0,o.W)().getHostInfoSync();Object.assign(l,e)}var h=function(){function e(){this._requestId=null,this.started=!1,this.listeners=[],this._tick=this._tick.bind(this),this.update=this.update.bind(this),this.elapsedMS=0,this.lastTime=0}return e.prototype.addListener=function(e){(0,a.Tn)(e)&&this.listeners.push(e)},e.prototype._tick=function(e){this._requestId=null,this.started&&(this.update(e),this.started&&null===this._requestId&&(this._requestId=requestAnimationFrame(this._tick)))},e.prototype.update=function(e){void 0===e&&(e=d());var t=this.elapsedMS=e-this.lastTime;t<0&&(t=this.elapsedMS=1e3/60),this.lastTime=e;for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];null==r||r(t)}},e.prototype.start=function(){this.started||(this.started=!0,null===this._requestId&&(this.lastTime=d(),this._requestId=requestAnimationFrame(this._tick)))},e.prototype.stop=function(){this.started&&(this.started=!1,null!==this._requestId&&(this._requestId=null))},e}();!function(){function e(e){void 0===e&&(e={interval:60,url:"",switch:!1}),this._totalTime=0,this._collectInterval=0,(e=Object.assign({},e)).interval=Math.floor(1e3*e.interval)||6e4,this.options=Object.assign({interval:6e4,url:"",switch:!1},e),this.ticker=new h,this.handleCheckRafInterval=this.handleCheckRafInterval.bind(this),this.handleOnShow=this.handleOnShow.bind(this),this.handleOnHide=this.handleOnHide.bind(this),this.onHideRecordTime=0,this.appEnterGroundDeltaMS=0}e.prototype.start=function(){jssdk.onShow(this.handleOnShow),jssdk.onHide(this.handleOnHide),this.ticker.addListener(this.handleCheckRafInterval),this.ticker.start()},e.prototype.handleOnShow=function(){this.onHideRecordTime&&(this.appEnterGroundDeltaMS=d()-this.onHideRecordTime),this.onHideRecordTime=0,l.isLogin||f()},e.prototype.handleOnHide=function(){this.onHideRecordTime=d()},e.prototype.handleCheckRafInterval=function(e){this.appEnterGroundDeltaMS&&(this.appEnterGroundDeltaMS>100&&e>this.appEnterGroundDeltaMS&&(e-=this.appEnterGroundDeltaMS),this.appEnterGroundDeltaMS=0),this._totalTime+=e,this._collectInterval+=e;var t=this.options.interval;this._collectInterval>=t&&(this._collectInterval=0,this.submitData())},e.prototype.submitData=function(){var e,t,n;return(0,i.sH)(this,void 0,void 0,function(){var r,a,s,d,h,p,m;return(0,i.YH)(this,function(i){switch(i.label){case 0:if(r=this.options,a=r.interval,s=r.url,(d=Math.floor(this._totalTime/a))<1||!l.isLogin)return f(),[2];h=d*a,p=!1,this._totalTime-=h,i.label=1;case 1:return i.trys.push([1,,3,4]),[4,(0,o.W)().fetch(s,{method:"POST",header:{"content-type":"application/json; charset=UTF-8"},data:{duration:Math.floor(h/1e3),app_id:u.B8.gameModel.appId,uid:null!==(e=l.uid)&&void 0!==e?e:"",did:Number(l.did)||0,aid:Number(l.aid)||0,os_version:null!==(t=l.osVersion)&&void 0!==t?t:"",device_platform:null!==(n=l.devicePlatform)&&void 0!==n?n:"",app_type:2}}).response];case 2:return m=i.sent(),c.debug("report timing. statusCode: ".concat(null==m?void 0:m.statusCode,", data: ").concat(JSON.stringify(null==m?void 0:m.data))),(0,u.VS)()&&c.debug(JSON.stringify(m)),200===m.statusCode&&(p=!0),[3,4];case 3:return p||(this._totalTime+=h),[7];case 4:return[2]}})})}}();function p(){}},3987:(e,t,n)=>{e.exports={h32:n(7903),h64:n(6133)}},4134:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1138).Vy.getLogger("IndexedDB");const i=function(){function e(e,t,n){this.db=null,this.dbName=e,this.storeName=t,this.version=n}return e.prototype.isOpen=function(){return null!=this.db},e.prototype.setup=function(e,t){var n=this;if(this.db)e&&e(null);else{var i,o=window.indexedDB||window.webkitIndexedDB;try{i=o.open(this.dbName,this.version)}catch(t){return r.error("Open db failed: ".concat(t)),void(e&&e(t))}if(!i)return r.error("Open db failed"),void(e&&e("Open db failed"));var a=!1,s=setTimeout(function(){a||(r.error("Database open request timed out!"),e&&e("Database open request timed out"))},5e3);i.onupgradeneeded=function(e){r.info("Upgrading ".concat(n.dbName," to version ").concat(e.target.result.version)),t&&t(e.target)},i.onblocked=function(t){r.error("onblocked"),a=!0,clearTimeout(s),e&&e(null)},i.onsuccess=function(){var t=i.result;r.info("Open ".concat(n.dbName," succeed, version ").concat(t.version)),n.db=t,a=!0,clearTimeout(s),e&&e(null)},i.onerror=function(t){var n,o,u,c;r.error("Can not open indexedDB database: ".concat(null===(n=i.error)||void 0===n?void 0:n.name," ").concat(null===(o=i.error)||void 0===o?void 0:o.code)),a=!0,clearTimeout(s),e&&e("Can not open indexedDB database: ".concat(null===(u=i.error)||void 0===u?void 0:u.name," ").concat(null===(c=i.error)||void 0===c?void 0:c.code))}}},e.prototype.close=function(){if(this.db){try{this.db.close()}catch(e){}this.db=null}},e.prototype.read=function(e,t){if(this.db)if(e)try{var n=this.db.transaction([this.storeName],"readonly"),i=n.objectStore(this.storeName).get(e);i.onerror=function(r){var i,o;t("failed to get request from indexedDB cache, path: ".concat(e," ").concat(null===(i=n.error)||void 0===i?void 0:i.name," ").concat(null===(o=n.error)||void 0===o?void 0:o.code),null)},i.onsuccess=function(e){var n=e.target.result;n?t(null,n):t("record not found",null)}}catch(n){r.error("".concat(e," read exception: ").concat(n)),t(String(n),null)}else t("empty path",null);else t("db not ready",null)},e.prototype.write=function(e,t,n){if(!this.db)return r.error("db not ready"),void(n&&n("db not ready"));if(t)try{var i=this.db.transaction([this.storeName],"readwrite"),o=i.objectStore(this.storeName),a=void 0;(a=e?o.put(t,e):o.put(t)).onerror=function(t){var o,a;r.error("failed to put request into indexedDB cache, path: ".concat(e,", ").concat(null===(o=i.error)||void 0===o?void 0:o.name," ").concat(null===(a=i.error)||void 0===a?void 0:a.code)),n&&n("failed to put request into indexedDB cache")},a.onsuccess=function(e){n&&n(null)}}catch(t){e&&r.error("".concat(e," write exception: ").concat(t)),n&&n(String(t))}else n&&n("empty data")},e.prototype.rename=function(e,t,n){var r=this;this.read(e,function(i,o){!i&&o?r.write(t,o,function(t){t?n(t):r.delete(e,function(e){n(e)})}):n(i)})},e.prototype.delete=function(e,t){if(this.db)if(e)try{var n=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(e);n.onerror=function(e){t&&t("failed to delete request from indexedDB cache")},n.onsuccess=function(n){r.debug("succeed to delete file: ".concat(e)),t&&t(null)}}catch(e){r.error("delete exception: ".concat(e)),t&&t(String(e))}else t&&t("empty path");else t&&t("db not ready")},e.prototype.deleteFiles=function(e,t){this.deleteFilesRecursive(e,0,0,t)},e.prototype.deleteFilesByIndex=function(e,t,n){var r=this;this.listIndexedFilesByPath(e,t,function(e){r.deleteFilesRecursive(e,0,0,n)})},e.prototype.listFiles=function(e){if(!this.db)return r.error("db not ready"),void e([]);try{var t=new Array;this.db.transaction([this.storeName],"readonly").objectStore(this.storeName).openKeyCursor().onsuccess=function(n){var r=n.target.result;if(!r)return e(t);t.push(r.primaryKey),r.continue()}}catch(t){return r.error(t),e([])}},e.prototype.listIndexedFilesByPath=function(e,t,n){if(!this.db)return r.error("db not ready"),void n([]);try{var i=new Array;this.db.transaction([this.storeName],"readonly").objectStore(this.storeName).index(e).openKeyCursor(IDBKeyRange.only(t)).onsuccess=function(e){var t=e.target.result;if(!t)return n(i);i.push(t.primaryKey),t.continue()}}catch(e){return r.error(e),n([])}},e.prototype.listIndexedFiles=function(e,t){if(!this.db)return r.error("db not ready"),void t([]);try{var n=new Array;this.db.transaction([this.storeName],"readonly").objectStore(this.storeName).index(e).openKeyCursor().onsuccess=function(e){var r=e.target.result;if(!r)return t(n);n.push(r.primaryKey),r.continue()}}catch(e){return r.error(e),t([])}},e.prototype.deleteFilesRecursive=function(e,t,n,r){var i=this;t<e.length?this.delete(e[t],function(o){o||(n+=1),i.deleteFilesRecursive(e,t+1,n,r)}):r&&r(n)},e}()},4394:(e,t,n)=>{"use strict";n.d(t,{Dz:()=>a,k7:()=>i});var r=n(5258),i=function(){function e(){}return e.debug=function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.canLog("DEBUG",t)&&console.debug.apply(console,(0,r.fX)([e.getPrefix("DEBUG",t)+n],(0,r.zs)(i),!1))},e.info=function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.canLog("INFO",t)&&console.info.apply(console,(0,r.fX)([e.getPrefix("INFO",t)+n],(0,r.zs)(i),!1))},e.warn=function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.canLog("WARN",t)&&console.warn.apply(console,(0,r.fX)([e.getPrefix("WARN",t)+n],(0,r.zs)(i),!1))},e.error=function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.canLog("ERROR",t)&&console.error.apply(console,(0,r.fX)([e.getPrefix("ERROR",t)+n],(0,r.zs)(i),!1))},e.canLog=function(e,t){return!(this.levelBlocklist.indexOf(e)>=0)&&!(this.tagBlocklist.indexOf(t)>=0)},e.getPrefix=function(t,n){return"".concat(t,"/").concat(e.LOG_PREFIX).concat(n,": ")},e.LOG_PREFIX="JSFW_",e.levelBlocklist=[],e.tagBlocklist=[],e}(),o=function(){function e(){}return e.setLevelBlock=function(e,t){void 0===t&&(t=!0);var n=i.levelBlocklist.indexOf(e);t?n<0&&i.levelBlocklist.push(e):n>=0&&i.levelBlocklist.slice(n,1)},e.clearLevelBlock=function(){i.levelBlocklist.splice(0,i.tagBlocklist.length)},e.setTagBlock=function(e,t){void 0===t&&(t=!0);var n=i.tagBlocklist.indexOf(e);t?n<0&&i.tagBlocklist.push(e):n>=0&&i.tagBlocklist.slice(n,1)},e.clearTagBlock=function(){i.tagBlocklist.splice(0,i.tagBlocklist.length)},e}();function a(e,t){if(void 0===t&&(t=!0),"boolean"!=typeof e){if(e){"string"==typeof e&&(e=[e]);for(var n=0;n<e.length;++n){var r=e[n];o.setTagBlock(r,!t)}}}else e?o.clearLevelBlock():(o.setLevelBlock("DEBUG"),o.setLevelBlock("INFO"),o.setLevelBlock("WARN"))}},4432:(e,t,n)=>{"use strict";n.d(t,{JL:()=>m,Ko:()=>_,NX:()=>y});var r=n(1055),i=n(3131),o=n(1987),a=n(6191),s=n(1138),u=n(7123),c=n(6115),l=n(4611),d=n(1693),f=n(534),h=s.Vy.getLogger("MigrateData"),p=void 0;function m(){return r.A.join(f.e.USER_DATA_PATH,".__sc_file_migrate")}function _(){if(1==p)return!0;if(0==p)return!1;if(l.a.CanUseLocalStorage()){var e=o.fs.readFileSync(m(),"ascii");return p=!("string"!=typeof e||"true"!=e)}return p=!1}function y(e){l.a.CanUseLocalStorage()&&(_()&&1!=e?h.info("game data migration has been completed."):(h.debug("need transfer data..."),function(){var e=(0,u.Cf)();h.info("Migrating data... total files: ".concat(e.length));var t=0,n=Date.now();e.forEach(function(e){var n=c.A.readFile(e);if(n&&n.length>0){var a=e.replace(r.A.getPersistentDataPath(),f.e.USER_DATA_PATH);if(h.debug("migrate path: ".concat(e," to ").concat(a,", size: ").concat(n.length)),(0,i.m0)()){var s=r.A.getDirPath(a);o.fs.accessSync(s)||o.fs.mkdirSync(s,!0);var u=r.A.join(r.A.getUserDataBasePath(),e);if("function"==typeof o.fs.renameSync)o.fs.renameSync(u,a);else{var p=o.fs.readFileSync(u);p&&o.fs.writeFileSync(a,p)}}else{s=r.A.getDirPath(a);o.fs.accessSync(s)||o.fs.mkdirSync(s,!0),o.fs.writeFileSync(a,n)}if("PlayerPrefs"==r.A.getBaseName(e)){var m=(0,d.U)(n);for(var _ in m)l.a.SetStorageSync(_,m[_])}t+=1}}),h.info("Migrate completed, total migrated files: ".concat(t,", time cost: ").concat(Date.now()-n," ms")),(0,i.un)()&&a.A.deleteFiles(e,function(e){h.info("".concat(e," files have removed from indexedDB"))})}(),o.fs.writeFileSync(m(),"true","ascii"),p=!0))}},4462:(e,t,n)=>{"use strict";n.d(t,{NK:()=>S,qK:()=>A,SZ:()=>y});var r,i=n(5258),o=n(3487),a=n(7792),s=n(5314),u=n(1138),c=function(){function e(e,t){this._hash=new Map,this._debugId=-1,this._size=0,this._hash=e,this._remapFunction=t,this._debugId=Math.round(65535*Math.random())}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.get=function(e){return A()&&u.xe.warn("AbDiskMap ".concat(this._debugId," get ").concat(e)),this._hash.get(this._remapFunction(e))},e.prototype.set=function(e,t){return this.delete(e),this._size+=t,A()&&u.xe.warn("AbDiskMap ".concat(this._debugId," set ").concat(e," -> ").concat(t)),this._hash.set(this._remapFunction(e),t)},e.prototype.has=function(e){return A()&&u.xe.warn("AbDiskMap ".concat(this._debugId," has ").concat(e)),this._hash.has(this._remapFunction(e))},e.prototype.delete=function(e){var t=this._remapFunction(e);return this._size-=0|this._hash.get(t),A()&&u.xe.warn("AbDiskMap ".concat(this._debugId," del ").concat(e)),this._hash.delete(t)},e}(),l=n(1123),d=function(){function e(e,t){this._set=new Map,this._size=0,this._maxSize=0,this._cyclingCleanId=-1,this._reportIntervalSecs=60,this._lastReport=0,this._throughput=0,A()&&u.xe.warn("ABFileCache new ".concat(e," ").concat(t)),this._ttl=e,t>0&&(this._capacity=t)}return e.prototype.get=function(e){A()&&u.xe.warn("ABFileCache get ".concat(e));var t=this._set.get(e);return void 0===t?-1:(this._set.delete(e),t.time=Date.now(),this._set.set(e,t),t.ab)},e.prototype.put=function(e,t,n){if(void 0===n&&(n=!0),A()&&u.xe.warn("ABFileCache put ".concat(e," ").concat(t.byteLength," ").concat(n)),t){var r={ab:t,time:Date.now(),cleanable:n},i=this._set.get(e);if(void 0!==i)this._size-=i.ab.byteLength,this._set.delete(e),this._set.set(e,r);else{if(void 0!==this._capacity&&this._capacity>0)for(;this._size>=this._capacity;){var o=this._set.keys().next().value;this._size-=this._set.get(o).ab.byteLength,this._set.delete(o)}this._set.set(e,r),this._throughput+=r.ab.byteLength}this._size+=r.ab.byteLength,this._maxSize=Math.max(this._size,this._maxSize)}},e.prototype.delete=function(e){return A()&&u.xe.warn("ABFileCache del ".concat(e)),this._size-=this._set.get(e).ab.byteLength,this._set.delete(e)},e.prototype.has=function(e){return A()&&u.xe.warn("ABFileCache has ".concat(e)),this._set.has(e)},e.prototype.cleanable=function(e,t){void 0===t&&(t=!0),A()&&u.xe.warn("ABFileCache cleanable ".concat(e," ").concat(t));var n=this._set.get(e);return void 0!==n?(n.cleanable=t,this._set.set(e,n),0):-1},e.prototype.clean=function(e){var t,n,r,o,a=[];try{for(var s=(0,i.Ju)(this._set.entries()),c=s.next();!c.done;c=s.next()){var l=(0,i.zs)(c.value,2),d=l[0];(p=l[1]).time>e||p.cleanable&&a.push(d)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}try{for(var f=(0,i.Ju)(a),h=f.next();!h.done;h=f.next()){var p;d=h.value;(p=this._set.get(d))&&(this._size-=p.ab.byteLength,this._set.delete(d),A()&&u.xe.warn("ABFileCache clean ".concat(d)))}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},e.prototype.startCyclicalClean=function(e){var t=this;this._cyclingCleanId>0||(A()&&u.xe.warn("ABFileCache startCyclingClean ".concat(e)),this._cyclingCleanId=setInterval(function(){t.clean(Date.now()-1e3*t._ttl),t.reportStatus()},1e3*e))},e.prototype.stopCyclicalClean=function(){this._cyclingCleanId<=0||(clearInterval(this._cyclingCleanId),this._cyclingCleanId=-1)},e.prototype.toString=function(){return"[AbDiskCache] ".concat(JSON.stringify({当前对象数:this._set.size,当前占用:this._size,峰值占用:this._maxSize,缓存容积:this._capacity,吞吐量:this._throughput,"ttl(s)":this._ttl}))},e.prototype.reportStatus=function(){var e=Date.now();e-this._lastReport<1e3*this._reportIntervalSecs||0!==this._maxSize&&((0,l.PA)({ttl:this._ttl,cur_count:this._set.size,cur_size:this._size,max_size:this._maxSize,capacity:this._capacity,throughput:this._throughput}),this._lastReport=e,this._throughput=0)},e}(),f=n(3849),h=n(1055),p=n(534),m=n(9809),_=n(2147);function y(){r=jssdk.getFileSystemManager()}var g="/vfs_streamingassets/";function v(e){return"string"==typeof e&&e.toLowerCase().startsWith("streamingassets/")}function b(e){return e?e.startsWith(p.e.PACKAGE_DATA_PATH)||e.startsWith(p.e.TT_FILE_SCHEME)?e:e.startsWith(p.e.SC_FILE_SCHEME)?e.replace(p.e.SC_FILE_SCHEME,p.e.TT_FILE_SCHEME):v(e)?e:h.A.join((0,a.EJ)(),e):e}function E(e){var t,n=b(e);_.xe.debug("LoadBundleFromFile ".concat(e," -> ").concat(n));var i=null,o=null;try{i=r.readFileSync(n)}catch(e){o=e?e.toString():"unknown"}var s=S.disk.get(e);if(!i||(null==i?void 0:i.byteLength)!=s){var u=null!==(t=null==i?void 0:i.byteLength)&&void 0!==t?t:0;(null==o?void 0:o.includes("API_ERROR"))&&0===u&&s>0&&(0,m.Si)()&&!(0,a.d5)(e)&&_.xe.error("通过 TTAssetBundle 加载的资源所在域名需配置到「缓存资源域名列表」,请检查构建配置。"),(0,l.nS)(S.getUrlByPath(e),h.A.join((0,a.EJ)(),e),u,s,o)}return i}var S=new(function(){function e(){this.debug=!1,this._url2path=new Map,this._diskMap=new Map,this.path2fd=new Map,this.fd2stream=new Map,this._setup=!1,this.access=function(e,t){if(e=S.canonicalAbfsKey(e),_.xe.verbose("access: ".concat(e)),-8&t)return-28;if(S.path2fd.has(e))return 0;try{if(r.accessSync(b(e)))return 0}catch(e){}return-44},this.stat=function(t){var n,i;t=S.canonicalAbfsKey(t),_.xe.verbose("stat ".concat(t));try{var o=S.path2fd.get(t),a=e.createFileStat();if(void 0!==o){var s=S.cache.get(o),u=-1===s?null!==(n=S.disk.get(t))&&void 0!==n?n:0:null!==(i=s.byteLength)&&void 0!==i?i:0;return a.mode=33206,a.size=u,a.mtime=new Date(0),a.blocks=Math.ceil(a.size/a.blksize),a}var c=r.statSync(b(t));return a.mode=c.mode,a.size=c.size,a.atime=new Date(1e3*c.lastAccessedTime),a.mtime=new Date(0),a.ctime=new Date(1e3*c.lastModifiedTime),a.blocks=Math.ceil(a.size/a.blksize),a}catch(e){throw _.xe.error("stat error:",e),e}},this.open=function(e,t,n){e=S.canonicalAbfsKey(e),_.xe.verbose("open: ".concat(e));var r=S.path2fd.get(e);if(void 0!==r){var i=S.fd2stream.get(r);if(i)return i.fd!=r&&(i.fd=r),r;S.path2fd.delete(e),r=void 0}var o=E(e),a={fd:r=S.createNewAbfsFD(),path:e,flags:t,seekable:!0,position:0,stream_ops:n,ungotten:[],node:{mode:32768,usedBytes:new Uint8Array(o).length},error:!1};return _.xe.verbose("open create stream:",{fd:a.fd,path:a.path,flags:a.flags,seekable:a.seekable,position:a.position,ungotten:a.ungotten,node:a.node,error:a.error}),a.stream_ops.read=S.read,S.path2fd.set(e,r),S.fd2stream.set(r,a),S.cache.put(r,o),r},this.read=function(e,t,n,r,i){_.xe.verbose("read ".concat(e.fd,":"),{fd:e.fd,path:e.path,offset:n,length:r,position:i});var o=S.cache.get(e.fd);if(-1===o){var a=E(e.path);S.cache.put(e.fd,a),o=a}if(i>=e.node.usedBytes)return 0;var s=Math.min(e.node.usedBytes-i,r);return s<0&&_.xe.error("read size < 0, this should not happen"),t.set(new Uint8Array(o.slice(i,i+s)),n),s}}return e.prototype.setup=function(e,t){this._setup||(_.xe.debug("setup(".concat(e,", ").concat(t,")")),(0,f.O)(),this.cache=new d(e,t),this.cache.startCyclicalClean(1),this.disk=new c(this._diskMap,s.A),this._nextFD=this.getBeginFD()+1,this._setup=!0)},e.prototype.createNewAbfsFD=function(){return _.xe.debug("createNewAbfsFD() -> ".concat(this._nextFD+1)),this._nextFD++},e.prototype.getBeginFD=function(){return"number"!=typeof this._beginFD&&(this._beginFD=4096|o.qO.StarkFS.MAX_OPEN_FDS),this._beginFD},e.prototype.isRegisteredAssetBundlePath=function(e){return e=this.preprocessUrl(e),this._url2path.has(e)||(0,a.d5)(e)?(_.xe.verbose("isRegisteredAssetBundlePath(".concat(e,") -> ").concat(this.disk.has(this.url2path(e)))),this.disk.has(this.url2path(e))):(_.xe.verbose("isRegisteredAssetBundlePath(".concat(e,") -> ").concat(this.disk.has(e))),this.disk.has(e))},e.prototype.isRegisteredAssetBundleFD=function(e){return e>this.getBeginFD()&&_.xe.verbose("isRegisteredAssetBundleFD(".concat(e,") -> true")),e>this.getBeginFD()},e.prototype.url2path=function(e){var t;if(e=this.preprocessUrl(e),this._url2path.has(e))return _.xe.verbose("url2path ".concat(e," -> (map) -> ").concat(this._url2path.get(e))),this._url2path.get(e);var n=(0,a.pj)(e);return n||(n=(0,s.A)((0,a.sC)(e))),n=null!==(t=null==n?void 0:n.toLowerCase())&&void 0!==t?t:n,this._url2path.set(e,n),_.xe.verbose("url2path ".concat(e," -> (set) -> ").concat(n)),n},e.prototype.preprocessUrl=function(e){if((e=e.replace(/ /g,"%20")).startsWith(g)){var t=e;e=this.findRegisteredUrlByVfsUrl(e),_.xe.verbose("url2path ".concat(t," -> (transform) -> ").concat(e))}return e},e.prototype.findRegisteredUrlByVfsUrl=function(e){var t,n,r=e.replace(g,""),o=this._url2path.keys();try{for(var a=(0,i.Ju)(o),s=a.next();!s.done;s=a.next()){var u=s.value;if(u.endsWith(r))return u}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return e},e.prototype.canonicalAbfsKey=function(e){if(!e||"string"!=typeof e)return e;var t=e.replace(/ /g,"%20");if(t.startsWith(g)){var n=this.findRegisteredUrlByVfsUrl(t);if(n!==t)return this.url2path(n);var r=t.replace(g,"").replace(/^\/+/,"");v(r)||(r=h.A.join("StreamingAssets",r)),t=r}for(;t.startsWith("/");)t=t.substring(1);return t.toLowerCase()},e.prototype.getUrlByPath=function(e){var t,n,r=this._url2path.entries();try{for(var o=(0,i.Ju)(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(s[1]===e)return s[0]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},e.createFileStat=function(){Date.now();return{mode:0,size:0,dev:1,ino:1,nlink:1,uid:0,gid:0,rdev:0,atime:new Date,mtime:new Date,ctime:new Date,blksize:4096,blocks:0}},e.prototype.checkReady=function(){return _.xe.verbose("checkReady() -> ".concat(!!r)),!!r},e.prototype.registerAssetBundleUrl=function(e){_.xe.debug("registerAssetBundleUrl ".concat(e));var t=this.url2path(e);this.disk.has(t)||this.disk.set(t,0)},e.prototype.preloadAssetBundleAsync=function(e){return(0,i.sH)(this,void 0,void 0,function(){var t,n,o,a,s,u;return(0,i.YH)(this,function(i){switch(i.label){case 0:if(t=this.url2path(e),this.path2fd.has(t))return _.xe.debug("preloadAssetBundleAsync: ".concat(t," already loaded")),[2,!0];n=b(t),_.xe.debug("preloadAssetBundleAsync: ".concat(t," -> ").concat(n)),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,new Promise(function(e,t){r.readFile({filePath:n,success:function(t){return e(t.data)},fail:function(e){return t(e)}})})];case 2:return(o=i.sent())?(a=this.createNewAbfsFD(),s={fd:a,path:t,flags:0,seekable:!0,position:0,stream_ops:{read:this.read},ungotten:[],node:{mode:32768,usedBytes:o.byteLength},error:!1},this.path2fd.set(t,a),this.fd2stream.set(a,s),this.cache.put(a,o),this.disk.set(t,o.byteLength),_.xe.debug("preloadAssetBundleAsync: ".concat(t," preloaded, size=").concat(o.byteLength)),[2,!0]):[3,4];case 3:return u=i.sent(),_.xe.warn("preloadAssetBundleAsync failed: ".concat(t),u),[3,4];case 4:return[2,!1]}})})},e.prototype.preloadAssetBundlesBatchAsync=function(e,t){return void 0===t&&(t=3),(0,i.sH)(this,void 0,void 0,function(){var n,r,o,a,s=this;return(0,i.YH)(this,function(u){switch(u.label){case 0:return n=0,r=(0,i.fX)([],(0,i.zs)(e),!1),o=function(){return(0,i.sH)(s,void 0,void 0,function(){var e,t;return(0,i.YH)(this,function(i){switch(i.label){case 0:return r.length>0?(e=r.shift(),(t=e)?[4,this.preloadAssetBundleAsync(e)]:[3,2]):[3,3];case 1:t=i.sent(),i.label=2;case 2:return t&&n++,[3,0];case 3:return[2]}})})},a=Array(Math.min(t,e.length)).fill(null).map(function(){return o()}),[4,Promise.all(a)];case 1:return u.sent(),_.xe.debug("preloadAssetBundlesBatchAsync: ".concat(n,"/").concat(e.length," preloaded")),[2,n]}})})},e.prototype.unregisterAssetBundleUrl=function(e){_.xe.debug("unregisterAssetBundleUrl ".concat(e));var t=this.url2path(e),n=this.path2fd.get(t);this.cache.has(n)&&this.cache.delete(n),this.disk.has(t)&&this.disk.delete(t)},e}()),A=function(){return S.debug}},4501:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r=function(){function e(){this._events=new Map}return e.prototype._on=function(e,t){var n=this._events.get(e);n?(n.push(t),this._events.set(e,n)):this._events.set(e,[t])},e.prototype._off=function(e,t){var n=this._events.get(e);if(n){var r=n.findIndex(function(e){return e===t});-1!==r&&n.splice(r,1)}},e.prototype._emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events.get(e);i&&i.forEach(function(e){e.apply(t,n)})},e.prototype._removeAllListeners=function(e){e?this._events.delete(e):this._events.clear()},e.prototype._listenerCount=function(e){var t,n;if(e)return null!==(n=null===(t=this._events.get(e))||void 0===t?void 0:t.length)&&void 0!==n?n:0;var r=0;return this._events.forEach(function(e){r+=e.length}),r},e.prototype._dispose=function(){this._events.clear()},e}()},4502:(e,t,n)=>{"use strict";n.d(t,{wq:()=>w});var r=n(9650);const i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==i&&i||{},o="URLSearchParams"in i,a="Symbol"in i&&"iterator"in Symbol,s=!1,u="FormData"in i,c="ArrayBuffer"in i;function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){const t={next:function(){const t=e.shift();return{done:void 0===t,value:t}}};return a&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return null}function _(e){if(e.slice)return e.slice(0);{const t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||(0,r.h)(e))?this._bodyArrayBuffer=_(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers&&!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){const e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){const e=p(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(m)}),this.text=function(){const e=p(this);if(e)return e;if(this._bodyBlob)return this._bodyBlob,"";if(this._bodyArrayBuffer)return Promise.resolve(function(e){const t=new Uint8Array(e),n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=String.fromCharCode(t[e]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=l(e),t=d(t);const n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[l(e)]},h.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},h.prototype.set=function(e,t){this.map[l(e)]=d(t)},h.prototype.forEach=function(e,t){for(const n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){const e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},h.prototype.values=function(){const e=[];return this.forEach(function(t){e.push(t)}),f(e)},h.prototype.entries=function(){const e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},a&&(h.prototype[Symbol.iterator]=h.prototype.entries);const g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');let n=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=function(e){const t=e.toUpperCase();return g.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in i){return(new AbortController).signal}}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){const e=/([?&])_=[^&]*/;if(e.test(this.url))this.url=this.url.replace(e,"$1_="+(new Date).getTime());else{const e=/\?/;this.url+=(e.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function b(e){const t=new FormData;return e.trim().split("&").forEach(function(e){if(e){const n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function E(e){const t=new h;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){const n=e.split(":"),r=n.shift().trim();if(r){const e=n.join(":").trim();t.append(r,e)}}),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this.arrayBuffer=()=>new Promise(function(t,n){return t(e)})}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},y.call(v.prototype),y.call(S.prototype),S.error=function(){const e=new S(null,{status:0,statusText:""});return e.type="error",e};const A=[301,302,303,307,308];S.redirect=function(e,t){if(-1===A.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})};let C=i.DOMException;try{new C}catch(e){C=function(e,t){this.message=e,this.name=t;const n=Error(e);this.stack=n.stack},C.prototype=Object.create(Error.prototype),C.prototype.constructor=C}function w(e,t){return new Promise(function(n,r){const o=new v(e,t);if(o.signal&&o.signal.aborted)return r(new C("Aborted","AbortError"));let a;function s(){a.abort()}if(a="undefined"!=typeof CachedXMLHttpRequest?new CachedXMLHttpRequest:new XMLHttpRequest,a.onload=function(){const e={status:a.status,statusText:a.statusText,headers:E(a.getAllResponseHeaders()||"")};e.url=a.responseURL?a.responseURL:a.requestURL?a.requestURL:e.headers.get("X-Request-URL");const t=a.response?a.response:a.responseText;setTimeout(function(){const r=new S(t,e);r.originXHR=a,n(r)},0)},a.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){r(new C("Aborted","AbortError"))},0)},a.requestURL=o.url,a.open(o.method,function(e){try{return""===e&&i.location.href?i.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),a.responseType||(a.responseType="arraybuffer"),!t||"object"!=typeof t.headers||t.headers instanceof h?o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}):Object.getOwnPropertyNames(t.headers).forEach(function(e){a.setRequestHeader(e,d(t.headers[e]))}),o.signal&&(o.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",s)}),Blob.prototype.isPrototypeOf(o._bodyInit))if("function"==typeof o._bodyInit.arrayBuffer){const e=o._bodyInit.arrayBuffer();e instanceof ArrayBuffer?a.send(e):"function"==typeof e.then?e.then(e=>{a.send(e)}):a.send(e)}else if("undefined"!=typeof FileReader){const e=new FileReader;e.onload=function(e){const t=e.target.result;a.send(t)},e.onerror=function(){a.send()},e.readAsArrayBuffer(o._bodyInit)}else a.send();else a.send(void 0===o._bodyInit?null:o._bodyInit)})}},4584:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(3487),i=n(963),o=n(1626),a=n(4462),s=n(2621),u=n(1138);var c={_JS_WebRequest_Send:function(e,t,n,c,l,d){var f=r.qO.StarkWR,h=f.requests[e],p=f.abortControllers[e];function m(){f.timer[e]&&(clearTimeout(f.timer[e]),delete f.timer[e])}function _(e,t){if(m(),l){var n=r.qO.lengthBytesUTF8(e)+1,a=r.qO._malloc(n);r.qO.stringToUTF8(e,a,n),(0,i.Q)("viiiiii",l,[c,500,0,0,a,t]),r.qO._free(a),(0,o.i)().major>2021&&h.tempBuffer&&r.qO._free(h.tempBuffer)}}try{if(n>0){var y=r.qO.HEAPU8.subarray(t,t+n);h.init.body=new Blob([y])}h.timeout&&(f.timer[e]=setTimeout(function(){h.isTimedOut=!0,p.abort()},h.timeout));var g=r.qO.fetchWithProgress;h.init.onProgress=function(t){if(d&&t.lengthComputable)if((0,o.i)().major>2021){var n=t.response;if(f.responses[e]=n,t.chunk){var a=function(e){if(!h.tempBuffer){var t=Math.max(e,1024);h.tempBuffer=r.qO._malloc(t),h.tempBufferSize=t}return h.tempBufferSize<e&&(r.qO._free(h.tempBuffer),h.tempBuffer=r.qO._malloc(e),h.tempBufferSize=e),h.tempBuffer}(t.chunk.length);r.qO.HEAPU8.set(t.chunk,a),(0,i.Q)("viiiiii",d,[c,n.status,t.loaded,t.total,a,t.chunk.length])}else(0,i.Q)("viiiiii",d,[c,n.status,t.loaded,t.total,0,0])}else(0,i.Q)("viii",d,[c,t.loaded,t.total])},r.qO.companyName&&r.qO.productName&&r.qO.cachedFetch&&(g=r.qO.cachedFetch,h.init.companyName=r.qO.companyName,h.init.productName=r.qO.productName,h.init.productVersion=r.qO.productVersion,(0,o.i)().major>2021?h.init.control=r.qO.cacheControl(h.url):h.control=r.qO.cacheControl(h.url)),g(h.url,h.init).then(function(t){f.responses[e]=t,function(e,t){if(m(),l){if((0,a.qK)()&&u.Am.debug("JS_WebRequest_Send HandleSuccess: "+e.url),h.init.enableStreamingDownload)(0,i.Q)("viiiiii",l,[c,e.status,0,t.length,0,0]);else if(void 0!==a.NK&&a.NK.isRegisteredAssetBundlePath(e.url))(0,s.K)(e,t,c,l,0);else if(0!=t.length){var n=r.qO._malloc(t.length);r.qO.HEAPU8.set(t,n),(0,i.Q)("viiiiii",l,[c,e.status,n,t.length,0,0])}else(0,i.Q)("viiiiii",l,[c,e.status,0,0,0,0]);(0,o.i)().major<=2021&&h.tempBuffer&&r.qO._free(h.tempBuffer)}}(t,t.parsedBody)}).catch(function(e){h.isTimedOut?_("Connection timed out.",14):p.signal.aborted?_("Aborted.",17):_(e.message,2)})}catch(e){_(e.message,2)}}}},4611:(e,t,n)=>{"use strict";n.d(t,{a:()=>zt});var r={};n.r(r),n.d(r,{AccessFile:()=>ne,AccessFileSync:()=>re,AppendFile:()=>be,AppendFileSync:()=>Ee,CanUseLocalStorage:()=>z,ClearStorageSync:()=>f,CopyFile:()=>ae,CopyFileSync:()=>se,CreateUDPSocket:()=>ut,ExitPointerLock:()=>Vt,FClose:()=>Oe,FCloseSync:()=>Ie,FOpen:()=>Te,FOpenSync:()=>Re,FRead:()=>ke,FReadCompressedFile:()=>Fe,FReadCompressedFileSync:()=>xe,FReadSync:()=>Me,FStat:()=>Le,FStatSync:()=>Ne,FTruncate:()=>Be,FTruncateSync:()=>Ue,FWrite:()=>Pe,FWriteSync:()=>De,GetSavedFileList:()=>ve,GetStorageSync:()=>l,GetSystemFont:()=>qt,HandleAssetBundleResponse:()=>Jt.K,IsDataMigrated:()=>Y,IsPointerLocked:()=>jt,MigratingData:()=>ee,Mkdir:()=>Z,MkdirSync:()=>Q,ReadBinFileSync:()=>pe,ReadDir:()=>Se,ReadDirSync:()=>Ae,ReadFile:()=>fe,ReadStringFileSync:()=>he,RegisterKeyDownCallback:()=>kt,RegisterKeyUpCallback:()=>Mt,RegisterMouseDownCallback:()=>Ft,RegisterMouseMoveCallback:()=>Lt,RegisterMouseUpCallback:()=>xt,RegisterUDPSocketOnMessageCallback:()=>Ct,RegisterWheelCallback:()=>Nt,RemoveStorageSync:()=>h,RenameFile:()=>ue,RenameFileSync:()=>ce,RequestPointerLock:()=>Ut,Rmdir:()=>$,RmdirSync:()=>te,SetCursor:()=>Bt,SetDebugLogEnabled:()=>Xt.Dz,SetPreferredFramesPerSecond:()=>Gt.L,SetStorageSync:()=>c,ShareFileBuffer:()=>me,Stat:()=>ye,StatSync:()=>_e,StorageHasKeySync:()=>d,Truncate:()=>Ce,TruncateSync:()=>we,UDPSocketBind:()=>At,UDPSocketClose:()=>ct,UDPSocketConnect:()=>dt,UDPSocketDestroy:()=>lt,UDPSocketOffClose:()=>ht,UDPSocketOffError:()=>mt,UDPSocketOffListening:()=>yt,UDPSocketOffMessage:()=>vt,UDPSocketOnClose:()=>ft,UDPSocketOnError:()=>pt,UDPSocketOnListening:()=>_t,UDPSocketOnMessage:()=>gt,UDPSocketSendBuffer:()=>Et,UDPSocketSendString:()=>bt,UDPSocketSetTTL:()=>St,Unlink:()=>ie,UnlinkSync:()=>oe,WriteFile:()=>le,WriteFileSync:()=>de,abfs:()=>Kt.NK,getCachedPathForUrl:()=>Ht.sC});var i=n(5258),o=n(1138),a=!1,s=new Set,u=new Map;function c(e,t){try{jssdk.setStorageSync(e,t)}catch(e){o.IM.error("[Storage] SetStorageSync failed",e)}}function l(e,t){try{var n=jssdk.getStorageSync(e);return null==n||""===n?t:n}catch(e){return t}}function d(e){if(a)return s.has(e);try{jssdk.getStorageInfoSync().keys.forEach(function(e){s.add(e)}),a=!0}catch(e){}return s.has(e)}function f(){try{s.clear(),u.clear(),jssdk.clearStorageSync()}catch(e){}}function h(e){try{jssdk.removeStorageSync(e)}catch(e){}}var p=n(1055),m=n(3487),_=n(169),y=n(3131),g=n(4432),v=n(1022),b=n(534),E=n(1123),S=n(6153),A=["Access","AccessSync","WriteFile","WriteFileSync","ReadFile","ReadBinFileSync","ReadStringFileSync","Stat","StatSync","ReadDirSync","CopyFile","CopyFileSync","RenameFile","RenameFileSync","Unlink","UnlinkSync","Mkdir","MkdirSync","RmdirSync","Rmdir","AppendFile","AppendFileSync","ReadDir","ReadDirSync","truncateFile","truncateFileSync","fopen","fopenSync","fclose","fcloseSync","fread","freadSync","fwrite","fwriteSync","freadCompressedFile","freadCompressedFileSync","fstat","fstatSync","ftruncate","ftruncateSync"],C=new(function(){function e(){this._apiCalls=Object.create(null),this._apiThroughput=Object.create(null),this._callCount=0,this._reportTimerId=null}return e.prototype.record=function(e){this._callCount+=1,this._apiCalls[e]?this._apiCalls[e]+=1:this._apiCalls[e]=1,this.setupReportTimer()},e.prototype.recordPayload=function(e,t){this.record(e);var n=!0;A.includes(e)&&(n=(0,S.Y)().fs_throughput_report),n&&(this._apiThroughput[e]?this._apiThroughput[e]+=t:this._apiThroughput[e]=t)},e.prototype.setupReportTimer=function(){var e=this;this._reportTimerId||(this._reportTimerId=setTimeout(function(){e.report(),clearTimeout(e._reportTimerId),e._reportTimerId=null},(0,S.Y)().period))},e.prototype.report=function(){if(0!==this._callCount){var e=Object.create(null);for(var t in this._apiCalls)e["call_".concat(t.toLowerCase())]=this._apiCalls[t],delete this._apiCalls[t];for(var t in this._apiThroughput)e["throughput_".concat(t.toLowerCase())]=this._apiThroughput[t],delete this._apiThroughput[t];var n=this._callCount;this._callCount=0,e.call_count=n,e.period=(0,S.Y)().period,n>=(0,S.Y)().fs_min_calls_report&&(0,E.wM)(e)}},e}()),w="StarkFileSystemManager",T="HandleNativeCallback",R="HandleReadFileCallback",O="HandleStatCallback",I="HandleGetSavedFileListCallback",P="HandleReadDirCallback",D={},k="HandleFOpenCallback",M="HandleFWriteCallback",F="HandleFReadCallback",x="HandleFReadCompressedFileCallback",L="HandleFStatCallback";function N(e){return p.A.resolveSandboxPath(e)}function B(e,t,n){var r={errCode:t,errMsg:n,callbackId:e};m.qO.SendMessage(w,T,JSON.stringify(r))}function U(e){m.qO.SendMessage(w,R,JSON.stringify(e))}function j(e){m.qO.SendMessage(w,O,JSON.stringify(e))}function V(e){m.qO.SendMessage(w,I,JSON.stringify(e))}function H(e){m.qO.SendMessage(w,P,JSON.stringify(e))}function W(e){B(e,0,"")}function q(e){m.qO.SendMessage(w,k,JSON.stringify(e))}function G(e){m.qO.SendMessage(w,M,JSON.stringify(e))}function K(e){m.qO.SendMessage(w,F,JSON.stringify(e))}function J(e){m.qO.SendMessage(w,x,JSON.stringify(e))}function X(e){m.qO.SendMessage(w,L,JSON.stringify(e))}function z(){return!0}function Y(){return(0,g.Ko)()}function Z(e,t,n,r){C.record("Mkdir"),"number"==typeof t&&(t=1==t),jssdk.getFileSystemManager().mkdir({dirPath:N(e),recursive:t,success:function(e){W(n)},fail:function(e){B(r,e.errNo,e.errMsg)}})}function Q(e,t){C.record("MkdirSync");try{return"number"==typeof t&&(t=1==t),void jssdk.getFileSystemManager().mkdirSync(N(e),t)}catch(e){return o.IM.error("[StarkFS] mkdirSync fail",e),String(e)}}function $(e,t,n,r){C.record("Rmdir"),"number"==typeof t&&(t=1==t),jssdk.getFileSystemManager().rmdir({dirPath:N(e),recursive:t,success:function(e){W(n)},fail:function(e){B(r,e.errNo,e.errMsg)}})}function ee(){(0,g.NX)()}function te(e,t){C.record("RmdirSync");try{return"number"==typeof t&&(t=1==t),void jssdk.getFileSystemManager().rmdirSync(N(e),t)}catch(e){return o.IM.error("[StarkFS] rmdirSync fail",e),String(e)}}function ne(e,t,n){C.record("Access"),jssdk.getFileSystemManager().access({path:N(e),success:function(){W(t)},fail:function(e){B(n,e.errNo,e.errMsg)}})}function re(e){C.record("AccessSync");try{return jssdk.getFileSystemManager().accessSync(N(e)),!0}catch(e){return!1}}function ie(e,t,n){C.record("Unlink"),jssdk.getFileSystemManager().unlink({filePath:N(e),success:function(e){W(t)},fail:function(e){B(n,e.errNo,e.errMsg)}})}function oe(e){C.record("UnlinkSync");try{return void jssdk.getFileSystemManager().unlinkSync(N(e))}catch(e){return o.IM.error("[StarkFS] unlinkSync fail",e),String(e)}}function ae(e,t,n,r){C.record("CopyFile"),jssdk.getFileSystemManager().copyFile({srcPath:N(e),destPath:N(t),success:function(e){W(n)},fail:function(e){B(r,e.errNo,e.errMsg)}})}function se(e,t){C.record("CopyFileSync");try{return void jssdk.getFileSystemManager().copyFileSync(N(e),N(t))}catch(e){return o.IM.error("[StarkFS] copyFileSync fail",e),String(e)}}function ue(e,t,n,r){C.record("RenameFile"),jssdk.getFileSystemManager().rename({oldPath:N(e),newPath:N(t),success:function(e){W(n)},fail:function(e){B(r,e.errNo,e.errMsg)}})}function ce(e,t){C.record("RenameFileSync");try{return void jssdk.getFileSystemManager().renameSync(N(e),N(t))}catch(e){return o.IM.error("[StarkFS] renameSync fail",e),String(e)}}function le(e,t,n,r,i){var o=0;ArrayBuffer.isView(t)&&(t=t.buffer,n=void 0),"binary"!=n&&n?o=3*t.length:(n=void 0,o=t.byteLength),C.recordPayload("WriteFile",o),jssdk.getFileSystemManager().writeFile({filePath:N(e),data:t,encoding:n,success:function(e){W(r)},fail:function(e){B(i,e.errNo,e.errMsg)}})}function de(e,t,n){try{var r=0;return ArrayBuffer.isView(t)&&(t=t.buffer,n=void 0),"binary"!=n&&n?r=3*t.length:(n=void 0,r=t.byteLength),C.recordPayload("WriteFileSync",r),void jssdk.getFileSystemManager().writeFileSync(N(e),t,n)}catch(e){return o.IM.error("[StarkFS] writeFileSync fail",e),String(e)}}function fe(e,t,n){"binary"==t&&(t=void 0),jssdk.getFileSystemManager().readFile({filePath:N(e),encoding:t,success:function(e){var r=e.data;t?(U({errCode:0,errMsg:"",callbackId:n,data:r}),C.recordPayload("ReadFile",0)):("string"==typeof r&&(r=(0,_.xq)(r)),D[n]=r,U({errCode:0,errMsg:"",callbackId:n,byteLength:r.byteLength}),C.recordPayload("ReadFile",r.byteLength))},fail:function(e){C.recordPayload("ReadFile",0),o.IM.error("[StarkFS] ReadFile fail",e),U({errCode:e.errNo,errMsg:e.errMsg,callbackId:n})}})}function he(e,t){C.record("ReadStringFileSync");try{return jssdk.getFileSystemManager().readFileSync(N(e),t)}catch(e){return void o.IM.error("[StarkFS] ReadStringFileSync failed",e)}}function pe(e){try{var t=jssdk.getFileSystemManager().readFileSync(N(e),void 0);return"string"==typeof t&&(t=(0,_.xq)(t)),D[e]=t,C.recordPayload("ReadBinFileSync",null==t?void 0:t.byteLength),t.byteLength}catch(e){return o.IM.error("[StarkFS] ReadBinFileSync failed",e),C.record("ReadBinFileSync"),0}}function me(e,t,n){e.set(new Uint8Array(D[n]),t),delete D[n]}function _e(e){C.record("StatSync");try{var t=jssdk.getFileSystemManager().statSync(N(e));return JSON.stringify(t)}catch(e){return String(e)}}function ye(e,t){C.record("Stat"),jssdk.getFileSystemManager().stat({path:N(e),success:function(e){j({callbackId:t,errCode:0,errMsg:"",stat:{size:0|e.stat.size,mode:0|parseInt(e.stat.mode),lastAccessedTime:0|e.stat.lastAccessedTime,lastModifiedTime:0|e.stat.lastModifiedTime}})},fail:function(e){j({callbackId:t,errCode:e.errNo,errMsg:e.errMsg})}})}function ge(e,t){if(e&&!(e.length<1))for(var n=[(0,g.JL)(),p.A.join(b.e.USER_DATA_PATH,"PlayerPrefs")],r=function(r){var i=e[r];if(n.includes(i.filePath))return"continue";try{var o=jssdk.getFileSystemManager().statSync(i.filePath);if(o.isDirectory()){t.push({filePath:i.filePath,createTime:0|i.createTime,size:i.size,mode:0|parseInt(o.mode)});var a=function(e){C.record("ReadDirSync");try{return jssdk.getFileSystemManager().readdirSync(e)}catch(e){return[]}}(i.filePath).map(function(e){return{filePath:p.A.join(i.filePath,e),createTime:o.lastModifiedTime,size:o.size}});a.length>0&&ge(a,t)}else t.push({filePath:i.filePath,createTime:0|i.createTime,size:i.size,mode:0|parseInt(o.mode)})}catch(e){}},i=0;i<e.length;i++)r(i)}function ve(e){(0,y.m0)()&&v._.lessThan("1.18.0")?V({callbackId:e,errCode:0,errMsg:"",fileList:[]}):jssdk.getFileSystemManager().getSavedFileList({success:function(t){var n=new Array;ge(t.fileList,n),V({callbackId:e,errCode:0,errMsg:"",fileList:n})},fail:function(t){V({callbackId:e,errCode:t.errNo,errMsg:t.errMsg}),o.IM.error("[StarkFS] GetSavedFileList fail",t)}})}function be(e,t,n,r,i){var o=0;ArrayBuffer.isView(t)&&(t=t.buffer,n=void 0),"binary"!=n&&n?o=3*t.length:(n=void 0,o=t.byteLength),C.recordPayload("AppendFile",o),jssdk.getFileSystemManager().appendFile({filePath:N(e),data:t,encoding:n,success:function(e){W(r)},fail:function(e){B(i,e.errNo,e.errMsg)}})}function Ee(e,t,n){try{var r=0;return ArrayBuffer.isView(t)&&(t=t.buffer,n=void 0),"binary"!=n&&n?r=3*t.length:(n=void 0,r=t.byteLength),C.recordPayload("AppendFileSync",r),void jssdk.getFileSystemManager().appendFileSync(N(e),t,n)}catch(e){return o.IM.error("[StarkFS] appendFileSync fail",e),String(e)}}function Se(e,t){C.record("ReadDir"),jssdk.getFileSystemManager().readdir({dirPath:N(e),success:function(e){e.files,H({callbackId:t,errCode:0,errMsg:"",files:e.files})},fail:function(e){H({callbackId:t,errCode:e.errNo,errMsg:e.errMsg})}})}function Ae(e){try{C.record("ReadDirSync");var t=jssdk.getFileSystemManager().readdirSync(N(e));return JSON.stringify(t)}catch(e){return o.IM.error("[StarkFS] ReadDirSync fail",e),[]}}function Ce(e,t,n,r){C.record("truncateFile"),jssdk.getFileSystemManager().truncate({filePath:N(e),length:t,success:function(e){W(n)},fail:function(e){B(r,e.errNo,e.errMsg)}})}function we(e,t){try{return C.record("truncateFileSync"),void jssdk.getFileSystemManager().truncateSync(N(e),t)}catch(e){return o.IM.error("[StarkFS] truncateFileSync fail",e),String(e)}}function Te(e,t,n){C.record("fopen"),o.IM.debug("[StarkFS] FOpen filePath: ".concat(e,", flag: ").concat(t)),jssdk.getFileSystemManager().open({filePath:N(e),flag:t,success:function(e){o.IM.debug("[StarkFS] FOpen success",e),q({errCode:0,errMsg:"",callbackId:n,fd:e.fd})},fail:function(e){o.IM.error("[StarkFS] FOpen fail",e),q({errCode:e.errNo,errMsg:e.errMsg,callbackId:n})}})}function Re(e,t){try{o.IM.debug("[StarkFS] FOpenSync filePath: ".concat(e,", flag: ").concat(t)),C.record("fopenSync");var n={filePath:N(e),flag:t};return jssdk.getFileSystemManager().openSync(n)}catch(e){return o.IM.error("[StarkFS] FOpenSync fail",e),String(e)}}function Oe(e,t,n){C.record("fclose"),o.IM.debug("[StarkFS] FClose fd: ".concat(e)),jssdk.getFileSystemManager().close({fd:e,success:function(e){o.IM.debug("[StarkFS] FClose success",e),W(t)},fail:function(e){o.IM.error("[StarkFS] FClose fail",e),B(n,e.errNo,e.errMsg)}})}function Ie(e){try{C.record("fcloseSync"),o.IM.debug("[StarkFS] FCloseSync fd: ".concat(e)),jssdk.getFileSystemManager().closeSync({fd:e})}catch(e){return o.IM.error("[StarkFS] FCloseSync fail",e),String(e)}}function Pe(e,t,n,r,i,a){o.IM.debug("[StarkFS] FWrite fd: ".concat(e,", offset: ").concat(n,", length: ").concat(r,", encoding: ").concat(i));var s=0;ArrayBuffer.isView(t)&&(t=t.buffer,i=void 0),t instanceof ArrayBuffer?(i=void 0,s=t.byteLength):s=3*t.length,C.recordPayload("fwrite",s),jssdk.getFileSystemManager().write({fd:e,data:t,offset:n,length:r,encoding:i,success:function(e){o.IM.debug("[StarkFS] FWrite success",e),G({errCode:0,errMsg:"",callbackId:a,bytesWritten:e.bytesWritten})},fail:function(e){o.IM.error("[StarkFS] FWrite fail",e),G({errCode:e.errNo,errMsg:e.errMsg,callbackId:a})}})}function De(e,t,n,r,i){try{o.IM.debug("[StarkFS] FWriteSync fd: ".concat(e,", offset: ").concat(n,", length: ").concat(r,", encoding: ").concat(i));var a=0;ArrayBuffer.isView(t)&&(t=t.buffer,i=void 0),t instanceof ArrayBuffer?(i=void 0,a=t.byteLength):a=3*t.length,C.recordPayload("fwriteSync",a);var s=jssdk.getFileSystemManager().writeSync({fd:e,data:t,offset:n,length:r,encoding:i});return o.IM.debug("[StarkFS] FWriteSync rtn",s),s.bytesWritten.toString()}catch(e){return o.IM.error("[StarkFS] FWriteSync fail",e),String(e)}}function ke(e,t,n,r,i,a){o.IM.debug("[StarkFS] FRead fd: ".concat(e,", arrayBufferLength: ").concat(t,", offset: ").concat(n,", length: ").concat(r,", position: ").concat(i)),D[a]=new ArrayBuffer(t),jssdk.getFileSystemManager().read({fd:e,arrayBuffer:D[a],offset:n,length:r,position:i,success:function(e){o.IM.debug("[StarkFS] FRead success",e),C.recordPayload("fread",t),D[a]=e.arrayBuffer,K({errCode:0,errMsg:"",callbackId:a,bytesRead:e.bytesRead})},fail:function(e){C.recordPayload("fread",0),o.IM.error("[StarkFS] FRead fail",e),K({errCode:e.errNo,errMsg:e.errMsg,callbackId:a})}})}function Me(e,t,n,r,i){try{o.IM.debug("[StarkFS] FReadSync fd: ".concat(e,", arrayBufferLength: ").concat(t,", offset: ").concat(n,", length: ").concat(r,", position: ").concat(i));var a=new ArrayBuffer(t);C.recordPayload("freadSync",t),D[e]=a;var s=jssdk.getFileSystemManager().readSync({fd:e,arrayBuffer:D[e],offset:n,length:r,position:i});return o.IM.debug("[StarkFS] FReadSync data",s),s.bytesRead.toString()}catch(e){return o.IM.error("[StarkFS] FReadSync fail",e),String(e)}}function Fe(e,t,n){o.IM.debug("[StarkFS] FReadCompressedFile filePath: ".concat(e,", compressionAlgorithm: ").concat(t)),C.record("freadCompressedFile"),jssdk.getFileSystemManager().readCompressedFile({filePath:N(e),compressionAlgorithm:t,success:function(e){D[n]=e.data,J({errCode:0,errMsg:"",callbackId:n,byteLength:e.data.byteLength})},fail:function(e){o.IM.error("[StarkFS] FReadCompressedFile fail",e),J({errCode:e.errNo,errMsg:e.errMsg,callbackId:n})}})}function xe(e,t){try{o.IM.debug("[StarkFS] FReadCompressedFileSync filePath: ".concat(e,", compressionAlgorithm: ").concat(t)),C.record("freadCompressedFileSync");var n=jssdk.getFileSystemManager().readCompressedFileSync({filePath:N(e),compressionAlgorithm:t});return o.IM.debug("[StarkFS] FReadCompressedFileSync data",n),D[e]=n,n.byteLength.toString()}catch(e){return o.IM.error("[StarkFS] FReadCompressedFileSync fail",e),String(e)}}function Le(e,t){o.IM.debug("[StarkFS] FStat fd: ".concat(e)),C.record("fstat"),jssdk.getFileSystemManager().fstat({fd:e,success:function(e){o.IM.debug("[StarkFS] FStat success",e),X({callbackId:t,errCode:0,errMsg:"",stats:{size:0|e.stats.size,mode:0|parseInt(e.stats.mode),lastAccessedTime:0|e.stats.lastAccessedTime,lastModifiedTime:0|e.stats.lastModifiedTime}})},fail:function(e){o.IM.debug("[StarkFS] FStat fail",e),X({callbackId:t,errCode:e.errNo,errMsg:e.errMsg})}})}function Ne(e){try{o.IM.debug("[StarkFS] FStatSync fd: ".concat(e)),C.record("fstat");var t=jssdk.getFileSystemManager().fstatSync({fd:e});return o.IM.debug("[StarkFS] FStatSync stat",t),JSON.stringify(t)}catch(e){return o.IM.error("[StarkFS] FStatSync fail",e),String(e)}}function Be(e,t,n,r){o.IM.debug("[StarkFS] FTruncate fd: ".concat(e,", length: ").concat(t)),C.record("ftruncate"),jssdk.getFileSystemManager().ftruncate({fd:e,length:t,success:function(e){W(n)},fail:function(e){o.IM.error("[StarkFS] FTruncate fail",e),B(r,e.errNo,e.errMsg)}})}function Ue(e,t){try{o.IM.debug("[StarkFS] FTruncateSync fd: ".concat(e,", length: ").concat(t)),C.record("ftruncateSync"),jssdk.getFileSystemManager().ftruncateSync({fd:e,length:t})}catch(e){return o.IM.error("[StarkFS] FTruncateSync fail",e),String(e)}}var je=n(8923),Ve=n(1233);function He(e){var t=m.qO._malloc(e.length);return m.qO.HEAPU8.set(e,t),t}function We(e,t){void 0===t&&(t=Float64Array);var n=function(e,t){return void 0===t&&(t=Float64Array),new Uint8Array(new t([e]).buffer)}(e,t);return He(n)}function qe(e){var t=(0,_.pV)(e)+1,n=m.qO._malloc(t);return(0,_.tF)(e,m.qO.HEAPU8,n,t),n}function Ge(e){return"number"==typeof e?We(e):"string"==typeof e?qe(e):e instanceof ArrayBuffer?He(new Uint8Array(e)):0}function Ke(e){return new Uint8Array(new Uint32Array([e]).buffer)}function Je(e){var t=qe(e),n=(0,_.pV)(e),r=new Uint8Array(m.qO.HEAPU8.buffer,t,n),i=new Uint8Array(4);new DataView(i.buffer).setUint32(0,r.length,!0);var o=new Uint8Array(4+r.length);return o.set(i),o.set(r,4),m.qO._free(t),o}function Xe(e){var t=e.reduce(function(e,t){return e+t.length},0),n=new Uint8Array(t),r=0;return e.forEach(function(e){n.set(e,r),r+=e.length}),n}function ze(e){return He(function(e){var t;return Xe([Je(e.address),Je(e.family),Ke(e.port),Je("".concat(null!==(t=e.size)&&void 0!==t?t:0))])}(e))}function Ye(e,t){for(var n=[],r=0;r<e;++r)n.push(Ke(et(t[r])));return Xe(n)}var Ze,Qe=2147483647,$e=-2147483648;function et(e){return~~Math.min(Math.max(e,$e),Qe)}var tt=Object.create(null),nt={Close:Object.create(null),Error:Object.create(null),Listening:Object.create(null),Message:Object.create(null)};function rt(e){return JSON.parse(e)}function it(e){var t=tt[e];return t||o.IM.error("[UDPSocket] UDPSocket does not exist: ".concat(e)),t}function ot(e,t){return!!nt[e][t]}function at(e,t){var n=nt[e];return n[t]||(n[t]=function(n){Ve.A.call("_UDPSocketOn".concat(e,"Callback"),{instanceId:t,res:JSON.stringify(n)})}),n[t]}function st(e,t){var n=nt[e],r=n[t];return delete n[t],r}function ut(){var e=jssdk.createUDPSocket(),t=(0,je.g)();return tt[t]=e,t}function ct(e){var t=it(e);t&&t.close()}function lt(e){it(e)&&((ot("Close",e)||ot("Error",e)||ot("Listening",e)||ot("Message",e))&&o.IM.error("[UDPSocket] UDPSocket ".concat(e," dereferenced with unbound listener(s).")),delete tt[e])}function dt(e,t){var n=it(e);n&&n.connect(rt(t))}function ft(e){if(!ot("Close",e)){var t=it(e);if(t){var n=at("Close",e);t.onClose(n)}}}function ht(e){if(ot("Close",e)){var t=it(e);if(t){var n=st("Close",e);t.offClose(n)}}}function pt(e){if(!ot("Error",e)){var t=it(e);if(t){var n=at("Error",e);t.onError(n)}}}function mt(e){if(ot("Error",e)){var t=it(e);if(t){var n=st("Error",e);t.offError(n)}}}function _t(e){if(!ot("Listening",e)){var t=it(e);if(t){var n=at("Listening",e);t.onListening(n)}}}function yt(e){if(ot("Listening",e)){var t=it(e);if(t){var n=st("Listening",e);t.offListening(n)}}}function gt(e,t){var n=it(e);if(n){nt.Message[e]&&vt(e);var r=function(n){var r=Ge(e),i=Ge(n.message);if(t){var o=ze(n.localInfo),a=ze(n.remoteInfo);m.qO.dynCall_viiiii(Ze,r,i,n.message.byteLength,o,a),m.qO._free(o),m.qO._free(a)}else m.qO.dynCall_viiiii(Ze,r,i,n.message.byteLength,0,0);m.qO._free(r),m.qO._free(i)};nt.Message[e]=r,n.onMessage(r)}}function vt(e){var t=it(e);t&&(nt.Message[e]?(t.offMessage(nt.Message[e]),delete nt.Message[e]):o.IM.error("[UDPSocket] OnMessage callback does not exist: ".concat(e)))}function bt(e,t,n){var r=it(e);if(r){var i=rt(n);r.send({address:i.address,message:t,port:i.port,setBroadcast:!!i.setBroadcast})}}function Et(e,t,n,r){var i,o,a=it(e);if(a){var s=rt(r);a.send({address:s.address,message:m.qO.HEAPU8.buffer.slice(t,t+n),length:null!==(i=s.length)&&void 0!==i?i:void 0,offset:null!==(o=s.offset)&&void 0!==o?o:void 0,port:s.port,setBroadcast:!!s.setBroadcast})}}function St(e,t){var n=it(e);n&&n.setTTL(t)}function At(e,t){var n,r=it(e);if(!r)return 0;var i=rt(t);return r.bind(null!==(n=i.port)&&void 0!==n?n:void 0)}function Ct(e){Ze=e}var wt={};function Tt(e,t,n){Rt[e]||function(e,t){if(Rt[e])return;Rt[e]=function(n){!function(e,t){var n=He(t);m.qO.get("dynCall_vi").call(null,e,n),m.qO._free(n)}(wt[e],t(n))}}(e,n);var r=wt[e];wt[e]=t;var i=void 0;!r&&t?i="on".concat(e):r&&!t&&(i="off".concat(e)),i&&jssdk[i]?jssdk[i].call(null,Rt[e]):o.IM.warn("[PCInput] tmg-core not support pc input API.")}var Rt={};var Ot=function(e){return t=e.key,n=e.code,r=e.timeStamp,Xe([Je(t),Je(n),Ke(et(r))]);var t,n,r},It=function(e){return Ye(4,[e.button,e.x,e.y,e.timeStamp])},Pt=function(e){return Ye(5,[e.x,e.y,e.movementX,e.movementY,e.timeStamp])},Dt=function(e){return Ye(6,[e.x,e.y,e.deltaX,e.deltaY,e.deltaZ,e.timeStamp])};function kt(e){Tt("KeyDown",e,Ot)}function Mt(e){Tt("KeyUp",e,Ot)}function Ft(e){Tt("MouseDown",e,It)}function xt(e){Tt("MouseUp",e,It)}function Lt(e){Tt("MouseMove",e,Pt)}function Nt(e){Tt("Wheel",e,Dt)}function Bt(e,t,n){return e.indexOf("/")>=0&&(e=p.A.resolveSandboxPath(e)),jssdk.setCursor(e,t,n)}function Ut(){jssdk.requestPointerLock()}function jt(){return jssdk.isPointerLocked()}function Vt(){jssdk.exitPointerLock()}var Ht=n(7792),Wt=n(9406);function qt(e){"function"==typeof(0,Wt.W)().getSystemFont?(0,Wt.W)().getSystemFont({success:function(t){e&&e(t.fontData,t.length)},fail:function(t){o.IM.warn("[SystemFont] get system-font failed, code:".concat(t.errNo,", msg:").concat(t.errMsg)),e&&e(null,0)}}):e&&e(null,0)}var Gt=n(6331),Kt=n(4462),Jt=n(2621),Xt=n(4394),zt=(0,i.Cl)({},r)},4729:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,RJ:()=>u,xJ:()=>c});var r=n(5242),i=(n(9809),n(257)),o=n(3131),a=n(1138),s="X-Tt-Logid";function u(e){return e>=200&&e<=299}function c(e){if((0,o.un)()&&(0,i.X)()){var t=e.lastIndexOf("?"),n="__sc_timestamp=".concat(Date.now());return t<0?e+"?"+n:e+"&"+n}return e}function l(e,t){var n=e.url,i=e.isText,u=(e.onload,e.onerror);e.callMd5;if(n){if((0,o.un)()&&n.indexOf("developer.toutiao.com")>=0)return function(e,t){var n=e.isText,r=e.onload,i=e.onerror,o=e.url;if(!o)return void(i&&i("empty url"));var s=e.method?e.method:"GET",u=e.headers,c=!1;u?Object.keys(u).forEach(function(e){"content-type"==e.toLowerCase()&&(c=!0)}):u={};c||(u["content-type"]="application/json");a.NK.debug("ttRequest ".concat(s," ").concat(o));var l=Date.now();jssdk.request({url:o,method:s,header:u,data:t,responseType:n?"text":"arraybuffer",success:function(e){a.NK.debug("ttRequest ".concat(s," success, time cost: ").concat(Date.now()-l," ms, url: ").concat(o)),r(e.data,e.statusCode,null,null)},fail:function(e){a.NK.error("ttRequest error: ".concat(s," ").concat(o,", status: ").concat(JSON.stringify(e))),i&&i(JSON.stringify(e))}})}(e,t);var l=e.method?e.method:"GET";return a.NK.debug("request ".concat(l," ").concat(n,", isText: ").concat(i)),function(e,t){var n=e.url,i=e.isText,o=e.onstart,u=e.onload,l=e.onerror,d=e.ontimeout,f=e.onprogress,h=e.callMd5,p=e.method?e.method:"GET",m=Date.now(),_=new XMLHttpRequest;_.open(p,c(n));var y=e.headers,g=!1;return y&&Object.keys(y).forEach(function(e){_.setRequestHeader(e,y[e]),"content-type"==e.toLowerCase()&&(g=!0)}),g||_.setRequestHeader("content-type","application/x-www-form-urlencoded"),_.responseType=i?"text":"arraybuffer",_.onloadstart=function(e){o&&o(e)},_.onerror=function(e){var t=_.getResponseHeader(s);"string"==typeof t&&t?a.NK.error("request error, url: ".concat(n,", method: ").concat(p,", response code: ").concat(_.status,", logId: ").concat(t)):a.NK.error("request error, url: ".concat(n,", method: ").concat(p,", response code: ").concat(_.status)),l&&l("failed to ".concat(p," from url: ").concat(n,", status: ").concat(_.status),e)},_.onabort=function(e){var t=_.getResponseHeader(s);"string"==typeof t&&t?a.NK.error("request abort, url: ".concat(n,", method: ").concat(p,", response code: ").concat(_.status,", logId: ").concat(t)):a.NK.error("request abort, url: ".concat(n,", method: ").concat(p,", response code: ").concat(_.status)),l&&l("".concat(n," ").concat(p," abort"),e)},_.ontimeout=function(e){var t=_.getResponseHeader(s);"string"==typeof t&&t?a.NK.error("request timeout, url: ".concat(n,", method: ").concat(p,", response code: ").concat(_.status,", logId: ").concat(t)):a.NK.error("request timeout, url: ".concat(n,", method: ").concat(p,", response code: ").concat(_.status)),d?d(e):l&&l("timeout")},_.onload=function(e){a.NK.debug("request ".concat(p," success, time cost: ").concat(Date.now()-m," ms, statusCode: ").concat(_.status,", url: ").concat(n));var t=0,o=_.getResponseHeader("Last-Modified");if("string"==typeof o){o=(o=(o=(o=o.replace("/"," ")).replace("/"," ")).replace("-"," ")).replace("-"," ");try{t=Date.parse(o)}catch(e){t=0}}var s=_.response,c=_.getResponseHeader("Content-Length")||_.getResponseHeader("content-length"),l={contentLength:String(c||0),responseType:_.responseType,lastModified:String(t),eTag:_.getResponseHeader("ETag")||"",isReadFromCache:!!_.isReadFromCache};1==h&&(l.md5=(0,r.K)(s)),i?u&&u(_.responseText,_.status,l,e):u&&u(s,_.status,l,e)},_.onprogress=function(e){f&&f(null==e?void 0:e.loaded,null==e?void 0:e.total,e)},_.send(t||{}),_}(e,t)}u&&u("empty url")}const d={request:l,requestPostJson:function(e,t,n,r,i){void 0===n&&(n=!1),t?l({url:e,callMd5:!1,isText:n,method:"POST",headers:{"Content-Type":"application/json"},onload:function(e,t){r&&r(e)},onerror:function(e){i&&i(e)}},JSON.stringify(t)):i&&i("empty body")},requestPost:function(e,t,n,r){l({url:e,callMd5:!1,isText:!1,method:"POST",onload:function(e,t){n&&n(e)},onerror:function(e){r&&r(e)}},t)},STARK_PACKAGE_PATH:"Stark-Package-Path",STARK_LOCAL_CACHE_PATH_HEADER:"Stark-Local-Cache-Path",STARK_PRELOAD_REQUEST_HEADER:"X-Stark-Preload-Request"}},4923:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var r=new(function(){function e(){this.frames=0,this.currentFps=0,this.avgFps=0,this.minFps=0,this.lastUpdateTime=0,this.isStarted=!1,this.count=0}return e.prototype.callee=function(e){requestAnimationFrame(this.callee.bind(this)),this.frames++,(e=e/4e3|0)!==this.lastUpdateTime&&(this.currentFps=this.frames/4,this.minFps<=0?this.minFps=this.currentFps:this.minFps=Math.min(this.currentFps,this.minFps),this.avgFps=(this.avgFps*this.count+this.currentFps)/(this.count+1),this.lastUpdateTime=e,this.frames=0,++this.count)},e.prototype.start=function(){this.isStarted||(this.isStarted=!0,requestAnimationFrame(this.callee.bind(this)))},e.prototype.getMinFps=function(){return this.minFps},e.prototype.getAvgFps=function(){return this.avgFps},e.prototype.getCurrentFps=function(){return this.currentFps},e}())},5002:(e,t,n)=>{"use strict";n.d(t,{h:()=>i,t:()=>o});var r=n(1123),i={USE_WASM_SPLIT:"use_wasm_split",DOWNLOAD_TIME:"download_time",DECOMPRESSION_TIME:"decompression_time",WASM_COMPILE_TIME:"wasm_compile_time",SUB_WASM_COMPILE_TIME:"sub_wasm_compile_time",CALL_MAIN_TIME:"call_main_time",FIRST_FRAME_LOAD_TIME_WITH_DOWNLOAD:"first_frame_time_d",FIRST_FRAME_LOAD_TIME_WITHOUT_DOWNLOAD:"first_frame_time"};function o(e,t){(0,r.lK)("mp_js_load_result",{load_type:null!=e?e:"",duration:null!=t?t:0})}},5242:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,i:()=>i});var r=n(8178);function i(e){return r.hash(e)}function o(e){return r.ArrayBuffer.hash(e)}},5258:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>o,Ju:()=>u,YH:()=>s,fX:()=>l,sH:()=>a,zs:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function s(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}Object.create;function u(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},5314:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7792),i=function(e){return"string"!=typeof e?e:e.replace((0,r.EJ)(),"")}},5726:function(e){!function(t){"use strict";function n(e,t,n){return t<=e&&e<=n}var r=Math.floor;function i(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function o(e){return 0<=e&&e<=127}var a=o,s=-1;function u(e){this.tokens=[].slice.call(e),this.tokens.reverse()}u.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():s},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.pop());else this.tokens.push(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.shift());else this.tokens.unshift(e)}};var c=-1;function l(e,t){if(e)throw TypeError("Decoder error");return t||65533}function d(e){throw TypeError("The code point "+e+" could not be encoded.")}function f(e){return e=String(e).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(p,e)?p[e]:null}var h=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"ISO-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"ISO-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"ISO-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"ISO-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"ISO-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"ISO-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"ISO-8859-15"},{labels:["iso-8859-16"],name:"ISO-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"KOI8-R"},{labels:["koi8-ru","koi8-u"],name:"KOI8-U"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"GBK"},{labels:["gb18030"],name:"gb18030"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"Big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:["csshiftjis","ms932","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"UTF-16BE"},{labels:["utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],p={};h.forEach(function(e){e.encodings.forEach(function(e){e.labels.forEach(function(t){p[t]=e})})});var m,_,y={},g={};function v(e,t){return t&&t[e]||null}function b(e,t){var n=t.indexOf(e);return-1===n?null:n}function E(e){if(!("encoding-indexes"in t))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return t["encoding-indexes"][e]}var S="utf-8";function A(e,t){if(!(this instanceof A))throw TypeError("Called as a function. Did you forget 'new'?");e=void 0!==e?String(e):S,t=i(t),this._encoding=null,this._decoder=null,this._ignoreBOM=!1,this._BOMseen=!1,this._error_mode="replacement",this._do_not_flush=!1;var n=f(e);if(null===n||"replacement"===n.name)throw RangeError("Unknown encoding: "+e);if(!g[n.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");var r=this;return r._encoding=n,Boolean(t.fatal)&&(r._error_mode="fatal"),Boolean(t.ignoreBOM)&&(r._ignoreBOM=!0),Object.defineProperty||(this.encoding=r._encoding.name.toLowerCase(),this.fatal="fatal"===r._error_mode,this.ignoreBOM=r._ignoreBOM),r}function C(e,n){if(!(this instanceof C))throw TypeError("Called as a function. Did you forget 'new'?");n=i(n),this._encoding=null,this._encoder=null,this._do_not_flush=!1,this._fatal=Boolean(n.fatal)?"fatal":"replacement";var r=this;if(Boolean(n.NONSTANDARD_allowLegacyEncoding)){var o=f(e=void 0!==e?String(e):S);if(null===o||"replacement"===o.name)throw RangeError("Unknown encoding: "+e);if(!y[o.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");r._encoding=o}else r._encoding=f("utf-8"),void 0!==e&&"console"in t&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");return Object.defineProperty||(this.encoding=r._encoding.name.toLowerCase()),r}function w(e){var t=e.fatal,r=0,i=0,o=0,a=128,u=191;this.handler=function(e,d){if(d===s&&0!==o)return o=0,l(t);if(d===s)return c;if(0===o){if(n(d,0,127))return d;if(n(d,194,223))o=1,r=31&d;else if(n(d,224,239))224===d&&(a=160),237===d&&(u=159),o=2,r=15&d;else{if(!n(d,240,244))return l(t);240===d&&(a=144),244===d&&(u=143),o=3,r=7&d}return null}if(!n(d,a,u))return r=o=i=0,a=128,u=191,e.prepend(d),l(t);if(a=128,u=191,r=r<<6|63&d,(i+=1)!==o)return null;var f=r;return r=o=i=0,f}}function T(e){e.fatal;this.handler=function(e,t){if(t===s)return c;if(a(t))return t;var r,i;n(t,128,2047)?(r=1,i=192):n(t,2048,65535)?(r=2,i=224):n(t,65536,1114111)&&(r=3,i=240);for(var o=[(t>>6*r)+i];r>0;){var u=t>>6*(r-1);o.push(128|63&u),r-=1}return o}}function R(e,t){var n=t.fatal;this.handler=function(t,r){if(r===s)return c;if(o(r))return r;var i=e[r-128];return null===i?l(n):i}}function O(e,t){t.fatal;this.handler=function(t,n){if(n===s)return c;if(a(n))return n;var r=b(n,e);return null===r&&d(n),r+128}}function I(e){var t=e.fatal,r=0,i=0,a=0;this.handler=function(e,u){if(u===s&&0===r&&0===i&&0===a)return c;var d;if(u!==s||0===r&&0===i&&0===a||(r=0,i=0,a=0,l(t)),0!==a){d=null,n(u,48,57)&&(d=function(e){if(e>39419&&e<189e3||e>1237575)return null;if(7457===e)return 59335;var t,n=0,r=0,i=E("gb18030-ranges");for(t=0;t<i.length;++t){var o=i[t];if(!(o[0]<=e))break;n=o[0],r=o[1]}return r+e-n}(10*(126*(10*(r-129)+i-48)+a-129)+u-48));var f=[i,a,u];return r=0,i=0,a=0,null===d?(e.prepend(f),l(t)):d}if(0!==i)return n(u,129,254)?(a=u,null):(e.prepend([i,u]),r=0,i=0,l(t));if(0!==r){if(n(u,48,57))return i=u,null;var h=r,p=null;r=0;var m=u<127?64:65;return(n(u,64,126)||n(u,128,254))&&(p=190*(h-129)+(u-m)),null===(d=null===p?null:v(p,E("gb18030")))&&o(u)&&e.prepend(u),null===d?l(t):d}return o(u)?u:128===u?8364:n(u,129,254)?(r=u,null):l(t)}}function P(e,t){e.fatal;this.handler=function(e,n){if(n===s)return c;if(a(n))return n;if(58853===n)return d(n);if(t&&8364===n)return 128;var i=b(n,E("gb18030"));if(null!==i){var o=i%190;return[r(i/190)+129,o+(o<63?64:65)]}if(t)return d(n);i=function(e){if(59335===e)return 7457;var t,n=0,r=0,i=E("gb18030-ranges");for(t=0;t<i.length;++t){var o=i[t];if(!(o[1]<=e))break;n=o[1],r=o[0]}return r+e-n}(n);var u=r(i/10/126/10),l=r((i-=10*u*126*10)/10/126),f=r((i-=10*l*126)/10);return[u+129,l+48,f+129,i-10*f+48]}}function D(e){var t=e.fatal,r=0;this.handler=function(e,i){if(i===s&&0!==r)return r=0,l(t);if(i===s&&0===r)return c;if(0!==r){var a=r,u=null;r=0;var d=i<127?64:98;switch((n(i,64,126)||n(i,161,254))&&(u=157*(a-129)+(i-d)),u){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}var f=null===u?null:v(u,E("big5"));return null===f&&o(i)&&e.prepend(i),null===f?l(t):f}return o(i)?i:n(i,129,254)?(r=i,null):l(t)}}function k(e){e.fatal;this.handler=function(e,t){if(t===s)return c;if(a(t))return t;var n=function(e){_=_||E("big5").map(function(e,t){return t<5024?null:e});var t=_;return 9552===e||9566===e||9569===e||9578===e||21313===e||21317===e?t.lastIndexOf(e):b(e,t)}(t);if(null===n)return d(t);var i=r(n/157)+129;if(i<161)return d(t);var o=n%157;return[i,o+(o<63?64:98)]}}function M(e){var t=e.fatal,r=!1,i=0;this.handler=function(e,a){if(a===s&&0!==i)return i=0,l(t);if(a===s&&0===i)return c;if(142===i&&n(a,161,223))return i=0,65216+a;if(143===i&&n(a,161,254))return r=!0,i=a,null;if(0!==i){var u=i;i=0;var d=null;return n(u,161,254)&&n(a,161,254)&&(d=v(94*(u-161)+(a-161),E(r?"jis0212":"jis0208"))),r=!1,n(a,161,254)||e.prepend(a),null===d?l(t):d}return o(a)?a:142===a||143===a||n(a,161,254)?(i=a,null):l(t)}}function F(e){e.fatal;this.handler=function(e,t){if(t===s)return c;if(a(t))return t;if(165===t)return 92;if(8254===t)return 126;if(n(t,65377,65439))return[142,t-65377+161];8722===t&&(t=65293);var i=b(t,E("jis0208"));return null===i?d(t):[r(i/94)+161,i%94+161]}}function x(e){var t=e.fatal,r=0,i=1,o=2,a=3,u=4,d=5,f=6,h=r,p=r,m=0,_=!1;this.handler=function(e,y){switch(h){default:case r:return 27===y?(h=d,null):n(y,0,127)&&14!==y&&15!==y&&27!==y?(_=!1,y):y===s?c:(_=!1,l(t));case i:return 27===y?(h=d,null):92===y?(_=!1,165):126===y?(_=!1,8254):n(y,0,127)&&14!==y&&15!==y&&27!==y&&92!==y&&126!==y?(_=!1,y):y===s?c:(_=!1,l(t));case o:return 27===y?(h=d,null):n(y,33,95)?(_=!1,65344+y):y===s?c:(_=!1,l(t));case a:return 27===y?(h=d,null):n(y,33,126)?(_=!1,m=y,h=u,null):y===s?c:(_=!1,l(t));case u:if(27===y)return h=d,l(t);if(n(y,33,126)){h=a;var g=v(94*(m-33)+y-33,E("jis0208"));return null===g?l(t):g}return y===s?(h=a,e.prepend(y),l(t)):(h=a,l(t));case d:return 36===y||40===y?(m=y,h=f,null):(e.prepend(y),_=!1,h=p,l(t));case f:var b=m;m=0;var S=null;if(40===b&&66===y&&(S=r),40===b&&74===y&&(S=i),40===b&&73===y&&(S=o),36!==b||64!==y&&66!==y||(S=a),null!==S){h=h=S;var A=_;return _=!0,A?l(t):null}return e.prepend([b,y]),_=!1,h=p,l(t)}}}function L(e){e.fatal;var t=0,n=1,i=2,o=t;this.handler=function(e,u){if(u===s&&o!==t)return e.prepend(u),o=t,[27,40,66];if(u===s&&o===t)return c;if(!(o!==t&&o!==n||14!==u&&15!==u&&27!==u))return d(65533);if(o===t&&a(u))return u;if(o===n&&(a(u)&&92!==u&&126!==u||165==u||8254==u)){if(a(u))return u;if(165===u)return 92;if(8254===u)return 126}if(a(u)&&o!==t)return e.prepend(u),o=t,[27,40,66];if((165===u||8254===u)&&o!==n)return e.prepend(u),o=n,[27,40,74];8722===u&&(u=65293);var l=b(u,E("jis0208"));return null===l?d(u):o!==i?(e.prepend(u),o=i,[27,36,66]):[r(l/94)+33,l%94+33]}}function N(e){var t=e.fatal,r=0;this.handler=function(e,i){if(i===s&&0!==r)return r=0,l(t);if(i===s&&0===r)return c;if(0!==r){var a=r,u=null;r=0;var d=i<127?64:65,f=a<160?129:193;if((n(i,64,126)||n(i,128,252))&&(u=188*(a-f)+i-d),n(u,8836,10715))return 48508+u;var h=null===u?null:v(u,E("jis0208"));return null===h&&o(i)&&e.prepend(i),null===h?l(t):h}return o(i)||128===i?i:n(i,161,223)?65216+i:n(i,129,159)||n(i,224,252)?(r=i,null):l(t)}}function B(e){e.fatal;this.handler=function(e,t){if(t===s)return c;if(a(t)||128===t)return t;if(165===t)return 92;if(8254===t)return 126;if(n(t,65377,65439))return t-65377+161;8722===t&&(t=65293);var i=function(e){return m=m||E("jis0208").map(function(e,t){return n(t,8272,8835)?null:e}),m.indexOf(e)}(t);if(null===i)return d(t);var o=r(i/188),u=i%188;return[o+(o<31?129:193),u+(u<63?64:65)]}}function U(e){var t=e.fatal,r=0;this.handler=function(e,i){if(i===s&&0!==r)return r=0,l(t);if(i===s&&0===r)return c;if(0!==r){var a=r,u=null;r=0,n(i,65,254)&&(u=190*(a-129)+(i-65));var d=null===u?null:v(u,E("euc-kr"));return null===u&&o(i)&&e.prepend(i),null===d?l(t):d}return o(i)?i:n(i,129,254)?(r=i,null):l(t)}}function j(e){e.fatal;this.handler=function(e,t){if(t===s)return c;if(a(t))return t;var n=b(t,E("euc-kr"));return null===n?d(t):[r(n/190)+129,n%190+65]}}function V(e,t){var n=e>>8,r=255&e;return t?[n,r]:[r,n]}function H(e,t){var r=t.fatal,i=null,o=null;this.handler=function(t,a){if(a===s&&(null!==i||null!==o))return l(r);if(a===s&&null===i&&null===o)return c;if(null===i)return i=a,null;var u;if(u=e?(i<<8)+a:(a<<8)+i,i=null,null!==o){var d=o;return o=null,n(u,56320,57343)?65536+1024*(d-55296)+(u-56320):(t.prepend(V(u,e)),l(r))}return n(u,55296,56319)?(o=u,null):n(u,56320,57343)?l(r):u}}function W(e,t){t.fatal;this.handler=function(t,r){if(r===s)return c;if(n(r,0,65535))return V(r,e);var i=V(55296+(r-65536>>10),e),o=V(56320+(r-65536&1023),e);return i.concat(o)}}function q(e){e.fatal;this.handler=function(e,t){return t===s?c:o(t)?t:63360+t-128}}function G(e){e.fatal;this.handler=function(e,t){return t===s?c:a(t)?t:n(t,63360,63487)?t-63360+128:d(t)}}Object.defineProperty&&(Object.defineProperty(A.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(A.prototype,"fatal",{get:function(){return"fatal"===this._error_mode}}),Object.defineProperty(A.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}})),A.prototype.decode=function(e,t){var n;n="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=i(t),this._do_not_flush||(this._decoder=g[this._encoding.name]({fatal:"fatal"===this._error_mode}),this._BOMseen=!1),this._do_not_flush=Boolean(t.stream);for(var r,o=new u(n),a=[];;){var l=o.read();if(l===s)break;if((r=this._decoder.handler(o,l))===c)break;null!==r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}if(!this._do_not_flush){do{if((r=this._decoder.handler(o,o.read()))===c)break;null!==r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}while(!o.endOfStream());this._decoder=null}return function(e){var t,n;return t=["UTF-8","UTF-16LE","UTF-16BE"],n=this._encoding.name,-1===t.indexOf(n)||this._ignoreBOM||this._BOMseen||(e.length>0&&65279===e[0]?(this._BOMseen=!0,e.shift()):e.length>0&&(this._BOMseen=!0)),function(e){for(var t="",n=0;n<e.length;++n){var r=e[n];r<=65535?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode(55296+(r>>10),56320+(1023&r)))}return t}(e)}.call(this,a)},Object.defineProperty&&Object.defineProperty(C.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),C.prototype.encode=function(e,t){e=void 0===e?"":String(e),t=i(t),this._do_not_flush||(this._encoder=y[this._encoding.name]({fatal:"fatal"===this._fatal})),this._do_not_flush=Boolean(t.stream);for(var n,r=new u(function(e){for(var t=String(e),n=t.length,r=0,i=[];r<n;){var o=t.charCodeAt(r);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var a=t.charCodeAt(r+1);if(56320<=a&&a<=57343){var s=1023&o,u=1023&a;i.push(65536+(s<<10)+u),r+=1}else i.push(65533)}r+=1}return i}(e)),o=[];;){var a=r.read();if(a===s)break;if((n=this._encoder.handler(r,a))===c)break;Array.isArray(n)?o.push.apply(o,n):o.push(n)}if(!this._do_not_flush){for(;(n=this._encoder.handler(r,r.read()))!==c;)Array.isArray(n)?o.push.apply(o,n):o.push(n);this._encoder=null}return new Uint8Array(o)},y["UTF-8"]=function(e){return new T(e)},g["UTF-8"]=function(e){return new w(e)},"encoding-indexes"in t&&h.forEach(function(e){"Legacy single-byte encodings"===e.heading&&e.encodings.forEach(function(e){var t=e.name,n=E(t.toLowerCase());g[t]=function(e){return new R(n,e)},y[t]=function(e){return new O(n,e)}})}),g.GBK=function(e){return new I(e)},y.GBK=function(e){return new P(e,!0)},y.gb18030=function(e){return new P(e)},g.gb18030=function(e){return new I(e)},y.Big5=function(e){return new k(e)},g.Big5=function(e){return new D(e)},y["EUC-JP"]=function(e){return new F(e)},g["EUC-JP"]=function(e){return new M(e)},y["ISO-2022-JP"]=function(e){return new L(e)},g["ISO-2022-JP"]=function(e){return new x(e)},y.Shift_JIS=function(e){return new B(e)},g.Shift_JIS=function(e){return new N(e)},y["EUC-KR"]=function(e){return new j(e)},g["EUC-KR"]=function(e){return new U(e)},y["UTF-16BE"]=function(e){return new W(!0,e)},g["UTF-16BE"]=function(e){return new H(!0,e)},y["UTF-16LE"]=function(e){return new W(!1,e)},g["UTF-16LE"]=function(e){return new H(!1,e)},y["x-user-defined"]=function(e){return new G(e)},g["x-user-defined"]=function(e){return new q(e)},t.TextEncoder||(t.TextEncoder=C),t.TextDecoder||(t.TextDecoder=A),e.exports&&(e.exports={TextEncoder:t.TextEncoder,TextDecoder:t.TextDecoder,EncodingIndexes:t["encoding-indexes"]})}(this||{})},5927:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=5927,e.exports=t},6115:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(1055),i=n(3487);function o(e){const t=i.qO.StarkFS;if(!t)return!1;try{const n=t.lookupPath(e,{follow:!0});return null!==n.node&&t.isDir(n.node.mode)}catch(e){return!1}}function a(e){const t=i.qO.StarkFS;if(!t)return!1;try{const n=t.lookupPath(e,{follow:!0});return null!==n.node&&t.isFile(n.node.mode)}catch(e){return!1}}function s(e){const t=i.qO.StarkFS;if(!t)return!1;try{return console.debug("unlink file: "+e),t.unlink(e),!0}catch(t){return console.error("unlink: "+e+", "+t),!1}}function u(e){const t=i.qO.StarkFS;if(!t)return!1;try{return!e.startsWith("/proc")&&(t.rmdir(e),!0)}catch(t){return console.error("removeDir: "+e+", "+t),!1}}function c(e){const t=i.qO.StarkFS;if(!t)return[];try{if(e.startsWith("/proc"))return[];const n=t.readdir(e);if(!n)return[];const r=[];for(let e=0;e<n.length;e++){const t=n[e];"."!==t&&".."!==t&&r.push(t)}return r}catch(t){return console.error("readDir: "+e+", "+t),[]}}function l(e,t){if(!o(e)||"/proc/self/fd"===e)return;const n=i.qO.StarkFS;if(n)try{const i=n.readdir(e);if(!i)return;for(let n=0;n<i.length;n++){const s=i[n];if("."===s||".."===s)continue;const u=r.A.join(e,i[n]);a(u)?t.push(u):o(u)&&l(u,t)}}catch(t){console.error(e+" "+t)}}function d(e,t){const n=i.qO.StarkFS;if(!n||!n.chmod)return!1;try{return n.chmod(e,t),!0}catch(e){return!1}}const f={isDir:o,isFile:a,mkdirTree:function(e){const t=i.qO.StarkFS;if(!t||!t.mkdirTree)return!1;try{return o(e)||t.mkdirTree(e,16877),!0}catch(t){return console.warn(`unable to mkdir ${e}: ${t}`),!1}},unlink:s,chmod:d,readFile:function(e){const t=i.qO.StarkFS;if(!t)return null;let n,r;try{r=t.lookupPath(e).node,n=t.stat(e)}catch(e){return null}return t.isDir(n.mode)?null:t.isFile(n.mode)?function(e){return e&&e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array}(r):(console.warn("node type not supported"),null)},writeFile:function(e,t,n=!0){const r=i.qO.StarkFS;if(!r||!r.writeFile)return!1;try{return r.writeFile(e,t,{canOwn:n}),d(e,33206),!0}catch(t){return console.warn(`write file to ${e} failed, error: ${t}`),!1}},readDir:c,readDirRecursively:function(e){const t=[];return l(e,t),t},removeDir:u,removeDirRecursively:function e(t){if(a(t))return s(t);const n=c(t);if(!n||0===n.length)return u(t),!1;let i=!0;for(let u=0;u<n.length;u++){const c=n[u];if("."===c||".."===c)continue;const l=r.A.join(t,n[u]);if(a(l)){s(l)||(i=!1)}else o(l)&&e(l)}return i}},h=f},6133:(e,t,n)=>{var r=n(421).UINT64,i=r("11400714785074694791"),o=r("14029467366897019727"),a=r("1609587929392839161"),s=r("9650029242287828579"),u=r("2870177450012600261");function c(){return 2==arguments.length?new c(arguments[1]).update(arguments[0]).digest():this instanceof c?void l.call(this,arguments[0]):new c(arguments[0])}function l(e){return this.seed=e instanceof r?e.clone():r(e),this.v1=this.seed.clone().add(i).add(o),this.v2=this.seed.clone().add(o),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(i),this.total_len=0,this.memsize=0,this.memory=null,this}c.prototype.init=l,c.prototype.update=function(e){var t,n="string"==typeof e;n&&(e=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return new Uint8Array(t)}(e),n=!1,t=!0),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&(t=!0,e=new Uint8Array(e));var a=0,s=e.length,u=a+s;if(0==s)return this;if(this.total_len+=s,0==this.memsize&&(this.memory=n?"":t?new Uint8Array(32):new Buffer(32)),this.memsize+s<32)return n?this.memory+=e:t?this.memory.set(e.subarray(0,s),this.memsize):e.copy(this.memory,this.memsize,0,s),this.memsize+=s,this;if(this.memsize>0){n?this.memory+=e.slice(0,32-this.memsize):t?this.memory.set(e.subarray(0,32-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,32-this.memsize);var c=0;if(n)d=r(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v1.add(d.multiply(o)).rotl(31).multiply(i),c+=8,d=r(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v2.add(d.multiply(o)).rotl(31).multiply(i),c+=8,d=r(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v3.add(d.multiply(o)).rotl(31).multiply(i),c+=8,d=r(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v4.add(d.multiply(o)).rotl(31).multiply(i);else d=r(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v1.add(d.multiply(o)).rotl(31).multiply(i),c+=8,d=r(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v2.add(d.multiply(o)).rotl(31).multiply(i),c+=8,d=r(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v3.add(d.multiply(o)).rotl(31).multiply(i),c+=8,d=r(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v4.add(d.multiply(o)).rotl(31).multiply(i);a+=32-this.memsize,this.memsize=0,n&&(this.memory="")}if(a<=u-32){var l=u-32;do{var d;if(n)d=r(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v1.add(d.multiply(o)).rotl(31).multiply(i),a+=8,d=r(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v2.add(d.multiply(o)).rotl(31).multiply(i),a+=8,d=r(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v3.add(d.multiply(o)).rotl(31).multiply(i),a+=8,d=r(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v4.add(d.multiply(o)).rotl(31).multiply(i);else d=r(e[a+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v1.add(d.multiply(o)).rotl(31).multiply(i),d=r(e[(a+=8)+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v2.add(d.multiply(o)).rotl(31).multiply(i),d=r(e[(a+=8)+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v3.add(d.multiply(o)).rotl(31).multiply(i),d=r(e[(a+=8)+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v4.add(d.multiply(o)).rotl(31).multiply(i);a+=8}while(a<=l)}return a<u&&(n?this.memory+=e.slice(a):t?this.memory.set(e.subarray(a,u),this.memsize):e.copy(this.memory,this.memsize,a,u),this.memsize=u-a),this},c.prototype.digest=function(){var e,t,n=this.memory,c="string"==typeof n,l=0,d=this.memsize,f=new r;for(this.total_len>=32?((e=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),e.add(this.v3.clone().rotl(12)),e.add(this.v4.clone().rotl(18)),e.xor(this.v1.multiply(o).rotl(31).multiply(i)),e.multiply(i).add(s),e.xor(this.v2.multiply(o).rotl(31).multiply(i)),e.multiply(i).add(s),e.xor(this.v3.multiply(o).rotl(31).multiply(i)),e.multiply(i).add(s),e.xor(this.v4.multiply(o).rotl(31).multiply(i)),e.multiply(i).add(s)):e=this.seed.clone().add(u),e.add(f.fromNumber(this.total_len));l<=d-8;)c?f.fromBits(n.charCodeAt(l+1)<<8|n.charCodeAt(l),n.charCodeAt(l+3)<<8|n.charCodeAt(l+2),n.charCodeAt(l+5)<<8|n.charCodeAt(l+4),n.charCodeAt(l+7)<<8|n.charCodeAt(l+6)):f.fromBits(n[l+1]<<8|n[l],n[l+3]<<8|n[l+2],n[l+5]<<8|n[l+4],n[l+7]<<8|n[l+6]),f.multiply(o).rotl(31).multiply(i),e.xor(f).rotl(27).multiply(i).add(s),l+=8;for(l+4<=d&&(c?f.fromBits(n.charCodeAt(l+1)<<8|n.charCodeAt(l),n.charCodeAt(l+3)<<8|n.charCodeAt(l+2),0,0):f.fromBits(n[l+1]<<8|n[l],n[l+3]<<8|n[l+2],0,0),e.xor(f.multiply(i)).rotl(23).multiply(o).add(a),l+=4);l<d;)f.fromBits(c?n.charCodeAt(l++):n[l++],0,0,0),e.xor(f.multiply(u)).rotl(11).multiply(i);return t=e.clone().shiftRight(33),e.xor(t).multiply(o),t=e.clone().shiftRight(29),e.xor(t).multiply(a),t=e.clone().shiftRight(32),e.xor(t),this.init(this.seed),e},e.exports=c},6153:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(9406),i=new(function(){function e(){this._settings=null}return Object.defineProperty(e.prototype,"settings",{get:function(){if(null===this._settings){var e=(0,r.W)().getAppSettings({fields:["sc_csharp_api_report"]},!0);this._settings=null!=e?e:{enabled:!1}}return this._settings},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return!!this.settings.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"period",{get:function(){return"number"==typeof this.settings.period?this.settings.period:6e4},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fs_throughput_report",{get:function(){return!!this.settings.fs_throughput_report},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fs_min_calls_report",{get:function(){var e;return null!==(e=this.settings.fs_min_calls_report)&&void 0!==e?e:0},enumerable:!1,configurable:!0}),e}());function o(){return i}},6191:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(5258),i=n(4134),o=n(1055),a=n(4611),s=n(4432),u=n(1138).Vy.getLogger("UnityIDBFS"),c="FILE_DATA",l=new i.A("/idbfs",c,21);function d(e){l.setup(e,function(e){var t,n=e.result,r=e.transaction;(t=n.objectStoreNames.contains(c)?r.objectStore(c):n.createObjectStore(c)).indexNames.contains("timestamp")||t.createIndex("timestamp","timestamp",{unique:!1})})}function f(e){a.a.CanUseLocalStorage()&&(0,s.Ko)()?e(!1):l.isOpen()?e(!0):d(function(t){e(!t)})}const h={cleanUnityCache:function(e){f(function(t){t?function(e,t){void 0===t&&(t=!0);var n=o.A.join(o.A.getPersistentDataPath(),"UnityCache");u.info("begin clean unity cache..."),l.listFiles(function(r){var i=new Array;r.forEach(function(e,t){e.startsWith(n)&&i.push(e)}),l.deleteFiles(i,function(n){u.info("has cleaned ".concat(n," unity cache files.")),t&&l.close(),e&&e()})})}(e):e&&e()})},close:function(){l.isOpen()&&l.close()},listFiles:function(e){f(function(t){t?l.listFiles(e):e&&e([])})},listFilesAsync:function(){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(e){return[2,new Promise(function(e){f(function(t){t?l.listFiles(function(t){e(t)}):e([])})})]})})},listIndexedFiles:function(){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(e){return[2,new Promise(function(e,t){f(function(t){t?l.listIndexedFiles("timestamp",function(t){e(t)}):e([])})})]})})},deleteFiles:function(e,t){f(function(n){n?l.deleteFiles(e,t):t&&t(0)})},deleteFilesAsync:function(e){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(t){return[2,new Promise(function(t){f(function(n){n?l.deleteFiles(e,function(e){t(e)}):t(0)})})]})})},setup:d,readFileAsync:function(e){return new Promise(function(t){f(function(n){n?l.read(e,function(e,n){t(e?null:n)}):t(null)})})},writeFile:function(e,t,n){f(function(r){r?l.write(t,e,n):n&&n("open indexed db failed")})},renameFile:function(e,t,n){f(function(r){r?l.rename(e,t,n):n&&n("open indexed db failed")})}}},6219:(e,t,n)=>{"use strict";n.d(t,{Yx:()=>h,rY:()=>l});var r=n(3487),i=n(4501),o=n(2718),a=n(9406),s=n(1138),u=null;var c=0;function l(){if(u||(function(){if(r.qO){r.qO.wasmModule;var e=r.qO.asm;if(e)for(var t in e)if(e[t]instanceof o.T.Memory){u=e[t];break}}else s.Am.warn("there is no unity instance")}(),function(){if(u){var e=u.grow.bind(u);u.grow=function(t){var n=64*t*1024,r=u.buffer.byteLength+n;s.Am.warn("WebAssembly memory grow (pages, 64kb each): ".concat(t,", current usage: ").concat((r/1024/1024).toFixed(2),"MB"));var i=Date.now();(0,a.W)().invokeNative("systemLog",{tag:"mp_wasm_initial_memory_grow",data:{grow_num:n,initial_memory:r,grow_interval:0===c?0:i-c}}),c=i;var o=e(t);return d._emit(f,u),o}}else s.Am.warn("WebAssembly.Memory object not found")}()),u){var e={initial_memory:u.buffer.byteLength};(0,a.W)().invokeNative("systemLog",{tag:"mp_wasm_initial_memory",data:e}),c=Date.now()}}var d=new i.b,f="WASM_MEMORY_GROWTH";function h(e){d._on(f,e)}},6269:(e,t,n)=>{"use strict";n.d(t,{Y0:()=>u,Zm:()=>f,k2:()=>l,zt:()=>c});var r=n(3145),i=n(9809),o=n(5002),a=n(9225),s=n(1138),u=function(){function e(){this.prepareFrameworkStart=0,this.prepareFrameworkEnd=0,this.prepareDataStart=0,this.prepareDataEnd=0,this.prepareCodeStart=0,this.preapreCodeEnd=0}return e.prototype.reportPageTimeline=function(){s.w0.debug("call reportToTimeline"),(0,a.N)("fe_webgl_prepare",{prepare_frame_work_start:this.prepareFrameworkStart,prepare_frame_work_end:this.prepareFrameworkEnd,prepare_webgl_data_start:this.prepareDataStart,prepare_webgl_data_end:this.prepareDataEnd,prepare_webgl_wasm_start:this.prepareCodeStart,prepare_webgl_wasm_end:this.preapreCodeEnd})},e.prototype.startPrepareFramework=function(){this.prepareFrameworkStart=Date.now()},e.prototype.endPrepareFramework=function(){this.prepareFrameworkEnd=Date.now()},e.prototype.startPrepareData=function(){this.prepareDataStart=Date.now()},e.prototype.endPrepareData=function(){this.prepareDataEnd=Date.now()},e.prototype.startPrepareCode=function(){this.prepareCodeStart=Date.now()},e.prototype.endPrepareCode=function(){this.preapreCodeEnd=Date.now()},e}(),c=function(){function e(){this.wasmInstantiateStart=0,this.wasmInstantiateEnd=0,this.mainCallStart=0,this.mainCallEnd=0}return e.prototype.reportPageTimeline=function(){(0,a.N)("fe_webgl_do_run",{wasm_instantiate_start:this.wasmInstantiateStart,wasm_instantiate_end:this.wasmInstantiateEnd,main_call_start:this.mainCallStart,main_call_end:this.mainCallEnd})},e.prototype.startWasmInstantiate=function(){this.wasmInstantiateStart=Date.now()},e.prototype.endWasmInstantiate=function(){this.wasmInstantiateEnd=Date.now()},e.prototype.getWasmInstantiateCost=function(){return this.wasmInstantiateEnd-this.wasmInstantiateStart},e.prototype.startMainCall=function(){this.mainCallStart=Date.now()},e.prototype.endMainCall=function(){this.mainCallEnd=Date.now()},e.prototype.getMainCallCost=function(){return this.mainCallEnd-this.mainCallStart},e.prototype.checkValidTimestamp=function(e){return 0!==this[e]},e}();function l(){if((0,i.LR)()){var e="wasm编译耗时: ".concat(f.wasmCompileTimeMs," ms");for(var t in e+="\ncallMain耗时: ".concat(f.callMainTimeMs," ms"),e+="\n总加载耗时: ".concat(f.loadTimeMs," ms"),d){var n=d[t];e=""===e?t:"".concat(e,"\n").concat(t);var a=void 0;if(n.isDownloaded){var u=n.downloadedSize/1024,c="KB";u>1024&&(u/=1024,c="MB");var l="KB";(h=n.decompressedSize/1024)>1024&&(h/=1024,l="MB"),a=" 下载大小: ".concat(u.toFixed(2)," ").concat(c,"\n")+" 解压后大小: ".concat(h.toFixed(2)," ").concat(l,"\n")+" 下载耗时: ".concat(n.downloadTimeMs," ms\n")+" 解压耗时: ".concat(n.decompressedTimeMs," ms\n------------------------")}else{var h;l="KB";(h=n.decompressedSize/1024)>1024&&(h/=1024,l="MB"),a=" 文件大小: ".concat(h.toFixed(2)," ").concat(l,"\n")+" 读取文件耗时: ".concat(n.readTimeMs," ms"),n.decompressedTimeMs>0?a+="\n 解压耗时: ".concat(n.decompressedTimeMs," ms\n------------------------"):a+="\n------------------------"}e="".concat(e).concat(a)}r.A.showDialog(e,"游戏版本号: ".concat(i.B8.gameVersion,"\n(仅在测试环境显示)"))}!function(){var e,t,n=0,r=0,a=0,u=0,c=0;for(var l in d){var h=d[l];h.isDownloaded?(u+=h.downloadedSize,n+=h.downloadTimeMs):a+=h.readTimeMs,h.isDecompressed&&(r+=h.decompressedTimeMs),c+=h.decompressedSize}!i.B8.downloadInfo.isCached&&i.B8.downloadInfo.downloadTime>0&&i.B8.downloadInfo.packageSize>0&&(u+=i.B8.downloadInfo.packageSize,n+=i.B8.downloadInfo.downloadTime,f.loadTimeMs+=i.B8.downloadInfo.downloadTime);i.B8.downloadInfo.packageSize>0&&s.w0.info("pkg文件大小: ".concat((i.B8.downloadInfo.packageSize/1024/1024).toFixed(2)," MB"));u>0?s.w0.info("下载文件大小: ".concat((u/1024/1024).toFixed(2)," MB, 解压后大小: ").concat((c/1024/1024).toFixed(2)," MB")):s.w0.info("Unity file size: ".concat((c/1024/1024).toFixed(2)," MB"));var p=new Array;p.push("游戏加载耗时: ".concat(f.loadTimeMs," ms")),u>0?(p.push("\t* 下载文件耗时: ".concat(n," ms")),(0,o.t)(o.h.DOWNLOAD_TIME,n),(0,o.t)(o.h.FIRST_FRAME_LOAD_TIME_WITH_DOWNLOAD,f.loadTimeMs)):a>0&&(p.push("\t* 读取文件耗时: ".concat(a," ms")),(0,o.t)(o.h.FIRST_FRAME_LOAD_TIME_WITHOUT_DOWNLOAD,f.loadTimeMs));r>0?(p.push("\t* 解压耗时: ".concat(r," ms")),(0,o.t)(o.h.DECOMPRESSION_TIME,r)):p.push("\t* 读取文件总大小: ".concat((c/1024/1024).toFixed(2)," MB"));f.wasmCompileTimeMs>0&&(p.push("\t* Wasm编译耗时: ".concat(f.wasmCompileTimeMs," ms")),(0,o.t)(o.h.WASM_COMPILE_TIME,f.wasmCompileTimeMs));f.callMainTimeMs>0&&(p.push("\t* CallMain耗时: ".concat(f.callMainTimeMs," ms")),(0,o.t)(o.h.CALL_MAIN_TIME,f.callMainTimeMs));s.w0.info(p.join("\n")),null===(e=f.feWebGLPreparePoint)||void 0===e||e.reportPageTimeline(),null===(t=f.feWebGLDoRunPoint)||void 0===t||t.reportPageTimeline()}()}var d={},f={}},6292:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(4501),i=["touchstart","touchmove","touchend","touchcancel"],o=new(function(){function e(){this.emitter=new r.b}return e.prototype.setup=function(t){var n=this;this.canvas=t,i.forEach(function(r){null==t||t.addEventListener(r,function(t){t.preventDefault();var i=e.adaptTouchList(t.changedTouches),o=e.adaptTouchList(t.touches);if(o){var a={touches:o,changedTouches:i,timeStamp:Date.now()};n.emitter._emit(r,a)}})})},e.adapter=function(e){var t={identifier:e.identifier,clientX:e.clientX,clientY:e.clientY,screenX:e.screenX,screenY:e.screenY,pageX:e.pageX,pageY:e.pageY};return void 0!==t.screenX&&void 0!==t.screenY||(t.screenX=t.clientX,t.screenY=t.clientY),t},e.adaptTouchList=function(t){for(var n=[],r=0;r<t.length;r++)n.push(e.adapter(t[r]));return n},e.prototype.on=function(e,t){this.emitter._on(e,t)},e.prototype.off=function(e,t){void 0!==t?this.emitter._off(e,t):this.emitter._removeAllListeners(e)},e.prototype.onTouchStart=function(e){this.on("touchstart",e)},e.prototype.offTouchStart=function(e){this.off("touchstart",e)},e.prototype.onTouchMove=function(e){this.on("touchmove",e)},e.prototype.offTouchMove=function(e){this.off("touchmove",e)},e.prototype.onTouchEnd=function(e){this.on("touchend",e)},e.prototype.offTouchEnd=function(e){this.off("touchend",e)},e.prototype.onTouchCancel=function(e){this.on("touchcancel",e)},e.prototype.offTouchCancel=function(e){this.off("touchcancel",e)},e}())},6331:(e,t,n)=>{"use strict";n.d(t,{L:()=>a,e:()=>s});var r=n(3131),i=n(1669),o=n(1138);function a(e){!(0,r.un)()||(0,i.lZ)("setPreferredFramesPerSecond")?jssdk.setPreferredFramesPerSecond(e):o.IM.debug("[FPS] SetPreferredFramesPerSecond not support in iOS")}function s(e,t){a(t.fps)}},6359:(e,t,n)=>{"use strict";function r(e){var t;return function(){return void 0===t&&(t=e()),t}}n.d(t,{N:()=>r})},6429:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(1887),i=n(3487),o=n(1138),a=-1,s=void 0;function u(){var e=i.qO.ctx;e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_SHORT_4_4_4_4,new Uint16Array([0,0]))}const c={_glGenTextures:function(e,t){if(i.qO.StarkGL)for(var n=0;n<e;n++){var r=i.qO.ctx.createTexture();if(!r){for(i.qO.StarkGL.recordError(1282);n<e;)i.qO.HEAP32[t+4*n++>>2]=0;return}var s=i.qO.StarkGL.getNewId(i.qO.StarkGL.textures);r.name=s,i.qO.StarkGL.textures[s]=r,i.qO.HEAP32[t+4*n>>2]=s,a=s}else o.Am.error("no StarkGL object")},_glBindTexture:function(e,t){i.qO.StarkGL&&i.qO.ctx?(s=t,i.qO.ctx.bindTexture(e,t?i.qO.StarkGL.textures[t]:null)):o.Am.error("no StarkGL object")},_glCompressedTexImage2D:function(e,t,n,c,l,d,f,h){var p=a,m=s;if(i.qO.StarkGL&&i.qO.ctx){var _=i.qO.ctx;if(function(e,t){return 3553==e&&33779==t}(e,n))u();else{var y=function(e,t,n,r,o,a){if(o<8||n*r!=2*o||!a)return null;var s=-1;if(function(e,t){return 3553==e&&33777==t}(e,t)){var u=i.qO.HEAPU8.subarray(a,a+8);if(4==n&&4==r&&(0==(u[2]|u[3])?s=256*u[1]+u[0]:0==(u[0]|u[1])&&(s=256*u[3]+u[2]),s>0))return{t:"texture",id:"".concat(s)}}return null}(e,n,c,l,f,h);if(y){var g=y.t,v=y.id,b=r.Ay.getTexture(g,v);b?E(b):(u(),r.Ay.getOrDownloadTexture(g,v,function(e){E(e)}))}else i.qO.StarkGL.currentContext.supportsWebGL2EntryPoints?_.compressedTexImage2D(e,t,n,c,l,d,i.qO.HEAPU8,h,f):_.compressedTexImage2D(e,t,n,c,l,d,h?i.qO.HEAPU8.subarray(h,h+f):null)}}else o.Am.error("no StarkGL object");function E(n){var o;i.qO.StarkGL.textures&&i.qO.StarkGL.textures[p]&&n&&(_.bindTexture(_.TEXTURE_2D,i.qO.StarkGL.textures[p]),(0,r.B)(n.width,n.height)?function(n,i,o){var a=16;"pvrtc"==r.Ay.getSupportedTextureFormatString()&&(a=new Int32Array(n,0,13)[12]+52);var s=r.Ay.getSupportedTextureFormat();_.compressedTexImage2D(e,t,s,i,o,d,new Uint8Array(n,a))}(n.data,n.width,n.height):(o=n.data,_.texImage2D(e,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,o)),_.bindTexture(_.TEXTURE_2D,m?i.qO.StarkGL.textures[m]:null))}}}},6636:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var r,i=n(1138);function o(){}function a(){}function s(e,t){if("function"==typeof r){var n=r(e);switch(t){case 0:case 1:case 4:return void i.Am.error(n);case 2:return void i.Am.warn(n);case 3:case 5:return void i.Am.info(n);default:i.Am.error("Unknown console message type!"),i.Am.error(n)}}}function u(e){if("object"==typeof e)for(var t in e){var n=e[t];if("object"==typeof n)for(var i in n)"function"==typeof n[i]&&("_emscripten_set_focus_callback_on_thread"==n[i].name?e[t][i]=o:"_emscripten_set_blur_callback_on_thread"==n[i].name?e[t][i]=a:"_JS_Log_Dump"==n[i].name?e[t][i]=s:"_StarkPointerStringify"==n[i].name&&(r=e[t][i]))}}},7123:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>F,Cf:()=>C,wU:()=>M});var r=n(2600),i=n(3131),o=n(1987),a=n(1055),s=n(6115),u=n(131),c=n(6191),l=n(2250),d=n(1138),f=n(4432),h=n(3145),p=n(4611),m=(n(1693),n(8223));const _="dummy error",y=5e3;let g=!1,v=!1,b=!1;const E="__sc_unity_files__",S=new Set,A=new Set;function C(){const e=[];for(let t of S.keys())e.push(t);return e}async function w(e){(0,d.xF)("[UnityFileSystem] save file: "+e+" to local storage");let t=l.ro.defaultFileMode;const n=s.A.readFile(e);if(!n)return(0,d.i0)(`[UnityFileSystem] path: ${e} no contents, ignored.`),!1;const i={key:e,value:{mode:t,contents:n}};(0,d.xF)("[UnityFileSystem] begin write file: "+e+", size: "+n.length);const o=await r.A.storeAsync(i);return o?(0,d.xF)("[UnityFileSystem] succeed to write file: "+e+", size: "+n.length):(0,d.i0)("[UnityFileSystem] unable to save file: "+e),o}async function T(){const e=a.A.join(a.A.getUserDataBasePath(),E),t=[];for(let e of S.keys())t.push(e);const n=t.join("\n");let r;r=(0,i.m0)()?o.fs.writeFileSync(e,n,"ascii"):await u.A.writeAsync(e,n,null),r?(0,d.xF)("[UnityFileSystem] write to "+e+" success, memory files count: "+t.length):r||(0,d.i0)("[UnityFileSystem] write to "+e+" failed")}function R(){I(!1,null,!0),setTimeout(R,y)}async function O(e,t,n){v||(v=!0,await async function(e,t){let n=Date.now();const l=a.A.join(a.A.getUserDataBasePath(),E);let f=0;if(e){let e;if(k.isAutoSyncing=!0,(0,i.m0)())e=o.fs.readFileSync(l,"ascii");else{const t=await u.A.readAsync(l);t&&t.data&&(e=t.data)}if("string"==typeof e){const t=e.split("\n");for(let e=0;e<t.length;e++){const n=t[e];if(!n.startsWith(a.A.getPersistentDataPath()))continue;if(n.indexOf("UnityCache")>=0)continue;let u="";if((0,r.i)(n))if((0,i.m0)()){const e=a.A.join(a.A.getUserDataBasePath(),n);u=o.fs.readFileSync(e),u&&(u=new Uint8Array(u))}else{const e=await c.A.readFileAsync(n);e&&e.contents&&(u=e.contents)}u&&u.length>0&&((0,d.xF)("[UnityFileSystem] create file to memory, path: "+n+", size: "+u.length),S.add(n),s.A.mkdirTree(a.A.getDirPath(n)),s.A.writeFile(n,u))}S.size!==t.length&&await T(),(0,d.xF)("[UnityFileSystem] read from "+l+", unityFilesSet: "+S.size)}}else{if(t&&0===A.size)return;const e=s.A.readDirRecursively("/"),n=S.size;S.clear(),e.forEach(e=>{(0,r.i)(e)&&S.add(e)}),(0,d.xF)(`[UnityFileSystem] before memory files: ${n}, after memory files: ${S.size}, writtenFiles file count: `+A.size),S.size!==n&&await T();const i=[];for(let e of A.keys())i.push(e);for(let e=0;e<i.length;e++){const t=i[e];await w(t)&&(f+=1),A.delete(t)}k.isAutoSyncing=!1}(0,d.xF)(`[UnityFileSystem] sync fs completed, time cost: ${Date.now()-n} ms, populate: ${e}, sync file count: ${f}`)}(e,n),v=!1),t&&t(_)}function I(e,t,n){if(p.a.CanUseLocalStorage()&&(0,f.Ko)())return(0,d.xF)("using new file system, not need to sync indexedDB"),void setTimeout(()=>{t&&t("")},0);!0!==g?(!0!==b&&(b=!0,setTimeout(R,y),(0,d.xF)("[UnityFileSystem] syncfs... timer started.")),O(e,t,n)):console.warn("[UnityFileSystem] idbfs sync is disabled")}let P=0,D=!0;const k={disableSyncFs:function(){g=!0},syncfs:I,delegate:{onWriteToFile(e){if(!k.isAutoSyncing&&!(0,f.Ko)()&&(0,r.i)(e)){let t=e.replace(a.A.getPersistentDataPath(),"");if(t.startsWith("/")&&(t=t.substr(1)),m.o.isStarkSDKInitialized()&&p.a.CanUseLocalStorage()&&(0,f.Ko)()&&!t.startsWith("UnityCache"))return console.warn(`Game data has been migrated, file '${t}' will not be persistent in IndexedDB. Please use the new file system interface provided by StarkSDK to store the game data.`),void(P<1&&(P+=1,h.A.showDialog(`检测到当前游戏已替换了新的文件存储系统,文件 '${t}' 将无法持久化存储,请替换为StarkSDK提供的StarkFileSystemManager接口进行文件存储。`,"替换新文件存储接口\n(仅在测试环境显示)")));m.o.isStarkSDKInitialized()&&p.a.CanUseLocalStorage()&&!t.startsWith("UnityCache")&&D&&(D=!1,h.A.showDialog(`文件 '${t}' 使用旧的文件存储系统,为获得更好的运行体验,建议升级StarkSDK并使用StarkFileSystemManager接口进行文件存储。\n如果不替换,文件读写功能可以工作,但内存会有很大问题。建议尽早进行替换。`,"建议升级StarkSDK\n(仅在测试环境显示)"));if(s.A.isFile(e)){const t=s.A.readFile(e);if(!t||t.length<1)return void(0,d.xF)("[UnityFileSystem] onWriteToFile - path: "+e+", not contents.");A.has(e)||(0,d.xF)("[UnityFileSystem] onWriteToFile - path: "+e+", length: "+t.length),A.add(e)}else(0,d.xF)("[UnityFileSystem] onWriteToFile - path: "+e+", not a file")}},onDeletePath(e){k.isAutoSyncing||(0,f.Ko)()||(0,r.i)(e)&&(A.delete(e),(0,d.xF)(`[UnityFileSystem] onDeletePath: ${e}, current writtenFiles: ${A.size}`),r.A.delete(e,t=>{t?(0,d.xF)(`[UnityFileSystem] onDeletePath succeed to delete file: ${e}`):(0,d.xF)("[UnityFileSystem] onDeletePath unable to delete file: "+e)}))},async onMovePath(e,t){if(!k.isAutoSyncing&&!(0,f.Ko)()&&(0,r.i)(e)&&(0,r.i)(t)){const n=s.A.isDir(t);if((0,d.xF)("[UnityFileSystem] onMovePath: "+e+", newPath: "+t+", newPath is dir: "+n+", writtenFiles: "+A.size),n){const n=[];for(let e of A.keys())n.push(e);for(let i=0;i<n.length;i++){const o=n[i];if(o.startsWith(e)){const n=a.A.join(e,a.A.getBaseName(o)),i=o.replace(e,t);A.delete(o);await r.A.moveAsync(n,i)?(0,d.xF)(`[UnityFileSystem] onMovePath move ${n} to ${i} succeed`):(A.add(i),(0,d.i0)(`[UnityFileSystem] onMovePath move ${n} to ${i} failed, writtenFiles: ${A.size}`),await r.A.deleteAsync(n))}else(0,d.xF)(`[UnityFileSystem] onMovePath ignore path ${o}, oldPath: ${e}, newPath: ${t}`)}}else{(0,d.xF)(`[UnityFileSystem] onMovePath move ${e} to ${t}`),A.delete(e);await r.A.moveAsync(e,t)?(0,d.xF)(`[UnityFileSystem] onMovePath move ${e} to ${t} succeed`):((0,d.i0)(`[UnityFileSystem] onMovePath move ${e} to ${t} failed`),A.add(t),await r.A.deleteAsync(e))}}}},isAutoSyncing:!1};function M(e){"object"==typeof e&&(e.syncfs=I)}const F=k},7247:(e,t,n)=>{"use strict";function r(){var e=jssdk.getSystemInfoSync();return{width:e.screenWidth,height:e.screenHeight,browser:e.appName,browserVersion:e.version,os:e.platform,mobile:0,language:window.navigator.language,gpu:"unknown",hasWebGL:2,hasWasm:"object"==typeof WebAssembly&&"function"==typeof WebAssembly.validate&&"function"==typeof WebAssembly.compile,hasThreads:"undefined"!=typeof SharedArrayBuffer,hasWasmThreads:0,hasCursorLock:0,hasFullscreen:1}}n.d(t,{y:()=>r})},7533:(e,t,n)=>{var r=n(5726);e.exports={TextEncoder:r.TextEncoder,TextDecoder:r.TextDecoder}},7605:(e,t,n)=>{"use strict";n.d(t,{Jt:()=>s,Tn:()=>o,iu:()=>a,lQ:()=>i});var r=n(5258);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function o(e){return"function"==typeof e}function a(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function s(e,t,n){var i,o;if(null==e)return n;var a="string"==typeof t?t.split("."):t,s=e;try{for(var u=(0,r.Ju)(a),c=u.next();!c.done;c=u.next()){var l=c.value;if(null==s)return n;s=s[l]}}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return void 0===s?n:s}},7792:(e,t,n)=>{"use strict";n.d(t,{EJ:()=>l,Zg:()=>u,d5:()=>c,pj:()=>f,sC:()=>d});var r=n(5242),i=n(1055),o=n(9809),a=n(534),s="__sc_http_cache_files__";function u(e){if(o.u.dontCacheFileNames&&o.u.dontCacheFileNames.length>0)for(var t=i.A.getBaseName(e),n=0;n<o.u.dontCacheFileNames.length;n++){var r=o.u.dontCacheFileNames[n];if(r&&r.length>0&&t.endsWith(r))return!0}return!1}function c(e,t){if(void 0===t&&(t="GET"),!e.startsWith("http")||"GET"!=t.toUpperCase())return!1;if(e.indexOf(o.u.streamingAssetsUrl)>=0)return!0;var n=[];Array.isArray(o.u.urlCacheList)&&(n=o.u.urlCacheList);for(var r=0;r<n.length;r++){var i=n[r];if(i&&i.length>0&&e.indexOf(i)>=0)return!0}return!1}function l(){return i.A.join(a.e.USER_DATA_PATH,s)}function d(e){if("string"!=typeof e||e.length<1)return"";if((0,o.VS)()){var t=e.indexOf("?");t>0&&(e=e.substr(0,t))}var n=(0,r.i)(e);return i.A.join(l(),n)}function f(e,t){if(void 0===t&&(t="GET"),"GET"==t.toUpperCase()&&e.startsWith(o.u.streamingAssetsUrl)){var n=e.substr(o.u.streamingAssetsUrl.length);n.startsWith("/")&&(n=n.substr(1));var r=n.indexOf("?");return r>=0&&(n=n.substr(0,r)),i.A.join("StreamingAssets",n)}}},7903:(e,t,n)=>{var r=n(421).UINT32;r.prototype.xxh_update=function(e,t){var n,r,a=o._low,s=o._high;n=(r=e*a)>>>16,n+=t*a,n&=65535,n+=e*s;var u=this._low+(65535&r),c=u>>>16,l=(c+=this._high+(65535&n))<<16|65535&u;c=(l=l<<13|l>>>19)>>>16,n=(r=(u=65535&l)*(a=i._low))>>>16,n+=c*a,n&=65535,n+=u*(s=i._high),this._low=65535&r,this._high=65535&n};var i=r("2654435761"),o=r("2246822519"),a=r("3266489917"),s=r("668265263"),u=r("374761393");function c(){return 2==arguments.length?new c(arguments[1]).update(arguments[0]).digest():this instanceof c?void l.call(this,arguments[0]):new c(arguments[0])}function l(e){return this.seed=e instanceof r?e.clone():r(e),this.v1=this.seed.clone().add(i).add(o),this.v2=this.seed.clone().add(o),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(i),this.total_len=0,this.memsize=0,this.memory=null,this}c.prototype.init=l,c.prototype.update=function(e){var t,n="string"==typeof e;n&&(e=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return new Uint8Array(t)}(e),n=!1,t=!0),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&(t=!0,e=new Uint8Array(e));var r=0,i=e.length,o=r+i;if(0==i)return this;if(this.total_len+=i,0==this.memsize&&(this.memory=n?"":t?new Uint8Array(16):new Buffer(16)),this.memsize+i<16)return n?this.memory+=e:t?this.memory.set(e.subarray(0,i),this.memsize):e.copy(this.memory,this.memsize,0,i),this.memsize+=i,this;if(this.memsize>0){n?this.memory+=e.slice(0,16-this.memsize):t?this.memory.set(e.subarray(0,16-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,16-this.memsize);var a=0;n?(this.v1.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v2.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v3.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v4.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2))):(this.v1.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v2.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v3.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v4.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2])),r+=16-this.memsize,this.memsize=0,n&&(this.memory="")}if(r<=o-16){var s=o-16;do{n?(this.v1.xxh_update(e.charCodeAt(r+1)<<8|e.charCodeAt(r),e.charCodeAt(r+3)<<8|e.charCodeAt(r+2)),r+=4,this.v2.xxh_update(e.charCodeAt(r+1)<<8|e.charCodeAt(r),e.charCodeAt(r+3)<<8|e.charCodeAt(r+2)),r+=4,this.v3.xxh_update(e.charCodeAt(r+1)<<8|e.charCodeAt(r),e.charCodeAt(r+3)<<8|e.charCodeAt(r+2)),r+=4,this.v4.xxh_update(e.charCodeAt(r+1)<<8|e.charCodeAt(r),e.charCodeAt(r+3)<<8|e.charCodeAt(r+2))):(this.v1.xxh_update(e[r+1]<<8|e[r],e[r+3]<<8|e[r+2]),r+=4,this.v2.xxh_update(e[r+1]<<8|e[r],e[r+3]<<8|e[r+2]),r+=4,this.v3.xxh_update(e[r+1]<<8|e[r],e[r+3]<<8|e[r+2]),r+=4,this.v4.xxh_update(e[r+1]<<8|e[r],e[r+3]<<8|e[r+2])),r+=4}while(r<=s)}return r<o&&(n?this.memory+=e.slice(r):t?this.memory.set(e.subarray(r,o),this.memsize):e.copy(this.memory,this.memsize,r,o),this.memsize=o-r),this},c.prototype.digest=function(){var e,t,n=this.memory,c="string"==typeof n,l=0,d=this.memsize,f=new r;for((e=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(u)).add(f.fromNumber(this.total_len));l<=d-4;)c?f.fromBits(n.charCodeAt(l+1)<<8|n.charCodeAt(l),n.charCodeAt(l+3)<<8|n.charCodeAt(l+2)):f.fromBits(n[l+1]<<8|n[l],n[l+3]<<8|n[l+2]),e.add(f.multiply(a)).rotl(17).multiply(s),l+=4;for(;l<d;)f.fromBits(c?n.charCodeAt(l++):n[l++],0),e.add(f.multiply(u)).rotl(11).multiply(i);return t=e.clone().shiftRight(15),e.xor(t).multiply(o),t=e.clone().shiftRight(13),e.xor(t).multiply(a),t=e.clone().shiftRight(16),e.xor(t),this.init(this.seed),e},e.exports=c},8178:e=>{e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,s,u,c=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(l,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(l,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(l,o),l}function a(e){var t,r,o,a,s,u,c=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(l,i(e.subarray(t-64,t)));for(r=(e=t-64<c?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(l,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(l,o),l}function s(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function u(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function h(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}return u(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,s,u=this.byteLength,c=t(n,u),l=u;return r!==e&&(l=t(r,u)),c>l?new ArrayBuffer(0):(i=l-c,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,c,i),a.set(s),o)}}(),p.prototype.append=function(e){return this.appendBinary(c(e)),this},p.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},p.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=u(this._hash),e&&(n=h(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},p.hash=function(e,t){return p.hashBinary(c(e),t)},p.hashBinary=function(e,t){var n=u(o(e));return t?h(n):n},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(e){var t,r=f(this._buff.buffer,e,!0),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,i(r.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=u(this._hash),e&&(n=h(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var e=p.prototype.getState.call(this);return e.buff=d(e.buff),e},p.ArrayBuffer.prototype.setState=function(e){return e.buff=l(e.buff,!0),p.prototype.setState.call(this,e)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(e,t){var n=u(a(new Uint8Array(e)));return t?h(n):n},p}()},8223:(e,t,n)=>{"use strict";n.d(t,{o:()=>c});var r=n(1055),i=n(1233),o=n(1123),a=n(9809),s=n(4923),u=n(1138),c=function(){function e(){}return e.getHostId=function(){var t=e.getHostName();return(t=(t=(t=t.toLowerCase().replace(" ","")).toLowerCase().replace("-","")).toLowerCase().replace("_","")).indexOf("douyinlite")>=0?"2329":t.indexOf("douyin")>=0?"1128":t.indexOf("toutiaolite")>=0?"35":t.indexOf("toutiao")>=0?"13":t.indexOf("pi")>=0?"6858":"0"},e.getHostName=function(){var e;return null!==(e=nativeSystemInfo.appName)&&void 0!==e?e:"Unknown"},e.getConfigCenterValue=function(e){var t=e.key,n=e.defaultValue,r=null;return n.hasOwnProperty("defaultValue")&&(r=n.defaultValue),a.B8.get(t,r)},e.getUserDataDir=function(){return r.A.getUserDataBasePath()},e.isInStarkContainer=function(){return!0},e.isStarkSDKInitialized=function(){return e.initialized},e.starkUnitySdkInit=function(t){e.initialized=!0,s.q.start(),a.B8.unitySDKVersion=t.unitySDKVersion,a.B8.unityEngineVersion=t.unityEngineVersion,a.B8.containerConfig=t.containerConfig;try{var n=JSON.parse(t.containerConfig);for(var r in n)a.B8.set(r,n[r])}catch(e){u.IM.warn("parse container config error: "+e.message)}(0,o.BT)(t.unitySDKVersion,t.unityEngineVersion);var c=jssdk.getLaunchOptionsSync()||{},l=jssdk.getSystemInfoSync(),d="";0==d.length&&c.query&&(d=c.query.aid);var f={host_AppId:String(d),host_AppName:l.appName,query:c.query||{},path:c.path||"",version_type:a.B8.gameModel.versionType};return f.otherLaunchOption=c,i.A.call("OnStarkContainerInit",f),0},e.initialized=!1,e}()},8606:function(e,t,n){!function(e){"use strict";if(!e.setImmediate){var t,n,r,i,o,a=1,s={},u=!1,c=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick(function(){f(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){f(e.data)},t=function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,t=function(e){var t=c.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):t=function(e){setTimeout(f,0,e)}:(i="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&f(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),t=function(t){e.postMessage(i+t,"*")}),l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var i={callback:e,args:n};return s[a]=i,t(a),a++},l.clearImmediate=d}function d(e){delete s[e]}function f(e){if(u)setTimeout(f,0,e);else{var t=s[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),u=!1}}}}}("undefined"==typeof self?void 0===n.g?this:n.g:self)},8923:(e,t,n)=>{"use strict";function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}n.d(t,{g:()=>r})},9093:(e,t,n)=>{"use strict";n.d(t,{M:()=>i,b:()=>o});var r=n(9406);function i(e){var t=(0,r.W)();t.reportAdapterError&&"function"==typeof t.reportAdapterError&&t.reportAdapterError({type:"inner",error:e})}function o(e){var t=(0,r.W)();t.reportAdapterError&&"function"==typeof t.reportAdapterError&&(0,r.W)().reportAdapterError({type:"user",error:e})}},9115:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>C,Gm:()=>S,LJ:()=>b,eo:()=>A});var r=n(4729),i=n(3145),o=n(9809),a=(n(1055),n(131),n(3487)),s=n(5002),u=n(1138),c=!1,l=new Set,d=new Set,f=null,h=null,p=null,m=new Set,_=new Set,y=!1,g=void 0,v=void 0;var b=function(){if((0,o.qP)()&&1==o.u.enableWasmCollect)if(0!==l.size){u.Hb.debug("called wasm funcs: ".concat(l.size));var e="https://developers.tiktok.com/api/stark_wasm/v4/post/collect";e+="?client_key=".concat(o.B8.gameModel.appId);var t=Array.from(l);l=new Set,r.Ay.requestPostJson(e,{app_id:o.B8.gameModel.appId,wasm_md5:o.u.originalWasmMd5,func_id_list:t},!0,function(e){try{0==JSON.parse(e).code?function(e){e.forEach(function(e){d.add(e)})}(t):(u.Hb.warn("collect warning: ".concat(e)),E(t))}catch(n){u.Hb.warn("collect error: ".concat(e)),E(t)}}),setTimeout(b,5e3)}else setTimeout(b,5e3)};function E(e){e.forEach(function(e){l.add(e)})}var S=function(){};function A(e,t,n){f=e,h=t,p=n}const C={wait:function(e){if(e>=0&&!d.has(e)&&l.add(e),-1===e&&f&&h&&p){var t=p.value;f.injectByTableIndex(t,h)}else{if(f&&!c)return c=!0,void a.qO.setSubWasmLoaded();if(!0!==o.u.enableArchiveMode){if(!c){var n=Date.now();if(a.qO.instantiateSubWasm()){c=!0;var r=Date.now()-n;(0,s.t)(s.h.SUB_WASM_COMPILE_TIME,r),i.A.showDialog("编译耗时: ".concat(r," ms"),"触发子包编译")}else i.A.showDialog("子包下载失败")}}else c||(c=!0,a.qO.setSubWasmLoaded(),f||u.Hb.error("[wasmcode2] enableArchiveMode but archiveLoader is null, prepareArchiveSubpackage may have failed"))}},logCall:function(e){(0,o.qP)()&&o.u.enableWasmCollect?d.has(e)||l.add(e):(null==g&&(g=(0,o.pu)()),(g||(null==v&&(v=(0,o.Lo)()),v&&o.u.enableWasmCollect))&&(m.has(e)||(_.add(e),y||(y=!0))))}}},9225:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,R:()=>o});var r=n(9406),i=n(1138).Vy.getLogger("Reporter"),o=0;function a(e,t,n){if(i.info("report timeline for",e),"function"==typeof(0,r.W)().reportPageTimeline)try{(0,r.W)().reportPageTimeline(e,t,n)}catch(e){i.warn("reportToTimeline failed with error:",e)}else i.warn("reportPageTimeline not found in jssdk")}},9305:(e,t,n)=>{"use strict";var r,i;n.d(t,{$b:()=>i,JH:()=>o}),function(e){e[e.OFF=0]="OFF",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e[e.VERBOSE=5]="VERBOSE"}(i||(i={}));var o=((r={})[i.OFF]="OFF",r[i.ERROR]="ERROR",r[i.WARN]="WARN",r[i.INFO]="INFO",r[i.DEBUG]="DEBUG",r[i.VERBOSE]="VERBOSE",r)},9406:(e,t,n)=>{"use strict";var r;function i(e,t){void 0===t&&(t=!1),r=e,t&&Object.assign(globalThis,{starkInnerAPI:void 0})}function o(){return r}n.d(t,{W:()=>o,s:()=>i})},9461:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,O:()=>a});var r=n(3131),i=n(1022),o=n(1138);function a(){return(0,r.m0)()&&i._.largerThanOrEqualTo("1.3.0")?(jssdk.exitMiniProgram({exitDirectly:!1}),!0):(0,r.un)()&&i._.largerThanOrEqualTo("1.7.0")?(jssdk.showModal({title:"确认退出吗?",success:function(e){e.confirm&&jssdk.exitMiniProgram({isFullExit:!0})}}),!0):(o.IM.warn("exit app not supported in current platform"),!1)}function s(){return(0,r.m0)()&&i._.largerThanOrEqualTo("1.3.0")?(jssdk.exitMiniProgram({exitDirectly:!0}),!0):(0,r.un)()&&i._.largerThanOrEqualTo("1.7.0")?(jssdk.exitMiniProgram({isFullExit:!0}),!0):(o.IM.warn("exit app not supported in current platform"),!1)}},9650:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];function i(e){return!!e&&(!!ArrayBuffer.isView(e)||r.indexOf(Object.prototype.toString.call(e))>-1)}},9809:(e,t,n)=>{"use strict";n.d(t,{$_:()=>g,B8:()=>r,GZ:()=>_,LR:()=>h,Lo:()=>f,Lr:()=>v,Si:()=>c,VS:()=>s,Yg:()=>m,fo:()=>o,pu:()=>d,q7:()=>b,qP:()=>l,rZ:()=>p,s4:()=>a,u:()=>i});var r=null,i={};function o(e){e.nativeSCVersionString="3.0.0",r=e}function a(e){i=e}function s(){return!1}function u(){return"latest"==r.gameModel.versionType||"preview"==r.gameModel.versionType}function c(){return null!==r&&u()}function l(){return!0}function d(){return null!=r&&"current"==r.gameModel.versionType&&null!=i&&"v4"==i.wasmCollectAPIVer}function f(){return!!d()&&(null!=r&&"current"==r.gameModel.versionType&&null!=i&&"v4"==i.wasmCollectAPIVer)}function h(){return null!==r&&(p()&&!r.debug.dontShowSummaryInfo)}function p(){return u()}function m(){return jssdk.getSystemInfoSync().deviceOrientation?"landscape"===jssdk.getSystemInfoSync().deviceOrientation:1==r.gameModel.orientation}function _(){return!0}var y=void 0;function g(e){y="UnityNative"===e}function v(){return y}var b="game.js"}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>yu,default:()=>vu});var e=__webpack_require__(9809),t=__webpack_require__(1138),n=void 0;var r={};function i(e){return"canvas"===e||"#canvas"===e?[n]:[]}function o(){}function a(e){return"unity-container"===e||"#unity-container"===e?{appendChild:o,addEventListener:s,getElementsByTagName:i}:"canvas"===e||"#canvas"===e?n:void 0}function s(e,t){r[e]||(r[e]=[]),r[e].push(t)}const u={URL:"file://scgame/unity_webgl_android",body:{appendChild:o},createElement:function(e){if("div"===e)return{appendChild:o,addEventListener:s};if("canvas"===e){var t=(new Error).stack;if(/\bnew WebGLRenderer\b/.test(t))return n;var r=tt.createCanvas();return r.style={set width(e){r.width=parseFloat(e)},get width(){return r.width},set height(e){r.height=parseFloat(e)},get height(){return r.height}},r}return"audio"===e?{canPlayType:!1}:"video"===e?{canPlayType:!0}:"a"===e?{href:null}:{style:{},focus:function(){},setSelectionRange:function(){},oninput:function(){},addEventListener:s}},getElementById:a,addEventListener:s,removeEventListener:function(e,t){var n=r[e];if(n&&n.length>0)for(var i=n.length;i--;i>0)if(n[i]===t){n.splice(i,1);break}},querySelector:function(e){return a(e)}};const c={};var l=__webpack_require__(5258),d=function(){function e(){this.listeners_=new Map,this.created_at_=new Date}return e.prototype.dispatchEvent=function(e){var t=this.listeners_.get(e.type);t&&(e.target=this,e.timeStamp=(new Date).getTime()-this.created_at_.getTime(),t.forEach(function(t){return t(e)}))},e.prototype.addEventListener=function(e,t){var n=this.listeners_.get(e);n||(n=new Set,this.listeners_.set(e,n)),n.add(t)},e.prototype.removeEventListener=function(e,t){var n=this.listeners_.get(e);n&&(n.delete(t),0===n.size&&this.listeners_.delete(e))},e}(),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.angle=0,t}return(0,l.C6)(t,e),t.prototype.lock=function(){},t.prototype.unlock=function(){},t}(d);const h=new function(){this.availTop=0,this.availLeft=0,this.availWidth=0,this.availHeight=0,this.width=720,this.height=1280,this.orientation=new f};__webpack_require__(8606);var p="A request was aborted, for example through a call to IDBTransaction.abort.",m="A mutation operation in the transaction failed because a constraint was not satisfied. For example, an object such as an object store or index already exists and a request attempted to create a new one.",_="The data being stored could not be cloned by the internal structured cloning algorithm.",y="Data provided to an operation does not meet requirements.",g="An invalid operation was performed on an object. For example transaction creation attempt was made, but an empty scope was provided.",v="An operation was called on an object on which it is not allowed or at a time when it is not allowed. Also occurs if a request is made on a source object that has been deleted or removed. Use TransactionInactiveError or ReadOnlyError when possible, as they are more specific variations of InvalidStateError.",b="The operation failed because the requested database object could not be found. For example, an object store did not exist but was being opened.",E='The mutating operation was attempted in a "readonly" transaction.',S="A request was placed against a transaction which is currently not active, or which is finished.",A="An attempt was made to open a database using a lower version than the existing version.",C=function(e){function t(t){void 0===t&&(t=p);var n=e.call(this)||this;return n.name="AbortError",n.message=t,n}return(0,l.C6)(t,e),t}(Error),w=function(e){function t(t){void 0===t&&(t=m);var n=e.call(this)||this;return n.name="ConstraintError",n.message=t,n}return(0,l.C6)(t,e),t}(Error),T=function(e){function t(t){void 0===t&&(t=_);var n=e.call(this)||this;return n.name="DataCloneError",n.message=t,n}return(0,l.C6)(t,e),t}(Error),R=function(e){function t(t){void 0===t&&(t=y);var n=e.call(this)||this;return n.name="DataError",n.message=t,n}return(0,l.C6)(t,e),t}(Error),O=function(e){function t(t){void 0===t&&(t=g);var n=e.call(this)||this;return n.name="InvalidAccessError",n.message=t,n}return(0,l.C6)(t,e),t}(Error),I=function(e){function t(t){void 0===t&&(t=v);var n=e.call(this)||this;return n.name="InvalidStateError",n.message=t,n}return(0,l.C6)(t,e),t}(Error),P=function(e){function t(t){void 0===t&&(t=b);var n=e.call(this)||this;return n.name="NotFoundError",n.message=t,n}return(0,l.C6)(t,e),t}(Error),D=function(e){function t(t){void 0===t&&(t=E);var n=e.call(this)||this;return n.name="ReadOnlyError",n.message=t,n}return(0,l.C6)(t,e),t}(Error),k=function(e){function t(t){void 0===t&&(t=S);var n=e.call(this)||this;return n.name="TransactionInactiveError",n.message=t,n}return(0,l.C6)(t,e),t}(Error),M=function(e){function t(t){void 0===t&&(t=A);var n=e.call(this)||this;return n.name="VersionError",n.message=t,n}return(0,l.C6)(t,e),t}(Error),F=function(e,t){if("number"==typeof e){if(isNaN(e))throw new R;return e}if(e instanceof Date){var n=e.valueOf();if(isNaN(n))throw new R;return new Date(n)}if("string"==typeof e)return e;if(e instanceof ArrayBuffer||"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))return e instanceof ArrayBuffer?new Uint8Array(e).buffer:new Uint8Array(e.buffer).buffer;if(Array.isArray(e)){if(void 0===t)t=new Set;else if(t.has(e))throw new R;t.add(e);for(var r=[],i=0;i<e.length;i++){if(!e.hasOwnProperty(i))throw new R;var o=e[i],a=F(o,t);r.push(a)}return r}throw new R};const x=F;var L=function(e){if("number"==typeof e)return"Number";if(e instanceof Date)return"Date";if(Array.isArray(e))return"Array";if("string"==typeof e)return"String";if(e instanceof ArrayBuffer)return"Binary";throw new R},N=function(e,t){if(void 0===t)throw new TypeError;e=x(e),t=x(t);var n=L(e),r=L(t);if(n!==r)return"Array"===n?1:("Binary"!==n||"String"!==r&&"Date"!==r&&"Number"!==r)&&("String"!==n||"Date"!==r&&"Number"!==r)?"Date"===n&&"Number"===r?1:-1:1;if("Binary"===n&&(e=new Uint8Array(e),t=new Uint8Array(t)),"Array"===n||"Binary"===n){for(var i=Math.min(e.length,t.length),o=0;o<i;o++){var a=N(e[o],t[o]);if(0!==a)return a}return e.length>t.length?1:e.length<t.length?-1:0}if("Date"===n){if(e.getTime()===t.getTime())return 0}else if(e===t)return 0;return e>t?1:-1};const B=N;const U=function(){function e(e,t,n,r){this.lower=e,this.upper=t,this.lowerOpen=n,this.upperOpen=r}return e.only=function(t){if(0===arguments.length)throw new TypeError;return new e(t=x(t),t,!1,!1)},e.lowerBound=function(t,n){if(void 0===n&&(n=!1),0===arguments.length)throw new TypeError;return new e(t=x(t),void 0,n,!0)},e.upperBound=function(t,n){if(void 0===n&&(n=!1),0===arguments.length)throw new TypeError;return new e(void 0,t=x(t),!0,n)},e.bound=function(t,n,r,i){if(void 0===r&&(r=!1),void 0===i&&(i=!1),arguments.length<2)throw new TypeError;var o=B(t,n);if(1===o||0===o&&(r||i))throw new R;return new e(t=x(t),n=x(n),r,i)},e.prototype.includes=function(e){if(0===arguments.length)throw new TypeError;var t;if((e=x(e),void 0!==this.lower)&&(1===(t=B(this.lower,e))||0===t&&this.lowerOpen))return!1;if(void 0!==this.upper&&(-1===(t=B(this.upper,e))||0===t&&this.upperOpen))return!1;return!0},e.prototype.toString=function(){return"[object IDBKeyRange]"},e}();var j=function(e,t){var n,r;if(Array.isArray(e)){var i=[];try{for(var o=(0,l.Ju)(e),a=o.next();!a.done;a=o.next()){var s=a.value;null!=s&&"string"!=typeof s&&s.toString&&(s=s.toString()),i.push(x(j(s,t)))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}if(""===e)return t;for(var u=e,c=t;null!==u;){var d=void 0,f=u.indexOf(".");if(f>=0?(d=u.slice(0,f),u=u.slice(f+1)):(d=u,u=null),!c.hasOwnProperty(d))return;c=c[d]}return c};const V=j;var H=__webpack_require__(745);const W=function(e){try{return H(e)}catch(e){throw new T}};var q=function(e){return e.source instanceof be?e.source:e.source.objectStore},G=function(e,t,n){var r,i,o,a,s=void 0!==e?e.lower:void 0,u=void 0!==e?e.upper:void 0;try{for(var c=(0,l.Ju)(t),d=c.next();!d.done;d=c.next()){var f=d.value;void 0!==f&&(void 0!==s&&1!==B(s,f)||(s=f))}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}try{for(var h=(0,l.Ju)(n),p=h.next();!p.done;p=h.next()){var m=p.value;void 0!==m&&(void 0!==u&&-1!==B(u,m)||(u=m))}}catch(e){o={error:e}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return void 0!==s&&void 0!==u?U.bound(s,u):void 0!==s?U.lowerBound(s):void 0!==u?U.upperBound(u):void 0},K=function(){function e(e,t,n,r,i){void 0===n&&(n="next"),void 0===i&&(i=!1),this._gotValue=!1,this._position=void 0,this._objectStorePosition=void 0,this._keyOnly=!1,this._key=void 0,this._primaryKey=void 0,this._range=t,this._source=e,this._direction=n,this._request=r,this._keyOnly=i}return Object.defineProperty(e.prototype,"source",{get:function(){return this._source},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"direction",{get:function(){return this._direction},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"key",{get:function(){return this._key},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"primaryKey",{get:function(){return this._primaryKey},set:function(e){},enumerable:!1,configurable:!0}),e.prototype._iterate=function(e,t){var n,r,i,o,a,s,u,c,d,f,h=this.source instanceof be,p=this.source instanceof be?this.source._rawObjectStore.records:this.source._rawIndex.records;if("next"===this.direction){var m=G(this._range,[e,this._position],[]);try{for(var _=(0,l.Ju)(p.values(m)),y=_.next();!y.done;y=_.next()){var g=y.value,v=void 0!==e?B(g.key,e):void 0,b=void 0!==this._position?B(g.key,this._position):void 0;if(void 0===e||-1!==v){if(void 0!==t){if(-1===v)continue;var E=B(g.value,t);if(0===v&&-1===E)continue}if(void 0===this._position||!h||1===b){if(void 0!==this._position&&!h){if(-1===b)continue;if(0===b&&1!==B(g.value,this._objectStorePosition))continue}if(void 0===this._range||this._range.includes(g.key)){d=g;break}}}}}catch(e){n={error:e}}finally{try{y&&!y.done&&(r=_.return)&&r.call(_)}finally{if(n)throw n.error}}}else if("nextunique"===this.direction){m=G(this._range,[e,this._position],[]);try{for(var S=(0,l.Ju)(p.values(m)),A=S.next();!A.done;A=S.next()){g=A.value;if((void 0===e||-1!==B(g.key,e))&&((void 0===this._position||1===B(g.key,this._position))&&(void 0===this._range||this._range.includes(g.key)))){d=g;break}}}catch(e){i={error:e}}finally{try{A&&!A.done&&(o=S.return)&&o.call(S)}finally{if(i)throw i.error}}}else if("prev"===this.direction){m=G(this._range,[],[e,this._position]);try{for(var C=(0,l.Ju)(p.values(m,"prev")),w=C.next();!w.done;w=C.next()){g=w.value,v=void 0!==e?B(g.key,e):void 0,b=void 0!==this._position?B(g.key,this._position):void 0;if(void 0===e||1!==v){if(void 0!==t){if(1===v)continue;E=B(g.value,t);if(0===v&&1===E)continue}if(void 0===this._position||!h||-1===b){if(void 0!==this._position&&!h){if(1===b)continue;if(0===b&&-1!==B(g.value,this._objectStorePosition))continue}if(void 0===this._range||this._range.includes(g.key)){d=g;break}}}}}catch(e){a={error:e}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(a)throw a.error}}}else if("prevunique"===this.direction){var T=void 0;m=G(this._range,[],[e,this._position]);try{for(var R=(0,l.Ju)(p.values(m,"prev")),O=R.next();!O.done;O=R.next()){g=O.value;if((void 0===e||1!==B(g.key,e))&&((void 0===this._position||-1===B(g.key,this._position))&&(void 0===this._range||this._range.includes(g.key)))){T=g;break}}}catch(e){u={error:e}}finally{try{O&&!O.done&&(c=R.return)&&c.call(R)}finally{if(u)throw u.error}}T&&(d=p.get(T.key))}if(d){if(this._position=d.key,h||(this._objectStorePosition=d.value),this._key=d.key,h)this._primaryKey=W(d.key),this._keyOnly||"[object IDBCursorWithValue]"!==this.toString()||(this.value=W(d.value));else if(this._primaryKey=W(d.value),!this._keyOnly&&"[object IDBCursorWithValue]"===this.toString()){if(this.source instanceof be)throw new Error("This should never happen");var I=this.source.objectStore._rawObjectStore.getValue(d.value);this.value=W(I)}this._gotValue=!0,f=this}else this._key=void 0,h||(this._objectStorePosition=void 0),this._keyOnly||"[object IDBCursorWithValue]"!==this.toString()||(this.value=void 0),f=null;return f},e.prototype.update=function(e){if(void 0===e)throw new TypeError;var t=q(this),n=this.source.hasOwnProperty("_rawIndex")?this.primaryKey:this._position,r=t.transaction;if("active"!==r._state)throw new k;if("readonly"===r.mode)throw new D;if(t._rawObjectStore.deleted)throw new I;if(!(this.source instanceof be)&&this.source._rawIndex.deleted)throw new I;if(!this._gotValue||!this.hasOwnProperty("value"))throw new I;var i=W(e);if(null!==t.keyPath){var o=void 0;try{o=V(t.keyPath,i)}catch(e){}if(0!==B(o,n))throw new R}var a={key:n,value:i};return r._execRequestAsync({operation:t._rawObjectStore.storeRecord.bind(t._rawObjectStore,a,!1,r._rollbackLog),source:this})},e.prototype.advance=function(e){var t=this;if(!Number.isInteger(e)||e<=0)throw new TypeError;var n=q(this),r=n.transaction;if("active"!==r._state)throw new k;if(n._rawObjectStore.deleted)throw new I;if(!(this.source instanceof be)&&this.source._rawIndex.deleted)throw new I;if(!this._gotValue)throw new I;this._request&&(this._request.readyState="pending"),r._execRequestAsync({operation:function(){for(var n,r=0;r<e&&(n=t._iterate());r++);return n},request:this._request,source:this.source}),this._gotValue=!1},e.prototype.continue=function(e){var t=q(this),n=t.transaction;if("active"!==n._state)throw new k;if(t._rawObjectStore.deleted)throw new I;if(!(this.source instanceof be)&&this.source._rawIndex.deleted)throw new I;if(!this._gotValue)throw new I;if(void 0!==e){e=x(e);var r=B(e,this._position);if(r<=0&&("next"===this.direction||"nextunique"===this.direction)||r>=0&&("prev"===this.direction||"prevunique"===this.direction))throw new R}this._request&&(this._request.readyState="pending"),n._execRequestAsync({operation:this._iterate.bind(this,e),request:this._request,source:this.source}),this._gotValue=!1},e.prototype.continuePrimaryKey=function(e,t){var n=q(this),r=n.transaction;if("active"!==r._state)throw new k;if(n._rawObjectStore.deleted)throw new I;if(!(this.source instanceof be)&&this.source._rawIndex.deleted)throw new I;if(this.source instanceof be||"next"!==this.direction&&"prev"!==this.direction)throw new O;if(!this._gotValue)throw new I;if(void 0===e||void 0===t)throw new R;e=x(e);var i=B(e,this._position);if(-1===i&&"next"===this.direction||1===i&&"prev"===this.direction)throw new R;var o=B(t,this._objectStorePosition);if(0===i&&(o<=0&&"next"===this.direction||o>=0&&"prev"===this.direction))throw new R;this._request&&(this._request.readyState="pending"),r._execRequestAsync({operation:this._iterate.bind(this,e,t),request:this._request,source:this.source}),this._gotValue=!1},e.prototype.delete=function(){var e=q(this),t=this.source.hasOwnProperty("_rawIndex")?this.primaryKey:this._position,n=e.transaction;if("active"!==n._state)throw new k;if("readonly"===n.mode)throw new D;if(e._rawObjectStore.deleted)throw new I;if(!(this.source instanceof be)&&this.source._rawIndex.deleted)throw new I;if(!this._gotValue||!this.hasOwnProperty("value"))throw new I;return n._execRequestAsync({operation:e._rawObjectStore.deleteRecord.bind(e._rawObjectStore,t,n._rollbackLog),source:this})},e.prototype.toString=function(){return"[object IDBCursor]"},e}();const J=K;var X=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.value=void 0,o}return(0,l.C6)(t,e),t.prototype.toString=function(){return"[object IDBCursorWithValue]"},t}(J);const z=X;var Y=function(e,t){return e.immediatePropagationStopped||e.eventPhase===e.CAPTURING_PHASE&&!1===t.capture||e.eventPhase===e.BUBBLING_PHASE&&!0===t.capture},Z=function(e,t){var n,r;e.currentTarget=t;try{for(var i=(0,l.Ju)(t.listeners.slice()),o=i.next();!o.done;o=i.next()){var a=o.value;e.type!==a.type||Y(e,a)||a.callback.call(e.currentTarget,e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var s={abort:"onabort",blocked:"onblocked",complete:"oncomplete",error:"onerror",success:"onsuccess",upgradeneeded:"onupgradeneeded",versionchange:"onversionchange"}[e.type];if(void 0===s)throw new Error('Unknown event type: "'.concat(e.type,'"'));var u=e.currentTarget[s];if(u){a={callback:u,capture:!1,type:e.type};Y(e,a)||a.callback.call(e.currentTarget,e)}},Q=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.listeners.push({callback:t,capture:n,type:e})},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1);var r=this.listeners.findIndex(function(r){return r.type===e&&r.callback===t&&r.capture===n});this.listeners.splice(r,1)},e.prototype.dispatchEvent=function(e){var t,n,r,i;if(e.dispatched||!e.initialized)throw new I("The object is in an invalid state.");e.isTrusted=!1,e.dispatched=!0,e.target=this,e.eventPhase=e.CAPTURING_PHASE;try{for(var o=(0,l.Ju)(e.eventPath),a=o.next();!a.done;a=o.next()){var s=a.value;e.propagationStopped||Z(e,s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}if(e.eventPhase=e.AT_TARGET,e.propagationStopped||Z(e,e.target),e.bubbles){e.eventPath.reverse(),e.eventPhase=e.BUBBLING_PHASE;try{for(var u=(0,l.Ju)(e.eventPath),c=u.next();!c.done;c=u.next()){s=c.value;e.propagationStopped||Z(e,s)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}return e.dispatched=!1,e.eventPhase=e.NONE,e.currentTarget=null,!e.canceled},e}();const $=Q;const ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.source=null,t.transaction=null,t.readyState="pending",t.onsuccess=null,t.onerror=null,t._result=null,t._error=null,t}return(0,l.C6)(t,e),Object.defineProperty(t.prototype,"result",{get:function(){if("pending"===this.readyState)throw new I;return this._result},set:function(e){this._result=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"error",{get:function(){if("pending"===this.readyState)throw new I;return this._error},set:function(e){this._error=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[object IDBRequest]"},t}($);const te=function(e,t){var n="unsigned long"===t?4294967295:9007199254740991;if(isNaN(e)||e<0||e>n)throw new TypeError;if(e>=0)return Math.floor(e)};const ne=function(e){var t=e.slice();return Object.defineProperty(t,"contains",{value:function(e){return t.indexOf(e)>=0}}),Object.defineProperty(t,"item",{value:function(e){return t[e]}}),t};const re=function(e,t){if(void 0===t&&(t=!1),e instanceof U)return e;if(null==e){if(t)throw new R;return new U(void 0,void 0,!1,!1)}var n=x(e);return U.only(n)};var ie=function(e){if(e._rawIndex.deleted||e.objectStore._rawObjectStore.deleted)throw new I;if("active"!==e.objectStore.transaction._state)throw new k},oe=function(){function e(e,t){this._rawIndex=t,this._name=t.name,this.objectStore=e,this.keyPath=t.keyPath,this.multiEntry=t.multiEntry,this.unique=t.unique}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){var t=this,n=this.objectStore.transaction;if(!n.db._runningVersionchangeTransaction)throw new I;if("active"!==n._state)throw new k;if(this._rawIndex.deleted||this.objectStore._rawObjectStore.deleted)throw new I;if((e=String(e))!==this._name){if(this.objectStore.indexNames.indexOf(e)>=0)throw new w;var r=this._name,i=this.objectStore.indexNames.slice();this._name=e,this._rawIndex.name=e,this.objectStore._indexesCache.delete(r),this.objectStore._indexesCache.set(e,this),this.objectStore._rawObjectStore.rawIndexes.delete(r),this.objectStore._rawObjectStore.rawIndexes.set(e,this._rawIndex),this.objectStore.indexNames=ne(Array.from(this.objectStore._rawObjectStore.rawIndexes.keys()).filter(function(e){var n=t.objectStore._rawObjectStore.rawIndexes.get(e);return n&&!n.deleted})).sort(),n._rollbackLog.push(function(){t._name=r,t._rawIndex.name=r,t.objectStore._indexesCache.delete(e),t.objectStore._indexesCache.set(r,t),t.objectStore._rawObjectStore.rawIndexes.delete(e),t.objectStore._rawObjectStore.rawIndexes.set(r,t._rawIndex),t.objectStore.indexNames=ne(i)})}},enumerable:!1,configurable:!0}),e.prototype.openCursor=function(e,t){ie(this),null===e&&(e=void 0),void 0===e||e instanceof U||(e=U.only(x(e)));var n=new ee;n.source=this,n.transaction=this.objectStore.transaction;var r=new z(this,e,t,n);return this.objectStore.transaction._execRequestAsync({operation:r._iterate.bind(r),request:n,source:this})},e.prototype.openKeyCursor=function(e,t){ie(this),null===e&&(e=void 0),void 0===e||e instanceof U||(e=U.only(x(e)));var n=new ee;n.source=this,n.transaction=this.objectStore.transaction;var r=new J(this,e,t,n,!0);return this.objectStore.transaction._execRequestAsync({operation:r._iterate.bind(r),request:n,source:this})},e.prototype.get=function(e){return ie(this),e instanceof U||(e=x(e)),this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getValue.bind(this._rawIndex,e),source:this})},e.prototype.getAll=function(e,t){arguments.length>1&&void 0!==t&&(t=te(t,"unsigned long")),ie(this);var n=re(e);return this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getAllValues.bind(this._rawIndex,n,t),source:this})},e.prototype.getKey=function(e){return ie(this),e instanceof U||(e=x(e)),this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getKey.bind(this._rawIndex,e),source:this})},e.prototype.getAllKeys=function(e,t){arguments.length>1&&void 0!==t&&(t=te(t,"unsigned long")),ie(this);var n=re(e);return this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getAllKeys.bind(this._rawIndex,n,t),source:this})},e.prototype.count=function(e){var t=this;return ie(this),null===e&&(e=void 0),void 0===e||e instanceof U||(e=U.only(x(e))),this.objectStore.transaction._execRequestAsync({operation:function(){for(var n=0,r=new J(t,e);null!==r._iterate();)n+=1;return n},source:this})},e.prototype.toString=function(){return"[object IDBIndex]"},e}();const ae=oe;const se=function(e,t){var n,r;if(Array.isArray(e))throw new Error("The key paths used in this section are always strings and never sequences, since it is not possible to create a object store which has a key generator and also has a key path that is a sequence.");var i=e.split(".");if(0===i.length)throw new Error("Assert: identifiers is not empty");i.pop();try{for(var o=(0,l.Ju)(i),a=o.next();!a.done;a=o.next()){var s=a.value;if("object"!=typeof t&&!Array.isArray(t))return!1;if(!t.hasOwnProperty(s))return!0;t=t[s]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return"object"==typeof t||Array.isArray(t)};function ue(e,t){for(var n,r=0,i=e.length;r<i;)B(e[n=r+i>>>1].key,t)<0?r=n+1:i=n;return r}function ce(e,t){var n=ue(e,t),r=e[n];return r&&0===B(r.key,t)?n:-1}function le(e,t){for(var n=void 0===t.lower?0:ue(e,t.lower),r=void 0===t.upper?e.length-1:ue(e,t.upper),i=n;i<=r;i++){var o=e[i];if(o&&t.includes(o.key))return i}return-1}var de=function(){function e(){this.records=[]}return e.prototype.get=function(e){return e instanceof U?(t=this.records)[le(t,e)]:function(e,t){return e[ce(e,t)]}(this.records,e);var t},e.prototype.add=function(e){var t,n,r,i,o;if(0===this.records.length)t=0;else if(n=this.records,r=e.key,i=ue(n,r),-1===(t=(o=n[i])&&B(o.key,r)>=0?i:-1))t=this.records.length;else for(;t<this.records.length&&0===B(this.records[t].key,e.key)&&-1===B(this.records[t].value,e.value);)t+=1;this.records.splice(t,0,e)},e.prototype.delete=function(e){for(var t=[],n=e instanceof U;;){var r=n?le(this.records,e):ce(this.records,e);if(-1===r)break;t.push(this.records[r]),this.records.splice(r,1)}return t},e.prototype.deleteByValue=function(e){var t=e instanceof U?e:U.only(e),n=[];return this.records=this.records.filter(function(e){var r=t.includes(e.value);return r&&n.push(e),!r}),n},e.prototype.clear=function(){var e=this.records.slice();return this.records=[],e},e.prototype.values=function(e,t){var n,r=this;return void 0===t&&(t="next"),(n={})[Symbol.iterator]=function(){var n;if("next"===t){if(n=0,void 0!==e&&void 0!==e.lower)for(;void 0!==r.records[n];){if(1===(i=B(r.records[n].key,e.lower))||0===i&&!e.lowerOpen)break;n+=1}}else if(n=r.records.length-1,void 0!==e&&void 0!==e.upper)for(;void 0!==r.records[n];){var i;if(-1===(i=B(r.records[n].key,e.upper))||0===i&&!e.upperOpen)break;n-=1}return{next:function(){var i,o,a;"next"===t?(o=r.records[n],i=n>=r.records.length,n+=1,i||void 0===e||void 0===e.upper||(i=1===(a=B(o.key,e.upper))||0===a&&e.upperOpen)&&(o=void 0)):(o=r.records[n],i=n<0,n-=1,i||void 0===e||void 0===e.lower||(i=-1===(a=B(o.key,e.lower))||0===a&&e.lowerOpen)&&(o=void 0));return{done:i,value:o}}}},n},e}();const fe=de;var he=function(){function e(e,t,n,r,i){this.deleted=!1,this.initialized=!1,this.records=new fe,this.rawObjectStore=e,this.name=t,this.keyPath=n,this.multiEntry=r,this.unique=i}return e.prototype.getKey=function(e){var t=this.records.get(e);return void 0!==t?t.value:void 0},e.prototype.getAllKeys=function(e,t){var n,r;void 0!==t&&0!==t||(t=1/0);var i=[];try{for(var o=(0,l.Ju)(this.records.values(e)),a=o.next();!a.done;a=o.next()){var s=a.value;if(i.push(W(s.value)),i.length>=t)break}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.getValue=function(e){var t=this.records.get(e);return void 0!==t?this.rawObjectStore.getValue(t.value):void 0},e.prototype.getAllValues=function(e,t){var n,r;void 0!==t&&0!==t||(t=1/0);var i=[];try{for(var o=(0,l.Ju)(this.records.values(e)),a=o.next();!a.done;a=o.next()){var s=a.value;if(i.push(this.rawObjectStore.getValue(s.value)),i.length>=t)break}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.storeRecord=function(e){var t,n,r,i,o,a,s;try{s=V(this.keyPath,e.value)}catch(e){if("DataError"===e.name)return;throw e}if(this.multiEntry&&Array.isArray(s)){var u=[];try{for(var c=(0,l.Ju)(s),d=c.next();!d.done;d=c.next()){var f=d.value;if(u.indexOf(f)<0)try{u.push(x(f))}catch(e){}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}s=u}else try{x(s)}catch(e){return}if(this.multiEntry&&Array.isArray(s)){if(this.unique)try{for(var h=(0,l.Ju)(s),p=h.next();!p.done;p=h.next()){var m=p.value;if(this.records.get(m))throw new w}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}else if(this.unique&&this.records.get(s))throw new w;if(this.multiEntry&&Array.isArray(s))try{for(var _=(0,l.Ju)(s),y=_.next();!y.done;y=_.next()){m=y.value;this.records.add({key:m,value:e.key})}}catch(e){o={error:e}}finally{try{y&&!y.done&&(a=_.return)&&a.call(_)}finally{if(o)throw o.error}}else this.records.add({key:s,value:e.key})},e.prototype.initialize=function(e){var t=this;if(this.initialized)throw new Error("Index already initialized");e._execRequestAsync({operation:function(){var n,r;try{try{for(var i=(0,l.Ju)(t.rawObjectStore.records.values()),o=i.next();!o.done;o=i.next()){var a=o.value;t.storeRecord(a)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.initialized=!0}catch(t){e._abort(t.name)}},source:null})},e}();const pe=he;var me=function(e,t){var n,r,i,o;if(null==e||"string"==typeof e||!e.toString||"array"!==t&&Array.isArray(e)||(e=e.toString()),"string"==typeof e){if(""===e&&"string"!==t)return;try{if(e.length>=1&&/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])(?:[\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])*$/.test(e))return}catch(e){throw new SyntaxError(e.message)}if(e.indexOf(" ")>=0)throw new SyntaxError("The keypath argument contains an invalid key path (no spaces allowed).")}if(Array.isArray(e)&&e.length>0){if(t)throw new SyntaxError("The keypath argument contains an invalid key path (nested arrays).");try{for(var a=(0,l.Ju)(e),s=a.next();!s.done;s=a.next()){var u=s.value;me(u,"array")}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}else{if(!("string"==typeof e&&e.indexOf(".")>=0))throw new SyntaxError;e=e.split(".");try{for(var c=(0,l.Ju)(e),d=c.next();!d.done;d=c.next()){u=d.value;me(u,"string")}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}}};const _e=me;var ye=function(e){if(e._rawObjectStore.deleted)throw new I;if("active"!==e.transaction._state)throw new k},ge=function(e,t,n){if(ye(e),"readonly"===e.transaction.mode)throw new D;if(null!==e.keyPath&&void 0!==n)throw new R;var r=W(t);if(null!==e.keyPath){var i=V(e.keyPath,r);if(void 0!==i)x(i);else{if(!e._rawObjectStore.keyGenerator)throw new R;if(!se(e.keyPath,r))throw new R}}if(null===e.keyPath&&null===e._rawObjectStore.keyGenerator&&void 0===n)throw new R;return void 0!==n&&(n=x(n)),{key:n,value:r}},ve=function(){function e(e,t){this._indexesCache=new Map,this._rawObjectStore=t,this._name=t.name,this.keyPath=t.keyPath,this.autoIncrement=t.autoIncrement,this.transaction=e,this.indexNames=ne(Array.from(t.rawIndexes.keys())).sort()}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){var t=this,n=this.transaction;if(!n.db._runningVersionchangeTransaction)throw new I;if(ye(this),(e=String(e))!==this._name){if(this._rawObjectStore.rawDatabase.rawObjectStores.has(e))throw new w;var r=this._name,i=n.db.objectStoreNames.slice();this._name=e,this._rawObjectStore.name=e,this.transaction._objectStoresCache.delete(r),this.transaction._objectStoresCache.set(e,this),this._rawObjectStore.rawDatabase.rawObjectStores.delete(r),this._rawObjectStore.rawDatabase.rawObjectStores.set(e,this._rawObjectStore),n.db.objectStoreNames=ne(Array.from(this._rawObjectStore.rawDatabase.rawObjectStores.keys()).filter(function(e){var n=t._rawObjectStore.rawDatabase.rawObjectStores.get(e);return n&&!n.deleted})).sort();var o=new Set(n._scope),a=n.objectStoreNames.slice();this.transaction._scope.delete(r),n._scope.add(e),n.objectStoreNames=ne(Array.from(n._scope).sort()),n._rollbackLog.push(function(){t._name=r,t._rawObjectStore.name=r,t.transaction._objectStoresCache.delete(e),t.transaction._objectStoresCache.set(r,t),t._rawObjectStore.rawDatabase.rawObjectStores.delete(e),t._rawObjectStore.rawDatabase.rawObjectStores.set(r,t._rawObjectStore),n.db.objectStoreNames=ne(i),n._scope=o,n.objectStoreNames=ne(a)})}},enumerable:!1,configurable:!0}),e.prototype.put=function(e,t){if(0===arguments.length)throw new TypeError;var n=ge(this,e,t);return this.transaction._execRequestAsync({operation:this._rawObjectStore.storeRecord.bind(this._rawObjectStore,n,!1,this.transaction._rollbackLog),source:this})},e.prototype.add=function(e,t){if(0===arguments.length)throw new TypeError;var n=ge(this,e,t);return this.transaction._execRequestAsync({operation:this._rawObjectStore.storeRecord.bind(this._rawObjectStore,n,!0,this.transaction._rollbackLog),source:this})},e.prototype.delete=function(e){if(0===arguments.length)throw new TypeError;if(ye(this),"readonly"===this.transaction.mode)throw new D;return e instanceof U||(e=x(e)),this.transaction._execRequestAsync({operation:this._rawObjectStore.deleteRecord.bind(this._rawObjectStore,e,this.transaction._rollbackLog),source:this})},e.prototype.get=function(e){if(0===arguments.length)throw new TypeError;return ye(this),e instanceof U||(e=x(e)),this.transaction._execRequestAsync({operation:this._rawObjectStore.getValue.bind(this._rawObjectStore,e),source:this})},e.prototype.getAll=function(e,t){arguments.length>1&&void 0!==t&&(t=te(t,"unsigned long")),ye(this);var n=re(e);return this.transaction._execRequestAsync({operation:this._rawObjectStore.getAllValues.bind(this._rawObjectStore,n,t),source:this})},e.prototype.getKey=function(e){if(0===arguments.length)throw new TypeError;return ye(this),e instanceof U||(e=x(e)),this.transaction._execRequestAsync({operation:this._rawObjectStore.getKey.bind(this._rawObjectStore,e),source:this})},e.prototype.getAllKeys=function(e,t){arguments.length>1&&void 0!==t&&(t=te(t,"unsigned long")),ye(this);var n=re(e);return this.transaction._execRequestAsync({operation:this._rawObjectStore.getAllKeys.bind(this._rawObjectStore,n,t),source:this})},e.prototype.clear=function(){if(ye(this),"readonly"===this.transaction.mode)throw new D;return this.transaction._execRequestAsync({operation:this._rawObjectStore.clear.bind(this._rawObjectStore,this.transaction._rollbackLog),source:this})},e.prototype.openCursor=function(e,t){ye(this),null===e&&(e=void 0),void 0===e||e instanceof U||(e=U.only(x(e)));var n=new ee;n.source=this,n.transaction=this.transaction;var r=new z(this,e,t,n);return this.transaction._execRequestAsync({operation:r._iterate.bind(r),request:n,source:this})},e.prototype.openKeyCursor=function(e,t){ye(this),null===e&&(e=void 0),void 0===e||e instanceof U||(e=U.only(x(e)));var n=new ee;n.source=this,n.transaction=this.transaction;var r=new J(this,e,t,n,!0);return this.transaction._execRequestAsync({operation:r._iterate.bind(r),request:n,source:this})},e.prototype.createIndex=function(e,t,n){var r=this;if(void 0===n&&(n={}),arguments.length<2)throw new TypeError;var i=void 0!==n.multiEntry&&n.multiEntry,o=void 0!==n.unique&&n.unique;if("versionchange"!==this.transaction.mode)throw new I;if(ye(this),this.indexNames.indexOf(e)>=0)throw new w;if(_e(t),Array.isArray(t)&&i)throw new O;var a=this.indexNames.slice();this.transaction._rollbackLog.push(function(){var t=r._rawObjectStore.rawIndexes.get(e);t&&(t.deleted=!0),r.indexNames=ne(a),r._rawObjectStore.rawIndexes.delete(e)});var s=new pe(this._rawObjectStore,e,t,i,o);return this.indexNames.push(e),this.indexNames.sort(),this._rawObjectStore.rawIndexes.set(e,s),s.initialize(this.transaction),new ae(this,s)},e.prototype.index=function(e){if(0===arguments.length)throw new TypeError;if(this._rawObjectStore.deleted||"finished"===this.transaction._state)throw new I;var t=this._indexesCache.get(e);if(void 0!==t)return t;var n=this._rawObjectStore.rawIndexes.get(e);if(this.indexNames.indexOf(e)<0||void 0===n)throw new P;var r=new ae(this,n);return this._indexesCache.set(e,r),r},e.prototype.deleteIndex=function(e){var t=this;if(0===arguments.length)throw new TypeError;if("versionchange"!==this.transaction.mode)throw new I;ye(this);var n=this._rawObjectStore.rawIndexes.get(e);if(void 0===n)throw new P;this.transaction._rollbackLog.push(function(){n.deleted=!1,t._rawObjectStore.rawIndexes.set(e,n),t.indexNames.push(e),t.indexNames.sort()}),this.indexNames=ne(this.indexNames.filter(function(t){return t!==e})),n.deleted=!0,this.transaction._execRequestAsync({operation:function(){var r=t._rawObjectStore.rawIndexes.get(e);n===r&&t._rawObjectStore.rawIndexes.delete(e)},source:this})},e.prototype.count=function(e){var t=this;return ye(this),null===e&&(e=void 0),void 0===e||e instanceof U||(e=U.only(x(e))),this.transaction._execRequestAsync({operation:function(){for(var n=0,r=new J(t,e);null!==r._iterate();)n+=1;return n},source:this})},e.prototype.toString=function(){return"[object IDBObjectStore]"},e}();const be=ve;const Ee=function(){function e(e,t){void 0===t&&(t={}),this.eventPath=[],this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.canceled=!1,this.initialized=!0,this.dispatched=!1,this.target=null,this.currentTarget=null,this.eventPhase=0,this.defaultPrevented=!1,this.isTrusted=!1,this.timeStamp=Date.now(),this.type=e,this.bubbles=void 0!==t.bubbles&&t.bubbles,this.cancelable=void 0!==t.cancelable&&t.cancelable}return e.prototype.preventDefault=function(){this.cancelable&&(this.canceled=!0)},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.stopImmediatePropagation=function(){this.propagationStopped=!0,this.immediatePropagationStopped=!0},e}();var Se=function(e){function t(t,n,r){var i=e.call(this)||this;return i._state="active",i._started=!1,i._rollbackLog=[],i._objectStoresCache=new Map,i.error=null,i.onabort=null,i.oncomplete=null,i.onerror=null,i._requests=[],i._scope=new Set(t),i.mode=n,i.db=r,i.objectStoreNames=ne(Array.from(i._scope).sort()),i}return(0,l.C6)(t,e),t.prototype._abort=function(e){var t,n,r,i,o=this;try{for(var a=(0,l.Ju)(this._rollbackLog.reverse()),s=a.next();!s.done;s=a.next()){(0,s.value)()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}if(null!==e){var u=new Error;u.name=e,this.error=u}try{for(var c=(0,l.Ju)(this._requests),d=c.next();!d.done;d=c.next()){var f=d.value.request;if("done"!==f.readyState&&(f.readyState="done",f.source)){f.result=void 0,f.error=new C;var h=new Ee("error",{bubbles:!0,cancelable:!0});h.eventPath=[this.db,this],f.dispatchEvent(h)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}setImmediate(function(){var e=new Ee("abort",{bubbles:!0,cancelable:!1});e.eventPath=[o.db],o.dispatchEvent(e)}),this._state="finished"},t.prototype.abort=function(){if("committing"===this._state||"finished"===this._state)throw new I;this._state="active",this._abort(null)},t.prototype.objectStore=function(e){if("active"!==this._state)throw new I;var t=this._objectStoresCache.get(e);if(void 0!==t)return t;var n=this.db._rawDatabase.rawObjectStores.get(e);if(!this._scope.has(e)||void 0===n)throw new P;var r=new be(this,n);return this._objectStoresCache.set(e,r),r},t.prototype._execRequestAsync=function(e){var t=e.source,n=e.operation,r=e.hasOwnProperty("request")?e.request:null;if("active"!==this._state)throw new k;return r||(t?((r=new ee).source=t,r.transaction=t.transaction):r=new ee),this._requests.push({operation:n,request:r}),r},t.prototype._start=function(){var e,t;for(this._started=!0;this._requests.length>0;){var n=this._requests.shift();if(n&&"done"!==n.request.readyState){t=n.request,e=n.operation;break}}if(t&&e){if(t.source){var r,i=void 0;try{var o=e();t.readyState="done",t.result=o,t.error=void 0,"inactive"===this._state&&(this._state="active"),r=new Ee("success",{bubbles:!1,cancelable:!1})}catch(e){t.readyState="done",t.result=void 0,t.error=e,"inactive"===this._state&&(this._state="active"),r=new Ee("error",{bubbles:!0,cancelable:!0}),i=this._abort.bind(this,e.name)}try{r.eventPath=[this.db,this],t.dispatchEvent(r)}catch(e){throw"committing"!==this._state&&this._abort("AbortError"),e}r.canceled||i&&i()}else e();setImmediate(this._start.bind(this))}else if("finished"!==this._state&&(this._state="finished",!this.error)){var a=new Ee("complete");this.dispatchEvent(a)}},t.prototype.commit=function(){if("active"!==this._state)throw new I;this._state="committing"},t.prototype.toString=function(){return"[object IDBRequest]"},t}($);const Ae=Se;var Ce=9007199254740992;const we=function(){function e(){this.num=0}return e.prototype.next=function(){if(this.num>=Ce)throw new w;return this.num+=1,this.num},e.prototype.setIfLarger=function(e){var t=Math.floor(Math.min(e,Ce))-1;t>=this.num&&(this.num=t+1)},e}();var Te=function(){function e(e,t,n,r){this.deleted=!1,this.records=new fe,this.rawIndexes=new Map,this.rawDatabase=e,this.keyGenerator=r?new we:null,this.deleted=!1,this.name=t,this.keyPath=n,this.autoIncrement=r}return e.prototype.getKey=function(e){var t=this.records.get(e);return void 0!==t?W(t.key):void 0},e.prototype.getAllKeys=function(e,t){var n,r;void 0!==t&&0!==t||(t=1/0);var i=[];try{for(var o=(0,l.Ju)(this.records.values(e)),a=o.next();!a.done;a=o.next()){var s=a.value;if(i.push(W(s.key)),i.length>=t)break}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.getValue=function(e){var t=this.records.get(e);return void 0!==t?W(t.value):void 0},e.prototype.getAllValues=function(e,t){var n,r;void 0!==t&&0!==t||(t=1/0);var i=[];try{for(var o=(0,l.Ju)(this.records.values(e)),a=o.next();!a.done;a=o.next()){var s=a.value;if(i.push(W(s.value)),i.length>=t)break}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.storeRecord=function(e,t,n,r){var i,o,a=this;if(null!==this.keyPath){var s=V(this.keyPath,e.value);void 0!==s&&(e.key=s)}if(null!==this.keyGenerator&&void 0===e.key){if(n){var u=this.keyGenerator.num;n.push(function(){a.keyGenerator&&(a.keyGenerator.num=u)})}if(e.key=this.keyGenerator.next(),null!==this.keyPath){if(Array.isArray(this.keyPath))throw new Error("Cannot have an array key path in an object store with a key generator");for(var c=this.keyPath,d=e.value,f=void 0,h=0;h>=0;){if("object"!=typeof d)throw new R;(h=c.indexOf("."))>=0&&(f=c.slice(0,h),c=c.slice(h+1),d.hasOwnProperty(f)||(d[f]={}),d=d[f])}d[f=c]=e.key}}else null!==this.keyGenerator&&"number"==typeof e.key&&this.keyGenerator.setIfLarger(e.key);if(this.records.get(e.key)){if(t)throw new w;this.deleteRecord(e.key,n)}this.records.add(e),r||UnityLocalFileStore.store(e),n&&n.push(function(){a.deleteRecord(e.key)});try{for(var p=(0,l.Ju)(this.rawIndexes.values()),m=p.next();!m.done;m=p.next()){var _=m.value;_.initialized&&_.storeRecord(e)}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}return e.key},e.prototype.deleteRecord=function(e,t){var n,r,i,o,a=this,s=this.records.delete(e);if(UnityLocalFileStore.delete(s),t){var u=function(e){t.push(function(){a.storeRecord(e,!0)})};try{for(var c=(0,l.Ju)(s),d=c.next();!d.done;d=c.next()){u(d.value)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}try{for(var f=(0,l.Ju)(this.rawIndexes.values()),h=f.next();!h.done;h=f.next()){h.value.records.deleteByValue(e)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}},e.prototype.clear=function(e){var t,n,r,i,o=this,a=this.records.clear();if(e){var s=function(t){e.push(function(){o.storeRecord(t,!0)})};try{for(var u=(0,l.Ju)(a),c=u.next();!c.done;c=u.next()){s(c.value)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}}try{for(var d=(0,l.Ju)(this.rawIndexes.values()),f=d.next();!f.done;f=d.next()){f.value.records.clear()}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}},e}();const Re=Te;var Oe=function(e){if(!e._runningVersionchangeTransaction)throw new I;var t=e._rawDatabase.transactions.filter(function(e){return"versionchange"===e.mode}),n=t[t.length-1];if(!n||"finished"===n._state)throw new I;if("active"!==n._state)throw new k;return n},Ie=function(e){e._closePending=!0,e._rawDatabase.transactions.every(function(e){return"finished"===e._state})?(e._closed=!0,e._rawDatabase.connections=e._rawDatabase.connections.filter(function(t){return e!==t})):setImmediate(function(){Ie(e)})},Pe=function(e){function t(t){var n=e.call(this)||this;return n._closePending=!1,n._closed=!1,n._runningVersionchangeTransaction=!1,n._rawDatabase=t,n._rawDatabase.connections.push(n),n.name=t.name,n.version=t.version,n.objectStoreNames=ne(Array.from(t.rawObjectStores.keys())).sort(),n}return(0,l.C6)(t,e),t.prototype.createObjectStore=function(e,t){var n=this;if(void 0===t&&(t={}),void 0===e)throw new TypeError;var r=Oe(this),i=null!==t&&void 0!==t.keyPath?t.keyPath:null,o=null!==t&&void 0!==t.autoIncrement&&t.autoIncrement;if(null!==i&&_e(i),this._rawDatabase.rawObjectStores.has(e))throw new w;if(o&&(""===i||Array.isArray(i)))throw new O;var a=this.objectStoreNames.slice();r._rollbackLog.push(function(){var t=n._rawDatabase.rawObjectStores.get(e);t&&(t.deleted=!0),n.objectStoreNames=ne(a),r._scope.delete(e),n._rawDatabase.rawObjectStores.delete(e)});var s=new Re(this._rawDatabase,e,i,o);return this.objectStoreNames.push(e),this.objectStoreNames.sort(),r._scope.add(e),this._rawDatabase.rawObjectStores.set(e,s),r.objectStoreNames=ne(this.objectStoreNames.slice()),r.objectStore(e)},t.prototype.deleteObjectStore=function(e){var t=this;if(void 0===e)throw new TypeError;var n=Oe(this),r=this._rawDatabase.rawObjectStores.get(e);if(void 0===r)throw new P;this.objectStoreNames=ne(this.objectStoreNames.filter(function(t){return t!==e})),n.objectStoreNames=ne(this.objectStoreNames.slice()),n._rollbackLog.push(function(){r.deleted=!1,t._rawDatabase.rawObjectStores.set(e,r),t.objectStoreNames.push(e),t.objectStoreNames.sort()}),r.deleted=!0,this._rawDatabase.rawObjectStores.delete(e),n._objectStoresCache.delete(e)},t.prototype.transaction=function(e,t){var n,r,i=this;if("readonly"!==(t=void 0!==t?t:"readonly")&&"readwrite"!==t&&"versionchange"!==t)throw new TypeError("Invalid mode: "+t);if(this._rawDatabase.transactions.some(function(e){return"active"===e._state&&"versionchange"===e.mode&&e.db===i}))throw new I;if(this._closePending)throw new I;if(Array.isArray(e)||(e=[e]),0===e.length&&"versionchange"!==t)throw new O;try{for(var o=(0,l.Ju)(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(this.objectStoreNames.indexOf(s)<0)throw new P("No objectStore named "+s+" in this database")}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var u=new Ae(e,t,this);return this._rawDatabase.transactions.push(u),this._rawDatabase.processTransactions(),u},t.prototype.close=function(){Ie(this)},t.prototype.toString=function(){return"[object IDBDatabase]"},t}($);const De=Pe;const ke=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onupgradeneeded=null,t.onblocked=null,t}return(0,l.C6)(t,e),t.prototype.toString=function(){return"[object IDBOpenDBRequest]"},t}(ee);const Me=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this,t)||this;return r.newVersion=void 0!==n.newVersion?n.newVersion:null,r.oldVersion=void 0!==n.oldVersion?n.oldVersion:0,r}return(0,l.C6)(t,e),t.prototype.toString=function(){return"[object IDBVersionChangeEvent]"},t}(Ee);const Fe=function(){function e(e,t){this.deletePending=!1,this.transactions=[],this.rawObjectStores=new Map,this.connections=[],this.name=e,this.version=t,this.processTransactions=this.processTransactions.bind(this)}return e.prototype.processTransactions=function(){var e=this;setImmediate(function(){if(!e.transactions.some(function(e){return e._started&&"finished"!==e._state})){var t=e.transactions.find(function(e){return!e._started&&"finished"!==e._state});t&&(t.addEventListener("complete",e.processTransactions),t.addEventListener("abort",e.processTransactions),t._start())}})},e}();var xe=function(e,t,n,r){n.some(function(e){return!e._closed&&!e._closePending})?setImmediate(function(){return xe(e,t,n,r)}):(e.delete(t),r(null))},Le=function(e,t,n,r,i){var o=e.get(t);if(void 0===o&&(o=new Fe(t,0),e.set(t,o)),void 0===n&&(n=0!==o.version?o.version:1),o.version>n)return i(new M);var a=new De(o);o.version<n?function(e,t,n,r){var i,o;e._runningVersionchangeTransaction=!0;var a=e.version,s=e._rawDatabase.connections.filter(function(t){return e!==t});try{for(var u=(0,l.Ju)(s),c=u.next();!c.done;c=u.next()){var d=c.value;if(!d._closed&&!d._closePending){var f=new Me("versionchange",{newVersion:t,oldVersion:a});d.dispatchEvent(f)}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}if(s.some(function(e){return!e._closed&&!e._closePending})){var h=new Me("blocked",{newVersion:t,oldVersion:a});n.dispatchEvent(h)}var p=function(){var i=s.some(function(e){return!e._closed&&!e._closePending});if(i)setImmediate(p);else{e._rawDatabase.version=t,e.version=t;var o=e.transaction(e.objectStoreNames,"versionchange");n.result=e,n.readyState="done",n.transaction=o,o._rollbackLog.push(function(){e._rawDatabase.version=a,e.version=a});var u=new Me("upgradeneeded",{newVersion:t,oldVersion:a});n.dispatchEvent(u),o.addEventListener("error",function(){e._runningVersionchangeTransaction=!1}),o.addEventListener("abort",function(){e._runningVersionchangeTransaction=!1,n.transaction=null,setImmediate(function(){r(new C)})}),o.addEventListener("complete",function(){e._runningVersionchangeTransaction=!1,n.transaction=null,setImmediate(function(){e._closePending?r(new C):r(null)})})}};p()}(a,n,r,function(e){if(e)return i(e);i(null,a)}):i(null,a)},Ne=function(){function e(){this.cmp=B,this._databases=new Map}return e.prototype.deleteDatabase=function(e){var t=this,n=new ke;return n.source=null,setImmediate(function(){var r=t._databases.get(e),i=void 0!==r?r.version:0;!function(e,t,n,r){var i,o;try{var a=e.get(t);if(void 0===a)return void r(null);a.deletePending=!0;var s=a.connections.filter(function(e){return!e._closed&&!e._closePending});try{for(var u=(0,l.Ju)(s),c=u.next();!c.done;c=u.next()){var d=c.value;if(!d._closePending){var f=new Me("versionchange",{newVersion:null,oldVersion:a.version});d.dispatchEvent(f)}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}var h=s.some(function(e){return!e._closed&&!e._closePending});if(n&&h){var p=new Me("blocked",{newVersion:null,oldVersion:a.version});n.dispatchEvent(p)}xe(e,t,s,r)}catch(e){r(e)}}(t._databases,e,n,function(e){if(e){n.error=new Error,n.error.name=e.name,n.readyState="done";var t=new Ee("error",{bubbles:!0,cancelable:!0});return t.eventPath=[],void n.dispatchEvent(t)}n.result=void 0,n.readyState="done";var r=new Me("success",{newVersion:null,oldVersion:i});n.dispatchEvent(r)})}),n},e.prototype.open=function(e,t){var n=this;if(arguments.length>1&&void 0!==t&&(t=te(t,"MAX_SAFE_INTEGER")),0===t)throw new TypeError;var r=new ke;return r.source=null,setImmediate(function(){Le(n._databases,e,t,r,function(e,t){if(e){r.result=void 0,r.readyState="done",r.error=new Error,r.error.name=e.name;var n=new Ee("error",{bubbles:!0,cancelable:!0});return n.eventPath=[],void r.dispatchEvent(n)}r.result=t,r.readyState="done";var i=new Ee("success");i.eventPath=[],r.dispatchEvent(i)})}),r},e.prototype.databases=function(){var e=this;return new Promise(function(t){var n,r,i=[];try{for(var o=(0,l.Ju)(e._databases),a=o.next();!a.done;a=o.next()){var s=(0,l.zs)(a.value,2),u=s[0],c=s[1];i.push({name:u,version:c.version})}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}t(i)})},e.prototype.toString=function(){return"[object IDBFactory]"},e}();const Be=new Ne;const Ue={appName:"SC WebGL",platform:"android",language:"zh_CN",appVersion:"1.0.0",battery:100,userAgent:"Mozilla/5.0 (Linux; Android 10; SM-A205U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.62 Mobile Safari/537.36"};const je={now:Date.now};const Ve=function(e){e&&t.BT.warn(e)};var He=__webpack_require__(9406),We=["developers.tiktok.com"];function qe(e){for(var t in We)if(e.includes(t))return!0;return!1}var Ge=function(e,t,n,r){this.type=e,this.bubbles=t,this.cancelable=n,this.target=r};Ge.prototype={stopPropagation:function(){},preventDefault:function(){this.defaultPrevented=!0}};var Ke={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function Je(e,t){t.addEventListener(e,function(n){var r=t["on"+e];r&&"function"==typeof r&&r.call(n.target,n)})}function Xe(){this._eventListeners={};for(var e=["loadstart","progress","load","abort","loadend"],t=e.length-1;t>=0;t--)Je(e[t],this)}function ze(){Xe.call(this),this.readyState=ze.UNSENT,this.requestHeaders={},this.requestBody=null,this.status=0,this.statusText="",this.upload=new Xe,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.onreadystatechange=null,this.ontimeout=null,this.responseType=""}Xe.prototype={addEventListener:function(e,t){this._eventListeners[e]=this._eventListeners[e]||[],this._eventListeners[e].push(t)},removeEventListener:function(e,t){for(var n=this._eventListeners[e]||[],r=0,i=n.length;r<i;++r)if(n[r]===t)return n.splice(r,1)},dispatchEvent:function(e){for(var t=e.type,n=this._eventListeners[t]||[],r=0;r<n.length;r++)"function"==typeof n[r]?n[r].call(this,e):n[r].handleEvent(e);return!!e.defaultPrevented},_progress:function(e,t,n){var r=new Ge("progress");r.target=this,r.lengthComputable=e,r.loaded=t,r.total=n,this.dispatchEvent(r)}},ze.prototype=new Xe,ze.UNSENT=0,ze.OPENED=1,ze.HEADERS_RECEIVED=2,ze.LOADING=3,ze.DONE=4;var Ye={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4,async:!0,withCredentials:!1,open:function(e,t,n,r,i){this.method=e,this.url=t,this.async="boolean"!=typeof n||n,this.username=r,this.password=i,this.responseText=null,this.response=this.responseText,this.responseXML=null,this.responseURL=t,this.requestHeaders={},this.sendFlag=!1,this._readyStateChange(ze.OPENED)},setRequestHeader:function(e,t){Qe(this),this.requestHeaders[e]?this.requestHeaders[e]+=","+t:this.requestHeaders[e]=t},send:function(e){if(Qe(this),!/^(get|head)$/i.test(this.method)){var t=!1;Object.keys(this.requestHeaders).forEach(function(e){"content-type"===e.toLowerCase()&&(t=!0)}),t||(e||"").toString().match("FormData")||(this.requestHeaders["Content-Type"]="text/plain;charset=UTF-8"),this.requestBody=e}this.errorFlag=!1,this.sendFlag=this.async,this._readyStateChange(ze.OPENED),this._doRequest(e),this.dispatchEvent(new Ge("loadstart",!1,!1,this))},abort:function(){this.aborted=!0,this.responseText=null,this.response=this.responseText,this.errorFlag=!0,this.requestHeaders={},this.dispatchEvent(new Ge("abort",!1,!1,this)),this.readyState>ze.UNSENT&&this.sendFlag&&(this._readyStateChange(ze.UNSENT),this.sendFlag=!1),"function"==typeof this.onerror&&this.onerror()},getResponseHeader:function(e){if(this.readyState<ze.HEADERS_RECEIVED)return null;if(/^Set-Cookie2?$/i.test(e))return null;for(var t in e=e.toLowerCase(),this.responseHeaders)if(t.toLowerCase()==e)return this.responseHeaders[t];return null},getAllResponseHeaders:function(){if(this.readyState<ze.HEADERS_RECEIVED)return"";var e="";for(var t in this.responseHeaders)this.responseHeaders.hasOwnProperty(t)&&!/^Set-Cookie2?$/i.test(t)&&(e+=t+": "+this.responseHeaders[t]+"\n");return e},overrideMimeType:function(e){"string"==typeof e&&(this.forceMimeType=e.toLowerCase())},_readyStateChange:function(e){this.readyState=e,"function"==typeof this.onreadystatechange&&this.onreadystatechange(new Ge("readystatechange")),this.dispatchEvent(new Ge("readystatechange")),this.readyState===ze.DONE&&this.dispatchEvent(new Ge("load",!1,!1,this)),this.readyState!==ze.UNSENT&&this.readyState!==ze.DONE||this.dispatchEvent(new Ge("loadend",!1,!1,this))},_makeHeadersLowercase:function(){if("object"==typeof this.requestHeaders){const e={};for(let t in this.requestHeaders)e[t.toLowerCase()]=this.requestHeaders[t];this.requestHeaders={};for(let t in e)this.requestHeaders[t]?this.requestHeaders[t]+=","+e[t]:this.requestHeaders[t]=e[t]}else this.requestHeaders={}},_doRequest:function(e){this._makeHeadersLowercase(),"GET"!==this.method&&null!=e&&"object"==typeof e&&(e.length??0)>0&&(e=new Uint8Array(e).buffer);let t=jssdk.request,n=!1;qe(this.url)&&(t=(0,He.W)().innerRequest,n=!0),t({data:e,url:this.url,method:this.method,header:this.requestHeaders,dataType:"other",withCommonParams:n,responseType:"arraybuffer"===this.responseType?"arraybuffer":"text",success:e=>{const t=e.data,n=e.statusCode,r=e.header;switch(this.status=n,this._setResponseHeaders([r]),this._readyStateChange(ze.HEADERS_RECEIVED),this._readyStateChange(ze.LOADING),this.responseType){case"json":this.responseText=t;try{this.response=JSON.parse(t)}catch(e){this.response=null}break;case"":case"text":this.responseText=this.response=t;break;case"arraybuffer":this.response=t,this.responseText=""}this._readyStateChange(ze.DONE)},fail:e=>{console.error(`request ${this.url} failed, error: ${JSON.stringify(e)}---`);const t=e.errMsg;-1!==t.indexOf("abort")?this.onabort&&this.onabort():-1!==t.indexOf("timeout")?this.ontimeout&&this.ontimeout():this.onerror&&this.onerror(t),this.onloadend&&this.onloadend()}})},_setResponseHeaders:function(e){for(var t in this.responseHeaders={},e)if(e.hasOwnProperty(t))if("object"==typeof e[t])for(let n in e[t])this.responseHeaders[n]=e[t][n];else this.responseHeaders[t]=e[t];this.forceMimeType&&(this.responseHeaders["Content-Type"]=this.forceMimeType),this.async?this._readyStateChange(ze.HEADERS_RECEIVED):this.readyState=ze.HEADERS_RECEIVED},_setResponseBody:function(e){!function(e){if(e.readyState==ze.DONE)throw new Error("Request done")}(this),function(e){if(e.async&&e.readyState!=ze.HEADERS_RECEIVED)throw new Error("No headers received")}(this),function(e){if("string"!=typeof e){var t=new Error("Attempted to respond to fake XMLHttpRequest with "+e+", which is not a string.");throw t.name="InvalidBodyException",t}}(e);var t=this.chunkSize||10,n=0;this.responseText="",this.response=this.responseText;do{this.async&&this._readyStateChange(ze.LOADING),this.responseText+=e.substring(n,n+t),this.response=this.responseText,n+=t}while(n<e.length);var r,i,o=this.getResponseHeader("Content-Type");if(this.responseText&&(!o||/(text\/xml)|(application\/xml)|(\+xml)/.test(o)))try{this.responseXML=(r=this.responseText,"undefined"!=typeof DOMParser?i=(new DOMParser).parseFromString(r,"text/xml"):((i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(r)),i)}catch(e){}this.async?this._readyStateChange(ze.DONE):this.readyState=ze.DONE},respond:function(e,t,n){this._setResponseHeaders(t||{}),this.status="number"==typeof e?e:200,this.statusText=Ke[this.status],this._setResponseBody(n||"")}};for(var Ze in Ye)ze.prototype[Ze]=Ye[Ze];function Qe(e){if(e.readyState!==ze.OPENED)throw new Error("INVALID_STATE_ERR");if(e.sendFlag)throw new Error("INVALID_STATE_ERR")}const $e=ze;var et=function(){function e(e){var t,n,r,i,o,a,s,u,c,l,d,f,h,p,m,_,y,g,v,b,E,S,A,C,w,T,R,O,I,P,D,k,M,F,x,L,N,B,U,j,V,H,W,q,G,K,J,X,z,Y,Z,Q,$,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,de,fe,he,pe,me,_e,ye,ge,ve,be,Ee,Se,Ae,Ce,we,Te,Re,Oe,Ie,Pe,De,ke,Me,Fe,xe,Le,Ne,Be,Ue,je,Ve,He,We,qe,Ge,Ke,Je,Xe,ze,Ye,Ze,Qe,$e,et,tt,nt,rt,it,ot,at,st,ut,ct,lt,dt,ft,ht,pt,mt,_t,yt,gt,vt,bt,Et,St,At,Ct,wt,Tt,Rt,Ot,It,Pt,Dt,kt,Mt,Ft,xt,Lt,Nt,Bt,Ut,jt,Vt,Ht,Wt,qt,Gt,Kt,Jt,Xt,zt,Yt,Zt,Qt,$t,en,tn,nn,rn,on,an,sn,un,cn,ln,dn,fn,hn,pn,mn,_n,yn,gn,vn,bn,En,Sn,An,Cn,wn,Tn,Rn,On,In,Pn,Dn,kn,Mn,Fn,xn,Ln,Nn,Bn,Un,jn,Vn,Hn,Wn,qn,Gn,Kn,Jn,Xn,zn,Yn,Zn,Qn,$n,er,tr,nr,rr,ir,or,ar,sr,ur,cr,lr,dr,fr,hr,pr,mr,_r,yr,gr,vr,br,Er,Sr,Ar,Cr,wr,Tr,Rr,Or,Ir,Pr,Dr,kr,Mr,Fr,xr,Lr,Nr,Br,Ur,jr,Vr,Hr,Wr,qr,Gr,Kr,Jr,Xr,zr,Yr,Zr,Qr,$r,ei,ti,ni,ri,ii,oi,ai,si,ui,ci,li,di,fi,hi,pi,mi,_i,yi,gi,vi,bi,Ei,Si,Ai,Ci,wi,Ti,Ri,Oi,Ii,Pi;this._originCtx=e,this.canvas=null===(t=this._originCtx)||void 0===t?void 0:t.canvas,this.drawingBufferHeight=null===(n=this._originCtx)||void 0===n?void 0:n.drawingBufferHeight,this.drawingBufferWidth=null===(r=this._originCtx)||void 0===r?void 0:r.drawingBufferWidth,this.ACTIVE_ATTRIBUTES=null===(i=this._originCtx)||void 0===i?void 0:i.ACTIVE_ATTRIBUTES,this.ACTIVE_TEXTURE=null===(o=this._originCtx)||void 0===o?void 0:o.ACTIVE_TEXTURE,this.ACTIVE_UNIFORMS=null===(a=this._originCtx)||void 0===a?void 0:a.ACTIVE_UNIFORMS,this.ALIASED_LINE_WIDTH_RANGE=null===(s=this._originCtx)||void 0===s?void 0:s.ALIASED_LINE_WIDTH_RANGE,this.ALIASED_POINT_SIZE_RANGE=null===(u=this._originCtx)||void 0===u?void 0:u.ALIASED_POINT_SIZE_RANGE,this.ALPHA=null===(c=this._originCtx)||void 0===c?void 0:c.ALPHA,this.ALPHA_BITS=null===(l=this._originCtx)||void 0===l?void 0:l.ALPHA_BITS,this.ALWAYS=null===(d=this._originCtx)||void 0===d?void 0:d.ALWAYS,this.ARRAY_BUFFER=null===(f=this._originCtx)||void 0===f?void 0:f.ARRAY_BUFFER,this.ARRAY_BUFFER_BINDING=null===(h=this._originCtx)||void 0===h?void 0:h.ARRAY_BUFFER_BINDING,this.ATTACHED_SHADERS=null===(p=this._originCtx)||void 0===p?void 0:p.ATTACHED_SHADERS,this.BACK=null===(m=this._originCtx)||void 0===m?void 0:m.BACK,this.BLEND=null===(_=this._originCtx)||void 0===_?void 0:_.BLEND,this.BLEND_COLOR=null===(y=this._originCtx)||void 0===y?void 0:y.BLEND_COLOR,this.BLEND_DST_ALPHA=null===(g=this._originCtx)||void 0===g?void 0:g.BLEND_DST_ALPHA,this.BLEND_DST_RGB=null===(v=this._originCtx)||void 0===v?void 0:v.BLEND_DST_RGB,this.BLEND_EQUATION=null===(b=this._originCtx)||void 0===b?void 0:b.BLEND_EQUATION,this.BLEND_EQUATION_ALPHA=null===(E=this._originCtx)||void 0===E?void 0:E.BLEND_EQUATION_ALPHA,this.BLEND_EQUATION_RGB=null===(S=this._originCtx)||void 0===S?void 0:S.BLEND_EQUATION_RGB,this.BLEND_SRC_ALPHA=null===(A=this._originCtx)||void 0===A?void 0:A.BLEND_SRC_ALPHA,this.BLEND_SRC_RGB=null===(C=this._originCtx)||void 0===C?void 0:C.BLEND_SRC_RGB,this.BLUE_BITS=null===(w=this._originCtx)||void 0===w?void 0:w.BLUE_BITS,this.BOOL=null===(T=this._originCtx)||void 0===T?void 0:T.BOOL,this.BOOL_VEC2=null===(R=this._originCtx)||void 0===R?void 0:R.BOOL_VEC2,this.BOOL_VEC3=null===(O=this._originCtx)||void 0===O?void 0:O.BOOL_VEC3,this.BOOL_VEC4=null===(I=this._originCtx)||void 0===I?void 0:I.BOOL_VEC4,this.BROWSER_DEFAULT_WEBGL=null===(P=this._originCtx)||void 0===P?void 0:P.BROWSER_DEFAULT_WEBGL,this.BUFFER_SIZE=null===(D=this._originCtx)||void 0===D?void 0:D.BUFFER_SIZE,this.BUFFER_USAGE=null===(k=this._originCtx)||void 0===k?void 0:k.BUFFER_USAGE,this.BYTE=null===(M=this._originCtx)||void 0===M?void 0:M.BYTE,this.CCW=null===(F=this._originCtx)||void 0===F?void 0:F.CCW,this.CLAMP_TO_EDGE=null===(x=this._originCtx)||void 0===x?void 0:x.CLAMP_TO_EDGE,this.COLOR_ATTACHMENT0=null===(L=this._originCtx)||void 0===L?void 0:L.COLOR_ATTACHMENT0,this.COLOR_BUFFER_BIT=null===(N=this._originCtx)||void 0===N?void 0:N.COLOR_BUFFER_BIT,this.COLOR_CLEAR_VALUE=null===(B=this._originCtx)||void 0===B?void 0:B.COLOR_CLEAR_VALUE,this.COLOR_WRITEMASK=null===(U=this._originCtx)||void 0===U?void 0:U.COLOR_WRITEMASK,this.COMPILE_STATUS=null===(j=this._originCtx)||void 0===j?void 0:j.COMPILE_STATUS,this.COMPRESSED_TEXTURE_FORMATS=null===(V=this._originCtx)||void 0===V?void 0:V.COMPRESSED_TEXTURE_FORMATS,this.CONSTANT_ALPHA=null===(H=this._originCtx)||void 0===H?void 0:H.CONSTANT_ALPHA,this.CONSTANT_COLOR=null===(W=this._originCtx)||void 0===W?void 0:W.CONSTANT_COLOR,this.CONTEXT_LOST_WEBGL=null===(q=this._originCtx)||void 0===q?void 0:q.CONTEXT_LOST_WEBGL,this.CULL_FACE=null===(G=this._originCtx)||void 0===G?void 0:G.CULL_FACE,this.CULL_FACE_MODE=null===(K=this._originCtx)||void 0===K?void 0:K.CULL_FACE_MODE,this.CURRENT_PROGRAM=null===(J=this._originCtx)||void 0===J?void 0:J.CURRENT_PROGRAM,this.CURRENT_VERTEX_ATTRIB=null===(X=this._originCtx)||void 0===X?void 0:X.CURRENT_VERTEX_ATTRIB,this.CW=null===(z=this._originCtx)||void 0===z?void 0:z.CW,this.DECR=null===(Y=this._originCtx)||void 0===Y?void 0:Y.DECR,this.DECR_WRAP=null===(Z=this._originCtx)||void 0===Z?void 0:Z.DECR_WRAP,this.DELETE_STATUS=null===(Q=this._originCtx)||void 0===Q?void 0:Q.DELETE_STATUS,this.DEPTH_ATTACHMENT=null===($=this._originCtx)||void 0===$?void 0:$.DEPTH_ATTACHMENT,this.DEPTH_BITS=null===(ee=this._originCtx)||void 0===ee?void 0:ee.DEPTH_BITS,this.DEPTH_BUFFER_BIT=null===(te=this._originCtx)||void 0===te?void 0:te.DEPTH_BUFFER_BIT,this.DEPTH_CLEAR_VALUE=null===(ne=this._originCtx)||void 0===ne?void 0:ne.DEPTH_CLEAR_VALUE,this.DEPTH_COMPONENT=null===(re=this._originCtx)||void 0===re?void 0:re.DEPTH_COMPONENT,this.DEPTH_COMPONENT16=null===(ie=this._originCtx)||void 0===ie?void 0:ie.DEPTH_COMPONENT16,this.DEPTH_FUNC=null===(oe=this._originCtx)||void 0===oe?void 0:oe.DEPTH_FUNC,this.DEPTH_RANGE=null===(ae=this._originCtx)||void 0===ae?void 0:ae.DEPTH_RANGE,this.DEPTH_STENCIL=null===(se=this._originCtx)||void 0===se?void 0:se.DEPTH_STENCIL,this.DEPTH_STENCIL_ATTACHMENT=null===(ue=this._originCtx)||void 0===ue?void 0:ue.DEPTH_STENCIL_ATTACHMENT,this.DEPTH_TEST=null===(ce=this._originCtx)||void 0===ce?void 0:ce.DEPTH_TEST,this.DEPTH_WRITEMASK=null===(le=this._originCtx)||void 0===le?void 0:le.DEPTH_WRITEMASK,this.DITHER=null===(de=this._originCtx)||void 0===de?void 0:de.DITHER,this.DONT_CARE=null===(fe=this._originCtx)||void 0===fe?void 0:fe.DONT_CARE,this.DST_ALPHA=null===(he=this._originCtx)||void 0===he?void 0:he.DST_ALPHA,this.DST_COLOR=null===(pe=this._originCtx)||void 0===pe?void 0:pe.DST_COLOR,this.DYNAMIC_DRAW=null===(me=this._originCtx)||void 0===me?void 0:me.DYNAMIC_DRAW,this.ELEMENT_ARRAY_BUFFER=null===(_e=this._originCtx)||void 0===_e?void 0:_e.ELEMENT_ARRAY_BUFFER,this.ELEMENT_ARRAY_BUFFER_BINDING=null===(ye=this._originCtx)||void 0===ye?void 0:ye.ELEMENT_ARRAY_BUFFER_BINDING,this.EQUAL=null===(ge=this._originCtx)||void 0===ge?void 0:ge.EQUAL,this.FASTEST=null===(ve=this._originCtx)||void 0===ve?void 0:ve.FASTEST,this.FLOAT=null===(be=this._originCtx)||void 0===be?void 0:be.FLOAT,this.FLOAT_MAT2=null===(Ee=this._originCtx)||void 0===Ee?void 0:Ee.FLOAT_MAT2,this.FLOAT_MAT3=null===(Se=this._originCtx)||void 0===Se?void 0:Se.FLOAT_MAT3,this.FLOAT_MAT4=null===(Ae=this._originCtx)||void 0===Ae?void 0:Ae.FLOAT_MAT4,this.FLOAT_VEC2=null===(Ce=this._originCtx)||void 0===Ce?void 0:Ce.FLOAT_VEC2,this.FLOAT_VEC3=null===(we=this._originCtx)||void 0===we?void 0:we.FLOAT_VEC3,this.FLOAT_VEC4=null===(Te=this._originCtx)||void 0===Te?void 0:Te.FLOAT_VEC4,this.FRAGMENT_SHADER=null===(Re=this._originCtx)||void 0===Re?void 0:Re.FRAGMENT_SHADER,this.FRAMEBUFFER=null===(Oe=this._originCtx)||void 0===Oe?void 0:Oe.FRAMEBUFFER,this.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=null===(Ie=this._originCtx)||void 0===Ie?void 0:Ie.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,this.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=null===(Pe=this._originCtx)||void 0===Pe?void 0:Pe.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,this.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=null===(De=this._originCtx)||void 0===De?void 0:De.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE,this.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=null===(ke=this._originCtx)||void 0===ke?void 0:ke.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL,this.FRAMEBUFFER_BINDING=null===(Me=this._originCtx)||void 0===Me?void 0:Me.FRAMEBUFFER_BINDING,this.FRAMEBUFFER_COMPLETE=null===(Fe=this._originCtx)||void 0===Fe?void 0:Fe.FRAMEBUFFER_COMPLETE,this.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=null===(xe=this._originCtx)||void 0===xe?void 0:xe.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,this.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=null===(Le=this._originCtx)||void 0===Le?void 0:Le.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,this.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=null===(Ne=this._originCtx)||void 0===Ne?void 0:Ne.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT,this.FRAMEBUFFER_UNSUPPORTED=null===(Be=this._originCtx)||void 0===Be?void 0:Be.FRAMEBUFFER_UNSUPPORTED,this.FRONT=null===(Ue=this._originCtx)||void 0===Ue?void 0:Ue.FRONT,this.FRONT_AND_BACK=null===(je=this._originCtx)||void 0===je?void 0:je.FRONT_AND_BACK,this.FRONT_FACE=null===(Ve=this._originCtx)||void 0===Ve?void 0:Ve.FRONT_FACE,this.FUNC_ADD=null===(He=this._originCtx)||void 0===He?void 0:He.FUNC_ADD,this.FUNC_REVERSE_SUBTRACT=null===(We=this._originCtx)||void 0===We?void 0:We.FUNC_REVERSE_SUBTRACT,this.FUNC_SUBTRACT=null===(qe=this._originCtx)||void 0===qe?void 0:qe.FUNC_SUBTRACT,this.GENERATE_MIPMAP_HINT=null===(Ge=this._originCtx)||void 0===Ge?void 0:Ge.GENERATE_MIPMAP_HINT,this.GEQUAL=null===(Ke=this._originCtx)||void 0===Ke?void 0:Ke.GEQUAL,this.GREATER=null===(Je=this._originCtx)||void 0===Je?void 0:Je.GREATER,this.GREEN_BITS=null===(Xe=this._originCtx)||void 0===Xe?void 0:Xe.GREEN_BITS,this.HIGH_FLOAT=null===(ze=this._originCtx)||void 0===ze?void 0:ze.HIGH_FLOAT,this.HIGH_INT=null===(Ye=this._originCtx)||void 0===Ye?void 0:Ye.HIGH_INT,this.IMPLEMENTATION_COLOR_READ_FORMAT=null===(Ze=this._originCtx)||void 0===Ze?void 0:Ze.IMPLEMENTATION_COLOR_READ_FORMAT,this.IMPLEMENTATION_COLOR_READ_TYPE=null===(Qe=this._originCtx)||void 0===Qe?void 0:Qe.IMPLEMENTATION_COLOR_READ_TYPE,this.INCR=null===($e=this._originCtx)||void 0===$e?void 0:$e.INCR,this.INCR_WRAP=null===(et=this._originCtx)||void 0===et?void 0:et.INCR_WRAP,this.INT=null===(tt=this._originCtx)||void 0===tt?void 0:tt.INT,this.INT_VEC2=null===(nt=this._originCtx)||void 0===nt?void 0:nt.INT_VEC2,this.INT_VEC3=null===(rt=this._originCtx)||void 0===rt?void 0:rt.INT_VEC3,this.INT_VEC4=null===(it=this._originCtx)||void 0===it?void 0:it.INT_VEC4,this.INVALID_ENUM=null===(ot=this._originCtx)||void 0===ot?void 0:ot.INVALID_ENUM,this.INVALID_FRAMEBUFFER_OPERATION=null===(at=this._originCtx)||void 0===at?void 0:at.INVALID_FRAMEBUFFER_OPERATION,this.INVALID_OPERATION=null===(st=this._originCtx)||void 0===st?void 0:st.INVALID_OPERATION,this.INVALID_VALUE=null===(ut=this._originCtx)||void 0===ut?void 0:ut.INVALID_VALUE,this.INVERT=null===(ct=this._originCtx)||void 0===ct?void 0:ct.INVERT,this.KEEP=null===(lt=this._originCtx)||void 0===lt?void 0:lt.KEEP,this.LEQUAL=null===(dt=this._originCtx)||void 0===dt?void 0:dt.LEQUAL,this.LESS=null===(ft=this._originCtx)||void 0===ft?void 0:ft.LESS,this.LINEAR=null===(ht=this._originCtx)||void 0===ht?void 0:ht.LINEAR,this.LINEAR_MIPMAP_LINEAR=null===(pt=this._originCtx)||void 0===pt?void 0:pt.LINEAR_MIPMAP_LINEAR,this.LINEAR_MIPMAP_NEAREST=null===(mt=this._originCtx)||void 0===mt?void 0:mt.LINEAR_MIPMAP_NEAREST,this.LINES=null===(_t=this._originCtx)||void 0===_t?void 0:_t.LINES,this.LINE_LOOP=null===(yt=this._originCtx)||void 0===yt?void 0:yt.LINE_LOOP,this.LINE_STRIP=null===(gt=this._originCtx)||void 0===gt?void 0:gt.LINE_STRIP,this.LINE_WIDTH=null===(vt=this._originCtx)||void 0===vt?void 0:vt.LINE_WIDTH,this.LINK_STATUS=null===(bt=this._originCtx)||void 0===bt?void 0:bt.LINK_STATUS,this.LOW_FLOAT=null===(Et=this._originCtx)||void 0===Et?void 0:Et.LOW_FLOAT,this.LOW_INT=null===(St=this._originCtx)||void 0===St?void 0:St.LOW_INT,this.LUMINANCE=null===(At=this._originCtx)||void 0===At?void 0:At.LUMINANCE,this.LUMINANCE_ALPHA=null===(Ct=this._originCtx)||void 0===Ct?void 0:Ct.LUMINANCE_ALPHA,this.MAX_COMBINED_TEXTURE_IMAGE_UNITS=null===(wt=this._originCtx)||void 0===wt?void 0:wt.MAX_COMBINED_TEXTURE_IMAGE_UNITS,this.MAX_CUBE_MAP_TEXTURE_SIZE=null===(Tt=this._originCtx)||void 0===Tt?void 0:Tt.MAX_CUBE_MAP_TEXTURE_SIZE,this.MAX_FRAGMENT_UNIFORM_VECTORS=null===(Rt=this._originCtx)||void 0===Rt?void 0:Rt.MAX_FRAGMENT_UNIFORM_VECTORS,this.MAX_RENDERBUFFER_SIZE=null===(Ot=this._originCtx)||void 0===Ot?void 0:Ot.MAX_RENDERBUFFER_SIZE,this.MAX_TEXTURE_IMAGE_UNITS=null===(It=this._originCtx)||void 0===It?void 0:It.MAX_TEXTURE_IMAGE_UNITS,this.MAX_TEXTURE_SIZE=null===(Pt=this._originCtx)||void 0===Pt?void 0:Pt.MAX_TEXTURE_SIZE,this.MAX_VARYING_VECTORS=null===(Dt=this._originCtx)||void 0===Dt?void 0:Dt.MAX_VARYING_VECTORS,this.MAX_VERTEX_ATTRIBS=null===(kt=this._originCtx)||void 0===kt?void 0:kt.MAX_VERTEX_ATTRIBS,this.MAX_VERTEX_TEXTURE_IMAGE_UNITS=null===(Mt=this._originCtx)||void 0===Mt?void 0:Mt.MAX_VERTEX_TEXTURE_IMAGE_UNITS,this.MAX_VERTEX_UNIFORM_VECTORS=null===(Ft=this._originCtx)||void 0===Ft?void 0:Ft.MAX_VERTEX_UNIFORM_VECTORS,this.MAX_VIEWPORT_DIMS=null===(xt=this._originCtx)||void 0===xt?void 0:xt.MAX_VIEWPORT_DIMS,this.MEDIUM_FLOAT=null===(Lt=this._originCtx)||void 0===Lt?void 0:Lt.MEDIUM_FLOAT,this.MEDIUM_INT=null===(Nt=this._originCtx)||void 0===Nt?void 0:Nt.MEDIUM_INT,this.MIRRORED_REPEAT=null===(Bt=this._originCtx)||void 0===Bt?void 0:Bt.MIRRORED_REPEAT,this.NEAREST=null===(Ut=this._originCtx)||void 0===Ut?void 0:Ut.NEAREST,this.NEAREST_MIPMAP_LINEAR=null===(jt=this._originCtx)||void 0===jt?void 0:jt.NEAREST_MIPMAP_LINEAR,this.NEAREST_MIPMAP_NEAREST=null===(Vt=this._originCtx)||void 0===Vt?void 0:Vt.NEAREST_MIPMAP_NEAREST,this.NEVER=null===(Ht=this._originCtx)||void 0===Ht?void 0:Ht.NEVER,this.NICEST=null===(Wt=this._originCtx)||void 0===Wt?void 0:Wt.NICEST,this.NONE=null===(qt=this._originCtx)||void 0===qt?void 0:qt.NONE,this.NOTEQUAL=null===(Gt=this._originCtx)||void 0===Gt?void 0:Gt.NOTEQUAL,this.NO_ERROR=null===(Kt=this._originCtx)||void 0===Kt?void 0:Kt.NO_ERROR,this.ONE=null===(Jt=this._originCtx)||void 0===Jt?void 0:Jt.ONE,this.ONE_MINUS_CONSTANT_ALPHA=null===(Xt=this._originCtx)||void 0===Xt?void 0:Xt.ONE_MINUS_CONSTANT_ALPHA,this.ONE_MINUS_CONSTANT_COLOR=null===(zt=this._originCtx)||void 0===zt?void 0:zt.ONE_MINUS_CONSTANT_COLOR,this.ONE_MINUS_DST_ALPHA=null===(Yt=this._originCtx)||void 0===Yt?void 0:Yt.ONE_MINUS_DST_ALPHA,this.ONE_MINUS_DST_COLOR=null===(Zt=this._originCtx)||void 0===Zt?void 0:Zt.ONE_MINUS_DST_COLOR,this.ONE_MINUS_SRC_ALPHA=null===(Qt=this._originCtx)||void 0===Qt?void 0:Qt.ONE_MINUS_SRC_ALPHA,this.ONE_MINUS_SRC_COLOR=null===($t=this._originCtx)||void 0===$t?void 0:$t.ONE_MINUS_SRC_COLOR,this.OUT_OF_MEMORY=null===(en=this._originCtx)||void 0===en?void 0:en.OUT_OF_MEMORY,this.PACK_ALIGNMENT=null===(tn=this._originCtx)||void 0===tn?void 0:tn.PACK_ALIGNMENT,this.POINTS=null===(nn=this._originCtx)||void 0===nn?void 0:nn.POINTS,this.POLYGON_OFFSET_FACTOR=null===(rn=this._originCtx)||void 0===rn?void 0:rn.POLYGON_OFFSET_FACTOR,this.POLYGON_OFFSET_FILL=null===(on=this._originCtx)||void 0===on?void 0:on.POLYGON_OFFSET_FILL,this.POLYGON_OFFSET_UNITS=null===(an=this._originCtx)||void 0===an?void 0:an.POLYGON_OFFSET_UNITS,this.RED_BITS=null===(sn=this._originCtx)||void 0===sn?void 0:sn.RED_BITS,this.RENDERBUFFER=null===(un=this._originCtx)||void 0===un?void 0:un.RENDERBUFFER,this.RENDERBUFFER_ALPHA_SIZE=null===(cn=this._originCtx)||void 0===cn?void 0:cn.RENDERBUFFER_ALPHA_SIZE,this.RENDERBUFFER_BINDING=null===(ln=this._originCtx)||void 0===ln?void 0:ln.RENDERBUFFER_BINDING,this.RENDERBUFFER_BLUE_SIZE=null===(dn=this._originCtx)||void 0===dn?void 0:dn.RENDERBUFFER_BLUE_SIZE,this.RENDERBUFFER_DEPTH_SIZE=null===(fn=this._originCtx)||void 0===fn?void 0:fn.RENDERBUFFER_DEPTH_SIZE,this.RENDERBUFFER_GREEN_SIZE=null===(hn=this._originCtx)||void 0===hn?void 0:hn.RENDERBUFFER_GREEN_SIZE,this.RENDERBUFFER_HEIGHT=null===(pn=this._originCtx)||void 0===pn?void 0:pn.RENDERBUFFER_HEIGHT,this.RENDERBUFFER_INTERNAL_FORMAT=null===(mn=this._originCtx)||void 0===mn?void 0:mn.RENDERBUFFER_INTERNAL_FORMAT,this.RENDERBUFFER_RED_SIZE=null===(_n=this._originCtx)||void 0===_n?void 0:_n.RENDERBUFFER_RED_SIZE,this.RENDERBUFFER_STENCIL_SIZE=null===(yn=this._originCtx)||void 0===yn?void 0:yn.RENDERBUFFER_STENCIL_SIZE,this.RENDERBUFFER_WIDTH=null===(gn=this._originCtx)||void 0===gn?void 0:gn.RENDERBUFFER_WIDTH,this.RENDERER=null===(vn=this._originCtx)||void 0===vn?void 0:vn.RENDERER,this.REPEAT=null===(bn=this._originCtx)||void 0===bn?void 0:bn.REPEAT,this.REPLACE=null===(En=this._originCtx)||void 0===En?void 0:En.REPLACE,this.RGB=null===(Sn=this._originCtx)||void 0===Sn?void 0:Sn.RGB,this.RGB565=null===(An=this._originCtx)||void 0===An?void 0:An.RGB565,this.RGB5_A1=null===(Cn=this._originCtx)||void 0===Cn?void 0:Cn.RGB5_A1,this.RGBA=null===(wn=this._originCtx)||void 0===wn?void 0:wn.RGBA,this.RGBA4=null===(Tn=this._originCtx)||void 0===Tn?void 0:Tn.RGBA4,this.SAMPLER_2D=null===(Rn=this._originCtx)||void 0===Rn?void 0:Rn.SAMPLER_2D,this.SAMPLER_CUBE=null===(On=this._originCtx)||void 0===On?void 0:On.SAMPLER_CUBE,this.SAMPLES=null===(In=this._originCtx)||void 0===In?void 0:In.SAMPLES,this.SAMPLE_ALPHA_TO_COVERAGE=null===(Pn=this._originCtx)||void 0===Pn?void 0:Pn.SAMPLE_ALPHA_TO_COVERAGE,this.SAMPLE_BUFFERS=null===(Dn=this._originCtx)||void 0===Dn?void 0:Dn.SAMPLE_BUFFERS,this.SAMPLE_COVERAGE=null===(kn=this._originCtx)||void 0===kn?void 0:kn.SAMPLE_COVERAGE,this.SAMPLE_COVERAGE_INVERT=null===(Mn=this._originCtx)||void 0===Mn?void 0:Mn.SAMPLE_COVERAGE_INVERT,this.SAMPLE_COVERAGE_VALUE=null===(Fn=this._originCtx)||void 0===Fn?void 0:Fn.SAMPLE_COVERAGE_VALUE,this.SCISSOR_BOX=null===(xn=this._originCtx)||void 0===xn?void 0:xn.SCISSOR_BOX,this.SCISSOR_TEST=null===(Ln=this._originCtx)||void 0===Ln?void 0:Ln.SCISSOR_TEST,this.SHADER_TYPE=null===(Nn=this._originCtx)||void 0===Nn?void 0:Nn.SHADER_TYPE,this.SHADING_LANGUAGE_VERSION=null===(Bn=this._originCtx)||void 0===Bn?void 0:Bn.SHADING_LANGUAGE_VERSION,this.SHORT=null===(Un=this._originCtx)||void 0===Un?void 0:Un.SHORT,this.SRC_ALPHA=null===(jn=this._originCtx)||void 0===jn?void 0:jn.SRC_ALPHA,this.SRC_ALPHA_SATURATE=null===(Vn=this._originCtx)||void 0===Vn?void 0:Vn.SRC_ALPHA_SATURATE,this.SRC_COLOR=null===(Hn=this._originCtx)||void 0===Hn?void 0:Hn.SRC_COLOR,this.STATIC_DRAW=null===(Wn=this._originCtx)||void 0===Wn?void 0:Wn.STATIC_DRAW,this.STENCIL_ATTACHMENT=null===(qn=this._originCtx)||void 0===qn?void 0:qn.STENCIL_ATTACHMENT,this.STENCIL_BACK_FAIL=null===(Gn=this._originCtx)||void 0===Gn?void 0:Gn.STENCIL_BACK_FAIL,this.STENCIL_BACK_FUNC=null===(Kn=this._originCtx)||void 0===Kn?void 0:Kn.STENCIL_BACK_FUNC,this.STENCIL_BACK_PASS_DEPTH_FAIL=null===(Jn=this._originCtx)||void 0===Jn?void 0:Jn.STENCIL_BACK_PASS_DEPTH_FAIL,this.STENCIL_BACK_PASS_DEPTH_PASS=null===(Xn=this._originCtx)||void 0===Xn?void 0:Xn.STENCIL_BACK_PASS_DEPTH_PASS,this.STENCIL_BACK_REF=null===(zn=this._originCtx)||void 0===zn?void 0:zn.STENCIL_BACK_REF,this.STENCIL_BACK_VALUE_MASK=null===(Yn=this._originCtx)||void 0===Yn?void 0:Yn.STENCIL_BACK_VALUE_MASK,this.STENCIL_BACK_WRITEMASK=null===(Zn=this._originCtx)||void 0===Zn?void 0:Zn.STENCIL_BACK_WRITEMASK,this.STENCIL_BITS=null===(Qn=this._originCtx)||void 0===Qn?void 0:Qn.STENCIL_BITS,this.STENCIL_BUFFER_BIT=null===($n=this._originCtx)||void 0===$n?void 0:$n.STENCIL_BUFFER_BIT,this.STENCIL_CLEAR_VALUE=null===(er=this._originCtx)||void 0===er?void 0:er.STENCIL_CLEAR_VALUE,this.STENCIL_FAIL=null===(tr=this._originCtx)||void 0===tr?void 0:tr.STENCIL_FAIL,this.STENCIL_FUNC=null===(nr=this._originCtx)||void 0===nr?void 0:nr.STENCIL_FUNC,this.STENCIL_INDEX8=null===(rr=this._originCtx)||void 0===rr?void 0:rr.STENCIL_INDEX8,this.STENCIL_PASS_DEPTH_FAIL=null===(ir=this._originCtx)||void 0===ir?void 0:ir.STENCIL_PASS_DEPTH_FAIL,this.STENCIL_PASS_DEPTH_PASS=null===(or=this._originCtx)||void 0===or?void 0:or.STENCIL_PASS_DEPTH_PASS,this.STENCIL_REF=null===(ar=this._originCtx)||void 0===ar?void 0:ar.STENCIL_REF,this.STENCIL_TEST=null===(sr=this._originCtx)||void 0===sr?void 0:sr.STENCIL_TEST,this.STENCIL_VALUE_MASK=null===(ur=this._originCtx)||void 0===ur?void 0:ur.STENCIL_VALUE_MASK,this.STENCIL_WRITEMASK=null===(cr=this._originCtx)||void 0===cr?void 0:cr.STENCIL_WRITEMASK,this.STREAM_DRAW=null===(lr=this._originCtx)||void 0===lr?void 0:lr.STREAM_DRAW,this.SUBPIXEL_BITS=null===(dr=this._originCtx)||void 0===dr?void 0:dr.SUBPIXEL_BITS,this.TEXTURE=null===(fr=this._originCtx)||void 0===fr?void 0:fr.TEXTURE,this.TEXTURE0=null===(hr=this._originCtx)||void 0===hr?void 0:hr.TEXTURE0,this.TEXTURE1=null===(pr=this._originCtx)||void 0===pr?void 0:pr.TEXTURE1,this.TEXTURE10=null===(mr=this._originCtx)||void 0===mr?void 0:mr.TEXTURE10,this.TEXTURE11=null===(_r=this._originCtx)||void 0===_r?void 0:_r.TEXTURE11,this.TEXTURE12=null===(yr=this._originCtx)||void 0===yr?void 0:yr.TEXTURE12,this.TEXTURE13=null===(gr=this._originCtx)||void 0===gr?void 0:gr.TEXTURE13,this.TEXTURE14=null===(vr=this._originCtx)||void 0===vr?void 0:vr.TEXTURE14,this.TEXTURE15=null===(br=this._originCtx)||void 0===br?void 0:br.TEXTURE15,this.TEXTURE16=null===(Er=this._originCtx)||void 0===Er?void 0:Er.TEXTURE16,this.TEXTURE17=null===(Sr=this._originCtx)||void 0===Sr?void 0:Sr.TEXTURE17,this.TEXTURE18=null===(Ar=this._originCtx)||void 0===Ar?void 0:Ar.TEXTURE18,this.TEXTURE19=null===(Cr=this._originCtx)||void 0===Cr?void 0:Cr.TEXTURE19,this.TEXTURE2=null===(wr=this._originCtx)||void 0===wr?void 0:wr.TEXTURE2,this.TEXTURE20=null===(Tr=this._originCtx)||void 0===Tr?void 0:Tr.TEXTURE20,this.TEXTURE21=null===(Rr=this._originCtx)||void 0===Rr?void 0:Rr.TEXTURE21,this.TEXTURE22=null===(Or=this._originCtx)||void 0===Or?void 0:Or.TEXTURE22,this.TEXTURE23=null===(Ir=this._originCtx)||void 0===Ir?void 0:Ir.TEXTURE23,this.TEXTURE24=null===(Pr=this._originCtx)||void 0===Pr?void 0:Pr.TEXTURE24,this.TEXTURE25=null===(Dr=this._originCtx)||void 0===Dr?void 0:Dr.TEXTURE25,this.TEXTURE26=null===(kr=this._originCtx)||void 0===kr?void 0:kr.TEXTURE26,this.TEXTURE27=null===(Mr=this._originCtx)||void 0===Mr?void 0:Mr.TEXTURE27,this.TEXTURE28=null===(Fr=this._originCtx)||void 0===Fr?void 0:Fr.TEXTURE28,this.TEXTURE29=null===(xr=this._originCtx)||void 0===xr?void 0:xr.TEXTURE29,this.TEXTURE3=null===(Lr=this._originCtx)||void 0===Lr?void 0:Lr.TEXTURE3,this.TEXTURE30=null===(Nr=this._originCtx)||void 0===Nr?void 0:Nr.TEXTURE30,this.TEXTURE31=null===(Br=this._originCtx)||void 0===Br?void 0:Br.TEXTURE31,this.TEXTURE4=null===(Ur=this._originCtx)||void 0===Ur?void 0:Ur.TEXTURE4,this.TEXTURE5=null===(jr=this._originCtx)||void 0===jr?void 0:jr.TEXTURE5,this.TEXTURE6=null===(Vr=this._originCtx)||void 0===Vr?void 0:Vr.TEXTURE6,this.TEXTURE7=null===(Hr=this._originCtx)||void 0===Hr?void 0:Hr.TEXTURE7,this.TEXTURE8=null===(Wr=this._originCtx)||void 0===Wr?void 0:Wr.TEXTURE8,this.TEXTURE9=null===(qr=this._originCtx)||void 0===qr?void 0:qr.TEXTURE9,this.TEXTURE_2D=null===(Gr=this._originCtx)||void 0===Gr?void 0:Gr.TEXTURE_2D,this.TEXTURE_BINDING_2D=null===(Kr=this._originCtx)||void 0===Kr?void 0:Kr.TEXTURE_BINDING_2D,this.TEXTURE_BINDING_CUBE_MAP=null===(Jr=this._originCtx)||void 0===Jr?void 0:Jr.TEXTURE_BINDING_CUBE_MAP,this.TEXTURE_CUBE_MAP=null===(Xr=this._originCtx)||void 0===Xr?void 0:Xr.TEXTURE_CUBE_MAP,this.TEXTURE_CUBE_MAP_NEGATIVE_X=null===(zr=this._originCtx)||void 0===zr?void 0:zr.TEXTURE_CUBE_MAP_NEGATIVE_X,this.TEXTURE_CUBE_MAP_NEGATIVE_Y=null===(Yr=this._originCtx)||void 0===Yr?void 0:Yr.TEXTURE_CUBE_MAP_NEGATIVE_Y,this.TEXTURE_CUBE_MAP_NEGATIVE_Z=null===(Zr=this._originCtx)||void 0===Zr?void 0:Zr.TEXTURE_CUBE_MAP_NEGATIVE_Z,this.TEXTURE_CUBE_MAP_POSITIVE_X=null===(Qr=this._originCtx)||void 0===Qr?void 0:Qr.TEXTURE_CUBE_MAP_POSITIVE_X,this.TEXTURE_CUBE_MAP_POSITIVE_Y=null===($r=this._originCtx)||void 0===$r?void 0:$r.TEXTURE_CUBE_MAP_POSITIVE_Y,this.TEXTURE_CUBE_MAP_POSITIVE_Z=null===(ei=this._originCtx)||void 0===ei?void 0:ei.TEXTURE_CUBE_MAP_POSITIVE_Z,this.TEXTURE_MAG_FILTER=null===(ti=this._originCtx)||void 0===ti?void 0:ti.TEXTURE_MAG_FILTER,this.TEXTURE_MIN_FILTER=null===(ni=this._originCtx)||void 0===ni?void 0:ni.TEXTURE_MIN_FILTER,this.TEXTURE_WRAP_S=null===(ri=this._originCtx)||void 0===ri?void 0:ri.TEXTURE_WRAP_S,this.TEXTURE_WRAP_T=null===(ii=this._originCtx)||void 0===ii?void 0:ii.TEXTURE_WRAP_T,this.TRIANGLES=null===(oi=this._originCtx)||void 0===oi?void 0:oi.TRIANGLES,this.TRIANGLE_FAN=null===(ai=this._originCtx)||void 0===ai?void 0:ai.TRIANGLE_FAN,this.TRIANGLE_STRIP=null===(si=this._originCtx)||void 0===si?void 0:si.TRIANGLE_STRIP,this.UNPACK_ALIGNMENT=null===(ui=this._originCtx)||void 0===ui?void 0:ui.UNPACK_ALIGNMENT,this.UNPACK_COLORSPACE_CONVERSION_WEBGL=null===(ci=this._originCtx)||void 0===ci?void 0:ci.UNPACK_COLORSPACE_CONVERSION_WEBGL,this.UNPACK_FLIP_Y_WEBGL=null===(li=this._originCtx)||void 0===li?void 0:li.UNPACK_FLIP_Y_WEBGL,this.UNPACK_PREMULTIPLY_ALPHA_WEBGL=null===(di=this._originCtx)||void 0===di?void 0:di.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.UNSIGNED_BYTE=null===(fi=this._originCtx)||void 0===fi?void 0:fi.UNSIGNED_BYTE,this.UNSIGNED_INT=null===(hi=this._originCtx)||void 0===hi?void 0:hi.UNSIGNED_INT,this.UNSIGNED_SHORT=null===(pi=this._originCtx)||void 0===pi?void 0:pi.UNSIGNED_SHORT,this.UNSIGNED_SHORT_4_4_4_4=null===(mi=this._originCtx)||void 0===mi?void 0:mi.UNSIGNED_SHORT_4_4_4_4,this.UNSIGNED_SHORT_5_5_5_1=null===(_i=this._originCtx)||void 0===_i?void 0:_i.UNSIGNED_SHORT_5_5_5_1,this.UNSIGNED_SHORT_5_6_5=null===(yi=this._originCtx)||void 0===yi?void 0:yi.UNSIGNED_SHORT_5_6_5,this.VALIDATE_STATUS=null===(gi=this._originCtx)||void 0===gi?void 0:gi.VALIDATE_STATUS,this.VENDOR=null===(vi=this._originCtx)||void 0===vi?void 0:vi.VENDOR,this.VERSION=null===(bi=this._originCtx)||void 0===bi?void 0:bi.VERSION,this.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=null===(Ei=this._originCtx)||void 0===Ei?void 0:Ei.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING,this.VERTEX_ATTRIB_ARRAY_ENABLED=null===(Si=this._originCtx)||void 0===Si?void 0:Si.VERTEX_ATTRIB_ARRAY_ENABLED,this.VERTEX_ATTRIB_ARRAY_NORMALIZED=null===(Ai=this._originCtx)||void 0===Ai?void 0:Ai.VERTEX_ATTRIB_ARRAY_NORMALIZED,this.VERTEX_ATTRIB_ARRAY_POINTER=null===(Ci=this._originCtx)||void 0===Ci?void 0:Ci.VERTEX_ATTRIB_ARRAY_POINTER,this.VERTEX_ATTRIB_ARRAY_SIZE=null===(wi=this._originCtx)||void 0===wi?void 0:wi.VERTEX_ATTRIB_ARRAY_SIZE,this.VERTEX_ATTRIB_ARRAY_STRIDE=null===(Ti=this._originCtx)||void 0===Ti?void 0:Ti.VERTEX_ATTRIB_ARRAY_STRIDE,this.VERTEX_ATTRIB_ARRAY_TYPE=null===(Ri=this._originCtx)||void 0===Ri?void 0:Ri.VERTEX_ATTRIB_ARRAY_TYPE,this.VERTEX_SHADER=null===(Oi=this._originCtx)||void 0===Oi?void 0:Oi.VERTEX_SHADER,this.VIEWPORT=null===(Ii=this._originCtx)||void 0===Ii?void 0:Ii.VIEWPORT,this.ZERO=null===(Pi=this._originCtx)||void 0===Pi?void 0:Pi.ZERO}return e.prototype.activeTexture=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.activeTexture.apply(this._originCtx,arguments)},e.prototype.attachShader=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.attachShader(e,t)},e.prototype.bindAttribLocation=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.bindAttribLocation(e,t,n)},e.prototype.bindBuffer=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.bindBuffer(e,t)},e.prototype.bindFramebuffer=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.bindFramebuffer(e,t)},e.prototype.bindRenderbuffer=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.bindRenderbuffer(e,t)},e.prototype.bindTexture=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.bindTexture(e,t)},e.prototype.blendColor=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.blendColor(e,t,n,r)},e.prototype.blendEquation=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.blendEquation(e)},e.prototype.blendEquationSeparate=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.blendEquationSeparate(e,t)},e.prototype.blendFunc=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.blendFunc(e,t)},e.prototype.blendFuncSeparate=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.blendFuncSeparate(e,t,n,r)},e.prototype.checkFramebufferStatus=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.checkFramebufferStatus(e)},e.prototype.clear=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.clear(e)},e.prototype.clearColor=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.clearColor(e,t,n,r)},e.prototype.clearDepth=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.clearDepth(e)},e.prototype.clearStencil=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.clearStencil(e)},e.prototype.colorMask=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.colorMask(e,t,n,r)},e.prototype.compileShader=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.compileShader(e)},e.prototype.copyTexImage2D=function(e,t,n,r,i,o,a,s){var u;return null===(u=this._originCtx)||void 0===u?void 0:u.copyTexImage2D(e,t,n,r,i,o,a,s)},e.prototype.copyTexSubImage2D=function(e,t,n,r,i,o,a,s){var u;return null===(u=this._originCtx)||void 0===u?void 0:u.copyTexSubImage2D(e,t,n,r,i,o,a,s)},e.prototype.createBuffer=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.createBuffer()},e.prototype.createFramebuffer=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.createFramebuffer()},e.prototype.createProgram=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.createProgram()},e.prototype.createRenderbuffer=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.createRenderbuffer()},e.prototype.createShader=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.createShader(e)},e.prototype.createTexture=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.createTexture()},e.prototype.cullFace=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.cullFace(e)},e.prototype.deleteBuffer=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.deleteBuffer(e)},e.prototype.deleteFramebuffer=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.deleteFramebuffer(e)},e.prototype.deleteProgram=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.deleteProgram(e)},e.prototype.deleteRenderbuffer=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.deleteRenderbuffer(e)},e.prototype.deleteShader=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.deleteShader(e)},e.prototype.deleteTexture=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.deleteTexture(e)},e.prototype.depthFunc=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.depthFunc(e)},e.prototype.depthMask=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.depthMask(e)},e.prototype.depthRange=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.depthRange(e,t)},e.prototype.detachShader=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.detachShader(e,t)},e.prototype.disable=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.disable(e)},e.prototype.disableVertexAttribArray=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.disableVertexAttribArray(e)},e.prototype.drawArrays=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.drawArrays(e,t,n)},e.prototype.drawElements=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.drawElements(e,t,n,r)},e.prototype.enable=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.enable(e)},e.prototype.enableVertexAttribArray=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.enableVertexAttribArray(e)},e.prototype.finish=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.finish()},e.prototype.flush=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.flush()},e.prototype.framebufferRenderbuffer=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.framebufferRenderbuffer(e,t,n,r)},e.prototype.framebufferTexture2D=function(e,t,n,r,i){var o;return null===(o=this._originCtx)||void 0===o?void 0:o.framebufferTexture2D(e,t,n,r,i)},e.prototype.frontFace=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.frontFace(e)},e.prototype.generateMipmap=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.generateMipmap(e)},e.prototype.getActiveAttrib=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getActiveAttrib(e,t)},e.prototype.getActiveUniform=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getActiveUniform(e,t)},e.prototype.getAttachedShaders=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.getAttachedShaders(e)},e.prototype.getAttribLocation=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getAttribLocation(e,t)},e.prototype.getBufferParameter=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getBufferParameter(e,t)},e.prototype.getContextAttributes=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.getContextAttributes()},e.prototype.getError=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.getError()},e.prototype.getFramebufferAttachmentParameter=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.getFramebufferAttachmentParameter(e,t,n)},e.prototype.getProgramInfoLog=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.getProgramInfoLog(e)},e.prototype.getProgramParameter=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getProgramParameter(e,t)},e.prototype.getRenderbufferParameter=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getRenderbufferParameter(e,t)},e.prototype.getShaderInfoLog=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.getShaderInfoLog(e)},e.prototype.getShaderParameter=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getShaderParameter(e,t)},e.prototype.getShaderSource=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.getShaderSource(e)},e.prototype.getTexParameter=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getTexParameter(e,t)},e.prototype.getUniform=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getUniform(e,t)},e.prototype.getUniformLocation=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getUniformLocation(e,t)},e.prototype.getVertexAttrib=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getVertexAttrib(e,t)},e.prototype.getVertexAttribOffset=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getVertexAttribOffset(e,t)},e.prototype.hint=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.hint(e,t)},e.prototype.isBuffer=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.isBuffer(e)},e.prototype.isContextLost=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.isContextLost()},e.prototype.isEnabled=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.isEnabled(e)},e.prototype.isFramebuffer=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.isFramebuffer(e)},e.prototype.isProgram=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.isProgram(e)},e.prototype.isRenderbuffer=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.isRenderbuffer(e)},e.prototype.isShader=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.isShader(e)},e.prototype.isTexture=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.isTexture(e)},e.prototype.lineWidth=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.lineWidth(e)},e.prototype.linkProgram=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.linkProgram(e)},e.prototype.pixelStorei=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.pixelStorei(e,t)},e.prototype.polygonOffset=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.polygonOffset(e,t)},e.prototype.renderbufferStorage=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.renderbufferStorage(e,t,n,r)},e.prototype.sampleCoverage=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.sampleCoverage(e,t)},e.prototype.scissor=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.scissor(e,t,n,r)},e.prototype.shaderSource=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.shaderSource(e,t)},e.prototype.stencilFunc=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.stencilFunc(e,t,n)},e.prototype.stencilFuncSeparate=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.stencilFuncSeparate(e,t,n,r)},e.prototype.stencilMask=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.stencilMask(e)},e.prototype.stencilMaskSeparate=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.stencilMaskSeparate(e,t)},e.prototype.stencilOp=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.stencilOp(e,t,n)},e.prototype.stencilOpSeparate=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.stencilOpSeparate(e,t,n,r)},e.prototype.texParameterf=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.texParameterf(e,t,n)},e.prototype.texParameteri=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.texParameteri(e,t,n)},e.prototype.uniform1f=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.uniform1f(e,t)},e.prototype.uniform1i=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.uniform1i(e,t)},e.prototype.uniform2f=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.uniform2f(e,t,n)},e.prototype.uniform2i=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.uniform2i(e,t,n)},e.prototype.uniform3f=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.uniform3f(e,t,n,r)},e.prototype.uniform3i=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.uniform3i(e,t,n,r)},e.prototype.uniform4f=function(e,t,n,r,i){var o;return null===(o=this._originCtx)||void 0===o?void 0:o.uniform4f(e,t,n,r,i)},e.prototype.uniform4i=function(e,t,n,r,i){var o;return null===(o=this._originCtx)||void 0===o?void 0:o.uniform4i(e,t,n,r,i)},e.prototype.useProgram=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.useProgram(e)},e.prototype.validateProgram=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.validateProgram(e)},e.prototype.vertexAttrib1f=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.vertexAttrib1f(e,t)},e.prototype.vertexAttrib1fv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.vertexAttrib1fv(e,t)},e.prototype.vertexAttrib2f=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.vertexAttrib2f(e,t,n)},e.prototype.vertexAttrib2fv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.vertexAttrib2fv(e,t)},e.prototype.vertexAttrib3f=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.vertexAttrib3f(e,t,n,r)},e.prototype.vertexAttrib3fv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.vertexAttrib3fv(e,t)},e.prototype.vertexAttrib4f=function(e,t,n,r,i){var o;return null===(o=this._originCtx)||void 0===o?void 0:o.vertexAttrib4f(e,t,n,r,i)},e.prototype.vertexAttrib4fv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.vertexAttrib4fv(e,t)},e.prototype.vertexAttribPointer=function(e,t,n,r,i,o){var a;return null===(a=this._originCtx)||void 0===a?void 0:a.vertexAttribPointer(e,t,n,r,i,o)},e.prototype.viewport=function(e,t,n,r){var i;return null===(i=this._originCtx)||void 0===i?void 0:i.viewport(e,t,n,r)},e.prototype.getExtension=function(e){var t,n=null===(t=this._originCtx)||void 0===t?void 0:t.getExtension(e);return"WEBGL_compressed_texture_astc"==e&&n&&!n.getSupportedProfiles&&(n.getSupportedProfiles=function(){return[]}),n},e.prototype.getParameter=function(e){var t;return null===(t=this._originCtx)||void 0===t?void 0:t.getParameter(e)},e.prototype.getShaderPrecisionFormat=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.getShaderPrecisionFormat(e,t)},e.prototype.getSupportedExtensions=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.getSupportedExtensions()},e.prototype.bufferData=function(){var e;return null===(e=this._originCtx)||void 0===e?void 0:e.bufferData.apply(this._originCtx,arguments)},e.prototype.bufferSubData=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.bufferSubData.apply(this._originCtx,arguments)},e.prototype.compressedTexImage2D=function(e,t,n,r,i,o,a){var s;return null===(s=this._originCtx)||void 0===s?void 0:s.compressedTexImage2D.apply(this._originCtx,arguments)},e.prototype.compressedTexSubImage2D=function(e,t,n,r,i,o,a,s){var u;return null===(u=this._originCtx)||void 0===u?void 0:u.compressedTexSubImage2D.apply(this._originCtx,arguments)},e.prototype.readPixels=function(e,t,n,r,i,o,a){var s;return null===(s=this._originCtx)||void 0===s?void 0:s.readPixels.apply(this._originCtx,arguments)},e.prototype.texImage2D=function(e,t,n,r,i,o,a,s,u){var c;return null===(c=this._originCtx)||void 0===c?void 0:c.texImage2D.apply(this._originCtx,arguments)},e.prototype.texSubImage2D=function(e,t,n,r,i,o,a,s,u){var c;return null===(c=this._originCtx)||void 0===c?void 0:c.texSubImage2D.apply(this._originCtx,arguments)},e.prototype.uniform1fv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.uniform1fv.apply(this._originCtx,arguments)},e.prototype.uniform1iv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.uniform1iv.apply(this._originCtx,arguments)},e.prototype.uniform2fv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.uniform2fv.apply(this._originCtx,arguments)},e.prototype.uniform2iv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.uniform2iv.apply(this._originCtx,arguments)},e.prototype.uniform3fv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.uniform3fv.apply(this._originCtx,arguments)},e.prototype.uniform3iv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.uniform3iv.apply(this._originCtx,arguments)},e.prototype.uniform4fv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.uniform4fv.apply(this._originCtx,arguments)},e.prototype.uniform4iv=function(e,t){var n;return null===(n=this._originCtx)||void 0===n?void 0:n.uniform4iv.apply(this._originCtx,arguments)},e.prototype.uniformMatrix2fv=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.uniformMatrix2fv.apply(this._originCtx,arguments)},e.prototype.uniformMatrix3fv=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.uniformMatrix3fv.apply(this._originCtx,arguments)},e.prototype.uniformMatrix4fv=function(e,t,n){var r;return null===(r=this._originCtx)||void 0===r?void 0:r.uniformMatrix4fv.apply(this._originCtx,arguments)},e}();const nt=et;var rt=function(e,t){this.type=e,t&&Object.assign(this,t)},it=function(e){function t(t,n){return e.call(this,t,n)||this}return(0,l.C6)(t,e),t}(rt),ot=function(e){function t(t,n){return e.call(this,t,n)||this}return(0,l.C6)(t,e),t}(rt),at=function(e){function t(t,n){return e.call(this,t,n)||this}return(0,l.C6)(t,e),t}(rt);function st(){return jssdk.createBuffer()}const ut=function(e){function t(t,n){var r=e.call(this)||this;return r.on_={},r.url_=t,r.socketConnect(t,n),r}return(0,l.C6)(t,e),t.prototype.socketConnect=function(e,t){var n=this;"string"==typeof t&&(t=[t]),this.protocols_=t,this.state_=ct.CONNECTING,this.socketTask_=jssdk.connectSocket({url:e,protocols:t,success:function(e){},fail:function(e){n._Handle_error(new Error("create socket failed"))}}),this.socketTask_.onOpen(function(){n._Handle_connect()}),this.socketTask_.onClose(function(){n._Handle_close(0,"ok")}),this.socketTask_.onError(function(e){n._Handle_error(new Error(e.errMsg))}),this.socketTask_.onMessage(function(e){n._Handle_message(e)})},t.prototype.close=function(e,t){var n=this;this.socketTask_&&(this.state_=ct.CLOSING,this.socketTask_.close({success:function(e){},fail:function(e){n._Handle_error(new Error("socket close failed"))}}))},t.prototype.send=function(e){this.socketTask_&&(ArrayBuffer.isView(e)&&(e=e.buffer.byteLength==e.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)),this.socketTask_.send({data:e,success:function(e){},fail:function(e){}}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.url_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this.protocols_?this.protocols_[0]:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extensions",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readyState",{get:function(){return this.state_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bufferedAmount",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"binaryType",{get:function(){return"arraybuffer"},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onopen",{get:function(){return this.on_.open},set:function(e){this._Set_on("open",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onclose",{get:function(){return this.on_.close},set:function(e){this._Set_on("close",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onmessage",{get:function(){return this.on_.message},set:function(e){this._Set_on("message",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onerror",{get:function(){return this.on_.error},set:function(e){this._Set_on("error",e)},enumerable:!1,configurable:!0}),t.prototype._Set_on=function(e,t){this.on_[e]&&this.removeEventListener(e,this.on_[e]),this.addEventListener(e,t),this.on_[e]=t},t.prototype._Handle_connect=function(){this.state_=ct.OPEN;var e=new rt("open",lt);this.dispatchEvent(e)},t.prototype._Handle_close=function(e,t){var n=new it("close",(0,l.Cl)((0,l.Cl)({},lt),{code:e,reason:t}));this.state_=ct.CLOSED,this.dispatchEvent(n)},t.prototype._Handle_message=function(e){var t=e.data||"";"string"==typeof t&&(t=st().from(t,"utf8").buffer);var n=new ot("message",(0,l.Cl)((0,l.Cl)({},lt),{data:t}));this.dispatchEvent(n)},t.prototype._Handle_error=function(e){var t=new at("error",(0,l.Cl)((0,l.Cl)({},lt),{error:e,message:e.message}));this.state_===ct.CONNECTING&&(this.state_=ct.CLOSED),this.dispatchEvent(t)},t}(d);var ct;!function(e){e.CONNECTING=0,e.OPEN=1,e.CLOSING=2,e.CLOSED=3}(ct||(ct={}));var lt={bubbles:!1,cancelable:!1},dt=function(e){function t(){throw(e.call(this)||this).abort=!1,new TypeError("AbortSignal cannot be constructed directly")}return(0,l.C6)(t,e),Object.defineProperty(t.prototype,"aborted",{get:function(){var e=ht.get(this);if("boolean"!=typeof e)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got ".concat(null===this?"null":typeof this));return e},enumerable:!1,configurable:!0}),t}(d);const ft=dt;Object.defineProperty(dt.prototype,"onabort",{get:function(){return this.abort},set:function(e){this.abort=e},configurable:!0,enumerable:!0});var ht=new WeakMap;Object.defineProperties(dt.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(dt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var pt=function(){function e(){var e;_t.set(this,(e=Object.create(dt.prototype),d.call(e),ht.set(e,!1),e))}return Object.defineProperty(e.prototype,"signal",{get:function(){return yt(this)},enumerable:!1,configurable:!0}),e.prototype.abort=function(){var e;e=yt(this),!1===ht.get(e)&&(ht.set(e,!0),e.dispatchEvent(new rt("abort")))},e}();const mt=pt;var _t=new WeakMap;function yt(e){var t=_t.get(e);if(null==t)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got ".concat(null===e?"null":typeof e));return t}Object.defineProperties(pt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(pt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});var gt=__webpack_require__(7605);const vt=function(){function e(e){this.data=e}return e.prototype.arrayBuffer=function(){if(this.data&&this.data.length>0){var e=this.data[0];return(0,gt.iu)(e)?e.slice().buffer:e}return null},e}();function bt(e){null==e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)}bt.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++){e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0}},bt.prototype.init_by_array=function(e,t){var n,r,i;for(this.init_seed(19650218),n=1,r=0,i=this.N>t?this.N:t;i;i--){var o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1664525*((4294901760&o)>>>16)<<16)+1664525*(65535&o))+e[r]+r,this.mt[n]>>>=0,r++,++n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),r>=t&&(r=0)}for(i=this.N-1;i;i--){o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1566083941*((4294901760&o)>>>16)<<16)+1566083941*(65535&o))-n,this.mt[n]>>>=0,++n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648},bt.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n<this.N-this.M;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^e>>>1^t[1&e];for(;n<this.N-1;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},bt.prototype.random_int31=function(){return this.random_int()>>>1},bt.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},bt.prototype.random=function(){return this.random_int()*(1/4294967296)},bt.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},bt.prototype.random_long=function(){return(67108864*(this.random_int()>>>5)+(this.random_int()>>>6))*(1/9007199254740992)};var Et,St,At,Ct,wt=function(){function e(){this.twister=new bt(Math.random()*Number.MAX_SAFE_INTEGER)}return e.prototype.getRandomValues=function(e){if(!ArrayBuffer.isView(e))throw new TypeError("Failed to execute 'getRandomValues' on 'Crypto': parameter 1 is not of type 'ArrayBufferView'");for(var t=e.byteLength;t--;)e[t]=Math.floor(256*this.randomFloat());return e},e.prototype.randomFloat=function(){return this.twister.random()},e}(),Tt=__webpack_require__(7533),Rt={get length(){return jssdk.getStorageInfoSync().keys.length},key:function(e){return jssdk.getStorageInfoSync().keys[e]},getItem:function(e){return jssdk.getStorageSync(e)},setItem:function(e,t){return jssdk.setStorageSync(e,t)},removeItem:function(e){jssdk.removeStorageSync(e)},clear:function(){jssdk.clearStorageSync()}};!function(e){e[e.U=1]="U",e[e.F=2]="F",e[e.D=3]="D"}(Et||(Et={})),function(e){e[e.REPORT_ERROR=0]="REPORT_ERROR",e[e.BIND_ERROR=1]="BIND_ERROR"}(St||(St={})),function(e){e[e.POLYMER=0]="POLYMER",e[e.YAW=1]="YAW"}(At||(At={})),function(e){e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE"}(Ct||(Ct={}));Ct.INTERNAL_IOS_CAN_NOT_FOUND_PKG,Ct.USER_IOS_LOAD_TIMEOUT,Ct.INTERNAL_IOS_PKG_LOAD_ERROR,Ct.INTERNAL_IOS_PKG_PARSE_FAIL,Ct.USER_IOS_GET_EMPTY_DATA,Ct.USER_ANDROID_GET_PKG_FAIL,Ct.INTERNAL_IOS_CAN_NOT_FOUND_PKG,Ct.INTERNAL_IOS_PKG_LOAD_ERROR,Ct.INTERNAL_IOS_PKG_PARSE_FAIL;var Ot,It,Pt=function(e){function t(t,n){var r=e.call(this,"string"==typeof t?t:t.message)||this;return r.priority="P1",r.errorCode=null==n?void 0:n.errorCode,r.errorType=null==n?void 0:n.errorType,"string"!=typeof t&&(r.stack=t.stack,r.raw=t),r}return(0,l.C6)(t,e),t}(Error),Dt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind="INTERNAL_ERROR",t}return(0,l.C6)(t,e),t}(Pt),kt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.kind="USER_ERROR",t}return(0,l.C6)(t,e),t}(Pt),Mt=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="USER_VALIDATE_ERROR",t}(0,l.C6)(t,e)}(kt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="USER_RUNTIME_ERROR",t}(0,l.C6)(t,e)}(kt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="USER_GLOBAL_ERROR",t.priority="P0",t}(0,l.C6)(t,e)}(kt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="USER_PAGE_NOT_FOUND_ERROR",t}(0,l.C6)(t,e)}(kt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="USER_COMPONENT_NOT_FOUND_ERROR",t}(0,l.C6)(t,e)}(kt),function(e){function t(t,n){var r=e.call(this,"Can't find module ".concat("./"===t?n:"".concat(n," imported by ").concat(t)))||this;return r.name="USER_RESOLVE_MODULE_ERROR",r}(0,l.C6)(t,e)}(kt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="USER_INVALID_OBSERVER_ERROR",t}(0,l.C6)(t,e)}(kt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="USER_NAVIGATION_API_ERROR",t}(0,l.C6)(t,e)}(kt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="USER_PROVIDE_INJECT_ERROR",t}(0,l.C6)(t,e)}(kt),function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.message=t,i.errNo=n,i.name="USER_CUSTOM_ERROR",i.errMsg=t,r&&(i.extra=Object.assign({},i.extra,r)),i}(0,l.C6)(t,e)}(kt),function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.message=t,i.errNo=n,i.name="USER_FETCH_ERROR",i.errMsg=t,r&&(i.extra=Object.assign({},i.extra,r)),i}(0,l.C6)(t,e)}(kt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_SCHEMA_PARSE_ERROR",t.priority="P0",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_INVOKE_NATIVE_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(t,n,r,i){var o=e.call(this,t,{errorCode:i,errorType:r})||this;return o.errNo=n,o.name="INTERNAL_APPLY_NATIVE_ERROR",o.errorType=r,o.errorCode=i,o}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_HELIUM_NATIVE_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_INVOKE_METHOD_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_JS_CORE_NOT_FOUND_ERROR",t.priority="P0",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_LOAD_MODULE_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_RUNTIME_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_LOAD_SCRIPT_NOT_FOUND_ERROR",t.priority="P0",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_APP_LAUNCH_MORE_THAN_ONCE_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_APP_LAUNCH_ERROR",t.priority="P0",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_ROUTE_SWITCH_TAB_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_NAVIGATION_API_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_ROUTE_WEBVIEW_ID_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_ON_PAGE_LINE_UP_WEBVIEW_ID_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_ON_PAGE_LINE_UP_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_USER_CALLBACK_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_OBSERVE_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_BUFFER_ERROR",t}return(0,l.C6)(t,e),t}(Dt)),Ft=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_INVOKE_SERVICE_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_SHARE_APP_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_AWEME_FEATURES_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_INVOKE_WEBVIEW_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_WEBVIEW_CUSTOM_COMPONENT_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_SKELETON_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_LINEUP_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_PAGE_TIMELINE_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_CREATE_MODEL_INSTANCE_ERROR",t.priority="P0",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_PAGE_NOT_FOUND_ERROR",t.priority="P0",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_ROUTE_ON_APP_ROUTE_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(t,n){var r=e.call(this,t)||this;return r.message=t,r.name="INTERNAL_CONTEXT_ERROR",r.property=n,r}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_LAZY_LOAD_COMPONENT_JS_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(t,n,r,i,o){var a=e.call(this,t,{errorCode:r,errorType:i})||this;return a.message=t,a.name="INTERNAL_COMPONENT_ERROR",a.component=n,o&&(a.priority=o),a}(0,l.C6)(t,e)}(Dt),function(e){function t(t,n,r,i,o){var a=e.call(this,t,{errorCode:r,errorType:i})||this;return a.message=t,a.name="USER_COMPONENT_ERROR",a.component=n,o&&(a.priority=o),a}(0,l.C6)(t,e)}(kt),function(e){function t(t,n,r,i,o,a,s,u){var c,l=this;return(l=e.call(this,t,{errorCode:i,errorType:r})||this).message=t,l.kind="API_ERROR",l.name="API_ERROR",n&&(5===String(n).length?l.errNo=n:l.errorCode=n),void 0!==o&&(l.stack=o),a&&(l.priority=a),s&&(l.reportExtra=s),u&&(l.extra=u,l.reportExtra=Object.assign(null!==(c=l.reportExtra)&&void 0!==c?c:{},u)),l}(0,l.C6)(t,e),t.prototype.toJSON=function(){return{message:this.message,stack:this.stack,name:this.name,errNo:this.errNo,errorCode:this.errorCode,errorType:this.errorType}}}(Pt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_LAUNCH_OPTIONS_ERROR",t.priority="P0",t}(0,l.C6)(t,e)}(Dt),function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.message=t,i.errNo=n,i.kind="API_ERROR",i.name="API_EFFECT_CAMERA_ERROR",void 0!==r&&(i.stack=r),i}(0,l.C6)(t,e)}(Pt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_METRIC_REPORT_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_POINT_REPORT_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_POINT_FLUSH_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_REPORT_CONFIG_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_LCP_OBSERVE_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_REPORTER_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="LYNX_JS_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_RENDER_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_RENDER_FUNC_NOT_FOUND",t}(0,l.C6)(t,e)}(Dt),{0:"LYNX_RENDER_ERROR_CODE_SUCCESS","-1":"LYNX_RENDER_NATIVE_ERROR","-2":"LYNX_RENDER_JS_ERROR","-3":"LYNX_RENDER_JAVA_ERROR",100:"LYNX_RENDER_ERROR_CODE_LOAD_TEMPLATE",102:"LYNX_RENDER_ERROR_CODE_LAYOUT",103:"LYNX_RENDER_ERROR_CODE_TEMPLATE_PROVIDER",104:"LYNX_RENDER_ERROR_CODE_RUNTIME_ENTRY",201:"LYNX_RENDER_ERROR_CODE_JAVASCRIPT",301:"LYNX_RENDER_ERROR_CODE_RESOURCE",302:"LYNX_RENDER_ERROR_CODE_COMPONENT_NOT_EXIST",401:"LYNX_RENDER_ERROR_CODE_UPDATE",402:"LYNX_RENDER_ERROR_CODE_DATA_BINDING",403:"LYNX_RENDER_ERROR_CODE_DOM",404:"LYNX_RENDER_ERROR_CODE_PARSE_DATA",501:"LYNX_RENDER_ERROR_CODE_CANVAS",601:"LYNX_RENDER_ERROR_EXCEPTION",701:"LYNX_RENDER_ERROR_CODE_BASE_LIB",801:"LYNX_RENDER_ERROR_CODE_JNI",900:"LYNX_RENDER_ERROR_CODE_MODULE_NOT_EXIST",901:"LYNX_RENDER_ERROR_CODE_MODULE_FUNC_NOT_EXIST",902:"LYNX_RENDER_ERROR_CODE_MODULE_FUNC_WRONG_ARG_NUM",903:"LYNX_RENDER_ERROR_CODE_MODULE_FUNC_WRONG_ARG_TYPE",904:"LYNX_RENDER_ERROR_CODE_MODULE_FUNC_CALL_EXCEPTION",905:"LYNX_RENDER_ERROR_CODE_MODULE_BUSINESS_ERROR",906:"LYNX_RENDER_ERROR_CODE_MODULE_FUNC_PROMISE_ARG_NOT_FUNC",907:"LYNX_RENDER_ERROR_CODE_MODULE_FUNC_PROMISE_ARG_NUM_WRONG",1001:"LYNX_RENDER_ERROR_CODE_EVENT",1101:"LYNX_RENDER_ERROR_CODE_LEPUS",1201:"LYNX_RENDER_ERROR_MAIN_FLOW",1202:"LYNX_RENDER_ERROR_CODE_LYNXVIEW_DESTROY_NOT_ON_UI",1301:"LYNX_RENDER_ERROR_CODE_CSS",1401:"LYNX_RENDER_ERROR_CODE_ASSET",1501:"LYNX_RENDER_ERROR_CODE_CLI",1601:"LYNX_RENDER_ERROR_CODE_DYNAMIC_COMPONENT_LOAD_FAIL",1602:"LYNX_RENDER_ERROR_CODE_DYNAMIC_COMPONENT_FILE_EMPTY",1603:"LYNX_RENDER_ERROR_CODE_DYNAMIC_COMPONENT_DECODE_FAIL",1701:"LYNX_RENDER_ERROR_CODE_EXTERNAL_SOURCE",1801:"LYNX_RENDER_ERROR_CODE_EVENT_EXCEPTION",9901:"LYNX_RENDER_ERROR_CODE_BINARY"}),xt=(function(e){function t(t,n,r){void 0===t&&(t=0);var i=e.call(this,n)||this;return i.code=t,i.message=n,i.name=Ft[t],void 0!==r&&(i.stack=r),i}(0,l.C6)(t,e)}(Dt),function(e){function t(t,n){var r=e.call(this,t)||this;return r.name="INTERNAL_SJS_ERROR",r.errorCode=n,r}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_SERVICE_UNHANDLED_REJECTION_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="CREATE_SAME_API_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="USER_INFITE_RENDERER_ERROR",t}(0,l.C6)(t,e)}(kt),function(e){function t(t,n){var r=e.call(this,t)||this;return r.name="USER_SJS_ERROR",r.errorCode=n,r}(0,l.C6)(t,e)}(kt),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="INTERNAL_SECURE_REPORT_ERROR",t}(0,l.C6)(t,e)}(Dt),function(e){function t(t,n){var r=e.call(this,t)||this;return r.name="INTERNAL_WEBVIEW_JSSDK_ERROR",r.stack=n,r}(0,l.C6)(t,e)}(Dt),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");var Lt=null!==(Ot=globalThis.btoa)&&void 0!==Ot?Ot:function(e){for(var t=String(e),n="",r=0,i=void 0,o=0,a=xt;t.charAt(0|o)||(a="=",o%1);n+=a.charAt(63&r>>8-o%1*8)){if((i=t.charCodeAt(o+=.75))>255)throw new Mt("The string to be encoded contains characters outside of the Latin1 range");r=r<<8|i}return n},Nt=null!==(It=globalThis.atob)&&void 0!==It?It:function(e){var t=String(e).replace(/(\n|=+$)/g,""),n="";if(t.length%4==1)throw new Mt("The string to be decoded is not correctly encoded");for(var r=void 0,i=void 0,o=0,a=0;i=t.charAt(a++);~i&&(r=o%4&&r?64*r+i:i,o++%4)?n+=String.fromCharCode(255&r>>(-2*o&6)):0)i=xt.indexOf(i);return n},Bt=__webpack_require__(3131);const Ut={document:u,location:c,screen:h,indexedDB:Be,navigator:Ue,performance:je,alert:Ve,WebGLRenderingContext:nt,WebSocket:ut,TextDecoder:Tt.TextDecoder,TextEncoder:Tt.TextEncoder,AbortController:mt,AbortSignal:ft,Blob:vt,crypto:new wt,body:u.body,createElement:u.createElement,getElementById:u.getElementById,addEventListener:u.addEventListener,removeEventListener:u.removeEventListener,querySelector:u.querySelector,localStorage:Rt,btoa:Lt,atob:Nt,open:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.BT.warn("Application.OpenURL is not available")}};var jt=__webpack_require__(1233);function Vt(e,n){if(t.xG.info("onLoadStageChanged: ".concat(e)),"function"==typeof Ht.loadStageChangedListener){var r={stage:e};n&&Object.assign(r,{errMsg:n}),Ht.loadStageChangedListener(r)}}var Ht={globalErrorListener:void 0,loadStageChangedListener:void 0,registerGlobalErrorListener:function(e){Ht.globalErrorListener=e},unregisterGlobalErrorListener:function(){Ht.globalErrorListener=void 0},registerLoadStageChangedListener:function(e){Ht.loadStageChangedListener=e}},Wt=__webpack_require__(3145);function qt(e){t.oo.error("".concat(e.message,"\n").concat(e.stack)),Wt.A.showDialog(e.stack,e.message),"function"==typeof Ht.globalErrorListener&&Ht.globalErrorListener("".concat(e.message,"\n").concat(e.stack))}var Gt=__webpack_require__(1055);var Kt={getCodePackageDir:function(){try{return(0,He.W)().invokeNativeSync("getPkgDirRealPathSync",{}).path}catch(e){(0,t.SZ)("getCodePackageDir error: ".concat(e))}return""},getMainWasmSource:function(e){var t,n=e.code.url,r=e.code.md5;return e.enableWasmSplit&&(null===(t=e.mainWasm)||void 0===t?void 0:t.url)&&(n=e.mainWasm.url,r=e.mainWasm.md5),{url:n,md5:r}},getIOSMainWasmSource:function(e){var t=e.code.url,n=e.code.md5;return e.enableWasmSplit&&!0!==e.enableArchiveMode&&e.mainWasmH5&&e.mainWasmH5.url&&(t=e.mainWasmH5.url,n=e.mainWasmH5.md5),{url:t,md5:n}}};const Jt={identity:{require:function(){return{}},decompress:function(e){return e}},gzip:{require:function(e){var t={"inflate.js":function(e,t,n){function r(e){if(!(this instanceof r))return new r(e);this.options=a.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&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=o.inflateInit2(this.strm,t.windowBits);if(n!==u.Z_OK)throw new Error(c[n]);this.header=new d,o.inflateGetHeader(this.strm,this.header)}function i(e,t){var n=new r(t);if(n.push(e,!0),n.err)throw n.msg||c[n.err];return n.result}var o=e("./zlib/inflate"),a=e("./utils/common"),s=e("./utils/strings"),u=e("./zlib/constants"),c=e("./zlib/messages"),l=e("./zlib/zstream"),d=e("./zlib/gzheader"),f=Object.prototype.toString;r.prototype.push=function(e,t){var n,r,i,c,l,d,h=this.strm,p=this.options.chunkSize,m=this.options.dictionary,_=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?u.Z_FINISH:u.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 a.Buf8(p),h.next_out=0,h.avail_out=p),(n=o.inflate(h,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&m&&(d="string"==typeof m?s.string2buf(m):"[object ArrayBuffer]"===f.call(m)?new Uint8Array(m):m,n=o.inflateSetDictionary(this.strm,d)),n===u.Z_BUF_ERROR&&!0===_&&(n=u.Z_OK,_=!1),n!==u.Z_STREAM_END&&n!==u.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==u.Z_STREAM_END&&(0!==h.avail_in||r!==u.Z_FINISH&&r!==u.Z_SYNC_FLUSH)||("string"===this.options.to?(i=s.utf8border(h.output,h.next_out),c=h.next_out-i,l=s.buf2string(h.output,i),h.next_out=c,h.avail_out=p-c,c&&a.arraySet(h.output,h.output,i,c,0),this.onData(l)):this.onData(a.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(_=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==u.Z_STREAM_END);return n===u.Z_STREAM_END&&(r=u.Z_FINISH),r===u.Z_FINISH?(n=o.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u.Z_OK):r!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),h.avail_out=0,!0)},r.prototype.onData=function(e){this.chunks.push(e)},r.prototype.onEnd=function(e){e===u.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=r,n.inflate=i,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,i(e,t)},n.ungzip=i},"utils/common.js":function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},"utils/strings.js":function(e,t,n){function r(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&o))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}var i=e("./common"),o=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var s=new i.Buf8(256),u=0;u<256;u++)s[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;s[254]=s[254]=1,n.string2buf=function(e){var t,n,r,o,a,s=e.length,u=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&(56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++)),u+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&(56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},n.buf2binstring=function(e){return r(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,o,a,u=t||e.length,c=new Array(2*u);for(i=0,n=0;n<u;)if((o=e[n++])<128)c[i++]=o;else if((a=s[o])>4)c[i++]=65533,n+=a-1;else{for(o&=2===a?31:3===a?15:7;a>1&&n<u;)o=o<<6|63&e[n++],a--;a>1?c[i++]=65533:o<65536?c[i++]=o:(o-=65536,c[i++]=55296|o>>10&1023,c[i++]=56320|1023&o)}return r(c,i)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}},"zlib/inflate.js":function(e,t,n){function r(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){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 h.Buf16(320),this.work=new h.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=k,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new h.Buf32(ce),t.distcode=t.distdyn=new h.Buf32(le),t.sane=1,t.back=-1,C):R}function a(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,o(e)):R}function s(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?R:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,a(e))):R}function u(e,t){var n,r;return e?(r=new i,e.state=r,r.window=null,(n=s(e,t))!==C&&(e.state=null),n):R}function c(e){if(fe){var t;for(d=new h.Buf32(512),f=new h.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(y(v,e.lens,0,288,d,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;y(b,e.lens,0,32,f,0,e.work,{bits:5}),fe=!1}e.lencode=d,e.lenbits=9,e.distcode=f,e.distbits=5}function l(e,t,n,r){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new h.Buf8(o.wsize)),r>=o.wsize?(h.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),h.arraySet(o.window,t,n-r,i,o.wnext),(r-=i)?(h.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}var d,f,h=e("../utils/common"),p=e("./adler32"),m=e("./crc32"),_=e("./inffast"),y=e("./inftrees"),g=0,v=1,b=2,E=4,S=5,A=6,C=0,w=1,T=2,R=-2,O=-3,I=-4,P=-5,D=8,k=1,M=2,F=3,x=4,L=5,N=6,B=7,U=8,j=9,V=10,H=11,W=12,q=13,G=14,K=15,J=16,X=17,z=18,Y=19,Z=20,Q=21,$=22,ee=23,te=24,ne=25,re=26,ie=27,oe=28,ae=29,se=30,ue=31,ce=852,le=592,de=15,fe=!0;n.inflateReset=a,n.inflateReset2=s,n.inflateResetKeep=o,n.inflateInit=function(e){return u(e,de)},n.inflateInit2=u,n.inflate=function(e,t){var n,i,o,a,s,u,d,f,ce,le,de,fe,he,pe,me,_e,ye,ge,ve,be,Ee,Se,Ae,Ce,we=0,Te=new h.Buf8(4),Re=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return R;(n=e.state).mode===W&&(n.mode=q),s=e.next_out,o=e.output,d=e.avail_out,a=e.next_in,i=e.input,u=e.avail_in,f=n.hold,ce=n.bits,le=u,de=d,Se=C;e:for(;;)switch(n.mode){case k:if(0===n.wrap){n.mode=q;break}for(;ce<16;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}if(2&n.wrap&&35615===f){n.check=0,Te[0]=255&f,Te[1]=f>>>8&255,n.check=m(n.check,Te,2,0),f=0,ce=0,n.mode=M;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&f)<<8)+(f>>8))%31){e.msg="incorrect header check",n.mode=se;break}if((15&f)!==D){e.msg="unknown compression method",n.mode=se;break}if(ce-=4,Ee=8+(15&(f>>>=4)),0===n.wbits)n.wbits=Ee;else if(Ee>n.wbits){e.msg="invalid window size",n.mode=se;break}n.dmax=1<<Ee,e.adler=n.check=1,n.mode=512&f?V:W,f=0,ce=0;break;case M:for(;ce<16;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}if(n.flags=f,(255&n.flags)!==D){e.msg="unknown compression method",n.mode=se;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=se;break}n.head&&(n.head.text=f>>8&1),512&n.flags&&(Te[0]=255&f,Te[1]=f>>>8&255,n.check=m(n.check,Te,2,0)),f=0,ce=0,n.mode=F;case F:for(;ce<32;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}n.head&&(n.head.time=f),512&n.flags&&(Te[0]=255&f,Te[1]=f>>>8&255,Te[2]=f>>>16&255,Te[3]=f>>>24&255,n.check=m(n.check,Te,4,0)),f=0,ce=0,n.mode=x;case x:for(;ce<16;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}n.head&&(n.head.xflags=255&f,n.head.os=f>>8),512&n.flags&&(Te[0]=255&f,Te[1]=f>>>8&255,n.check=m(n.check,Te,2,0)),f=0,ce=0,n.mode=L;case L:if(1024&n.flags){for(;ce<16;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}n.length=f,n.head&&(n.head.extra_len=f),512&n.flags&&(Te[0]=255&f,Te[1]=f>>>8&255,n.check=m(n.check,Te,2,0)),f=0,ce=0}else n.head&&(n.head.extra=null);n.mode=N;case N:if(1024&n.flags&&((fe=n.length)>u&&(fe=u),fe&&(n.head&&(Ee=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),h.arraySet(n.head.extra,i,a,fe,Ee)),512&n.flags&&(n.check=m(n.check,i,fe,a)),u-=fe,a+=fe,n.length-=fe),n.length))break e;n.length=0,n.mode=B;case B:if(2048&n.flags){if(0===u)break e;fe=0;do{Ee=i[a+fe++],n.head&&Ee&&n.length<65536&&(n.head.name+=String.fromCharCode(Ee))}while(Ee&&fe<u);if(512&n.flags&&(n.check=m(n.check,i,fe,a)),u-=fe,a+=fe,Ee)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=U;case U:if(4096&n.flags){if(0===u)break e;fe=0;do{Ee=i[a+fe++],n.head&&Ee&&n.length<65536&&(n.head.comment+=String.fromCharCode(Ee))}while(Ee&&fe<u);if(512&n.flags&&(n.check=m(n.check,i,fe,a)),u-=fe,a+=fe,Ee)break e}else n.head&&(n.head.comment=null);n.mode=j;case j:if(512&n.flags){for(;ce<16;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}if(f!==(65535&n.check)){e.msg="header crc mismatch",n.mode=se;break}f=0,ce=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=W;break;case V:for(;ce<32;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}e.adler=n.check=r(f),f=0,ce=0,n.mode=H;case H:if(0===n.havedict)return e.next_out=s,e.avail_out=d,e.next_in=a,e.avail_in=u,n.hold=f,n.bits=ce,T;e.adler=n.check=1,n.mode=W;case W:if(t===S||t===A)break e;case q:if(n.last){f>>>=7&ce,ce-=7&ce,n.mode=ie;break}for(;ce<3;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}switch(n.last=1&f,ce-=1,3&(f>>>=1)){case 0:n.mode=G;break;case 1:if(c(n),n.mode=Z,t===A){f>>>=2,ce-=2;break e}break;case 2:n.mode=X;break;case 3:e.msg="invalid block type",n.mode=se}f>>>=2,ce-=2;break;case G:for(f>>>=7&ce,ce-=7&ce;ce<32;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}if((65535&f)!=(f>>>16^65535)){e.msg="invalid stored block lengths",n.mode=se;break}if(n.length=65535&f,f=0,ce=0,n.mode=K,t===A)break e;case K:n.mode=J;case J:if(fe=n.length){if(fe>u&&(fe=u),fe>d&&(fe=d),0===fe)break e;h.arraySet(o,i,a,fe,s),u-=fe,a+=fe,d-=fe,s+=fe,n.length-=fe;break}n.mode=W;break;case X:for(;ce<14;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}if(n.nlen=257+(31&f),f>>>=5,ce-=5,n.ndist=1+(31&f),f>>>=5,ce-=5,n.ncode=4+(15&f),f>>>=4,ce-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=se;break}n.have=0,n.mode=z;case z:for(;n.have<n.ncode;){for(;ce<3;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}n.lens[Re[n.have++]]=7&f,f>>>=3,ce-=3}for(;n.have<19;)n.lens[Re[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ae={bits:n.lenbits},Se=y(g,n.lens,0,19,n.lencode,0,n.work,Ae),n.lenbits=Ae.bits,Se){e.msg="invalid code lengths set",n.mode=se;break}n.have=0,n.mode=Y;case Y:for(;n.have<n.nlen+n.ndist;){for(;_e=(we=n.lencode[f&(1<<n.lenbits)-1])>>>16&255,ye=65535&we,!((me=we>>>24)<=ce);){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}if(ye<16)f>>>=me,ce-=me,n.lens[n.have++]=ye;else{if(16===ye){for(Ce=me+2;ce<Ce;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}if(f>>>=me,ce-=me,0===n.have){e.msg="invalid bit length repeat",n.mode=se;break}Ee=n.lens[n.have-1],fe=3+(3&f),f>>>=2,ce-=2}else if(17===ye){for(Ce=me+3;ce<Ce;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}ce-=me,Ee=0,fe=3+(7&(f>>>=me)),f>>>=3,ce-=3}else{for(Ce=me+7;ce<Ce;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}ce-=me,Ee=0,fe=11+(127&(f>>>=me)),f>>>=7,ce-=7}if(n.have+fe>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=se;break}for(;fe--;)n.lens[n.have++]=Ee}}if(n.mode===se)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=se;break}if(n.lenbits=9,Ae={bits:n.lenbits},Se=y(v,n.lens,0,n.nlen,n.lencode,0,n.work,Ae),n.lenbits=Ae.bits,Se){e.msg="invalid literal/lengths set",n.mode=se;break}if(n.distbits=6,n.distcode=n.distdyn,Ae={bits:n.distbits},Se=y(b,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ae),n.distbits=Ae.bits,Se){e.msg="invalid distances set",n.mode=se;break}if(n.mode=Z,t===A)break e;case Z:n.mode=Q;case Q:if(u>=6&&d>=258){e.next_out=s,e.avail_out=d,e.next_in=a,e.avail_in=u,n.hold=f,n.bits=ce,_(e,de),s=e.next_out,o=e.output,d=e.avail_out,a=e.next_in,i=e.input,u=e.avail_in,f=n.hold,ce=n.bits,n.mode===W&&(n.back=-1);break}for(n.back=0;_e=(we=n.lencode[f&(1<<n.lenbits)-1])>>>16&255,ye=65535&we,!((me=we>>>24)<=ce);){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}if(_e&&!(240&_e)){for(ge=me,ve=_e,be=ye;_e=(we=n.lencode[be+((f&(1<<ge+ve)-1)>>ge)])>>>16&255,ye=65535&we,!(ge+(me=we>>>24)<=ce);){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}f>>>=ge,ce-=ge,n.back+=ge}if(f>>>=me,ce-=me,n.back+=me,n.length=ye,0===_e){n.mode=re;break}if(32&_e){n.back=-1,n.mode=W;break}if(64&_e){e.msg="invalid literal/length code",n.mode=se;break}n.extra=15&_e,n.mode=$;case $:if(n.extra){for(Ce=n.extra;ce<Ce;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}n.length+=f&(1<<n.extra)-1,f>>>=n.extra,ce-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ee;case ee:for(;_e=(we=n.distcode[f&(1<<n.distbits)-1])>>>16&255,ye=65535&we,!((me=we>>>24)<=ce);){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}if(!(240&_e)){for(ge=me,ve=_e,be=ye;_e=(we=n.distcode[be+((f&(1<<ge+ve)-1)>>ge)])>>>16&255,ye=65535&we,!(ge+(me=we>>>24)<=ce);){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}f>>>=ge,ce-=ge,n.back+=ge}if(f>>>=me,ce-=me,n.back+=me,64&_e){e.msg="invalid distance code",n.mode=se;break}n.offset=ye,n.extra=15&_e,n.mode=te;case te:if(n.extra){for(Ce=n.extra;ce<Ce;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}n.offset+=f&(1<<n.extra)-1,f>>>=n.extra,ce-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=se;break}n.mode=ne;case ne:if(0===d)break e;if(fe=de-d,n.offset>fe){if((fe=n.offset-fe)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=se;break}fe>n.wnext?(fe-=n.wnext,he=n.wsize-fe):he=n.wnext-fe,fe>n.length&&(fe=n.length),pe=n.window}else pe=o,he=s-n.offset,fe=n.length;fe>d&&(fe=d),d-=fe,n.length-=fe;do{o[s++]=pe[he++]}while(--fe);0===n.length&&(n.mode=Q);break;case re:if(0===d)break e;o[s++]=n.length,d--,n.mode=Q;break;case ie:if(n.wrap){for(;ce<32;){if(0===u)break e;u--,f|=i[a++]<<ce,ce+=8}if(de-=d,e.total_out+=de,n.total+=de,de&&(e.adler=n.check=n.flags?m(n.check,o,de,s-de):p(n.check,o,de,s-de)),de=d,(n.flags?f:r(f))!==n.check){e.msg="incorrect data check",n.mode=se;break}f=0,ce=0}n.mode=oe;case oe:if(n.wrap&&n.flags){for(;ce<32;){if(0===u)break e;u--,f+=i[a++]<<ce,ce+=8}if(f!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=se;break}f=0,ce=0}n.mode=ae;case ae:Se=w;break e;case se:Se=O;break e;case ue:return I;default:return R}return e.next_out=s,e.avail_out=d,e.next_in=a,e.avail_in=u,n.hold=f,n.bits=ce,(n.wsize||de!==e.avail_out&&n.mode<se&&(n.mode<ie||t!==E))&&l(e,e.output,e.next_out,de-e.avail_out)?(n.mode=ue,I):(le-=e.avail_in,de-=e.avail_out,e.total_in+=le,e.total_out+=de,n.total+=de,n.wrap&&de&&(e.adler=n.check=n.flags?m(n.check,o,de,e.next_out-de):p(n.check,o,de,e.next_out-de)),e.data_type=n.bits+(n.last?64:0)+(n.mode===W?128:0)+(n.mode===Z||n.mode===K?256:0),(0===le&&0===de||t===E)&&Se===C&&(Se=P),Se)},n.inflateEnd=function(e){if(!e||!e.state)return R;var t=e.state;return t.window&&(t.window=null),e.state=null,C},n.inflateGetHeader=function(e,t){var n;return e&&e.state?2&(n=e.state).wrap?(n.head=t,t.done=!1,C):R:R},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&n.mode!==H?R:n.mode===H&&p(1,t,r,0)!==n.check?O:l(e,t,r,r)?(n.mode=ue,I):(n.havedict=1,C):R},n.inflateInfo="pako inflate (from Nodeca project)"},"zlib/constants.js":function(e,t,n){t.exports={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_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}},"zlib/messages.js":function(e,t,n){t.exports={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"}},"zlib/zstream.js":function(e,t,n){t.exports=function(){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}},"zlib/gzheader.js":function(e,t,n){t.exports=function(){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}},"zlib/adler32.js":function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e,o=e>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},"zlib/crc32.js":function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},"zlib/inffast.js":function(e,t,n){t.exports=function(e,t){var n,r,i,o,a,s,u,c,l,d,f,h,p,m,_,y,g,v,b,E,S,A,C,w,T;n=e.state,r=e.next_in,w=e.input,i=r+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,d=n.wnext,f=n.window,h=n.hold,p=n.bits,m=n.lencode,_=n.distcode,y=(1<<n.lenbits)-1,g=(1<<n.distbits)-1;e:do{p<15&&(h+=w[r++]<<p,p+=8,h+=w[r++]<<p,p+=8),v=m[h&y];t:for(;;){if(h>>>=b=v>>>24,p-=b,0===(b=v>>>16&255))T[o++]=65535&v;else{if(!(16&b)){if(!(64&b)){v=m[(65535&v)+(h&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}E=65535&v,(b&=15)&&(p<b&&(h+=w[r++]<<p,p+=8),E+=h&(1<<b)-1,h>>>=b,p-=b),p<15&&(h+=w[r++]<<p,p+=8,h+=w[r++]<<p,p+=8),v=_[h&g];n:for(;;){if(h>>>=b=v>>>24,p-=b,!(16&(b=v>>>16&255))){if(!(64&b)){v=_[(65535&v)+(h&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(S=65535&v,p<(b&=15)&&(h+=w[r++]<<p,(p+=8)<b&&(h+=w[r++]<<p,p+=8)),(S+=h&(1<<b)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=b,p-=b,S>(b=o-a)){if((b=S-b)>l&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(A=0,C=f,0===d){if(A+=c-b,b<E){E-=b;do{T[o++]=f[A++]}while(--b);A=o-S,C=T}}else if(d<b){if(A+=c+d-b,(b-=d)<E){E-=b;do{T[o++]=f[A++]}while(--b);if(A=0,d<E){E-=b=d;do{T[o++]=f[A++]}while(--b);A=o-S,C=T}}}else if(A+=d-b,b<E){E-=b;do{T[o++]=f[A++]}while(--b);A=o-S,C=T}for(;E>2;)T[o++]=C[A++],T[o++]=C[A++],T[o++]=C[A++],E-=3;E&&(T[o++]=C[A++],E>1&&(T[o++]=C[A++]))}else{A=o-S;do{T[o++]=T[A++],T[o++]=T[A++],T[o++]=T[A++],E-=3}while(E>2);E&&(T[o++]=T[A++],E>1&&(T[o++]=T[A++]))}break}}break}}while(r<i&&o<s);r-=E=p>>3,h&=(1<<(p-=E<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=h,n.bits=p}},"zlib/inftrees.js":function(e,t,n){var r=e("../utils/common"),i=15,o=[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],a=[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],s=[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],u=[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];t.exports=function(e,t,n,c,l,d,f,h){var p,m,_,y,g,v,b,E,S,A=h.bits,C=0,w=0,T=0,R=0,O=0,I=0,P=0,D=0,k=0,M=0,F=null,x=0,L=new r.Buf16(16),N=new r.Buf16(16),B=null,U=0;for(C=0;C<=i;C++)L[C]=0;for(w=0;w<c;w++)L[t[n+w]]++;for(O=A,R=i;R>=1&&0===L[R];R--);if(O>R&&(O=R),0===R)return l[d++]=20971520,l[d++]=20971520,h.bits=1,0;for(T=1;T<R&&0===L[T];T++);for(O<T&&(O=T),D=1,C=1;C<=i;C++)if(D<<=1,(D-=L[C])<0)return-1;if(D>0&&(0===e||1!==R))return-1;for(N[1]=0,C=1;C<i;C++)N[C+1]=N[C]+L[C];for(w=0;w<c;w++)0!==t[n+w]&&(f[N[t[n+w]]++]=w);if(0===e?(F=B=f,v=19):1===e?(F=o,x-=257,B=a,U-=257,v=256):(F=s,B=u,v=-1),M=0,w=0,C=T,g=d,I=O,P=0,_=-1,y=(k=1<<O)-1,1===e&&k>852||2===e&&k>592)return 1;for(;;){b=C-P,f[w]<v?(E=0,S=f[w]):f[w]>v?(E=B[U+f[w]],S=F[x+f[w]]):(E=96,S=0),p=1<<C-P,T=m=1<<I;do{l[g+(M>>P)+(m-=p)]=b<<24|E<<16|S}while(0!==m);for(p=1<<C-1;M&p;)p>>=1;if(0!==p?(M&=p-1,M+=p):M=0,w++,0===--L[C]){if(C===R)break;C=t[n+f[w]]}if(C>O&&(M&y)!==_){for(0===P&&(P=O),g+=T,D=1<<(I=C-P);I+P<R&&!((D-=L[I+P])<=0);)I++,D<<=1;if(k+=1<<I,1===e&&k>852||2===e&&k>592)return 1;l[_=M&y]=O<<24|I<<16|g-d}}return 0!==M&&(l[g+M]=C-P<<24|64<<16),h.bits=O,0}}};for(var n in t)t[n].folder=n.substring(0,n.lastIndexOf("/")+1);var r=function(e){var n=[];return(e=e.split("/").every(function(e){return".."==e?n.pop():"."==e||""==e||n.push(e)})?n.join("/"):null)?t[e]||t[e+".js"]||t[e+"/index.js"]:null},i=function(e,t){return e?r(e.folder+"node_modules/"+t)||i(e.parent,t):null},o=function(e,t){var n=t.match(/^\//)?null:e?t.match(/^\.\.?\//)?r(e.folder+t):i(e,t):r(t);if(!n)throw"module not found: "+t;return n.exports||(n.parent=e,n(o.bind(null,n),n,n.exports={})),n.exports};return o(null,e)},decompress:function(e){this.exports||(this.exports=this.require("inflate.js"));try{return this.exports.inflate(e)}catch(e){}},hasUnityMarker:function(e){var t=10,n="UnityWeb Compressed Content (gzip)";const r=e.length||e.byteLength;if(t>r||31!==e[0]||139!==e[1])return!1;var i=e[3];if(4&i){if(t+2>r)return!1;if((t+=2+e[t]+(e[t+1]<<8))>r)return!1}if(8&i){for(;t<r&&e[t];)t++;if(t+1>r)return!1;t++}return 16&i&&String.fromCharCode.apply(null,e.subarray(t,t+34+1))===n+"\0"}},brotli:{require:function(e){var t={"decompress.js":function(e,t,n){t.exports=e("./dec/decode").BrotliDecompressBuffer},"dec/bit_reader.js":function(e,t,n){function r(e){this.buf_=new Uint8Array(o),this.input_=e,this.reset()}const i=4096,o=8224,a=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);r.READ_SIZE=i,r.IBUF_MASK=8191,r.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var e=0;e<4;e++)this.val_|=this.buf_[this.pos_]<<8*e,++this.pos_;return this.bit_end_pos_>0},r.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var e=this.buf_ptr_,t=this.input_.read(this.buf_,e,i);if(t<0)throw new Error("Unexpected end of input");if(t<i){this.eos_=1;for(var n=0;n<32;n++)this.buf_[e+t+n]=0}if(0===e){for(n=0;n<32;n++)this.buf_[8192+n]=this.buf_[n];this.buf_ptr_=i}else this.buf_ptr_=0;this.bit_end_pos_+=t<<3}},r.prototype.fillBitWindow=function(){for(;this.bit_pos_>=8;)this.val_>>>=8,this.val_|=this.buf_[8191&this.pos_]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},r.prototype.readBits=function(e){32-this.bit_pos_<e&&this.fillBitWindow();var t=this.val_>>>this.bit_pos_&a[e];return this.bit_pos_+=e,t},t.exports=r},"dec/context.js":function(e,t,n){n.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3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,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},"dec/decode.js":function(e,t,n){function r(e){var t;return 0===e.readBits(1)?16:(t=e.readBits(3))>0?17+t:(t=e.readBits(3))>0?8+t:17}function i(e){if(e.readBits(1)){var t=e.readBits(3);return 0===t?1:e.readBits(t)+(1<<t)}return 0}function o(){this.meta_block_length=0,this.input_end=0,this.is_uncompressed=0,this.is_metadata=!1}function a(e){var t,n,r,i=new o;if(i.input_end=e.readBits(1),i.input_end&&e.readBits(1))return i;if(7===(t=e.readBits(2)+4)){if(i.is_metadata=!0,0!==e.readBits(1))throw new Error("Invalid reserved bit");if(0===(n=e.readBits(2)))return i;for(r=0;r<n;r++){var a=e.readBits(8);if(r+1===n&&n>1&&0===a)throw new Error("Invalid size byte");i.meta_block_length|=a<<8*r}}else for(r=0;r<t;++r){var s=e.readBits(4);if(r+1===t&&t>4&&0===s)throw new Error("Invalid size nibble");i.meta_block_length|=s<<4*r}return++i.meta_block_length,i.input_end||i.is_metadata||(i.is_uncompressed=e.readBits(1)),i}function s(e,t,n){var r;return n.fillBitWindow(),(r=e[t+=n.val_>>>n.bit_pos_&N].bits-L)>0&&(n.bit_pos_+=L,t+=e[t].value,t+=n.val_>>>n.bit_pos_&(1<<r)-1),n.bit_pos_+=e[t].bits,e[t].value}function u(e,t,n,r){var i,o,a=new Uint8Array(e);if(r.readMoreInput(),1===(i=r.readBits(2))){for(var s=e-1,u=0,c=new Int32Array(4),l=r.readBits(2)+1;s;)s>>=1,++u;for(d=0;d<l;++d)c[d]=r.readBits(u)%e,a[c[d]]=2;switch(a[c[0]]=1,l){case 1:break;case 3:if(c[0]===c[1]||c[0]===c[2]||c[1]===c[2])throw new Error("[ReadHuffmanCode] invalid symbols");break;case 2:if(c[0]===c[1])throw new Error("[ReadHuffmanCode] invalid symbols");a[c[1]]=1;break;case 4:if(c[0]===c[1]||c[0]===c[2]||c[0]===c[3]||c[1]===c[2]||c[1]===c[3]||c[2]===c[3])throw new Error("[ReadHuffmanCode] invalid symbols");r.readBits(1)?(a[c[2]]=3,a[c[3]]=3):a[c[0]]=2}}else{var d,f=new Uint8Array(U),h=32,p=0,m=[new C(2,0),new C(2,4),new C(2,3),new C(3,2),new C(2,0),new C(2,4),new C(2,3),new C(4,1),new C(2,0),new C(2,4),new C(2,3),new C(3,2),new C(2,0),new C(2,4),new C(2,3),new C(4,5)];for(d=i;d<U&&h>0;++d){var _,y=j[d],g=0;r.fillBitWindow(),g+=r.val_>>>r.bit_pos_&15,r.bit_pos_+=m[g].bits,_=m[g].value,f[y]=_,0!==_&&(h-=32>>_,++p)}if(1!==p&&0!==h)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function(e,t,n,r){for(var i=0,o=I,a=0,s=0,u=32768,c=[],l=0;l<32;l++)c.push(new C(0,0));for(w(c,0,5,e,U);i<t&&u>0;){var d,f=0;if(r.readMoreInput(),r.fillBitWindow(),f+=r.val_>>>r.bit_pos_&31,r.bit_pos_+=c[f].bits,(d=255&c[f].value)<P)a=0,n[i++]=d,0!==d&&(o=d,u-=32768>>d);else{var h,p,m=d-14,_=0;if(d===P&&(_=o),s!==_&&(a=0,s=_),h=a,a>0&&(a-=2,a<<=m),i+(p=(a+=r.readBits(m)+3)-h)>t)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var y=0;y<p;y++)n[i+y]=s;i+=p,0!==s&&(u-=p<<15-s)}}if(0!==u)throw new Error("[ReadHuffmanCodeLengths] space = "+u);for(;i<t;i++)n[i]=0}(f,e,a,r)}if(0===(o=w(t,n,L,a,e)))throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return o}function c(e,t,n){var r,i;return r=s(e,t,n),i=R.kBlockLengthPrefixCode[r].nbits,R.kBlockLengthPrefixCode[r].offset+n.readBits(i)}function l(e,t,n){var r;return e<V?(n+=H[e],r=t[n&=3]+W[e]):r=e-V+1,r}function d(e,t){for(var n=e[t],r=t;r;--r)e[r]=e[r-1];e[0]=n}function f(e,t){var n,r=new Uint8Array(256);for(n=0;n<256;++n)r[n]=n;for(n=0;n<t;++n){var i=e[n];e[n]=r[i],i&&d(r,i)}}function h(e,t){this.alphabet_size=e,this.num_htrees=t,this.codes=new Array(t+t*q[e+31>>>5]),this.htrees=new Uint32Array(t)}function p(e,t){var n,r,o={num_htrees:null,context_map:null},a=0;t.readMoreInput();var c=o.num_htrees=i(t)+1,l=o.context_map=new Uint8Array(e);if(c<=1)return o;for(t.readBits(1)&&(a=t.readBits(4)+1),n=[],r=0;r<B;r++)n[r]=new C(0,0);for(u(c+a,n,0,t),r=0;r<e;){var d;if(t.readMoreInput(),0===(d=s(n,0,t)))l[r]=0,++r;else if(d<=a)for(var h=1+(1<<d)+t.readBits(d);--h;){if(r>=e)throw new Error("[DecodeContextMap] i >= context_map_size");l[r]=0,++r}else l[r]=d-a,++r}return t.readBits(1)&&f(l,e),o}function m(e,t,n,r,i,o,a){var u,c=2*n,l=n,d=s(t,n*B,a);(u=0===d?i[c+(1&o[l])]:1===d?i[c+(o[l]-1&1)]+1:d-2)>=e&&(u-=e),r[n]=u,i[c+(1&o[l])]=u,++o[l]}function _(e,t,n,r,i,o){var a,s=i+1,u=n&i,c=o.pos_&S.IBUF_MASK;if(t<8||o.bit_pos_+(t<<3)<o.bit_end_pos_)for(;t-- >0;)o.readMoreInput(),r[u++]=o.readBits(8),u===s&&(e.write(r,s),u=0);else{if(o.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;o.bit_pos_<32;)r[u]=o.val_>>>o.bit_pos_,o.bit_pos_+=8,++u,--t;if(c+(a=o.bit_end_pos_-o.bit_pos_>>3)>S.IBUF_MASK){for(var l=S.IBUF_MASK+1-c,d=0;d<l;d++)r[u+d]=o.buf_[c+d];a-=l,u+=l,t-=l,c=0}for(d=0;d<a;d++)r[u+d]=o.buf_[c+d];if(t-=a,(u+=a)>=s){e.write(r,s),u-=s;for(d=0;d<u;d++)r[d]=r[s+d]}for(;u+t>=s;){if(a=s-u,o.input_.read(r,u,a)<a)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");e.write(r,s),t-=a,u=0}if(o.input_.read(r,u,t)<t)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");o.reset()}}function y(e){var t=e.bit_pos_+7&-8;return 0==e.readBits(t-e.bit_pos_)}function g(e){var t=new b(e),n=new S(t);return r(n),a(n).meta_block_length}function v(e,t){var n,o,d,f,g,v,b,E,w,I,P=0,L=0,N=0,U=[16,15,11,4],j=0,H=0,W=0,q=[new h(0,0),new h(0,0),new h(0,0)];const G=128+S.READ_SIZE;o=(1<<(I=r(w=new S(e))))-16,f=(d=1<<I)-1,g=new Uint8Array(d+G+A.maxDictionaryWordLength),v=d,b=[],E=[];for(var K=0;K<3240;K++)b[K]=new C(0,0),E[K]=new C(0,0);for(;!L;){var J,X,z,Y,Z,Q,$,ee,te,ne=0,re=[1<<28,1<<28,1<<28],ie=[0],oe=[1,1,1],ae=[0,1,0,1,0,1],se=[0],ue=null,ce=null,le=null,de=null,fe=0,he=null,pe=0,me=0,_e=0;for(n=0;n<3;++n)q[n].codes=null,q[n].htrees=null;w.readMoreInput();var ye=a(w);if(P+(ne=ye.meta_block_length)>t.buffer.length){var ge=new Uint8Array(P+ne);ge.set(t.buffer),t.buffer=ge}if(L=ye.input_end,J=ye.is_uncompressed,ye.is_metadata)for(y(w);ne>0;--ne)w.readMoreInput(),w.readBits(8);else if(0!==ne)if(J)w.bit_pos_=w.bit_pos_+7&-8,_(t,ne,P,g,f,w),P+=ne;else{for(n=0;n<3;++n)oe[n]=i(w)+1,oe[n]>=2&&(u(oe[n]+2,b,n*B,w),u(M,E,n*B,w),re[n]=c(E,n*B,w),se[n]=1);for(w.readMoreInput(),Y=(1<<(X=w.readBits(2)))-1,Z=(z=V+(w.readBits(4)<<X))+(48<<X),ce=new Uint8Array(oe[0]),n=0;n<oe[0];++n)w.readMoreInput(),ce[n]=w.readBits(2)<<1;var ve=p(oe[0]<<F,w);Q=ve.num_htrees,ue=ve.context_map;var be=p(oe[2]<<x,w);for($=be.num_htrees,le=be.context_map,q[0]=new h(D,Q),q[1]=new h(k,oe[1]),q[2]=new h(Z,$),n=0;n<3;++n)q[n].decode(w);for(de=0,he=0,ee=ce[ie[0]],me=T.lookupOffsets[ee],_e=T.lookupOffsets[ee+1],te=q[1].htrees[0];ne>0;){var Ee,Se,Ae,Ce,we,Te,Re,Oe,Ie,Pe,De,ke;for(w.readMoreInput(),0===re[1]&&(m(oe[1],b,1,ie,ae,se,w),re[1]=c(E,B,w),te=q[1].htrees[ie[1]]),--re[1],(Se=(Ee=s(q[1].codes,te,w))>>6)>=2?(Se-=2,Re=-1):Re=0,Ae=R.kInsertRangeLut[Se]+(Ee>>3&7),Ce=R.kCopyRangeLut[Se]+(7&Ee),we=R.kInsertLengthPrefixCode[Ae].offset+w.readBits(R.kInsertLengthPrefixCode[Ae].nbits),Te=R.kCopyLengthPrefixCode[Ce].offset+w.readBits(R.kCopyLengthPrefixCode[Ce].nbits),H=g[P-1&f],W=g[P-2&f],Ie=0;Ie<we;++Ie)w.readMoreInput(),0===re[0]&&(m(oe[0],b,0,ie,ae,se,w),re[0]=c(E,0,w),de=ie[0]<<F,ee=ce[ie[0]],me=T.lookupOffsets[ee],_e=T.lookupOffsets[ee+1]),fe=ue[de+(T.lookup[me+H]|T.lookup[_e+W])],--re[0],W=H,H=s(q[0].codes,q[0].htrees[fe],w),g[P&f]=H,(P&f)===f&&t.write(g,d),++P;if((ne-=we)<=0)break;if(Re<0)if(w.readMoreInput(),0===re[2]&&(m(oe[2],b,2,ie,ae,se,w),re[2]=c(E,2160,w),he=ie[2]<<x),--re[2],pe=le[he+(255&(Te>4?3:Te-2))],(Re=s(q[2].codes,q[2].htrees[pe],w))>=z)ke=(Re-=z)&Y,Re=z+((Me=(2+(1&(Re>>=X))<<(De=1+(Re>>1)))-4)+w.readBits(De)<<X)+ke;if((Oe=l(Re,U,j))<0)throw new Error("[BrotliDecompress] invalid distance");if(Pe=P&f,Oe>(N=P<o&&N!==o?P:o)){if(!(Te>=A.minDictionaryWordLength&&Te<=A.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+P+" distance: "+Oe+" len: "+Te+" bytes left: "+ne);var Me=A.offsetsByLength[Te],Fe=Oe-N-1,xe=A.sizeBitsByLength[Te],Le=Fe>>xe;if(Me+=(Fe&(1<<xe)-1)*Te,!(Le<O.kNumTransforms))throw new Error("Invalid backward reference. pos: "+P+" distance: "+Oe+" len: "+Te+" bytes left: "+ne);var Ne=O.transformDictionaryWord(g,Pe,Me,Te,Le);if(P+=Ne,ne-=Ne,(Pe+=Ne)>=v){t.write(g,d);for(var Be=0;Be<Pe-v;Be++)g[Be]=g[v+Be]}}else{if(Re>0&&(U[3&j]=Oe,++j),Te>ne)throw new Error("Invalid backward reference. pos: "+P+" distance: "+Oe+" len: "+Te+" bytes left: "+ne);for(Ie=0;Ie<Te;++Ie)g[P&f]=g[P-Oe&f],(P&f)===f&&t.write(g,d),++P,--ne}H=g[P-1&f],W=g[P-2&f]}P&=1073741823}}t.write(g,P&f)}var b=e("./streams").BrotliInput,E=e("./streams").BrotliOutput,S=e("./bit_reader"),A=e("./dictionary"),C=e("./huffman").HuffmanCode,w=e("./huffman").BrotliBuildHuffmanTable,T=e("./context"),R=e("./prefix"),O=e("./transform");const I=8,P=16,D=256,k=704,M=26,F=6,x=2,L=8,N=255,B=1080,U=18,j=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),V=16,H=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),W=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),q=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);h.prototype.decode=function(e){var t,n=0;for(t=0;t<this.num_htrees;++t)this.htrees[t]=n,n+=u(this.alphabet_size,this.codes,n,e)},n.BrotliDecompressedSize=g,n.BrotliDecompressBuffer=function(e,t){var n=new b(e);null==t&&(t=g(e));var r=new Uint8Array(t),i=new E(r);return v(n,i),i.pos<i.buffer.length&&(i.buffer=i.buffer.subarray(0,i.pos)),i.buffer},n.BrotliDecompress=v,A.init()},"dec/dictionary.js":function(e,t,n){var r=e("./dictionary-browser");n.init=function(){n.dictionary=r.init()},n.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),n.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),n.minDictionaryWordLength=4,n.maxDictionaryWordLength=24},"dec/dictionary.bin.js":function(e,t,n){t.exports="W5/fcQLn5gKf2XUbAiQ1XULX+TZz6ADToDsgqk6qVfeC0e4m6OO2wcQ1J76ZBVRV1fRkEsdu//62zQsFEZWSTCnMhcsQKlS2qOhuVYYMGCkV0fXWEoMFbESXrKEZ9wdUEsyw9g4bJlEt1Y6oVMxMRTEVbCIwZzJzboK5j8m4YH02qgXYhv1V+PM435sLVxyHJihaJREEhZGqL03txGFQLm76caGO/ovxKvzCby/3vMTtX/459f0igi7WutnKiMQ6wODSoRh/8Lx1V3Q99MvKtwB6bHdERYRY0hStJoMjNeTsNX7bn+Y7e4EQ3bf8xBc7L0BsyfFPK43dGSXpL6clYC/I328h54/VYrQ5i0648FgbGtl837svJ35L3Mot/+nPlNpWgKx1gGXQYqX6n+bbZ7wuyCHKcUok12Xjqub7NXZGzqBx0SD+uziNf87t7ve42jxSKQoW3nyxVrWIGlFShhCKxjpZZ5MeGna0+lBkk+kaN8F9qFBAFgEogyMBdcX/T1W/WnMOi/7ycWUQloEBKGeC48MkiwqJkJO+12eQiOFHMmck6q/IjWW3RZlany23TBm+cNr/84/oi5GGmGBZWrZ6j+zykVozz5fT/QH/Da6WTbZYYPynVNO7kxzuNN2kxKKWche5WveitPKAecB8YcAHz/+zXLjcLzkdDSktNIDwZE9J9X+tto43oJy65wApM3mDzYtCwX9lM+N5VR3kXYo0Z3t0TtXfgBFg7gU8oN0Dgl7fZlUbhNll+0uuohRVKjrEd8egrSndy5/Tgd2gqjA4CAVuC7ESUmL3DZoGnfhQV8uwnpi8EGvAVVsowNRxPudck7+oqAUDkwZopWqFnW1riss0t1z6iCISVKreYGNvQcXv+1L9+jbP8cd/dPUiqBso2q+7ZyFBv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J1wNV+bHeydNtmC6G5ICtFC1ZwmJU/j8hf0I8TRVKSiz5oYIa93EpUI78X8GYIAZabx47/n8LDAAJ0nNtP1rpROprqKMBRecShca6qXuTSI3jZBLOB3Vp381B5rCGhjSvh/NSVkYp2qIdP/Bg="},"dec/dictionary-browser.js":function(e,t,n){var r=e("base64-js");n.init=function(){return(0,e("./decode").BrotliDecompressBuffer)(r.toByteArray(e("./dictionary.bin.js")))}},"dec/huffman.js":function(e,t,n){function r(e,t){this.bits=e,this.value=t}function i(e,t){for(var n=1<<t-1;e&n;)n>>=1;return(e&n-1)+n}function o(e,t,n,i,o){do{e[t+(i-=n)]=new r(o.bits,o.value)}while(i>0)}function a(e,t,n){for(var r=1<<t-n;t<s&&!((r-=e[t])<=0);)++t,r<<=1;return t-n}n.HuffmanCode=r;const s=15;n.BrotliBuildHuffmanTable=function(e,t,n,u,c){var l,d,f,h,p,m,_,y,g,v,b=t,E=new Int32Array(16),S=new Int32Array(16);for(v=new Int32Array(c),d=0;d<c;d++)E[u[d]]++;for(S[1]=0,l=1;l<s;l++)S[l+1]=S[l]+E[l];for(d=0;d<c;d++)0!==u[d]&&(v[S[u[d]]++]=d);if(g=y=1<<(_=n),1===S[s]){for(f=0;f<g;++f)e[t+f]=new r(0,65535&v[0]);return g}for(f=0,d=0,l=1,h=2;l<=n;++l,h<<=1)for(;E[l]>0;--E[l])o(e,t+f,h,y,new r(255&l,65535&v[d++])),f=i(f,l);for(m=g-1,p=-1,l=n+1,h=2;l<=s;++l,h<<=1)for(;E[l]>0;--E[l])(f&m)!==p&&(t+=y,g+=y=1<<(_=a(E,l,n)),e[b+(p=f&m)]=new r(_+n&255,t-b-p&65535)),o(e,t+(f>>n),h,y,new r(l-n&255,65535&v[d++])),f=i(f,l);return g}},"dec/prefix.js":function(e,t,n){function r(e,t){this.offset=e,this.nbits=t}n.kBlockLengthPrefixCode=[new r(1,2),new r(5,2),new r(9,2),new r(13,2),new r(17,3),new r(25,3),new r(33,3),new r(41,3),new r(49,4),new r(65,4),new r(81,4),new r(97,4),new r(113,5),new r(145,5),new r(177,5),new r(209,5),new r(241,6),new r(305,6),new r(369,7),new r(497,8),new r(753,9),new r(1265,10),new r(2289,11),new r(4337,12),new r(8433,13),new r(16625,24)],n.kInsertLengthPrefixCode=[new r(0,0),new r(1,0),new r(2,0),new r(3,0),new r(4,0),new r(5,0),new r(6,1),new r(8,1),new r(10,2),new r(14,2),new r(18,3),new r(26,3),new r(34,4),new r(50,4),new r(66,5),new r(98,5),new r(130,6),new r(194,7),new r(322,8),new r(578,9),new r(1090,10),new r(2114,12),new r(6210,14),new r(22594,24)],n.kCopyLengthPrefixCode=[new r(2,0),new r(3,0),new r(4,0),new r(5,0),new r(6,0),new r(7,0),new r(8,0),new r(9,0),new r(10,1),new r(12,1),new r(14,2),new r(18,2),new r(22,3),new r(30,3),new r(38,4),new r(54,4),new r(70,5),new r(102,5),new r(134,6),new r(198,7),new r(326,8),new r(582,9),new r(1094,10),new r(2118,24)],n.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],n.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},"dec/streams.js":function(e,t,n){function r(e){this.buffer=e,this.pos=0}function i(e){this.buffer=e,this.pos=0}r.prototype.read=function(e,t,n){this.pos+n>this.buffer.length&&(n=this.buffer.length-this.pos);for(var r=0;r<n;r++)e[t+r]=this.buffer[this.pos+r];return this.pos+=n,n},n.BrotliInput=r,i.prototype.write=function(e,t){if(this.pos+t>this.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},n.BrotliOutput=i},"dec/transform.js":function(e,t,n){function r(e,t,n){this.prefix=new Uint8Array(e.length),this.transform=t,this.suffix=new Uint8Array(n.length);for(var r=0;r<e.length;r++)this.prefix[r]=e.charCodeAt(r);for(r=0;r<n.length;r++)this.suffix[r]=n.charCodeAt(r)}function i(e,t){return e[t]<192?(e[t]>=97&&e[t]<=122&&(e[t]^=32),1):e[t]<224?(e[t+1]^=32,2):(e[t+2]^=5,3)}var o=e("./dictionary");const a=10,s=11;var u=[new r("",0,""),new r("",0," "),new r(" ",0," "),new r("",12,""),new r("",a," "),new r("",0," the "),new r(" ",0,""),new r("s ",0," "),new r("",0," of "),new r("",a,""),new r("",0," and "),new r("",13,""),new r("",1,""),new r(", ",0," "),new r("",0,", "),new r(" ",a," "),new r("",0," in "),new r("",0," to "),new r("e ",0," "),new r("",0,'"'),new r("",0,"."),new r("",0,'">'),new r("",0,"\n"),new r("",3,""),new r("",0,"]"),new r("",0," for "),new r("",14,""),new r("",2,""),new r("",0," a "),new r("",0," that "),new r(" ",a,""),new r("",0,". "),new r(".",0,""),new r(" ",0,", "),new r("",15,""),new r("",0," with "),new r("",0,"'"),new r("",0," from "),new r("",0," by "),new r("",16,""),new r("",17,""),new r(" the ",0,""),new r("",4,""),new r("",0,". The "),new r("",s,""),new r("",0," on "),new r("",0," as "),new r("",0," is "),new r("",7,""),new r("",1,"ing "),new r("",0,"\n\t"),new r("",0,":"),new r(" ",0,". "),new r("",0,"ed "),new r("",20,""),new r("",18,""),new r("",6,""),new r("",0,"("),new r("",a,", "),new r("",8,""),new r("",0," at "),new r("",0,"ly "),new r(" the ",0," of "),new r("",5,""),new r("",9,""),new r(" ",a,", "),new r("",a,'"'),new r(".",0,"("),new r("",s," "),new r("",a,'">'),new r("",0,'="'),new r(" ",0,"."),new r(".com/",0,""),new r(" the ",0," of the "),new r("",a,"'"),new r("",0,". This "),new r("",0,","),new r(".",0," "),new r("",a,"("),new r("",a,"."),new r("",0," not "),new r(" ",0,'="'),new r("",0,"er "),new r(" ",s," "),new r("",0,"al "),new r(" ",s,""),new r("",0,"='"),new r("",s,'"'),new r("",a,". "),new r(" ",0,"("),new r("",0,"ful "),new r(" ",a,". "),new r("",0,"ive "),new r("",0,"less "),new r("",s,"'"),new r("",0,"est "),new r(" ",a,"."),new r("",s,'">'),new r(" ",0,"='"),new r("",a,","),new r("",0,"ize "),new r("",s,"."),new r("Â ",0,""),new r(" ",0,","),new r("",a,'="'),new r("",s,'="'),new r("",0,"ous "),new r("",s,", "),new r("",a,"='"),new r(" ",a,","),new r(" ",s,'="'),new r(" ",s,", "),new r("",s,","),new r("",s,"("),new r("",s,". "),new r(" ",s,"."),new r("",s,"='"),new r(" ",s,". "),new r(" ",a,'="'),new r(" ",s,"='"),new r(" ",a,"='")];n.kTransforms=u,n.kNumTransforms=u.length,n.transformDictionaryWord=function(e,t,n,r,c){var l,d=u[c].prefix,f=u[c].suffix,h=u[c].transform,p=h<12?0:h-11,m=0,_=t;p>r&&(p=r);for(var y=0;y<d.length;)e[t++]=d[y++];for(n+=p,r-=p,h<=9&&(r-=h),m=0;m<r;m++)e[t++]=o.dictionary[n+m];if(l=t-r,h===a)i(e,l);else if(h===s)for(;r>0;){var g=i(e,l);l+=g,r-=g}for(var v=0;v<f.length;)e[t++]=f[v++];return t-_}},"node_modules/base64-js/index.js":function(e,t,n){function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function o(e,t,n){for(var r,o=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(i(r));return o.join("")}n.byteLength=function(e){return 3*e.length/4-r(e)},n.toByteArray=function(e){var t,n,i,o,a,c,l=e.length;a=r(e),c=new u(3*l/4-a),i=a>0?l-4:l;var d=0;for(t=0,n=0;t<i;t+=4,n+=3)o=s[e.charCodeAt(t)]<<18|s[e.charCodeAt(t+1)]<<12|s[e.charCodeAt(t+2)]<<6|s[e.charCodeAt(t+3)],c[d++]=o>>16&255,c[d++]=o>>8&255,c[d++]=255&o;return 2===a?(o=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,c[d++]=255&o):1===a&&(o=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,c[d++]=o>>8&255,c[d++]=255&o),c},n.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i="",s=[],u=16383,c=0,l=n-r;c<l;c+=u)s.push(o(e,c,c+u>l?l:c+u));return 1===r?(t=e[n-1],i+=a[t>>2],i+=a[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=a[t>>10],i+=a[t>>4&63],i+=a[t<<2&63],i+="="),s.push(i),s.join("")};for(var a=[],s=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0;l<64;++l)a[l]=c[l],s[c.charCodeAt(l)]=l;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63}};for(var n in t)t[n].folder=n.substring(0,n.lastIndexOf("/")+1);var r=function(e){var n=[];return(e=e.split("/").every(function(e){return".."==e?n.pop():"."==e||""==e||n.push(e)})?n.join("/"):null)?t[e]||t[e+".js"]||t[e+"/index.js"]:null},i=function(e,t){return e?r(e.folder+"node_modules/"+t)||i(e.parent,t):null},o=function(e,t){var n=t.match(/^\//)?null:e?t.match(/^\.\.?\//)?r(e.folder+t):i(e,t):r(t);if(!n)throw"module not found: "+t;return n.exports||(n.parent=e,n(o.bind(null,n),n,n.exports={})),n.exports};return o(null,e)},decompress:function(e){this.exports||(this.exports=this.require("decompress.js"));try{return this.exports(e)}catch(e){console.error("brotli decompress error: "+e)}},hasUnityMarker:function(e){var t,n="UnityWeb Compressed Content (brotli)";const r=e.length||e.byteLength;if(!r)return!1;var i=e[0]?e[0]?4:7:1,o=e[0]&(1<<i)-1,a=1+(Math.log(35)/Math.log(2)>>3);if(t=i+1+2+1+2+(a<<3)+7>>3,17===o||t>r)return!1;for(var s=o+(6+(a<<4)+2240<<i),u=0;u<t;u++,s>>>=8)if(e[u]!==(255&s))return!1;return String.fromCharCode.apply(null,e.subarray(t,t+36))===n}},zlib:null,decompress:function(e){return this.zlib?new Uint8Array(this.zlib.brotliDecompressSync(e)):this.brotli.decompress(e)}};var Xt=__webpack_require__(1987),zt=null;function Yt(){if(null!==zt)return zt;try{var e=(tt.getSystemInfoSync().version||"").split("."),t=parseInt(e[0]||"0",10),n=parseInt(e[1]||"0",10);return zt=100*t+10*n}catch(e){return zt=0,0}}var Zt=t.Vy.getLogger("Decompress"),Qt=[];function $t(e,t,n,r,i){var o={filePath:e,method:t,inputSize:n,outputSize:r,costMs:i,timestamp:Date.now()};Qt.push(o),globalThis.__decompressRecords=Qt}var en=null;function tn(){if(null===en){var e="function"==typeof(null===jssdk||void 0===jssdk?void 0:jssdk.decompressBrotliSync)||"function"==typeof(null===jssdk||void 0===jssdk?void 0:jssdk.decompressBrotli),t=Yt()>=4420;en=e&&t,Zt.info("jssdk brotli available: ".concat(en," (hasApi=").concat(e,", version=").concat(Yt(),", min=").concat(4420,")"))}return en}function nn(e,t){return void 0===t&&(t=!1),(0,l.sH)(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c;return(0,l.YH)(this,function(l){switch(l.label){case 0:if(n=Date.now(),t||!tn())return[3,6];l.label=1;case 1:return l.trys.push([1,3,,5]),[4,jssdk.decompressBrotli(e)];case 2:return o=l.sent(),r=new Uint8Array(o),i="jssdk.decompressBrotli",[3,5];case 3:return a=l.sent(),Zt.error("jssdk.decompressBrotli failed for ".concat(e,", fallback to js: ").concat(a)),[4,Xt.fs.readFile(e)];case 4:return s=l.sent(),r=Jt.decompress(new Uint8Array(s)),i=Jt.zlib?"native-zlib(fallback)":"js-brotli(fallback)",[3,5];case 5:return[3,8];case 6:return[4,Xt.fs.readFile(e)];case 7:s=l.sent(),u=new Uint8Array(s),r=Jt.decompress(u),i=Jt.zlib?"native-zlib":"js-brotli",l.label=8;case 8:return c=Date.now()-n,$t(e,i,0,r.byteLength,c),Zt.info("[".concat(i,"] async decompress ").concat(e,", ").concat(r.byteLength," bytes, cost: ").concat(c,"ms")),[2,r]}})})}function rn(e,t){void 0===t&&(t=!1);var n,r,i=Date.now();if(!t&&tn())try{var o=jssdk.decompressBrotliSync(e);n=new Uint8Array(o),r="jssdk.decompressBrotliSync"}catch(t){Zt.error("jssdk.decompressBrotliSync failed for ".concat(e,", fallback to js: ").concat(t));var a=Xt.fs.readFileSync(e);n=Jt.decompress(new Uint8Array(a)),r=Jt.zlib?"native-zlib(fallback)":"js-brotli(fallback)"}else{a=Xt.fs.readFileSync(e);var s=new Uint8Array(a);n=Jt.decompress(s),r=Jt.zlib?"native-zlib":"js-brotli"}var u=Date.now()-i;return $t(e,r,0,n.byteLength,u),Zt.info("[".concat(r,"] sync decompress ").concat(e,", ").concat(n.byteLength," bytes, cost: ").concat(u,"ms")),n}function on(e,t){void 0===t&&(t="");var n=Date.now(),r=Jt.decompress(e),i=Jt.zlib?"native-zlib":"js-brotli",o=Date.now()-n;return $t(t||"buffer",i,e.byteLength,r.byteLength,o),Zt.info("[".concat(i,"] buffer decompress").concat(t?" "+t:"",", ").concat(e.byteLength," -> ").concat(r.byteLength," bytes, cost: ").concat(o,"ms")),r}var an=__webpack_require__(534),sn=__webpack_require__(2718),un=new Map;function cn(){return t.oo.debug("clearing scwebgl-bundle data and compiling wasm"),un.clear(),delete globalThis.nativeSCConfig,delete globalThis.starkWebGLBundleInfos,!0}function ln(){var e=Kt.getMainWasmSource(globalThis.starkWebGLBundleInfos),t=globalThis.starkWebGLBundleInfos.data,n=globalThis.starkWebGLBundleInfos.framework,r=globalThis.nativeSCConfig.appId,i={wasmPrecompiled:null,wasmPath:Gt.A.getBaseName(e.url),wasmMD5:e.md5,data:null,dataPath:Gt.A.getBaseName(t.url),dataMD5:t.md5,evalFrameworkCode:null,frameworkPath:Gt.A.getBaseName(n.url),frameworkMD5:n.md5,rewriteDecompressedDataList:[]};un.set(r,i);return["tt9021e69c0f15e73307"].includes(r)?[]:[i.wasmPath,i.dataPath,i.frameworkPath]}function dn(e){var n,r;(0,t.xF)("preloading scwebgl-bundle data and compiling wasm"),(0,t.xF)("bundle info = ".concat(globalThis.starkWebGLBundleInfos)),(0,t.xF)("nativeSCConfig = ".concat(globalThis.nativeSCConfig)),(0,t.xF)("preloaded bundle buffer data, len=".concat(e.length)),(0,sn.j)(globalThis.WebAssembly);var i=globalThis.nativeSCConfig.appId,o=un.get(i);if(o){(0,t.xF)("process preloaded bundle data");try{for(var a=(0,l.Ju)(e),s=a.next();!s.done;s=a.next()){var u=s.value,c=on(new Uint8Array(u.buffer),u.path);if(c.byteLength!=u.buffer.byteLength&&o.rewriteDecompressedDataList.push({path:u.path,buffer:c}),u.path==o.wasmPath)o.wasmPrecompiled=sn.T.compile(c);else if(u.path==o.dataPath)o.data=c;else if(u.path==o.frameworkPath){var d=st().toString(c,"utf8");o.evalFrameworkCode=d}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}}var fn=__webpack_require__(169),hn=t.Vy.getLogger("Version");Date.prototype.Format=function(e){const t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours()%12==0?12:this.getHours()%12,"H+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(const n in t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e};__webpack_require__(1123);var pn=__webpack_require__(1022);var mn=[];var _n,yn=function(e){for(var t,n,r=mn,i=0;i<r.length;++i)r[i].call(null,e);jt.A.call("OnInnerAudioStateChanged",{id:e.id,state:null!==(t=e.state)&&void 0!==t?t:"",extra:null!==(n=e.extra)&&void 0!==n?n:""})};function gn(){return _n}function vn(e){(0,t.xF)("onGyroscopeChanged - ".concat(JSON.stringify(e))),jt.A.call("onGyroscopeChanged",e)}var bn="onAudioStateChanged";!function(){function e(){}e.prototype.init=function(){(0,He.W)().unsubscribe(bn,yn),(0,He.W)().subscribe(bn,yn)},e.prototype.create=function(e){return this.init(),new Promise(function(n,r){(0,He.W)().invokeService("createInnerAudioContext",e).then(function(e){(0,t.xF)("createInnerAudioContext succeed: ".concat(JSON.stringify(e))),n(e.id)}).catch(function(e){r(JSON.stringify(e))})})},e.prototype.operate=function(e,t,n){var r=this[t];return"function"==typeof r?r.bind(this)(e,n):Promise.reject("invalid type: ".concat(t))},e.prototype.readProperty=function(e,t){return this.readInnerAudioContextProperty(e,t)},e.prototype.readInnerAudioContextProperty=function(e,n){return new Promise(function(r,i){(0,He.W)().invokeService("readInnerAudioContextProperty",{id:e,property:n}).then(function(n){(0,t.xF)("readInnerAudioContextProperty succeed: ".concat(JSON.stringify(n))),r({id:e,value:n.value})}).catch(function(e){(0,t.SZ)("call failed: ".concat(JSON.stringify(e))),i(JSON.stringify(e))})})},e.prototype.operateInnerAudioContext=function(e,n,r){return void 0===r&&(r=void 0),new Promise(function(i,o){var a={id:e,type:n};void 0!==r&&(a.value=r),(0,He.W)().invokeService("operateInnerAudioContext",a).then(function(e){(0,t.xF)("operateInnerAudioContext succeed: ".concat(JSON.stringify(e))),i(e.id)}).catch(function(e){(0,t.SZ)("operateInnerAudioContext failed: ".concat(JSON.stringify(e))),o(JSON.stringify(e))})})},e.prototype.play=function(e){return this.operateInnerAudioContext(e,"play")},e.prototype.pause=function(e){return this.operateInnerAudioContext(e,"pause")},e.prototype.stop=function(e){return this.operateInnerAudioContext(e,"stop")},e.prototype.destroy=function(e){return this.operateInnerAudioContext(e,"destroy")},e.prototype.volume=function(e,t){return this.operateInnerAudioContext(e,"volume",t)},e.prototype.loop=function(e,t){return this.operateInnerAudioContext(e,"loop",t)},e.prototype.seek=function(e,t){return this.operateInnerAudioContext(e,"seek",t)},e.prototype.duration=function(e){return this.readInnerAudioContextProperty(e,"duration")},e.prototype.currentTime=function(e){return this.readInnerAudioContextProperty(e,"currentTime")},e.prototype.paused=function(e){return this.readInnerAudioContextProperty(e,"paused")},e.prototype.buffered=function(e){return this.readInnerAudioContextProperty(e,"buffered")}}();var En="onGyroscopeChanged",Sn=(function(){function e(){this.isGyroscopeRunning=!1,this.notUseEngineGyroscope=null,this.notUseEngineGyroscope=void 0!==(0,He.W)().onNative&&void 0!==(0,He.W)().offNative||void 0!==tt.onNative&&void 0!==tt.offNative}e.prototype.init=function(){(0,He.W)().unsubscribe(En,vn),(0,He.W)().subscribe(En,vn)},e.prototype.start=function(e){var n;if(t.CD.debug("start"),this.notUseEngineGyroscope){var r=null!==(n=e.interval)&&void 0!==n?n:50;return this.isGyroscopeRunning||("function"==typeof(0,He.W)().onNative?(0,He.W)().onNative("onGyroscopeChange",vn):"function"==typeof tt.onNative?tt.onNative("onGyroscopeChange",vn):t.CD.error("onNative - not support")),this.isGyroscopeRunning=!0,(0,He.W)().invokeNative("startGyroscope",(0,l.Cl)((0,l.Cl)({},e),{interval:r})),Promise.resolve(!0)}return this.init(),new Promise(function(n,r){(0,He.W)().invokeService("starkGyroscopeStart",e).then(function(e){t.CD.debug("start succeed: ".concat(JSON.stringify(e))),n(e.success)}).catch(function(e){r(JSON.stringify(e))})})},e.prototype.stop=function(){return t.CD.debug("stop"),this.notUseEngineGyroscope?(this.isGyroscopeRunning=!1,"function"==typeof(0,He.W)().offNative?(0,He.W)().offNative("onGyroscopeChange",vn):"function"==typeof tt.offNative?tt.offNative("onGyroscopeChange",vn):t.CD.error("offNative - not support"),(0,He.W)().invokeNative("stopGyroscope"),Promise.resolve(!0)):new Promise(function(e,n){(0,He.W)().invokeService("starkGyroscopeStop",{}).then(function(n){t.CD.debug("stop succeed: ".concat(JSON.stringify(n))),e(n.success)}).catch(function(e){n(JSON.stringify(e))})})}}(),new(function(){function e(){this.audioInstanceIdCounter=0,this.audioInstances=Object.create(null),this.audioContext=null,this.audioWebEnabled=0,this.audioCache=[],this.audioBufferLength=0,this.bufferSourceNodeLength=0,this.soundVolumeHandler=Object.create(null),this.innerAudioInstances=Object.create(null)}return e.prototype.createBuffer=function(e,t,n){var r=this.audioContext.createBuffer(e,t,n);return["length","duration","sampleRate","numberOfChannels"].forEach(function(e){if(!{}.propertyIsEnumerable.call(r,e)){var t=r[e];Object.defineProperty(r,e,{get:function(){return t},enumerable:!0})}}),r},e}())),An=!1;function Cn(e){t.vn.warn(e)}function wn(e){t.vn.error(e)}function Tn(e){t.vn.info(e)}var Rn=__webpack_require__(4501),On=Object.create(null),In=function(e){function n(t){var n=e.call(this)||this;return n._nativeAudioId=-1,n._src=null,n._paused=!1,n._stopped=!1,n._duration=void 0,n._volume=1,n._loop=!1,n._buffered=null,n._playbackRate=1,n._destroyed=!1,n._lastCurrentTime=0,n._lastCurrentTimeAt=0,n._isCurrentTimePaused=!0,n._isSeekingRequested=!1,n._queuedOps=[],n._cbDurationChanged=null,"FakeAudioImpl.constructor(".concat(t,") 0"),n._src=t,gn().create({src:t,loop:!1,autoPlay:!1,obeyMuteSwitch:!0,volume:1,startTime:0,playbackRate:1,referrerPolicy:null,needDownload:!1}).then(function(e){"FakeAudioImpl.constructor callbacked nativeAudioId=".concat(e),n._nativeAudioId=e,On[e]=n,n.operateNativeAllQueued(),n.updateDuration(),n.updateCurrentTimeExact()}),n}return(0,l.C6)(n,e),Object.defineProperty(n.prototype,"isSetup",{get:function(){return!!~this._nativeAudioId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nativeAudioId",{get:function(){return this._nativeAudioId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"src",{get:function(){return this._src},set:function(e){t.vn.error("FakeAudioImpl set src ".concat(e,' failed: property "src" has no setter on iOS!'))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentTime",{get:function(){if(void 0===this._duration||this._lastCurrentTimeAt<=0)return 0;if(this._isCurrentTimePaused)return this._lastCurrentTime;var e=Sn.audioContext.currentTime-this._lastCurrentTimeAt,t=this.safeModeDuration(this._lastCurrentTime+e);return"get currentTime ".concat(this._nativeAudioId," = ").concat(t),t},set:function(e){this.seek(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"loop",{get:function(){return this._loop},set:function(e){this._loop=e,this.operateNative("loop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"playBackRate",{get:function(){return this._playbackRate},set:function(e){this._playbackRate=e,this.operateNative("playbackRate",e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"volume",{get:function(){return this._volume},set:function(e){this._volume=e,this.operateNative("volume",e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"duration",{get:function(){return this._duration||NaN},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"paused",{get:function(){return this._paused},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"buffered",{get:function(){return this._buffered},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isSeekingRequested",{get:function(){return this._isSeekingRequested},enumerable:!1,configurable:!0}),n.prototype.play=function(){this.operateNative("play"),this._paused=!1,this._stopped=!1,this.updateCurrentTime(this.currentTime,!0),this.operateNative("seek",this.currentTime)},n.prototype.pause=function(){this.operateNative("pause"),this._paused=!0,this.updateCurrentTime(this.currentTime,!1)},n.prototype.stop=function(){this.operateNative("stop"),this._stopped=!0,this._isSeekingRequested=!1,this.updateCurrentTime(0,!1)},n.prototype.destroy=function(){this.operateNative("destroy"),this._destroyed=!0,this._cbDurationChanged=null,delete On[this._nativeAudioId]},n.prototype.seek=function(e){this._isSeekingRequested=!0,this.operateNative("seek",e),this.updateCurrentTime(e,!(this._paused||this._stopped))},n.prototype.updateDuration=function(){var e=this;this.readPropertyNative("duration",function(t){var n;e._duration=t.value,null===(n=e._cbDurationChanged)||void 0===n||n.call(e,t.value)})},n.prototype.updateCurrentTime=function(e,t){this._lastCurrentTimeAt=Sn.audioContext.currentTime,this._lastCurrentTime=this.safeModeDuration(e),this._isCurrentTimePaused=!t},n.prototype.safeModeDuration=function(e){return isFinite(this._duration)&&this._duration>0?e%this._duration:e},n.prototype.updateCurrentTimeExact=function(){var e=this;this.readPropertyNative("currentTime",function(t){e.updateCurrentTime(t.value,!(e._paused||e._stopped))})},n.prototype.onAudioStateChanged=function(e,t){switch("[FakeAudioImpl] on event ".concat(this._nativeAudioId,": ").concat(e," -> ").concat(t),this._emit(Pn(e),t),e){case"seeked":this._isSeekingRequested=!1,this.updateCurrentTimeExact();case"playing":case"pause":case"stop":case"timeupdate":this.updateCurrentTimeExact();break;case"canPlay":this.updateDuration()}},n.prototype.operateNative=function(e,t){this.isSetup?("[FakeAudioImpl] operate ".concat(this._nativeAudioId,": ").concat(e," -> ").concat(t),gn().operate(this._nativeAudioId,e,t)):this._queuedOps.push({type:e,value:t})},n.prototype.readPropertyNative=function(e,t){var r=this;this._destroyed||(this.isSetup?("[FakeAudioImpl] read ".concat(this._nativeAudioId,": ").concat(e),gn().readProperty(this._nativeAudioId,e).then(function(n){"[FakeAudioImpl] readResult ".concat(r._nativeAudioId,": ").concat(e," = ").concat(n.value),t.call(r,n)})):this._queuedOps.push({type:n.OP_READ_PROPERTY,value:{property:e,callback:t}}))},n.prototype.operateNativeAllQueued=function(){if(this.isSetup){for(var e=this._queuedOps,t=0;t<e.length;++t){var r=e[t];r.type===n.OP_READ_PROPERTY?this.readPropertyNative(r.value.property,r.value.callback):this.operateNative(r.type,r.value)}e.splice(0,e.length)}},n.prototype.onDurationChanged=function(e){this._cbDurationChanged=e},n.OP_READ_PROPERTY="OP_READ_PROPERTY",n}(Rn.b);function Pn(e){return"playing"===e?"Play":e[0].toUpperCase()+e.slice(1)}var Dn={};["playing","pause","stop","canplay","error","ended","waiting","seeking","seeked","timeupdate"].forEach(function(e){var t=Pn(e);Dn["on".concat(t)]={value:function(e){this._on(t,e)}},Dn["off".concat(t)]={value:function(e){"function"==typeof e?this._off(t,e):this._removeAllListeners(t)}}}),Object.defineProperties(In.prototype,Dn);!function(){function e(){}e.prototype.createInnerAudioInstance=function(e){return"[iOS] UnityAudioBridge.createInnerAudioInstance(".concat(e,")"),new In(e)},e.prototype.getAudioContext=function(){return new(0,(0,He.W)().getWebviewRawGlobal().AudioContext)},e.prototype.decodeAudioData=function(e,t,n){var r=this;Sn.audioContext.decodeAudioData(e,function(e){t.call(r,e)},function(e){n.call(r,null==e?void 0:e.message)})}}();var kn=function(e){function t(){var t=e.call(this)||this;return t.frameworkPath="",t.wasmPath="",t.dataPath="",t}return(0,l.C6)(t,e),t}(function(){this.frameworkBlobURL=null,this.wasmPreCompiled=null,this.data=null});new kn;let Mn=50;var Fn=function(){function e(){}return e.prototype.start=function(e){return new Promise(function(n){var r;!function(e={}){const t=Object.assign({},e);Mn=t.interval?t.interval:50,jssdk.startGyroscope(Mn)}(e),(0,t.xF)("GyroscopeManager start succeed"),r=function(e){(0,t.xF)("onGyroscopeChanged - ".concat(JSON.stringify(e))),jt.A.call("onGyroscopeChanged",e)},jssdk.onGyroscopeChange(r),n(!0)})},e.prototype.stop=function(){return new Promise(function(e){jssdk.offGyroscopeChange(),jssdk.stopGyroscope(),(0,t.xF)("GyroscopeManager stop succeed"),e(!0)})},e}(),xn=null;function Ln(e){xn=e}function Nn(){return xn}var Bn=function(){function e(){}return e.prototype.createInnerAudioInstance=function(e){var t=jssdk.createInnerAudioContext();return t.src=e,t},e.prototype.getAudioContext=function(){return jssdk.getAudioContext()},e.prototype.decodeAudioData=function(e,t,n){var r=this;Sn.audioContext.decodeAudioData(e).then(function(e){t.call(r,e)}).catch(function(e){n.call(r,null==e?void 0:e.message)})},e}();var Un=__webpack_require__(7123),jn=__webpack_require__(3487),Vn=void 0;var Hn=function(n){void 0===Vn&&function(){Vn={switch:!0,switch_cp:e.u.optimizeWebGLMemoryInBackground,force:!1,use_reduce_resolution:(0,Bt.un)()};var n=(0,He.W)().getAppSettings({fields:["sc_background_optimize"]},!0);if(void 0!==n){if(n.hasOwnProperty("default")){var r=n.default;for(var i in r)Vn[i]=r[i]}var o=e.B8.gameModel.appId;if(n.hasOwnProperty(o)){var a=n[o];for(var i in a)Vn[i]=a[i]}}t.z2.info("Detect background optimize options: ".concat(JSON.stringify(Vn)))}();var r=Vn.force||Vn.switch&&Vn.switch_cp;return(!r||void 0===n||"reduce_resolution"!==n)&&r},Wn=new Rn.b,qn=!1;function Gn(e){qn&&e(),Wn._on(jn.PC,e)}jn.zh._on(jn.PC,function(){qn||(Wn._emit(jn.PC),qn=!0)});var Kn=!1;var Jn=!1;var Xn=__webpack_require__(4729),zn=__webpack_require__(131);const Yn=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,$n=new WeakMap,er=new WeakMap;const tr=class{onabort=null;onerror=null;onload=null;onloadstart=null;onprogress=null;ontimeout=null;onloadend=null;onreadystatechange=null;readyState=0;response=null;responseText=null;responseType="arraybuffer";responseXML=null;status=0;statusText="";upload={};withCredentials=!1;request=null;static OPENED=0;constructor(){Qn.set(this,{"content-type":"application/x-www-form-urlencoded"}),$n.set(this,{})}abort(){const e=er.get(this);e&&e.abort()}getAllResponseHeaders(){if(this.request&&this.request.getAllResponseHeaders)return this.request.getAllResponseHeaders();const e=$n.get(this);return Object.keys(e).map(function(t){return t+": "+e[t]}).join("\n")}getResponseHeader(e){return this.request&&this.request.getResponseHeader?this.request.getResponseHeader(e):$n.get(this)[e]}open(e,t){Zn.set(this,e),Yn.set(this,t)}overrideMimeType(){}setRequestHeader(e,t){const n=Qn.get(this);n[e]=t,Qn.set(this,n)}addEventListener(e,t){if("function"==typeof t){const n=this;this["on"+e]=function(e){t.call(n,e)}}}};function nr(e){for(var t=0,n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t}var rr=__webpack_require__(257);const ir="x-sc-cache-file";function or(t){if(!t)return null;if(t.startsWith(e.u.streamingAssetsUrl)){let n=t.substr(e.u.streamingAssetsUrl.length);return n.startsWith("/")&&(n=n.substr(1)),Gt.A.join(Gt.A.getStreamingAssetsBasePath(),n)}return!Gt.A.isLocalFileUrl(t)&&t.endsWith(".bundle")?Gt.A.join(Gt.A.getStreamingAssetsBasePath(),"aa",Gt.A.getBaseName(t)):null}function ar(e){if(e.indexOf(Gt.A.getStreamingAssetsBasePath())>=0){let t=e.replace(Gt.A.getStreamingAssetsBasePath(),"");return t.startsWith("/")&&(t=t.substr(1)),"function"==typeof t.replaceAll&&(t=t.replaceAll("/","_")),Gt.A.join(Gt.A.getStreamingAssetsBasePath(),t)}return null}function sr(){const n=this,r=new tr,i={};let o={};function a(e,t,i,o,a){r.status=t,r.statusText="OK",i?(r.response=null,r.responseText=e):(r.response=e,r.responseText=""),n.isReadFromCache=a,r.onload&&r.onload(o)}function s(e){const n="arraybuffer"!==r.responseType&&"arrayBuffer"!==r.responseType;return r.request=Xn.Ay.request({url:o.requestURL,isText:n,callMd5:!1,method:o.method,headers:i,onload:function(e,r,i,s){if(a(e,r,n,s,i?.isReadFromCache),o.needCacheFile&&(0,Xn.RJ)(r)){const n=u(o.requestURL);(0,Bt.m0)()?function(e,n,r){let i=n;i||(i=or(e));if(i){if(Xt.fs.accessSync(i))return void t.BM.debug(`[CachedXHR] cache already exists, skip write, url: ${e}, path: ${i}`);const n=r?.byteLength??r?.length??0;if(pn._.largerThanOrEqualTo("1.1.0")){const o=Gt.A.getDirPath(i);let a=!1;if(Xt.fs.accessSync(o))a=!0;else if(Xt.fs.mkdirSync(o,!0))a=!0;else{const o=ar(i);if(o)return void(Xt.fs.writeFileSync(o,r)?t.BM.info(`[CachedXHR] cache write success, url: ${e}, path: ${o}, size: ${n}`):t.BM.warn(`[CachedXHR] cache write failed, url: ${e}, path: ${o}`))}a?Xt.fs.writeFileSync(i,r)?t.BM.info(`[CachedXHR] cache write success, url: ${e}, path: ${i}, size: ${n}`):t.BM.warn(`[CachedXHR] cache write failed, url: ${e}, path: ${i}`):t.BM.warn(`[CachedXHR] cache write failed (dir not exists), url: ${e}, path: ${i}`)}else{const o=ar(i);o&&(Xt.fs.writeFileSync(o,r)?t.BM.info(`[CachedXHR] cache write success, url: ${e}, path: ${o}, size: ${n}`):t.BM.warn(`[CachedXHR] cache write failed, url: ${e}, path: ${o}`))}}}(o.requestURL,n,e):function(e,n,r,i){let o=n;o||(o=or(e));if(o){i&&(i.index=Gt.A.getCurrentVersionBasePath());const n=r?.byteLength??r?.length??0;t.BM.info(`[CachedXHR] cache write to IndexedDB, url: ${e}, path: ${o}, size: ${n}`),zn.A.write(o,r,i)}}(o.requestURL,n,e,i)}},onerror:function(e,t,n){!function(e,t){r.status=404,r.statusText=e,r.response=null,r.responseText="",r.onerror&&r.onerror(t)}(e,t)},ontimeout:function(e){!function(e,t){r.status=404,r.statusText="timeout",r.response=null,r.responseText="",r.ontimeout&&r.ontimeout(t)}()},onprogress:function(e,t,n){r.onprogress&&r.onprogress(n)}},e),!0}function u(e){return Gt.A.join(Gt.A.getUserDataBasePath(),"caches",String(nr(e)))+Gt.A.getFileExtension(e)}Object.defineProperty(n,"open",{value:function(e,t){return o={method:e,requestURL:t},r.open.apply(r,arguments)}}),Object.defineProperty(n,"setRequestHeader",{value:function(e,t){return o.customHeaders=!0,i[e]=t,r.setRequestHeader.apply(r,arguments)}}),Object.defineProperty(n,"send",{value:function(t){let n;o.needCacheFile=function(){let e=!1;return i&&ir in i&&(e=!0,delete i[ir]),e}(),o.needCacheFile&&(n=u(o.requestURL)),sr.cache.get(o.requestURL,n,function(n,i){if((0,e.VS)()&&console.debug("read cache data, url: "+o.requestURL+", data is null: "+!i+", err: "+n),n||!i||"arraybuffer"!==r.responseType&&"arrayBuffer"!==r.responseType)return s(t);Promise.resolve().then(()=>{a(i,200,!1,{},!0)})})}}),["abort","getAllResponseHeaders","getResponseHeader","overrideMimeType","addEventListener"].forEach(function(e){Object.defineProperty(n,e,{value:function(){return r[e].apply(r,arguments)}})}),["readyState","response","responseText","responseType","responseURL","responseXML","status","statusText","timeout","upload","withCredentials","onloadstart","onprogress","onabort","onerror","onload","ontimeout","onloadend","onreadystatechange"].forEach(function(e){Object.defineProperty(n,e,{get:function(){return o.override&&o[e]?o[e]:r[e]},set:function(t){r[e]=t}})})}sr.cache={put:function(e,t,n,r){},get:function(n,r,i){if((0,rr.X)())return t.BM.debug(`[CachedXHR] cache read skip (local debug), url: ${n}`),void i(null,null);let o=r;if(o||(o=or(n)),!o)return t.BM.debug(`[CachedXHR] cache read skip (no cache path), url: ${n}`),void i(null,null);if((0,Bt.m0)()){let e=Xt.fs.readFileSync(o);if(!e){const t=Gt.A.getStreamingAssetsBasePath();if(o.startsWith(t)){const n=t+o.substring(t.length).toLowerCase();n!==o&&(e=Xt.fs.readFileSync(n))}}if(e){const r=e?.byteLength??e?.length??0;t.BM.info(`[CachedXHR] cache hit (file), url: ${n}, path: ${o}, size: ${r}`),i(null,e)}else if(o=ar(o),e=Xt.fs.readFileSync(o),e){const r=e?.byteLength??e?.length??0;t.BM.info(`[CachedXHR] cache hit (file, fixed path), url: ${n}, path: ${o}, size: ${r}`),i(null,e)}else t.BM.debug(`[CachedXHR] cache miss, url: ${n}, path: ${o}`),i(null,null)}else e.B8.canUseLocalNet?(t.BM.debug(`[CachedXHR] cache read skip (canUseLocalNet), url: ${n}`),i(null,null)):zn.A.read(o,(e,r)=>{if(e)t.BM.debug(`[CachedXHR] cache miss (IndexedDB error), url: ${n}, error: ${e}`),i(e,null);else{const e=r?.data?.byteLength??r?.data?.length??0;t.BM.info(`[CachedXHR] cache hit (IndexedDB), url: ${n}, path: ${o}, size: ${e}`),i(null,r.data)}})}};var ur,cr=__webpack_require__(1669);!function(e){e[e.Success=0]="Success",e[e.ApiNotSupport=-99]="ApiNotSupport",e[e.ApiCallError=-100]="ApiCallError",e[e.InvalidParam=-101]="InvalidParam",e[e.CreateRtcEngineError=-102]="CreateRtcEngineError"}(ur||(ur={}));var lr="This method is not supported on the current platform",dr="Invalid param",fr=function(){function e(){}return e.login=function(e,t){jssdk.login({success:function(t){var n=(0,l.Cl)({state:"success"},t);e.callbackSuccess(n)},fail:function(t){e.callbackFailed(t.errNo?t.errNo:0,t.errMsg)}})},e.getUserInfo=function(n,r){void 0===r&&(r={withCredentials:!1,withRealNameAuthenticationInfo:!1}),t.IM.info("getUserInfo called");var i=!1;(0,Bt.un)()&&pn._.largerThanOrEqualTo("1.3.0")||(0,Bt.m0)()?i=!0:n.callbackFailed(ur.ApiNotSupport,"This method is not supported on this platform"),i&&jssdk.getUserInfo({withCredentials:r.withCredentials,withRealNameAuthenticationInfo:r.withRealNameAuthenticationInfo,success:function(t){if(t.userInfo){var r={avatarUrl:t.userInfo.avatarUrl,nickName:t.userInfo[e.SC_ACCOUNT_KEY_NICK_NAME],gender:t.userInfo[e.SC_ACCOUNT_KEY_GENDER],city:t.userInfo[e.SC_ACCOUNT_KEY_CITY],province:t.userInfo[e.SC_ACCOUNT_KEY_PROVINCE],country:t.userInfo[e.SC_ACCOUNT_KEY_COUNTRY],language:t.userInfo[e.SC_ACCOUNT_KEY_LANGUAGE],rawData:t.rawData,signature:t.signature,encryptedData:t.encryptedData,iv:t.iv,realNameAuthenticationStatus:t.realNameAuthenticationStatus,state:"success",cloudId:t.cloudId};n.callbackSuccess(r)}else n.callbackFailed(e.SC_ACCOUNT_ERRNO_NORMAL_ERROR,"userInfo is null")},fail:function(e){n.callbackFailed(e.errNo?e.errNo:0,e.errMsg)}})},e.checkSession=function(e,n){t.IM.info("checkSession called");var r=!1;(0,Bt.un)()&&pn._.largerThanOrEqualTo("1.3.0")||(0,Bt.m0)()?r=!0:e.callbackFailed(ur.ApiNotSupport,"This method is not supported on this platform"),r&&jssdk.checkSession({success:function(t){var n=(0,l.Cl)({state:"success"},t);e.callbackSuccess(n)},fail:function(t){e.callbackFailed(t.errNo?t.errNo:0,t.errMsg)}})},e.getSetting=function(n,r){t.IM.info("getSetting called");var i=!1;(0,Bt.un)()&&pn._.largerThanOrEqualTo("1.3.0")||(0,Bt.m0)()?i=!0:n.callbackFailed(ur.ApiNotSupport,"This method is not supported on this platform"),i&&jssdk.getSetting({success:function(r){var i;if(t.IM.info("getSetting res = ".concat(JSON.stringify(r))),r.authSetting.hasOwnProperty("scope.userInfo")){var o=((i={state:"success"})[e.SC_ACCOUNT_KEY_USER_INFO_AUTH]=r.authSetting["scope.userInfo"],i);n.callbackSuccess(o)}else n.callbackFailed(e.SC_ACCOUNT_ERRNO_NORMAL_ERROR,"invalid json")},fail:function(e){n.callbackFailed(e.errNo?e.errNo:0,e.errMsg)}})},e.openSetting=function(n,r){t.IM.info("openSetting called");var i=!1;(0,Bt.un)()&&pn._.largerThanOrEqualTo("1.3.0")||(0,Bt.m0)()?i=!0:n.callbackFailed(ur.ApiNotSupport,"This method is not supported on this platform"),i&&jssdk.openSetting({success:function(t){var r;if(t.authSetting.hasOwnProperty("scope.userInfo")){var i=((r={state:"success"})[e.SC_ACCOUNT_KEY_USER_INFO_AUTH]=t.authSetting["scope.userInfo"],r);n.callbackSuccess(i)}else n.callbackFailed(e.SC_ACCOUNT_ERRNO_NORMAL_ERROR,"invalid json")},fail:function(e){n.callbackFailed(e.errNo?e.errNo:0,e.errMsg)}})},e.getAuthSetting=function(e,n){t.IM.info("getAuthSetting called");var r=!1;(0,Bt.un)()&&pn._.largerThanOrEqualTo("1.3.0")||(0,Bt.m0)()?r=!0:e.callbackFailed(ur.ApiNotSupport,"This method is not supported on this platform"),r&&jssdk.getSetting({success:function(n){t.IM.info("getAuthSetting res = ".concat(JSON.stringify(n))),e.callbackSuccess(n)},fail:function(t){e.callbackFailed(t.errNo?t.errNo:0,t.errMsg)}})},e.openAuthSetting=function(e,n){t.IM.info("openAuthSetting called");var r=!1;(0,Bt.un)()&&pn._.largerThanOrEqualTo("1.3.0")||(0,Bt.m0)()?r=!0:e.callbackFailed(ur.ApiNotSupport,"This method is not supported on this platform"),r&&jssdk.openSetting({success:function(t){var n=(0,l.Cl)({state:"success"},t.authSetting);e.callbackSuccess(n)},fail:function(t){e.callbackFailed(t.errNo?t.errNo:0,t.errMsg)}})},e.SC_ACCOUNT_ERRNO_NORMAL_ERROR=-1,e.SC_ACCOUNT_KEY_AVATAR_URL="avatarUrl",e.SC_ACCOUNT_KEY_NICK_NAME="nickName",e.SC_ACCOUNT_KEY_GENDER="gender",e.SC_ACCOUNT_KEY_CITY="city",e.SC_ACCOUNT_KEY_PROVINCE="province",e.SC_ACCOUNT_KEY_COUNTRY="country",e.SC_ACCOUNT_KEY_LANGUAGE="language",e.SC_ACCOUNT_KEY_USER_INFO_AUTH="userInfoauth",e}();function hr(e,t){fr.login(e,t)}function pr(e,t){fr.getUserInfo(e,t)}function mr(e,t){fr.getUserInfo(e,t)}function _r(e,t){fr.checkSession(e,t)}function yr(e,t){fr.getSetting(e,t)}function gr(e,t){fr.openSetting(e,t)}function vr(e,t){fr.getAuthSetting(e,t)}function br(e,t){fr.openAuthSetting(e,t)}function Er(e,n){"function"==typeof(null===jssdk||void 0===jssdk?void 0:jssdk.showLoading)?jssdk.showLoading({title:n.title,success:function(t){e.callbackSuccess(t)},fail:function(t){var n;e.callbackFailed(null!==(n=t.errNo)&&void 0!==n?n:0,t.errMsg)}}):(t.IM.warn("showLoding not found in jssdk"),e.callbackFailed(jt.A.CODE_API_NOT_EXIST,"api [showLoding] not supported.","F"))}function Sr(e){"function"==typeof(null===jssdk||void 0===jssdk?void 0:jssdk.hideLoading)?jssdk.hideLoading({success:function(t){e.callbackSuccess(t)},fail:function(t){var n;e.callbackFailed(null!==(n=t.errNo)&&void 0!==n?n:0,t.errMsg)}}):(t.IM.warn("hideLoding not found in jssdk"),e.callbackFailed(jt.A.CODE_API_NOT_EXIST,"api [hideLoding] not supported.","F"))}var Ar=__webpack_require__(8223);function Cr(e){return Ar.o.getConfigCenterValue(e)}function wr(){return(0,e.Lr)()?e.B8.androidNative.userDataDir:Ar.o.getUserDataDir()}function Tr(){return Ar.o.isInStarkContainer()}function Rr(e){return Ar.o.starkUnitySdkInit(e)}__webpack_require__(4923);var Or=function(){function e(){}return e.applog=function(e,n){if(pn._.largerThanOrEqualTo("1.4.0")){if("mp_performance_report"==n.event)return void t.IM.info("applog performance is disable");if("function"==typeof jssdk.reportAnalytics)return void(n.params&&n.params.hasOwnProperty("cp_event_key_name")?(jssdk.reportAnalytics(n.params.cp_event_key_name,n.params),e.callbackSuccess({state:"success"})):e.callbackFailed(ur.ApiNotSupport,"event name is not correct"))}e.callbackFailed(ur.ApiNotSupport,"This method is not supported on this platform")},e.applogPerformance=function(e,n){if((0,Bt.qD)()){var r="UnityPlugin do not support eventTracker, 'applogPerformance' is disabled, and should not be called, use 'applog' instead.";return t.xG.error(r,n),void e.callbackFailed(ur.ApiNotSupport,r)}if(pn._.largerThanOrEqualTo("1.4.0")){if("mp_performance_report"==n.event)return void t.IM.info("applogPerformance is disable");(0,He.W)().eventTracker({event:n.event,attributes:n.params,success:function(t){e.callbackSuccess(t)},fail:function(t){var n;e.callbackFailed(null!==(n=t.errNo)&&void 0!==n?n:0,t.errMsg)}})}else e.callbackFailed(ur.ApiNotSupport,"This method is not supported on this platform")},e}();function Ir(e,t){Or.applog(e,t)}function Pr(e,t){Or.applogPerformance(e,t)}var Dr=__webpack_require__(9461),kr=void 0;function Mr(e,t){((null==t?void 0:t.exitDirectly)?(0,Dr.C)():(0,Dr.O)())?e.callbackSuccess({}):e.callbackFailed(ur.ApiNotSupport,"This method is not supported on the current platform")}function Fr(){kr||(kr=function(e){return jt.A.call("OnBeforeExitMiniProgram",null!=e?e:{}),!0},(0,t.xF)("register onBeforeExitMiniProgram"),jssdk.onBeforeExitMiniProgram(kr))}function xr(t){var n=jssdk.getSystemInfoSync();return n.hostName=n.appName||nativeSystemInfo.appName,n.hostVersion=n.version||nativeSystemInfo.version,n.sdkVersion=n.SDKVersion||"",n.scVersion=e.B8.nativeSCVersionString,n}var Lr=!0,Nr=!1;function Br(e){if(Nr){var t=e&&(e.x||0),n=e&&(e.y||0),r=e&&(e.z||0);jt.A.call("onAccelerometerChanged",{x:t,y:n,z:r})}}function Ur(e){if(Nr)return t.IM.warn("accelerometer is already started"),void e.callbackSuccess({});var n=!1;((0,Bt.un)()&&pn._.largerThanOrEqualTo("1.7.0")||(0,Bt.m0)())&&(n=!0),n?(jssdk.startAccelerometer({interval:"game",success:function(){Nr=!0,t.IM.debug("accelerometer is started"),e.callbackSuccess({})},fail:function(n){t.IM.error("unable to start accelerometer",JSON.stringify(n)),e.callbackFailed(-1,JSON.stringify(n))}}),Lr&&(Lr=!1,jssdk.offAccelerometerChange(Br),jssdk.onAccelerometerChange(Br))):e.callbackFailed(ur.ApiNotSupport,"startAccelerometer not supported on this platform")}function jr(e){var n=!1;((0,Bt.un)()&&pn._.largerThanOrEqualTo("1.7.0")||(0,Bt.m0)())&&(n=!0),n?jssdk.stopAccelerometer({success:function(){Nr=!1,t.IM.debug("accelerometer is stopped"),e.callbackSuccess({})},fail:function(n){Nr=!1,t.IM.error("unable to stop accelerometer",JSON.stringify(n)),e.callbackFailed(-1,JSON.stringify(n))}}):e.callbackFailed(ur.ApiNotSupport,"stopAccelerometer not supported on this platform")}var Vr=!0;function Hr(e){"function"==typeof(null===jssdk||void 0===jssdk?void 0:jssdk.startCompass)?(jssdk.startCompass({success:function(){t.IM.debug("compass is started"),e.callbackSuccess({})},fail:function(n){t.IM.error("unable to start compass",JSON.stringify(n)),e.callbackFailed(-1,JSON.stringify(n))}}),Vr&&(Vr=!1,jssdk.onCompassChange(function(e){var t=e&&(e.direction||0);jt.A.call("onCompassChanged",{direction:t})}))):(t.IM.warn("compass not found in jssdk"),e.callbackFailed(jt.A.CODE_API_NOT_EXIST,"api [compass] not supported.","F"))}function Wr(e){"function"==typeof(null===jssdk||void 0===jssdk?void 0:jssdk.stopCompass)?jssdk.stopCompass({success:function(){t.IM.debug("compass is stopped"),e.callbackSuccess({})},fail:function(n){t.IM.error("unable to stop compass",JSON.stringify(n)),e.callbackFailed(-1,JSON.stringify(n))}}):(t.IM.warn("compass not found in jssdk"),e.callbackFailed(jt.A.CODE_API_NOT_EXIST,"api [compass] not supported.","F"))}function qr(e){return!("object"!=typeof e||!e.func)&&(0,cr.lZ)(e.func)}var Gr=__webpack_require__(7792);function Kr(){(0,rr.X)()&&t.IM.info("syncFileSystem..."),Un.Ay.syncfs(!1,null)}function Jr(e){var n=(0,Gr.EJ)(),r=Gt.A.resolveSandboxPath(n);t.IM.info("cleanAllFileCache",r);try{if(!Xt.fs.accessSync(r))return void e.callbackSuccess({});null===jssdk||void 0===jssdk||jssdk.getFileSystemManager().rmdir({dirPath:r,recursive:!0,success:function(t){Xt.fs.mkdirSync(r),e.callbackSuccess(t)},fail:function(t){e.callbackFailed(t.errNo,t.errMsg)}})}catch(n){t.IM.error("rmdir fail",n),e.callbackFailed(-1,n.toString())}}function Xr(e,n){if(!(0,cr.lZ)("addShortcut"))return t.IM.warn("addShortcut not supported in this app"),void e.callbackFailed(ur.ApiNotSupport,"host not support");t.IM.info("addShortcut called"),jssdk.addShortcut({success:function(n){t.IM.info("addShortcut success"),e.callbackSuccess({})},fail:function(n){var r=JSON.stringify(n);t.IM.warn("addShortcut failed: ".concat(r)),e.callbackFailed(-1,r)}})}function zr(e,t){jssdk.getShortcutMissionReward({success:function(t){e.callbackSuccess(t)},fail:function(t){var n;e.callbackFailed(null!==(n=t.errNo)&&void 0!==n?n:0,t.errMsg)}})}var Yr=0;function Zr(e,n){var r,i,o,a,s;if((0,Bt.un)()&&pn._.lessThan("1.3.0"))e.callbackFailed(ur.ApiNotSupport,"This method is not supported on this platform");else{if(n&&"object"==typeof n.requestOption&&(n=n.requestOption),(0,t.xF)("request called, param: ".concat(JSON.stringify(n),", headers: ").concat(JSON.stringify(n.header))),n&&n.url){var u=qe(n.url),c=jssdk.request;u&&n.withCommonParams&&((0,Bt.un)()&&pn._.largerThanOrEqualTo("1.10.0")||(0,Bt.m0)()?c=(0,He.W)().innerRequest:n.withCommonParams=!1);var l=n.method||"GET";return l=l.toUpperCase(),c({data:null!==(r=n.data)&&void 0!==r?r:"",url:n.url,method:l,header:null!==(i=n.header)&&void 0!==i?i:{},dataType:null!==(o=n.dataType)&&void 0!==o?o:"other",usePrefetchCache:null!==(a=n.usePrefetchCache)&&void 0!==a&&a,withCommonParams:null!==(s=n.withCommonParams)&&void 0!==s&&s,responseType:"arraybuffer"===n.responseType?"arraybuffer":"text",success:function(r){var i;(0,t.xF)("request ".concat(n.url," succeed, header: ").concat(JSON.stringify(r.header)," status: ").concat(r.statusCode)),e.callbackSuccess({state:"success",data:r.data,header:r.header||{},statusCode:r.statusCode||200,isPrefetch:null!==(i=n.usePrefetchCache)&&void 0!==i&&i,prefetchDetail:0,errMsg:"ok"})},fail:function(r){(0,t.xF)("request ".concat(n.url," failed,res.header: ").concat(r.header,", error: ").concat(JSON.stringify(r))),e.callbackFailed(-2,JSON.stringify(r))}}),String(Yr+=1)}e.callbackFailed(-1,"invalid param")}}function Qr(e){var n,r="";try{n=(0,He.W)().getAppInfoSync({needSession:null==e?void 0:e.needSession})}catch(e){n=void 0,t.IM.warn("getAppInfoSync:",e),r=String(e)}var i={data:n};return n?(i.result="success",i.errCode=0,i.errMsg=""):(i.result="error",i.errCode=-1,i.errMsg=r),JSON.stringify(i)}var $r=new(function(){function e(){var e=this;this.joinRoom=function(t){return new Promise(function(n,r){if(!e.engine)return r("engine not initialized");e.engine.joinChannel({channelId:t.roomId,uid:t.uid,accessToken:t.token,success:function(e){n()},fail:function(e){r(JSON.stringify(e))}})})},this.leaveRoom=function(){return new Promise(function(t,n){if(!e.engine)return n("engine not initialized");e.engine.leaveChannel({success:function(e){t()},fail:function(e){n(JSON.stringify(e))}})})},this.muteLocalAudioStream=function(t){return new Promise(function(n,r){if(!e.engine)return r("engine not initialized");t.enable?e.engine.muteLocalAudioStream({success:function(e){n()},fail:function(e){r(JSON.stringify(e))}}):e.engine.unmuteLocalAudioStream({success:function(e){n()},fail:function(e){r(JSON.stringify(e))}})})},this.muteRemoteAudioStream=function(t){return new Promise(function(n,r){if(!e.engine)return r("engine not initialized");t.enable?e.engine.muteRemoteAudioStream({uid:t.uid,success:function(e){n()},fail:function(e){r(JSON.stringify(e))}}):e.engine.unmuteRemoteAudioStream({uid:t.uid,success:function(e){n()},fail:function(e){r(JSON.stringify(e))}})})},this.muteAllRemoteAudioStream=function(t){return new Promise(function(n,r){if(!e.engine)return r("engine not initialized");t.enable?e.engine.muteAllRemoteAudioStream({success:function(e){n()},fail:function(e){r(JSON.stringify(e))}}):e.engine.unmuteAllRemoteAudioStream({success:function(e){n()},fail:function(e){r(JSON.stringify(e))}})})},this.adjustPlaybackSignalVolume=function(t){return new Promise(function(n,r){if(!e.engine)return r("engine not initialized");e.engine.adjustPlaybackSignalVolume({volume:t.volume,success:function(e){n()},fail:function(e){r(JSON.stringify(e))}})})},this.adjustRecordingSignalVolume=function(t){return new Promise(function(n,r){if(!e.engine)return r("engine not initialized");e.engine.adjustRecordingSignalVolume({volume:t.volume,success:function(e){n()},fail:function(e){r(JSON.stringify(e))}})})},this.enableAudioVolumeIndication=function(t){return new Promise(function(n,r){if(!e.engine)return r("engine not initialized");e.engine.enableAudioVolumeIndication({interval:t.volume,success:function(e){n()},fail:function(e){r(JSON.stringify(e))}})})},this.destroy=function(){return new Promise(function(t,n){if(!e.engine)return n("engine not initialized");e.engine.destroy({success:function(n){e.engine=null,t()},fail:function(t){e.engine=null,n(JSON.stringify(t))}})})},this.onWarning=function(t){e.onRtcEngineStateChange("warning",t)},this.onError=function(t){e.onRtcEngineStateChange("error",t)}}return e.prototype.createRtcEngine=function(e){if(this.engine)return ur.Success;if(!(0,cr.lZ)("getRtcEngine"))return t.IM.warn("[RTC] createRtcEngine not support on the current platform"),ur.ApiNotSupport;(0,t.xF)("[RTC] createRtcEngine: ".concat(JSON.stringify(e)));try{return this.engine=jssdk.getRtcEngine(null==e?void 0:e.appId),this.setupCallbacks(),t.IM.info("[RTC] createRtcEngine succeed"),ur.Success}catch(e){return this.engine=void 0,t.IM.error("[RTC] createRtcEngine failed: ".concat(e)),ur.CreateRtcEngineError}},e.prototype.operateRtcEngine=function(e,n){if(!(0,cr.lZ)("getRtcEngine"))return t.IM.warn("[RTC] operateRtcEngine not support on the current platform"),e.callbackFailed(ur.ApiNotSupport,lr);if(!n||"string"!=typeof n.type)return e.callbackFailed(ur.InvalidParam,dr);if("function"!=typeof this[n.type])return e.callbackFailed(ur.InvalidParam,"invalid type: ".concat(n.type));try{this[n.type](n.dataParams).then(function(){e.callbackSuccess({})}).catch(function(r){t.IM.error("[RTC] ".concat(n.type," failed: ").concat(r)),e.callbackFailed(ur.ApiCallError,String(r))})}catch(t){e.callbackFailed(ur.ApiCallError,String(t))}},e.prototype.setupCallbacks=function(){this.engine.onJoinChannelSuccess(this.onJoinChannelSuccess.bind(this)),this.engine.onRejoinChannelSuccess(this.onRejoinChannelSuccess.bind(this)),this.engine.onNetworkQuality(this.onNetworkQuality.bind(this)),this.engine.onUserJoined(this.onUserJoined.bind(this)),this.engine.onUserOffline(this.onUserOffline.bind(this)),this.engine.onConnectionInterrupted(this.onConnectionInterrupted.bind(this)),this.engine.onConnectionLost(this.onConnectionLost.bind(this)),this.engine.onFirstLocalAudioFrame(this.onFirstLocalAudioFrame.bind(this)),this.engine.onFirstRemoteAudioFrame(this.onFirstRemoteAudioFrame.bind(this)),this.engine.onUserMuteAudio(this.onUserMuteAudio.bind(this)),this.engine.onUserEnableLocalAudio(this.onUserEnableLocalAudio.bind(this)),this.engine.onAudioVolumeIndication(this.onAudioVolumeIndication.bind(this)),this.engine.onError(this.onWarning.bind(this)),this.engine.onError(this.onError.bind(this))},e.prototype.setEnableLocalAudio=function(e){var t=this;return new Promise(function(n,r){return t.engine?"object"!=typeof e?r("invalid param"):void(e.enable?t.engine.enableLocalAudio({success:function(e){n()},fail:function(e){r(JSON.stringify(e))}}):t.engine.disableLocalAudio({success:function(e){n()},fail:function(e){r(JSON.stringify(e))}})):r("engine not initialized")})},e.prototype.onJoinChannelSuccess=function(e){this.onRtcEngineStateChange("joinChannelSuccess",e)},e.prototype.onRejoinChannelSuccess=function(e){this.onRtcEngineStateChange("rejoinChannelSuccess",e)},e.prototype.onNetworkQuality=function(e){this.onRtcEngineStateChange("networkQuality",e)},e.prototype.onUserJoined=function(e){this.onRtcEngineStateChange("userJoined",e)},e.prototype.onUserOffline=function(e){e.reason=String(e.reason),this.onRtcEngineStateChange("userOffline",e)},e.prototype.onConnectionInterrupted=function(){this.onRtcEngineStateChange("connectionInterrupted")},e.prototype.onConnectionLost=function(){this.onRtcEngineStateChange("connectionLost")},e.prototype.onFirstLocalAudioFrame=function(){this.onRtcEngineStateChange("firstLocalAudioFrame")},e.prototype.onFirstRemoteAudioFrame=function(){this.onRtcEngineStateChange("firstRemoteAudioFrame")},e.prototype.onUserMuteAudio=function(e){this.onRtcEngineStateChange("userMuteAudio",e)},e.prototype.onUserEnableLocalAudio=function(e){this.onRtcEngineStateChange("userEnableLocalAudio",e)},e.prototype.onAudioVolumeIndication=function(e){this.onRtcEngineStateChange("audioVolumeIndication",e)},e.prototype.onRtcEngineStateChange=function(e,t){void 0===t&&(t={}),jt.A.call("OnRtcEngineStateChange",{event:e,params:t})},e}());function ei(e){try{var t=(0,He.W)().getAppbrandSettingsSync({fields:null==e?void 0:e.fields,priority:null==e?void 0:e.priority});return JSON.stringify({result:"success",data:t})}catch(e){return JSON.stringify({result:"error",errCode:ur.ApiCallError,errMsg:String(e)})}}function ti(e,t){t&&t.scope?jssdk.authorize({scope:null==t?void 0:t.scope,success:function(t){e.callbackSuccess(t.code)},fail:function(t){e.callbackFailed(ur.ApiCallError,JSON.stringify(t))}}):e.callbackFailed(ur.InvalidParam,"invalid param: scope")}function ni(e,n){"object"==typeof n&&"object"==typeof n.params&&"string"==typeof n.params.schema?jssdk.openSchema({schema:n.params.schema,success:function(n){t.IM.info("openSchema call success: ".concat(JSON.stringify(n))),e.callbackSuccess({})},fail:function(n){t.IM.error("openSchema failed: ".concat(JSON.stringify(n))),e.callbackFailed(ur.ApiCallError,JSON.stringify(n))}}):e.callbackFailed(ur.InvalidParam,dr)}function ri(e,t){"string"==typeof t.method?jssdk.callHostMethod({method:t.method,extra:t.params,success:function(t){!t.data&&t.failed?e.callbackFailed(ur.ApiCallError,t.failed):e.callbackSuccess(t.data||{})},fail:function(t){e.callbackFailed(ur.ApiCallError,JSON.stringify(t))}}):e.callbackFailed(ur.InvalidParam,dr)}function ii(e){var t,n=null!==(t=e.data)&&void 0!==t?t:e.state;"object"==typeof n&&(n=JSON.stringify(n)),jt.A.call("OnInviteStateChange",{state:e.state,msg:n}),"close"==e.state&&jssdk.offInviteStateChange(ii)}function oi(e,n){t.IM.info("createInvitePanel -",JSON.stringify(n)),(0,cr.lZ)("createInvitePanel")?n&&n.roomId?(jssdk.offInviteStateChange(ii),jssdk.onInviteStateChange(ii),jssdk.createInvitePanel({roomId:n.roomId,query:n.query,extra:n.extra,fail:function(n){t.IM.error("call createInvitePanel failed:",JSON.stringify(n)),e.callbackFailed(ur.ApiCallError,JSON.stringify(n))},success:function(n){t.IM.info("call createInvitePanel succeed:",JSON.stringify(n)),e.callbackSuccess({})}})):e.callbackFailed(ur.InvalidParam,dr):e.callbackFailed(ur.ApiNotSupport,lr)}function ai(e,n){(0,cr.lZ)("createInnerAudioContext")?((0,t.xF)("createInnerAudioContext: ".concat(JSON.stringify(n))),n.needDownload&&n.src&&n.src.startsWith("http")&&(n.cachePath=(0,Gr.sC)(n.src)),gn().create(n).then(function(t){e.callbackSuccess({id:t})}).catch(function(t){e.callbackFailed(ur.ApiCallError,t)})):e.callbackFailed(ur.ApiNotSupport,lr)}function si(e,n){(0,cr.lZ)("createInnerAudioContext")?((0,t.xF)("operateInnerAudioContext: ".concat(JSON.stringify(n))),gn().operate(n.id,n.type,n.value).then(function(t){e.callbackSuccess({id:t})}).catch(function(t){e.callbackFailed(ur.ApiCallError,t)})):e.callbackFailed(ur.ApiNotSupport,lr)}function ui(e,n){(0,cr.lZ)("createInnerAudioContext")?((0,t.xF)("readInnerAudioContextProperty: ".concat(JSON.stringify(n))),gn().readProperty(n.id,n.property).then(function(t){e.callbackSuccess(t)}).catch(function(t){e.callbackFailed(ur.ApiCallError,t)})):e.callbackFailed(ur.ApiNotSupport,lr)}var ci=new Set;function li(e,n){if(!n||!n.event)return t.IM.warn("addHostEventListener - invalid param"),void e.callbackFailed(ur.InvalidParam,dr);ci.has(n.event)?e.callbackSuccess({}):(ci.add(n.event),"function"==typeof(0,He.W)().addHostEventListener?((0,He.W)().addHostEventListener(n.event,function(e){jt.A.call("OnHostEventCallback",{result:e,event:n.event})}),e.callbackSuccess({})):"function"==typeof tt.addHostEventListener?(tt.addHostEventListener(n.event,function(e){jt.A.call("OnHostEventCallback",{result:e,event:n.event})}),e.callbackSuccess({})):(e.callbackFailed(jt.A.CODE_API_NOT_EXIST,"api [addHostEventListener] not supported.","F"),t.IM.error("addHostEventListener - not support")))}function di(){return(0,e.Lr)()?(0,He.W)().getAppInfoSync({}).mpVersion:e.B8.gameVersion}function fi(e,t){jssdk.startDeviceMotionListening({interval:t.interval,success:function(t){e.callbackSuccess(t)},fail:function(t){e.callbackFailed(t.errNo,t.errMsg)}}),jssdk.onDeviceMotionChange(function(e){jt.A.call("onDeviceMotionChange",e)})}function hi(e){jssdk.stopDeviceMotionListening({success:function(t){e.callbackSuccess(t)},fail:function(t){e.callbackFailed(t.errNo,t.errMsg)}}),jssdk.offDeviceMotionChange()}var pi=new Map;function mi(e){if(!pi.has(e)){var t=jssdk.createCloud({envID:e});pi.set(e,t)}return pi.get(e)}function _i(e,t){mi(t.eveId).callContainer({path:t.path,init:{method:t.requestOption.method,header:t.requestOption.header,body:t.requestOption.data,cloudIds:t.requestOption.cloudIds},serviceID:t.serviceId,success:function(t){e.callbackSuccess((0,l.Cl)({state:"success"},t))},fail:function(t){var n=t.errMsg,r=t.errNo;e.callbackFailed(r,n)}})}function yi(t,n){mi(n.eveId).getTempFileURL({cloudPaths:n.cloudPaths,maxAge:n.maxAge,success:function(n){(0,e.GZ)()?t.callbackSuccess({state:"success",data:{data:(0,l.Cl)({},n)}}):t.callbackSuccess((0,l.Cl)({state:"success"},n))},fail:function(e){var n=e.errNo,r=e.errMsg;t.callbackFailed(n,r)}})}function gi(t,n){mi(n.eveId).deleteFile({cloudPaths:n.cloudPaths,success:function(n){(0,e.GZ)()?t.callbackSuccess({state:"success",data:{data:(0,l.Cl)({},n)}}):t.callbackSuccess((0,l.Cl)({state:"success"},n))},fail:function(e){var n=e.errNo,r=e.errMsg;t.callbackFailed(n,r)}})}function vi(e,t){var n=mi(t.eveId),r=Ei(t.filePath);n.uploadFile({cloudPath:t.cloudPath,filePath:r,success:function(t){e.callbackSuccess((0,l.Cl)({state:"success"},t))},fail:function(t){var n=t.errNo,r=t.errMsg;e.callbackFailed(n,r)}})}function bi(e,t){var n=mi(t.eveId),r=Ei(t.filePath);n.downloadFile({cloudPath:t.cloudPath,filePath:r,success:function(t){e.callbackSuccess((0,l.Cl)({state:"success"},t))},fail:function(t){var n=t.errNo,r=t.errMsg;e.callbackFailed(n,r)}})}function Ei(e){return e.startsWith(an.e.USER_DATA_PATH)||(e.startsWith(Gt.A.getPersistentDataPath())?e=e.replace(Gt.A.getPersistentDataPath(),an.e.USER_DATA_PATH):(e.startsWith("/")&&(e=e.substring(1)),e="".concat(an.e.USER_DATA_PATH,"/").concat(e))),e}function Si(e,n){jssdk.navigateToScene((0,l.Cl)((0,l.Cl)({},n),{success:function(n){t.IM.info("navigateToScene success: ".concat(JSON.stringify(n))),e.callbackSuccess(n)},fail:function(n){t.IM.error("navigateToScene failed: ".concat(JSON.stringify(n))),e.callbackFailed(n.errNo,n.errMsg)}}))}function Ai(e,n){jssdk.checkScene({scene:n.scene,success:function(n){t.IM.info("checkScene success: ".concat(JSON.stringify(n))),e.callbackSuccess(n)},fail:function(n){t.IM.error("checkScene failed: ".concat(JSON.stringify(n))),e.callbackFailed(n.errNo,n.errMsg)}})}function Ci(){try{var e=jssdk.getMenuButtonLayout();return JSON.stringify({result:"success",data:e})}catch(e){return JSON.stringify({result:"error",errCode:ur.ApiCallError,errMsg:String(e)})}}function wi(){try{return jssdk.restartMiniProgramSync(),JSON.stringify({result:"success"})}catch(e){return JSON.stringify({result:"error",errCode:ur.ApiCallError,errMsg:String(e)})}}var Ti=__webpack_require__(6292),Ri=[],Oi=Object.create(null);function Ii(e){var n=Oi[e];if(void 0!==n){delete Oi[e];var r=Ri.indexOf(n);~r?Ri.splice(r,1):t.IM.warn("delete touch identifier not existed in array: "+e)}else t.IM.warn("delete touch identifier not existed in map: "+e)}var Pi=!1;function Di(e){Pi||(Pi=!0,Ti.w.onTouchStart(Li),Ti.w.onTouchMove(Ni),Ti.w.onTouchEnd(Bi),Ti.w.onTouchCancel(Ui),t.IM.info("start listening touchable TouchEvent"))}function ki(e){Pi&&(Pi=!1,Ti.w.offTouchStart(Li),Ti.w.offTouchMove(Ni),Ti.w.offTouchEnd(Bi),Ti.w.offTouchCancel(Ui),t.IM.info("stop listening touchable TouchEvent"))}var Mi=void 0;function Fi(e){var t,n,r=(0,l.Cl)({},e),i=function(){if("number"==typeof jn.qO.devicePixelRatio)return jn.qO.devicePixelRatio;if(void 0===Mi){if(globalThis.devicePixelRatio)Mi=globalThis.devicePixelRatio;else{var e=jssdk.getSystemInfoSync();Mi=null==e?void 0:e.pixelRatio}null!=Mi||(Mi=1)}return Mi}();return r.identifier=(t=r.identifier,"number"==typeof(n=Oi[t])||(0===Ri.length?n=1:(Ri.sort(),n=Ri[Ri.length-1]+1),Ri.push(n),Oi[t]=n),n),r.screenX=r.screenX*i,r.screenY=r.screenY*i,r.clientX=r.clientX*i,r.clientY=r.clientY*i,r.pageX=r.pageX*i,r.pageY=r.pageY*i,r}function xi(e){for(var t={touches:[],changedTouches:[],timeStamp:e.timeStamp},n=0;n<e.touches.length;++n)t.touches[n]=Fi(e.touches[n]);for(n=0;n<e.changedTouches.length;++n)t.changedTouches[n]=Fi(e.changedTouches[n]);return t}function Li(e){jt.A.call("OnTouchStart",xi(e))}function Ni(e){jt.A.call("OnTouchMove",xi(e))}function Bi(e){for(var t=[],n=0;n<e.changedTouches.length;++n)t.push(e.changedTouches[n].identifier);jt.A.call("OnTouchEnd",xi(e));for(n=0;n<t.length;++n)Ii(t[n])}function Ui(e){for(var t=[],n=0;n<e.changedTouches.length;++n)t.push(e.changedTouches[n].identifier);jt.A.call("OnTouchCancel",xi(e));for(n=0;n<t.length;++n)Ii(t[n])}function ji(e,t){null!=t.sceneId?null!=t.costTime?jssdk.reportScene({sceneId:t.sceneId,costTime:t.costTime,dimension:t.dimension,metric:t.metric,success:function(t){e.callbackSuccess(t)},fail:function(t){e.callbackFailed(t.errNo,t.errMsg)}}):e.callbackFailed(ur.InvalidParam,dr+":costTime"):e.callbackFailed(ur.InvalidParam,dr+":sceneId")}function Vi(){return(0,e.Lr)()?e.B8.androidNative.androidSDKVersion:(t.IM.error("[Native] getAndroidSDKVersion is not available on current runtime."),"0.0.0")}function Hi(){return(0,e.Lr)()?e.B8.androidNative.gameVersion:(t.IM.error("[Native] getGameVersion is not available on current runtime."),"0.0.0")}var Wi=__webpack_require__(6331),qi=__webpack_require__(4611);function Gi(e,t){jssdk.setDeviceOrientation?jssdk.setDeviceOrientation({value:t.value,success:function(t){e.callbackSuccess(t)},fail:function(t){e.callbackFailed(t.errNo,t.errMsg)}}):e.callbackFailed(-1,"setDeviceOrientation is not supported")}function Ki(e){"function"==typeof(null===jssdk||void 0===jssdk?void 0:jssdk.checkDownloadGameEnabled)?jssdk.checkDownloadGameEnabled({success:function(t){e.callbackSuccess(t)},fail:function(t){e.callbackFailed(t.errNo,t.errMsg,t.errorType)}}):(t.IM.warn("jssdk.checkDownloadGameEnabled is not available."),e.callbackFailed(-1,"jssdk.checkDownloadGameEnabled is not available","F"))}function Ji(e){"function"==typeof(null===jssdk||void 0===jssdk?void 0:jssdk.downloadGame)?jssdk.downloadGame({success:function(t){e.callbackSuccess(t)},fail:function(t){e.callbackFailed(t.errNo,t.errMsg,t.errorType)}}):(t.IM.warn("jssdk.downloadGame is not available."),e.callbackFailed(-1,"jssdk.downloadGame is not available","F"))}function Xi(){var e;null===(e=null===jssdk||void 0===jssdk?void 0:jssdk.triggerGC)||void 0===e||e.call(jssdk)}function zi(e,t){jssdk.checkBalance({type:t.type,amount:t.amount,success:function(t){e.callbackSuccess(t.data?t.data:t)},fail:function(t){var n=t.errorCode||-1;e.callbackFailed(n,t.errMsg||"checkBalance failed")}})}function Yi(e,t){jssdk.recharge({tier_id:t.tier_id,success:function(){e.callbackSuccess({})},fail:function(t){var n=t.errorCode||-1;e.callbackFailed(n,t.errMsg||"recharge failed")}})}function Zi(e,t){jssdk.pay({trade_order_id:t.trade_order_id,success:function(){e.callbackSuccess({})},fail:function(t){var n=t.errorCode||-1;e.callbackFailed(n,t.errMsg||"pay failed")}})}function Qi(e,t){jssdk.navigateToBalance({type:t.type,success:function(){e.callbackSuccess({})},fail:function(t){var n=t.errorCode||-1;e.callbackFailed(n,t.errMsg||"navigateToBalance failed")}})}function $i(e,t){jssdk.startEntranceMission({success:function(){e.callbackSuccess({})},fail:function(t){var n;e.callbackFailed(null!==(n=t.errorCode)&&void 0!==n?n:-1,t.errMsg)}})}function eo(e,t){jssdk.getEntranceMissionReward({success:function(t){e.callbackSuccess(t)},fail:function(t){var n;e.callbackFailed(null!==(n=t.errorCode)&&void 0!==n?n:-1,t.errMsg)}})}const to=new(function(){function e(){}return e.prototype.shareAppMessage=function(e,n,r,i){jssdk.shareAppMessage((0,l.Cl)((0,l.Cl)({},e),{success:function(e){t.IM.info("share success"),null==n||n.call(null,e)},fail:function(e){var n=e.errNo||-1,o=e.errMsg||"fail";o.indexOf("cancel")>0?(t.IM.warn("share cancelled"),null==r||r.call(null)):(t.IM.warn("share failed, errNo: ".concat(n,", errMsg: ").concat(o)),null==i||i.call(null,n,o))}}))},e}());function no(e,n){if(n){var r=n.query||n.queyr,i={title:n.title,imageUrl:n.imageUrl,subtitle:n.subtitle,templateType:n.templateType,path:n.path};r&&(i.query=r),t.IM.info("shareAppMessage param: "+JSON.stringify(i)),to.shareAppMessage(i,function(t){e.callbackSuccess({state:"success",data:null==t?void 0:t.data}),"function"==typeof n.success&&n.success()},function(){e.callbackSuccess({state:"cancel"})},function(t,r){e.callbackFailed(t,r),"function"==typeof n.fail&&n.fail()})}else e.callbackFailed(-1,"invalid param")}var ro=void 0;const io={show:function(e,n){void 0===n&&(n=void 0);var r=e.adUnitId;ro=n;try{var i=function(e){return jssdk.createRewardedVideoAd({adUnitId:e.adUnitId})}(e);i.onClose(function(e){ro&&ro.onClose(e.isEnded)}),i.onError(function(e){ro&&ro.onError(e.errCode,e.errMsg)}),i.show().then(function(){t.IM.info("video ad show success")}).catch(function(e){ro&&ro.onError(e.errorCode||-102,e.errMsg)})}catch(e){t.IM.error("load ad exception: ".concat(e,", adUnitId: ").concat(r)),ro&&ro.onError(e.errorCode||-102,e.errMsg)}}};function oo(e,n){if("object"!=typeof n||!n.adUnitId)return t.IM.error("showExcitingVideoAd invalid param, type: "+typeof n),void e.callbackFailed(-1,"invalid param");io.show(n,{onClose:function(n){t.IM.info("video ad close, isEnded: ".concat(n)),e.callbackSuccess({is_ended:n})},onError:function(n,r){t.IM.error("show video ad error, errCode: ".concat(n,", errMsg: ").concat(r)),e.callbackFailed(n,r)}})}function ao(e,n){if("object"!=typeof n||!n.adUnitId)return t.IM.error("createInterstitialAd - invalid param, type:",typeof n),void e.callbackFailed(-1,"invalid param");try{var r=tt.createInterstitialAd({adUnitId:n.adUnitId});r.onError(function(n){var r=n||{errorMsg:"",errorCode:-1};t.IM.error("InterstitialAd error, errCode:",r.errorCode,"errMsg:",r.errorMsg),e.callbackFailed(r.errorCode||-1,r.errorMsg||"unknown error")}),r.onClose(function(){t.IM.info("InterstitialAd close, adUnitId:",n.adUnitId),e.callbackSuccess({})}),r.show().then(function(){t.IM.info("InterstitialAd show success, adUnitId:",n.adUnitId)}).catch(function(r){t.IM.error("InterstitialAd show failed, adUnitId:",n.adUnitId,r),e.callbackFailed(r.errorCode||-1,r.errorMsg)})}catch(r){t.IM.error("InterstitialAd create exception, adUnitId:",n.adUnitId,r),e.callbackFailed(r.errorCode||-1,r.errorMsg)}}function so(e,n){if("object"!=typeof n||!n.eventName)return t.IM.error("reportEvent - invalid param, type: "+typeof n),void e.callbackFailed(-1,"invalid param");try{tt.reportEvent({eventName:n.eventName,params:n.params||{},success:function(){e.callbackSuccess({})},fail:function(r){t.IM.error("reportEvent fail, eventName: ".concat(n.eventName),r);var i=(null==r?void 0:r.errorCode)||-1;e.callbackFailed(i,(null==r?void 0:r.errMsg)||"reportEvent failed")}})}catch(r){t.IM.error("reportEvent exception, eventName: ".concat(n.eventName),r),e.callbackFailed(-1,(null==r?void 0:r.message)||"reportEvent exception")}}function uo(e,n){(0,cr.lZ)("showKeyboard")?(n||(n={}),n.defaultValue||(n.defaultValue=""),n.confirmType||(n.confirmType="done"),n.maxLength||(n.maxLength=100),function(){if(!(0,cr.lZ)("showKeyboard")||fo)return;jssdk.onKeyboardInput(po),jssdk.onKeyboardConfirm(mo),jssdk.onKeyboardComplete(_o),fo=!0}(),t.IM.info("showKeyboard: ".concat(JSON.stringify(n))),jssdk.showKeyboard({defaultValue:n.defaultValue,maxLength:n.maxLength,multiple:!!n.multiple,confirmHold:!!n.confirmHold,confirmType:n.confirmType,success:function(t){e.callbackSuccess({})},fail:function(n){t.IM.error("showKeyboard fail: ".concat(JSON.stringify(n))),e.callbackFailed(ur.ApiCallError,"".concat(JSON.stringify(n)))}})):e.callbackFailed(ur.ApiNotSupport,lr)}function co(e){(0,cr.lZ)("hideKeyboard")?(ho(),jssdk.hideKeyboard({success:function(t){e.callbackSuccess({})},fail:function(n){t.IM.info("hideKeyboard fail: ".concat(JSON.stringify(n))),e.callbackFailed(ur.ApiCallError,"".concat(JSON.stringify(n)))}})):e.callbackFailed(ur.ApiNotSupport,lr)}function lo(e,n){(0,cr.lZ)("showKeyboard")?t.IM.info("updateKeyboard: ".concat(JSON.stringify(n))):e.callbackFailed(ur.ApiNotSupport,lr)}var fo=!1;function ho(){fo&&((0,t.xF)("unregisterKeyboardEvents"),jssdk.offKeyboardInput(po),jssdk.offKeyboardConfirm(mo),jssdk.offKeyboardComplete(_o),fo=!1)}function po(e){jt.A.call("OnKeyboardInput",{value:e.value||""})}function mo(e){jt.A.call("OnKeyboardConfirm",{value:e.value||""})}function _o(e){jt.A.call("OnKeyboardComplete",{value:e.value||""}),ho()}function yo(e){if(t.IM.info("vibrateShort called"),"function"!=typeof jssdk.vibrateShort)return t.IM.warn("vibrateShort is not supported in current client version"),void e.callbackFailed(-1,"vibrate is not supported in current client version, at least >= 43.8");var n={success:function(n){t.IM.info("vibrateShort: "+JSON.stringify(n)),e.callbackSuccess({})},fail:function(n){t.IM.warn("vibrateShort failed: ".concat(n)),e.callbackFailed(n.errNo,n.errMsg)}};jssdk.vibrateShort(n)}function go(e){if(t.IM.info("vibrateLong called"),"function"!=typeof jssdk.vibrateLong)return t.IM.warn("vibrateLong is not supported in current client version"),void e.callbackFailed(-1,"vibrate is not supported in current client version, at least >= 43.8");var n={success:function(n){t.IM.info("vibrateLong: "+JSON.stringify(n)),e.callbackSuccess({})},fail:function(n){t.IM.warn("vibrateLong failed: ".concat(n)),e.callbackFailed(n.errNo,n.errMsg)}};jssdk.vibrateLong(n)}var vo=__webpack_require__(4462),bo=__webpack_require__(1887);var Eo=__webpack_require__(6359),So=t.Vy.getLogger("Watermask"),Ao=(0,Eo.N)(function(){return Gt.A.join(an.e.USER_DATA_PATH,"env_platform_info.txt")});function Co(){So.info("requestPlatformToken begin");var e="https://starkgame.zijieapi.com/webcast/vengine/token";(0,He.W)().innerRequest({url:e,method:"POST",header:{},success:function(e){var t=Ao(),n=JSON.stringify(e.data);So.info("requestPlatformToken success metaPath = ".concat(t,", resData = ").concat(n)),Xt.fs.writeFileSync(t,n,"utf-8")},fail:function(t){So.error("requestPlatformToken failed ".concat(e,", error: ").concat(JSON.stringify(t)))}})}var wo=function(){var e,t=Ao();if(So.debug("getHostEnvironmentInfoSync metaPath",t),!Xt.fs.accessSync(t))return So.debug("getHostEnvironmentInfoSync not find",t),Co(),"";try{var n,r=Xt.fs.readFileSync(t,"utf-8");if(So.debug("getHostEnvironmentInfoSync read data = ".concat(r," from metaPath")),"string"==typeof r){n=r;var i=JSON.parse(n).token;So.debug("getHostEnvironmentInfoSync readData = ".concat(r," platformToken = ").concat(n));var o=null!==(e=i.exp)&&void 0!==e?e:-1,a=Date.now()/1e3;return So.debug("getHostEnvironmentInfoSync expireTime = ".concat(o," nowTime = ").concat(a)),a>o?(So.debug("getHostEnvironmentInfoSync nowTime > expireTime"),Co(),""):(So.debug("getHostEnvironmentInfoSync success platformToken = ".concat(n)),n)}return Co(),So.debug("getHostEnvironmentInfoSync readData not string"),""}catch(e){return So.error("getHostEnvironmentInfoSync exception: ".concat(e)),""}};var To=!1;function Ro(){(0,t.Ko)(),(0,an.V)(),(0,cr.sH)("showToast",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("hideToast",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("showLoading",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("hideLoading",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("showModal",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("showActionSheet",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("recorderManagerStart",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("recorderManagerStop",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("recorderManagerPause",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("recorderManagerResume",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("startCompass",[{minSCVersion:"1.2.0",platform:cr.Lj},{minSCVersion:"1.2.0",platform:cr.hF}]),(0,cr.sH)("stopCompass",[{minSCVersion:"1.2.0",platform:cr.Lj},{minSCVersion:"1.2.0",platform:cr.hF}]),(0,cr.sH)("getLocation",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("scanCode",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("triggerGC",[{minSCVersion:"1.15.0",platform:cr.Lj},{minSCVersion:"1.15.0",platform:cr.hF}]),(0,cr.sH)("ShowExcitingVideoAd",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("getUCConfigCenterValueByKey",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("isInStarkContainer",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("StarkUnitySdkInit",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("getUserdataDir",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("getSystemInfoSync",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("StartRecord",[{minSCVersion:"1.2.0",platform:cr.Lj},{minSCVersion:"1.3.0",platform:cr.hF}]),(0,cr.sH)("applogReport",[{minSCVersion:"1.4.0",platform:cr.Lj},{minSCVersion:"1.4.0",platform:cr.hF}]),(0,cr.sH)("applogReportPerformance",[{minSCVersion:"1.4.0",platform:cr.Lj},{minSCVersion:"1.4.0",platform:cr.hF}]),(0,cr.sH)("StopRecord",[{minSCVersion:"1.2.0",platform:cr.Lj},{minSCVersion:"1.3.0",platform:cr.hF}]),(0,cr.sH)("ShareVideo",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.3.0",platform:cr.hF}]),(0,cr.sH)("ucShare",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.8.0",platform:cr.hF}]),(0,cr.sH)("starkLogin",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.3.0",platform:cr.hF}]),(0,cr.sH)("starkCheckSession",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.3.0",platform:cr.hF}]),(0,cr.sH)("getUcUserInfo",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.3.0",platform:cr.hF}]),(0,cr.sH)("getUcUserInfoWithCredentials",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.3.0",platform:cr.hF}]),(0,cr.sH)("FollowAwemeUserProfile",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.4.0",platform:cr.hF}]),(0,cr.sH)("isFollowDouyin",[{minSCVersion:"1.2.0",platform:cr.Lj},{minSCVersion:"1.4.0",platform:cr.hF}]),(0,cr.sH)("hasBoundDouyin",[{minSCVersion:"1.2.0",platform:cr.Lj},{minSCVersion:"1.4.0",platform:cr.hF}]),(0,cr.sH)("exitApp",[{minSCVersion:"1.3.0",platform:cr.Lj},{minSCVersion:"1.7.0",platform:cr.hF}]),(0,cr.sH)("startAccelerometer",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.7.0",platform:cr.hF}]),(0,cr.sH)("stopAccelerometer",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.7.0",platform:cr.hF}]),(0,cr.sH)("openSetting",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.3.0",platform:cr.hF}]),(0,cr.sH)("getUserInfoAuth",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.3.0",platform:cr.hF}]),(0,cr.sH)("addShortcut",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.7.0",platform:cr.hF}]),(0,cr.sH)("checkShortcut",[{minSCVersion:"1.0.0",platform:cr.Lj},{minTMGVersion:" 3.64.0",platform:cr.hF}]),(0,cr.sH)("vibrate",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.4.0",platform:cr.hF}]),(0,cr.sH)("vibrateShort",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.4.0",platform:cr.hF}]),(0,cr.sH)("vibrateLong",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.4.0",platform:cr.hF}]),(0,cr.sH)("request",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.3.0",platform:cr.hF}]),(0,cr.sH)("innerRequest",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.10.0",platform:cr.hF}]),(0,cr.sH)("getHostInfoSync",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.12.0",platform:cr.hF}]),(0,cr.sH)("showKeyboard",[{minSCVersion:"1.11.0",platform:cr.Lj},{minSCVersion:"1.12.0",platform:cr.hF}]),(0,cr.sH)("hideKeyboard",[{minSCVersion:"1.11.0",platform:cr.Lj},{minSCVersion:"1.12.0",platform:cr.hF}]),(0,cr.sH)("callHostMethod",[{minSCVersion:"1.10.0",platform:cr.Lj},{minSCVersion:"1.12.0",platform:cr.hF}]),(0,cr.sH)("openSchema",[{minSCVersion:"1.10.0",platform:cr.Lj},{minSCVersion:"1.12.0",platform:cr.hF}]),(0,cr.sH)("createInvitePanel",[{minSCVersion:"1.10.0",platform:cr.Lj},{minSCVersion:"1.13.0",platform:cr.hF}]),(0,cr.sH)("getRtcEngine",[{minSCVersion:"1.11.0",platform:cr.Lj},{minSCVersion:"1.13.0",platform:cr.hF}]),(0,cr.sH)("operateRtcEngine",[{minSCVersion:"1.11.0",platform:cr.Lj},{minSCVersion:"1.13.0",platform:cr.hF}]),(0,cr.sH)("authorize",[{minSCVersion:"1.10.0",platform:cr.Lj},{minSCVersion:"1.13.0",platform:cr.hF}]),(0,cr.sH)("createInnerAudioContext",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.14.0",platform:cr.hF}]),(0,cr.sH)("addHostEventListener",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.12.0",platform:cr.hF}]),(0,cr.sH)("startGyroscope",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("stopGyroscope",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("setImRankData",[{minSCVersion:"1.13.0",platform:cr.Lj},{minSCVersion:"1.22.0",platform:cr.hF}]),(0,cr.sH)("getImRankData",[{minSCVersion:"1.13.0",platform:cr.Lj},{minSCVersion:"1.22.0",platform:cr.hF}]),(0,cr.sH)("getImRankList",[{minSCVersion:"1.13.0",platform:cr.Lj},{minSCVersion:"1.22.0",platform:cr.hF}]),(0,cr.sH)("setImRankDataV2",[{minSCVersion:"2.1.0",platform:cr.Lj},{minSCVersion:"2.9.0",platform:cr.hF}]),(0,cr.sH)("getImRankDataV2",[{minSCVersion:"2.1.0",platform:cr.Lj},{minSCVersion:"2.9.0",platform:cr.hF}]),(0,cr.sH)("getImRankListV2",[{minSCVersion:"2.1.0",platform:cr.Lj},{minSCVersion:"2.9.0",platform:cr.hF}]),(0,cr.sH)("createBannerAd",[{minSCVersion:"1.0.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("operateBannerAd",[{minSCVersion:"1.0.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("updateBannerAd",[{minSCVersion:"1.0.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("operateInterstitialAd",[{minSCVersion:"1.0.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("getRoomInfo",[{minSCVersion:"1.14.0",platform:cr.Lj},{minSCVersion:"1.23.0",platform:cr.hF}]),(0,cr.sH)("shareMessageToFriend",[{minSCVersion:"1.15.0",platform:cr.Lj},{minSCVersion:"2.1.0",platform:cr.hF}]),(0,cr.sH)("openCustomerPage",[{minSCVersion:"1.15.0",platform:cr.Lj},{minSCVersion:"1.16.0",platform:cr.hF}]),(0,cr.sH)("openAwemeCustomerService",[{minSCVersion:"1.16.0",platform:cr.hF}]),(0,cr.sH)("createGridGamePanel",[{minSCVersion:"2.3.0",platform:cr.hF},{minSCVersion:"1.16.0",platform:cr.Lj}]),(0,cr.sH)("GridGamePanel.show",[{minSCVersion:"2.3.0",platform:cr.hF},{minSCVersion:"1.16.0",platform:cr.Lj}]),(0,cr.sH)("GridGamePanel.hide",[{minSCVersion:"2.3.0",platform:cr.hF},{minSCVersion:"1.16.0",platform:cr.Lj}]),(0,cr.sH)("GridGamePanel.destroy",[{minSCVersion:"2.3.0",platform:cr.hF},{minSCVersion:"1.16.0",platform:cr.Lj}]),(0,cr.sH)("setClipboardData",[{minSCVersion:"1.7.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("getClipboardData",[{minSCVersion:"1.7.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("requestGamePayment",[{minSCVersion:"1.19.0",platform:cr.Lj}]),(0,cr.sH)("joinGroup",[{minSCVersion:"2.5.0",platform:cr.hF},{minSCVersion:"1.20.0",platform:cr.Lj}]),(0,cr.sH)("checkGroupInfo",[{minSCVersion:"2.5.0",platform:cr.hF},{minSCVersion:"1.20.0",platform:cr.Lj}]),(0,cr.sH)("createGroupInfo",[{minSCVersion:"2.5.0",platform:cr.hF},{minSCVersion:"1.20.0",platform:cr.Lj}]),(0,cr.sH)("sendtoTAQ",[{minSCVersion:"1.7.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("setKeepScreenOn",[{minSCVersion:"1.7.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("getScreenBrightness",[{minSCVersion:"1.7.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("setScreenBrightness",[{minSCVersion:"1.7.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("getGamePublishVersion",[{minSCVersion:"1.7.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("startDeviceMotionListening",[{minSCVersion:"2.6.0",platform:cr.hF},{minSCVersion:"1.21.0",platform:cr.Lj}]),(0,cr.sH)("stopDeviceMotionListening",[{minSCVersion:"2.6.0",platform:cr.hF},{minSCVersion:"1.21.0",platform:cr.Lj}]),(0,cr.sH)("callContainer",[{minSCVersion:"2.7.0",platform:cr.hF},{minSCVersion:"1.20.0",platform:cr.Lj}]),(0,cr.sH)("getTempFile",[{minSCVersion:"2.7.0",platform:cr.hF},{minSCVersion:"1.20.0",platform:cr.Lj}]),(0,cr.sH)("deleteFile",[{minSCVersion:"2.7.0",platform:cr.hF},{minSCVersion:"1.20.0",platform:cr.Lj}]),(0,cr.sH)("uploadFile",[{minSCVersion:"2.7.0",platform:cr.hF},{minSCVersion:"1.20.0",platform:cr.Lj}]),(0,cr.sH)("downloadFile",[{minSCVersion:"2.7.0",platform:cr.hF},{minSCVersion:"1.20.0",platform:cr.Lj}]),(0,cr.sH)("cloudDb",[{minSCVersion:"2.7.0",platform:cr.hF},{minSCVersion:"1.20.0",platform:cr.Lj}]),(0,cr.sH)("requestSubscribeMessage",[{minSCVersion:"1.0.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("checkScene",[{minSCVersion:"2.8.0",platform:cr.hF},{minSCVersion:"1.21.0",platform:cr.Lj}]),(0,cr.sH)("navigateToScene",[{minSCVersion:"2.8.0",platform:cr.hF},{minSCVersion:"1.21.0",platform:cr.Lj}]),(0,cr.sH)("getMenuButtonLayout",[{minSCVersion:"1.7.0",platform:cr.hF},{minSCVersion:"1.0.0",platform:cr.Lj}]),(0,cr.sH)("requestGoldOrder",[{minSCVersion:"2.9.0",platform:cr.hF},{minSCVersion:"2.1.0",platform:cr.Lj}]),(0,cr.sH)("openCustomerServiceConversation",[{minSCVersion:"2.10.1",platform:cr.hF},{minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("showShareMenu",[{minSCVersion:"2.10.1",platform:cr.hF},{minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("hideShareMenu",[{minSCVersion:"2.10.1",platform:cr.hF},{minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("navigateToVideoView",[{minSCVersion:"2.9.0",platform:cr.hF},{minSCVersion:"2.1.0",platform:cr.Lj}]),(0,cr.sH)("authenticateRealName",[{minSCVersion:"2.9.0",platform:cr.hF},{minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("showDouyinOpenAuth",[{minSCVersion:"2.9.0",platform:cr.hF},{minSCVersion:"2.1.0",platform:cr.Lj}]),(0,cr.sH)("showFavoriteGuide",[{minSCVersion:"2.9.0",platform:cr.hF},{minSCVersion:"2.1.0",platform:cr.Lj}]),(0,cr.sH)("onFavoriteStateChange",[{minSCVersion:"2.9.0",platform:cr.hF},{minSCVersion:"2.1.0",platform:cr.Lj}]),(0,cr.sH)("showRevisitGuide",[{minSCVersion:"2.9.0",platform:cr.hF},{minSCVersion:"2.1.0",platform:cr.Lj}]),(0,cr.sH)("getAuthSetting",[{minSCVersion:"2.9.0",platform:cr.hF},{minSCVersion:"2.1.0",platform:cr.Lj}]),(0,cr.sH)("openAuthSetting",[{minSCVersion:"2.9.0",platform:cr.hF},{minSCVersion:"2.1.0",platform:cr.Lj}]),(0,cr.sH)("restartMiniProgramSync",[{minSCVersion:"2.9.0",platform:cr.hF},{minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("startTouchEventsListening",[{minSCVersion:"2.10.0",platform:cr.hF},{minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("stopTouchEventsListening",[{minSCVersion:"2.10.0",platform:cr.hF},{minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("getSystemFont",[{minTMGVersion:"3.30.0.0",minSCVersion:"2.12.0",platform:cr.hF},{minTMGVersion:"3.30.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("CreateUDPSocket",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketClose",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketConnect",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketBind",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketOnClose",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketOffClose",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketOnError",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketOffError",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketOnListening",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketOffListening",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketOnMessage",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketOffMessage",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketSend",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("UDPSocketSetTTL",[{minTMGVersion:"88.88.88.88",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"88.88.88.88",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("RegisterUDPSocketOnMessageCallback",[{minTMGVersion:"3.24.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.24.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("reportScene",[{minTMGVersion:"2.88.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"2.88.0.0",minSCVersion:"2.6.0",platform:cr.Lj}]),(0,cr.sH)("requestPromotionActivity",[{minTMGVersion:"3.27.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.27.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("receiveCoupon",[{minTMGVersion:"3.27.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.27.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("livemanager.checkRoomIsValid",[{minTMGVersion:"3.27.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.27.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("livemanager.navigateToLive",[{minTMGVersion:"3.27.0.0",minSCVersion:"2.10.0",platform:cr.hF},{minTMGVersion:"3.27.0.0",minSCVersion:"2.2.0",platform:cr.Lj}]),(0,cr.sH)("livemanager.getLiveStatus",[{minTMGVersion:"3.60.0.0",platform:cr.hF},{minTMGVersion:"3.60.0.0",platform:cr.Lj}]),(0,cr.sH)("livemanager.onXScreenSizeChange",[{minTMGVersion:"3.60.0.0",platform:cr.hF},{minTMGVersion:"3.60.0.0",platform:cr.Lj}]),(0,cr.sH)("livemanager.offXScreenSizeChange",[{minTMGVersion:"3.60.0.0",platform:cr.hF},{minTMGVersion:"3.60.0.0",platform:cr.Lj}]),(0,cr.sH)("livemanager.onInstantPlayStatusChange",[{minTMGVersion:"3.85.0",platform:cr.hF},{minTMGVersion:"3.85.0",platform:cr.Lj}]),(0,cr.sH)("livemanager.offInstantPlayStatusChange",[{minTMGVersion:"3.85.0",platform:cr.hF},{minTMGVersion:"3.85.0",platform:cr.Lj}]),(0,cr.sH)("livemanager.getLiveSetting",[{minTMGVersion:"3.85.0",platform:cr.hF},{minTMGVersion:"3.85.0",platform:cr.Lj}]),(0,cr.sH)("livemanager.uploadGameProgress",[{minTMGVersion:"3.85.0",platform:cr.hF},{minTMGVersion:"3.85.0",platform:cr.Lj}]),(0,cr.sH)("livemanager.syncGameProgress",[{minTMGVersion:"3.85.0",platform:cr.hF},{minTMGVersion:"3.85.0",platform:cr.Lj}]),(0,cr.sH)("operateGameLive",[{minTMGVersion:"3.69.0.0",platform:cr.hF},{minTMGVersion:"3.69.0.0",platform:cr.Lj}]),(0,cr.sH)("getAndroidSDKVersion",[{minSCVersion:"2.6.0",platform:cr.Lj,runtime:cr.yy}]),(0,cr.sH)("requestFeedSubscribe",[{minTMGVersion:"3.33.0.0",platform:cr.hF},{minTMGVersion:"3.33.0.0",platform:cr.Lj}]),(0,cr.sH)("checkFeedSubscribeStatus",[{minTMGVersion:"3.33.0.0",platform:cr.hF},{minTMGVersion:"3.33.0.0",platform:cr.Lj}]),(0,cr.sH)("onFeedStatusChange",[{minTMGVersion:"3.59.0.0",platform:cr.hF},{minTMGVersion:"3.59.0.0",platform:cr.Lj}]),(0,cr.sH)("offFeedStatusChange",[{minTMGVersion:"3.59.0.0",platform:cr.hF},{minTMGVersion:"3.59.0.0",platform:cr.Lj}]),(0,cr.sH)("getGameVersion",[{minSCVersion:"2.6.0",platform:cr.Lj,runtime:cr.yy}]),(0,cr.sH)("UpdateManager.onCheckForUpdate",[{minSCVersion:"2.7.0",platform:cr.Lj}]),(0,cr.sH)("UpdateManager.onUpdateReady",[{minSCVersion:"2.7.0",platform:cr.Lj}]),(0,cr.sH)("UpdateManager.onUpdateFailed",[{minSCVersion:"2.7.0",platform:cr.Lj}]),(0,cr.sH)("UpdateManager.applyUpdate",[{minSCVersion:"2.7.0",platform:cr.Lj}]),(0,cr.sH)("onBuyGift",[{minTMGVersion:"3.51.0.0",platform:cr.Lj},{minTMGVersion:"3.51.0.0",platform:cr.hF}]),(0,cr.sH)("getUnionGroupInfo",[{minTMGVersion:"3.51.0.0",platform:cr.Lj},{minTMGVersion:"3.51.0.0",platform:cr.hF}]),(0,cr.sH)("bindUnionGroup",[{minTMGVersion:"3.51.0.0",platform:cr.Lj},{minTMGVersion:"3.51.0.0",platform:cr.hF}]),(0,cr.sH)("unbindUnionGroup",[{minTMGVersion:"3.51.0.0",platform:cr.Lj},{minTMGVersion:"3.51.0.0",platform:cr.hF}]),(0,cr.sH)("joinUnionGroup",[{minTMGVersion:"3.51.0.0",platform:cr.Lj},{minTMGVersion:"3.51.0.0",platform:cr.hF}]),(0,cr.sH)("getNetWorkType",[{minTMGVersion:"1.0.0.0",platform:cr.Lj},{minTMGVersion:"1.0.0.0",platform:cr.hF}]),(0,cr.sH)("onNetworkStatusChange",[{minTMGVersion:"1.0.0.0",platform:cr.Lj},{minTMGVersion:"1.0.0.0",platform:cr.hF}]),(0,cr.sH)("offNetworkStatusChange",[{minTMGVersion:"1.0.0.0",platform:cr.Lj},{minTMGVersion:"1.0.0.0",platform:cr.hF}]),(0,cr.sH)("onNetworkWeakChange",[{minTMGVersion:"3.54.0.0",platform:cr.Lj},{minTMGVersion:"3.54.0.0",platform:cr.hF}]),(0,cr.sH)("offNetworkWeakChange",[{minTMGVersion:"3.54.0.0",platform:cr.Lj},{minTMGVersion:"3.54.0.0",platform:cr.hF}]),(0,cr.sH)("getLogManager",[{minTMGVersion:"3.55.0.0",platform:cr.Lj},{minTMGVersion:"3.55.0.0",platform:cr.hF}]),(0,cr.sH)("getRealtimeLogManager",[{minTMGVersion:"3.55.0.0",platform:cr.Lj},{minTMGVersion:"3.55.0.0",platform:cr.hF}]),(0,cr.sH)("onKeyUp",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("offKeyUp",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("onKeyDown",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("offKeyDown",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("onMouseUp",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("offMouseUp",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("onMouseDown",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("offMouseDown",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("onMouseMove",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("offMouseMove",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("onWheel",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("offWheel",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("setCursor",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("requestPointerLock",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("isPointerLocked",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("exitPointerLock",[{minTMGVersion:"3.50.0.0",platform:cr.Hk}]),(0,cr.sH)("setPreferredFramesPerSecond",[{minTMGVersion:"3.38.0.0",platform:cr.Lj},{minTMGVersion:"3.60.0.0",platform:cr.hF}]),(0,cr.sH)("appendFileSync",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"3.5.0",platform:cr.hF}]),(0,cr.sH)("appendFile",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"3.5.0",platform:cr.hF}]),(0,cr.sH)("readDir",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"3.5.0",platform:cr.hF}]),(0,cr.sH)("readDirSync",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"3.5.0",platform:cr.hF}]),(0,cr.sH)("truncate",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"3.5.0",platform:cr.hF}]),(0,cr.sH)("truncateSync",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"3.5.0",platform:cr.hF}]),(0,cr.sH)("navigateToMiniProgram",[{minTMGVersion:"1.15.0.0",platform:cr.Lj},{minTMGVersion:"1.15.0.0",platform:cr.hF}]),(0,cr.sH)("setDeviceOrientation",[{minTMGVersion:"3.64.0.0",platform:cr.Lj},{minTMGVersion:"3.64.0.0",platform:cr.hF}]),(0,cr.sH)("onDeviceOrientationChange",[{minTMGVersion:"3.64.0.0",platform:cr.Lj},{minTMGVersion:"3.64.0.0",platform:cr.hF}]),(0,cr.sH)("storeFeedData",[{minTMGVersion:"3.67.0.0",platform:cr.Lj},{minTMGVersion:"3.67.0.0",platform:cr.hF}]),(0,cr.sH)("getFeedData",[{minTMGVersion:"3.67.0.0",platform:cr.Lj},{minTMGVersion:"3.67.0.0",platform:cr.hF}]),(0,cr.sH)("onWindowResize",[{minTMGVersion:"1.45.0.0",platform:cr.Lj},{minTMGVersion:"1.45.0.0",platform:cr.hF}]),(0,cr.sH)("saveImageToPhotosAlbum",[{minTMGVersion:"1.0.0",platform:cr.Lj},{minTMGVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("chooseImage",[{minTMGVersion:"1.0.0",platform:cr.Lj},{minTMGVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("previewImage",[{minTMGVersion:"1.0.0",platform:cr.Lj},{minTMGVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("getImageInfo",[{minTMGVersion:"1.10.0",platform:cr.Lj},{minTMGVersion:"1.10.0",platform:cr.hF}]),(0,cr.sH)("openFeedback",[{minTMGVersion:"3.76.0",platform:cr.Lj},{minTMGVersion:"3.76.0",platform:cr.hF}]),(0,cr.sH)("getGameClubData",[{minTMGVersion:"3.77.0",platform:cr.Lj},{minTMGVersion:"3.77.0",platform:cr.hF}]),(0,cr.sH)("setGroupTag",[{minTMGVersion:"3.79.0",platform:cr.Lj},{minTMGVersion:"3.79.0",platform:cr.hF}]),(0,cr.sH)("getUserGroupTagInfo",[{minTMGVersion:"3.79.0",platform:cr.Lj},{minTMGVersion:"3.79.0",platform:cr.hF}]),(0,cr.sH)("checkDownloadGameEnabled",[{minTMGVersion:"3.81.0",platform:cr.Lj},{minTMGVersion:"3.81.0",platform:cr.hF}]),(0,cr.sH)("downloadGame",[{minTMGVersion:"3.81.0",platform:cr.Lj},{minTMGVersion:"3.81.0",platform:cr.hF}]),(0,cr.sH)("checkBalance",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,cr.sH)("shareAppMessage",[{minSCVersion:"1.0.0",platform:cr.Lj},{minSCVersion:"1.0.0",platform:cr.hF}]),(0,bo.l7)(),(0,vo.SZ)(),function(){jssdk.onError(function(e){jt.A.call("onError",e)}),Jn=!0,jssdk.onShow(function(n){if(Jn=!0,t.z2.info("onShow"),!(0,e.Lr)()){if(jn.qO&&jn.qO.isMainCalled){var r=null!=n?n:{};if(r.hasOwnProperty("query")){var i=r.query;i&&""!==i||(r.query={})}r.onShow=!0;try{jt.A.call("OnAppShowEvent",r)}catch(e){t.z2.error(e)}}Hn("reduce_resolution")&&(t.z2.info("restore memory from background"),jn.qO&&jn.qO.setDevicePixelRatio(void 0),jn.qO&&jn.qO.triggerAnimationFrame())}}),jssdk.onHide(function(){if(Jn=!1,t.z2.info("onHide"),!(0,e.Lr)()){if(jn.qO&&jn.qO.isMainCalled){Un.Ay.syncfs(!1,null,!0);try{jt.A.call("OnAppHideEvent",{onHide:!0})}catch(e){t.z2.error(e)}}Hn("reduce_resolution")&&(t.z2.info("optimize memory in background"),jn.qO&&jn.qO.setDevicePixelRatio(1),jn.qO&&jn.qO.triggerAnimationFrame())}}),"function"==typeof(0,He.W)().onGameRecorderStateChanged?(0,He.W)().onGameRecorderStateChanged(function(e){t.z2.info("onGameRecorderStateChanged"),jt.A.call("onGameRecorderStateChanged",e)}):"function"==typeof tt.onGameRecorderStateChanged?tt.onGameRecorderStateChanged(function(e){t.z2.info("onGameRecorderStateChanged"),jt.A.call("onGameRecorderStateChanged",e)}):t.z2.error("onGameRecorderStateChanged - not support");var n=function(e){t.z2.info("onDeviceOrientationChange"),jt.A.call("onDeviceOrientationChange",e)},r=function(){"function"==typeof(0,He.W)().onNative?(0,He.W)().onNative("onDeviceOrientationChange",n):"function"==typeof tt.onNative?tt.onNative("onDeviceOrientationChange",n):t.z2.error("onNative - not support")};Kn?Gn(r):r()}(),jt.A.registerAPI("showLoading",Er),jt.A.registerAPI("hideLoading",Sr),jt.A.registerAPI("triggerGC",Xi),jt.A.registerAPI("starkLogin",hr),jt.A.registerAPI("getUcUserInfo",pr),jt.A.registerAPI("getUcUserInfoWithCredentials",mr),jt.A.registerAPI("starkCheckSession",_r),jt.A.registerAPI("getUserInfoAuth",yr),jt.A.registerAPI("openSetting",gr),jt.A.registerAPI("getAuthSetting",vr),jt.A.registerAPI("openAuthSetting",br),jt.A.registerAPI("applogReport",Ir),jt.A.registerAPI("applogReportPerformance",Pr),jt.A.registerAPI("exitApp",Mr),jt.A.registerAPI("startAccelerometer",Ur),jt.A.registerAPI("stopAccelerometer",jr),jt.A.registerAPI("startCompass",Hr),jt.A.registerAPI("stopCompass",Wr),jt.A.registerAPI("addShortcut",Xr),jt.A.registerAPI("getShortcutMissionReward",zr),jt.A.registerAPI("cleanAllFileCache",Jr),jt.A.registerAPI("authorize",ti),jt.A.registerAPI("openSchema",ni),jt.A.registerAPI("callHostMethod",ri),jt.A.registerAPI("createInvitePanel",oi),jt.A.registerAPI("createInnerAudioContext",ai),jt.A.registerAPI("operateInnerAudioContext",si),jt.A.registerAPI("readInnerAudioContextProperty",ui),jt.A.registerAPI("addHostEventListener",li),jt.A.registerAPI("startDeviceMotionListening",fi),jt.A.registerAPI("stopDeviceMotionListening",hi),jt.A.registerAPI("callContainer",_i),jt.A.registerAPI("getTempFile",yi),jt.A.registerAPI("deleteFile",gi),jt.A.registerAPI("uploadFile",vi),jt.A.registerAPI("downloadFile",bi),jt.A.registerAPI("navigateToScene",Si),jt.A.registerAPI("checkScene",Ai),jt.A.registerAPI("reportScene",ji),jt.A.registerAPI("setPreferredFramesPerSecond",Wi.e),jt.A.registerSyncAPI("canIUseSync",qr),jt.A.registerSyncAPI("getUCConfigCenterValueByKey",Cr),jt.A.registerSyncAPI("isInStarkContainer",Tr),jt.A.registerSyncAPI("StarkUnitySdkInit",Rr),jt.A.registerSyncAPI("getUserdataDir",wr),jt.A.registerSyncAPI("getSystemInfoSync",xr),jt.A.registerSyncAPI("syncFileSystem",Kr),jt.A.registerSyncAPI("getAppInfoSync",Qr),jt.A.registerSyncAPI("getAppbrandSettingsSync",ei),jt.A.registerSyncAPI("onBeforeExitMiniProgram",Fr),jt.A.registerSyncAPI("getGamePublishVersion",di),jt.A.registerSyncAPI("getMenuButtonLayout",Ci),jt.A.registerSyncAPI("restartMiniProgramSync",wi),jt.A.registerSyncAPI("startTouchEventsListening",Di),jt.A.registerSyncAPI("stopTouchEventsListening",ki),jt.A.registerSyncAPI("getAndroidSDKVersion",Vi),jt.A.registerSyncAPI("getGameVersion",Hi),jt.A.registerAPI("setDeviceOrientation",Gi),jt.A.registerSyncAPI("createRtcEngine",$r.createRtcEngine.bind($r)),jt.A.registerAPI("operateRtcEngine",$r.operateRtcEngine.bind($r)),jt.A.registerAPI("checkDownloadGameEnabled",Ki),jt.A.registerAPI("downloadGame",Ji),jt.A.registerMixCallAPI("request",Zr),jt.A.registerAPI("checkBalance",zi),jt.A.registerAPI("recharge",Yi),jt.A.registerAPI("pay",Zi),jt.A.registerAPI("navigateToBalance",Qi),jt.A.registerAPI("startEntranceMission",$i),jt.A.registerAPI("getEntranceMissionReward",eo),jt.A.registerAPI("ShowExcitingVideoAd",oo),jt.A.registerAPI("createInterstitialAd",ao),jt.A.registerAPI("reportEvent",so),jt.A.registerAPI("shareAppMessage",no),jt.A.registerAPI("showKeyboard",uo),jt.A.registerAPI("updateKeyboard",lo),jt.A.registerAPI("hideKeyboard",co),jt.A.registerAPI("vibrateShort",yo),jt.A.registerAPI("vibrateLong",go),window.StarkSDK=qi.a,Object.assign(globalThis,{StarkAPI:Ht}),sr.XMLHttpRequest=window.XMLHttpRequest,window.getHostEnvironmentInfoSync=wo}function Oo(){To||(To=!0,function(){var e;null===(e=null===jssdk||void 0===jssdk?void 0:jssdk.onMemoryWarning)||void 0===e||e.call(jssdk,function(e){t.IM.info("onMemoryWarning",e),jt.A.call("onMemoryWarning",e)})}(),Gn(function(){t.IM.info("onWindowResizeListening TTSDK"),jssdk.onWindowResize(function(e){t.IM.info("onWindowResize");try{jt.A.call("onWindowResize",e)}catch(e){t.IM.error(e)}})}),"function"==typeof jssdk.onNetworkStatusChange?jssdk.onNetworkStatusChange(function(e){jt.A.call("onNetworkStatusChange",e)}):t.IM.warn("api [onNetworkStatusChange] not supported."),"function"==typeof jssdk.onNetworkWeakChange?jssdk.onNetworkWeakChange(function(e){jt.A.call("onNetworkLevelChange",e)}):t.IM.warn("api [onNetworkWeakChange] not supported."),"function"==typeof jssdk.onFeedStatusChange?jssdk.onFeedStatusChange(function(e){jt.A.call("onFeedStatusChange",e)}):t.IM.warn("api [onFeedStatusChange] not supported."),"function"==typeof jssdk.getLiveManager&&jssdk.getLiveManager()&&"function"==typeof jssdk.getLiveManager().onXScreenSizeChange?jssdk.getLiveManager().onXScreenSizeChange(function(e){jt.A.call("onXScreenSizeChange",e)}):t.IM.warn("api [onXScreenChange] not supported."),"function"==typeof jssdk.getLiveManager&&jssdk.getLiveManager()&&"function"==typeof jssdk.getLiveManager().onInstantPlayStatusChange?jssdk.getLiveManager().onInstantPlayStatusChange(function(e){jt.A.call("onInstantPlayStatusChange",e)}):t.IM.warn("api [onInstantPlayStatusChange] not supported."),t.oo.info("Deferred initialization completed"))}const Io={audioInstances:[],audioContext:{},audioWebEnabled:0},Po={};let Do=-1,ko=-1,Mo=!1;function Fo(){try{Io.audioContext&&Io.audioContext.suspend&&"suspended"!==Io.audioContext.state&&(Io.audioContext.suspend(),clearTimeout(Do),Do=setTimeout(()=>{Mo&&"suspended"!==Io.audioContext.state&&Fo()},100))}catch(e){console.warn(`suspend audio exception, reason: ${e}`)}}function xo(){try{Io.audioContext&&Io.audioContext.resume&&"suspended"===Io.audioContext.state&&(clearTimeout(ko),Io.audioContext.resume().then(()=>{clearTimeout(ko)}).catch(e=>{console.warn(`unable to resume audio, reason: ${e}`)}),ko=setTimeout(()=>{Mo||"suspended"!==Io.audioContext.state||xo()},100))}catch(e){console.warn(`resume audio exception, reason: ${e}`)}}function Lo(e){false}function No(e,t){const n=Io.audioInstances[e];if(Lo(),n.source.buffer){try{n.source.stop(Io.audioContext.currentTime+t)}catch(e){n.source.disconnect()}0===t&&(n.source.onended=function(){},n.setup())}}const Bo={_JS_Sound_Init:function(){try{const t=window.AudioContext||window.webkitAudioContext;Io.audioContext=new t,Lo();const n=setInterval(function(){"suspended"===Io.audioContext.state?Io.audioContext.resume():clearInterval(n)},400);Io.audioWebEnabled=1,Lo(),(0,e.VS)()&&(window.DebugWEBAudio=Io)}catch(e){console.error(`_JS_Sound_Init - Web Audio API is not supported in this browser! exception: ${e}`)}},_JS_Sound_Load:function(e,t){if(0===Io.audioWebEnabled)return 0;Lo();const n={buffer:null,error:!1},r=Io.audioInstances.push(n)-1,i=jn.qO.HEAPU8.buffer.slice(e,e+t);return Date.now(),Lo(i.byteLength),Io.audioContext.decodeAudioData(i,e=>{Date.now();Lo((e.duration,e.sampleRate,e.length,e.numberOfChannels)),n.buffer=e},()=>{n.error=!0,console.error("_JS_Sound_Load - Decode error.")}),r},_JS_Sound_Load_PCM:function(e,t,n,r){if(0===Io.audioWebEnabled)return 0;Lo();const i={buffer:Io.audioContext.createBuffer(e,t,n),error:!1};for(let n=0;n<e;n++){const e=(r>>2)+t*n,o=i.buffer;(o.copyToChannel||function(e,t,n){const r=e.subarray(0,Math.min(e.length,this.length-(0|n)));this.getChannelData(0|t).set(r,0|n)}).apply(o,[jn.qO.HEAPF32.subarray(e,e+t),n,0])}return Io.audioInstances.push(i)-1},_JS_Sound_GetLoadState:function(e){if(0===Io.audioWebEnabled)return 2;const t=Io.audioInstances[e];return t.error?(Lo(),2):t.buffer?(Lo(),0):(Lo(),1)},_JS_Sound_Create_Channel:function(e,t){if(0===Io.audioWebEnabled)return;Lo();const n={gain:Io.audioContext.createGain(),threeD:!1,playBuffer:function(n,r,i){this.source.buffer=r;const o=this;this.source.onended=function(){var n,r,i;Lo(),e&&(n="vi",r=e,(i=[t])&&i.length?jn.qO.get("dynCall_"+n).apply(null,[r].concat(i)):jn.qO.get("dynCall_"+n).call(null,r)),o.setup()},this.source.start(n,i)},setup:function(){this.source=Io.audioContext.createBufferSource(),this.setupPanning()},setupPanning:function(){this.threeD?(this.source.disconnect(),this.source.connect(this.panner),this.panner.connect(this.gain)):(this.panner.disconnect(),this.source.connect(this.gain))}};return n.panner=Io.audioContext.createPanner(),n.panner.rolloffFactor=0,n.gain.connect(Io.audioContext.destination),n.setup(),Io.audioInstances.push(n)-1},_JS_Sound_Play:function(e,t,n,r){if(0===Io.audioWebEnabled)return;No(t,0),Lo();const i=Io.audioInstances[e],o=Io.audioInstances[t];if(i.buffer&&!i.error)try{o.playBuffer(Io.audioContext.currentTime+r,i.buffer,n)}catch(e){console.error("playBuffer error. Exception: "+e)}else Lo(i.error)},_JS_Sound_Stop:No,_JS_Sound_SetPaused:function(e,t){},_JS_Sound_GetLength:function(e){if(0===Io.audioWebEnabled)return 0;Lo();const t=Io.audioInstances[e],n=44100/t.buffer.sampleRate;return t.buffer.length*n},_JS_Sound_ResumeIfNeeded:function(){0!==Io.audioWebEnabled&&"suspended"===Io.audioContext.state&&(Lo(),Io.audioContext.resume())},_JS_Sound_ReleaseInstance:function(e){Lo(),Io.audioInstances[e]=null},_JS_Sound_SetLoop:function(e,t){if(0===Io.audioWebEnabled)return;Io.audioInstances[e].source.loop!==t&&(Lo(),Io.audioInstances[e].source.loop=t)},_JS_Sound_SetPosition:function(e,t,n,r){},_JS_Sound_SetLoopPoints:function(e,t,n){if(0===Io.audioWebEnabled)return;Lo();const r=Io.audioInstances[e];r.source.loopStart=t,r.source.loopEnd=n},_JS_Sound_Set3D:function(e,t){},_JS_Sound_SetListenerOrientation:function(e,t,n,r,i,o){},_JS_Sound_SetListenerPosition:function(e,t,n){},_JS_Sound_SetPitch:function(e,t){0!==Io.audioWebEnabled&&(Lo(),Io.audioInstances[e].source.playbackRate.setValueAtTime(t,Io.audioContext.currentTime))},_JS_Sound_SetVolume:function(e,t){0!==Io.audioWebEnabled&&(void 0===Po[e]||Math.abs(t-Po[e])>.1)&&(Lo(),Po[e]=t,Io.audioInstances[e].gain.gain.setValueAtTime(t,Io.audioContext.currentTime))}};function Uo(){jssdk.onShow(e=>{Mo=!1,jn.qO&&jn.qO.isMainCalled&&xo()}),jssdk.onHide(()=>{Mo=!0,jn.qO&&jn.qO.isMainCalled&&Fo()})}function jo(e,t){return void 0===t&&(t=6),Math.round(e*Math.pow(10,t))/Math.pow(10,t)}var Vo=new Map,Ho=0,Wo=0,qo=null,Go=new Set,Ko=new Array;function Jo(e){var t=e.cachePath;if("string"==typeof t&&t.length>0)t.startsWith(an.e.USER_DATA_PATH)||(t=Gt.A.join(an.e.USER_DATA_PATH,t));else{var n=String(nr(e.src)),r=Gt.A.getFileExtension(e.src);0==r.length&&(r=".mp3");var i=n+r,o=Gt.A.join(an.e.USER_DATA_PATH,"__sc_http_cache_files__/audios");t=Gt.A.join(o,i)}return t}function Xo(e){try{return jssdk.getFileSystemManager().accessSync(e),!0}catch(e){}return!1}function zo(e,n){t.vn.debug("url: ".concat(e.src,", cache path: ").concat(n));var r=Gt.A.getDirPath(n);Xo(r)||function(e){try{return jssdk.getFileSystemManager().mkdirSync(e,!0),!0}catch(e){return!1}}(r)?Go.has(e.src)?t.vn.debug("url ".concat(e.src," is already in download queue, skip.")):(Go.add(e.src),t.vn.debug("start download: "+e.src),jssdk.downloadFile({url:e.src,filePath:n,success:function(r){Go.delete(e.src),t.vn.debug("download ".concat(e.src," success, cache path: ").concat(n))},fail:function(n){Go.delete(e.src),t.vn.error("download ".concat(e.src," fail: ").concat(JSON.stringify(n)))}})):t.vn.warn("unable to cache audio file, mkdir fail")}function Yo(e){var n=jssdk.createInnerAudioContext();return function(e,n){var r,i,o,a,s,u,c;e.startTime=null!==(r=n.startTime)&&void 0!==r?r:0,e.loop=null!==(i=n.loop)&&void 0!==i&&i,e.autoplay=null!==(o=n.autoPlay)&&void 0!==o&&o,e.obeyMuteSwitch=null===(a=n.obeyMuteSwitch)||void 0===a||a,e.volume=null!==(s=n.volume)&&void 0!==s?s:1,e.playbackRate=null!==(u=n.playbackRate)&&void 0!==u?u:1,e.referrerPolicy=null!==(c=n.referrerPolicy)&&void 0!==c?c:"no-referrer";var l=Jo(n);!function(e){return e.needDownload&&e.src&&e.src.startsWith("http")}(n)?(t.vn.debug("play audio: ".concat(n.src)),e.src=n.src):(e.cachePath=l,Xo(l)?(t.vn.debug("play audio: ".concat(n.src,", use local cache: ").concat(l)),e.src=l):(t.vn.debug("play audio: ".concat(n.src)),e.src=n.src,zo(n,l)))}(n,e),Ho++,Vo.set(Ho,n),function(e,t){e.onCanplay(function(){yn({id:t,state:"canPlay",extra:jo(e.duration)})}),e.onPlay(function(){yn({id:t,state:"play"})}),e.onPause(function(){yn({id:t,state:"pause"})}),e.onStop(function(){yn({id:t,state:"stop"})}),e.onEnded(function(){yn({id:t,state:"ended"})}),e.onWaiting(function(){yn({id:t,state:"waiting"})}),e.onSeeking(function(){yn({id:t,state:"seeking"})}),e.onSeeked(function(){yn({id:t,state:"seeked"})}),e.onError(function(e){yn({id:t,state:"error",extra:"string"==typeof e?JSON.stringify(e):e})})}(n,Ho),Ho}var Zo=function(){function e(){this.clearOldAudioFiles()}return e.prototype.create=function(e){return new Promise(function(n,r){function i(){if(!qo&&Ko.length>0){var e=Ko.shift();qo=setTimeout(function(){o(e),qo=null},100)}else Ko.length<1?t.vn.debug("create done!"):t.vn.debug("wait for next... queue size:"+Ko.length)}function o(e){var n=e.param,r=e.resolve,o=e.reject;try{var a=Yo(n);t.vn.debug("create audio: ".concat(n.src,", id: ").concat(a)),Wo=Date.now(),qo&&(clearTimeout(qo),qo=null),i(),r(a)}catch(e){t.vn.error(e),o(String(e))}}Date.now()-Wo<100?(Ko.push({param:e,resolve:n,reject:r}),i()):o({param:e,resolve:n,reject:r})})},e.prototype.operate=function(e,t,n){return this.operateInnerAudioContext(e,t,n)},e.prototype.readProperty=function(e,t){if(!Vo.has(e))return Promise.reject("audio id: ".concat(e," not found"));var n=Vo.get(e);if("duration"==t||"currentTime"==t||"paused"==t||"buffered"==t){var r=n[t];return"number"==typeof r&&(r=jo(r)),Promise.resolve({id:e,value:r})}return Promise.reject("invalid property: ".concat(t))},e.prototype.clearOldAudioFiles=function(){var e=Gt.A.join(an.e.USER_DATA_PATH,"audio");try{var n=jssdk.getFileSystemManager().statSync(e);if(n.isDirectory())(0|n.lastModifiedTime)<1680192e3&&(t.vn.debug("try to delete old audio dir..."),jssdk.getFileSystemManager().rmdir({dirPath:e,recursive:!0}))}catch(e){}},e.prototype.operateInnerAudioContext=function(e,t,n){void 0===n&&(n=void 0);var r=this[t];return"function"==typeof r?r.bind(this)(e,n):Promise.reject("invalid type: ".concat(t))},e.prototype.play=function(e){return Vo.has(e)?(Vo.get(e).play(),Promise.resolve(e)):Promise.reject("audio id: ".concat(e," not found"))},e.prototype.pause=function(e){return Vo.has(e)?(Vo.get(e).pause(),Promise.resolve(e)):Promise.reject("audio id: ".concat(e," not found"))},e.prototype.stop=function(e){return Vo.has(e)?(Vo.get(e).stop(),Promise.resolve(e)):Promise.reject("audio id: ".concat(e," not found"))},e.prototype.destroy=function(e){return Vo.has(e)?(Vo.get(e).destroy(),Vo.delete(e),Promise.resolve(e)):Promise.reject("audio id: ".concat(e," not found"))},e.prototype.volume=function(e,t){return Vo.has(e)?(Vo.get(e).volume=t,Promise.resolve(e)):Promise.reject("audio id: ".concat(e," not found"))},e.prototype.loop=function(e,t){return Vo.has(e)?(Vo.get(e).loop=t,Promise.resolve(e)):Promise.reject("audio id: ".concat(e," not found"))},e.prototype.seek=function(e,t){return Vo.has(e)?(Vo.get(e).seek(t),Promise.resolve(e)):Promise.reject("audio id: ".concat(e," not found"))},e}();const Qo=Zo;var $o=t.Vy.getLogger("Utils");function ea(){if("brotliDecompressSync"in jssdk&&"zlibProcessSync"in jssdk){var e=function(){var e=(0,He.W)().getAppSettings({fields:["unity_optimize_config"]},!0);return Object.assign({useNativeZlib:!1,enablePreloadDataRewrite:!1,enableKryptonRecorder:!1,kryptonRecoderUseWhiteList:!0,appIdAllowList:[]},e)}();e.useNativeZlib?(Jt.zlib={brotliDecompressSync:function(e){var t,n;return null===(n=(t=(0,He.W)()).brotliDecompressSync)||void 0===n?void 0:n.call(t,e)},gunzipSync:function(e){var t,n;return null===(n=(t=(0,He.W)()).zlibProcessSync)||void 0===n?void 0:n.call(t,e,5)}},$o.info("Native Zlib function registered")):$o.info("Native Zlib function not registered, useNativeZlib=".concat(e.useNativeZlib))}else $o.info("no native zlib function found in jssdk")}var ta=!1;function na(){var e,n;if(!ta){var r,i,o,a=globalThis.TTMinis.game,s=a.getStarkInnerAPI(yu);Kn="UnityNative"!==globalThis.unityGameType,function(e,t,n){void 0===n&&(n=!1),Object.assign(globalThis,{jssdk:e}),(0,He.s)(t,n)}(a,s),Object.assign(globalThis,{__onerror__:qt}),Object.assign(globalThis,(0,l.Cl)((0,l.Cl)({},Ut),{window:globalThis,self:globalThis})),Ro(),(0,Bt.m0)()?(t.xG.info("android preload unity ability"),null===(n=(e=(0,He.W)()).onNative)||void 0===n||n.call(e,ra,ia),oa()&&Object.assign(globalThis,{__tt_reset_preloaded_unity_webgl_bundle_data__:cn,__tt_get_preload_unity_webgl_bundle_infos__:ln,__tt_preload_unity_webgl_bundle_data__:dn}),Ln(new Bn),(0,sn.j)(globalThis.WebAssembly)):(0,Bt.un)()&&(t.xG.info("ios preload unity ability"),Uo(),Ln(new Bn),globalThis.WebAssembly=s.getWebviewRawGlobal().WebAssembly,(0,sn.j)(s.getWebviewRawGlobal().WebAssembly)),r=new Qo,_n=r,i=new Fn,(0,Bt.m0)()||(0,Bt.un)()&&ea(),void 0===(o=100)&&(o=100),setTimeout(function(){Oo()},o),ta=!0}}var ra="CloudGameDataEvent";function ia(e){try{"string"==typeof e?jt.A.call(ra,JSON.parse(e)):jt.A.call(ra,e)}catch(e){return void(0,t.SZ)("".concat(ra,", error: ").concat(e))}}function oa(){return(0,Bt.m0)()?"object"==typeof globalThis.preSCConfig&&globalThis.preSCConfig.hasOwnProperty("enablePreload")&&"1"===globalThis.preSCConfig.enablePreload:globalThis.scPreloadConfig&&globalThis.scPreloadConfig.enablePreload}function aa(e,t){return"string"==typeof e?t:e}var sa="wasmcode",ua="wasmcode-android",ca="wasmcode1-android",la="wasmcode-ios",da="wasmcode1-ios",fa="wasmcode-archive",ha=null;function pa(){return null!=ha&&ha}function ma(n,r){var i;ha=!0===n.enableArchiveMode;var o=".webgl.data.unityweb.bin",a=".webgl.wasm.code.unityweb.wasm";n.compressDataPackage&&(o+=".br",a+=".br"),t.oo.debug("setupPluginConfig called: ",n,r);var s={url:Gt.A.join("data-package","".concat(n.DATA_FILE_MD5).concat(o)),md5:n.DATA_FILE_MD5,subpackage:"data-package"},u={url:null,md5:null};aa(n.enableWasmSplit,!1)?(0,Bt.m0)()?u={url:Gt.A.join(ua,"".concat(n.ANDROID_CODE_FILE_MD5).concat(a)),md5:n.ANDROID_CODE_FILE_MD5,subpackage:ua}:(0,Bt.un)()&&(u=pa()?{url:Gt.A.join(ua,"".concat(n.ANDROID_CODE_FILE_MD5).concat(a)),md5:n.ANDROID_CODE_FILE_MD5,subpackage:ua}:{url:Gt.A.join(la,"".concat(n.IOS_CODE_FILE_MD5).concat(a)),md5:n.IOS_CODE_FILE_MD5,subpackage:la}):u={url:Gt.A.join(sa,"".concat(n.CODE_FILE_MD5).concat(a)),md5:n.CODE_FILE_MD5,subpackage:sa};var c,l={url:null,md5:null};if(aa(n.enableWasmSplit,!1)&&(0,Bt.m0)()&&n.ANDROID_SUB_CODE_FILE_MD5&&(l={url:Gt.A.join(ca,"".concat(n.ANDROID_SUB_CODE_FILE_MD5).concat(a)),md5:n.ANDROID_SUB_CODE_FILE_MD5,subpackage:ca}),pa()&&n.ARCHIVE_CODE_FILE_MD5&&"string"==typeof n.ARCHIVE_CODE_FILE_MD5&&!n.ARCHIVE_CODE_FILE_MD5.startsWith("$")){var d=".webgl.wasm.code.unityweb.bin";n.compressDataPackage&&(d+=".br"),c={url:Gt.A.join(fa,"".concat(n.ARCHIVE_CODE_FILE_MD5).concat(d)),md5:n.ARCHIVE_CODE_FILE_MD5,subpackage:fa}}var f="https://dummy.dummy.dummy/StreamingAssets";n.useDataCDNAsStreamingAssetsUrl&&n.DATA_CDN&&(f=n.DATA_CDN,t.xG.info("use custom streamingAssetsUrl: ".concat(f)));var h={wasmTableSize:aa(n.wasmTableSize,0),enableWasmSplit:aa(n.enableWasmSplit,!1),enableWasmCollect:aa(n.enableWasmCollect,!1),wasmCollectAPIVer:n.wasmCollectAPIVer,isDevelop:n.isDevelop,originalWasmMd5:n.originalWasmMd5,textureConfig:n.textureConfig,resourceCdnUrl:null,framework:{url:null,md5:null},data:s,code:u,subWasm:l,archiveCode:c,mainWasm:{url:null,md5:null},mainWasmH5:{url:null,md5:null},usingWasmH5:aa(n.usingWasmH5,!1),globalVarList:n.globalVarList,preSaveStreamingFiles:[],unityVersion:r.unityVersion,subJsUrl:n.subJsUrl,ios_sub_js_file_config:n.IOS_SUB_JS_FILE_CONFIG,debugAppId:n.debugAppId,wasmSplitVersion:aa(n.wasmSplitVersion,0),urlCacheList:n.urlCacheList,dontCacheFileNames:n.dontCacheFileNames,isLocalTest:!1,cpJsFiles:n.cpJsFiles,optimizeWebGLMemoryInBackground:r.optimizeWebGLMemoryInBackground,assetBundleFSEnabled:r.assetBundleFSEnabled,assetBundleBufferCapacity:r.assetBundleBufferCapacity,assetBundleBufferTTL:r.assetBundleBufferTTL,iOSDevicePixelRatio:n.iOSDevicePixelRatio,gameJsV2:n.gameJsV2,preloadMemCacheTTL:n.preloadMemCacheTTL,preloadMaxRequestCount:n.preloadMaxRequestCount,unityDistribution:r.unityDistribution,streamingAssetsUrl:f,streamingAssets:{url:f,md5:"no_md5_for_streaming_assets",subpackage:"StreamingAssets"},enableCache:null!==(i=n.enableCache)&&void 0!==i&&i,enableArchiveMode:!0===n.enableArchiveMode};console.warn("===============> bundleInfo",n),(0,e.s4)(h);var p=(0,He.W)().getContext(),m=p.deviceInfo.platform,_=function(){var e=(0,He.W)().getNativeSCConfig();return t.oo.info("get nativeSCConfig = ",e),e||(t.oo.error("cannot get nativeSCConfig, use a faked one"),{scVersion:"5.0.0"})}(),y="current",g=function(e,t,n,r){void 0===e&&(e="2.0.0"),void 0===t&&(t=1),void 0===n&&(n=0),void 0===r&&(r=0);var i={major:t,minor:n,build:r};if("string"!=typeof e)return hn.error("parseThreePartVersion failed, [".concat(e,"] is not string!")),i;try{var o=e.split("."),a=Number.parseInt(o[0]),s=Number.parseInt(o[1]),u=Number.parseInt(o[2]),c=Number.isInteger(a)?a:t,l=Number.isInteger(s)?s:n,d=Number.isInteger(a)?u:r;i.major=c,i.minor=l,i.build=d}catch(e){throw hn.error("parseThreePartVersion error!",e),e}return i}(_.scVersion),v=(0,fn.qF)(_.appExtJson)||{},b=(0,fn.qF)(_.versionStateJson)||{},E=(0,fn.qF)(_.mixSettingsJson)||{};Object.assign(b,E);var S,A,C,w=(0,fn.qF)(b.webgl_debug)||{},T=(0,fn.qF)(b.webgl_package_android)||{},R=new Map,O=Gt.A.join("file://",p.appInfo.appId,y,"index.js"),I="landscape"===tt.getSystemInfoSync().deviceOrientation?0:1,P={canUseLocalNet:!0,useDataCDNAsStreamingAssetsUrl:n.useDataCDNAsStreamingAssetsUrl,platform:"android"==m?"android":"ios",debug:w,videoAdId:v.video_ad_id,useHighPerformancePlus:(0,Bt.un)()&&globalThis.isIOSHighPerformanceModePlus,gameModel:{appId:p.appInfo.appId||"",name:p.appInfo.mpName||"",orientation:I,versionType:y},downloadInfo:{isCached:!1,downloadTime:0,packageSize:0},gameVersion:p.appInfo.mpVersion||"1.0.0",webglPackage:T,nativeSCVersion:g,nativeSCVersionString:(S=g,"".concat(S.major,".").concat(S.minor,".").concat(S.build)),gamePageUrl:O,get:function(t,n){if(R.has(t))return R.get(t);var r=n;if(v.hasOwnProperty(t))r=v[t];else if(b.hasOwnProperty(t))r=b[t];else{var i=function(){var t;return{appID:e.B8.gameModel.appId,appName:e.B8.gameModel.name,orientation:e.B8.gameModel.orientation,resourceCdnUrl:null!==(t=null===e.u||void 0===e.u?void 0:e.u.resourceCdnUrl)&&void 0!==t?t:""}}();i[t]&&(r=i[t])}return r&&R.set(t,r),r},set:function(e,t){R.set(e,t)}};A={appName:"SC WebGL",browserVersion:"1.0.0",system:"Android",brand:"Samsung",model:"Galaxy S20",platform:"Android 11.0",version:"18.0.0",language:"zh_CN",pixelRatio:1,screenHeight:1080,screenWidth:1920,statusBarHeight:0},(C=jssdk.getSystemInfoSync())&&C.system&&(A=C),Object.assign(globalThis,{nativeSystemInfo:A}),(0,e.fo)(P)}var _a=void 0;function ya(){return"".concat(_a,"-").concat(undefined,"-").concat(undefined)}var ga=["log","warn","error","info","debug"];var va=__webpack_require__(6269);const ba={_JS_SystemInfo_GetDocumentURL:function(t,n){const r=e.B8.gamePageUrl||document.URL;return t&&function(e,t,n){const r=jn.qO.HEAPU8;if(!r)return;(0,fn.tF)(e,r,t,n)}(r,t,n),(0,fn.pV)(r)}};var Ea=__webpack_require__(7247),Sa=__webpack_require__(2600),Aa=!1;var Ca={wait:function(){Aa=!0,"undefined"!=typeof v8_signal&&"function"==typeof v8_signal.wait&&v8_signal.wait()},notify:function(){Aa&&(Aa=!1,"undefined"!=typeof v8_signal&&"function"==typeof v8_signal.notify&&v8_signal.notify())}};const wa={audioInstances:[],audioContext:{},audioWebEnabled:0};function Ta(e){false}function Ra(e,t){const n=wa.audioInstances[e];if(Ta(),n.source.buffer){try{n.source.stop(wa.audioContext.currentTime+t)}catch(e){n.source.disconnect()}0===t&&(n.source.onended=function(){},n.setup())}}const Oa={_JS_Sound_Init:function(){try{wa.audioContext=Nn().getAudioContext(),Ta();const t=setInterval(function(){"suspended"===wa.audioContext.state?wa.audioContext.resume():clearInterval(t)},400);wa.audioWebEnabled=1,Ta(),(0,e.VS)()&&(window.DebugWEBAudio=wa)}catch(e){console.error(`_JS_Sound_Init - Web Audio API is not supported in this browser! exception: ${e}`)}},_JS_Sound_Load:function(e,t){if(0===wa.audioWebEnabled)return 0;Ta();const n={buffer:null,error:!1},r=wa.audioInstances.push(n)-1,i=jn.qO.HEAPU8.buffer.slice(e,e+t);return Date.now(),Ta(i.byteLength),wa.audioContext.decodeAudioData(i).then(e=>{Date.now();Ta((e.duration,e.sampleRate,e.length,e.numberOfChannels)),n.buffer=e}).catch(()=>{n.error=!0,console.error("_JS_Sound_Load - Decode error.")}),r},_JS_Sound_Load_PCM:function(e,t,n,r){if(0===wa.audioWebEnabled)return 0;Ta();const i={buffer:wa.audioContext.createBuffer(e,t,n),error:!1};for(let n=0;n<e;n++){const e=(r>>2)+t*n,o=i.buffer;(o.copyToChannel||function(e,t,n){const r=e.subarray(0,Math.min(e.length,this.length-(0|n)));this.getChannelData(0|t).set(r,0|n)}).apply(o,[jn.qO.HEAPF32.subarray(e,e+t),n,0])}return wa.audioInstances.push(i)-1},_JS_Sound_GetLoadState:function(e){if(0===wa.audioWebEnabled)return 2;const t=wa.audioInstances[e];return t.error?(Ta(),2):t.buffer?(Ta(),0):(Ta(),1)},_JS_Sound_Create_Channel:function(e,t){if(0===wa.audioWebEnabled)return;Ta();const n={gain:wa.audioContext.createGain(),threeD:!1,playBuffer:function(n,r,i){this.source.buffer=r;const o=this;this.source.onended=function(){var n,r,i;Ta(),e&&(n="vi",r=e,(i=[t])&&i.length?jn.qO.get("dynCall_"+n).apply(null,[r].concat(i)):jn.qO.get("dynCall_"+n).call(null,r)),o.setup()},this.source.start(n,i)},setup:function(){this.source=wa.audioContext.createBufferSource(),this.setupPanning()},setupPanning:function(){this.threeD?this.source.disconnect():this.source.connect(this.gain)}};return n.gain.connect(wa.audioContext.destination),n.setup(),wa.audioInstances.push(n)-1},_JS_Sound_Play:function(e,t,n,r){if(0===wa.audioWebEnabled)return;Ra(t,0),Ta();const i=wa.audioInstances[e],o=wa.audioInstances[t];if(i.buffer&&!i.error)try{o.playBuffer(wa.audioContext.currentTime+r,i.buffer,n)}catch(e){console.error("playBuffer error. Exception: "+e)}else Ta(i.error)},_JS_Sound_Stop:Ra,_JS_Sound_SetPaused:function(e,t){},_JS_Sound_GetLength:function(e){if(0===wa.audioWebEnabled)return 0;Ta();const t=wa.audioInstances[e],n=44100/t.buffer.sampleRate;return t.buffer.length*n},_JS_Sound_ResumeIfNeeded:function(){0!==wa.audioWebEnabled&&"suspended"===wa.audioContext.state&&(Ta(),wa.audioContext.resume())},_JS_Sound_ReleaseInstance:function(e){Ta(),wa.audioInstances[e]=null},_JS_Sound_SetLoop:function(e,t){if(0===wa.audioWebEnabled)return;wa.audioInstances[e].source.loop!==t&&(Ta(),wa.audioInstances[e].source.loop=t)},_JS_Sound_SetPosition:function(e,t,n,r){},_JS_Sound_SetLoopPoints:function(e,t,n){if(0===wa.audioWebEnabled)return;Ta();const r=wa.audioInstances[e];r.source.loopStart=t,r.source.loopEnd=n},_JS_Sound_Set3D:function(e,t){},_JS_Sound_SetListenerOrientation:function(e,t,n,r,i,o){},_JS_Sound_SetListenerPosition:function(e,t,n){},_JS_Sound_SetPitch:function(e,t){},_JS_Sound_SetVolume:function(e,t){}};var Ia=__webpack_require__(1626),Pa=__webpack_require__(5242),Da=(0,Eo.N)(function(){return Gt.A.join(an.e.USER_DATA_PATH,"__sc_internal_cache_files__","audios")}),ka=void 0;function Ma(e){return void 0===e&&(void 0===ka&&(ka=(0,Pa.i)("".concat(Date.now()))),e=ka),Gt.A.join(Da(),e)}function Fa(){!function(){var e="audio cache clean",t=Da(),n=jssdk.getFileSystemManager();n.access({path:t,success:function(){n.readdir({dirPath:t,success:function(t){var r,i;if(t&&t.files&&0!=t.files.length){var o=Ma(),a=function(t){var r=Ma(t);if(r===o)return"continue";n.rmdir({dirPath:r,recursive:!0,success:function(){Tn("".concat(e,":").concat(r))},fail:function(t){21105!=t.errNo?wn("".concat(e," failed with rmdir code: ").concat(21105)):n.unlink({filePath:r,success:function(){Cn("".concat(e," ").concat(r," deleted: expected directory, removed file instead."))},fail:function(t){wn("".concat(e," ").concat(r," delete failed with code ").concat(t.errNo,"."))}})}})};try{for(var s=(0,l.Ju)(t.files),u=s.next();!u.done;u=s.next()){a(u.value)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}else Tn("".concat(e," skipped with empty cache dir."))},fail:function(t){wn("".concat(e," skipped with readdir code ").concat(null==t?void 0:t.errNo))}})},fail:function(t){21102==(null==t?void 0:t.errNo)?Cn("".concat(e," skipped.")):Cn("".concat(e," skipped with access code ").concat(null==t?void 0:t.errNo))}})}();var e=Ma(),t=jssdk.getFileSystemManager();try{t.accessSync(e)}catch(n){try{t.mkdirSync(e,!0)}catch(t){wn("setup audio cache dir ".concat(e," failed: ").concat(t))}}}"".concat(an.e.USER_DATA_PATH,"/__sc_internal_cache_files__/audios");var xa=Bt.m0,La=Bt.un,Na=44100,Ba=__webpack_require__(3987),Ua=function(){function e(e,t,n){this.error=!1,this.length=0,this.url=void 0,this._bufferLength=0,this._estimatedLength=0;var r=(0,Ba.h32)(e,0).toString(16),i="".concat(Ma(),"/buffer_audio_").concat(r,".mp3");!function(e){try{return jssdk.getFileSystemManager().accessSync(e),!0}catch(e){}return!1}(i)&&!function(e,t){try{return t.byteLength,jssdk.getFileSystemManager().writeFileSync(e,t),!0}catch(n){wn("write file (".concat(t.byteLength," bytes -> ").concat(e,") error: ").concat(n))}return!1}(i,e)?(this.error=!0,wn("writeFile error in CompressedSoundClip contructor. ".concat(t,":").concat(n))):(this.url=i,this._bufferLength=n,Sn.audioBufferLength+=n),this._estimatedLength=Math.round(2.76*n)}return e.prototype.release=function(){Sn.audioBufferLength-=this._bufferLength,delete this.url},e.prototype.getLength=function(){return this.length>0?this.length:this._estimatedLength},e.prototype.setLength=function(e){e<=0||(this.length=Math.round(e*Na))},e.prototype.getData=function(e,n){return t.vn.warn("getData() is not supported for CompressedSoundClip."),0},e.prototype.getNumberOfChannels=function(){return t.vn.warn("getNumberOfChannels() is not supported for CompressedSoundClip."),0},e.prototype.getFrequency=function(){return t.vn.warn("getFrequency() is not supported for CompressedSoundClip."),0},e}(),ja=function(){function e(e,t,n){this.error=!1,this.length=0,this.url=void 0,this.buffer=e,this.error=t}return e.prototype.release=function(){this.buffer=null,Sn.audioBufferLength-=this.length},e.prototype.getLength=function(){if(!this.buffer)return 0;var e=Na/this.buffer.sampleRate;return this.buffer.length*e},e.prototype.getData=function(e,n){if(!this.buffer)return t.vn.info("Trying to get data of sound which is not loaded."),0;for(var r=e>>2,i=jn.qO.HEAPF32.subarray(r,r+(n>>2)),o=Math.floor((n>>2)/this.buffer.numberOfChannels),a=Math.min(this.buffer.length,o),s=0;s<this.buffer.numberOfChannels;s++){var u=this.buffer.getChannelData(s).subarray(0,a);i.set(u,s*a)}return a*this.buffer.numberOfChannels*4},e.prototype.getNumberOfChannels=function(){return this.buffer?this.buffer.numberOfChannels:(t.vn.info("Trying to get metadata of sound which is not loaded."),0)},e.prototype.getFrequency=function(){return this.buffer?this.buffer.sampleRate:(t.vn.info("Trying to get metadata of sound which is not loaded."),0)},e}(),Va=__webpack_require__(963),Ha=0,Wa=["Play","Stop","Ended","Error","Pause","Seeked","Canplay","Waiting","Seeking","TimeUpdate"],qa=function(e){var t=++Ha,n=Sn.audioCache.length>0?Sn.audioCache.shift():Nn().createInnerAudioInstance(e);return n&&(Sn.innerAudioInstances[t]=n),{id:t,audio:n}},Ga=function(e,t){var n,r;if(e){var i=Sn.innerAudioInstances[e];try{for(var o=(0,l.Ju)(Wa),a=o.next();!a.done;a=o.next()){var s=a.value,u="off".concat(s);"function"==typeof i[u]&&i[u]()}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(!t||Sn.audioCache.length>=16)i.stop(),setTimeout(function(){i.destroy()},1e3);else{var c={startTime:0,obeyMuteSwitch:!0,volume:1,autoplay:!1,loop:!1,referrerPolicy:""};Object.keys(c).forEach(function(t){try{Sn.innerAudioInstances[e][t]=c[t]}catch(n){wn("destroyInnerAudio error: ".concat(e," ").concat(t))}}),i.stop(),setTimeout(function(){Sn.audioCache.push(i)},1e3)}delete Sn.innerAudioInstances[e]}},Ka=function(){function e(e,t){this.threeD=!1,this.panner=null,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.pitch=1,this.__instanceId=0,Sn.audioContext&&(this.gain=Sn.audioContext.createGain(),this.gain&&this.gain.connect(Sn.audioContext.destination)),this.callback=e,this.userData=t}return e.prototype.printChannelLog=function(e){"[channel] C[".concat(this.__instanceId,"] ").concat(e)},e.prototype.printChannelError=function(e){wn("[channel] C[".concat(this.__instanceId,"] ").concat(e))},e.prototype.setup=function(e){var t=this;if(Sn.audioContext){if(this.source&&!this.source.isPausedMockNode&&(this.source.url?void 0===e?(void 0!==this.source&&this.source._reset(),this.disconnectSource()):(this.source._reset(),this.disconnectSource()):void 0!==e&&this.stop(0)),e){var n=qa(e),r=n.audio,i=n.id,o=function(){t.source&&(t.source.needCanPlay=!0,t.source.fixPlayTicker&&(clearTimeout(t.source.fixPlayTicker),delete t.source.fixPlayTicker),t.source.fixPlayTicker=setTimeout(function(){t.source&&t.source.mediaElement&&t.source.needCanPlay&&!t.source.isPlaying&&t.source.mediaElement.play()},100))},a=function(){if(t.source&&t.source.mediaElement){var e=function(){if(t.source){if(t.source.needCanPlay=!1,t.source.readyToPlay=!0,void 0!==t.source.mediaElement){t.source.mediaElement.duration;t.source.canPlayFnList.forEach(function(e){var n,r;null===(r=null===(n=t.source)||void 0===n?void 0:n.mediaElement)||void 0===r||r.offCanplay(e)}),t.source.canPlayFnList=[]}t.source.stopCache?(t.source.stopCache=!1,t.source.playAfterStop=!0):t.source.isPlaying||(xa()&&o(),void 0!==t.source.mediaElement&&t.source.mediaElement.play())}};t.source.canPlayFnList||(t.source.canPlayFnList=[]),t.source.canPlayFnList.push(e),t.source.mediaElement.onCanplay(e),o()}};this.source={instanceId:i,mediaElement:r,url:e,playbackStartTimeValue:0,playbackRate:1,pauseRequested:!1,_reset:function(){t.source&&(t.source.readyToPlay=!1,t.source.isPlaying=!1,t.source.stopCache=!1,t.source.playAfterStop=!1,t.source.needCanPlay=!1,t.source.stopTicker&&(clearTimeout(t.source.stopTicker),t.source.stopTicker=void 0))},_pauseMediaElement:function(){void 0!==t.source?t.source.playTimeout?t.source.pauseRequested=!0:t.source.isPlaying&&t.source.mediaElement&&t.source.mediaElement.pause():t.printChannelError("_pauseMediaElement() fail: typeof this.source === 'undefined'")},_startPlayback:function(e){if(void 0!==t.source&&t.source.mediaElement){if(t.source.playTimeout)return"function"==typeof t.source.mediaElement.seek?t.source.mediaElement.seek(e):t.source.mediaElement.currentTime=e,void(t.source.pauseRequested=!1);a(),"function"==typeof t.source.mediaElement.seek?t.source.mediaElement.seek(e):t.source.mediaElement.currentTime=e}},start:function(e,n){if(void 0!==t.source)if(void 0!==e||void 0!==n){void 0===e&&(e=0),void 0===n&&(n=0);var r=1e3*e;r>4?(t.source.playTimeout&&clearTimeout(t.source.playTimeout),t.source.playTimeout=setTimeout(function(){void 0!==t.source&&(delete t.source.playTimeout,t.source._startPlayback(n||0))},r)):t.source._startPlayback(n)}else a()},stop:function(e){if(void 0!==t.source){void 0===e&&(e=0);var n=1e3*e;n>4?setTimeout(function(){t.source&&t.source.mediaElement&&(t.source.stopCache=!0,t.source.mediaElement.stop())},n):t.source.mediaElement&&(t.source.stopCache=!0,t.source.mediaElement.stop())}}};r.buffered,r.referrerPolicy,r.volume;var s=this.source;Object.defineProperty(this.source,"loopStart",{get:function(){return 0},set:function(e){}}),Object.defineProperty(s,"loopEnd",{get:function(){return 0},set:function(e){}}),Object.defineProperty(s,"loop",{get:function(){var e,t;return null!==(t=null===(e=null==s?void 0:s.mediaElement)||void 0===e?void 0:e.loop)&&void 0!==t&&t},set:function(e){s&&s.mediaElement&&(s.mediaElement.loop=e)}}),Object.defineProperty(s,"playbackRateValue",{get:function(){var e;return null!==(e=null==s?void 0:s.playbackRate)&&void 0!==e?e:1},set:function(e){s&&s.mediaElement&&(s.mediaElement.playbackRate=1)}}),Object.defineProperty(s,"playbackStartTimeValue",{get:function(){var e;return null!==(e=null==s?void 0:s.playbackStartTime)&&void 0!==e?e:0},set:function(e){s&&(s.playbackStartTime=e)}}),Object.defineProperty(s,"currentTime",{get:function(){var e,t;return null!==(t=null===(e=null==s?void 0:s.mediaElement)||void 0===e?void 0:e.currentTime)&&void 0!==t?t:0},set:function(e){s&&s.mediaElement&&("function"==typeof s.mediaElement.seek?s.mediaElement.seek(e):s.mediaElement.currentTime=e)}})}else{this.source=Sn.audioContext.createBufferSource(),Sn.bufferSourceNodeLength+=1;var u=this.source;Object.defineProperty(this.source,"playbackRateValue",{get:function(){var e,t;return null!==(t=null===(e=null==u?void 0:u.playbackRate)||void 0===e?void 0:e.value)&&void 0!==t?t:1},set:function(e){u&&void 0!==u.playbackRate&&(u.playbackRate.value=e)}}),Object.defineProperty(this.source,"playbackStartTimeValue",{get:function(){var e;return null!==(e=null==u?void 0:u.playbackStartTime)&&void 0!==e?e:0},set:function(e){u&&(u.playbackStartTime=e)}}),Object.defineProperty(this.source,"loopStart",{get:function(){return 0},set:function(e){}}),Object.defineProperty(u,"loopEnd",{get:function(){return 0},set:function(e){}})}this.source&&(this.source.estimatePlaybackPosition=function(){return t.source?Sn.audioContext?(Sn.audioContext.currentTime-t.source.playbackStartTimeValue)*t.source.playbackRateValue:-t.source.playbackStartTimeValue*t.source.playbackRateValue:0},this.source.setPitch=function(e){if(t.pitch=e,!t.source)return 0;var n=t.source.estimatePlaybackPosition();n>=0&&Sn.audioContext&&(t.source.playbackStartTimeValue=Sn.audioContext.currentTime-n/e),t.source.playbackRateValue=e},this.setupPanning())}},e.prototype.setupPanning=function(){var e=this.source;void 0!==e&&(e.isPausedMockNode||e.connect&&e.disconnect&&(e.disconnect(),this.gain&&e.connect(this.gain)))},e.prototype.release=function(){var e,t;this.disconnectSource(),null===(e=this.gain)||void 0===e||e.disconnect(),null===(t=this.panner)||void 0===t||t.disconnect()},e.prototype.playUrl=function(e,t,n,r,i){var o=this;try{if(this.setup(t),!this.source||!this.source.mediaElement)return;void 0!==r&&(this.source.mediaElement.volume=r),this.source.mediaElement.onPlay(function(){if(void 0!==o.source&&(o.source.isPlaying=!0,!o.source.loop&&o.source.mediaElement)){var e=o.source.mediaElement.duration;if(e){o.source.stopTicker&&(clearTimeout(o.source.stopTicker),o.source.stopTicker=void 0);var t=Math.floor(1e3*e)+1e3;o.source.stopTicker=setTimeout(function(){o.source&&o.source.mediaElement&&o.source.mediaElement.stop()},t)}}}),this.source.mediaElement.onPause(function(){void 0!==o.source&&(o.source.isPlaying=!1,o.source.stopTicker&&(clearTimeout(o.source.stopTicker),o.source.stopTicker=void 0))}),this.source.mediaElement.onStop(function(){if(!o.source.mediaElement.isSeekingRequested&&void 0!==o.source){if(o.source.playAfterStop)return o.source._reset(),void(void 0!==o.source.mediaElement&&o.source.mediaElement.play());o.source._reset(),o.disconnectSource()}}),this.source.mediaElement.onEnded(function(){void 0!==o.source&&(o.source._reset(),o.disconnectSource()),o.callback&&(0,Va.Q)("vi",o.callback,[o.userData])}),this.source.mediaElement.onError(function(e){o.printChannelError(e);var t=e.errMsg;t&&t.indexOf("play audio fail")<0||void 0!==o.source&&o.source.mediaElement&&(o.source._reset(),o.source.mediaElement.stop())});var a=function(){if(void 0!==o.source&&o.source.mediaElement){var e=o.source.mediaElement.duration;setTimeout(function(){i&&"function"==typeof i.setLength&&i.setLength.call(i,e),xa()&&o.source.mediaElement.seek(n%e)},0)}};if("function"==typeof this.source.mediaElement.onDurationChanged){this.source.mediaElement.onDurationChanged.call(this.source.mediaElement,function(e){i&&"function"==typeof i.setLength&&i.setLength.call(i,e)})}this.source.canPlayFnList||(this.source.canPlayFnList=[]),this.source.canPlayFnList.push(a),this.source.mediaElement.onCanplay(a),this.source.start(e,n),this.source.playbackStartTimeValue=Sn.audioContext.currentTime+e-n/this.source.playbackRateValue,this.source.setPitch(this.pitch)}catch(e){this.printChannelError("playUrl error. Exception: ".concat(e))}},e.prototype.playBuffer=function(e,t,n){var r=this;try{if(this.setup(),!this.source)return;this.source.buffer=t,this.source.onended=function(){r.disconnectSource(),r.callback&&(0,Va.Q)("vi",r.callback,[r.userData])},isNaN(e)&&(e=Sn.audioContext.currentTime),isNaN(n)&&(n=0),this.source.start(e,n),this.source.connect(this.gain),this.gain.connect(Sn.audioContext.destination),this.source.playbackStartTimeValue=e-n/this.source.playbackRateValue,this.source.setPitch(this.pitch)}catch(e){this.printChannelError("playBuffer error. Exception: ".concat(e))}},e.prototype.disconnectSource=function(){this.source&&(this.source.mediaElement?(Ga(this.source.instanceId,!1),delete this.source.mediaElement,delete this.source):this.source.isPausedMockNode?this.source.buffer=null:(this.source.onended=null,this.source.disconnect&&this.source.disconnect(),La()&&(this.source.buffer=null),Sn.bufferSourceNodeLength-=1,delete this.source))},e.prototype.stop=function(e){if(Sn.audioContext&&this.source)if(this.source.buffer){try{this.source.stop(Sn.audioContext.currentTime+e)}catch(e){}0===e&&this.disconnectSource()}else this.source.mediaElement&&this.source.stop(e)},e.prototype.pause=function(){var e=this.source;if(e){if(e.mediaElement)e._pauseMediaElement();else if(!e.isPausedMockNode){var t={isPausedMockNode:!0,loop:e.loop,loopStart:e.loopStart,loopEnd:e.loopEnd,buffer:e.buffer,playbackRate:e.playbackRateValue,playbackPausedAtPosition:e.estimatePlaybackPosition(),setPitch:function(e){this.playbackRate=e},_reset:function(){}};this.stop(0),this.disconnectSource(),this.source=t}}else this.printChannelError("pause() fail: !source")},e.prototype.resume=function(){if(Sn.audioContext&&this.source)if(this.source.mediaElement)this.source.start();else{var e=this.source;if(e.isPausedMockNode&&(delete this.source,e.buffer)){this.playBuffer(Sn.audioContext.currentTime-Math.min(0,e.playbackPausedAtPosition),e.buffer,Math.max(0,e.playbackPausedAtPosition));var t=this.source;t&&(t.loop=e.loop,t.loopStart=e.loopStart,t.loopEnd=e.loopEnd,t.setPitch(e.playbackRate))}}},e.prototype.setVolume=function(e){Sn.audioContext&&this.source&&(this.source.buffer&&this.gain?"function"==typeof this.gain.gain.setValueAtTime?this.gain.gain.setValueAtTime(e,Sn.audioContext.currentTime):this.gain.gain.value=e:this.source.mediaElement&&(this.source.mediaElement.volume=e))},e.prototype.isPaused=function(){var e;return!this.source||(!!this.source.isPausedMockNode||!!this.source.mediaElement&&(null===(e=this.source.mediaElement.paused||this.source.pauseRequested)||void 0===e||e))},e.prototype.isStopped=function(){return!this.source},e}();const Ja=Na;function Xa(e,t,n){return new ja(e,t,n)}let za=-1,Ya=-1,Za=!1;function Qa(){return!!~["suspended","interrupted"].indexOf(Sn.audioContext.state)}function $a(){try{Sn.audioContext&&Sn.audioContext.suspend&&"suspended"!==Sn.audioContext.state&&(Sn.audioContext.suspend(),clearTimeout(za),za=setTimeout(()=>{Za&&"suspended"!==Sn.audioContext.state&&$a()},100))}catch(e){Cn(`suspend audio exception, reason: ${e}`)}}function es(){try{Sn.audioContext&&Sn.audioContext.resume&&Qa()&&(clearTimeout(Ya),Sn.audioContext.resume().then(()=>{clearTimeout(Ya)}).catch(e=>{Cn(`unable to resume audio, reason: ${e}`)}),Ya=setTimeout(()=>{!Za&&Qa()&&es()},100))}catch(e){Cn(`resume audio exception, reason: ${e}`)}}function ts(e,t){0!==Sn.audioWebEnabled&&Sn.audioInstances[e].stop(t)}const ns={_JS_Sound_Init:function(){try{An,Sn.audioContext=Nn().getAudioContext(),Sn.audioWebEnabled=1,jssdk.onShow(e=>{Za=!1,jn.qO&&jn.qO.isMainCalled&&es()}),jssdk.onHide(()=>{Za=!0,jn.qO&&jn.qO.isMainCalled&&$a()})}catch(e){alert("Web Audio API is not supported in this browser")}},_JS_Sound_Load:function(e,t,n){if(!Sn.audioContext)return 0;if(0==Sn.audioWebEnabled)return 0;var r=jn.qO.HEAPU8.buffer.slice(e,e+t);n=t>131072?0:1;const i=++Sn.audioInstanceIdCounter;let o;return o=n?function(e,t,n){const r=Xa(null,!1,n);return Nn().decodeAudioData(e,e=>{r.buffer=e,r.length=n,Sn.audioBufferLength+=n},e=>{r.error=!0,wn(`Decode error: ${e}`)}),r}(r,0,t):function(e,t,n){return new Ua(e,t,n)}(r,e,t),Sn.audioInstances[i]=o,i},_JS_Sound_Load_PCM:function(e,t,n,r){if(!Sn.audioContext)return 0;if(0===Sn.audioWebEnabled)return 0;const i=function(e,t,n,r){if(Sn.audioContext){const i=Sn.createBuffer(e,t,n);for(let n=0;n<e;n++){const e=(r>>2)+t*n;(i.copyToChannel||function(e,t,n){const r=e.subarray(0,Math.min(e.length,i.length-(0|n)));i.getChannelData(0|t).set(r,0|n)}).apply(i,[jn.qO.HEAPF32.subarray(e,e+t),n,0])}return Xa(i,!1,t)}return Xa(null,!1,t)}(e,t,n,r);return Sn.audioInstances[++Sn.audioInstanceIdCounter]=i,Sn.audioInstanceIdCounter},_JS_Sound_GetLoadState:function(e){if(0==Sn.audioWebEnabled)return 2;var t=Sn.audioInstances[e];return!t||t.error?(wn(`sound B[${e}] get load state return 2: ${t} | ${t&&t.error}`),2):t.buffer||t.url?0:1},_JS_Sound_Create_Channel:function(e,t){if(Sn.audioContext&&0!=Sn.audioWebEnabled){var n=new Ka(e,t);return Sn.audioInstances[++Sn.audioInstanceIdCounter]=n,n.__instanceId=Sn.audioInstanceIdCounter,Sn.audioInstanceIdCounter}},_JS_Sound_Play:function(e,t,n,r){if(ts(t,0),0!==Sn.audioWebEnabled){var i=Sn.audioInstances[e],o=Sn.audioInstances[t];if(i.url)try{o.playUrl(r,i.url,n,Sn.soundVolumeHandler[t],i)}catch(e){wn("playUrl error. Exception: "+e)}else if(i.buffer)try{o.playBuffer(Sn.audioContext.currentTime+r,i.buffer,n)}catch(e){wn("playBuffer error. Exception: "+e)}else Cn("Trying to play sound which is not loaded.")}},_JS_Sound_Stop:ts,_JS_Sound_SetPaused:function(e,t){if(0!==Sn.audioWebEnabled){var n=Sn.audioInstances[e];!!t!==n.isPaused()&&(t?n.pause():n.resume())}},_JS_Sound_GetLength:function(e){if(0===Sn.audioWebEnabled)return Ja;var t=Sn.audioInstances[e];if(!t)return Cn(`sound B[${e}] get length failed: sound clip is null -> default 44100`),Ja;const n=t.getLength();if(!isFinite(n)||isNaN(n)||n<=0)return Ja;const r=2147483647;return n>r?r:n},_JS_Sound_ResumeIfNeeded:function(){Sn.audioContext&&0!==Sn.audioWebEnabled&&"suspended"===Sn.audioContext.state&&Sn.audioContext.resume()},_JS_Sound_ReleaseInstance:function(e){if(0!==Sn.audioWebEnabled){var t=Sn.audioInstances[e];t&&t.release(),delete Sn.audioInstances[e]}},_JS_Sound_SetLoop:function(e,t){if(0!==Sn.audioWebEnabled){var n=Sn.audioInstances[e];n.source||n.setup(),n.source.loop=t>0}},_JS_Sound_SetPosition:function(e,t,n,r){},_JS_Sound_SetLoopPoints:function(e,t,n){if(0!==Sn.audioWebEnabled){var r=Sn.audioInstances[e];r.source||r.setup();var i=r.source;i.loopStart=t,i.loopEnd=n}},_JS_Sound_Set3D:function(e,t){},_JS_Sound_SetListenerOrientation:function(e,t,n,r,i,o){},_JS_Sound_SetListenerPosition:function(e,t,n){},_JS_Sound_SetPitch:function(e,t){if(0!==Sn.audioWebEnabled)try{Sn.audioInstances[e].source?.setPitch(t)}catch(n){console.error("JS_Sound_SetPitch(channel="+e+", pitch="+t+") threw an exception: "+n)}},_JS_Sound_SetVolume:function(e,t){if(0!=Sn.audioWebEnabled)try{const n=Number(t.toFixed(2)),r=Sn.soundVolumeHandler[e];if(r===n)return;if(void 0===r&&1==t)return;Sn.soundVolumeHandler[e]=n;Sn.audioInstances[e].setVolume(n)}catch(n){wn("JS_Sound_SetVolume(channel="+e+", volume="+t+") threw an exception: "+n)}},_JS_Sound_IsStopped:function(e){if(0===Sn.audioWebEnabled)return!0;var t=Sn.audioInstances[e];return!t||t.isStopped()},_JS_Sound_GetMetaData:function(e,t){if(0==Sn.audioWebEnabled)return jn.qO.HEAPU32[t>>2]=0,jn.qO.HEAPU32[1+(t>>2)]=0,!1;var n=Sn.audioInstances[e];return n?(jn.qO.HEAPU32[t>>2]=n.getNumberOfChannels(),jn.qO.HEAPU32[1+(t>>2)]=n.getFrequency(),!0):(jn.qO.HEAPU32[t>>2]=0,jn.qO.HEAPU32[1+(t>>2)]=0,!1)},_JS_Sound_GetData:function(e,t,n){if(0==Sn.audioWebEnabled)return 0;var r=Sn.audioInstances[e];return r?r.getData(t,n):0}},rs=ns;var is=function(){function e(){var e=this;this.confirmType="done",this.maxLength=0,this.multiple=!1,this.value="",this.hasExistingMobileInput=!1,this.onKeyboardInput=function(t){e.value=t.value},this.onKeyboardConfirm=function(t){e.value=t.value,ss(!1)},this.onKeyboardComplete=function(t){e.offKeyboardEvents(),e.value=t.value,e.hasExistingMobileInput=!1}}return Object.defineProperty(e,"Instance",{get:function(){return this._instance||(this._instance=new e),this._instance},enumerable:!1,configurable:!0}),e.prototype.show=function(){jssdk.showKeyboard({defaultValue:this.value,maxLength:this.maxLength>0?this.maxLength:1048576,multiple:!!this.multiple,confirmHold:!1,confirmType:this.confirmType}),this.onKeyboardEvents(),this.hasExistingMobileInput=!0},e.prototype.hide=function(){jssdk.hideKeyboard({})},e.prototype.onKeyboardEvents=function(){jssdk.onKeyboardInput(this.onKeyboardInput),jssdk.onKeyboardConfirm(this.onKeyboardConfirm),jssdk.onKeyboardComplete(this.onKeyboardComplete)},e.prototype.offKeyboardEvents=function(){jssdk.offKeyboardInput(this.onKeyboardInput),jssdk.offKeyboardConfirm(this.onKeyboardConfirm),jssdk.offKeyboardComplete(this.onKeyboardComplete)},e}(),os=null,as=!1;function ss(e){if(!os)if(as=!0,e){os=setTimeout(t,200)}else t();function t(){is.Instance.hasExistingMobileInput&&is.Instance.hide(),os=null,setTimeout(function(){as=!1},100)}}const us={_JS_MobileKeybard_GetIgnoreBlurEvent:function(){return as},_JS_MobileKeyboard_GetKeyboardStatus:function(){return is.Instance.hasExistingMobileInput?0:1},_JS_MobileKeyboard_GetText:function(e,t){return e&&jn.qO.stringToUTF8(is.Instance.value,e,t),jn.qO.lengthBytesUTF8(is.Instance.value)},_JS_MobileKeyboard_GetTextSelection:function(e,t){jn.qO.HEAP32[e>>2]=is.Instance.value.length,jn.qO.HEAP32[t>>2]=0},_JS_MobileKeyboard_Hide:ss,_JS_MobileKeyboard_SetCharacterLimit:function(e){is.Instance.maxLength=e},_JS_MobileKeyboard_SetText:function(e){is.Instance.hasExistingMobileInput&&(is.Instance.value=jn.qO.UTF8ToString(e))},_JS_MobileKeyboard_SetTextSelection:function(e,t){},_JS_MobileKeyboard_Show:function(e,t,n,r,i,o,a,s){os&&(clearTimeout(os),os=null);var u=is.Instance;u.hasExistingMobileInput&&u.multiple!==!!r?ss(!1):(u.value=jn.qO.UTF8ToString(e),u.multiple=!!r,u.maxLength=s,u.show())}};var cs=__webpack_require__(9093),ls=__webpack_require__(9225),ds=function(){function e(){this.subWasmInstantiateStatus="",this.subWasmPipelineStart=ls.R,this.subWasmDownloadStart=ls.R,this.subWasmDownloadEnd=ls.R,this.subWasmDecompressStart=ls.R,this.subWasmDecompressEnd=ls.R,this.subWasmInstantiateStart=ls.R,this.subWasmInstantiateEnd=ls.R}return e.prototype.startSubWasmProcessPipeline=function(e){this.isSync=e,this.subWasmPipelineStart=Date.now()},e.prototype.reportInstantiateSubWasmBeginTimeline=function(){(0,ls.N)("fe_sub_wasm_instantiate_begin",{sub_wasm_process_start:this.subWasmPipelineStart},{na_is_sync:this.isSync})},e.prototype.reportInstantiateSubWasmEndTimeline=function(){this.subWasmSourceStatus=this.subWasmDownloadEnd!==ls.R&&this.subWasmDownloadStart!==ls.R?"normal":"local",(0,ls.N)("fe_sub_wasm_instantiate_end",{sub_wasm_instantiate_status:this.subWasmInstantiateStatus,sub_wasm_download_start:this.subWasmDownloadStart,sub_wasm_download_end:this.subWasmDownloadEnd,sub_wasm_decompress_start:this.subWasmDecompressStart,sub_wasm_decompress_end:this.subWasmDecompressEnd,sub_wasm_instantiate_start:this.subWasmInstantiateStart,sub_wasm_instantiate_end:this.subWasmInstantiateEnd},{na_sub_wasm_source:this.subWasmSourceStatus})},e.prototype.setInstantiateSubWasmFailed=function(e){this.subWasmInstantiateStatus=e},e.prototype.startDownloadSubWasm=function(){this.subWasmDownloadStart=Date.now()},e.prototype.endDownloadSubWasm=function(){this.subWasmDownloadEnd=Date.now()},e.prototype.startDecompressSubWasm=function(){this.subWasmDecompressStart=Date.now()},e.prototype.endDecompressSubWasm=function(){this.subWasmDecompressEnd=Date.now()},e.prototype.startInstantiateSubWasm=function(){this.subWasmInstantiateStart=Date.now()},e.prototype.endAndReportInstantiateSubWasm=function(){""===this.subWasmInstantiateStatus&&(this.subWasmInstantiateEnd=Date.now()),this.reportInstantiateSubWasmBeginTimeline(),this.reportInstantiateSubWasmEndTimeline()},e}(),fs=function(){function e(){this.wasmInfo=new Array;var e=(0,He.W)().onNative;"function"==typeof e&&e("onAppEnterBackground",this.reportIntoTimeline.bind(this))}return e.prototype.addWasmInfo=function(e){this.wasmInfo.push(e)},e.prototype.reportIntoTimeline=function(){(0,ls.N)("fe_load_wasm_info",{wasm_info:this.wasmInfo})},e}(),hs=null;function ps(){return hs||(hs=new fs),hs}var ms=function(n){function r(){var e=n.call(this)||this;return e.subWasmInstantiateCalled=!1,e.subWasmReporter=new ds,e.subCodePreparePromise=null,e}return(0,l.C6)(r,n),r.prototype.instantiateSubWasm=function(n){var r,i=this;if(void 0===n&&(n=!0),ps().addWasmInfo({name:null!==(r=e.u.subWasm.url.split("/").pop())&&void 0!==r?r:"",timestamp:Date.now(),isSync:n}),this.subWasmReporter.startSubWasmProcessPipeline(n),!this.subWasmBinary){if(!n)return!1;if(t.Am.info("wait for sub wasm ready..."),this.subCodePreparePromise&&this.waitForSubCodePrepare(),!this.subWasmBinary){var o="Failed to load sub wasm binary: subpackage ".concat(e.u.subWasm.subpackage," download failed");throw t.Am.error(o),new Error(o)}}var a=this.subWasmBinary;t.Am.info("sub wasm has ready..."),this.subWasmInstantiateCalled=!0;var s=Date.now();this.subWasmReporter.startInstantiateSubWasm();var u=!1;if(function(){if(!(0,Bt.m0)())return!1;var e=tt.getSystemInfoSync().version.split("."),t=100*parseInt(e[0]||"0",10)+10*parseInt(e[1]||"0",10);return t>=4340&&t<4360}()){try{t.Am.info("using sync instantiate for sub wasm");var c=new sn.T.Module(a);new sn.T.Instance(c,this.importObject);var l=Date.now()-s;t.Am.info("sub wasm sync instantiate success, cost:",l,"ms"),this.subWasmReporter.endAndReportInstantiateSubWasm(),this.setSubWasmLoaded(),u=!0}catch(e){t.Am.error("sub wasm sync instantiate failed:",e),this.subWasmReporter.setInstantiateSubWasmFailed(e),(0,cs.M)(e),this.subWasmReporter.endAndReportInstantiateSubWasm(),u=!1}return u}return sn.T.instantiate(a,this.importObject).then(function(){u=!0,i.subWasmReporter.endAndReportInstantiateSubWasm(),i.setSubWasmLoaded(),n&&Ca.notify()}).catch(function(e){u=!1,t.Am.error("instantiate sub wasm failed: "+e),i.subWasmReporter.setInstantiateSubWasmFailed(e),(0,cs.M)(e),n&&(i.subWasmReporter.endAndReportInstantiateSubWasm(),Ca.notify())}),!n||(Ca.wait(),u)},r.prototype.beforeCallUnityModule=function(){n.prototype.beforeCallUnityModule.call(this),this.setUnityNamespace()},r.prototype.beforeReceiveInstance=function(){this.prepareSubCode()},r.prototype.onMainCalled=function(){var r=this;if(n.prototype.onMainCalled.call(this),e.u.enableWasmSplit)var i=setInterval(function(){r.subWasmInstantiateCalled?clearInterval(i):(t.Am.info("instantiateSubWasmAsync..."),r.instantiateSubWasm(!1)&&clearInterval(i))},3e4)},r.prototype.prepareSubCode=function(){var n,r,i,o=this;if(e.u.enableWasmSplit){var a=null===(i=null===(r=null===(n=globalThis.GameGlobal)||void 0===n?void 0:n.pluginGame)||void 0===r?void 0:r.getPreloadedSubWasmBinary)||void 0===i?void 0:i.call(r);if(a&&a.byteLength>0)return t.Am.info("prepareSubCode using preloaded subWasm binary, size:",a.byteLength),this.subWasmBinary=a,void(this.subCodePreparePromise=Promise.resolve());var s=e.u.subWasm.url;this.subCodePreparePromise=new Promise(function(n){t.Am.info("prepareSubCode start download subwasm of subpackage:",e.u.subWasm.subpackage),tt.loadSubpackage({name:e.u.subWasm.subpackage,success:function(){t.Am.info("subWasm load success");try{o.subWasmBinary=rn(s,!1),t.Am.info("prepareSubCode sub wasm binary prepared from async download, size:",o.subWasmBinary.byteLength)}catch(e){t.Am.error("prepareSubCode read sub wasm binary failed after download:",e)}n()},fail:function(e){t.Am.error("prepareSubCode subpackage download failed:",e),n()}})})}},r.prototype.waitForSubCodePrepare=function(){var e=!1;this.subCodePreparePromise.then(function(){e=!0,Ca.notify()}),e||Ca.wait()},r.prototype.setUnityNamespace=function(){"object"!=typeof globalThis.UnityNamespace&&(globalThis.UnityNamespace={}),(0,Ia.i)().major>=2021?(Fa(),globalThis.UnityNamespace.UnitySoundAdapter=rs):globalThis.UnityNamespace.UnitySoundAdapter=Oa,(0,Ia.i)().major>=2022&&(globalThis.UnityNamespace.UnityMobileKeyboardAdapter=us),globalThis.UnityNamespace.UnityCachedXMLHttpRequest=sr,globalThis.UnityNamespace.UnitySystemInfo=ba;var e={SystemInfo:(0,Ea.y)()};Object.assign(globalThis,{UnityLoader:e,UnityLocalFileStore:Sa.A,UNBridge:jt.A,CachedXMLHttpRequest:sr})},r}(jn.II),_s=__webpack_require__(9115),ys=__webpack_require__(6219);(0,Eo.N)(function(){return Gt.A.join(an.e.PACKAGE_DATA_PATH,".sc_pkg")});var gs=t.Vy.getLogger("Reporter"),vs=function(){},bs=null;function Es(){try{return bs||(bs=function(){var e;return null!==(e=(0,He.W)().getAppSettings({fields:["unity_sub_js_config"]},!0))&&void 0!==e?e:{enable:!1,samplingRate:1}}()),bs.enable&&Math.random()<bs.samplingRate}catch(e){gs.error("getSubJsSamplingConfig failed:",e)}return!1}var Ss=function(){function e(){this.subJsProcessStart=ls.R,this.subJsMapDownloadStart=ls.R,this.subJsMapDownloadEnd=ls.R,this.subJsDownloadCost=ls.R,this.subJsEvalCost=ls.R,this.subJsSize=0,this.subJsCnt=0,this.subJsProcessStatus="",this.subJsSource="normal",this.subJsMapSource="normal"}return e.prototype.doesProcessStarted=function(){return this.subJsProcessStart!==ls.R},e.prototype.startSubJsProcess=function(){this.subJsProcessStart=Date.now(),this.reportSubJsProcessStart();var e=(0,He.W)().onNative;"function"==typeof e&&e("onAppEnterBackground",this.reportIntoTimeline.bind(this))},e.prototype.setSubJsMapSourceType=function(e){this.subJsMapSource=e},e.prototype.setSubJsProcessStatus=function(e){this.subJsProcessStatus=e},e.prototype.setSubJsSourceType=function(e){this.subJsSource=e},e.prototype.startSubJsMapDownload=function(){this.subJsMapDownloadStart=Date.now()},e.prototype.endSubJsMapDownload=function(){this.subJsMapDownloadEnd=Date.now()},e.prototype.addSubJsProcessInfo=function(e){var t=e.subJsDownloadCost,n=e.subJsEvalCost,r=e.subJsSize;this.subJsDownloadCost+=t,this.subJsEvalCost+=n,this.subJsSize+=r,this.subJsCnt+=1},e.prototype.reportSubJsProcessStart=function(){(0,ls.N)("fe_sub_wasm_instantiate_begin",{sub_js_process_start:this.subJsProcessStart})},e.prototype.reportSubJsProcessEnd=function(){(0,ls.N)("fe_sub_wasm_instantiate_end",{sub_js_process_status:this.subJsProcessStatus,sub_js_map_download_start:this.subJsMapDownloadStart,sub_js_map_download_end:this.subJsMapDownloadEnd,sub_js_download_cost:this.subJsDownloadCost,sub_js_eval_cost:this.subJsEvalCost,sub_js_size:this.subJsSize,sub_js_cnt:this.subJsCnt},{na_sub_js_source:this.subJsSource,na_sub_js_map_source:this.subJsMapSource})},e.prototype.reportIntoTimeline=function(){this.reportSubJsProcessEnd()},e}(),As=new Ss,Cs="subjs.data";(0,Eo.N)(function(){return{"Stark-Native-Inner-Request":"inner"}});function ws(e){var t=[];do{var n=127&e;0!==(e>>>=7)&&(n|=128),t.push(n)}while(0!==e);return t}function Ts(e,t){for(var n=0,r=0,i=t;i<e.length;){var o=e[i++];if(n|=(127&o)<<r,!(128&o))break;r+=7}return[n,i]}function Rs(e,t){return(0,l.fX)((0,l.fX)([e],(0,l.zs)(ws(t.length)),!1),(0,l.zs)(t),!1)}function Os(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n));return(0,l.fX)((0,l.fX)([],(0,l.zs)(ws(t.length)),!1),(0,l.zs)(t),!1)}var Is,Ps=function(){function e(){this.entries=[],this.bodyData=null,this.archiveBuf=null,this.tableSize=0,this.subTypeSectionBytes=null,this.subImportSectionBytes=null,this.numSubImportFuncs=0,this.injectedSlots=new Set,this.entryByTableIndex=new Map,this.typeSignatures=[],this.modulePrefix=null}return Object.defineProperty(e.prototype,"entryCount",{get:function(){return this.entries.length},enumerable:!1,configurable:!0}),e.prototype.parse=function(e,n){var r,i;try{var o=new Uint8Array(e);if(this.archiveBuf=o,this.parseArchive(o),!this.subTypeSectionBytes||!this.subImportSectionBytes){if(!n)throw new Error("archive missing embedded sections and no subWasmBin provided");this.parseSubWasmSections(new Uint8Array(n))}try{for(var a=(0,l.Ju)(this.entries),s=a.next();!s.done;s=a.next()){var u=s.value;this.entryByTableIndex.set(u.tableIndex,u)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return this.buildModulePrefix(),!0}catch(u){return t.Am.error("[ArchiveLoader] parse failed: ".concat(u)),!1}},e.prototype.fillTableWithTrampolines=function(e,t,n){var r,i,o,a,s,u,c=new Map;try{for(var d=(0,l.Ju)(this.entries),f=d.next();!f.done;f=d.next()){var h=f.value;c.has(h.typeIdx)||c.set(h.typeIdx,[]),c.get(h.typeIdx).push(h)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}var p=0;try{for(var m=(0,l.Ju)(c),_=m.next();!_.done;_=m.next()){var y=(0,l.zs)(_.value,2),g=y[0],v=y[1];try{var b=this.typeSignatures[g];if(!b){0;continue}var E=this.buildTrampolineModule(b.paramTypes,b.resultTypes,g),S=new sn.T.Module(E),A=new sn.T.Instance(S,{scwebgl:{wait:t,waitTableId:n},env:{table:e}}).exports.t;try{for(var C=(s=void 0,(0,l.Ju)(v)),w=C.next();!w.done;w=C.next()){h=w.value;try{e.set(h.tableIndex,A),p++}catch(e){}}}catch(e){s={error:e}}finally{try{w&&!w.done&&(u=C.return)&&u.call(C)}finally{if(s)throw s.error}}}catch(e){0}}}catch(e){o={error:e}}finally{try{_&&!_.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}return p},e.prototype.injectByTableIndex=function(e,n){if(this.injectedSlots.has(e))return!0;var r=this.entryByTableIndex.get(e);if(!r)return!1;try{return this.injectSingle(r,n),this.injectedSlots.add(r.tableIndex),this.entryByTableIndex.delete(e),!0}catch(n){return t.Am.error("[ArchiveLoader] inject table[".concat(e,"] failed: ").concat(n)),!1}},Object.defineProperty(e.prototype,"injectedCount",{get:function(){return this.injectedSlots.size},enumerable:!1,configurable:!0}),e.prototype.parseArchive=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=0,r=t.getUint32(n,!0);if(n+=4,1095980802!==r)throw new Error("bad archive magic: 0x".concat(r.toString(16)));var i=t.getUint32(n,!0);n+=4,this.tableSize=t.getUint32(n,!0),n+=4;var o=t.getUint32(n,!0);n+=4;var a=t.getUint32(n,!0);if(n+=4,i>=2){var s=t.getUint32(n,!0);n+=4;var u=t.getUint32(n,!0);n+=4,this.subTypeSectionBytes=e.subarray(n,n+s),this.parseTypeSignatures(this.subTypeSectionBytes,0),n+=s,this.subImportSectionBytes=e.subarray(n,n+u),this.countImportFunctions(this.subImportSectionBytes,0),n+=u}for(var c=0;c<a;c++){var l=e[n++];n+=l;var d=e[n++];n+=d}this.entries=[];for(c=0;c<o;c++){var f=t.getUint32(n,!0);n+=4;var h=t.getUint32(n,!0);n+=4;var p=t.getUint32(n,!0);n+=4;var m=t.getUint32(n,!0);n+=4,this.entries.push({tableIndex:f,bodyOffset:h,bodySize:p,typeIdx:m})}this.bodyData=e.subarray(n)},e.prototype.parseSubWasmSections=function(e){var t=8;for(this.numSubImportFuncs=0;t<e.length;){var n=e[t++],r=(0,l.zs)(Ts(e,t),2),i=r[0],o=(t=r[1])+i;if(1===n?(this.subTypeSectionBytes=e.subarray(t,o),this.parseTypeSignatures(e,t)):2===n&&(this.subImportSectionBytes=e.subarray(t,o),this.countImportFunctions(e,t)),t=o,this.subTypeSectionBytes&&this.subImportSectionBytes)break}if(!this.subTypeSectionBytes||!this.subImportSectionBytes)throw new Error("sub.wasm missing Type or Import section")},e.prototype.parseTypeSignatures=function(e,t){var n=t,r=(0,l.zs)(Ts(e,n),2),i=r[0];n=r[1],this.typeSignatures=[];for(var o=0;o<i;o++){var a=e[n++];if(96!==a)throw new Error("unexpected type form: 0x".concat(a.toString(16)));var s=(0,l.zs)(Ts(e,n),2),u=s[0];n=s[1];for(var c=[],d=0;d<u;d++)c.push(e[n++]);var f=(0,l.zs)(Ts(e,n),2),h=f[0];n=f[1];var p=[];for(d=0;d<h;d++)p.push(e[n++]);this.typeSignatures.push({paramTypes:c,resultTypes:p})}},e.prototype.countImportFunctions=function(e,t){var n=t,r=(0,l.zs)(Ts(e,n),2),i=r[0];n=r[1];for(var o=0;o<i;o++){var a=(0,l.zs)(Ts(e,n),2),s=a[0];n=a[1]+s;var u=(0,l.zs)(Ts(e,n),2),c=u[0];n=u[1]+c;var d=e[n++];if(0===d)n=(0,l.zs)(Ts(e,n),2)[1],this.numSubImportFuncs++;else if(1===d){n++;var f=e[n++];if(n=(0,l.zs)(Ts(e,n),2)[1],1&f)n=(0,l.zs)(Ts(e,n),2)[1]}else if(2===d){f=e[n++];if(n=(0,l.zs)(Ts(e,n),2)[1],1&f)n=(0,l.zs)(Ts(e,n),2)[1]}else if(3===d)n+=2;else if(4===d){n++,n=(0,l.zs)(Ts(e,n),2)[1]}}},e.prototype.buildTrampolineModule=function(e,t,n){for(var r=(0,l.fX)((0,l.fX)((0,l.fX)((0,l.fX)([2,96,1,127,0,96],(0,l.zs)(ws(e.length)),!1),(0,l.zs)(e),!1),(0,l.zs)(ws(t.length)),!1),(0,l.zs)(t),!1),i=(0,l.fX)((0,l.fX)((0,l.fX)((0,l.fX)((0,l.fX)((0,l.fX)((0,l.fX)((0,l.fX)((0,l.fX)((0,l.fX)([3],(0,l.zs)(Os("scwebgl")),!1),(0,l.zs)(Os("wait")),!1),[0],!1),(0,l.zs)(ws(0)),!1),(0,l.zs)(Os("scwebgl")),!1),(0,l.zs)(Os("waitTableId")),!1),[3,127,1],!1),(0,l.zs)(Os("env")),!1),(0,l.zs)(Os("table")),!1),[1,112,0,0],!1),o=(0,l.fX)([1],(0,l.zs)(ws(1)),!1),a=(0,l.fX)((0,l.fX)((0,l.fX)([1],(0,l.zs)(Os("t")),!1),[0],!1),(0,l.zs)(ws(1)),!1),s=(0,l.fX)((0,l.fX)((0,l.fX)([0,65],(0,l.zs)(function(e){for(var t=[],n=!0;n;){var r=127&e;0==(e>>=7)&&!(64&r)||-1===e&&64&r?n=!1:r|=128,t.push(r)}return t}(-1)),!1),[16],!1),(0,l.zs)(ws(0)),!1),u=0;u<e.length;u++)s.push.apply(s,(0,l.fX)([32],(0,l.zs)(ws(u)),!1));s.push.apply(s,(0,l.fX)([35],(0,l.zs)(ws(0)),!1)),s.push.apply(s,(0,l.fX)((0,l.fX)([17],(0,l.zs)(ws(1)),!1),(0,l.zs)(ws(0)),!1)),s.push(11);var c=(0,l.fX)((0,l.fX)([1],(0,l.zs)(ws(s.length)),!1),(0,l.zs)(s),!1);return new Uint8Array((0,l.fX)((0,l.fX)((0,l.fX)((0,l.fX)((0,l.fX)([0,97,115,109,1,0,0,0],(0,l.zs)(Rs(1,r)),!1),(0,l.zs)(Rs(2,i)),!1),(0,l.zs)(Rs(3,o)),!1),(0,l.zs)(Rs(7,a)),!1),(0,l.zs)(Rs(10,c)),!1))},e.prototype.buildModulePrefix=function(){var e=this.subTypeSectionBytes,t=this.subImportSectionBytes,n=(0,l.fX)([1],(0,l.zs)(ws(e.length)),!1),r=(0,l.fX)([2],(0,l.zs)(ws(t.length)),!1),i=8+n.length+e.length+r.length+t.length,o=new Uint8Array(i),a=0;o[a++]=0,o[a++]=97,o[a++]=115,o[a++]=109,o[a++]=1,o[a++]=0,o[a++]=0,o[a++]=0;for(var s=0;s<n.length;s++)o[a++]=n[s];o.set(e,a),a+=e.length;for(s=0;s<r.length;s++)o[a++]=r[s];o.set(t,a),this.modulePrefix=o},e.prototype.injectSingle=function(e,t){var n=this.buildSingleModule(e),r=new sn.T.Module(n);new sn.T.Instance(r,t)},e.prototype.buildSingleModule=function(e){var t=this.numSubImportFuncs,n=this.modulePrefix,r=Rs(3,(0,l.fX)([1],(0,l.zs)(ws(e.typeIdx)),!1)),i=Rs(9,(0,l.fX)((0,l.fX)((0,l.fX)([1,0,65],(0,l.zs)(ws(e.tableIndex)),!1),[11,1],!1),(0,l.zs)(ws(t)),!1)),o=this.bodyData.subarray(e.bodyOffset,e.bodyOffset+e.bodySize),a=ws(o.length),s=ws(1+a.length+o.length),u=r.length+i.length+1+s.length+1+a.length+o.length,c=new Uint8Array(n.length+u),d=0;c.set(n,d),d+=n.length;for(var f=0;f<r.length;f++)c[d++]=r[f];for(f=0;f<i.length;f++)c[d++]=i[f];c[d++]=10;for(f=0;f<s.length;f++)c[d++]=s[f];c[d++]=1;for(f=0;f<a.length;f++)c[d++]=a[f];return c.set(o,d),c},e}(),Ds=function(n){function r(){var e=n.call(this)||this;e.subWasmInstantiateCalled=!1,e.wasm2jsMap=new Map,e.functionTable=[],e.eval=gt.lQ,e.subCodePreparePromise=null,e.subJsData=null,e.subJsFromBytesRange={},e.useArchiveMode=!1,e.archiveLoader=null;var t=(0,He.W)().getWebviewRawGlobal().developerSandbox;return e.eval=function(e){t.runScript(e,"developer/wasm/sub/js")},e}return(0,l.C6)(r,n),r.prototype.instantiateWasm=function(r,i){var o=this;if(va.Zm.feWebGLDoRunPoint.startWasmInstantiate(),e.u.enableWasmSplit){!0===e.u.enableArchiveMode&&(this.useArchiveMode=!0),this.subCodePreparePromise||this.prepareSubCode(),this.useArchiveMode||this.prepareEnvForWasmH5(r);return(0,l.sH)(o,void 0,void 0,function(){var e,o,a;return(0,l.YH)(this,function(s){switch(s.label){case 0:return this.subCodePreparePromise?[4,this.subCodePreparePromise]:[3,2];case 1:s.sent(),s.label=2;case 2:return this.useArchiveMode&&this.archiveLoader?(_s.Ay.waitTableId||(_s.Ay.waitTableId=new sn.T.Global({value:"i32",mutable:!0},0)),e=_s.Ay.waitTableId,(0,_s.eo)(this.archiveLoader,r,e)):this.useArchiveMode&&!this.archiveLoader&&t.Am.error("[wasmcode2] archive mode active but archiveLoader is null! prepareArchiveSubpackage may have failed."),Date.now(),this.wasmModule?(this.useArchiveMode||this.registerWasm2JsFunctions(this.wasmModule,r),n.prototype.instantiateWasm.call(this,r,i),[3,6]):[3,3];case 3:return s.trys.push([3,5,,6]),[4,sn.T.compile(this.mainWasmBinary)];case 4:return o=s.sent(),this.useArchiveMode||this.registerWasm2JsFunctions(o,r),this.wasmModule=o,n.prototype.instantiateWasm.call(this,r,i),[3,6];case 5:return a=s.sent(),t.Am.error("compile wasm failed, reason: ".concat(a)),[3,6];case 6:return[2]}})}),{}}return n.prototype.instantiateWasm.call(this,r,i)},r.prototype.beforeReceiveInstance=function(){var t=this;if(n.prototype.beforeReceiveInstance.call(this),e.u.enableWasmSplit&&!this.useArchiveMode){var r=null;if(Object.entries(this.asm).forEach(function(e){"function"!=typeof e[1]&&e[1]instanceof sn.T.Table&&(r=e[1]),"object"==typeof e[1]&&(t.importObject.primary[e[0]]=e[1])}),Object.entries(this.asm).forEach(function(e){"function"==typeof e[1]&&W2J_MAP.set(e[0],e[1])}),r)for(var i=0;i<r.length;++i)this.functionTable[i]=r.get(i)}},r.prototype.afterReceiveInstance=function(){var r,i,o,a,s=this;if(n.prototype.afterReceiveInstance.call(this),e.u.enableWasmSplit)if(this.useArchiveMode){if(this.archiveLoader){var u=null===(i=null===(r=this.importObject)||void 0===r?void 0:r.scwebgl)||void 0===i?void 0:i.waitTableId,c=null===(a=null===(o=this.importObject)||void 0===o?void 0:o.scwebgl)||void 0===a?void 0:a.table;if(u&&c){(0,_s.eo)(this.archiveLoader,this.importObject,u);this.archiveLoader.fillTableWithTrampolines(c,_s.Ay.wait,u)}else t.Am.error("[wasmcode2] table or waitTableId not found in importObject")}}else this.prepareMemoryForWasm2Js(),(0,ys.Yx)(function(e){s.updateMemoryForWasm2Js(e)})},r.prototype.prepareEnvForWasmH5=function(e){var t;e.env||(e.env={});var n=new ArrayBuffer(16),r=new Int32Array(n),i=new Float32Array(n),o=new Float64Array(n),a=function(e,t){r[e]=t},s=function(e){return r[e]},u=function(e){i[2]=e},c=function(){return i[2]},l=function(e){o[0]=e},d=function(){return o[0]},f={},h=function(e,t,n,r){jn.qO.HEAP8.set(f[e].subarray(n,n+r),t)},p=function(e,t,n){e>>>=0,n>>>=0;var r=jn.qO.HEAP8;if(e+n>r.length)throw"trap: invalid memory.fill";r.fill(t,e,e+n)},m=function(e,t,n){jn.qO.HEAP8.copyWithin(e,t,t+n)},_=function(e){f[e]=new Uint8Array(0)},y=function(e,t,n,r){var i=jn.qO.HEAP8;if(-1!=n||-1!=r)throw"unsupported timeout";var o=new Int32Array(i.buffer),a=Atomics.wait(o,e,t);if("ok"==a)return 0;if("not-equal"==a)return 1;if("timed-out"==a)return 2;throw"bad result "+a},g=function(e,n,r,i,o,a){var s=jn.qO.HEAP8,u=new BigInt64Array(s.buffer);i=i+r>>3;var c,l=BigInt(o>>>0)|BigInt(a>>>0)<<BigInt(32);switch(e){case 0:c=Atomics.add(u,i,l);break;case 1:c=Atomics.sub(u,i,l);break;case 2:c=Atomics.and(u,i,l);break;case 3:c=Atomics.or(u,i,l);break;case 4:c=Atomics.xor(u,i,l);break;case 5:c=Atomics.exchange(u,i,l);break;default:throw"bad op"}var d=0|Number(c&BigInt(4294967295)),f=0|Number(c>>BigInt(32)&BigInt(4294967295));return t=f,d};t=0;var v=function(){return t},b=null;e.primary={},window.wasm_split_info=e,e.asm2wasm={"f64-to-int":function(e){return 0|e}},e.env.wasm2js_scratch_load_i32=s,e.env.wasm2js_scratch_store_i32=a,e.env.wasm2js_scratch_load_f32=c,e.env.wasm2js_scratch_store_f32=u,e.env.wasm2js_scratch_load_f64=d,e.env.wasm2js_scratch_store_f64=l,e.env.wasm2js_memory_init=h,e.env.wasm2js_memory_fill=p,e.env.wasm2js_memory_copy=m,e.env.wasm2js_data_drop=_,e.env.wasm2js_atomic_wait_i32=y,e.env.wasm2js_atomic_rmw_i64=g,e.env.wasm2js_get_stashed_bits=v,e.env.__get_sub_func_id=function(e){if(null==b){var t=Gt.A.join(la,"split_main_h5.wasm.sub_elem.json"),n=Xt.fs.readFileSync(t,"utf8");if(n){var r=JSON.parse(n);Array.isArray(r)||(r=[]),b=r.map(function(e){return+e.slice(1)})}}return e<0||e>=b.length?0:b[e]};var E=window;E.wasm2js_scratch_load_i32=s,E.wasm2js_scratch_store_i32=a,E.wasm2js_scratch_load_f32=c,E.wasm2js_scratch_store_f32=u,E.wasm2js_scratch_load_f64=d,E.wasm2js_scratch_store_f64=l,E.wasm2js_memory_init=h,E.wasm2js_memory_fill=p,E.wasm2js_memory_copy=m,E.wasm2js_data_drop=_,E.wasm2js_atomic_wait_i32=y,E.wasm2js_atomic_rmw_i64=g,E.wasm2js_get_stashed_bits=v,E.w2jStub=this.wasm2JsStub.bind(this),E.W2J_MAP=this.wasm2jsMap,E.FUNCTION_TABLE=this.functionTable,E.Math_abs=Math.abs,E.Math_cos=Math.cos,E.Math_sin=Math.sin,E.Math_sqrt=Math.sqrt,E.Math_ceil=Math.ceil,E.Math_floor=Math.floor,E.Math_pow=Math.pow,E.Math_min=Math.min,E.Math_max=Math.max,E.Math_fround=Math.fround,E.Math_imul=Math.imul,E.Math_clz32=Math.clz32,E.Math_trunc=Math.trunc,E.nan=NaN},r.prototype.prepareMemoryForWasm2Js=function(){var e=window;e.EMSCRIPTEN_HEAP8=e.HEAP8=jn.qO.HEAP8,e.EMSCRIPTEN_HEAP16=e.HEAP16=jn.qO.HEAP16,e.EMSCRIPTEN_HEAP32=e.HEAP32=jn.qO.HEAP32,e.EMSCRIPTEN_HEAPU8=e.HEAPU8=jn.qO.HEAPU8,e.EMSCRIPTEN_HEAPU16=e.HEAPU16=jn.qO.HEAPU16,e.EMSCRIPTEN_HEAPU32=e.HEAPU32=jn.qO.HEAPU32,e.EMSCRIPTEN_HEAPF32=e.HEAPF32=jn.qO.HEAPF32,e.EMSCRIPTEN_HEAPF64=e.HEAPF64=jn.qO.HEAPF64,e.__wasm_memory_size=function(){return jn.qO.HEAP8.buffer.byteLength/65536|0}},r.prototype.updateMemoryForWasm2Js=function(e){var n=null==e?void 0:e.buffer;if(n){var r=window;r.EMSCRIPTEN_HEAP8=r.HEAP8=new Int8Array(n),r.EMSCRIPTEN_HEAP16=r.HEAP16=new Int16Array(n),r.EMSCRIPTEN_HEAP32=r.HEAP32=new Int32Array(n),r.EMSCRIPTEN_HEAPU8=r.HEAPU8=new Uint8Array(n),r.EMSCRIPTEN_HEAPU16=r.HEAPU16=new Uint16Array(n),r.EMSCRIPTEN_HEAPU32=r.HEAPU32=new Uint32Array(n),r.EMSCRIPTEN_HEAPF32=r.HEAPF32=new Float32Array(n),r.EMSCRIPTEN_HEAPF64=r.HEAPF64=new Float64Array(n),t.Am.warn("w2j memory redirect.")}else t.Am.error("w2j memory redirection failed: invalid wasm memory, unexpected issues may occur.")},r.prototype.getSubJsFromLocalData=function(e){if(!this.subJsData)throw new Error("subJsData is not ready - prepareSubCode must complete before wasm2js calls");var t=this.subJsFromBytesRange[e];if(!t||!Array.isArray(t)||t.length<2)throw new Error("Function ".concat(e," range not found"));var n=(0,l.zs)(t,2),r=n[0],i=n[1],o=this.subJsData.slice(r,i+1);return globalThis.TextDecoder&&"function"==typeof globalThis.TextDecoder?new globalThis.TextDecoder("utf-8").decode(o):String.fromCharCode.apply(null,Array.from(o))},r.prototype.wasm2JsStub=function(e){var n=this;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e;if(o.startsWith("$")&&(o=o.substring(1)),o.startsWith("f")){var a=parseInt(o.substring(1));"number"==typeof a&&_s.Ay.logCall(a)}if(As.doesProcessStarted()||(ps().addWasmInfo({name:Cs,timestamp:Date.now()}),As.startSubJsProcess()),!W2J_MAP.has(o))try{var s=null;Es()&&(s=new vs);var u=n.getSubJsFromLocalData(o);if(s){var c=Date.now();n.eval(u),s.subJsEvalCost=Date.now()-c,As.addSubJsProcessInfo(s)}else n.eval(u)}catch(e){var d="func: ".concat(o,", error: ").concat(e);As.setSubJsProcessStatus(d),t.Am.error(d),Wt.A.showDialog(d),(0,cs.M)(e)}return W2J_MAP.get(o).apply(void 0,(0,l.fX)([],(0,l.zs)(r),!1))}},r.prototype.wasmDynCall=function(e){var n=this;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=e[0],o="f".concat(i);if(_s.Ay.logCall(i),As.doesProcessStarted()||As.startSubJsProcess(),!W2J_MAP.has(o))try{var a=null;Es()&&(a=new vs);var s=n.getSubJsFromLocalData(o);if(a){var u=Date.now();n.eval(s),a.subJsEvalCost=Date.now()-u,As.addSubJsProcessInfo(a)}else n.eval(s)}catch(e){throw t.Am.error("func: ".concat(o,", error: ").concat(e)),Wt.A.showDialog("func: ".concat(o,", error: ").concat(e)),(0,cs.M)(e),e}return W2J_MAP.get(o).apply(void 0,(0,l.fX)([],(0,l.zs)(e.slice(1)),!1))}},r.prototype.waitForSubCodeReady=function(){return(0,l.sH)(this,void 0,void 0,function(){return(0,l.YH)(this,function(e){switch(e.label){case 0:return this.subCodePreparePromise?[4,this.subCodePreparePromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},r.prototype.registerWasm2JsFunctions=function(e,t){t.w2j=t.w2j||{};for(var n=WebAssembly.Module.imports(e),r=0;r<n.length;++r){var i=n[r];"w2j"===i.module?i.name.startsWith("dyn_")?t.w2j[i.name]=this.wasmDynCall(i.name):t.w2j[i.name]=this.wasm2JsStub(i.name):"function"==i.kind&&W2J_MAP.set("".concat(i.module,".").concat(i.name),t[i.module][i.name])}},r.prototype.instantiateSubWasm=function(){if(t.Am.debug("instantiate sub wasm..."),!this.subWasmBinary)throw Wt.A.showDialog("Wasm子包未准备好"),"exception occurred: sub wasm not ready!";this.subWasmInstantiateCalled=!0;var e=Date.now(),n=new sn.T.Module(this.subWasmBinary);new sn.T.Instance(n,this.importObject);var r=Date.now()-e;return t.Am.debug("instantiate sub wasm done, time cost: ".concat(r," ms")),this.setSubWasmLoaded(),!0},r.prototype.instantiateSubWasmAsync=function(){if(t.Am.debug("instantiate sub wasm async..."),!this.subWasmBinary)throw Wt.A.showDialog("Wasm子包未准备好"),"exception occurred: sub wasm not ready!";return this.subWasmInstantiateCalled=!0,sn.T.instantiate(this.subWasmBinary,this.importObject)},r.prototype.onMainCalled=function(){var r=this;n.prototype.onMainCalled.call(this);var i=e.u.enableWasmSplit;e.u.enableWasmSplit&&!this.subWasmInstantiateCalled&&(i||setTimeout(function(){if(!r.subWasmInstantiateCalled){t.Am.info("instantiateSubWasmAsync...");var e=Date.now();r.instantiateSubWasmAsync().then(function(){t.Am.info("instantiate sub wasm completed, time cost: ".concat(Date.now()-e," ms")),r.setSubWasmLoaded()}).catch(function(e){t.Am.error("instantiate sub wasm failed: ".concat(e))})}},15e3))},r.prototype.beforeCallUnityModule=function(){n.prototype.beforeCallUnityModule.call(this),this.setUnityNamespace()},r.prototype.setUnityNamespace=function(){"object"!=typeof globalThis.UnityNamespace&&(globalThis.UnityNamespace={}),(0,Ia.i)().major>=2021?(Fa(),globalThis.UnityNamespace.UnitySoundAdapter=rs):globalThis.UnityNamespace.UnitySoundAdapter=Bo,(0,Ia.i)().major>=2022&&(globalThis.UnityNamespace.UnityMobileKeyboardAdapter=us);var t=e.u.iOSDevicePixelRatio;(0,Bt.un)()&&"number"==typeof t&&t>0&&(jn.qO.devicePixelRatio=t),globalThis.UnityNamespace.UnityCachedXMLHttpRequest=sr,globalThis.UnityNamespace.UnitySystemInfo=ba;var n={SystemInfo:(0,Ea.y)()};Object.assign(globalThis,{UnityLoader:n,UnityLocalFileStore:Sa.A,UNBridge:jt.A,CachedXMLHttpRequest:sr})},r.prototype.prepareSubCode=function(){var n,r=this;if(e.u.enableWasmSplit&&!this.subCodePreparePromise){var i=null===(n=globalThis.GameGlobal)||void 0===n?void 0:n.pluginGame;if(i&&"function"==typeof i.logLifecycleNode&&i.logLifecycleNode("ios_subpackage_preload_start"),pa()){this.useArchiveMode=!0;var o=fa;this.subCodePreparePromise=new Promise(function(e){tt.loadSubpackage({name:o,success:function(){r.prepareArchiveSubpackage(i).then(e).catch(function(n){t.Am.error("[wasmcode2] prepareArchiveSubpackage failed: ".concat(n)),i&&"function"==typeof i.logLifecycleNode&&i.logLifecycleNode("ios_subpackage_preload_failed"),e()})},fail:function(n){t.Am.error("[wasmcode2] archive subpackage load failed: ".concat(JSON.stringify(n))),i&&"function"==typeof i.logLifecycleNode&&i.logLifecycleNode("ios_subpackage_preload_failed"),e()}})})}else{this.useArchiveMode=!1;var a=da;this.subCodePreparePromise=new Promise(function(e){tt.loadSubpackage({name:a,success:function(){r.prepareIOSSubpackage(),i&&"function"==typeof i.logLifecycleNode&&i.logLifecycleNode("ios_subpackage_preload_complete"),e()},fail:function(n){t.Am.error("subpackage download failed: ".concat(n)),i&&"function"==typeof i.logLifecycleNode&&i.logLifecycleNode("ios_subpackage_preload_failed"),e()}})})}}},r.prototype.prepareArchiveSubpackage=function(n){return(0,l.sH)(this,void 0,void 0,function(){var r,i,o,a,s,u,c;return(0,l.YH)(this,function(d){try{if(!(null==(r=e.u.archiveCode)?void 0:r.url))throw new Error("archiveCode.url is missing, ARCHIVE_CODE_FILE_MD5 may not be set in webgl-wasm-split.js");if(i=r.url,o=i.endsWith(".br")?i:"".concat(i,".br"),a=i.endsWith(".br")?i.slice(0,-3):i,s=function(e){var t,n;try{for(var r=(0,l.Ju)(e),i=r.next();!i.done;i=r.next()){var o=i.value;try{Xt.fs.accessSync(o);var a=o.endsWith(".br")?rn(o,!0):Xt.fs.readFileSync(o),s=a instanceof Uint8Array?a:new Uint8Array(a);if(!s||!s.byteLength)throw new Error("empty file");return s}catch(e){continue}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}throw new Error("[wasmcode2] archive file not found. Tried: ".concat(e.join(", ")))},u=s([o,a]),!(c=new Ps).parse(u.buffer))throw new Error("archive parse failed");this.archiveLoader=c,n&&"function"==typeof n.logLifecycleNode&&n.logLifecycleNode("ios_subpackage_preload_complete")}catch(e){t.Am.error("[wasmcode2] prepareArchiveSubpackage failed: ".concat(e)),n&&"function"==typeof n.logLifecycleNode&&n.logLifecycleNode("ios_subpackage_preload_failed")}return[2]})})},r.prototype.prepareIOSSubpackage=function(){try{var e=Xt.fs.readFileSync("wasmcode1-ios/func_bytes_range.json","utf8");this.subJsFromBytesRange=JSON.parse(e);this.subJsData=rn("wasmcode1-ios/subjs.data.br",!0)}catch(e){t.Am.error("read sub wasm binary failed after download:",e)}},r}(jn.II),ks=new(function(){function e(){this._reported=!1,this._startTime=-1,this._endTime=-1,this._preloadTaskCount=0,this._preloadLoadedCount=0,this._preloadLoadedSize=0,this._preloadFailFiles=[],this._preloadHitCacheCount=0,this._preloadLoadedCount_CallMain=0,this._preloadLoadedSize_CallMain=0}return e.prototype.isComplete=function(){return this._endTime>0},e.prototype.start=function(e){this._startTime=Date.now(),this._preloadTaskCount=e.length,Ht.registerLoadStageChangedListener(this.onLoadStageChanged.bind(this))},e.prototype.end=function(){this._endTime=Date.now(),this.report()},e.prototype.setTaskComplete=function(e,t,n){n="object"==typeof n?n:Object.create(null),t?(this._preloadLoadedCount++,this._preloadLoadedSize+="number"==typeof n.length?n.length:0,n.fromCache&&this._preloadHitCacheCount++):this._preloadFailFiles.push(e),this._preloadFailFiles.length+this._preloadLoadedCount===this._preloadTaskCount&&this.end()},e.prototype.onLoadStageChanged=function(e){var t=this;"load_completed"===e.stage&&(this._preloadLoadedCount_CallMain=this._preloadLoadedCount,this._preloadLoadedSize_CallMain=this._preloadLoadedSize,setTimeout(function(){t._reported||t.report()},1e4))},e.prototype.report=function(){this._reported=!0;var e={preload_start:this._startTime,preload_end:this._endTime,preload_task_count:this._preloadTaskCount,preload_loaded_count:this._preloadLoadedCount,preload_loaded_size:this._preloadLoadedSize,preload_callmain_loaded_count:this._preloadLoadedCount_CallMain,preload_callmain_loaded_size:this._preloadLoadedSize_CallMain,preload_fail_count:this._preloadFailFiles.length,preload_fail_files:this._preloadFailFiles.join(","),preload_hit_cache_count:this._preloadHitCacheCount,preload_result:this.isComplete()?0===this._preloadFailFiles.length?"complete":"fail":"timeout"};(0,ls.N)("fe_res_preload",e)},e}()),Ms=__webpack_require__(4394),Fs=function(){return Gt.A.join(globalThis.GameGlobal.managerConfig.DATA_CDN,"StreamingAssets")};!function(e){e[e.None=0]="None",e[e.Loading=1]="Loading",e[e.Done=2]="Done",e[e.Error=3]="Error"}(Is||(Is={}));var xs,Ls=function(){function e(e){this._loadStart=0,this._loadEnd=0,this._completeListeners=[],this._status=Is.None,this.url=e}return e.load=function(t){var n=new e(t);return n.load(),n},e.prototype.getStatus=function(){return this._status},e.prototype.setStatus=function(e){this._status!==e&&(this._status=e,this._status!==Is.Done&&this._status!==Is.Error||this.callLoadCompleteListeners())},e.prototype.load=function(){var e=this;this.setStatus(Is.Loading),this._loadStart=Date.now();var t=this.url;Ms.k7.info("PreloadManager","开始预载. ".concat(JSON.stringify({url:t})));var n=Object.create(null);n[Xn.Ay.STARK_PRELOAD_REQUEST_HEADER]="1",jn.qO.fetchWithProgress(t,{method:"GET",redirect:"follow",headers:n}).then(function(n){(0,Xn.RJ)(n.status)?e.onLoadComplete(n.parsedBody):(Ms.k7.error("PreloadManager","预载下载失败: status code(".concat(n.status,") failed. ").concat(JSON.stringify({url:t}))),e.setStatus(Is.Error))}).catch(function(n){Ms.k7.error("PreloadManager","预载下载失败: ".concat(n,". ").concat(JSON.stringify({url:t}))),e.setStatus(Is.Error)})},e.prototype.onLoadComplete=function(e){if(this._loadEnd=Date.now(),!e||!e.byteLength&&!e.length)return Ms.k7.error("PreloadManager","预载数据为空. ".concat(JSON.stringify({url:this.url})," }")),void this.setStatus(Is.Error);this._data=e,Ms.k7.info("PreloadManager","预载完成,大小: ".concat(e.byteLength," bytes,耗时: ").concat(this._loadEnd-this._loadStart,"ms. ").concat(JSON.stringify({url:this.url}))),this.setStatus(Is.Done)},e.prototype.getData=function(){return this._data&&(this._data.byteLength||this._data.length)?(Ms.k7.info("PreloadManager","使用预载资源,大小: ".concat(this._data.byteLength," bytes. ").concat(JSON.stringify({url:this.url}))),this._data):null},e.prototype.addLoadCompleteListener=function(e){this._status!==Is.Done&&this._status!==Is.Error?this._completeListeners.push(e):e()},e.prototype.callLoadCompleteListeners=function(){for(var e=0;e<this._completeListeners.length;++e)this._completeListeners[e]();this._completeListeners=[]},e.prototype.release=function(){this._status!==Is.Done&&this._status!==Is.Error||(this._data=null,Ms.k7.info("PreloadManager","预载资源已释放. ".concat(JSON.stringify({url:this.url}))))},e}(),Ns=function(){function t(){this._tasks=new Map}return t.prototype.start=function(){var t,n,r=(0,He.W)().getAppSettings({fields:["unity_preload_data"]},!0);if(void 0===r||!1!==r.switch){Ms.k7.info("PreloadManager","start load data");var i=null===(n=null===(t=globalThis.GameGlobal)||void 0===t?void 0:t.managerConfig)||void 0===n?void 0:n.preloadDataList;if(i&&0!==i.length){var o=function(){var t;return null!==(t=e.u.preloadMaxRequestCount)&&void 0!==t?t:30}();i.length>o&&(Ms.k7.warn("PreloadManager","预载资源数量超过限制(".concat(i.length,">").concat(o,"),仅加载前 ").concat(o," 个。")),i=i.slice(0,o));for(var a=0;a<i.length;++a){var s=i[a];s&&(s.startsWith("http://")||s.startsWith("https://")||(s=Gt.A.join(Fs(),s)),this.createTask(s))}ks.start(i)}else Ms.k7.info("PreloadManager","无预载资源配置,跳过预载。")}else Ms.k7.info("PreloadManager","命中对照组,不进行预加载")},t.prototype.createTask=function(t){var n=this;if(!this._tasks.has(t)){var r=Ls.load(t);r.addLoadCompleteListener(function(){var i=t.replace(Fs(),""),o=r.getStatus()!==Is.Error;o?ks.setTaskComplete(i,!0,{length:r.getData().byteLength,fromCache:!1}):ks.setTaskComplete(i,!1,null);var a=o?function(){var t;return null!==(t=e.u.preloadMemCacheTTL)&&void 0!==t?t:6e4}():1e3;setTimeout(function(){n._tasks.delete(t),r.release()},a)}),this._tasks.set(t,r)}},t.prototype.getTaskByUrl=function(e){return this._tasks.get(e)||null},t}(),Bs=new Ns;!function(e){e[e.unknown=-1]="unknown",e[e.downloading=0]="downloading",e[e.compiling=1]="compiling",e[e.callmain=2]="callmain",e[e.finished=3]="finished",e[e.TOTAL_STAGES=4]="TOTAL_STAGES"}(xs||(xs={}));var Us={totalLaunchTime:15e3,designWidth:0,designHeight:0,scaleMode:"",textConfig:{firstStartText:"首次加载请耐心等待",downloadingText:["正在加载资源"],compilingText:"编译中",initText:"初始化中",completeText:"开始游戏",textDuration:1500,style:{bottom:64,height:24,width:240,lineHeight:24,color:"#ffffff",fontSize:12}},barConfig:{style:{width:240,height:24,padding:2,bottom:64,backgroundColor:"#07C160"}},iconConfig:{visible:!0,style:{width:64,height:23,bottom:20}},materialConfig:{backgroundImage:"$BACKGROUND_IMAGE",backgroundVideo:"$LOADING_VIDEO_URL",iconImage:"images/unity_logo.png"}};function js(e){return JSON.parse(JSON.stringify(e))}function Vs(e,t){var n,r;try{for(var i=(0,l.Ju)(Object.keys(e)),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.hasOwnProperty(a))!Array.isArray(e[a])&&"object"==typeof e[a]?Vs(e[a],t[a]):e[a]=js(t[a])}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}var Hs,Ws=function(){function e(e,t,n,r){this.config=js(Us),this.hasFP=!1,this.hasShowLoading=!1,this.hasHideLoading=!1,this.hasShowError=!1,this.hidePolicy="hideAfterCallmain",this.disableLoadingPage=!1,this.disableAutoHideLoadingPage=!1,this.disableLoadingPage=e,this.disableAutoHideLoadingPage=n,this.hidePolicy=t?"hideAfterCallmain":"hideAfterCallmainAndFP",Vs(this.config,r),this.currentStage=xs.unknown,this.subProgresses=[0,0,0],this.subProgressPortion=Array(this.subProgresses.length).fill(1/this.subProgresses.length),this.downloadingTextChangeIntervalId=-1,this.downloadingTextChangeIndex=0}return e.prototype.customLoadingShow=function(){this.hasShowLoading||(t.xG.info("customLoadingShow"),t.z2.debug("customLoadingShow, config =",this.config),t.z2.debug("disableLoadingPage =",this.disableLoadingPage),this.disableLoadingPage||(0,He.W)().invokeNative("customLoadingShow",this.config),this.hasShowLoading=!0)},e.prototype.customLoadingUpdate=function(){var e,t;if(this.hasShowLoading&&!this.hasHideLoading&&!this.hasShowError){var n=0;try{for(var r=(0,l.Ju)([xs.downloading,xs.compiling,xs.callmain]),i=r.next();!i.done;i=r.next()){var o=i.value;if(!(this.currentStage>o)){if(this.currentStage===o){n+=this.subProgresses[o]*this.subProgressPortion[o];break}break}n+=this.subProgressPortion[o]}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}var a,s=(a=100*n,Math.max(0,Math.min(Math.round(a),100)));this.disableLoadingPage||(0,He.W)().invokeNative("customLoadingUpdate",{progress:s,hintText:this.currentShowHintText})}},e.prototype.customLoadingHide=function(){this.hasHideLoading||(t.xG.info("customLoadingHide"),this.disableLoadingPage||setTimeout(function(){(0,He.W)().invokeNative("customLoadingHide")},0),this.hasHideLoading=!0)},e.prototype.customLoadingHideWhenFPOrCallMain=function(){this.disableAutoHideLoadingPage||this.customLoadingHide()},e.prototype.setHintText=function(e){this.currentShowHintText=e},e.prototype.genDownloadingText=function(){var e=this.config.textConfig.downloadingText[this.downloadingTextChangeIndex],t=this.config.textConfig.firstStartText;return"".concat(e,"(").concat(t,")")},Object.defineProperty(e.prototype,"downloadingTextCount",{get:function(){return this.config.textConfig.downloadingText.length},enumerable:!1,configurable:!0}),e.prototype.hideIfCallMainFinishedAndFP=function(){this.currentStage===xs.finished&&this.hasFP&&this.customLoadingHideWhenFPOrCallMain()},e.prototype.enterStage=function(e){var t,n,r=this;if(e<=this.currentStage)throw new Error("[CustomLoading] should not enter older or same stage");if(e!==this.currentStage){switch(this.currentStage==xs.unknown&&e>this.currentStage&&this.customLoadingShow(),this.currentStage=e,this.currentStage>xs.downloading&&this.downloadingTextChangeIntervalId>0&&(clearInterval(this.downloadingTextChangeIntervalId),this.downloadingTextChangeIndex=-1),this.currentStage){case xs.downloading:this.downloadingTextChangeIndex=0,this.setHintText(this.genDownloadingText()),this.config.textConfig.downloadingText.length>1&&(this.downloadingTextChangeIntervalId=setInterval(function(){r.downloadingTextChangeIndex>=0&&r.downloadingTextChangeIndex<r.downloadingTextCount&&(r.downloadingTextChangeIndex=(r.downloadingTextChangeIndex+1)%r.downloadingTextCount,r.setHintText(r.genDownloadingText()),r.customLoadingUpdate())},this.config.textConfig.textDuration));break;case xs.compiling:this.setHintText(this.config.textConfig.compilingText);break;case xs.callmain:this.setHintText(this.config.textConfig.initText),"hideAfterCallmainAndFP"===this.hidePolicy&&(null===(n=(t=(0,He.W)()).listenForFP)||void 0===n||n.call(t,function(){r.hasFP=!0,r.hideIfCallMainFinishedAndFP()}));break;case xs.finished:this.setHintText(this.config.textConfig.completeText),this.customLoadingUpdate(),"hideAfterCallmain"===this.hidePolicy?this.customLoadingHideWhenFPOrCallMain():"hideAfterCallmainAndFP"===this.hidePolicy&&this.hideIfCallMainFinishedAndFP();break;default:throw new Error("unknown custom loading stage error ".concat(this.currentStage))}this.customLoadingUpdate()}},e.prototype.updateSubStageProgress=function(e,t){this.subProgresses[e]=t,this.customLoadingUpdate()},e.prototype.onError=function(e){this.currentStage!==xs.finished&&(this.hasShowError?t.z2.warn("custom loading received error again, which should not happen, errMsg:",e):(this.downloadingTextChangeIntervalId>0&&(clearInterval(this.downloadingTextChangeIntervalId),this.downloadingTextChangeIntervalId=-1),t.xG.warn("customLoading onError: ".concat(e)),(0,He.W)().invokeNative("customLoadingFailed",{errMsg:e}),this.hasShowError=!0))},e}();!function(e){e[e.launchPlugin=0]="launchPlugin",e[e.loadWasm=1]="loadWasm",e[e.compileWasm=2]="compileWasm",e[e.loadAssets=3]="loadAssets",e[e.unzipAssets=4]="unzipAssets",e[e.readAssets=5]="readAssets",e[e.prepareGame=6]="prepareGame",e[e.COUNT_TOTAL=7]="COUNT_TOTAL"}(Hs||(Hs={}));var qs,Gs=function(){function n(){this.START=0,this.END=1,this.onLaunchProgressCallback=gt.lQ,this.onLogErrorCallback=gt.lQ,this.onModulePreparedCallback=gt.lQ,this.reset()}return n.prototype.reset=function(){this.timePoints=Array(Hs.COUNT_TOTAL).fill([-1,-1]),this.onLogErrorCallback=gt.lQ,this.onLaunchProgressCallback=gt.lQ,this.onModulePreparedCallback=gt.lQ},n.prototype.getRuntime=function(){return Date.now()-n.logStartTime},n.prototype.markStart=function(e){this.timePoints[e][this.START]=this.getRuntime()},n.prototype.markEnd=function(n,r){var i;this.timePoints[n][this.END]=this.getRuntime();var o=this.getRuntime(),a=this.timePoints[n][this.END]-this.timePoints[n][this.START],s={type:n,data:{costTimeMs:Math.max(0,a),runTimeMs:Math.max(0,o),loadDataPackageFromSubpackage:!0,isVisible:Jn,useCodeSplit:null!==(i=e.u.enableWasmSplit)&&void 0!==i&&i,isHighPerformance:globalThis.isIOSHighPerformanceMode,isHighPerformancePlus:globalThis.isIOSHighPerformanceModePlus,needDownloadDataPackage:null!=r&&r}};try{this.onLaunchProgressCallback(s)}catch(e){t.z2.error("onLaunchProgress callback throw exception:",e)}},n.prototype.emitLoadError=function(e){try{this.onLogErrorCallback(e)}catch(e){t.z2.error("onLogError callback throw exception:",e)}},n.prototype.emitModulePrepared=function(){try{this.onModulePreparedCallback()}catch(e){t.z2.error("onModulePrepared callback throw exception:",e)}this.onModulePreparedCallback=gt.lQ},n.prototype.onLaunchProgress=function(e){this.onLaunchProgressCallback=e},n.prototype.onModulePrepared=function(e){this.onModulePreparedCallback=e},n.prototype.onLogError=function(e){this.onLogErrorCallback=e},n}(),Ks=function(){function e(e){this._x=void 0,this._y=void 0,this._width=void 0,this._height=void 0,this._top=void 0,this._right=void 0,this._bottom=void 0,this._left=void 0,this.boundingRect=e}return Object.defineProperty(e.prototype,"x",{get:function(){return void 0===this._x&&(this._x=this.boundingRect.x),this._x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return void 0===this._y&&(this._y=this.boundingRect.y),this._y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return void 0===this._width&&(this._width=this.boundingRect.width),this._width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return void 0===this._height&&(this._height=this.boundingRect.height),this._height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return void 0===this._top&&(this._top=this.boundingRect.top),this._top},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return void 0===this._right&&(this._right=this.boundingRect.right),this._right},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return void 0===this._bottom&&(this._bottom=this.boundingRect.bottom),this._bottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return void 0===this._left&&(this._left=this.boundingRect.left),this._left},enumerable:!1,configurable:!0}),e}(),Js="onJobReady";!function(e){e.framework="framework",e.rawData="data",e.wasmCode="code"}(qs||(qs={}));var Xs=function(){function t(){this.canvasId="canvas",this.startLoadTimeMs=0,this.gameLaunchTimeMs=0,this.unityModuleFunc=null,this.emitter=new Rn.b}return t.prototype.setUnityModuleFunc=function(e){if(!e)throw new Error("UnityPlugin setUnityModuleFunc error: typeof(UnityModule) = ".concat(typeof e));this.unityModuleFunc=e,this.reportUnityEngineInfo()},t.prototype.reportUnityEngineInfo=function(){var t,n,r,i;null===(n=(t=(0,He.W)()).reportMixEngineType)||void 0===n||n.call(t,{engineType:null!==(r=e.u.unityDistribution)&&void 0!==r?r:"unity",engineVersion:null!==(i=e.u.unityVersion)&&void 0!==i?i:"unknown version",pluginVersion:_a,pluginDetailVersion:ya()})},t.prototype.getUnityModuleFunc=function(){if(!this.unityModuleFunc)throw new Error("unityModuleFunc not setup yet");return this.unityModuleFunc},t.prototype.dispose=function(){this.emitter._dispose(),this.unityModuleFunc=null},t}(),zs=function(r){function i(e,t,n,i){var o=r.call(this)||this;return o.usePredefinedData=!1,o.usePredefinedCode=!1,o.isLoadComplete=!1,o.unityPkgInfo={},o.lifecycleStartTime=0,o.lastNodeTime=0,o.parallelLoadProgress={streamingAssets:0,data:0,wasm:0},o.loadSubpackageTaskPortions={data:.5,wasm:.5},o.streamingAssetsLoadPromise=null,o.isStreamingAssetsLoading=!1,o.isStreamingAssetsLoaded=!1,o.subWasmBinary=null,o.wasmCompilePromise=null,o.wasmCompileStartTime=0,o.context=(0,He.W)().getContext(),o.developerStageTimeline=i,o.customLoadingManager=n,o.fsManager=tt.getFileSystemManager(),o.canvas=e,o.setUnityModuleFunc(t),(0,Bt.m0)()?o.unityInstance=new ms:o.unityInstance=new Ds,va.Zm.feWebGLDoRunPoint=new va.zt,va.Zm.feWebGLPreparePoint=new va.Y0,o.unityPkgInfo={},o}return(0,l.C6)(i,r),i.prototype.logLifecycleNode=function(e){var n=Date.now(),r=n-this.lifecycleStartTime;t.z2.info("".concat(e," | total: ").concat(r,"ms")),this.lastNodeTime=n},i.prototype.start=function(){var r,i;this.lifecycleStartTime=Date.now(),this.lastNodeTime=this.lifecycleStartTime,globalThis.__lifecycleStartTime=this.lifecycleStartTime,this.logLifecycleNode("start"),i=this.canvas,n=i,"object"==typeof globalThis.GameGlobal&&(globalThis.GameGlobal.pluginGame=this);var o=null!==(r=e.u.enableCache)&&void 0!==r&&r;t.dJ.info("env: ".concat("production",", framework: ").concat(ya(),", jssdk: ").concat(tt.getSystemInfoSync().SDKUpdateVersion,", sc: ").concat(e.B8.nativeSCVersionString,", game: ").concat(e.B8.gameVersion,", runtime: WebGL, unity: ").concat(null===e.u||void 0===e.u?void 0:e.u.unityVersion,", cache: ").concat(o)),Object.assign(globalThis,{NativeGlobal:void 0}),Vt("load_start"),this.gameLaunchTimeMs=Date.now(),this.initCanvas(),this.logLifecycleNode("initCanvas"),this.registerJobReadyEvent(),this.developerStageTimeline.markEnd(Hs.launchPlugin),this.startPipeline()},i.prototype.checkCompatibility=function(){return!(e.B8.nativeSCVersion.major<4)||(t.dJ.warn("UnityPlugin is not supported in sc version < 4.0.0"),!1)},i.prototype.showNotSupportMessage=function(){var n="[UnityPlugin] container version do not support, nativeSCVersion: ".concat(e.B8.nativeSCVersionString);t.xG.error(n),(0,He.W)().reportAdapterError({type:"inner",error:n}),this.customLoadingManager.onError(n),Vt("load_error",n)},i.prototype.polyfillCanvasClientSize=function(e){var t=new Proxy({},{set:function(e,t,n){return e[t]=n,!0},get:function(e,t){return e[t]}}),n=new Ks({x:0,y:0,left:0,bottom:e.height,right:e.width,top:0,width:e.width,height:e.height});Object.assign(this.canvas,{id:this.canvasId,clientWidth:e.width,clientHeight:e.height,getContextSafariWebGL2Fixed:!0,style:t,getBoundingClientRect:function(){return n}})},i.prototype.initCanvas=function(){var e=tt.getSystemInfoSync(),t=e.screenWidth,n=e.screenHeight;this.polyfillCanvasClientSize({width:t,height:n}),this.unityInstance.canvas=this.canvas},i.prototype.registerJobReadyEvent=function(){var n=this,r=!1,i=!1,o=!1;this.emitter._on(Js,function(a){t.dJ.debug("jobReady:",a.jobName),a.jobName===qs.wasmCode?(r=!0,n.logLifecycleNode("wasmCodeReady")):a.jobName===qs.framework?(i=!0,n.logLifecycleNode("frameworkReady")):a.jobName===qs.rawData&&(o=!0,n.logLifecycleNode("rawDataReady"),t.dJ.info("rawData ready")),i&&r&&o?(n.logLifecycleNode("allResourcesReady"),t.dJ.info("All resources ready, starting Unity Module"),Bs.start(),Vt("compile_wasm"),e.u.enableWasmSplit&&(n.unityInstance.wasmTableSize=e.u.wasmTableSize,n.unityInstance.wasmMaxTableSize=e.u.wasmTableSize),n.unityInstance.doRunUnityModule(n.getUnityModuleFunc(),{unityModuleInstantiatedCallback:n.moduleInstantiated.bind(n),wasmInstantiatedCallback:n.wasmInstantiated.bind(n),mainCalledCallback:n.loadCompleted.bind(n),exceptionOccurredCallback:n.exceptionOccurred.bind(n)})):t.dJ.debug("Resources ready status:",{framework:i,wasmCode:r,rawData:o})})},i.prototype.startPipeline=function(){t.dJ.debug("enableWasmSplit:",e.u.enableWasmSplit),t.dJ.info("Starting parallel resource loading pipeline"),this.prepareFramework(),this.startParallelLoading()},i.prototype.prepareFramework=function(){var e=this;this.logLifecycleNode("prepareFramework_start"),Vt("load_framework_js"),va.Zm.feWebGLPreparePoint.startPrepareFramework(),setTimeout(function(){e.onFrameworkReady(),va.Zm.feWebGLPreparePoint.endPrepareFramework()},0)},i.prototype.startParallelLoading=function(){var e=this;this.logLifecycleNode("parallelLoading_start");var n=Date.now();t.dJ.info("Starting parallel loading for Data and WASM");var r=[this.prepareDataAsync(),this.prepareCodeAsync()];Promise.all(r).then(function(){var r=Date.now()-n;t.dJ.info("Data and WASM loaded, total time: ".concat(r,"ms")),e.startSubpackagePreloading(),e.startDelayedStreamingAssetsLoading()}).catch(function(e){t.dJ.error("Parallel loading failed:",e)})},i.prototype.startSubpackagePreloading=function(){var n=this;if((0,Bt.un)()&&e.u.enableWasmSplit&&(t.Hb.info("iOS: Starting subCode preloading"),this.unityInstance.prepareSubCode()),(0,Bt.m0)()&&e.u.enableWasmSplit){var r=tt.getSystemInfoSync().version,i=this.parseVersionToNumber(r);i>=4340&&i<4360&&(t.Hb.info("Android: Starting subWasm preloading, version:",r),this.logLifecycleNode("android_subpackage_preload_start"),this.preloadForAndroidSubWasmCode().then(function(){n.logLifecycleNode("android_subpackage_preload_complete")}).catch(function(e){t.Hb.error("Android subWasm preloading failed:",e),n.logLifecycleNode("android_subpackage_preload_failed")}))}},i.prototype.startDelayedStreamingAssetsLoading=function(){var e=this;this.isStreamingAssetsLoading||this.isStreamingAssetsLoaded||(t.dJ.info("Starting delayed loading for StreamingAssets"),this.isStreamingAssetsLoading=!0,this.streamingAssetsLoadPromise=this.prepareStreamingAssetsAsync(),this.streamingAssetsLoadPromise.then(function(){e.isStreamingAssetsLoaded=!0,e.isStreamingAssetsLoading=!1,t.dJ.info("StreamingAssets delayed loading completed")}).catch(function(){e.isStreamingAssetsLoading=!1}))},i.prototype.ensureStreamingAssetsLoaded=function(){return(0,l.sH)(this,void 0,void 0,function(){return(0,l.YH)(this,function(e){switch(e.label){case 0:return this.isStreamingAssetsLoaded?[2]:(this.isStreamingAssetsLoading||this.streamingAssetsLoadPromise||(t.dJ.warn("StreamingAssets requested before preload completed"),this.startDelayedStreamingAssetsLoading()),this.streamingAssetsLoadPromise?[4,this.streamingAssetsLoadPromise]:[3,2]);case 1:e.sent(),e.label=2;case 2:return[2]}})})},i.prototype.preloadForAndroidSubWasmCode=function(){var n=this,r=e.u.subWasm.url;return new Promise(function(i){t.Hb.info("Start loading subpackage:",e.u.subWasm.subpackage),tt.loadSubpackage({name:e.u.subWasm.subpackage,success:function(){return(0,l.sH)(n,void 0,void 0,function(){var e,n;return(0,l.YH)(this,function(o){switch(o.label){case 0:t.Hb.info("subWasm load success"),o.label=1;case 1:return o.trys.push([1,3,,4]),e=this,[4,nn(r,!1)];case 2:return e.subWasmBinary=o.sent(),t.Hb.info("sub wasm binary prepared, size:",this.subWasmBinary.byteLength),[3,4];case 3:return n=o.sent(),t.Hb.error("read sub wasm binary failed after download:",n),[3,4];case 4:return i(),[2]}})})},fail:function(e){t.Hb.error("subpackage download failed:",e),i()}})})},i.prototype.getPreloadedSubWasmBinary=function(){return this.subWasmBinary},i.prototype.parseVersionToNumber=function(e){var t=e.split(".");return 100*parseInt(t[0]||"0",10)+10*parseInt(t[1]||"0",10)},i.prototype.updateParallelLoadingProgress=function(){var e=this.parallelLoadProgress.data*this.loadSubpackageTaskPortions.data+this.parallelLoadProgress.wasm*this.loadSubpackageTaskPortions.wasm;this.customLoadingManager.updateSubStageProgress(xs.downloading,e)},i.prototype.prepareStreamingAssetsAsync=function(){var n=this;return new Promise(function(r){var i=e.u.streamingAssets.subpackage;tt.loadSubpackage({name:i,success:function(){t.dJ.info("StreamingAssets load success")},fail:function(e){t.dJ.warn("StreamingAssets load fail (ignore if no StreamingAssets):",e)},complete:function(){n.parallelLoadProgress.streamingAssets=1,n.logLifecycleNode("streamingAssetsLoaded"),n.unityInstance.loadCpJsFilesIfNeed(),r()}})})},i.prototype.getCacheFilePath=function(e,t,n){var r=Gt.A.join(an.e.USER_DATA_PATH,"__unity_cache__"),i="".concat(e,"_").concat(t).concat(n);return Gt.A.join(r,i)},i.prototype.checkCacheExistsAsync=function(e){return(0,l.sH)(this,void 0,void 0,function(){return(0,l.YH)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Xt.fs.access(e)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,!1];case 3:return[2]}})})},i.prototype.ensureCacheDirAsync=function(){return(0,l.sH)(this,void 0,void 0,function(){var e;return(0,l.YH)(this,function(t){switch(t.label){case 0:return e=Gt.A.join(an.e.USER_DATA_PATH,"__unity_cache__"),[4,Xt.fs.access(e)];case 1:return t.sent()?[3,3]:[4,Xt.fs.mkdir(e,!0)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},i.prototype.writeCacheFileAsync=function(e,n){return(0,l.sH)(this,void 0,void 0,function(){var r,i,o,a;return(0,l.YH)(this,function(s){switch(s.label){case 0:r=Date.now(),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,this.ensureCacheDirAsync()];case 2:return s.sent(),[4,Xt.fs.writeFileAsync(e,n)];case 3:return i=s.sent(),a=Date.now()-r,i?t.BM.info("Written: ".concat(e,", size: ").concat(n.length,", cost: ").concat(a,"ms")):t.BM.warn("Failed to write cache: ".concat(e,", cost: ").concat(a,"ms")),[2,a];case 4:return o=s.sent(),a=Date.now()-r,t.BM.warn("Failed to write cache: ".concat(e,", cost: ").concat(a,"ms"),o),[2,a];case 5:return[2]}})})},i.prototype.prepareDataAsync=function(){var n,r,i;return(0,l.sH)(this,void 0,void 0,function(){var o,a,s,u,c,d,f,h,p,m,_,y,g,v,b,E=this;return(0,l.YH)(this,function(S){switch(S.label){case 0:return o=Date.now(),this.logLifecycleNode("data_download_start"),Vt("load_unity_data"),va.Zm.feWebGLPreparePoint.startPrepareData(),this.developerStageTimeline.markStart(Hs.loadAssets),a=e.u.data,s=null===(r=(n=(0,He.W)()).getPredefinedFileData)||void 0===r?void 0:r.call(n,a.url),t.dJ.debug("load predefined data package, url:",a.url,"data:",s),s?(g=Date.now()-o,t.z2.info("data_predefined | total: ".concat(g,"ms")),this.developerStageTimeline.markEnd(Hs.loadAssets),this.developerStageTimeline.markStart(Hs.readAssets),this.onDataReady(new Uint8Array(s)),this.usePredefinedData=!0,this.parallelLoadProgress.data=1,this.updateParallelLoadingProgress(),va.Zm.feWebGLPreparePoint.endPrepareData(),[2]):(u=Date.now(),c=this.getCacheFilePath(a.subpackage,a.md5,".data"),d=null!==(i=e.u.enableCache)&&void 0!==i&&i,(h=d)?[4,this.checkCacheExistsAsync(c)]:[3,2]);case 1:h=S.sent(),S.label=2;case 2:if(f=h,p=Date.now()-u,!f)return[3,7];t.BM.info("Data cache exists, checking cost: ".concat(p,"ms")),m=Date.now(),S.label=3;case 3:return S.trys.push([3,5,,6]),this.developerStageTimeline.markStart(Hs.readAssets),[4,Xt.fs.readFile(c)];case 4:return _=S.sent(),b=Date.now()-m,y=new Uint8Array(_),g=Date.now()-o,t.z2.info("data_cache_hit | read: ".concat(b,"ms | total: ").concat(g,"ms | size: ").concat(y.length)),this.onDataReady(y),this.parallelLoadProgress.data=1,this.updateParallelLoadingProgress(),va.Zm.feWebGLPreparePoint.endPrepareData(),[2];case 5:return v=S.sent(),b=Date.now()-m,t.BM.warn("Data cache read failed, cost: ".concat(b,"ms, will download"),v),[3,6];case 6:return[3,8];case 7:t.BM.info("Data cache miss, checking cost: ".concat(p,"ms")),S.label=8;case 8:return[2,new Promise(function(e,n){t.dJ.info("Loading data subpackage: ".concat(a.subpackage));var r=Date.now(),i=!1,s=tt.loadSubpackage({name:a.subpackage,success:function(){return(0,l.sH)(E,void 0,void 0,function(){var s,u,f,h,p,m;return(0,l.YH)(this,function(l){switch(l.label){case 0:i=!0,s=Date.now()-r,this.developerStageTimeline.markEnd(Hs.loadAssets),t.dJ.info("Data subpackage ready: ".concat(a.subpackage,", md5: ").concat(a.md5,", cost: ").concat(s,"ms")),l.label=1;case 1:return l.trys.push([1,3,,4]),this.developerStageTimeline.markStart(Hs.readAssets),u=Date.now(),[4,nn(a.url)];case 2:return f=l.sent(),h=Date.now()-u,d&&this.writeCacheFileAsync(c,f).then(function(e){t.BM.info("Data cache write completed, cost: ".concat(e,"ms"))}),m=Date.now()-o,t.z2.info("data_loaded | download: ".concat(s,"ms | read+decompress: ").concat(h,"ms | total: ").concat(m,"ms | size: ").concat(f.length)),this.onDataReady(f),this.parallelLoadProgress.data=1,this.updateParallelLoadingProgress(),va.Zm.feWebGLPreparePoint.endPrepareData(),e(),[3,4];case 3:return p=l.sent(),m=Date.now()-o,t.dJ.error("Data read error, total cost: ".concat(m,"ms"),p),this.setDownloadError("read data error, ".concat(p)),n(p),[3,4];case 4:return[2]}})})},fail:function(e){i=!0;var s=Date.now()-r,u=Date.now()-o;t.dJ.error("Data loadSubpackage failed, cost: ".concat(s,"ms, total: ").concat(u,"ms"));var c="download ".concat(a.subpackage," data error, ").concat(e.errMsg);E.setDownloadError(c),n(new Error(c))}});s.onProgressUpdate(function(e){if(!i){var t=e.totalBytesWritten/e.totalBytesExpectedToWrite;E.parallelLoadProgress.data=t,E.updateParallelLoadingProgress()}})})]}})})},i.prototype.prepareCodeAsync=function(){var n,r,i;return(0,l.sH)(this,void 0,void 0,function(){var o,a,s,u,c,d,f,h,p,m,_,y,g,v,b,E=this;return(0,l.YH)(this,function(S){switch(S.label){case 0:return o=Date.now(),this.logLifecycleNode("wasm_download_start"),Vt("load_wasm"),va.Zm.feWebGLPreparePoint.startPrepareCode(),this.developerStageTimeline.markStart(Hs.loadWasm),a=e.u.code,s=null===(r=(n=(0,He.W)()).getPredefinedFileData)||void 0===r?void 0:r.call(n,a.url),t.Hb.debug("load predefined wasm code data, url:",a.url,"data:",s),s?(g=Date.now()-o,t.z2.info("wasm_predefined | total: ".concat(g,"ms")),this.onWasmCodeReady(new Uint8Array(s)),this.usePredefinedCode=!0,this.parallelLoadProgress.wasm=1,this.updateParallelLoadingProgress(),va.Zm.feWebGLPreparePoint.endPrepareCode(),[2]):(u=Date.now(),c=this.getCacheFilePath(a.subpackage,a.md5,".wasm"),d=null!==(i=e.u.enableCache)&&void 0!==i&&i,(h=d)?[4,this.checkCacheExistsAsync(c)]:[3,2]);case 1:h=S.sent(),S.label=2;case 2:if(f=h,p=Date.now()-u,!f)return[3,7];t.BM.info("WASM cache exists, checking cost: ".concat(p,"ms")),m=Date.now(),S.label=3;case 3:return S.trys.push([3,5,,6]),[4,Xt.fs.readFile(c)];case 4:return _=S.sent(),b=Date.now()-m,y=new Uint8Array(_),g=Date.now()-o,t.z2.info("wasm_cache_hit | read: ".concat(b,"ms | total: ").concat(g,"ms | size: ").concat(y.length)),this.onWasmCodeReady(y),this.parallelLoadProgress.wasm=1,this.updateParallelLoadingProgress(),va.Zm.feWebGLPreparePoint.endPrepareCode(),[2];case 5:return v=S.sent(),b=Date.now()-m,t.BM.warn("WASM cache read failed, cost: ".concat(b,"ms, will download"),v),[3,6];case 6:return[3,8];case 7:t.BM.info("WASM cache miss, checking cost: ".concat(p,"ms")),S.label=8;case 8:return[2,new Promise(function(e,n){t.Hb.info("Loading WASM subpackage: ".concat(a.subpackage));var r=Date.now(),i=!1,s=tt.loadSubpackage({name:a.subpackage,success:function(){return(0,l.sH)(E,void 0,void 0,function(){var s,u,f,h,p,m;return(0,l.YH)(this,function(l){switch(l.label){case 0:i=!0,s=Date.now()-r,t.Hb.info("WASM subpackage ready: ".concat(a.subpackage,", md5: ").concat(a.md5,", cost: ").concat(s,"ms")),l.label=1;case 1:return l.trys.push([1,3,,4]),u=Date.now(),[4,nn(a.url)];case 2:return f=l.sent(),h=Date.now()-u,d&&this.writeCacheFileAsync(c,f).then(function(e){t.BM.info("WASM cache write completed, cost: ".concat(e,"ms"))}),m=Date.now()-o,t.z2.info("wasm_loaded | download: ".concat(s,"ms | read+decompress: ").concat(h,"ms | total: ").concat(m,"ms | size: ").concat(f.length)),this.onWasmCodeReady(f),this.parallelLoadProgress.wasm=1,this.updateParallelLoadingProgress(),va.Zm.feWebGLPreparePoint.endPrepareCode(),e(),[3,4];case 3:return p=l.sent(),m=Date.now()-o,t.Hb.error("WASM read error, total cost: ".concat(m,"ms"),p),this.setDownloadError("read wasm binary error, ".concat(p)),n(p),[3,4];case 4:return[2]}})})},fail:function(e){i=!0;var s=Date.now()-r,u=Date.now()-o;t.Hb.error("WASM loadSubpackage failed, cost: ".concat(s,"ms, total: ").concat(u,"ms"));var c="download ".concat(a.subpackage," data error, ").concat(e.errMsg);E.setDownloadError(c),n(new Error(c))}});s.onProgressUpdate(function(e){if(!i){var t=e.totalBytesWritten/e.totalBytesExpectedToWrite;E.parallelLoadProgress.wasm=t,E.updateParallelLoadingProgress()}})})]}})})},i.prototype.onFrameworkReady=function(){this.logLifecycleNode("onFrameworkReady"),this.emitter._emit(Js,{jobName:qs.framework})},i.prototype.onDataReady=function(e){this.logLifecycleNode("onDataReady"),this.developerStageTimeline.markEnd(Hs.readAssets),this.unityInstance.rawData=e,this.emitter._emit(Js,{jobName:qs.rawData}),this.unityPkgInfo.data_size=e.length},i.prototype.onWasmCodeReady=function(e){this.logLifecycleNode("onWasmCodeReady"),this.developerStageTimeline.markEnd(Hs.loadWasm),this.unityInstance.mainWasmBinary=e,this.startWasmPreCompile(e),this.emitter._emit(Js,{jobName:qs.wasmCode})},i.prototype.startWasmPreCompile=function(e){var n=this;this.wasmCompileStartTime=Date.now(),t.Hb.info("Starting WASM pre-compilation..."),this.developerStageTimeline.markStart(Hs.compileWasm),this.wasmCompilePromise=sn.T.compile(e).then(function(e){var r=Date.now()-n.wasmCompileStartTime;return t.Hb.info("WASM pre-compilation completed in ".concat(r,"ms")),n.unityInstance.wasmModule=e,e}).catch(function(e){throw t.Hb.error("WASM pre-compilation failed:",e),n.wasmCompilePromise=null,e})},i.prototype.getPreCompiledWasmModule=function(){return this.wasmCompilePromise},i.prototype.moduleInstantiated=function(){this.logLifecycleNode("moduleInstantiated"),this.developerStageTimeline.emitModulePrepared(),this.customLoadingManager.enterStage(xs.compiling)},i.prototype.wasmInstantiated=function(e){this.logLifecycleNode("wasmInstantiated"),this.startLoadTimeMs=Date.now(),va.Zm.feWebGLDoRunPoint.startMainCall(),va.Zm.wasmCompileTimeMs=e,this.unityInstance.mainWasmBinary=null,this.customLoadingManager.enterStage(xs.callmain),this.developerStageTimeline.markEnd(Hs.compileWasm),this.developerStageTimeline.markStart(Hs.prepareGame),Vt("call_main")},i.prototype.loadCompleted=function(){this.logLifecycleNode("loadCompleted"),t.dJ.info("Load completed");var e=Date.now();if(va.Zm.loadTimeMs=e-this.gameLaunchTimeMs,va.Zm.callMainTimeMs=e-this.startLoadTimeMs,va.Zm.feWebGLDoRunPoint.endMainCall(),(0,va.k2)(),this.customLoadingManager.enterStage(xs.finished),Vt("load_completed"),this.developerStageTimeline.markEnd(Hs.prepareGame),this.usePredefinedData||this.usePredefinedCode){var n="u pdf, d:".concat(this.usePredefinedData?1:0," c:").concat(this.usePredefinedCode?1:0);t.dJ.debug(n),"local_test"==this.context.hostInfo.channel&&tt.showToast({title:n})}this.isLoadComplete=!0,this.releaseLoadingResources()},i.prototype.releaseLoadingResources=function(){var e=0;this.subWasmBinary&&(e+=this.subWasmBinary.byteLength,this.subWasmBinary=null),this.wasmCompilePromise&&(this.wasmCompilePromise=null),this.emitter._removeAllListeners(Js),e>0&&t.dJ.info("[Memory] Loading resources released, freed: ".concat((e/1024/1024).toFixed(2),"MB"))},i.prototype.setDownloadError=function(e){var n="[UnityPlugin] download error: ".concat(e);(0,He.W)().reportAdapterError({type:"inner",error:n}),t.xG.error(n),this.customLoadingManager.onError(n),this.developerStageTimeline.emitLoadError(n),Vt("load_error","download error: ".concat(e))},i.prototype.setLoadError=function(e){var n="[UnityPlugin] error: ".concat(e);(0,He.W)().reportAdapterError({type:"inner",error:n}),t.xG.error(n),this.isLoadComplete||(this.customLoadingManager.onError(n),this.developerStageTimeline.emitLoadError(n),Vt("load_error",n))},i.prototype.exceptionOccurred=function(e){this.setLoadError(e)},i}(Xs),Ys=__webpack_require__(4502);function Zs(){return(0,Bt.un)()&&Yt()<4420}var Qs=function(){function e(){}return e.formatSize=function(e){return e<1024?"".concat(e,"B"):e<1048576?"".concat((e/1024).toFixed(2),"KB"):"".concat((e/1024/1024).toFixed(2),"MB")},e.enableDebugLog=function(e){},e.read=function(e,n,r){return(0,l.sH)(this,void 0,void 0,function(){var i,o,a;return(0,l.YH)(this,function(s){switch(s.label){case 0:return i=Date.now(),[4,Xt.fs.readFile(n,r)];case 1:return o=s.sent(),(o=this.removeWhenEmpty(e,n,o))&&(a=Date.now()-i,t.BM.debug("use cache file, url: ".concat(e,", path: ").concat(n,", cost: ").concat(a,"ms"))),[2,o]}})})},e.readSync=function(e,n,r){var i=Date.now();if(this.existByPath(n)){var o=Xt.fs.readFileSync(n,r,!0);if(o=this.removeWhenEmpty(e,n,o)){var a=Date.now()-i;t.BM.debug("use cache file, url: ".concat(e,", path: ").concat(n,", cost: ").concat(a,"ms"))}return o}},e.removeWhenEmpty=function(e,n,r){var i,o="string"==typeof r?r.length:null!==(i=r.byteLength)&&void 0!==i?i:0;return!o||o<=0?(t.BM.error("read cache fail: data is empty, remove file, url: ".concat(e,", path: ").concat(n)),void Xt.fs.removeFileSync(n,!0)):r},e.save=function(e,n,r,i){var o,a=Date.now();if(!n||n.length<=0)t.BM.error("save cache fail: path invalid, url: ".concat(e,", path: ").concat(n));else{var s=n.split("/").pop();if(s&&0!==s.length)if(r){var u="string"==typeof r?r.length:null!==(o=r.byteLength)&&void 0!==o?o:0;if(u<=0)t.BM.error("save cache fail: data is empty, url: ".concat(e,", path: ").concat(n));else if(u>10485760)t.BM.warn("skip large file: ".concat(this.formatSize(u),", path: ").concat(n));else if(Zs()&&this.iosWriteCount>=20)t.BM.info("iOS write limit reached (".concat(20,"), skip: ").concat(n));else if(this.writingPaths.has(n))t.BM.debug("skip duplicate write, url: ".concat(e,", path: ").concat(n));else{var c=this.writeQueue.findIndex(function(e){return e.path===n});if(c>=0){var l=this.writeQueue[c];return this.pendingSize-=l.size,this.writeQueue[c]={url:e,path:n,data:r,encoding:i,startAt:a,size:u},void(this.pendingSize+=u)}if(this.writeQueue.length>=10){var d=this.writeQueue.shift();d&&(this.pendingSize-=d.size,t.BM.warn("queue full (".concat(10,"), dropped: ").concat(d.path)))}this.writeQueue.push({url:e,path:n,data:r,encoding:i,startAt:a,size:u}),this.pendingSize+=u,t.BM.debug("queued: ".concat(this.formatSize(u),", pending: ").concat(this.formatSize(this.pendingSize),", active: ").concat(this.formatSize(this.activeWriteSize),", total: ").concat(this.formatSize(this.pendingSize+this.activeWriteSize))),this.processQueue()}}else t.BM.error("save cache fail: data invalid, url: ".concat(e,", path: ").concat(n));else t.BM.error("save cache fail: path is directory, missing filename, url: ".concat(e,", path: ").concat(n))}},e.processQueue=function(){for(;this.activeWrites<3&&this.writeQueue.length>0;){var e=this.writeQueue.shift();e&&(this.pendingSize-=e.size,this.executeWrite(e))}},e.executeWrite=function(e){return(0,l.sH)(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c,d,f,h=this;return(0,l.YH)(this,function(l){switch(l.label){case 0:return n=e.url,r=e.path,i=e.data,o=e.encoding,a=e.startAt,s=e.size,this.activeWrites++,this.writingPaths.add(r),this.activeWriteSize+=s,Zs()&&this.iosWriteCount++,t.BM.debug("writing: ".concat(this.formatSize(s),", active: ").concat(this.formatSize(this.activeWriteSize),", pending: ").concat(this.formatSize(this.pendingSize),", path: ").concat(r)),u=Gt.A.getDirPath(r),[4,Xt.fs.access(u)];case 1:return l.sent()?[3,3]:[4,Xt.fs.mkdir(u)];case 2:l.sent(),l.label=3;case 3:return c=null!=o?o:"string"==typeof i?"ascii":void 0,d=!1,f=setTimeout(function(){d||(d=!0,t.BM.warn("write timeout (".concat(1e3,"ms), path: ").concat(r)),h.onWriteComplete(r,s))},1e3),Xt.fs.writeFile(r,i,c,function(){if(!d){d=!0,clearTimeout(f);var e=Date.now()-a;t.BM.debug("cache saved, url: ".concat(n,", path: ").concat(r,", cost: ").concat(e,"ms")),h.onWriteComplete(r,s)}},function(){d||(d=!0,clearTimeout(f),t.BM.error("save cache fail: fs error occurred, url: ".concat(n,", path: ").concat(r)),Xt.fs.removeFile(r),h.onWriteComplete(r,s))}),[2]}})})},e.onWriteComplete=function(e,n){this.activeWrites--,this.writingPaths.delete(e),this.activeWriteSize-=n,t.BM.debug("done: ".concat(this.formatSize(n),", active: ").concat(this.formatSize(this.activeWriteSize),", pending: ").concat(this.formatSize(this.pendingSize))),this.processQueue()},e.saveSync=function(e,n,r,i){var o;t.BM.debug("not cached, saving... url: ".concat(e,", path: ").concat(n));var a=Date.now();if(!n||n.length<=0)t.BM.error("save cache fail: path invalid, url: ".concat(e,", path: ").concat(n));else if(r){if(!(("string"==typeof r?r.length:null!==(o=r.byteLength)&&void 0!==o?o:0)<=0)){var s=Gt.A.getDirPath(n);Xt.fs.accessSync(s)||Xt.fs.mkdirSync(s),i=null!=i?i:"string"==typeof r?"ascii":void 0;var u=Xt.fs.writeFileSync(n,r,i);if(u){var c=Date.now()-a;t.BM.debug("cache saved, url: ".concat(e,", path: ").concat(n,", cost: ").concat(c,"ms"))}else t.BM.error("save cache fail: fs error occurred, url: ".concat(e,", path: ").concat(n)),Xt.fs.removeFileSync(n);return u}t.BM.error("save cache fail: data is empty, url: ".concat(e,", path: ").concat(n))}else t.BM.error("save cache fail: data invalid, url: ".concat(e,", path: ").concat(n))},e.exist=function(e){return(0,l.sH)(this,void 0,void 0,function(){return(0,l.YH)(this,function(t){switch(t.label){case 0:return[4,Xt.fs.access(e)];case 1:return[2,t.sent()]}})})},e.existByPath=function(e){return Xt.fs.accessSync(e)},e.clear=function(){var e=(0,Gr.EJ)();Xt.fs.rmdirSync(e,!0)&&Xt.fs.mkdirSync(e)},e.getQueueStatus=function(){return{queueLength:this.writeQueue.length,activeWrites:this.activeWrites,writingPaths:Array.from(this.writingPaths),activeWriteSize:this.activeWriteSize,pendingSize:this.pendingSize,totalSize:this.activeWriteSize+this.pendingSize}},e.ensureContentLength=function(e){var n,r;if(e.getResponseHeader("Content-Encoding"))return!0;if(e.getResponseHeader("Transfer-Encoding"))return!0;var i=e.getResponseHeader("Content-Length");if(!i)return!0;var o="number"==typeof i?i:parseInt(i);if(isNaN(o)||o<=0)return!0;var a=0;switch(e.responseType){case"blob":a=null===(n=e.response)||void 0===n?void 0:n.size;break;case"arraybuffer":a=null===(r=e.response)||void 0===r?void 0:r.byteLength;break;default:return!0}var s=a===o;return s||t.BM.warn("Content-Length mismatch. (bufferLength: ".concat(e.response.byteLength,", contentLength: ").concat(i,"), url: ").concat(e.responseURL)),s},e.writeQueue=[],e.activeWrites=0,e.writingPaths=new Set,e.activeWriteSize=0,e.pendingSize=0,e.iosWriteCount=0,e}();function $s(){globalThis.fetch=Ys.wq;var e=XMLHttpRequest.prototype.open,n=XMLHttpRequest.prototype.send;function r(e){return(0,l.sH)(this,void 0,void 0,function(){return(0,l.YH)(this,function(n){return[2,new Promise(function(n,r){t.NK.debug("request header from url: ".concat(e)),jssdk.request({url:e,method:"HEAD",success:function(i){var o,a,s=null==i?void 0:i.header;if(t.NK.debug("url: ".concat(e,", header: ").concat(JSON.stringify(s))),"object"==typeof s){var u=null!==(o=s["Content-Length"])&&void 0!==o?o:s["content-length"],c=null!==(a=s["Last-Modified"])&&void 0!==a?a:s["last-modified"];n({contentLength:u,lastModified:c})}else t.NK.error("response header is not a object, type: ".concat(typeof s)),r()},fail:function(n){t.NK.error("url: ".concat(e,", ").concat(JSON.stringify(n))),r()}})})]})})}function i(e,t,n,r,i){e.status=t,e.statusText="OK",r?(e.response=null,e.responseText=n):(e.response=n,e.responseText=""),e.onload&&e.onload(i)}function o(e,o){var a,s;return(0,l.sH)(this,void 0,void 0,function(){function u(n){return(0,l.sH)(this,void 0,void 0,function(){return(0,l.YH)(this,function(r){return[2,new Promise(function(r){var o=Bs.getTaskByUrl(n);o?o.addLoadCompleteListener(function(){var a;if(o.getStatus()===Is.Done){var s=o.getData();if(s){var u=null!==(a=null==s?void 0:s.byteLength)&&void 0!==a?a:0;return t.BM.info("[HookXHR] cache hit (preload), url: ".concat(n,", size: ").concat(u)),e.isReadFromCache=!0,i(e,200,s,!1,{}),void r(!0)}}t.BM.debug("[HookXHR] cache miss (preload not ready), url: ".concat(n)),r(!1)}):r(!1)})]})})}function c(n){var r;return(0,l.sH)(this,void 0,void 0,function(){var o,a,s,u;return(0,l.YH)(this,function(c){switch(c.label){case 0:if(!n)return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),o=void 0,h&&(o="utf8"),[4,Qs.read(e._url,n,o)];case 2:return(a=c.sent())?(s="string"==typeof a?a.length:null!==(r=null==a?void 0:a.byteLength)&&void 0!==r?r:0,t.BM.info("[HookXHR] cache hit (local file), url: ".concat(e._url,", path: ").concat(n,", size: ").concat(s)),e.isReadFromCache=!0,i(e,200,a,h,{}),[2,!0]):(t.BM.debug("[HookXHR] cache miss (file empty or not found), url: ".concat(e._url,", path: ").concat(n)),[3,4]);case 3:return u=c.sent(),t.BM.debug("[HookXHR] cache miss (read error), url: ".concat(e._url,", path: ").concat(n,", error: ").concat(u)),[3,4];case 4:return[2,!1]}})})}function d(e){return(0,l.sH)(this,void 0,void 0,function(){var t,n,r;return(0,l.YH)(this,function(i){switch(i.label){case 0:return[4,c(e)];case 1:return i.sent()?[2,!0]:(t="StreamingAssets/",(n=e.indexOf(t))>=0&&(r=e.substring(0,n+16)+e.substring(n+16).toLowerCase())!==e?[2,c(r)]:[2,!1])}})})}var f,h,p,m,_,y,g,v,b,E,S,A,C;return(0,l.YH)(this,function(i){switch(i.label){case 0:return f=null!==(a=e._method)&&void 0!==a?a:"GET",h="text"==e.responseType,e.responseType||(e.responseType="arraybuffer"),p=e.requestHeaders&&e.requestHeaders[Xn.Ay.STARK_PRELOAD_REQUEST_HEADER],"GET"!==f.toUpperCase()||p?[3,2]:[4,u(e._url)];case 1:if(i.sent())return[2];i.label=2;case 2:return(m=(0,Gr.pj)(e._url,f))?[4,d(m)]:[3,6];case 3:return i.sent()?[2]:(_=null===(s=globalThis.GameGlobal)||void 0===s?void 0:s.pluginGame)&&"function"==typeof _.ensureStreamingAssetsLoaded?[4,_.ensureStreamingAssetsLoaded()]:[3,6];case 4:return i.sent(),[4,d(m)];case 5:if(i.sent())return[2];i.label=6;case 6:return(0,Gr.d5)(e._url,e._method)&&(y=(0,Gr.Zg)(e._url)?void 0:(0,Gr.sC)(e._url)),t.NK.debug("url: ".concat(e._url,", method: ").concat(e._method,", localCachePath: ").concat(y)),y?[4,Xt.fs.access(y)]:[3,15];case 7:return i.sent()?(b=!1,[3,12]):[3,14];case 8:return i.trys.push([8,11,,12]),[4,r(e._url)];case 9:return g=i.sent(),t.NK.debug("".concat(e._url,", server info: ").concat(JSON.stringify(g))),E=y+".meta",[4,Xt.fs.readFile(E,"utf8")];case 10:return(S=i.sent())?(v=JSON.parse(S),t.NK.debug("".concat(e._url,", local info: ").concat(JSON.stringify(v))),(v.contentLength&&v.contentLength!=g.contentLength||v.lastModified&&v.lastModified!=g.lastModified)&&(b=!0)):b=!0,[3,12];case 11:return(A=i.sent())&&t.NK.error("".concat(A)),[3,12];case 12:return b?[3,14]:[4,c(y)];case 13:if(i.sent())return[2];i.label=14;case 14:C=e.onload,e.onload=function(){!function(e,n,r,i){var o,a;(0,l.sH)(this,void 0,void 0,function(){var s,u,c,d,f,h;return(0,l.YH)(this,function(l){switch(l.label){case 0:return l.trys.push([0,6,,7]),s=void 0,u=void 0,i?(s=r.responseText,u="utf8"):s=r.response,c=null!==(a=null!==(o=null==s?void 0:s.length)&&void 0!==o?o:null==s?void 0:s.byteLength)&&void 0!==a?a:0,d=Qs.ensureContentLength(r),s&&d&&(0,Xn.RJ)(r.status)?(f=Gt.A.getDirPath(n),[4,Xt.fs.access(f)]):[3,4];case 1:return l.sent()?[3,3]:[4,Xt.fs.mkdir(f,!0)];case 2:l.sent(),l.label=3;case 3:return t.BM.info("[HookXHR] cache write, url: ".concat(e,", path: ").concat(n,", size: ").concat(c)),Qs.save(e,n,s,u),[2,!0];case 4:t.BM.debug("[HookXHR] cache write skip (data empty or incomplete), url: ".concat(e,", status: ").concat(r.status)),l.label=5;case 5:return[3,7];case 6:return h=l.sent(),t.BM.error("[HookXHR] cache write failed, url: ".concat(e,", path: ").concat(n,", error: ").concat(h)),[3,7];case 7:return[2,!1]}})})}(e._url,y,e,h);if("function"==typeof C)return C.apply(e,arguments)},i.label=15;case 15:return n.apply(e,o),[2]}})})}XMLHttpRequest.prototype.open=function(t,n,r){return this._method=null!=t?t:"GET",this._url=n,this._needCache=!1,this._async=r,e.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){var e="GET"==this._method.toUpperCase();if(this._useOriginRequest||!e||0==this._async)return n.apply(this,arguments);o(this,arguments)}}var eu=void 0;function tu(e){eu=e}var nu=function(e,t,n,r){this.type=e,this.bubbles=t,this.cancelable=n,this.target=r};nu.prototype={stopPropagation:function(){},preventDefault:function(){this.defaultPrevented=!0}};var ru={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function iu(e,t){t.addEventListener(e,function(n){var r=t["on"+e];r&&"function"==typeof r&&r.call(n.target,n)})}function ou(){this._eventListeners={};for(var e=["loadstart","progress","load","abort","loadend"],t=e.length-1;t>=0;t--)iu(e[t],this)}function au(){ou.call(this),this.reset()}ou.prototype={addEventListener:function(e,t){this._eventListeners[e]=this._eventListeners[e]||[],this._eventListeners[e].push(t)},removeEventListener:function(e,t){for(var n=this._eventListeners[e]||[],r=0,i=n.length;r<i;++r)if(n[r]===t)return n.splice(r,1)},dispatchEvent:function(e){for(var t=e.type,n=this._eventListeners[t]||[],r=0;r<n.length;r++)"function"==typeof n[r]?n[r].call(this,e):n[r].handleEvent(e);return!!e.defaultPrevented},_progress:function(e,t,n){var r=new nu("progress");r.target=this,r.lengthComputable=e,r.loaded=t,r.total=n,this.dispatchEvent(r)}},au.prototype=new ou,au.UNSENT=0,au.OPENED=1,au.HEADERS_RECEIVED=2,au.LOADING=3,au.DONE=4;var su={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4,async:!0,withCredentials:!1,open:function(e,t,n,r,i){this.method=e,this.url=t,this.async="boolean"!=typeof n||n,this.username=r,this.password=i,this.responseText=null,this.response=this.responseText,this.responseXML=null,this.responseURL=t,this.requestHeaders={},this.sendFlag=!1,this._readyStateChange(au.OPENED)},reset:function(){this.readyState=au.UNSENT,this.requestHeaders={},this.requestBody=null,this.status=0,this.statusText="",this.upload=new ou,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.onreadystatechange=null,this.ontimeout=null},setRequestHeader:function(e,t){cu(this),this.requestHeaders[e]?this.requestHeaders[e]+=","+t:this.requestHeaders[e]=t},send:function(e){if(cu(this),!/^(get|head)$/i.test(this.method)){var t=!1;Object.keys(this.requestHeaders).forEach(function(e){"content-type"===e.toLowerCase()&&(t=!0)}),t||(e||"").toString().match("FormData")||(this.requestHeaders["Content-Type"]="text/plain;charset=UTF-8"),this.requestBody=e}this.errorFlag=!1,this.sendFlag=this.async,this._readyStateChange(au.OPENED),this._doRequest(e),this.dispatchEvent(new nu("loadstart",!1,!1,this))},abort:function(){this.aborted=!0,this.responseText=null,this.response=this.responseText,this.errorFlag=!0,this.requestHeaders={},this.dispatchEvent(new nu("abort",!1,!1,this)),this.readyState>au.UNSENT&&this.sendFlag&&(this._readyStateChange(au.UNSENT),this.sendFlag=!1),"function"==typeof this.onerror&&this.onerror()},dispose:function(){this.reset(),this._disposeInternalXHR()},getResponseHeader:function(e){if(this.readyState<au.HEADERS_RECEIVED)return null;if(/^Set-Cookie2?$/i.test(e))return null;for(var t in e=e.toLowerCase(),this.responseHeaders)if(t.toLowerCase()==e)return this.responseHeaders[t];return null},getAllResponseHeaders:function(){if(this.readyState<au.HEADERS_RECEIVED)return"";var e="";for(var t in this.responseHeaders)this.responseHeaders.hasOwnProperty(t)&&!/^Set-Cookie2?$/i.test(t)&&(e+=t+": "+this.responseHeaders[t]+"\n");return e},overrideMimeType:function(e){"string"==typeof e&&(this.forceMimeType=e.toLowerCase())},_readyStateChange:function(e){this.readyState=e,"function"==typeof this.onreadystatechange&&this.onreadystatechange(new nu("readystatechange")),this.dispatchEvent(new nu("readystatechange")),this.readyState===au.DONE&&this.dispatchEvent(new nu("load",!1,!1,this)),this.readyState!==au.UNSENT&&this.readyState!==au.DONE||this.dispatchEvent(new nu("loadend",!1,!1,this))},_makeHeadersLowercase:function(){if("object"==typeof this.requestHeaders){const e={};for(let t in this.requestHeaders)e[t.toLowerCase()]=this.requestHeaders[t];this.requestHeaders={};for(let t in e)this.requestHeaders[t]?this.requestHeaders[t]+=","+e[t]:this.requestHeaders[t]=e[t]}else this.requestHeaders={}},_makeResponse:function(e,t,n,r){if(this.status=t,this.statusText=ru[t],n&&this._setResponseHeaders([n]),this._readyStateChange(au.HEADERS_RECEIVED),this._readyStateChange(au.LOADING),"arraybuffer"===this.responseType?(this.response=e,this.responseText=""):this.responseText=this.response=e,r&&(0,Xn.RJ)(t)){Qs.ensureContentLength(this)&&Qs.save(this.url,r,e)}this._readyStateChange(au.DONE)},_cacheRequestDataSync:function(e,n){if(!n||n.length<=0)return;const r=Gt.A.getDirPath(n);let i;Xt.fs.accessSync(r)||Xt.fs.mkdirSync(r),"string"==typeof e&&(i="ascii");if(Xt.fs.writeFileSync(n,e,i))(0,t.xF)(`succeed to cache file to ${n}, url: ${this.url}`);else{(0,t.SZ)(`unable to write file to ${n}, url: ${this.url}`);Xt.fs.removeFileSync(n)||(0,t.SZ)(`unable to remove file ${n}, url: ${this.url}`)}},_tryHandleRequestWithPreload(e,t){const n=this.requestHeaders&&this.requestHeaders[Xn.Ay.STARK_PRELOAD_REQUEST_HEADER];if("GET"!==this.method.toUpperCase()||n)return void t.call(this);const r=Bs.getTaskByUrl(this.url);r?r.addLoadCompleteListener(()=>{if(r.getStatus()===Is.Done){const t=r.getData();if(t)return void e?.call(this,t)}t.call(this)}):t.call(this)},_tryHandleRequestWithCache:function(e,t){this._tryHandleRequestWithPreload(t=>{this.isReadFromCache=!0,this._makeResponse(t,200),e?.call(this)},()=>{let n=null;if("GET"===this.method.toUpperCase()&&this.requestHeaders){const t="text"===this.responseType?"ascii":void 0,r=[];this.requestHeaders[Xn.Ay.STARK_PACKAGE_PATH]&&r.push(this.requestHeaders[Xn.Ay.STARK_PACKAGE_PATH]),this.requestHeaders[Xn.Ay.STARK_LOCAL_CACHE_PATH_HEADER]&&r.push(this.requestHeaders[Xn.Ay.STARK_LOCAL_CACHE_PATH_HEADER]),n=r[0];for(const n of r){const r=Qs.readSync(this.url,n,t);if(r)return this.isReadFromCache=!0,this._makeResponse(r,200),void e?.call(this)}}delete this.requestHeaders[Xn.Ay.STARK_PACKAGE_PATH],delete this.requestHeaders[Xn.Ay.STARK_LOCAL_CACHE_PATH_HEADER],delete this.requestHeaders[Xn.Ay.STARK_PRELOAD_REQUEST_HEADER],t?.call(this,n)})},_makeNativeRequest:async function(e){(0,t.xF)(`use native request ${this.url}, async: ${this.async}, responseType: ${this.responseType}`);const n="Stark-Native-Inner-Request";qe(this.url)?this.requestHeaders[n]="inner":delete this.requestHeaders[n],this._tryHandleRequestWithCache(()=>{},t=>{this._makeOriginalRequest(e,{useNativeHttp:!0,onReadyStateChanged:e=>{if(t&&e===XMLHttpRequest.DONE&&"GET"===this.method.toUpperCase()&&(0,Xn.RJ)(this.status)){Qs.ensureContentLength(this)&&Qs.save(this.url,t,this.response)}}})})},_makeJSSDKRequest:async function(e){(0,t.xF)(`use jssdk request ${this.url}, responseType: ${this.responseType}, header: ${JSON.stringify(this.requestHeaders)}`),this._tryHandleRequestWithCache(()=>{},t=>{let n=jssdk.request,r=!1;qe(this.url)&&(n=(0,He.W)().innerRequest,r=!0),this._makeHeadersLowercase(),n({data:e,url:this.url,method:this.method,header:this.requestHeaders,dataType:"other",withCommonParams:r,responseType:"arraybuffer"===this.responseType?"arraybuffer":"text",success:e=>{this._makeResponse(e.data,e.statusCode,e.header,t)},fail:e=>{console.error(`request ${this.url} failed, error: ${JSON.stringify(e)}----- header: ${e.header}`);const t=e.errMsg;-1!==t.indexOf("abort")?this.onabort&&this.onabort():-1!==t.indexOf("timeout")?this.ontimeout&&this.ontimeout():this.onerror&&this.onerror(t),this.onloadend&&this.onloadend()}})})},_disposeInternalXHR:function(){this._internalXhr&&(["response","responseText","getAllResponseHeaders","getResponseHeader"].forEach(e=>{Object.defineProperty(this,e,{get:void 0})}),this._internalXhr.onreadystatechange=null,this._internalXhr=null)},_makeOriginalRequest:function(e,n){(0,t.xF)(`use original request ${this.url}, async: ${this.async}, responseType: ${this.responseType}`);const r=eu||XMLHttpRequest;this._makeHeadersLowercase(),this._disposeInternalXHR();let i=new r;this._internalXhr=i;const o=n&&!0===n.useNativeHttp;let a=this.url;o&&(a=this.url.replace(/^(http(s?)):\/\//,"schttp$2://")),i.open(this.method,a,this.async),this.responseType&&(i.responseType=this.responseType),o&&i.setRequestHeader("x-sc-timestamp",Date.now()),this.requestHeaders&&Object.keys(this.requestHeaders).forEach(e=>{i.setRequestHeader(e,this.requestHeaders[e])}),["response","responseText","getAllResponseHeaders","getResponseHeader"].forEach(e=>{Object.defineProperty(this,e,{get:()=>"function"==typeof i[e]?i[e].bind(i):i[e]})});const s=this;i.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE){const e=this.status;s.status=e,s.statusText=ru[e]}n&&n.onReadyStateChanged&&n.onReadyStateChanged.call(this,this.readyState),s._readyStateChange(this.readyState)},i.send(e)},_doRequest:function(e){"GET"!==this.method&&null!=e&&"object"==typeof e&&(e.length??0)>0&&(this.url.toLowerCase().startsWith("wkkrypton://")||(e=new Uint8Array(e).buffer));try{this.url.startsWith("http")&&!1!==this.async?!function(){void 0===du&&fu();return du}()?this._makeJSSDKRequest(e):this._makeNativeRequest(e):this._makeOriginalRequest(e)}catch(e){this.onerror&&this.onerror(`request ${this.url} failed: ${e}`)}},_setResponseHeaders:function(e){for(var t in this.responseHeaders={},e)if(e.hasOwnProperty(t))if("object"==typeof e[t])for(let n in e[t])this.responseHeaders[n]=e[t][n];else this.responseHeaders[t]=e[t];this.forceMimeType&&(this.responseHeaders["Content-Type"]=this.forceMimeType),this.async?this._readyStateChange(au.HEADERS_RECEIVED):this.readyState=au.HEADERS_RECEIVED},_setResponseBody:function(e){!function(e){if(e.readyState==au.DONE)throw new Error("Request done")}(this),function(e){if(e.async&&e.readyState!=au.HEADERS_RECEIVED)throw new Error("No headers received")}(this),function(e){if("string"!=typeof e){var t=new Error("Attempted to respond to fake XMLHttpRequest with "+e+", which is not a string.");throw t.name="InvalidBodyException",t}}(e);var t=this.chunkSize||10,n=0;this.responseText="",this.response=this.responseText;do{this.async&&this._readyStateChange(au.LOADING),this.responseText+=e.substring(n,n+t),this.response=this.responseText,n+=t}while(n<e.length);var r,i,o=this.getResponseHeader("Content-Type");if(this.responseText&&(!o||/(text\/xml)|(application\/xml)|(\+xml)/.test(o)))try{this.responseXML=(r=this.responseText,"undefined"!=typeof DOMParser?i=(new DOMParser).parseFromString(r,"text/xml"):((i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(r)),i)}catch(e){}this.async?this._readyStateChange(au.DONE):this.readyState=au.DONE},respond:function(e,t,n){this._setResponseHeaders(t||{}),this.status="number"==typeof e?e:200,this.statusText=ru[this.status],this._setResponseBody(n||"")}};for(var uu in su)au.prototype[uu]=su[uu];function cu(e){if(e.readyState!==au.OPENED)throw new Error("INVALID_STATE_ERR");if(e.sendFlag)throw new Error("INVALID_STATE_ERR")}const lu=au;var du=void 0;function fu(){var n,r,i=e.B8.gameModel.appId,o=(0,He.W)().getAppSettings({fields:["sc_http_optm_switch_v2"]},!0),a=(0,He.W)().getAppSettings({fields:["sc_http_optm_ab_switch"]},!0),s={masterSettings:o,abSettings:a,version:pn._.largerThanOrEqualTo("2.12.0"),masterSwitch:!1,abSwitch:void 0!==a&&a.switch};void 0!==o&&((null===(n=o.whitelist)||void 0===n?void 0:n.indexOf(i))>=0?s.masterSwitch=!0:(null===(r=o.blacklist)||void 0===r?void 0:r.indexOf(i))>=0?s.masterSwitch=!1:s.masterSwitch=o.switch),du=s.version&&s.masterSwitch&&s.abSwitch,t.NK.info("SC_XHR implementation: ".concat(du?"schttp/schttps":"tt.request",", validations: ").concat(JSON.stringify(s)))}function hu(){if(e.B8.canUseLocalNet){globalThis.fetch=Ys.wq,t.NK.info("use SC_XHR instead of XMLHttpRequest"),fu();var n=(0,He.W)().getWebviewRawGlobal().XMLHttpRequest;if(!n)throw new Error("cannot get original xhr");tu(n),Object.assign(globalThis,{XMLHttpRequest:lu});var r=new Set,i=XMLHttpRequest.prototype.open,o=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(e,t,n){return this._method=null!=e?e:"GET",this._url=t,this._needCache=!1,this._async=n,i.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){var e="GET"==this._method.toUpperCase();if(this._useOriginRequest||!e||0==this._async)return o.apply(this,arguments);u(this,arguments)}}function a(e){return(0,l.sH)(this,void 0,void 0,function(){return(0,l.YH)(this,function(n){return[2,new Promise(function(n,r){t.NK.debug("request header from url: ".concat(e));var i=new XMLHttpRequest;i._useOriginRequest=!0,i.open("HEAD",e),i.onload=function(){var e=i.getResponseHeader("Content-Length"),t=i.getResponseHeader("Last-Modified");n({contentLength:e,lastModified:t})},i.onerror=function(){r()},i.ontimeout=function(){r()},i.send()})]})})}function s(e,n,r){var i;return(0,l.sH)(this,void 0,void 0,function(){var o,a,s,u;return(0,l.YH)(this,function(c){switch(c.label){case 0:if(!n)return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),o=void 0,r&&(o="utf8"),[4,Qs.read(e._url,n,o)];case 2:return(a=c.sent())?(s="string"==typeof a?a.length:null!==(i=null==a?void 0:a.byteLength)&&void 0!==i?i:0,t.NK.debug("[HookXHR] cache hit (local file), url: ".concat(e._url,", path: ").concat(n,", size: ").concat(s)),e.isReadFromCache=!0,function(e,t,n,r,i){e.status=t,e.statusText="OK",r?(e.response=null,e.responseText=n):(e.response=n,e.responseText=""),e.onload&&e.onload(i)}(e,200,a,r,{}),[2,!0]):[3,4];case 3:return u=c.sent(),t.NK.debug("[HookXHR] cache miss (read error), url: ".concat(e._url,", path: ").concat(n,", error: ").concat(u)),[3,4];case 4:return[2,!1]}})})}function u(n,i){var u,c;return(0,l.sH)(this,void 0,void 0,function(){var d,f,h,p,m,_,y,g,v,b,E,S;return(0,l.YH)(this,function(l){switch(l.label){case 0:return d=null!==(u=n._method)&&void 0!==u?u:"GET",f="text"==n.responseType,!(h=(0,Gr.pj)(n._url,d))||e.B8.useDataCDNAsStreamingAssetsUrl?[3,4]:(p=null===(c=globalThis.GameGlobal)||void 0===c?void 0:c.pluginGame)&&"function"==typeof p.ensureStreamingAssetsLoaded?[4,p.ensureStreamingAssetsLoaded()]:[3,2];case 1:l.sent(),l.label=2;case 2:return[4,s(n,h,f)];case 3:if(l.sent())return[2];l.label=4;case 4:return(0,Gr.d5)(n._url,n._method)&&(m=(0,Gr.Zg)(n._url)?void 0:(0,Gr.sC)(n._url)),t.NK.debug("url: ".concat(n._url,", method: ").concat(n._method,", localCachePath: ").concat(m)),m?(_={contentLength:"",lastModified:""},y={contentLength:"",lastModified:""},[4,Xt.fs.access(m)]):[3,13];case 5:if(!l.sent())return[3,12];l.label=6;case 6:return l.trys.push([6,8,,9]),[4,a(n._url)];case 7:return _=l.sent(),[3,9];case 8:return g=l.sent(),t.NK.error("request head error: ".concat(g,", url: ").concat(n._url)),[3,9];case 9:v=!1;try{t.NK.debug("".concat(n._url,", server info: ").concat(JSON.stringify(_))),b=m+".meta",(E=Xt.fs.readFileSync(b,"ascii"))?(y=JSON.parse(E),t.NK.debug("".concat(n._url,", local info: ").concat(JSON.stringify(y))),(y.contentLength&&y.contentLength!=_.contentLength||y.lastModified&&y.lastModified!=_.lastModified)&&(v=!0)):v=!0}catch(e){t.NK.error("".concat(e))}return v?(t.NK.debug("url: ".concat(n._url,", delete local cache path: ").concat(m)),Xt.fs.removeFileSync(m),[3,12]):[3,10];case 10:return[4,s(n,m,f)];case 11:if(l.sent())return[2];l.label=12;case 12:n.setRequestHeader(Xn.Ay.STARK_LOCAL_CACHE_PATH_HEADER,m),S=n.onload,n.onload=function(){if(function(e,n,r,i,o){try{var a=r.getResponseHeader("Content-Length"),s=r.getResponseHeader("Last-Modified");if(!a&&o&&o.contentLength&&(a=o.contentLength),!s&&o&&o.lastModified&&(s=o.lastModified),i&&i.contentLength!=a||i&&i.lastModified!=s){var u=JSON.stringify({contentLength:a,lastModified:s}),c=n+".meta";t.NK.debug("url: ".concat(e," ").concat(u,", save meta file to ").concat(c)),Xt.fs.writeFileSync(c,u,"ascii")}else t.NK.debug("url: ".concat(e,", meta data consistent, not need to save meta data"))}catch(n){t.NK.error("save response meta data failed: ".concat(n,", url: ").concat(e))}}(n._url,m,n,y,_),"function"==typeof S)return S.apply(n,arguments)},l.label=13;case 13:return h&&!e.B8.useDataCDNAsStreamingAssetsUrl&&n.setRequestHeader(Xn.Ay.STARK_PACKAGE_PATH,h),r.add(n._url),o.apply(n,i),[2]}})})}}Symbol("__unity_fix_touch_symbol__");function pu(t){var n=t.width,r=t.height;(0,e.Yg)()?n<r&&(n=t.height,r=t.width):r<n&&(n=t.height,r=t.width),t.width=n,t.height=r}function mu(){try{var e=new(kryptonStarter.setupKryptonEngine()),n={};e.append(n),n.krypton.setOptions({enableWebGL2:!0,autoReleaseImageMemFromLocal:!0})}catch(e){t.Vp.info("fixKryptonWebGl2 error ".concat(e))}}function _u(e){pu(e),Object.assign(e,{style:{},getContextSafariWebGL2Fixed:!0});var n={left:0,top:0,width:e.width,height:e.height};t.Vp.info("canvas width: ".concat(e.width,", height:").concat(e.height,", clientWidth: ").concat(e.clientWidth,", clientHeight: ").concat(e.clientHeight,", baseRect: ").concat(JSON.stringify(n))),e.getBoundingClientRect=function(){return Object.assign(Object.create(null),(0,l.Cl)({},n))}}Symbol.for("__tmg_make_krypton_touch_in_logic_pixel_unit_symbol__");var yu="",gu=function(){function n(e,n,r){var i,o,a,s;t.oo.info("UnityManagerForPlugin constructor"),this.canvas=e,this.managerConfig=n,this.namespace=r,this.developerStageTimeline=new Gs,this.customLoadingManager=new Ws(null!==(i=n.disableLoadingPage)&&void 0!==i&&i,null!==(o=n.hideAfterCallmain)&&void 0!==o&&o,null!==(a=n.disableAutoHideLoadingPage)&&void 0!==a&&a,null!==(s=n.loadingPageConfig)&&void 0!==s?s:{})}return n.preloadUnityAbility=function(){na()},n.prototype.preStartGame=function(){(0,e.$_)("UnityWebgl"),function(){(0,Bt.m0)()&&Object.assign(globalThis,{XMLHttpRequest:$e});var e=jssdk.getSystemInfoSync().pixelRatio;Object.assign(globalThis,{devicePixelRatio:e})}(),ma(this.managerConfig,this.namespace),((0,e.VS)()||(null===e.B8||void 0===e.B8?void 0:e.B8.debug.enableNativeLog))&&ga.forEach(function(e){var n=globalThis.console[e];globalThis.console[e]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];"log"===e?t.xG.info.apply(t.xG,(0,l.fX)([],(0,l.zs)(r),!1)):t.xG[e].apply(t.xG,(0,l.fX)([],(0,l.zs)(r),!1)),n.apply(void 0,(0,l.fX)([],(0,l.zs)(r),!1))}}),(0,Bt.m0)()?($s(),_u(this.canvas),mu()):(0,Bt.un)()&&hu()},n.prototype.startGame=function(){n.preloadUnityAbility(),this.customLoadingManager.enterStage(xs.downloading),this.customLoadingManager.updateSubStageProgress(xs.downloading,0),this.developerStageTimeline.markStart(Hs.launchPlugin),t.oo.info("UnityManagerForPlugin startGame");try{this.preStartGame()}catch(n){if(n instanceof Error)this.developerStageTimeline.emitLoadError(n),this.customLoadingManager.onError(n.message);else if("string"==typeof n)this.developerStageTimeline.emitLoadError(n),this.customLoadingManager.onError(n);else{t.oo.error("preStartGame failed: ",n);var e="preStartGame failed: ".concat(n);this.developerStageTimeline.emitLoadError(e),this.customLoadingManager.onError(e)}}new zs(this.canvas,this.namespace.UnityModule,this.customLoadingManager,this.developerStageTimeline).start()},n.prototype.onLaunchProgress=function(e){this.developerStageTimeline.onLaunchProgress(e)},n.prototype.onModulePrepared=function(e){this.developerStageTimeline.onModulePrepared(e)},Object.defineProperty(n.prototype,"onLogError",{set:function(e){this.developerStageTimeline.onLogError(e)},enumerable:!1,configurable:!0}),n.prototype.hideLoadingPage=function(){this.customLoadingManager.customLoadingHide()},n.version=ya(),n}();Gs.logStartTime=Date.now();const vu=gu})(),module.exports=__webpack_exports__.default})();
|