function createTuanjieInstance(r,n,l){function s(e,r){if(!s.aborted&&n.showBanner)return"error"==r&&(s.aborted=!0),n.showBanner(e,r);switch(r){case"error":console.error(e);break;case"warning":console.warn(e);break;default:console.log(e)}}function t(e){var r=e.reason||e.error,n=r?r.toString():e.message||e.reason||"",t=r&&r.stack?r.stack.toString():"";(n+="\n"+(t=t.startsWith(n)?t.substring(n.length):t).trim())&&d.stackTraceRegExp&&d.stackTraceRegExp.test(n)&&b(n,e.filename||r&&(r.fileName||r.sourceURL)||"",e.lineno||r&&(r.lineNumber||r.line)||0)}function e(e,r,n){var t=e[r];void 0!==t&&t||(console.warn('Config option "'+r+'" is missing or empty. Falling back to default value: "'+n+'". Consider updating your WebGL template to include the missing config option.'),e[r]=n)}l=l||function(){};var c,o,d={canvas:r,webglContextAttributes:{preserveDrawingBuffer:!1,powerPreference:2},streamingAssetsUrl:"StreamingAssets",downloadProgress:{},deinitializers:[],intervals:{},setInterval:function(e,r){e=window.setInterval(e,r);return this.intervals[e]=!0,e},clearInterval:function(e){delete this.intervals[e],window.clearInterval(e)},preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e),"string"==typeof e&&-1!=e.indexOf("wasm streaming compile failed")&&(-1!=e.toLowerCase().indexOf("mime")?s('HTTP Response Header "Content-Type" configured incorrectly on the server for file '+d.codeUrl+' , should be "application/wasm". Startup time performance will suffer.',"warning"):s('WebAssembly streaming compilation failed! This can happen for example if "Content-Encoding" HTTP header is incorrectly enabled on the server for file '+d.codeUrl+", but the file is not pre-compressed on disk (or vice versa). Check the Network tab in browser Devtools to debug server header configuration.","warning"))},locateFile:function(e){return"build.wasm"==e?this.codeUrl:e},disabledCanvasEvents:["contextmenu","dragstart"]};for(o in e(n,"companyName","U3D"),e(n,"productName","WebGL Player"),e(n,"productVersion","1.0"),n)d[o]=n[o];d.streamingAssetsUrl=new URL(d.streamingAssetsUrl,document.URL).href;var a=d.disabledCanvasEvents.slice();function i(e){e.preventDefault()}a.forEach(function(e){r.addEventListener(e,i)}),window.addEventListener("error",t),window.addEventListener("unhandledrejection",t);var u="",f="";function h(e){document.webkitCurrentFullScreenElement===r?r.style.width&&(u=r.style.width,f=r.style.height,r.style.width="100%",r.style.height="100%"):u&&(r.style.width=u,r.style.height=f,f=u="")}document.addEventListener("webkitfullscreenchange",h),d.deinitializers.push(function(){for(var e in d.disableAccessToMediaDevices(),a.forEach(function(e){r.removeEventListener(e,i)}),window.removeEventListener("error",t),window.removeEventListener("unhandledrejection",t),document.removeEventListener("webkitfullscreenchange",h),d.intervals)window.clearInterval(e);d.intervals={}}),d.QuitCleanup=function(){for(var e=0;e>2],usedWASMHeapSize:d.HEAPU32[1+(e>>2)],totalJSHeapSize:d.HEAPF64[1+(e>>3)],usedJSHeapSize:d.HEAPF64[2+(e>>3)]}}};function p(e,r,n){-1==e.indexOf("fullscreen error")&&(d.startupErrorHandler?d.startupErrorHandler(e,r,n):d.errorHandler&&d.errorHandler(e,r,n)||(console.log("Invoking error handler due to\n"+e),"function"==typeof dump&&dump("Invoking error handler due to\n"+e),p.didShowErrorMessage||(-1!=(e="An error occurred running the content on this page. See your browser JavaScript console for more info. The error was:\n"+e).indexOf("DISABLE_EXCEPTION_CATCHING")?e="An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace.":-1!=e.indexOf("Cannot enlarge memory arrays")?e="Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.":-1==e.indexOf("Invalid array buffer length")&&-1==e.indexOf("Invalid typed array length")&&-1==e.indexOf("out of memory")&&-1==e.indexOf("could not allocate memory")||(e="The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."),alert(e),p.didShowErrorMessage=!0)))}function m(e,r){var n="(wasm-function\\[)(\\d+)(\\])",t=new RegExp(n);return e.replace(new RegExp(n,"g"),function(e){e=e.match(t);return e[1]+(r[e[2]]?r[e[2]]+"@":"")+e[2]+e[3]})}function b(t,o,a){d.symbols?p(m(t,d.symbols),o,a):d.symbolsUrl?w("symbolsUrl").then(function(e){for(var r="",n=0;nIf using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported in Firefox over HTTP connections. '+t+' See https://bugzilla.mozilla.org/show_bug.cgi?id=1670675 for more information.':"Unable to parse "+d.frameworkUrl+'!
If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.'),void s(n,"error"))}s("Unable to parse "+d.frameworkUrl+"! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)","error")}var o=tuanjieFramework;tuanjieFramework=null,i.onload=null,a(o)},i.onerror=function(e){s("Unable to load file "+d.frameworkUrl+"! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)","error")},document.body.appendChild(i),d.deinitializers.push(function(){document.body.removeChild(i)})}).then(function(e){e(d),c={Module:d}}).then(()=>{});var e=w("dataUrl");d.preRun.push(function(){c.Module.addRunDependency("dataUrl"),e.then(function(e){var r=new DataView(e.buffer,e.byteOffset,e.byteLength),n=0,t="TuanjieWebData1.0\0";if(!String.fromCharCode.apply(null,e.subarray(n,n+t.length))==t)throw"unknown data format";var o=r.getUint32(n+=t.length,!0);for(n+=4;n