Copyright The Closure Library Authors.
Copyright The Closure Compiler Authors.
SPDX-License-Identifier: Apache-2.0
*/
function g(){this.j=!1;this.h=null;this.l=void 0;this.g=1;this.o=0;this.i=null}function k(a){if(a.j)throw new TypeError("Generator is already running");a.j=!0}g.prototype.m=function(a){this.l=a};function l(a,b){a.i={s:b,u:!0};a.g=a.o}g.prototype.return=function(a){this.i={return:a};this.g=this.o};function m(a){this.g=new g;this.h=a}function n(a,b){k(a.g);var c=a.g.h;if(c)return p(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return q(a)}
function p(a,b,c,d){try{var e=b.call(a.g.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.j=!1,e;var h=e.value}catch(f){return a.g.h=null,l(a.g,f),q(a)}a.g.h=null;d.call(a.g,h);return q(a)}function q(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.j=!1,{value:b.value,done:!1}}catch(c){a.g.l=void 0,l(a.g,c)}a.g.j=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.u)throw b.s;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
function r(a){this.next=function(b){k(a.g);a.g.h?b=p(a,a.g.h.next,b,a.g.m):(a.g.m(b),b=q(a));return b};this.throw=function(b){k(a.g);a.g.h?b=p(a,a.g.h["throw"],b,a.g.m):(l(a.g,b),b=q(a));return b};this.return=function(b){return n(a,b)};this[Symbol.iterator]=function(){return this}}function t(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function h(f){f.done?d(f.value):Promise.resolve(f.value).then(b,c).then(h,e)}h(a.next())})}
function u(a){return t(new r(new m(a)))}var v=this||self;function w(a){return String.fromCodePoint(a).toLowerCase().codePointAt(0)}function x(a){return String.fromCodePoint(a).toUpperCase().codePointAt(0)}function y(a){return String.fromCharCode(a).toLowerCase().charCodeAt(0)}function z(a){return String.fromCharCode(a).toUpperCase().charCodeAt(0)};function A(a,b){console[a](b)};function B(a){return/^\s*[+-]?(NaN|Infinity|((\d+\.?\d*)|(\.\d+))([eE][+-]?\d+)?[dDfF]?)\s*$/.test(a)}function C(a,b){return a%b};function D(a,b){if(a instanceof Object)try{a.__j2wasm$exception=b}catch(c){}}function E(a){var b;return(b=a.__j2wasm$exception)!=null?b:null};function F(a,b){return a.toLowerCase()==b.toLowerCase()}function G(a,b){a=a.toLowerCase();b=b.toLowerCase();return a==b?0:a<b?-1:1}var H=1E3;function I(){return"Class$obf_"+ ++H};function J(){return{WebAssembly:WebAssembly,"wasm:js-string":{fromCharCodeArray:unused_import,concat:unused_import,equals:unused_import,compare:unused_import,length:unused_import,charCodeAt:unused_import,substring:unused_import},imports:{"?.toString":function(a){return a.toString()},"Date.UTC":Date.UTC,"Date.constructor":function(){return new Date},"Date.constructor$1":function(a){return new Date(a)},"Date.constructor$7":function(a,b,c,d,e,h,f){return new Date(a,b,c,d,e,h,f)},"Date.getDate":function(a){return a.getDate()},"Date.getDay":function(a){return a.getDay()},"Date.getFullYear":function(a){return a.getFullYear()},"Date.getHours":function(a){return a.getHours()},"Date.getMilliseconds":function(a){return a.getMilliseconds()},
"Date.getMinutes":function(a){return a.getMinutes()},"Date.getMonth":function(a){return a.getMonth()},"Date.getSeconds":function(a){return a.getSeconds()},"Date.getTime":function(a){return a.getTime()},"Date.getTimezoneOffset":function(a){return a.getTimezoneOffset()},"Date.getUTCDate":function(a){return a.getUTCDate()},"Date.getUTCFullYear":function(a){return a.getUTCFullYear()},"Date.getUTCHours":function(a){return a.getUTCHours()},"Date.getUTCMinutes":function(a){return a.getUTCMinutes()},"Date.getUTCMonth":function(a){return a.getUTCMonth()},
"Date.getUTCSeconds":function(a){return a.getUTCSeconds()},"Date.now":Date.now,"Date.parse":Date.parse,"Date.setDate$1":function(a,b){return a.setDate(b)},"Date.setFullYear$1":function(a,b){return a.setFullYear(b)},"Date.setFullYear$3":function(a,b,c,d){return a.setFullYear(b,c,d)},"Date.setHours$1":function(a,b){return a.setHours(b)},"Date.setHours$4":function(a,b,c,d,e){return a.setHours(b,c,d,e)},"Date.setMinutes$1":function(a,b){return a.setMinutes(b)},"Date.setMonth$1":function(a,b){return a.setMonth(b)},
"Date.setSeconds$1":function(a,b){return a.setSeconds(b)},"Date.setTime$1":function(a,b){return a.setTime(b)},"Date.toLocaleString":function(a){return a.toLocaleString()},Error:Error,"Error.constructor":function(){return Error()},"Math.acos":Math.acos,"Math.asin":Math.asin,"Math.atan":Math.atan,"Math.atan2":Math.atan2,"Math.cbrt":Math.cbrt,"Math.cos":Math.cos,"Math.cosh":Math.cosh,"Math.exp":Math.exp,"Math.expm1":Math.expm1,"Math.hypot":Math.hypot,"Math.log":Math.log,"Math.log10":Math.log10,"Math.log1p":Math.log1p,
"Math.pow":Math.pow,"Math.random":Math.random,"Math.round":Math.round,"Math.sign":Math.sign,"Math.sin":Math.sin,"Math.sinh":Math.sinh,"Math.tan":Math.tan,"Math.tanh":Math.tanh,"Number.prototype.toPrecision.call$2":function(a,b){return Number.prototype.toPrecision.call(a,b)},"Number.prototype.toString.call$1":function(a){return Number.prototype.toString.call(a)},"Number.prototype.toString.call$2":function(a,b){return Number.prototype.toString.call(a,b)},"RegExp.constructor$1":function(a){return new RegExp(a)},
"RegExp.constructor$2":function(a,b){return new RegExp(a,b)},"RegExp.exec$1":function(a,b){return a.exec(b)},"RegExp.test$1":function(a,b){return a.test(b)},"RegExpResult.at$1":function(a,b){return a.at(b)},atob:atob,btoa:btoa,gc:gc,"get Error.hasCaptureStackTraceProperty":function(){return Error.g},"get Error.stack":function(a){return a.stack},"get RegExpResult.index":function(a){return a.index},"get RegExpResult.length":function(a){return a.length},"j2wasm.CharUtils.charToLowerCase":y,"j2wasm.CharUtils.charToUpperCase":z,
"j2wasm.CharUtils.codePointToLowerCase":w,"j2wasm.CharUtils.codePointToUpperCase":x,"j2wasm.ConsoleUtils.log":A,"j2wasm.DoubleUtils.dmod":C,"j2wasm.DoubleUtils.isValidDouble":B,"j2wasm.ExceptionUtils.getJavaThrowable":E,"j2wasm.ExceptionUtils.setJavaThrowable":D,"j2wasm.StringUtils.compareToIgnoreCase":G,"j2wasm.StringUtils.equalsIgnoreCase":F,"j2wasm.StringUtils.generateClassName":I,parseFloat:parseFloat,"performance.now":function(){return performance.now()},"set Error.hasCaptureStackTraceProperty":function(a){return Error.g=
a},"set Error.stack":function(a,b){return a.stack=b},"set RegExp.lastIndex":function(a,b){return a.lastIndex=b},"set goog.global.__benchmarking_result":function(a){return v.__benchmarking_result=a},"string.indexOf$1":function(a,b){return a.indexOf(b)},"string.indexOf$2":function(a,b,c){return a.indexOf(b,c)},"string.lastIndexOf$1":function(a,b){return a.lastIndexOf(b)},"string.lastIndexOf$2":function(a,b,c){return a.lastIndexOf(b,c)},"string.repeat$1":function(a,b){return a.repeat(b)},"string.replace$2":function(a,
b,c){return a.replace(b,c)},"string.toLocaleLowerCase":function(a){return a.toLocaleLowerCase()},"string.toLocaleUpperCase":function(a){return a.toLocaleUpperCase()},"string.toLowerCase":function(a){return a.toLowerCase()},"string.toUpperCase":function(a){return a.toUpperCase()}}}}var K={builtins:["js-string"],importedStringConstants:"'"};
function L(){var a,b,c;return u(function(d){switch(d.g){case 1:d.g=2;break;case 3:return a=d.l,b=a.instance,d.return(b);case 2:var e=M();d.g=4;return{value:e};case 4:return c=d.l,d.return(N(c))}})}function M(){var a;return u(function(b){a=fetch("Box2dBenchmark_j2wasm_binary.wasm");return b.return(WebAssembly.compileStreaming(a,K))})}function O(a){return u(function(b){return b.return(WebAssembly.compile(a,K))})}function N(a){return u(function(b){return b.return(WebAssembly.instantiate(a,P(a)))})}
function P(a){var b=J();if(a=WebAssembly.Module.customSections(a,"string.consts")[0])a=(new TextDecoder).decode(a),b["string.const"]=JSON.parse(a);return b};if(typeof isJetStreamDriver!=="undefined")v.instantiateAsync=function(a){var b;return u(function(c){if(c.g==1){b=N;var d=O(a);c.g=2;return{value:d}}return c.return(b(c.l))})};else if(typeof read=="undefined")L().then(function(a){return Object.assign(v,a.exports)});else{var Q=read("Box2dBenchmark_j2wasm_binary.wasm","binary"),R=function(){};R.prototype.decode=function(a){return String.fromCharCode.apply(null,new Uint8Array(a))};v.TextDecoder=R;v.atob=function(){throw Error("atob not supported");};
v.btoa=function(){throw Error("btoa not supported");};var S=Object,T=S.assign,U,V=new WebAssembly.Module(Q,K);U=new WebAssembly.Instance(V,P(V));T.call(S,v,U.exports)};