diff --git a/app/javascript/packages/document-capture/context/acuant.jsx b/app/javascript/packages/document-capture/context/acuant.jsx index 63f90593a58..504149ad720 100644 --- a/app/javascript/packages/document-capture/context/acuant.jsx +++ b/app/javascript/packages/document-capture/context/acuant.jsx @@ -126,8 +126,8 @@ AcuantContext.displayName = 'AcuantContext'; * @param {AcuantContextProviderProps} props Props object. */ function AcuantContextProvider({ - sdkSrc = '/acuant/11.5.0/AcuantJavascriptWebSdk.min.js', - cameraSrc = '/acuant/11.5.0/AcuantCamera.min.js', + sdkSrc = '/acuant/11.5.1/AcuantJavascriptWebSdk.min.js', + cameraSrc = '/acuant/11.5.1/AcuantCamera.min.js', credentials = null, endpoint = null, glareThreshold = DEFAULT_ACCEPTABLE_GLARE_SCORE, diff --git a/public/acuant/11.5.1/AcuantCamera.min.js b/public/acuant/11.5.1/AcuantCamera.min.js new file mode 100644 index 00000000000..35a416aed4f --- /dev/null +++ b/public/acuant/11.5.1/AcuantCamera.min.js @@ -0,0 +1 @@ +var AcuantCameraUI=function(){"use strict";let e=null,t=null,a=null,i=null,n={start:function(n,s,p){m=s,p&&(u=p);AcuantCamera.isCameraSupported?r||(r=!0,S(),function(n){var r=0,s=(new Date).getTime();i=document.getElementById("acuant-camera"),i&&i.addEventListener("acuantcameracreated",(()=>{e=document.getElementById("acuant-player"),t=document.getElementById("acuant-ui-canvas"),a=t.getContext("2d"),t.setAttribute("role","img"),e.addEventListener("play",A,0)}));AcuantCamera.start((e=>{!function(e,t){if(t>=3)return!0;{let t=(new Date).getTime()-e;return t{v(),document.fullscreenElement?document.exitFullscreen().then((()=>{e.onCaptured(a)})):e.onCaptured(a),AcuantCamera.evaluateImage(a.data,a.width,a.height,t,(t=>{e.onCropped(t)}))}))}function b(e,t){v(),m&&m(e,t),m=null}function A(){!function i(){e&&!e.paused&&!e.ended&&r&&(!function(){if(a.clearRect(0,0,t.width,t.height),o)if(o.state===d)I("#00ff00"),D("rgba(0, 255, 0, 0.2)"),L(u.text.CAPTURING,.05,"#00ff00",!1);else if(o.state===h)I("#000000"),L(u.text.TAP_TO_CAPTURE);else if(o.state===AcuantCamera.DOCUMENT_STATE.GOOD_DOCUMENT)if(I("#ffff00"),D("rgba(255, 255, 0, 0.2)"),u.text.GOOD_DOCUMENT)L(u.text.GOOD_DOCUMENT,.09,"#ff0000",!1);else{let e=Math.ceil((g-((new Date).getTime()-l))/1e3);e<=0&&(e=1),L(e+"...",.09,"#ff0000",!1)}else o.state===AcuantCamera.DOCUMENT_STATE.SMALL_DOCUMENT?(I("#ff0000"),L(u.text.SMALL_DOCUMENT)):(I("#000000"),L(u.text.NONE));else I("#000000"),L(u.text.NONE)}(),p=setTimeout(i,100))}()}function L(e,t=.04,i="#ffffff",n=!0){let r=x(),o=window.orientation,l=a.measureText(e),s=.01*Math.max(r.width,r.height),m=.02*Math.max(r.width,r.height);var c=(r.height-m-l.width)/2,p=-(r.width/2-s),d=90;0!==o&&(d=0,c=(r.width-s-l.width)/2,p=r.height/2-m+.04*Math.max(r.width,r.height)),a.rotate(d*Math.PI/180),n&&(a.fillStyle="rgba(0, 0, 0, 0.5)",a.fillRect(c-s,p+s,l.width+m,-.05*Math.max(r.width,r.height))),a.font=(Math.ceil(Math.max(r.width,r.height)*t)||0)+"px Sans-serif",a.fillStyle=i,a.fillText(e,c,p),R(e),a.restore()}const R=e=>{s||(s=document.createElement("p"),s.id="doc-state-text",s.style.height="1px",s.style.width="1px",s.style.margin="-1px",s.style.overflow="hidden",s.style.position="absolute",s.style.whiteSpace="nowrap",s.setAttribute("role","alert"),s.setAttribute("aria-live","assertive"),t.parentNode.insertBefore(s,t)),s.innerHTML!=e&&(s.innerHTML=e)};function x(){return-1==(e=navigator.userAgent.toLowerCase()).indexOf("safari")||e.indexOf("chrome")>-1?{height:t.height,width:t.width}:{height:Math.min(document.body.clientHeight,t.height),width:Math.min(document.body.clientWidth,t.width)};var e}function E(e,t){let i=window.orientation,n=x();var r=.08*n.width,o=.07*n.height;switch(0!==i&&(r=.07*n.width,o=.08*n.height),t.toString()){case"1":r=-r;break;case"2":r=-r,o=-o;break;case"3":o=-o}!function(e,t,i){a.beginPath(),a.moveTo(e.x,e.y),a.lineTo(e.x+t,e.y),a.stroke(),a.moveTo(e.x,e.y),a.lineTo(e.x,e.y+i),a.stroke()}(e,r,o)}function D(e){if(o&&o.points&&4===o.points.length){a.beginPath(),a.moveTo(o.points[0].x,o.points[0].y);for(var t=1;tt.height?(e=.85*t.width,a=.85*t.width/1.5887,a>.85*t.height&&(e=e/a*.85*t.height,a=.85*t.height)):(e=.85*t.height/1.5887,a=.85*t.height,e>.85*t.width&&(a=a/e*.85*t.width,e=.85*t.width)),[{x:l.x-(n=e/2),y:l.y-(r=a/2)},{x:l.x+n,y:l.y-r},{x:l.x+n,y:l.y+r},{x:l.x-n,y:l.y+r}].forEach(((e,t)=>{E(e,t)}))}}return n}(),AcuantCamera=function(){"use strict";let e=null,t=null,a=null,i=null,n=null,r=null;const o={NO_DOCUMENT:0,SMALL_DOCUMENT:1,GOOD_DOCUMENT:2},l={NONE:0,ID:1,PASSPORT:2},s=700;let m,c=null,p=null,d=null,h=!1,u=!1,g=null,f={start:E,startManualCapture:D,triggerCapture:function(t){let a;try{if(0==e.videoWidth)throw"width 0";n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),a=r.getImageData(0,0,n.width,n.height),r.clearRect(0,0,n.width,n.height)}catch(e){return void J()}t({data:a,width:n.width,height:n.height})},end:M,DOCUMENT_STATE:o,ACUANT_DOCUMENT_TYPE:l,isCameraSupported:"mediaDevices"in navigator&&(P=!1,w=navigator.userAgent||navigator.vendor||window.opera,void((/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|playbook|silk/i.test(w)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(w.substr(0,4)))&&(P=!0)),(P||b())&&!(navigator.userAgent.toLowerCase().indexOf("firefox")>-1)),isIOSWebview:(y=window.navigator.standalone,S=window.navigator.userAgent.toLowerCase(),v=/safari/.test(S),/iphone|ipod|ipad/.test(S)&&!v&&!y),isIOS:b,setRepeatFrameProcessor:B,evaluateImage:H};var y,S,v,w,P;function C(){if(/iP(hone|od|ad)/.test(navigator.platform)){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]}return""}function b(){return/iPad|iPhone|iPod/.test(navigator.platform)&&C()[0]>=13||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1}var A={targetWidth:window.innerWidth||950,targetHeight:window.innerHeight,frameScale:1,primaryConstraints:{video:{facingMode:{exact:"environment"},height:{min:1440,ideal:1440},aspectRatio:function(){if(b())return 4/3;return 1*Math.max(window.innerWidth,window.innerHeight)/Math.min(window.innerWidth,window.innerHeight)}(),resizeMode:"none",frameRate:{min:10,ideal:15,max:24}}}};function L(t){h=!0,e.srcObject=t,window.addEventListener("resize",N),e&&e.addEventListener("loadedmetadata",_),e.play()}function R(e,t){document.cookie="AcuantCameraHasFailed="+t,M(),p&&"function"==typeof p?document.fullscreenElement?document.exitFullscreen().then((()=>{p(e,t)})):p(e,t):(console.error("No error callback set. Review implementation."),console.error(e,t))}function x(e){navigator.mediaDevices.getUserMedia(e).then((e=>{O()?L(e):function(e){m.requestFullscreen().then((function(){L(e)})).catch((function(t){L(e)}))}(e)})).catch((e=>{R(e,AcuantJavascriptWebSdk.START_FAIL_CODE)}))}function E(i,o,l){if(l&&(p=l),function(){let e="AcuantCameraHasFailed=";return decodeURIComponent(document.cookie).includes(e)}())return l("Live capture has previously failed and was called again. User was sent to manual capture.",AcuantJavascriptWebSdk.REPEAT_FAIL_CODE),void D(o);var s;(m=document.getElementById("acuant-camera"),m)?(m.style.position="relative",m.style.boxSizing="border-box",m.innerHTML='',e=document.getElementById("acuant-player"),n=document.createElement("canvas"),r=n.getContext("2d"),t=document.getElementById("acuant-ui-canvas"),h?R("already started.",AcuantJavascriptWebSdk.START_FAIL_CODE):e&&t?(a=t.getContext("2d"),i&&(c=i),m.dispatchEvent(new Event("acuantcameracreated")),s=A.primaryConstraints,navigator.mediaDevices.enumerateDevices().then((function(e){var t=void 0;e.forEach((function(e){if(e.label&&-1!==e.label.indexOf("back")){let a=e.label.split(","),i=parseInt(a[0][a[0].length-1]);(i||0===i)&&(void 0===t||t>i)&&(t=i,s.video.deviceId=e.deviceId)}})),x(s)})).catch((function(e){x(s)}))):R("Missing HTML elements.",AcuantJavascriptWebSdk.START_FAIL_CODE)):R("Expected div with 'acuant-camera' id",AcuantJavascriptWebSdk.START_FAIL_CODE)}function D(e){d=e,i||(i=document.createElement("input"),i.type="file",i.capture="environment",i.accept="image/*",i.onclick=function(e){e&&e.target&&(e.target.value="")}),i.onchange=k,i.click()}let I,T=-1;function k(e){let t=e.target,a=new FileReader;n=document.createElement("canvas"),r=n.getContext("2d"),a.onload=e=>{T=function(e){var t=new DataView(e.target.result);if(65496!=t.getUint16(0,!1))return-2;for(var a=t.byteLength,i=2;i{let e=2560,a=1920,i=t.width,o=t.height;(i>o?i:o)>e?i-1)}function M(){h=!1,u=!1,T=-1,I=void 0,g&&(clearTimeout(g),g=null),window.removeEventListener("resize",N),e&&e.removeEventListener("loadedmetadata",_),e&&(e.pause(),e.srcObject&&e.srcObject.getTracks().forEach((e=>{e.stop()})),e=null),m&&(m.innerHTML=""),i&&(i.remove(),i=null)}function C(){if(/iP(hone|od|ad)/.test(navigator.platform))try{const e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]}catch(e){return-1}return-1}function G(){let e=C();return e&&-1!=e&&e.length>=1&&15==e[0]}function F(){return navigator.maxTouchPoints&&navigator.maxTouchPoints>=2&&/MacIntel/.test(navigator.platform)}function N(){a.clearRect(0,0,t.width,t.height),e&&(b()&&function(){let e=C();return e&&-1!=e&&e.length>=2&&14==e[0]&&e[1]>=4}()?(M(),E()):U())}function U(){var a=0,i=0;O()?(a=document.body.clientWidth,i=document.body.clientHeight):(a=window.innerWidth,i=window.innerHeight),e.videoWidths&&a>500?e.videoWidth>=e.videoHeight?(A.frameScale=s/e.videoWidth,n.width=s,n.height=e.videoHeight*A.frameScale):(A.frameScale=s/e.videoHeight,n.width=e.videoWidth*A.frameScale,n.height=s):(A.frameScale=1,n.width=e.videoWidth,n.height=e.videoHeight),h){let t;try{r.drawImage(e,0,0,e.videoWidth,e.videoHeight,0,0,n.width,n.height),t=r.getImageData(0,0,n.width,n.height),r.clearRect(0,0,n.width,n.height)}catch(e){return void J()}if(G()||F()){if(I&&function(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;let a=e.length>25e3?25e3:e.length;for(var i=0;i{void 0!==t.x&&void 0!==t.y&&(t.x=t.x/A.frameScale*e.width/e.videoWidth,t.y=t.y/A.frameScale*e.height/e.videoHeight)}));var a=t.isCorrectAspectRatio&&(Math.min(t.dimensions.width,t.dimensions.height)/Math.min(n.width,n.height)>.75||Math.max(t.dimensions.width,t.dimensions.height)/Math.max(n.width,n.height)>.8);t.type===l.NONE?t.state=o.NO_DOCUMENT:t.state=a?o.GOOD_DOCUMENT:o.SMALL_DOCUMENT,c(t),u=!1}},onFail:function(){if(!n||!e||e.paused||e.ended)return;let t={};t.state=o.NO_DOCUMENT,c(t),u=!1}})}(t,n.width,n.height)}}function H(e,t,a,i,n){let r={},o=!0;AcuantJavascriptWebSdk.moire(e,t,a,{onSuccess:function(e,t){r.moire=e,r.moireraw=t,o?o=!1:W(r,i,n)},onFail:function(){r.moire=-1,r.moireraw=-1,o?o=!1:W(r,i,n)}}),AcuantJavascriptWebSdk.crop(e,t,a,{onSuccess:function(e){r.cardtype=e.cardtype,r.dpi=e.dpi,r.image=e.image,o?o=!1:W(r,i,n)},onFail:function(){n()}})}function W(e,t,a){AcuantJavascriptWebSdk.metrics(e.image,e.image.width,e.image.height,{onSuccess:function(i,n){e.sharpness=i,e.glare=n,e.image.data=j(e,t),a(e)},onFail:function(){e.sharpness=-1,e.glare=-1,e.image.data=j(e,t),a(e)}})}function j(e,t){n.width=e.image.width,n.height=e.image.height;let a=r.createImageData(e.image.width,e.image.height);!function(e,t){for(let a=0;a"+p("B",e.length),e)}function a(e){return m(">"+p("H",e.length),e)}function i(e){return m(">"+p("L",e.length),e)}function n(e,n,r){var o,l,s,c,d="",h="";if("Byte"==n)(o=e.length)<=4?h=t(e)+p("\0",4-o):(h=m(">L",[r]),d=t(e));else if("Short"==n)(o=e.length)<=2?h=a(e)+p("\0\0",2-o):(h=m(">L",[r]),d=a(e));else if("Long"==n)(o=e.length)<=1?h=i(e):(h=m(">L",[r]),d=i(e));else if("Ascii"==n)(o=(l=e+"\0").length)>4?(h=m(">L",[r]),d=l):h=l+p("\0",4-o);else if("Rational"==n){if("number"==typeof e[0])o=1,s=e[0],c=e[1],l=m(">L",[s])+m(">L",[c]);else{o=e.length,l="";for(var u=0;uL",[s])+m(">L",[c])}h=m(">L",[r]),d=l}else if("SRational"==n){if("number"==typeof e[0])o=1,s=e[0],c=e[1],l=m(">l",[s])+m(">l",[c]);else{o=e.length,l="";for(u=0;ul",[s])+m(">l",[c])}h=m(">L",[r]),d=l}else"Undefined"==n&&((o=e.length)>4?(h=m(">L",[r]),d=e):h=e+p("\0",4-o));return[m(">L",[o]),h,d]}function r(e,t,a){var i,r=Object.keys(e).length,o=m(">H",[r]);i=["0th","1st"].indexOf(t)>-1?2+12*r+4:2+12*r;var l="",s="";for(var c in e)if("string"==typeof c&&(c=parseInt(c)),!("0th"==t&&[34665,34853].indexOf(c)>-1||"Exif"==t&&40965==c||"1st"==t&&[513,514].indexOf(c)>-1)){var p=e[c],d=m(">H",[c]),g=u[t][c].type,f=m(">H",[h[g]]);"number"==typeof p&&(p=[p]);var y=n(p,g,8+i+a+s.length);l+=d+f+y[0]+y[1],s+=y[2]}return[o+l,s]}function o(e){var t;if("ÿØ"==e.slice(0,2))t=function(e){for(var t,a=0;a-1)this.tiftag=e;else{if("Exif"!=e.slice(0,4))throw new Error("Given file is neither JPEG nor TIFF.");this.tiftag=e.slice(6)}}if(e.version="1.0.4",e.remove=function(e){var t=!1;if("ÿØ"==e.slice(0,2));else{if("data:image/jpeg;base64,"!=e.slice(0,23)&&"data:image/jpg;base64,"!=e.slice(0,22))throw new Error("Given data is not jpeg.");e=s(e.split(",")[1]),t=!0}var a=d(e).filter((function(e){return!("ÿá"==e.slice(0,2)&&"Exif\0\0"==e.slice(4,10))})).join("");return t&&(a="data:image/jpeg;base64,"+l(a)),a},e.insert=function(e,t){var a=!1;if("Exif\0\0"!=e.slice(0,6))throw new Error("Given data is not exif.");if("ÿØ"==t.slice(0,2));else{if("data:image/jpeg;base64,"!=t.slice(0,23)&&"data:image/jpg;base64,"!=t.slice(0,22))throw new Error("Given data is not jpeg.");t=s(t.split(",")[1]),a=!0}var i="ÿá"+m(">H",[e.length+2])+e,n=function(e,t){var a=!1,i=[];e.forEach((function(n,r){"ÿá"==n.slice(0,2)&&"Exif\0\0"==n.slice(4,10)&&(a?i.unshift(r):(e[r]=t,a=!0))})),i.forEach((function(t){e.splice(t,1)})),!a&&t&&(e=[e[0],t].concat(e.slice(1)));return e.join("")}(d(t),i);return a&&(n="data:image/jpeg;base64,"+l(n)),n},e.load=function(e){var t;if("string"!=typeof e)throw new Error("'load' gots invalid type argument.");if("ÿØ"==e.slice(0,2))t=e;else if("data:image/jpeg;base64,"==e.slice(0,23)||"data:image/jpg;base64,"==e.slice(0,22))t=s(e.split(",")[1]);else{if("Exif"!=e.slice(0,4))throw new Error("'load' gots invalid file data.");t=e.slice(6)}var a={"0th":{},Exif:{},GPS:{},Interop:{},"1st":{},thumbnail:null},i=new o(t);if(null===i.tiftag)return a;"II"==i.tiftag.slice(0,2)?i.endian_mark="<":i.endian_mark=">";var n=c(i.endian_mark+"L",i.tiftag.slice(4,8))[0];a["0th"]=i.get_ifd(n,"0th");var r=a["0th"].first_ifd_pointer;if(delete a["0th"].first_ifd_pointer,34665 in a["0th"]&&(n=a["0th"][34665],a.Exif=i.get_ifd(n,"Exif")),34853 in a["0th"]&&(n=a["0th"][34853],a.GPS=i.get_ifd(n,"GPS")),40965 in a.Exif&&(n=a.Exif[40965],a.Interop=i.get_ifd(n,"Interop")),"\0\0\0\0"!=r&&(n=c(i.endian_mark+"L",r)[0],a["1st"]=i.get_ifd(n,"1st"),513 in a["1st"]&&514 in a["1st"])){var l=a["1st"][513]+a["1st"][514],m=i.tiftag.slice(a["1st"][513],l);a.thumbnail=m}return a},e.dump=function(t){var a,i,n,o,l,s,c=(a=t,JSON.parse(JSON.stringify(a))),p=!1,u=!1,g=!1,f=!1;i="0th"in c?c["0th"]:{},"Exif"in c&&Object.keys(c.Exif).length||"Interop"in c&&Object.keys(c.Interop).length?(i[34665]=1,p=!0,n=c.Exif,"Interop"in c&&Object.keys(c.Interop).length?(n[40965]=1,g=!0,o=c.Interop):Object.keys(n).indexOf(e.ExifIFD.InteroperabilityTag.toString())>-1&&delete n[40965]):Object.keys(i).indexOf(e.ImageIFD.ExifTag.toString())>-1&&delete i[34665],"GPS"in c&&Object.keys(c.GPS).length?(i[e.ImageIFD.GPSTag]=1,u=!0,l=c.GPS):Object.keys(i).indexOf(e.ImageIFD.GPSTag.toString())>-1&&delete i[e.ImageIFD.GPSTag],"1st"in c&&"thumbnail"in c&&null!=c.thumbnail&&(f=!0,c["1st"][513]=1,c["1st"][514]=1,s=c["1st"]);var y,S,v,w=r(i,"0th",0),P=w[0].length+12*p+12*u+4+w[1].length,C="",b=0,A="",L=0,R="",x=0,E="";(p&&(b=(y=r(n,"Exif",P))[0].length+12*g+y[1].length),u&&(L=(A=r(l,"GPS",P+b).join("")).length),g)&&(x=(R=r(o,"Interop",P+b+L).join("")).length);if(f&&(S=r(s,"1st",P+b+L+x),(v=function(e){var t=d(e);for(;"ÿà"<=t[1].slice(0,2)&&t[1].slice(0,2)<="ÿï";)t=[t[0]].concat(t.slice(2));return t.join("")}(c.thumbnail)).length>64e3))throw new Error("Given thumbnail is too large. max 64kB");var D="",I="",T="",k="\0\0\0\0";if(p){var O=m(">L",[M=8+P]);D=m(">H",[34665])+m(">H",[h.Long])+m(">L",[1])+O}if(u){O=m(">L",[M=8+P+b]);I=m(">H",[34853])+m(">H",[h.Long])+m(">L",[1])+O}if(g){O=m(">L",[M=8+P+b+L]);T=m(">H",[40965])+m(">H",[h.Long])+m(">L",[1])+O}if(f){var M;k=m(">L",[M=8+P+b+L+x]);var G="\0\0\0\0"+m(">L",[M+S[0].length+24+4+S[1].length]),F="\0\0\0\0"+m(">L",[v.length]);E=S[0]+G+F+"\0\0\0\0"+S[1]+v}var N=w[0]+D+I+k+w[1];return p&&(C=y[0]+T+y[1]),"Exif\0\0MM\0*\0\0\0\b"+N+C+A+R+E},o.prototype={get_ifd:function(e,t){var a,i={},n=c(this.endian_mark+"H",this.tiftag.slice(e,e+2))[0],r=e+2;a=["0th","1st"].indexOf(t)>-1?"Image":t;for(var o=0;o4?(t=c(this.endian_mark+"L",r)[0],a=c(this.endian_mark+p("B",n),this.tiftag.slice(t,t+n))):a=c(this.endian_mark+p("B",n),r.slice(0,n));else if(2==i)n>4?(t=c(this.endian_mark+"L",r)[0],a=this.tiftag.slice(t,t+n-1)):a=r.slice(0,n-1);else if(3==i)n>2?(t=c(this.endian_mark+"L",r)[0],a=c(this.endian_mark+p("H",n),this.tiftag.slice(t,t+2*n))):a=c(this.endian_mark+p("H",n),r.slice(0,2*n));else if(4==i)n>1?(t=c(this.endian_mark+"L",r)[0],a=c(this.endian_mark+p("L",n),this.tiftag.slice(t,t+4*n))):a=c(this.endian_mark+p("L",n),r);else if(5==i)if(t=c(this.endian_mark+"L",r)[0],n>1){a=[];for(var o=0;o4?(t=c(this.endian_mark+"L",r)[0],a=this.tiftag.slice(t,t+n)):a=r.slice(0,n);else if(9==i)n>1?(t=c(this.endian_mark+"L",r)[0],a=c(this.endian_mark+p("l",n),this.tiftag.slice(t,t+4*n))):a=c(this.endian_mark+p("l",n),r);else{if(10!=i)throw new Error("Exif might be wrong. Got incorrect value type to decode. type:"+i);if(t=c(this.endian_mark+"L",r)[0],n>1){a=[];for(o=0;o>2,r=(3&t)<<4|(a=e.charCodeAt(m++))>>4,o=(15&a)<<2|(i=e.charCodeAt(m++))>>6,l=63&i,isNaN(a)?o=l=64:isNaN(i)&&(l=64),s=s+c.charAt(n)+c.charAt(r)+c.charAt(o)+c.charAt(l);return s};if("undefined"!=typeof window&&"function"==typeof window.atob)var s=window.atob;if(void 0===s)s=function(e){var t,a,i,n,r,o,l="",s=0,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");s>4,a=(15&n)<<4|(r=m.indexOf(e.charAt(s++)))>>2,i=(3&r)<<6|(o=m.indexOf(e.charAt(s++))),l+=String.fromCharCode(t),64!=r&&(l+=String.fromCharCode(a)),64!=o&&(l+=String.fromCharCode(i));return l};function m(e,t){if(!(t instanceof Array))throw new Error("'pack' error. Got invalid type argument.");if(e.length-1!=t.length)throw new Error("'pack' error. "+(e.length-1)+" marks, "+t.length+" elements.");var a;if("<"==e[0])a=!0;else{if(">"!=e[0])throw new Error("");a=!1}for(var i="",n=1,r=null,o=null,l=null;o=e[n];){if("b"==o.toLowerCase()){if(r=t[n-1],"b"==o&&r<0&&(r+=256),r>255||r<0)throw new Error("'pack' error.");l=String.fromCharCode(r)}else if("H"==o){if((r=t[n-1])>65535||r<0)throw new Error("'pack' error.");l=String.fromCharCode(Math.floor(r%65536/256))+String.fromCharCode(r%256),a&&(l=l.split("").reverse().join(""))}else{if("l"!=o.toLowerCase())throw new Error("'pack' error.");if(r=t[n-1],"l"==o&&r<0&&(r+=4294967296),r>4294967295||r<0)throw new Error("'pack' error.");l=String.fromCharCode(Math.floor(r/16777216))+String.fromCharCode(Math.floor(r%16777216/65536))+String.fromCharCode(Math.floor(r%65536/256))+String.fromCharCode(r%256),a&&(l=l.split("").reverse().join(""))}i+=l,n+=1}return i}function c(e,t){if("string"!=typeof t)throw new Error("'unpack' error. Got invalid type argument.");for(var a,i=0,n=1;n"!=e[0])throw new Error("'unpack' error.");a=!1}for(var r=[],o=0,l=1,s=null,m=null,c=null,p="";m=e[l];){if("b"==m.toLowerCase())c=1,s=(p=t.slice(o,o+c)).charCodeAt(0),"b"==m&&s>=128&&(s-=256);else if("H"==m)c=2,p=t.slice(o,o+c),a&&(p=p.split("").reverse().join("")),s=256*p.charCodeAt(0)+p.charCodeAt(1);else{if("l"!=m.toLowerCase())throw new Error("'unpack' error. "+m);c=4,p=t.slice(o,o+c),a&&(p=p.split("").reverse().join("")),s=16777216*p.charCodeAt(0)+65536*p.charCodeAt(1)+256*p.charCodeAt(2)+p.charCodeAt(3),"l"==m&&s>=2147483648&&(s-=4294967296)}r.push(s),o+=c,l+=1}return r}function p(e,t){for(var a="",i=0;iH",e.slice(t+2,t+4))[0]+2;if(a.push(e.slice(t,i)),(t=i)>=e.length)throw new Error("Wrong JPEG data.")}return a}var h={Byte:1,Ascii:2,Short:3,Long:4,Rational:5,Undefined:7,SLong:9,SRational:10},u={Image:{11:{name:"ProcessingSoftware",type:"Ascii"},254:{name:"NewSubfileType",type:"Long"},255:{name:"SubfileType",type:"Short"},256:{name:"ImageWidth",type:"Long"},257:{name:"ImageLength",type:"Long"},258:{name:"BitsPerSample",type:"Short"},259:{name:"Compression",type:"Short"},262:{name:"PhotometricInterpretation",type:"Short"},263:{name:"Threshholding",type:"Short"},264:{name:"CellWidth",type:"Short"},265:{name:"CellLength",type:"Short"},266:{name:"FillOrder",type:"Short"},269:{name:"DocumentName",type:"Ascii"},270:{name:"ImageDescription",type:"Ascii"},271:{name:"Make",type:"Ascii"},272:{name:"Model",type:"Ascii"},273:{name:"StripOffsets",type:"Long"},274:{name:"Orientation",type:"Short"},277:{name:"SamplesPerPixel",type:"Short"},278:{name:"RowsPerStrip",type:"Long"},279:{name:"StripByteCounts",type:"Long"},282:{name:"XResolution",type:"Rational"},283:{name:"YResolution",type:"Rational"},284:{name:"PlanarConfiguration",type:"Short"},290:{name:"GrayResponseUnit",type:"Short"},291:{name:"GrayResponseCurve",type:"Short"},292:{name:"T4Options",type:"Long"},293:{name:"T6Options",type:"Long"},296:{name:"ResolutionUnit",type:"Short"},301:{name:"TransferFunction",type:"Short"},305:{name:"Software",type:"Ascii"},306:{name:"DateTime",type:"Ascii"},315:{name:"Artist",type:"Ascii"},316:{name:"HostComputer",type:"Ascii"},317:{name:"Predictor",type:"Short"},318:{name:"WhitePoint",type:"Rational"},319:{name:"PrimaryChromaticities",type:"Rational"},320:{name:"ColorMap",type:"Short"},321:{name:"HalftoneHints",type:"Short"},322:{name:"TileWidth",type:"Short"},323:{name:"TileLength",type:"Short"},324:{name:"TileOffsets",type:"Short"},325:{name:"TileByteCounts",type:"Short"},330:{name:"SubIFDs",type:"Long"},332:{name:"InkSet",type:"Short"},333:{name:"InkNames",type:"Ascii"},334:{name:"NumberOfInks",type:"Short"},336:{name:"DotRange",type:"Byte"},337:{name:"TargetPrinter",type:"Ascii"},338:{name:"ExtraSamples",type:"Short"},339:{name:"SampleFormat",type:"Short"},340:{name:"SMinSampleValue",type:"Short"},341:{name:"SMaxSampleValue",type:"Short"},342:{name:"TransferRange",type:"Short"},343:{name:"ClipPath",type:"Byte"},344:{name:"XClipPathUnits",type:"Long"},345:{name:"YClipPathUnits",type:"Long"},346:{name:"Indexed",type:"Short"},347:{name:"JPEGTables",type:"Undefined"},351:{name:"OPIProxy",type:"Short"},512:{name:"JPEGProc",type:"Long"},513:{name:"JPEGInterchangeFormat",type:"Long"},514:{name:"JPEGInterchangeFormatLength",type:"Long"},515:{name:"JPEGRestartInterval",type:"Short"},517:{name:"JPEGLosslessPredictors",type:"Short"},518:{name:"JPEGPointTransforms",type:"Short"},519:{name:"JPEGQTables",type:"Long"},520:{name:"JPEGDCTables",type:"Long"},521:{name:"JPEGACTables",type:"Long"},529:{name:"YCbCrCoefficients",type:"Rational"},530:{name:"YCbCrSubSampling",type:"Short"},531:{name:"YCbCrPositioning",type:"Short"},532:{name:"ReferenceBlackWhite",type:"Rational"},700:{name:"XMLPacket",type:"Byte"},18246:{name:"Rating",type:"Short"},18249:{name:"RatingPercent",type:"Short"},32781:{name:"ImageID",type:"Ascii"},33421:{name:"CFARepeatPatternDim",type:"Short"},33422:{name:"CFAPattern",type:"Byte"},33423:{name:"BatteryLevel",type:"Rational"},33432:{name:"Copyright",type:"Ascii"},33434:{name:"ExposureTime",type:"Rational"},34377:{name:"ImageResources",type:"Byte"},34665:{name:"ExifTag",type:"Long"},34675:{name:"InterColorProfile",type:"Undefined"},34853:{name:"GPSTag",type:"Long"},34857:{name:"Interlace",type:"Short"},34858:{name:"TimeZoneOffset",type:"Long"},34859:{name:"SelfTimerMode",type:"Short"},37387:{name:"FlashEnergy",type:"Rational"},37388:{name:"SpatialFrequencyResponse",type:"Undefined"},37389:{name:"Noise",type:"Undefined"},37390:{name:"FocalPlaneXResolution",type:"Rational"},37391:{name:"FocalPlaneYResolution",type:"Rational"},37392:{name:"FocalPlaneResolutionUnit",type:"Short"},37393:{name:"ImageNumber",type:"Long"},37394:{name:"SecurityClassification",type:"Ascii"},37395:{name:"ImageHistory",type:"Ascii"},37397:{name:"ExposureIndex",type:"Rational"},37398:{name:"TIFFEPStandardID",type:"Byte"},37399:{name:"SensingMethod",type:"Short"},40091:{name:"XPTitle",type:"Byte"},40092:{name:"XPComment",type:"Byte"},40093:{name:"XPAuthor",type:"Byte"},40094:{name:"XPKeywords",type:"Byte"},40095:{name:"XPSubject",type:"Byte"},50341:{name:"PrintImageMatching",type:"Undefined"},50706:{name:"DNGVersion",type:"Byte"},50707:{name:"DNGBackwardVersion",type:"Byte"},50708:{name:"UniqueCameraModel",type:"Ascii"},50709:{name:"LocalizedCameraModel",type:"Byte"},50710:{name:"CFAPlaneColor",type:"Byte"},50711:{name:"CFALayout",type:"Short"},50712:{name:"LinearizationTable",type:"Short"},50713:{name:"BlackLevelRepeatDim",type:"Short"},50714:{name:"BlackLevel",type:"Rational"},50715:{name:"BlackLevelDeltaH",type:"SRational"},50716:{name:"BlackLevelDeltaV",type:"SRational"},50717:{name:"WhiteLevel",type:"Short"},50718:{name:"DefaultScale",type:"Rational"},50719:{name:"DefaultCropOrigin",type:"Short"},50720:{name:"DefaultCropSize",type:"Short"},50721:{name:"ColorMatrix1",type:"SRational"},50722:{name:"ColorMatrix2",type:"SRational"},50723:{name:"CameraCalibration1",type:"SRational"},50724:{name:"CameraCalibration2",type:"SRational"},50725:{name:"ReductionMatrix1",type:"SRational"},50726:{name:"ReductionMatrix2",type:"SRational"},50727:{name:"AnalogBalance",type:"Rational"},50728:{name:"AsShotNeutral",type:"Short"},50729:{name:"AsShotWhiteXY",type:"Rational"},50730:{name:"BaselineExposure",type:"SRational"},50731:{name:"BaselineNoise",type:"Rational"},50732:{name:"BaselineSharpness",type:"Rational"},50733:{name:"BayerGreenSplit",type:"Long"},50734:{name:"LinearResponseLimit",type:"Rational"},50735:{name:"CameraSerialNumber",type:"Ascii"},50736:{name:"LensInfo",type:"Rational"},50737:{name:"ChromaBlurRadius",type:"Rational"},50738:{name:"AntiAliasStrength",type:"Rational"},50739:{name:"ShadowScale",type:"SRational"},50740:{name:"DNGPrivateData",type:"Byte"},50741:{name:"MakerNoteSafety",type:"Short"},50778:{name:"CalibrationIlluminant1",type:"Short"},50779:{name:"CalibrationIlluminant2",type:"Short"},50780:{name:"BestQualityScale",type:"Rational"},50781:{name:"RawDataUniqueID",type:"Byte"},50827:{name:"OriginalRawFileName",type:"Byte"},50828:{name:"OriginalRawFileData",type:"Undefined"},50829:{name:"ActiveArea",type:"Short"},50830:{name:"MaskedAreas",type:"Short"},50831:{name:"AsShotICCProfile",type:"Undefined"},50832:{name:"AsShotPreProfileMatrix",type:"SRational"},50833:{name:"CurrentICCProfile",type:"Undefined"},50834:{name:"CurrentPreProfileMatrix",type:"SRational"},50879:{name:"ColorimetricReference",type:"Short"},50931:{name:"CameraCalibrationSignature",type:"Byte"},50932:{name:"ProfileCalibrationSignature",type:"Byte"},50934:{name:"AsShotProfileName",type:"Byte"},50935:{name:"NoiseReductionApplied",type:"Rational"},50936:{name:"ProfileName",type:"Byte"},50937:{name:"ProfileHueSatMapDims",type:"Long"},50938:{name:"ProfileHueSatMapData1",type:"Float"},50939:{name:"ProfileHueSatMapData2",type:"Float"},50940:{name:"ProfileToneCurve",type:"Float"},50941:{name:"ProfileEmbedPolicy",type:"Long"},50942:{name:"ProfileCopyright",type:"Byte"},50964:{name:"ForwardMatrix1",type:"SRational"},50965:{name:"ForwardMatrix2",type:"SRational"},50966:{name:"PreviewApplicationName",type:"Byte"},50967:{name:"PreviewApplicationVersion",type:"Byte"},50968:{name:"PreviewSettingsName",type:"Byte"},50969:{name:"PreviewSettingsDigest",type:"Byte"},50970:{name:"PreviewColorSpace",type:"Long"},50971:{name:"PreviewDateTime",type:"Ascii"},50972:{name:"RawImageDigest",type:"Undefined"},50973:{name:"OriginalRawFileDigest",type:"Undefined"},50974:{name:"SubTileBlockSize",type:"Long"},50975:{name:"RowInterleaveFactor",type:"Long"},50981:{name:"ProfileLookTableDims",type:"Long"},50982:{name:"ProfileLookTableData",type:"Float"},51008:{name:"OpcodeList1",type:"Undefined"},51009:{name:"OpcodeList2",type:"Undefined"},51022:{name:"OpcodeList3",type:"Undefined"}},Exif:{33434:{name:"ExposureTime",type:"Rational"},33437:{name:"FNumber",type:"Rational"},34850:{name:"ExposureProgram",type:"Short"},34852:{name:"SpectralSensitivity",type:"Ascii"},34855:{name:"ISOSpeedRatings",type:"Short"},34856:{name:"OECF",type:"Undefined"},34864:{name:"SensitivityType",type:"Short"},34865:{name:"StandardOutputSensitivity",type:"Long"},34866:{name:"RecommendedExposureIndex",type:"Long"},34867:{name:"ISOSpeed",type:"Long"},34868:{name:"ISOSpeedLatitudeyyy",type:"Long"},34869:{name:"ISOSpeedLatitudezzz",type:"Long"},36864:{name:"ExifVersion",type:"Undefined"},36867:{name:"DateTimeOriginal",type:"Ascii"},36868:{name:"DateTimeDigitized",type:"Ascii"},37121:{name:"ComponentsConfiguration",type:"Undefined"},37122:{name:"CompressedBitsPerPixel",type:"Rational"},37377:{name:"ShutterSpeedValue",type:"SRational"},37378:{name:"ApertureValue",type:"Rational"},37379:{name:"BrightnessValue",type:"SRational"},37380:{name:"ExposureBiasValue",type:"SRational"},37381:{name:"MaxApertureValue",type:"Rational"},37382:{name:"SubjectDistance",type:"Rational"},37383:{name:"MeteringMode",type:"Short"},37384:{name:"LightSource",type:"Short"},37385:{name:"Flash",type:"Short"},37386:{name:"FocalLength",type:"Rational"},37396:{name:"SubjectArea",type:"Short"},37500:{name:"MakerNote",type:"Undefined"},37510:{name:"UserComment",type:"Ascii"},37520:{name:"SubSecTime",type:"Ascii"},37521:{name:"SubSecTimeOriginal",type:"Ascii"},37522:{name:"SubSecTimeDigitized",type:"Ascii"},40960:{name:"FlashpixVersion",type:"Undefined"},40961:{name:"ColorSpace",type:"Short"},40962:{name:"PixelXDimension",type:"Long"},40963:{name:"PixelYDimension",type:"Long"},40964:{name:"RelatedSoundFile",type:"Ascii"},40965:{name:"InteroperabilityTag",type:"Long"},41483:{name:"FlashEnergy",type:"Rational"},41484:{name:"SpatialFrequencyResponse",type:"Undefined"},41486:{name:"FocalPlaneXResolution",type:"Rational"},41487:{name:"FocalPlaneYResolution",type:"Rational"},41488:{name:"FocalPlaneResolutionUnit",type:"Short"},41492:{name:"SubjectLocation",type:"Short"},41493:{name:"ExposureIndex",type:"Rational"},41495:{name:"SensingMethod",type:"Short"},41728:{name:"FileSource",type:"Undefined"},41729:{name:"SceneType",type:"Undefined"},41730:{name:"CFAPattern",type:"Undefined"},41985:{name:"CustomRendered",type:"Short"},41986:{name:"ExposureMode",type:"Short"},41987:{name:"WhiteBalance",type:"Short"},41988:{name:"DigitalZoomRatio",type:"Rational"},41989:{name:"FocalLengthIn35mmFilm",type:"Short"},41990:{name:"SceneCaptureType",type:"Short"},41991:{name:"GainControl",type:"Short"},41992:{name:"Contrast",type:"Short"},41993:{name:"Saturation",type:"Short"},41994:{name:"Sharpness",type:"Short"},41995:{name:"DeviceSettingDescription",type:"Undefined"},41996:{name:"SubjectDistanceRange",type:"Short"},42016:{name:"ImageUniqueID",type:"Ascii"},42032:{name:"CameraOwnerName",type:"Ascii"},42033:{name:"BodySerialNumber",type:"Ascii"},42034:{name:"LensSpecification",type:"Rational"},42035:{name:"LensMake",type:"Ascii"},42036:{name:"LensModel",type:"Ascii"},42037:{name:"LensSerialNumber",type:"Ascii"},42240:{name:"Gamma",type:"Rational"}},GPS:{0:{name:"GPSVersionID",type:"Byte"},1:{name:"GPSLatitudeRef",type:"Ascii"},2:{name:"GPSLatitude",type:"Rational"},3:{name:"GPSLongitudeRef",type:"Ascii"},4:{name:"GPSLongitude",type:"Rational"},5:{name:"GPSAltitudeRef",type:"Byte"},6:{name:"GPSAltitude",type:"Rational"},7:{name:"GPSTimeStamp",type:"Rational"},8:{name:"GPSSatellites",type:"Ascii"},9:{name:"GPSStatus",type:"Ascii"},10:{name:"GPSMeasureMode",type:"Ascii"},11:{name:"GPSDOP",type:"Rational"},12:{name:"GPSSpeedRef",type:"Ascii"},13:{name:"GPSSpeed",type:"Rational"},14:{name:"GPSTrackRef",type:"Ascii"},15:{name:"GPSTrack",type:"Rational"},16:{name:"GPSImgDirectionRef",type:"Ascii"},17:{name:"GPSImgDirection",type:"Rational"},18:{name:"GPSMapDatum",type:"Ascii"},19:{name:"GPSDestLatitudeRef",type:"Ascii"},20:{name:"GPSDestLatitude",type:"Rational"},21:{name:"GPSDestLongitudeRef",type:"Ascii"},22:{name:"GPSDestLongitude",type:"Rational"},23:{name:"GPSDestBearingRef",type:"Ascii"},24:{name:"GPSDestBearing",type:"Rational"},25:{name:"GPSDestDistanceRef",type:"Ascii"},26:{name:"GPSDestDistance",type:"Rational"},27:{name:"GPSProcessingMethod",type:"Undefined"},28:{name:"GPSAreaInformation",type:"Undefined"},29:{name:"GPSDateStamp",type:"Ascii"},30:{name:"GPSDifferential",type:"Short"},31:{name:"GPSHPositioningError",type:"Rational"}},Interop:{1:{name:"InteroperabilityIndex",type:"Ascii"}}};u["0th"]=u.Image,u["1st"]=u.Image,e.TAGS=u,e.ImageIFD={ProcessingSoftware:11,NewSubfileType:254,SubfileType:255,ImageWidth:256,ImageLength:257,BitsPerSample:258,Compression:259,PhotometricInterpretation:262,Threshholding:263,CellWidth:264,CellLength:265,FillOrder:266,DocumentName:269,ImageDescription:270,Make:271,Model:272,StripOffsets:273,Orientation:274,SamplesPerPixel:277,RowsPerStrip:278,StripByteCounts:279,XResolution:282,YResolution:283,PlanarConfiguration:284,GrayResponseUnit:290,GrayResponseCurve:291,T4Options:292,T6Options:293,ResolutionUnit:296,TransferFunction:301,Software:305,DateTime:306,Artist:315,HostComputer:316,Predictor:317,WhitePoint:318,PrimaryChromaticities:319,ColorMap:320,HalftoneHints:321,TileWidth:322,TileLength:323,TileOffsets:324,TileByteCounts:325,SubIFDs:330,InkSet:332,InkNames:333,NumberOfInks:334,DotRange:336,TargetPrinter:337,ExtraSamples:338,SampleFormat:339,SMinSampleValue:340,SMaxSampleValue:341,TransferRange:342,ClipPath:343,XClipPathUnits:344,YClipPathUnits:345,Indexed:346,JPEGTables:347,OPIProxy:351,JPEGProc:512,JPEGInterchangeFormat:513,JPEGInterchangeFormatLength:514,JPEGRestartInterval:515,JPEGLosslessPredictors:517,JPEGPointTransforms:518,JPEGQTables:519,JPEGDCTables:520,JPEGACTables:521,YCbCrCoefficients:529,YCbCrSubSampling:530,YCbCrPositioning:531,ReferenceBlackWhite:532,XMLPacket:700,Rating:18246,RatingPercent:18249,ImageID:32781,CFARepeatPatternDim:33421,CFAPattern:33422,BatteryLevel:33423,Copyright:33432,ExposureTime:33434,ImageResources:34377,ExifTag:34665,InterColorProfile:34675,GPSTag:34853,Interlace:34857,TimeZoneOffset:34858,SelfTimerMode:34859,FlashEnergy:37387,SpatialFrequencyResponse:37388,Noise:37389,FocalPlaneXResolution:37390,FocalPlaneYResolution:37391,FocalPlaneResolutionUnit:37392,ImageNumber:37393,SecurityClassification:37394,ImageHistory:37395,ExposureIndex:37397,TIFFEPStandardID:37398,SensingMethod:37399,XPTitle:40091,XPComment:40092,XPAuthor:40093,XPKeywords:40094,XPSubject:40095,PrintImageMatching:50341,DNGVersion:50706,DNGBackwardVersion:50707,UniqueCameraModel:50708,LocalizedCameraModel:50709,CFAPlaneColor:50710,CFALayout:50711,LinearizationTable:50712,BlackLevelRepeatDim:50713,BlackLevel:50714,BlackLevelDeltaH:50715,BlackLevelDeltaV:50716,WhiteLevel:50717,DefaultScale:50718,DefaultCropOrigin:50719,DefaultCropSize:50720,ColorMatrix1:50721,ColorMatrix2:50722,CameraCalibration1:50723,CameraCalibration2:50724,ReductionMatrix1:50725,ReductionMatrix2:50726,AnalogBalance:50727,AsShotNeutral:50728,AsShotWhiteXY:50729,BaselineExposure:50730,BaselineNoise:50731,BaselineSharpness:50732,BayerGreenSplit:50733,LinearResponseLimit:50734,CameraSerialNumber:50735,LensInfo:50736,ChromaBlurRadius:50737,AntiAliasStrength:50738,ShadowScale:50739,DNGPrivateData:50740,MakerNoteSafety:50741,CalibrationIlluminant1:50778,CalibrationIlluminant2:50779,BestQualityScale:50780,RawDataUniqueID:50781,OriginalRawFileName:50827,OriginalRawFileData:50828,ActiveArea:50829,MaskedAreas:50830,AsShotICCProfile:50831,AsShotPreProfileMatrix:50832,CurrentICCProfile:50833,CurrentPreProfileMatrix:50834,ColorimetricReference:50879,CameraCalibrationSignature:50931,ProfileCalibrationSignature:50932,AsShotProfileName:50934,NoiseReductionApplied:50935,ProfileName:50936,ProfileHueSatMapDims:50937,ProfileHueSatMapData1:50938,ProfileHueSatMapData2:50939,ProfileToneCurve:50940,ProfileEmbedPolicy:50941,ProfileCopyright:50942,ForwardMatrix1:50964,ForwardMatrix2:50965,PreviewApplicationName:50966,PreviewApplicationVersion:50967,PreviewSettingsName:50968,PreviewSettingsDigest:50969,PreviewColorSpace:50970,PreviewDateTime:50971,RawImageDigest:50972,OriginalRawFileDigest:50973,SubTileBlockSize:50974,RowInterleaveFactor:50975,ProfileLookTableDims:50981,ProfileLookTableData:50982,OpcodeList1:51008,OpcodeList2:51009,OpcodeList3:51022,NoiseProfile:51041},e.ExifIFD={ExposureTime:33434,FNumber:33437,ExposureProgram:34850,SpectralSensitivity:34852,ISOSpeedRatings:34855,OECF:34856,SensitivityType:34864,StandardOutputSensitivity:34865,RecommendedExposureIndex:34866,ISOSpeed:34867,ISOSpeedLatitudeyyy:34868,ISOSpeedLatitudezzz:34869,ExifVersion:36864,DateTimeOriginal:36867,DateTimeDigitized:36868,ComponentsConfiguration:37121,CompressedBitsPerPixel:37122,ShutterSpeedValue:37377,ApertureValue:37378,BrightnessValue:37379,ExposureBiasValue:37380,MaxApertureValue:37381,SubjectDistance:37382,MeteringMode:37383,LightSource:37384,Flash:37385,FocalLength:37386,SubjectArea:37396,MakerNote:37500,UserComment:37510,SubSecTime:37520,SubSecTimeOriginal:37521,SubSecTimeDigitized:37522,FlashpixVersion:40960,ColorSpace:40961,PixelXDimension:40962,PixelYDimension:40963,RelatedSoundFile:40964,InteroperabilityTag:40965,FlashEnergy:41483,SpatialFrequencyResponse:41484,FocalPlaneXResolution:41486,FocalPlaneYResolution:41487,FocalPlaneResolutionUnit:41488,SubjectLocation:41492,ExposureIndex:41493,SensingMethod:41495,FileSource:41728,SceneType:41729,CFAPattern:41730,CustomRendered:41985,ExposureMode:41986,WhiteBalance:41987,DigitalZoomRatio:41988,FocalLengthIn35mmFilm:41989,SceneCaptureType:41990,GainControl:41991,Contrast:41992,Saturation:41993,Sharpness:41994,DeviceSettingDescription:41995,SubjectDistanceRange:41996,ImageUniqueID:42016,CameraOwnerName:42032,BodySerialNumber:42033,LensSpecification:42034,LensMake:42035,LensModel:42036,LensSerialNumber:42037,Gamma:42240},e.GPSIFD={GPSVersionID:0,GPSLatitudeRef:1,GPSLatitude:2,GPSLongitudeRef:3,GPSLongitude:4,GPSAltitudeRef:5,GPSAltitude:6,GPSTimeStamp:7,GPSSatellites:8,GPSStatus:9,GPSMeasureMode:10,GPSDOP:11,GPSSpeedRef:12,GPSSpeed:13,GPSTrackRef:14,GPSTrack:15,GPSImgDirectionRef:16,GPSImgDirection:17,GPSMapDatum:18,GPSDestLatitudeRef:19,GPSDestLatitude:20,GPSDestLongitudeRef:21,GPSDestLongitude:22,GPSDestBearingRef:23,GPSDestBearing:24,GPSDestDistanceRef:25,GPSDestDistance:26,GPSProcessingMethod:27,GPSAreaInformation:28,GPSDateStamp:29,GPSDifferential:30,GPSHPositioningError:31},e.InteropIFD={InteroperabilityIndex:1},e.GPSHelper={degToDmsRational:function(e){var t=Math.abs(e),a=t%1*60,i=a%1*60;return[[Math.floor(t),1],[Math.floor(a),1],[Math.round(100*i),100]]},dmsRationalToDeg:function(e,t){var a="S"===t||"W"===t?-1:1;return(e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600)*a}},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=e),exports.piexif=e):window.piexif=e}(); \ No newline at end of file diff --git a/public/acuant/11.5.1/AcuantImageService.min.js b/public/acuant/11.5.1/AcuantImageService.min.js new file mode 100644 index 00000000000..8a2e05693b5 --- /dev/null +++ b/public/acuant/11.5.1/AcuantImageService.min.js @@ -0,0 +1 @@ +var AcuantImageModule=function(){var t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(t=t||__filename),function(n){var r,e,a;n=n||{},r||(r=void 0!==n?n:{}),r.ready=new Promise((function(t,n){e=t,a=n}));var o,i={};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);var u,f,c,s,l,h="object"==typeof window,p="function"==typeof importScripts,d="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,v="";d?(v=p?require("path").dirname(v)+"/":__dirname+"/",u=function(t,n){return s||(s=require("fs")),l||(l=require("path")),t=l.normalize(t),s.readFileSync(t,n?null:"utf8")},c=function(t){return(t=u(t,!0)).buffer||(t=new Uint8Array(t)),t.buffer||et("Assertion failed: undefined"),t},f=function(t,n,r){s||(s=require("fs")),l||(l=require("path")),t=l.normalize(t),s.readFile(t,(function(t,e){t?r(t):n(e.buffer)}))},1=e);)++r;if(16(a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&t[n++])?e+=String.fromCharCode(a):(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else e+=String.fromCharCode(a)}return e}function T(t,n){return t?M(R,t,n):""}function P(t,n,r,e){if(!(0=i)i=65536+((1023&i)<<10)|1023&t.charCodeAt(++o);if(127>=i){if(r>=e)break;n[r++]=i}else{if(2047>=i){if(r+1>=e)break;n[r++]=192|i>>6}else{if(65535>=i){if(r+2>=e)break;n[r++]=224|i>>12}else{if(r+3>=e)break;n[r++]=240|i>>18,n[r++]=128|i>>12&63}n[r++]=128|i>>6&63}n[r++]=128|63&i}}return n[r]=0,r-a}function S(t){for(var n=0,r=0;r=e&&(e=65536+((1023&e)<<10)|1023&t.charCodeAt(++r)),127>=e?++n:n=2047>=e?n+2:65535>=e?n+3:n+4}return n}var O,C,R,W,E,L,N,U,I,x="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function F(t,n){for(var r=t>>1,e=r+n/2;!(r>=e)&&E[r];)++r;if(32<(r<<=1)-t&&x)return x.decode(R.subarray(t,r));for(r="",e=0;!(e>=n/2);++e){var a=W[t+2*e>>1];if(0==a)break;r+=String.fromCharCode(a)}return r}function D(t,n,r){if(void 0===r&&(r=2147483647),2>r)return 0;var e=n;r=(r-=2)<2*t.length?r/2:t.length;for(var a=0;a>1]=t.charCodeAt(a),n+=2;return W[n>>1]=0,n-e}function z(t){return 2*t.length}function V(t,n){for(var r=0,e="";!(r>=n/4);){var a=L[t+4*r>>2];if(0==a)break;++r,65536<=a?(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a)):e+=String.fromCharCode(a)}return e}function H(t,n,r){if(void 0===r&&(r=2147483647),4>r)return 0;var e=n;r=e+r-4;for(var a=0;a=o)o=65536+((1023&o)<<10)|1023&t.charCodeAt(++a);if(L[n>>2]=o,(n+=4)+4>r)break}return L[n>>2]=0,n-e}function q(t){for(var n=0,r=0;r=e&&++r,n+=4}return n}function B(){var t=k.buffer;O=t,r.HEAP8=C=new Int8Array(t),r.HEAP16=W=new Int16Array(t),r.HEAP32=L=new Int32Array(t),r.HEAPU8=R=new Uint8Array(t),r.HEAPU16=E=new Uint16Array(t),r.HEAPU32=N=new Uint32Array(t),r.HEAPF32=U=new Float32Array(t),r.HEAPF64=I=new Float64Array(t)}var Q,X=[],$=[],G=[];function Z(){var t=r.preRun.shift();X.unshift(t)}var Y,J,K,tt=0,nt=null,rt=null;function et(t){throw r.onAbort&&r.onAbort(t),w(t),_=!0,t=new WebAssembly.RuntimeError("abort("+t+"). Build with -s ASSERTIONS=1 for more info."),a(t),t}function at(){return Y.startsWith("data:application/octet-stream;base64,")}if(r.preloadedImages={},r.preloadedAudios={},Y="AcuantImageService.wasm",!at()){var ot=Y;Y=r.locateFile?r.locateFile(ot,v):v+ot}function it(){var t=Y;try{if(t==Y&&b)return new Uint8Array(b);if(c)return c(t);throw"both async and sync fetching of the wasm failed"}catch(t){et(t)}}function ut(t){for(;0>2]=t},this.Za=function(){return L[this.Na+4>>2]},this.Nb=function(t){L[this.Na+8>>2]=t},this.Bb=function(){return L[this.Na+8>>2]},this.Ob=function(){L[this.Na>>2]=0},this.vb=function(t){C[this.Na+12>>0]=t?1:0},this.Ab=function(){return 0!=C[this.Na+12>>0]},this.wb=function(){C[this.Na+13>>0]=0},this.Db=function(){return 0!=C[this.Na+13>>0]},this.Fb=function(t,n){this.Pb(t),this.Nb(n),this.Ob(),this.vb(!1),this.wb()},this.xb=function(){L[this.Na>>2]=L[this.Na>>2]+1},this.Kb=function(){var t=L[this.Na>>2];return L[this.Na>>2]=t-1,1===t}}function ct(t){this.qb=function(){Cn(this.Na),this.Na=0},this.jb=function(t){L[this.Na>>2]=t},this.Ya=function(){return L[this.Na>>2]},this.bb=function(t){L[this.Na+4>>2]=t},this.eb=function(){return this.Na+4},this.zb=function(){return L[this.Na+4>>2]},this.Cb=function(){if(xn(this.fb().Za()))return L[this.Ya()>>2];var t=this.zb();return 0!==t?t:this.Ya()},this.fb=function(){return new ft(this.Ya())},void 0===t?(this.Na=On(8),this.bb(0)):this.Na=t}var st=[],lt=0;function ht(t){return Cn(new ft(t).Na)}function pt(t,n){for(var r=0,e=t.length-1;0<=e;e--){var a=t[e];"."===a?t.splice(e,1):".."===a?(t.splice(e,1),r++):r&&(t.splice(e,1),r--)}if(n)for(;r;r--)t.unshift("..");return t}function dt(t){var n="/"===t.charAt(0),r="/"===t.substr(-1);return(t=pt(t.split("/").filter((function(t){return!!t})),!n).join("/"))||n||(t="."),t&&r&&(t+="/"),(n?"/":"")+t}function vt(t){var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1);return t=n[0],n=n[1],t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."}function mt(t){if("/"===t)return"/";var n=(t=(t=dt(t)).replace(/\/$/,"")).lastIndexOf("/");return-1===n?t:t.substr(n+1)}function wt(){for(var t="",n=!1,r=arguments.length-1;-1<=r&&!n;r--){if("string"!=typeof(n=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";t=n+"/"+t,n="/"===n.charAt(0)}return(n?"/":"")+(t=pt(t.split("/").filter((function(t){return!!t})),!n).join("/"))||"."}var yt=[];function bt(t,n){yt[t]={input:[],output:[],Wa:n},qt(t,gt)}var gt={open:function(t){var n=yt[t.node.rdev];if(!n)throw new Ct(43);t.tty=n,t.seekable=!1},close:function(t){t.tty.Wa.flush(t.tty)},flush:function(t){t.tty.Wa.flush(t.tty)},read:function(t,n,r,e){if(!t.tty||!t.tty.Wa.rb)throw new Ct(60);for(var a=0,o=0;o=n||(n=Math.max(n,r*(1048576>r?2:1.125)>>>0),0!=r&&(n=Math.max(n,256)),r=t.La,t.La=new Uint8Array(n),0=t.node.Pa)return 0;if(8<(t=Math.min(t.node.Pa-a,e))&&o.subarray)n.set(o.subarray(a,a+t),r);else for(e=0;en)throw new Ct(28);return n},kb:function(t,n,r){_t.nb(t.node,n+r),t.node.Pa=Math.max(t.node.Pa,n+r)},sb:function(t,n,r,e,a,o){if(0!==n)throw new Ct(28);if(32768!=(61440&t.node.mode))throw new Ct(43);if(t=t.node.La,2&o||t.buffer!==O){if((0>>0)%St.length}function Nt(t,n){var r;if(r=(r=Ft(t,"x"))?r:t.Ma.lookup?0:2)throw new Ct(r,t);for(r=St[Lt(t.id,n)];r;r=r.Ib){var e=r.name;if(r.parent.id===t.id&&e===n)return r}return t.Ma.lookup(t,n)}function Ut(t,n,r,e){return n=Lt((t=new Mn(t,n,r,e)).parent.id,t.name),t.Ib=St[n],St[n]=t}var It={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090};function xt(t){var n=["r","w","rw"][3&t];return 512&t&&(n+="w"),n}function Ft(t,n){return Ot?0:!n.includes("r")||292&t.mode?n.includes("w")&&!(146&t.mode)||n.includes("x")&&!(73&t.mode)?2:0:2}function Dt(t,n){try{return Nt(t,n),20}catch(t){}return Ft(t,"wx")}function zt(t,n){rn||((rn=function(){}).prototype={});var r,e=new rn;for(r in t)e[r]=t[r];return t=e,n=function(t){for(t=t||0;t<=4096;t++)if(!Tt[t])return t;throw new Ct(33)}(n),t.fd=n,Tt[n]=t}var Vt,Ht={open:function(t){t.Oa=Mt[t.node.rdev].Oa,t.Oa.open&&t.Oa.open(t)},Va:function(){throw new Ct(70)}};function qt(t,n){Mt[t]={Oa:n}}function Bt(t,n){var r="/"===n,e=!n;if(r&&jt)throw new Ct(10);if(!r&&!e){var a=Wt(n,{pb:!1});if(n=a.path,(a=a.node).ab)throw new Ct(10);if(16384!=(61440&a.mode))throw new Ct(54)}n={type:t,Vb:{},tb:n,Hb:[]},(t=t.Sa(n)).Sa=n,n.root=t,r?jt=t:a&&(a.ab=n,a.Sa&&a.Sa.Hb.push(n))}function Qt(t,n,r){var e=Wt(t,{parent:!0}).node;if(!(t=mt(t))||"."===t||".."===t)throw new Ct(28);var a=Dt(e,t);if(a)throw new Ct(a);if(!e.Ma.$a)throw new Ct(63);return e.Ma.$a(e,t,n,r)}function Xt(t){return Qt(t,16895,0)}function $t(t,n,r){void 0===r&&(r=n,n=438),Qt(t,8192|n,r)}function Gt(t,n){if(!wt(t))throw new Ct(44);var r=Wt(n,{parent:!0}).node;if(!r)throw new Ct(44);var e=Dt(r,n=mt(n));if(e)throw new Ct(e);if(!r.Ma.symlink)throw new Ct(63);r.Ma.symlink(r,n,t)}function Zt(t){if(!(t=Wt(t).node))throw new Ct(44);if(!t.Ma.readlink)throw new Ct(28);return wt(Et(t.parent),t.Ma.readlink(t))}function Yt(t,n,e,a){if(""===t)throw new Ct(44);if("string"==typeof n){var o=It[n];if(void 0===o)throw Error("Unknown file open mode: "+n);n=o}if(e=64&n?4095&(void 0===e?438:e)|32768:0,"object"==typeof t)var i=t;else{t=dt(t);try{i=Wt(t,{ob:!(131072&n)}).node}catch(t){}}if(o=!1,64&n)if(i){if(128&n)throw new Ct(20)}else i=Qt(t,e,0),o=!0;if(!i)throw new Ct(44);if(8192==(61440&i.mode)&&(n&=-513),65536&n&&16384!=(61440&i.mode))throw new Ct(54);if(!o&&(e=i?40960==(61440&i.mode)?32:16384==(61440&i.mode)&&("r"!==xt(n)||512&n)?31:Ft(i,xt(n)):44))throw new Ct(e);if(512&n){if(!(e="string"==typeof(e=i)?Wt(e,{ob:!0}).node:e).Ma.Ra)throw new Ct(63);if(16384==(61440&e.mode))throw new Ct(31);if(32768!=(61440&e.mode))throw new Ct(28);if(o=Ft(e,"w"))throw new Ct(o);e.Ma.Ra(e,{size:0,timestamp:Date.now()})}return n&=-131713,(a=zt({node:i,path:Et(i),flags:n,seekable:!0,position:0,Oa:i.Oa,Qb:[],error:!1},a)).Oa.open&&a.Oa.open(a),!r.logReadFiles||1&n||(en||(en={}),t in en||(en[t]=1)),a}function Jt(t,n,r){if(null===t.fd)throw new Ct(8);if(!t.seekable||!t.Oa.Va)throw new Ct(70);if(0!=r&&1!=r&&2!=r)throw new Ct(28);t.position=t.Oa.Va(t,n,r),t.Qb=[]}function Kt(){Ct||((Ct=function(t,n){this.node=n,this.Mb=function(t){this.Ua=t},this.Mb(t),this.message="FS error"}).prototype=Error(),Ct.prototype.constructor=Ct,[44].forEach((function(t){Rt[t]=new Ct(t),Rt[t].stack=""})))}function tn(t,n,r){t=dt("/dev/"+t);var e=function(t,n){var r=0;return t&&(r|=365),n&&(r|=146),r}(!!n,!!r);nn||(nn=64);var a=nn++<<8|0;qt(a,{open:function(t){t.seekable=!1},close:function(){r&&r.buffer&&r.buffer.length&&r(10)},read:function(t,r,e,a){for(var o=0,i=0;i>2]}function fn(t){if(!(t=Tt[t]))throw new Ct(8);return t}function cn(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var sn=void 0;function ln(t){for(var n="";R[t];)n+=sn[R[t++]];return n}var hn={},pn={},dn={};function vn(t){var n=Error,r=function(t,n){if(void 0===t)t="_unknown";else{var r=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);t=48<=r&&57>=r?"_"+t:t}return new Function("body","return function "+t+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(n)}(t,(function(n){this.name=t,this.message=n,void 0!==(n=Error(n).stack)&&(this.stack=this.toString()+"\n"+n.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var mn=void 0;function wn(t){throw new mn(t)}function yn(t,n,r){if(r=r||{},!("argPackAdvance"in n))throw new TypeError("registerType registeredInstance requires argPackAdvance");var e=n.name;if(t||wn('type "'+e+'" must have a positive integer typeid pointer'),pn.hasOwnProperty(t)){if(r.Eb)return;wn("Cannot register type '"+e+"' twice")}pn[t]=n,delete dn[t],hn.hasOwnProperty(t)&&(n=hn[t],delete hn[t],n.forEach((function(t){t()})))}var bn=[],gn=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function An(t){return this.fromWireType(N[t>>2])}function kn(t){if(null===t)return"null";var n=typeof t;return"object"===n||"array"===n||"function"===n?t.toString():""+t}function _n(t,n){switch(n){case 2:return function(t){return this.fromWireType(U[t>>2])};case 3:return function(t){return this.fromWireType(I[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function jn(t,n,r){switch(n){case 0:return r?function(t){return C[t]}:function(t){return R[t]};case 1:return r?function(t){return W[t>>1]}:function(t){return E[t>>1]};case 2:return r?function(t){return L[t>>2]}:function(t){return N[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}function Mn(t,n,r,e){t||(t=this),this.parent=t,this.Sa=t.Sa,this.ab=null,this.id=Pt++,this.name=n,this.mode=r,this.Ma={},this.Oa={},this.rdev=e}Object.defineProperties(Mn.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}}}),Kt(),St=Array(4096),Bt(_t,"/"),Xt("/tmp"),Xt("/home"),Xt("/home/web_user"),function(){Xt("/dev"),qt(259,{read:function(){return 0},write:function(t,n,r,e){return e}}),$t("/dev/null",259),bt(1280,At),bt(1536,kt),$t("/dev/tty",1280),$t("/dev/tty1",1536);var t=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return function(){return crypto.getRandomValues(t),t[0]}}if(d)try{var n=require("crypto");return function(){return n.randomBytes(1)[0]}}catch(t){}return function(){et("randomDevice")}}();tn("random",t),tn("urandom",t),Xt("/dev/shm"),Xt("/dev/shm/tmp")}(),function(){Xt("/proc");var t=Xt("/proc/self");Xt("/proc/self/fd"),Bt({Sa:function(){var n=Ut(t,"fd",16895,73);return n.Ma={lookup:function(t,n){var r=Tt[+n];if(!r)throw new Ct(8);return(t={parent:null,Sa:{tb:"fake"},Ma:{readlink:function(){return r.path}}}).parent=t}},n}},"/proc/self/fd")}();for(var Tn=Array(256),Pn=0;256>Pn;++Pn)Tn[Pn]=String.fromCharCode(Pn);sn=Tn,mn=r.BindingError=vn("BindingError"),r.InternalError=vn("InternalError"),r.count_emval_handles=function(){for(var t=0,n=5;na?-28:Yt(e.path,e.flags,0,a).fd;case 1:case 2:return 0;case 3:return e.flags;case 4:return a=un(),e.flags|=a,0;case 12:return a=un(),W[a+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return L[Wn()>>2]=28,-1;default:return-28}}catch(t){return void 0!==an&&t instanceof Ct||et(t),-t.Ua}},ka:function(t,n,r){on=r;try{var e=fn(t);switch(n){case 21509:case 21505:return e.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return e.tty?0:-59;case 21519:if(!e.tty)return-59;var a=un();return L[a>>2]=0;case 21520:return e.tty?-28:-59;case 21531:if(t=a=un(),!e.Oa.Gb)throw new Ct(59);return e.Oa.Gb(e,n,t);case 21523:case 21524:return e.tty?0:-59;default:et("bad ioctl syscall "+n)}}catch(t){return void 0!==an&&t instanceof Ct||et(t),-t.Ua}},la:function(t,n,r){on=r;try{return Yt(T(t),n,r?un():0).fd}catch(t){return void 0!==an&&t instanceof Ct||et(t),-t.Ua}},fa:function(){},na:function(t,n,r,e,a){var o=cn(r);yn(t,{name:n=ln(n),fromWireType:function(t){return!!t},toWireType:function(t,n){return n?e:a},argPackAdvance:8,readValueFromPointer:function(t){if(1===r)var e=C;else if(2===r)e=W;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+n);e=L}return this.fromWireType(e[t>>o])},Xa:null})},ma:function(t,n){yn(t,{name:n=ln(n),fromWireType:function(t){var n=gn[t].value;return 4>>u}}var f=n.includes("unsigned");yn(t,{name:n,fromWireType:o,toWireType:function(t,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+kn(r)+'" to '+this.name);if(ra)throw new TypeError('Passing a number "'+kn(r)+'" from JS side to C/C++ side to an argument of type "'+n+'", which is outside the valid range ['+e+", "+a+"]!");return f?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:jn(n,i,0!==e),Xa:null})},r:function(t,n,r){function e(t){var n=N;return new a(O,n[(t>>=2)+1],n[t])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][n];yn(t,{name:r=ln(r),fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{Eb:!0})},U:function(t,n){var r="std::string"===(n=ln(n));yn(t,{name:n,fromWireType:function(t){var n=N[t>>2];if(r)for(var e=t+4,a=0;a<=n;++a){var o=t+4+a;if(a==n||0==R[o]){if(e=T(e,o-e),void 0===i)var i=e;else i+=String.fromCharCode(0),i+=e;e=o+1}}else{for(i=Array(n),a=0;a>2]=a,r&&e)P(n,R,o+4,a+1);else if(e)for(e=0;e>2],o=i(),f=t+4,c=0;c<=a;++c){var s=t+4+c*n;c!=a&&0!=o[s>>u]||(f=e(f,s-f),void 0===r?r=f:(r+=String.fromCharCode(0),r+=f),f=s+n)}return Cn(t),r},toWireType:function(t,e){"string"!=typeof e&&wn("Cannot pass non-string to C++ string type "+r);var i=o(e),f=On(4+i+n);return N[f>>2]=i>>u,a(e,f+4,i+n),null!==t&&t.push(Cn,f),f},argPackAdvance:8,readValueFromPointer:An,Xa:function(t){Cn(t)}})},oa:function(t,n){yn(t,{Ub:!0,name:n=ln(n),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},ia:function(){et()},ga:function(t,n,r){R.copyWithin(t,n,n+r)},ha:function(t){var n=R.length;if(2147483648<(t>>>=0))return!1;for(var r=1;4>=r;r*=2){var e=n*(1+.2/r);e=Math.min(e,t+100663296),0<(e=Math.max(t,e))%65536&&(e+=65536-e%65536);t:{try{k.grow(Math.min(2147483648,e)-O.byteLength+65535>>>16),B();var a=1;break t}catch(t){}a=void 0}if(a)return!0}return!1},S:function(t){try{var n=fn(t);if(null===n.fd)throw new Ct(8);n.gb&&(n.gb=null);try{n.Oa.close&&n.Oa.close(n)}catch(t){throw t}finally{Tt[n.fd]=null}return n.fd=null,0}catch(t){return void 0!==an&&t instanceof Ct||et(t),t.Ua}},ja:function(t,n,r,e){try{t:{for(var a=fn(t),o=t=0;o>2],u=a,f=L[n+8*o>>2],c=i,s=void 0,l=C;if(0>c||0>s)throw new Ct(28);if(null===u.fd)throw new Ct(8);if(1==(2097155&u.flags))throw new Ct(8);if(16384==(61440&u.node.mode))throw new Ct(31);if(!u.Oa.read)throw new Ct(28);var h=void 0!==s;if(h){if(!u.seekable)throw new Ct(70)}else s=u.position;var p=u.Oa.read(u,l,f,c,s);h||(u.position+=p);var d=p;if(0>d){var v=-1;break t}if(t+=d,d>2]=v,0}catch(t){return void 0!==an&&t instanceof Ct||et(t),t.Ua}},ea:function(t,n,r,e,a){try{var o=fn(t);return-9007199254740992>=(t=4294967296*r+(n>>>0))||9007199254740992<=t?-61:(Jt(o,t,e),K=[o.position>>>0,(J=o.position,1<=+Math.abs(J)?0>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],L[a>>2]=K[0],L[a+4>>2]=K[1],o.gb&&0===t&&0===e&&(o.gb=null),0)}catch(t){return void 0!==an&&t instanceof Ct||et(t),t.Ua}},Q:function(t,n,r,e){try{t:{for(var a=fn(t),o=t=0;o>2],f=L[n+(8*o+4)>>2],c=void 0,s=C;if(0>f||0>c)throw new Ct(28);if(null===i.fd)throw new Ct(8);if(0==(2097155&i.flags))throw new Ct(8);if(16384==(61440&i.node.mode))throw new Ct(31);if(!i.Oa.write)throw new Ct(28);i.seekable&&1024&i.flags&&Jt(i,0,2);var l=void 0!==c;if(l){if(!i.seekable)throw new Ct(70)}else c=i.position;var h=i.Oa.write(i,s,u,f,c,void 0);l||(i.position+=h);var p=h;if(0>p){var d=-1;break t}t+=p}d=t}return L[e>>2]=d,0}catch(t){return void 0!==an&&t instanceof Ct||et(t),t.Ua}},b:function(){return A},N:function(t,n){var r=En();try{return Q.get(t)(n)}catch(t){if(Ln(r),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},P:function(t,n,r){var e=En();try{return Q.get(t)(n,r)}catch(t){if(Ln(e),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},M:function(t,n,r,e){var a=En();try{return Q.get(t)(n,r,e)}catch(t){if(Ln(a),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},ra:function(t,n,r,e,a){var o=En();try{return Q.get(t)(n,r,e,a)}catch(t){if(Ln(o),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},Z:function(t,n,r,e,a){var o=En();try{return Q.get(t)(n,r,e,a)}catch(t){if(Ln(o),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},qa:function(t,n,r,e,a,o){var i=En();try{return Q.get(t)(n,r,e,a,o)}catch(t){if(Ln(i),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},G:function(t,n,r,e,a,o,i,u){var f=En();try{return Q.get(t)(n,r,e,a,o,i,u)}catch(t){if(Ln(f),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},m:function(t,n){var r=En();try{return Q.get(t)(n)}catch(t){if(Ln(r),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},K:function(t,n,r){var e=En();try{return Q.get(t)(n,r)}catch(t){if(Ln(e),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},O:function(t,n,r){var e=En();try{return Q.get(t)(n,r)}catch(t){if(Ln(e),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},$:function(t,n,r,e,a,o){var i=En();try{return Q.get(t)(n,r,e,a,o)}catch(t){if(Ln(i),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},a:function(t,n,r){var e=En();try{return Q.get(t)(n,r)}catch(t){if(Ln(e),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},E:function(t,n,r,e){var a=En();try{return Q.get(t)(n,r,e)}catch(t){if(Ln(a),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},sa:function(t,n,r,e,a){var o=En();try{return Q.get(t)(n,r,e,a)}catch(t){if(Ln(o),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},aa:function(t,n,r,e,a){var o=En();try{return Q.get(t)(n,r,e,a)}catch(t){if(Ln(o),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},j:function(t,n,r,e){var a=En();try{return Q.get(t)(n,r,e)}catch(t){if(Ln(a),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},V:function(t,n,r,e,a,o){var i=En();try{return Q.get(t)(n,r,e,a,o)}catch(t){if(Ln(i),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},h:function(t,n,r,e,a){var o=En();try{return Q.get(t)(n,r,e,a)}catch(t){if(Ln(o),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},_:function(t,n,r,e,a,o,i){var u=En();try{return Q.get(t)(n,r,e,a,o,i)}catch(t){if(Ln(u),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},B:function(t,n,r,e,a,o,i){var u=En();try{return Q.get(t)(n,r,e,a,o,i)}catch(t){if(Ln(u),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},u:function(t,n,r,e,a,o){var i=En();try{return Q.get(t)(n,r,e,a,o)}catch(t){if(Ln(i),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},Y:function(t,n,r,e,a,o,i,u,f){var c=En();try{return Q.get(t)(n,r,e,a,o,i,u,f)}catch(t){if(Ln(c),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},w:function(t,n,r,e,a,o,i){var u=En();try{return Q.get(t)(n,r,e,a,o,i)}catch(t){if(Ln(u),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},da:function(t,n,r,e,a,o,i,u){var f=En();try{return Q.get(t)(n,r,e,a,o,i,u)}catch(t){if(Ln(f),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},x:function(t,n,r,e,a,o,i,u){var f=En();try{return Q.get(t)(n,r,e,a,o,i,u)}catch(t){if(Ln(f),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},z:function(t,n,r,e,a,o,i,u,f,c){var s=En();try{return Q.get(t)(n,r,e,a,o,i,u,f,c)}catch(t){if(Ln(s),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},F:function(t,n,r,e,a,o,i,u,f,c,s,l,h){var p=En();try{return Q.get(t)(n,r,e,a,o,i,u,f,c,s,l,h)}catch(t){if(Ln(p),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},H:function(t){var n=En();try{Q.get(t)()}catch(t){if(Ln(n),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},g:function(t,n){var r=En();try{Q.get(t)(n)}catch(t){if(Ln(r),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},ba:function(t,n,r,e){var a=En();try{Q.get(t)(n,r,e)}catch(t){if(Ln(a),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},W:function(t,n,r){var e=En();try{Q.get(t)(n,r)}catch(t){if(Ln(e),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},ua:function(t,n,r,e){var a=En();try{Q.get(t)(n,r,e)}catch(t){if(Ln(a),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},k:function(t,n,r){var e=En();try{Q.get(t)(n,r)}catch(t){if(Ln(e),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},l:function(t,n,r,e){var a=En();try{Q.get(t)(n,r,e)}catch(t){if(Ln(a),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},pa:function(t,n,r,e,a,o,i,u){var f=En();try{Q.get(t)(n,r,e,a,o,i,u)}catch(t){if(Ln(f),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},D:function(t,n,r,e){var a=En();try{Q.get(t)(n,r,e)}catch(t){if(Ln(a),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},f:function(t,n,r,e){var a=En();try{Q.get(t)(n,r,e)}catch(t){if(Ln(a),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},ta:function(t,n,r,e,a,o){var i=En();try{Q.get(t)(n,r,e,a,o)}catch(t){if(Ln(i),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},i:function(t,n,r,e,a){var o=En();try{Q.get(t)(n,r,e,a)}catch(t){if(Ln(o),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},o:function(t,n,r,e,a,o){var i=En();try{Q.get(t)(n,r,e,a,o)}catch(t){if(Ln(i),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},X:function(t,n,r,e,a,o,i,u,f,c){var s=En();try{Q.get(t)(n,r,e,a,o,i,u,f,c)}catch(t){if(Ln(s),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},s:function(t,n,r,e,a,o,i){var u=En();try{Q.get(t)(n,r,e,a,o,i)}catch(t){if(Ln(u),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},q:function(t,n,r,e,a,o,i,u){var f=En();try{Q.get(t)(n,r,e,a,o,i,u)}catch(t){if(Ln(f),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},y:function(t,n,r,e,a,o,i,u,f,c){var s=En();try{Q.get(t)(n,r,e,a,o,i,u,f,c)}catch(t){if(Ln(s),t!==t+0&&"longjmp"!==t)throw t;Un(1,0)}},C:function(t){return t}};!function(){function t(t){r.asm=t.exports,k=r.asm.va,B(),Q=r.asm.za,$.unshift(r.asm.wa),tt--,r.monitorRunDependencies&&r.monitorRunDependencies(tt),0==tt&&(null!==nt&&(clearInterval(nt),nt=null),rt&&(t=rt,rt=null,t()))}function n(n){t(n.instance)}function e(t){return function(){if(!b&&(h||p)){if("function"==typeof fetch&&!Y.startsWith("file://"))return fetch(Y,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+Y+"'";return t.arrayBuffer()})).catch((function(){return it()}));if(f)return new Promise((function(t,n){f(Y,(function(n){t(new Uint8Array(n))}),n)}))}return Promise.resolve().then((function(){return it()}))}().then((function(t){return WebAssembly.instantiate(t,o)})).then((function(t){return t})).then(t,(function(t){w("failed to asynchronously prepare wasm: "+t),et(t)}))}var o={a:Sn};if(tt++,r.monitorRunDependencies&&r.monitorRunDependencies(tt),r.instantiateWasm)try{return r.instantiateWasm(o,t)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}(b||"function"!=typeof WebAssembly.instantiateStreaming||at()||Y.startsWith("file://")||"function"!=typeof fetch?e(n):fetch(Y,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,o).then(n,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),e(n)}))}))).catch(a)}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.wa).apply(null,arguments)},r._acuantDetect=function(){return(r._acuantDetect=r.asm.xa).apply(null,arguments)},r._acuantCrop=function(){return(r._acuantCrop=r.asm.ya).apply(null,arguments)};var On=r._malloc=function(){return(On=r._malloc=r.asm.Aa).apply(null,arguments)},Cn=r._free=function(){return(Cn=r._free=r.asm.Ba).apply(null,arguments)};r.___getTypeName=function(){return(r.___getTypeName=r.asm.Ca).apply(null,arguments)},r.___embind_register_native_and_builtin_types=function(){return(r.___embind_register_native_and_builtin_types=r.asm.Da).apply(null,arguments)};var Rn,Wn=r.___errno_location=function(){return(Wn=r.___errno_location=r.asm.Ea).apply(null,arguments)},En=r.stackSave=function(){return(En=r.stackSave=r.asm.Fa).apply(null,arguments)},Ln=r.stackRestore=function(){return(Ln=r.stackRestore=r.asm.Ga).apply(null,arguments)},Nn=r.stackAlloc=function(){return(Nn=r.stackAlloc=r.asm.Ha).apply(null,arguments)},Un=r._setThrew=function(){return(Un=r._setThrew=r.asm.Ia).apply(null,arguments)},In=r.___cxa_can_catch=function(){return(In=r.___cxa_can_catch=r.asm.Ja).apply(null,arguments)},xn=r.___cxa_is_pointer_type=function(){return(xn=r.___cxa_is_pointer_type=r.asm.Ka).apply(null,arguments)};function Fn(){function t(){if(!Rn&&(Rn=!0,r.calledRun=!0,!_)){if(r.noFSInit||Vt||(Vt=!0,Kt(),r.stdin=r.stdin,r.stdout=r.stdout,r.stderr=r.stderr,r.stdin?tn("stdin",r.stdin):Gt("/dev/tty","/dev/stdin"),r.stdout?tn("stdout",null,r.stdout):Gt("/dev/tty","/dev/stdout"),r.stderr?tn("stderr",null,r.stderr):Gt("/dev/tty1","/dev/stderr"),Yt("/dev/stdin",0),Yt("/dev/stdout",1),Yt("/dev/stderr",1)),Ot=!1,ut($),e(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;){var t=r.postRun.shift();G.unshift(t)}ut(G)}}if(!(0{let r=e.addFunction(a,"viiiii"),t=e.addFunction(i,"viiiiiiiii");function a(r,t,a,i,n){let c={func:"crop"};if(a>=0){const o=new ArrayBuffer(t);let s=new Uint8Array(o);s.set(e.HEAPU8.subarray(r,r+t),0),c.imgData=s,c.width=a,c.height=i,c.type=n}else switch(a){case-1:c.error="Runtime error.";break;case-2:c.error="Detect (for cropping) did not return OK";break;case-3:c.error="Crop did not return OK";break;default:c.error="Unknown Error Occured"}c&&c.imgData&&c.imgData.buffer?postMessage(c,[c.imgData.buffer]):postMessage(c)}function i(e,r,t,a,i,n,c,o,s){let u={func:"detect"};if(r>=0)u.type=e,u.x1=r,u.y1=t,u.x2=a,u.y2=i,u.x3=n,u.y3=c,u.x4=o,u.y4=s;else switch(r){case-1:u.error="Runtime error.";break;case-2:u.error="Detect did not return OK";break;default:u.error="Unknown Error Occured"}postMessage(u)}function n(r){null!=r&&(e._free(r),r=null)}function c(r){var t=e._malloc(r.length*r.BYTES_PER_ELEMENT);return e.HEAPU8.set(r,t),t}onmessage=o=>{if(o&&o.data)if("crop"===o.data.func){let t=o.data.data;if(t.imgData&&t.width&&t.height){let a=c(t.imgData);e.ccall("acuantCrop",null,["number","number","number","number"],[a,t.width,t.height,r]),n(a)}else console.error("missing params"),a(-1,-1,-1,-1)}else if("detect"===o.data.func){let r=o.data.data;if(r.imgData&&r.width&&r.height){let a=c(r.imgData);e.ccall("acuantDetect",null,["number","number","number","number"],[a,r.width,r.height,t]),n(a)}else console.error("missing params"),i(-1,-1,-1,-1,-1,-1,-1,-1,-1)}else console.error("called with no func specified")},postMessage({imageWorker:"started"})})); \ No newline at end of file diff --git a/public/acuant/11.5.1/AcuantInitializerService.min.js b/public/acuant/11.5.1/AcuantInitializerService.min.js new file mode 100644 index 00000000000..70d1f50c0f8 --- /dev/null +++ b/public/acuant/11.5.1/AcuantInitializerService.min.js @@ -0,0 +1 @@ +var AcuantInitializerModule=function(){var e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(e=e||__filename),function(t){var r,n,o=void 0!==(t=t||{})?t:{};o.ready=new Promise((function(e,t){r=e,n=t})),Object.getOwnPropertyDescriptor(o.ready,"_initialize")||(Object.defineProperty(o.ready,"_initialize",{configurable:!0,get:function(){je("You are getting _initialize on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_initialize",{configurable:!0,set:function(){je("You are setting _initialize on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_initializeWithToken")||(Object.defineProperty(o.ready,"_initializeWithToken",{configurable:!0,get:function(){je("You are getting _initializeWithToken on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_initializeWithToken",{configurable:!0,set:function(){je("You are setting _initializeWithToken on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_emscripten_stack_get_end")||(Object.defineProperty(o.ready,"_emscripten_stack_get_end",{configurable:!0,get:function(){je("You are getting _emscripten_stack_get_end on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_emscripten_stack_get_end",{configurable:!0,set:function(){je("You are setting _emscripten_stack_get_end on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_emscripten_stack_get_free")||(Object.defineProperty(o.ready,"_emscripten_stack_get_free",{configurable:!0,get:function(){je("You are getting _emscripten_stack_get_free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_emscripten_stack_get_free",{configurable:!0,set:function(){je("You are setting _emscripten_stack_get_free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_emscripten_stack_init")||(Object.defineProperty(o.ready,"_emscripten_stack_init",{configurable:!0,get:function(){je("You are getting _emscripten_stack_init on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_emscripten_stack_init",{configurable:!0,set:function(){je("You are setting _emscripten_stack_init on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_stackSave")||(Object.defineProperty(o.ready,"_stackSave",{configurable:!0,get:function(){je("You are getting _stackSave on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_stackSave",{configurable:!0,set:function(){je("You are setting _stackSave on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_stackRestore")||(Object.defineProperty(o.ready,"_stackRestore",{configurable:!0,get:function(){je("You are getting _stackRestore on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_stackRestore",{configurable:!0,set:function(){je("You are setting _stackRestore on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_stackAlloc")||(Object.defineProperty(o.ready,"_stackAlloc",{configurable:!0,get:function(){je("You are getting _stackAlloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_stackAlloc",{configurable:!0,set:function(){je("You are setting _stackAlloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___wasm_call_ctors")||(Object.defineProperty(o.ready,"___wasm_call_ctors",{configurable:!0,get:function(){je("You are getting ___wasm_call_ctors on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___wasm_call_ctors",{configurable:!0,set:function(){je("You are setting ___wasm_call_ctors on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_fflush")||(Object.defineProperty(o.ready,"_fflush",{configurable:!0,get:function(){je("You are getting _fflush on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_fflush",{configurable:!0,set:function(){je("You are setting _fflush on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___errno_location")||(Object.defineProperty(o.ready,"___errno_location",{configurable:!0,get:function(){je("You are getting ___errno_location on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___errno_location",{configurable:!0,set:function(){je("You are setting ___errno_location on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_malloc")||(Object.defineProperty(o.ready,"_malloc",{configurable:!0,get:function(){je("You are getting _malloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_malloc",{configurable:!0,set:function(){je("You are setting _malloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_free")||(Object.defineProperty(o.ready,"_free",{configurable:!0,get:function(){je("You are getting _free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_free",{configurable:!0,set:function(){je("You are setting _free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___cxa_is_pointer_type")||(Object.defineProperty(o.ready,"___cxa_is_pointer_type",{configurable:!0,get:function(){je("You are getting ___cxa_is_pointer_type on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___cxa_is_pointer_type",{configurable:!0,set:function(){je("You are setting ___cxa_is_pointer_type on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___cxa_can_catch")||(Object.defineProperty(o.ready,"___cxa_can_catch",{configurable:!0,get:function(){je("You are getting ___cxa_can_catch on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___cxa_can_catch",{configurable:!0,set:function(){je("You are setting ___cxa_can_catch on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_setThrew")||(Object.defineProperty(o.ready,"_setThrew",{configurable:!0,get:function(){je("You are getting _setThrew on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_setThrew",{configurable:!0,set:function(){je("You are setting _setThrew on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_getCreds")||(Object.defineProperty(o.ready,"_getCreds",{configurable:!0,get:function(){je("You are getting _getCreds on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_getCreds",{configurable:!0,set:function(){je("You are setting _getCreds on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_getOauthToken")||(Object.defineProperty(o.ready,"_getOauthToken",{configurable:!0,get:function(){je("You are getting _getOauthToken on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_getOauthToken",{configurable:!0,set:function(){je("You are setting _getOauthToken on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_getEndpoint")||(Object.defineProperty(o.ready,"_getEndpoint",{configurable:!0,get:function(){je("You are getting _getEndpoint on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_getEndpoint",{configurable:!0,set:function(){je("You are setting _getEndpoint on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_callback")||(Object.defineProperty(o.ready,"_callback",{configurable:!0,get:function(){je("You are getting _callback on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_callback",{configurable:!0,set:function(){je("You are setting _callback on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_initialize_internal")||(Object.defineProperty(o.ready,"_initialize_internal",{configurable:!0,get:function(){je("You are getting _initialize_internal on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_initialize_internal",{configurable:!0,set:function(){je("You are setting _initialize_internal on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___getTypeName")||(Object.defineProperty(o.ready,"___getTypeName",{configurable:!0,get:function(){je("You are getting ___getTypeName on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___getTypeName",{configurable:!0,set:function(){je("You are setting ___getTypeName on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___embind_register_native_and_builtin_types")||(Object.defineProperty(o.ready,"___embind_register_native_and_builtin_types",{configurable:!0,get:function(){je("You are getting ___embind_register_native_and_builtin_types on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___embind_register_native_and_builtin_types",{configurable:!0,set:function(){je("You are setting ___embind_register_native_and_builtin_types on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"onRuntimeInitialized")||(Object.defineProperty(o.ready,"onRuntimeInitialized",{configurable:!0,get:function(){je("You are getting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"onRuntimeInitialized",{configurable:!0,set:function(){je("You are setting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}));var i,a={};for(i in o)o.hasOwnProperty(i)&&(a[i]=o[i]);var s=[],c="object"==typeof window,d="function"==typeof importScripts,p="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!c&&!p&&!d;if(o.ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -s ENVIRONMENT=web or -s ENVIRONMENT=node)");var l,E,O,f,_,g="";function T(e){return o.locateFile?o.locateFile(e,g):g+e}if(p){if("object"!=typeof process||"function"!=typeof require)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");g=d?require("path").dirname(g)+"/":__dirname+"/",l=function(e,t){return f||(f=require("fs")),_||(_=require("path")),e=_.normalize(e),f.readFileSync(e,t?null:"utf8")},O=function(e){var t=l(e,!0);return t.buffer||(t=new Uint8Array(t)),x(t.buffer),t},E=function(e,t,r){f||(f=require("fs")),_||(_=require("path")),e=_.normalize(e),f.readFile(e,(function(e,n){e?r(e):t(n.buffer)}))},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),s=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof Ur))throw e})),process.on("unhandledRejection",je),function(e,t){if(De())throw process.exitCode=e,t;process.exit(e)},o.inspect=function(){return"[Emscripten Module object]"}}else if(u){if("object"==typeof process&&"function"==typeof require||"object"==typeof window||"function"==typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");"undefined"!=typeof read&&(l=function(e){return read(e)}),O=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(x("object"==typeof(t=read(e,"binary"))),t)},E=function(e,t,r){setTimeout((function(){t(O(e))}),0)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"function"==typeof quit&&function(e){quit(e)},"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)}else{if(!c&&!d)throw new Error("environment detection error");if(d?g=self.location.href:"undefined"!=typeof document&&document.currentScript&&(g=document.currentScript.src),e&&(g=e),g=0!==g.indexOf("blob:")?g.substr(0,g.lastIndexOf("/")+1):"","object"!=typeof window&&"function"!=typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");l=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},d&&(O=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),E=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)},function(e){document.title=e}}o.print||console.log.bind(console);var h=o.printErr||console.warn.bind(console);for(i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);a=null,o.arguments&&(s=o.arguments),Object.getOwnPropertyDescriptor(o,"arguments")||Object.defineProperty(o,"arguments",{configurable:!0,get:function(){je("Module.arguments has been replaced with plain arguments_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),o.thisProgram&&o.thisProgram,Object.getOwnPropertyDescriptor(o,"thisProgram")||Object.defineProperty(o,"thisProgram",{configurable:!0,get:function(){je("Module.thisProgram has been replaced with plain thisProgram (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),o.quit&&o.quit,Object.getOwnPropertyDescriptor(o,"quit")||Object.defineProperty(o,"quit",{configurable:!0,get:function(){je("Module.quit has been replaced with plain quit_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),x(void 0===o.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),x(void 0===o.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),x(void 0===o.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),x(void 0===o.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),x(void 0===o.read,"Module.read option was removed (modify read_ in JS)"),x(void 0===o.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),x(void 0===o.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),x(void 0===o.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),x(void 0===o.TOTAL_MEMORY,"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),Object.getOwnPropertyDescriptor(o,"read")||Object.defineProperty(o,"read",{configurable:!0,get:function(){je("Module.read has been replaced with plain read_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(o,"readAsync")||Object.defineProperty(o,"readAsync",{configurable:!0,get:function(){je("Module.readAsync has been replaced with plain readAsync (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(o,"readBinary")||Object.defineProperty(o,"readBinary",{configurable:!0,get:function(){je("Module.readBinary has been replaced with plain readBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(o,"setWindowTitle")||Object.defineProperty(o,"setWindowTitle",{configurable:!0,get:function(){je("Module.setWindowTitle has been replaced with plain setWindowTitle (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}});x(!u,"shell environment detected but not enabled at build time. Add 'shell' to `-s ENVIRONMENT` to enable.");function D(e){D.shown||(D.shown={}),D.shown[e]||(D.shown[e]=1,h(e))}function w(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},o=1;o=n);)++o;if(o-t>16&&e.subarray&&k)return k.decode(e.subarray(t,o));for(var i="";t>10,56320|1023&d)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function Q(e,t){return e?X(Y,e,t):""}function C(e,t,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a);if(s<=127){if(r>=i)break;t[r++]=s}else if(s<=2047){if(r+1>=i)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=i)break;s>1114111&&D("Invalid Unicode code point 0x"+s.toString(16)+" encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF)."),t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-o}function L(e,t,r){return x("number"==typeof r,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),C(e,Y,t,r)}function W(e){for(var t=0,r=0;r=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}var G,z,Y,B,V,Z,q,K,J,$="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function ee(e,t){x(e%2==0,"Pointer passed to UTF16ToString must be aligned to two bytes!");for(var r=e,n=r>>1,o=n+t/2;!(n>=o)&&V[n];)++n;if((r=n<<1)-e>32&&$)return $.decode(Y.subarray(e,r));for(var i="",a=0;!(a>=t/2);++a){var s=B[e+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function te(e,t,r){if(x(t%2==0,"Pointer passed to stringToUTF16 must be aligned to two bytes!"),x("number"==typeof r,"stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,o=(r-=2)<2*e.length?r/2:e.length,i=0;i>1]=a,t+=2}return B[t>>1]=0,t-n}function re(e){return 2*e.length}function ne(e,t){x(e%4==0,"Pointer passed to UTF32ToString must be aligned to four bytes!");for(var r=0,n="";!(r>=t/4);){var o=Z[e+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function oe(e,t,r){if(x(t%4==0,"Pointer passed to stringToUTF32 must be aligned to four bytes!"),x("number"==typeof r,"stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,o=n+r-4,i=0;i=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i);if(Z[t>>2]=a,(t+=4)+4>o)break}return Z[t>>2]=0,t-n}function ie(e){for(var t=0,r=0;r=55296&&n<=57343&&++r,t+=4}return t}function ae(e,t){x(e.length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),z.set(e,t)}function se(e,t){return e%t>0&&(e+=t-e%t),e}function ce(e){G=e,o.HEAP8=z=new Int8Array(e),o.HEAP16=B=new Int16Array(e),o.HEAP32=Z=new Int32Array(e),o.HEAPU8=Y=new Uint8Array(e),o.HEAPU16=V=new Uint16Array(e),o.HEAPU32=q=new Uint32Array(e),o.HEAPF32=K=new Float32Array(e),o.HEAPF64=J=new Float64Array(e)}var de=5242880;o.TOTAL_STACK&&x(de===o.TOTAL_STACK,"the stack size can no longer be determined at runtime");var pe,ue=o.INITIAL_MEMORY||16777216;function le(){var e=Pr();x(0==(3&e)),q[1+(e>>2)]=34821223,q[2+(e>>2)]=2310721022,Z[0]=1668509029}function Ee(){if(!U){var e=Pr(),t=q[1+(e>>2)],r=q[2+(e>>2)];34821223==t&&2310721022==r||je("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x"+r.toString(16)+" "+t.toString(16)),1668509029!==Z[0]&&je("Runtime error: The application has corrupted its heap memory area (address zero)!")}}Object.getOwnPropertyDescriptor(o,"INITIAL_MEMORY")||Object.defineProperty(o,"INITIAL_MEMORY",{configurable:!0,get:function(){je("Module.INITIAL_MEMORY has been replaced with plain INITIAL_MEMORY (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),x(ue>=de,"INITIAL_MEMORY should be larger than TOTAL_STACK, was "+ue+"! (TOTAL_STACK="+de+")"),x("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support"),x(!o.wasmMemory,"Use of `wasmMemory` detected. Use -s IMPORTED_MEMORY to define wasmMemory externally"),x(16777216==ue,"Detected runtime INITIAL_MEMORY setting. Use -s IMPORTED_MEMORY to define wasmMemory dynamically"),function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian! (Run with -s SUPPORT_BIG_ENDIAN=1 to bypass)"}();var Oe=[],fe=[],_e=[],ge=!1,Te=!1,he=0;function De(){return j||he>0}function we(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)Pe(o.preRun.shift());Ge(Oe)}function ye(){Ee(),x(!ge),ge=!0,Ge(fe)}function be(){if(Ee(),o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)Me(o.postRun.shift());Ge(_e)}function Pe(e){Oe.unshift(e)}function Re(e){fe.unshift(e)}function Me(e){_e.unshift(e)}x(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),x(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),x(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),x(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var me=0,Se=null,Ae=null,Fe={};function Ie(e){me++,o.monitorRunDependencies&&o.monitorRunDependencies(me),e?(x(!Fe[e]),Fe[e]=1,null===Se&&"undefined"!=typeof setInterval&&(Se=setInterval((function(){if(U)return clearInterval(Se),void(Se=null);var e=!1;for(var t in Fe)e||(e=!0,h("still waiting on run dependencies:")),h("dependency: "+t);e&&h("(end of list)")}),1e4))):h("warning: run dependency added without ID")}function ve(e){if(me--,o.monitorRunDependencies&&o.monitorRunDependencies(me),e?(x(Fe[e]),delete Fe[e]):h("warning: run dependency removed without ID"),0==me&&(null!==Se&&(clearInterval(Se),Se=null),Ae)){var t=Ae;Ae=null,t()}}function je(e){o.onAbort&&o.onAbort(e),h(e+=""),U=!0,1,e="abort("+e+") at "+Ve();var t=new WebAssembly.RuntimeError(e);throw n(t),t}o.preloadedImages={},o.preloadedAudios={};var Ue={error:function(){je("Filesystem support (FS) was not included. The problem is that you are using files from JS, but files were not used from C/C++, so filesystem support was not auto-included. You can force-include filesystem support with -s FORCE_FILESYSTEM=1")},init:function(){Ue.error()},createDataFile:function(){Ue.error()},createPreloadedFile:function(){Ue.error()},createLazyFile:function(){Ue.error()},open:function(){Ue.error()},mkdev:function(){Ue.error()},registerDevice:function(){Ue.error()},analyzePath:function(){Ue.error()},loadFilesFromDB:function(){Ue.error()},ErrnoError:function(){Ue.error()}};o.FS_createDataFile=Ue.createDataFile,o.FS_createPreloadedFile=Ue.createPreloadedFile;var xe,Ne="data:application/octet-stream;base64,";function He(e){return e.startsWith(Ne)}function ke(e){return e.startsWith("file://")}function Xe(e,t){return function(){var r=e,n=t;return t||(n=o.asm),x(ge,"native function `"+r+"` called before runtime initialization"),x(!Te,"native function `"+r+"` called after runtime exit (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),n[e]||x(n[e],"exported native function `"+r+"` not found"),n[e].apply(null,arguments)}}function Qe(e){try{if(e==xe&&S)return new Uint8Array(S);if(O)return O(e);throw"both async and sync fetching of the wasm failed"}catch(e){je(e)}}function Ce(){if(!S&&(c||d)){if("function"==typeof fetch&&!ke(xe))return fetch(xe,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+xe+"'";return e.arrayBuffer()})).catch((function(){return Qe(xe)}));if(E)return new Promise((function(e,t){E(xe,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return Qe(xe)}))}function Le(){var e={env:gr,wasi_snapshot_preview1:gr};function t(e,t){var r=e.exports;o.asm=r,x(v=o.asm.memory,"memory not found in wasm exports"),ce(v.buffer),x(pe=o.asm.__indirect_function_table,"table not found in wasm exports"),Re(o.asm.__wasm_call_ctors),ve("wasm-instantiate")}Ie("wasm-instantiate");var r=o;function i(e){x(o===r,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),r=null,t(e.instance)}function a(t){return Ce().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){h("failed to asynchronously prepare wasm: "+e),ke(xe)&&h("warning: Loading from a file URI ("+xe+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing"),je(e)}))}if(o.instantiateWasm)try{return o.instantiateWasm(e,t)}catch(e){return h("Module.instantiateWasm callback failed with error: "+e),!1}return(S||"function"!=typeof WebAssembly.instantiateStreaming||He(xe)||ke(xe)||"function"!=typeof fetch?a(i):fetch(xe,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(i,(function(e){return h("wasm streaming compile failed: "+e),h("falling back to ArrayBuffer instantiation"),a(i)}))}))).catch(n),{}}He(xe="AcuantInitializerService.wasm")||(xe=T(xe));var We={3924:function(){let e=function(e){try{return JSON.parse(e)}catch(e){return}},r=function(r){let n=(""+r).split(".");if(3==n.length){let r=e(atob(n[0])),o=e(atob(n[1])),i=n[2];if(r&&o&&i&&r.kid&&r.alg&&o.sub&&o.iss&&o.exp&&o.iat){let e=Math.floor((new Date).getTime()/1e3);"string"==typeof r.kid&&"string"==typeof r.alg&&"string"==typeof o.sub&&o.sub.length>0&&"string"==typeof o.iss&&"number"==typeof o.exp&&o.exp>e&&"number"==typeof o.iat?t.callback(1):t.callback(5)}else t.callback(4)}else t.callback(3)};const n=t.getCreds(),o=t.getOauthToken(),i=t.getEndpoint();if(o)r(o);else{let o=new XMLHttpRequest;o.open("POST",i+"/oauth/token",!0),o.setRequestHeader("Authorization","Basic "+n),o.setRequestHeader("Content-type","application/json");let a={grant_type:"client_credentials"};o.responseType="text",o.send(JSON.stringify(a)),o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status||204===o.status){let n=e(o.responseText);n&&n.hasOwnProperty("access_token")?r(n.access_token):t.callback(2)}else t.callback(o.status)}}}};function Ge(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?pe.get(r)():pe.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(o)}}function ze(e){return D("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),e}function Ye(e){return e.replace(/\b_Z[\w\d_]+/g,(function(e){var t=ze(e);return e===t?e:t+" ["+e+"]"}))}function Be(){var e=new Error;if(!e.stack){try{throw new Error}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function Ve(){var e=Be();return o.extraStackTrace&&(e+="\n"+o.extraStackTrace()),Ye(e)}function Ze(e){return Tr(e+16)+16}function qe(e){this.excPtr=e,this.ptr=e-16,this.set_type=function(e){Z[this.ptr+4>>2]=e},this.get_type=function(){return Z[this.ptr+4>>2]},this.set_destructor=function(e){Z[this.ptr+8>>2]=e},this.get_destructor=function(){return Z[this.ptr+8>>2]},this.set_refcount=function(e){Z[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,z[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=z[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,z[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=z[this.ptr+13>>0]},this.init=function(e,t){this.set_type(e),this.set_destructor(t),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=Z[this.ptr>>2];Z[this.ptr>>2]=e+1},this.release_ref=function(){var e=Z[this.ptr>>2];return Z[this.ptr>>2]=e-1,x(e>0),1===e}}function Ke(e){this.free=function(){Mr(this.ptr),this.ptr=0},this.set_base_ptr=function(e){Z[this.ptr>>2]=e},this.get_base_ptr=function(){return Z[this.ptr>>2]},this.set_adjusted_ptr=function(e){Z[this.ptr+4>>2]=e},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return Z[this.ptr+4>>2]},this.get_exception_ptr=function(){if(Sr(this.get_exception_info().get_type()))return Z[this.get_base_ptr()>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.get_base_ptr()},this.get_exception_info=function(){return new qe(this.get_base_ptr())},void 0===e?(this.ptr=Tr(8),this.set_adjusted_ptr(0)):this.ptr=e}var Je=[];function $e(e){e.add_ref()}function et(e){var t=new Ke(e),r=t.get_exception_info();return r.get_caught()||(r.set_caught(!0)),r.set_rethrown(!1),Je.push(t),$e(r),t.get_exception_ptr()}var tt=0;function rt(e){try{return Mr(new qe(e).ptr)}catch(e){h("exception during cxa_free_exception: "+e)}}function nt(e){if(e.release_ref()&&!e.get_rethrown()){var t=e.get_destructor();t&&pe.get(t)(e.excPtr),rt(e.excPtr)}}function ot(){Rr(0),x(Je.length>0);var e=Je.pop();nt(e.get_exception_info()),e.free(),tt=0}function it(e){var t=new Ke(e),r=t.get_base_ptr();throw tt||(tt=r),t.free(),r}function at(){var e=tt;if(!e)return F(0),0;var t=new qe(e),r=t.get_type(),n=new Ke;if(n.set_base_ptr(e),n.set_adjusted_ptr(e),!r)return F(0),0|n.ptr;for(var o=Array.prototype.slice.call(arguments),i=0;i=gt&&t<=Tt?"_"+e:e}function Dt(e,t){return e=ht(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function wt(e,t){var r=Dt(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var yt=void 0;function bt(e){throw new yt(e)}var Pt=void 0;function Rt(e){throw new Pt(e)}function Mt(e,t,r){function n(t){var n=r(t);n.length!==e.length&&Rt("Mismatched type converter count");for(var o=0;o>i])},destructorFunction:null})}var At=[],Ft=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function It(e){e>4&&0==--Ft[e].refcount&&(Ft[e]=void 0,At.push(e))}function vt(){for(var e=0,t=5;t>2])}function Ht(e,t){mt(e,{name:t=Et(t),fromWireType:function(e){var t=Ft[e].value;return It(e),t},toWireType:function(e,t){return xt(t)},argPackAdvance:8,readValueFromPointer:Nt,destructorFunction:null})}function kt(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function Xt(e,t){switch(t){case 2:return function(e){return this.fromWireType(K[e>>2])};case 3:return function(e){return this.fromWireType(J[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function Qt(e,t,r){var n=pt(r);mt(e,{name:t=Et(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+kt(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:Xt(t,n),destructorFunction:null})}function Ct(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var r=Dt(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,o=e.apply(n,t);return o instanceof Object?o:n}function Lt(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Wt(e,t,r,n,o){var i=t.length;i<2&&bt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==r,s=!1,c=1;c0?", ":"")+u),l+=(d?"var rv = ":"")+"invoker(fn"+(u.length>0?", ":"")+u+");\n",s)l+="runDestructors(destructors);\n";else for(c=a?1:2;c>2)+n]);return r}function Bt(e,t,r){o.hasOwnProperty(e)||Rt("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==r?o[e].overloadTable[r]=t:(o[e]=t,o[e].argCount=r)}function Vt(e,t,r){x("dynCall_"+e in o,"bad function pointer type - no table for sig '"+e+"'"),r&&r.length?x(r.length===e.substring(1).replace(/j/g,"--").length):x(1==e.length);var n=o["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}function Zt(e,t,r){return e.includes("j")?Vt(e,t,r):(x(pe.get(t),"missing table entry in dynCall: "+t),pe.get(t).apply(null,r))}function qt(e,t){x(e.includes("j"),"getDynCaller should only be called with i64 sigs");var r=[];return function(){r.length=arguments.length;for(var n=0;n>1]}:function(e){return V[e>>1]};case 2:return r?function(e){return Z[e>>2]}:function(e){return q[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function nr(e,t,r,n,o){t=Et(t),-1===o&&(o=4294967295);var i=pt(r),a=function(e){return e};if(0===n){var s=32-8*r;a=function(e){return e<>>s}}var c=t.includes("unsigned");mt(e,{name:t,fromWireType:a,toWireType:function(e,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+kt(r)+'" to '+this.name);if(ro)throw new TypeError('Passing a number "'+kt(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+o+"]!");return c?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:rr(t,i,0!==n),destructorFunction:null})}function or(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=q,r=t[e>>=2],o=t[e+1];return new n(G,o,r)}mt(e,{name:r=Et(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}function ir(e,t){var r="std::string"===(t=Et(t));mt(e,{name:t,fromWireType:function(e){var t,n=q[e>>2];if(r)for(var o=e+4,i=0;i<=n;++i){var a=e+4+i;if(i==n||0==Y[a]){var s=Q(o,a-o);void 0===t?t=s:(t+=String.fromCharCode(0),t+=s),o=a+1}}else{var c=new Array(n);for(i=0;i>2]=o,r&&n)L(t,i+4,o+1);else if(n)for(var a=0;a255&&(Mr(i),bt("String has UTF-16 code units that do not fit in 8 bits")),Y[i+4+a]=s}else for(a=0;a>2],a=i(),c=e+4,d=0;d<=o;++d){var p=e+4+d*t;if(d==o||0==a[p>>s]){var u=n(c,p-c);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),c=p+t}}return Mr(e),r},toWireType:function(e,n){"string"!=typeof n&&bt("Cannot pass non-string to C++ string type "+r);var i=a(n),c=Tr(4+i+t);return q[c>>2]=i>>s,o(n,c+4,i+t),null!==e&&e.push(Mr,c),c},argPackAdvance:8,readValueFromPointer:Nt,destructorFunction:function(e){Mr(e)}})}function sr(e,t){mt(e,{isVoid:!0,name:t=Et(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})}function cr(){je()}var dr=[];function pr(e,t){var r;for(x(Array.isArray(dr)),x(t%16==0),dr.length=0,t>>=2;r=Y[e++];){x(100===r||102===r||105===r);var n=r<105;n&&1&t&&t++,dr.push(n?J[t++>>1]:Z[t]),++t}return dr}function ur(e,t,r){var n=pr(t,r);return We.hasOwnProperty(e)||je("No EM_ASM constant found at address "+e),We[e].apply(null,n)}function lr(e,t,r){Y.copyWithin(e,t,t+r)}function Er(e){try{return v.grow(e-G.byteLength+65535>>>16),ce(v.buffer),1}catch(t){h("emscripten_realloc_buffer: Attempted to grow heap from "+G.byteLength+" bytes to "+e+" bytes, but got error: "+t)}}function Or(e){var t=Y.length;x((e>>>=0)>t);var r=2147483648;if(e>r)return h("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is "+"2147483648 bytes!"),!1;for(var n=1;n<=4;n*=2){var o=t*(1+.2/n);o=Math.min(o,e+100663296);var i=Math.min(r,se(Math.max(e,o),65536));if(Er(i))return!0}return h("Failed to grow the heap from "+t+" bytes to "+i+" bytes, not enough memory!"),!1}function fr(){return I()}ut(),yt=o.BindingError=wt(Error,"BindingError"),Pt=o.InternalError=wt(Error,"InternalError"),Ut(),Jt=o.UnboundTypeError=wt(Error,"UnboundTypeError");var _r,gr={__cxa_allocate_exception:Ze,__cxa_begin_catch:et,__cxa_end_catch:ot,__cxa_find_matching_catch_2:at,__cxa_find_matching_catch_3:st,__cxa_free_exception:rt,__cxa_throw:ct,__resumeException:it,_embind_register_bigint:dt,_embind_register_bool:St,_embind_register_emval:Ht,_embind_register_float:Qt,_embind_register_function:tr,_embind_register_integer:nr,_embind_register_memory_view:or,_embind_register_std_string:ir,_embind_register_std_wstring:ar,_embind_register_void:sr,abort:cr,emscripten_asm_const_int:ur,emscripten_memcpy_big:lr,emscripten_resize_heap:Or,getTempRet0:fr,invoke_ii:Ar,invoke_iii:Fr,invoke_v:jr,invoke_vii:Ir,invoke_viii:vr},Tr=(Le(),o.___wasm_call_ctors=Xe("__wasm_call_ctors"),o._getCreds=Xe("getCreds"),o._getOauthToken=Xe("getOauthToken"),o._getEndpoint=Xe("getEndpoint"),o._callback=Xe("callback"),o._initialize_internal=Xe("initialize_internal"),o._initialize=Xe("initialize"),o._initializeWithToken=Xe("initializeWithToken"),o._malloc=Xe("malloc")),hr=o.___getTypeName=Xe("__getTypeName"),Dr=(o.___embind_register_native_and_builtin_types=Xe("__embind_register_native_and_builtin_types"),o.___errno_location=Xe("__errno_location"),o._fflush=Xe("fflush"),o.stackSave=Xe("stackSave")),wr=o.stackRestore=Xe("stackRestore"),yr=o.stackAlloc=Xe("stackAlloc"),br=o._emscripten_stack_init=function(){return(br=o._emscripten_stack_init=o.asm.emscripten_stack_init).apply(null,arguments)},Pr=(o._emscripten_stack_get_free=function(){return(o._emscripten_stack_get_free=o.asm.emscripten_stack_get_free).apply(null,arguments)},o._emscripten_stack_get_end=function(){return(Pr=o._emscripten_stack_get_end=o.asm.emscripten_stack_get_end).apply(null,arguments)}),Rr=o._setThrew=Xe("setThrew"),Mr=o._free=Xe("free"),mr=o.___cxa_can_catch=Xe("__cxa_can_catch"),Sr=o.___cxa_is_pointer_type=Xe("__cxa_is_pointer_type");function Ar(e,t){var r=Dr();try{return pe.get(e)(t)}catch(e){if(wr(r),e!==e+0&&"longjmp"!==e)throw e;Rr(1,0)}}function Fr(e,t,r){var n=Dr();try{return pe.get(e)(t,r)}catch(e){if(wr(n),e!==e+0&&"longjmp"!==e)throw e;Rr(1,0)}}function Ir(e,t,r){var n=Dr();try{pe.get(e)(t,r)}catch(e){if(wr(n),e!==e+0&&"longjmp"!==e)throw e;Rr(1,0)}}function vr(e,t,r,n){var o=Dr();try{pe.get(e)(t,r,n)}catch(e){if(wr(o),e!==e+0&&"longjmp"!==e)throw e;Rr(1,0)}}function jr(e){var t=Dr();try{pe.get(e)()}catch(e){if(wr(t),e!==e+0&&"longjmp"!==e)throw e;Rr(1,0)}}function Ur(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}Object.getOwnPropertyDescriptor(o,"intArrayFromString")||(o.intArrayFromString=function(){je("'intArrayFromString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"intArrayToString")||(o.intArrayToString=function(){je("'intArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),o.ccall=H,Object.getOwnPropertyDescriptor(o,"cwrap")||(o.cwrap=function(){je("'cwrap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setValue")||(o.setValue=function(){je("'setValue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getValue")||(o.getValue=function(){je("'getValue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"allocate")||(o.allocate=function(){je("'allocate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UTF8ArrayToString")||(o.UTF8ArrayToString=function(){je("'UTF8ArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UTF8ToString")||(o.UTF8ToString=function(){je("'UTF8ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToUTF8Array")||(o.stringToUTF8Array=function(){je("'stringToUTF8Array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToUTF8")||(o.stringToUTF8=function(){je("'stringToUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"lengthBytesUTF8")||(o.lengthBytesUTF8=function(){je("'lengthBytesUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stackTrace")||(o.stackTrace=function(){je("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addOnPreRun")||(o.addOnPreRun=function(){je("'addOnPreRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addOnInit")||(o.addOnInit=function(){je("'addOnInit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addOnPreMain")||(o.addOnPreMain=function(){je("'addOnPreMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addOnExit")||(o.addOnExit=function(){je("'addOnExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addOnPostRun")||(o.addOnPostRun=function(){je("'addOnPostRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeStringToMemory")||(o.writeStringToMemory=function(){je("'writeStringToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeArrayToMemory")||(o.writeArrayToMemory=function(){je("'writeArrayToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeAsciiToMemory")||(o.writeAsciiToMemory=function(){je("'writeAsciiToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addRunDependency")||(o.addRunDependency=function(){je("'addRunDependency' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(o,"removeRunDependency")||(o.removeRunDependency=function(){je("'removeRunDependency' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(o,"FS_createFolder")||(o.FS_createFolder=function(){je("'FS_createFolder' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"FS_createPath")||(o.FS_createPath=function(){je("'FS_createPath' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(o,"FS_createDataFile")||(o.FS_createDataFile=function(){je("'FS_createDataFile' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(o,"FS_createPreloadedFile")||(o.FS_createPreloadedFile=function(){je("'FS_createPreloadedFile' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(o,"FS_createLazyFile")||(o.FS_createLazyFile=function(){je("'FS_createLazyFile' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(o,"FS_createLink")||(o.FS_createLink=function(){je("'FS_createLink' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"FS_createDevice")||(o.FS_createDevice=function(){je("'FS_createDevice' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(o,"FS_unlink")||(o.FS_unlink=function(){je("'FS_unlink' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(o,"getLEB")||(o.getLEB=function(){je("'getLEB' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getFunctionTables")||(o.getFunctionTables=function(){je("'getFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"alignFunctionTables")||(o.alignFunctionTables=function(){je("'alignFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerFunctions")||(o.registerFunctions=function(){je("'registerFunctions' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),o.addFunction=m,o.removeFunction=M,Object.getOwnPropertyDescriptor(o,"getFuncWrapper")||(o.getFuncWrapper=function(){je("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"prettyPrint")||(o.prettyPrint=function(){je("'prettyPrint' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"dynCall")||(o.dynCall=function(){je("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getCompilerSetting")||(o.getCompilerSetting=function(){je("'getCompilerSetting' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"print")||(o.print=function(){je("'print' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"printErr")||(o.printErr=function(){je("'printErr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getTempRet0")||(o.getTempRet0=function(){je("'getTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setTempRet0")||(o.setTempRet0=function(){je("'setTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"callMain")||(o.callMain=function(){je("'callMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"abort")||(o.abort=function(){je("'abort' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"keepRuntimeAlive")||(o.keepRuntimeAlive=function(){je("'keepRuntimeAlive' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"zeroMemory")||(o.zeroMemory=function(){je("'zeroMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToNewUTF8")||(o.stringToNewUTF8=function(){je("'stringToNewUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setFileTime")||(o.setFileTime=function(){je("'setFileTime' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscripten_realloc_buffer")||(o.emscripten_realloc_buffer=function(){je("'emscripten_realloc_buffer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ENV")||(o.ENV=function(){je("'ENV' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ERRNO_CODES")||(o.ERRNO_CODES=function(){je("'ERRNO_CODES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ERRNO_MESSAGES")||(o.ERRNO_MESSAGES=function(){je("'ERRNO_MESSAGES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setErrNo")||(o.setErrNo=function(){je("'setErrNo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"inetPton4")||(o.inetPton4=function(){je("'inetPton4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"inetNtop4")||(o.inetNtop4=function(){je("'inetNtop4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"inetPton6")||(o.inetPton6=function(){je("'inetPton6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"inetNtop6")||(o.inetNtop6=function(){je("'inetNtop6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readSockaddr")||(o.readSockaddr=function(){je("'readSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeSockaddr")||(o.writeSockaddr=function(){je("'writeSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"DNS")||(o.DNS=function(){je("'DNS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getHostByName")||(o.getHostByName=function(){je("'getHostByName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GAI_ERRNO_MESSAGES")||(o.GAI_ERRNO_MESSAGES=function(){je("'GAI_ERRNO_MESSAGES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"Protocols")||(o.Protocols=function(){je("'Protocols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"Sockets")||(o.Sockets=function(){je("'Sockets' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getRandomDevice")||(o.getRandomDevice=function(){je("'getRandomDevice' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"traverseStack")||(o.traverseStack=function(){je("'traverseStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UNWIND_CACHE")||(o.UNWIND_CACHE=function(){je("'UNWIND_CACHE' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"withBuiltinMalloc")||(o.withBuiltinMalloc=function(){je("'withBuiltinMalloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readAsmConstArgsArray")||(o.readAsmConstArgsArray=function(){je("'readAsmConstArgsArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readAsmConstArgs")||(o.readAsmConstArgs=function(){je("'readAsmConstArgs' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"mainThreadEM_ASM")||(o.mainThreadEM_ASM=function(){je("'mainThreadEM_ASM' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"jstoi_q")||(o.jstoi_q=function(){je("'jstoi_q' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"jstoi_s")||(o.jstoi_s=function(){je("'jstoi_s' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getExecutableName")||(o.getExecutableName=function(){je("'getExecutableName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"listenOnce")||(o.listenOnce=function(){je("'listenOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"autoResumeAudioContext")||(o.autoResumeAudioContext=function(){je("'autoResumeAudioContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"dynCallLegacy")||(o.dynCallLegacy=function(){je("'dynCallLegacy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getDynCaller")||(o.getDynCaller=function(){je("'getDynCaller' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"dynCall")||(o.dynCall=function(){je("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"callRuntimeCallbacks")||(o.callRuntimeCallbacks=function(){je("'callRuntimeCallbacks' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"handleException")||(o.handleException=function(){je("'handleException' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"runtimeKeepalivePush")||(o.runtimeKeepalivePush=function(){je("'runtimeKeepalivePush' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"runtimeKeepalivePop")||(o.runtimeKeepalivePop=function(){je("'runtimeKeepalivePop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"callUserCallback")||(o.callUserCallback=function(){je("'callUserCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"maybeExit")||(o.maybeExit=function(){je("'maybeExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"safeSetTimeout")||(o.safeSetTimeout=function(){je("'safeSetTimeout' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"asmjsMangle")||(o.asmjsMangle=function(){je("'asmjsMangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"asyncLoad")||(o.asyncLoad=function(){je("'asyncLoad' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"alignMemory")||(o.alignMemory=function(){je("'alignMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"mmapAlloc")||(o.mmapAlloc=function(){je("'mmapAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"reallyNegative")||(o.reallyNegative=function(){je("'reallyNegative' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"unSign")||(o.unSign=function(){je("'unSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"reSign")||(o.reSign=function(){je("'reSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"formatString")||(o.formatString=function(){je("'formatString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"PATH")||(o.PATH=function(){je("'PATH' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"PATH_FS")||(o.PATH_FS=function(){je("'PATH_FS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SYSCALLS")||(o.SYSCALLS=function(){je("'SYSCALLS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"syscallMmap2")||(o.syscallMmap2=function(){je("'syscallMmap2' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"syscallMunmap")||(o.syscallMunmap=function(){je("'syscallMunmap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getSocketFromFD")||(o.getSocketFromFD=function(){je("'getSocketFromFD' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getSocketAddress")||(o.getSocketAddress=function(){je("'getSocketAddress' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"JSEvents")||(o.JSEvents=function(){je("'JSEvents' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerKeyEventCallback")||(o.registerKeyEventCallback=function(){je("'registerKeyEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"specialHTMLTargets")||(o.specialHTMLTargets=function(){je("'specialHTMLTargets' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"maybeCStringToJsString")||(o.maybeCStringToJsString=function(){je("'maybeCStringToJsString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"findEventTarget")||(o.findEventTarget=function(){je("'findEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"findCanvasEventTarget")||(o.findCanvasEventTarget=function(){je("'findCanvasEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getBoundingClientRect")||(o.getBoundingClientRect=function(){je("'getBoundingClientRect' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillMouseEventData")||(o.fillMouseEventData=function(){je("'fillMouseEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerMouseEventCallback")||(o.registerMouseEventCallback=function(){je("'registerMouseEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerWheelEventCallback")||(o.registerWheelEventCallback=function(){je("'registerWheelEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerUiEventCallback")||(o.registerUiEventCallback=function(){je("'registerUiEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerFocusEventCallback")||(o.registerFocusEventCallback=function(){je("'registerFocusEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillDeviceOrientationEventData")||(o.fillDeviceOrientationEventData=function(){je("'fillDeviceOrientationEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerDeviceOrientationEventCallback")||(o.registerDeviceOrientationEventCallback=function(){je("'registerDeviceOrientationEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillDeviceMotionEventData")||(o.fillDeviceMotionEventData=function(){je("'fillDeviceMotionEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerDeviceMotionEventCallback")||(o.registerDeviceMotionEventCallback=function(){je("'registerDeviceMotionEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"screenOrientation")||(o.screenOrientation=function(){je("'screenOrientation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillOrientationChangeEventData")||(o.fillOrientationChangeEventData=function(){je("'fillOrientationChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerOrientationChangeEventCallback")||(o.registerOrientationChangeEventCallback=function(){je("'registerOrientationChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillFullscreenChangeEventData")||(o.fillFullscreenChangeEventData=function(){je("'fillFullscreenChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerFullscreenChangeEventCallback")||(o.registerFullscreenChangeEventCallback=function(){je("'registerFullscreenChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerRestoreOldStyle")||(o.registerRestoreOldStyle=function(){je("'registerRestoreOldStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"hideEverythingExceptGivenElement")||(o.hideEverythingExceptGivenElement=function(){je("'hideEverythingExceptGivenElement' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"restoreHiddenElements")||(o.restoreHiddenElements=function(){je("'restoreHiddenElements' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setLetterbox")||(o.setLetterbox=function(){je("'setLetterbox' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"currentFullscreenStrategy")||(o.currentFullscreenStrategy=function(){je("'currentFullscreenStrategy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"restoreOldWindowedStyle")||(o.restoreOldWindowedStyle=function(){je("'restoreOldWindowedStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"softFullscreenResizeWebGLRenderTarget")||(o.softFullscreenResizeWebGLRenderTarget=function(){je("'softFullscreenResizeWebGLRenderTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"doRequestFullscreen")||(o.doRequestFullscreen=function(){je("'doRequestFullscreen' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillPointerlockChangeEventData")||(o.fillPointerlockChangeEventData=function(){je("'fillPointerlockChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerPointerlockChangeEventCallback")||(o.registerPointerlockChangeEventCallback=function(){je("'registerPointerlockChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerPointerlockErrorEventCallback")||(o.registerPointerlockErrorEventCallback=function(){je("'registerPointerlockErrorEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"requestPointerLock")||(o.requestPointerLock=function(){je("'requestPointerLock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillVisibilityChangeEventData")||(o.fillVisibilityChangeEventData=function(){je("'fillVisibilityChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerVisibilityChangeEventCallback")||(o.registerVisibilityChangeEventCallback=function(){je("'registerVisibilityChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerTouchEventCallback")||(o.registerTouchEventCallback=function(){je("'registerTouchEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillGamepadEventData")||(o.fillGamepadEventData=function(){je("'fillGamepadEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerGamepadEventCallback")||(o.registerGamepadEventCallback=function(){je("'registerGamepadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerBeforeUnloadEventCallback")||(o.registerBeforeUnloadEventCallback=function(){je("'registerBeforeUnloadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillBatteryEventData")||(o.fillBatteryEventData=function(){je("'fillBatteryEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"battery")||(o.battery=function(){je("'battery' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerBatteryEventCallback")||(o.registerBatteryEventCallback=function(){je("'registerBatteryEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setCanvasElementSize")||(o.setCanvasElementSize=function(){je("'setCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getCanvasElementSize")||(o.getCanvasElementSize=function(){je("'getCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"polyfillSetImmediate")||(o.polyfillSetImmediate=function(){je("'polyfillSetImmediate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"demangle")||(o.demangle=function(){je("'demangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"demangleAll")||(o.demangleAll=function(){je("'demangleAll' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"jsStackTrace")||(o.jsStackTrace=function(){je("'jsStackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stackTrace")||(o.stackTrace=function(){je("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getEnvStrings")||(o.getEnvStrings=function(){je("'getEnvStrings' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"checkWasiClock")||(o.checkWasiClock=function(){je("'checkWasiClock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"flush_NO_FILESYSTEM")||(o.flush_NO_FILESYSTEM=function(){je("'flush_NO_FILESYSTEM' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeI53ToI64")||(o.writeI53ToI64=function(){je("'writeI53ToI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeI53ToI64Clamped")||(o.writeI53ToI64Clamped=function(){je("'writeI53ToI64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeI53ToI64Signaling")||(o.writeI53ToI64Signaling=function(){je("'writeI53ToI64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeI53ToU64Clamped")||(o.writeI53ToU64Clamped=function(){je("'writeI53ToU64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeI53ToU64Signaling")||(o.writeI53ToU64Signaling=function(){je("'writeI53ToU64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readI53FromI64")||(o.readI53FromI64=function(){je("'readI53FromI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readI53FromU64")||(o.readI53FromU64=function(){je("'readI53FromU64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"convertI32PairToI53")||(o.convertI32PairToI53=function(){je("'convertI32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"convertU32PairToI53")||(o.convertU32PairToI53=function(){je("'convertU32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"uncaughtExceptionCount")||(o.uncaughtExceptionCount=function(){je("'uncaughtExceptionCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"exceptionLast")||(o.exceptionLast=function(){je("'exceptionLast' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"exceptionCaught")||(o.exceptionCaught=function(){je("'exceptionCaught' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ExceptionInfo")||(o.ExceptionInfo=function(){je("'ExceptionInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"CatchInfo")||(o.CatchInfo=function(){je("'CatchInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"exception_addRef")||(o.exception_addRef=function(){je("'exception_addRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"exception_decRef")||(o.exception_decRef=function(){je("'exception_decRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"Browser")||(o.Browser=function(){je("'Browser' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"funcWrappers")||(o.funcWrappers=function(){je("'funcWrappers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getFuncWrapper")||(o.getFuncWrapper=function(){je("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setMainLoop")||(o.setMainLoop=function(){je("'setMainLoop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"wget")||(o.wget=function(){je("'wget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"FS")||(o.FS=function(){je("'FS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"MEMFS")||(o.MEMFS=function(){je("'MEMFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"TTY")||(o.TTY=function(){je("'TTY' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"PIPEFS")||(o.PIPEFS=function(){je("'PIPEFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SOCKFS")||(o.SOCKFS=function(){je("'SOCKFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"_setNetworkCallback")||(o._setNetworkCallback=function(){je("'_setNetworkCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"tempFixedLengthArray")||(o.tempFixedLengthArray=function(){je("'tempFixedLengthArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"miniTempWebGLFloatBuffers")||(o.miniTempWebGLFloatBuffers=function(){je("'miniTempWebGLFloatBuffers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"heapObjectForWebGLType")||(o.heapObjectForWebGLType=function(){je("'heapObjectForWebGLType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"heapAccessShiftForWebGLHeap")||(o.heapAccessShiftForWebGLHeap=function(){je("'heapAccessShiftForWebGLHeap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GL")||(o.GL=function(){je("'GL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGet")||(o.emscriptenWebGLGet=function(){je("'emscriptenWebGLGet' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"computeUnpackAlignedImageSize")||(o.computeUnpackAlignedImageSize=function(){je("'computeUnpackAlignedImageSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetTexPixelData")||(o.emscriptenWebGLGetTexPixelData=function(){je("'emscriptenWebGLGetTexPixelData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetUniform")||(o.emscriptenWebGLGetUniform=function(){je("'emscriptenWebGLGetUniform' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"webglGetUniformLocation")||(o.webglGetUniformLocation=function(){je("'webglGetUniformLocation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"webglPrepareUniformLocationsBeforeFirstUse")||(o.webglPrepareUniformLocationsBeforeFirstUse=function(){je("'webglPrepareUniformLocationsBeforeFirstUse' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"webglGetLeftBracePos")||(o.webglGetLeftBracePos=function(){je("'webglGetLeftBracePos' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetVertexAttrib")||(o.emscriptenWebGLGetVertexAttrib=function(){je("'emscriptenWebGLGetVertexAttrib' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeGLArray")||(o.writeGLArray=function(){je("'writeGLArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"AL")||(o.AL=function(){je("'AL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SDL_unicode")||(o.SDL_unicode=function(){je("'SDL_unicode' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SDL_ttfContext")||(o.SDL_ttfContext=function(){je("'SDL_ttfContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SDL_audio")||(o.SDL_audio=function(){je("'SDL_audio' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SDL")||(o.SDL=function(){je("'SDL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SDL_gfx")||(o.SDL_gfx=function(){je("'SDL_gfx' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GLUT")||(o.GLUT=function(){je("'GLUT' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"EGL")||(o.EGL=function(){je("'EGL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GLFW_Window")||(o.GLFW_Window=function(){je("'GLFW_Window' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GLFW")||(o.GLFW=function(){je("'GLFW' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GLEW")||(o.GLEW=function(){je("'GLEW' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"IDBStore")||(o.IDBStore=function(){je("'IDBStore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"runAndAbortIfError")||(o.runAndAbortIfError=function(){je("'runAndAbortIfError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_handle_array")||(o.emval_handle_array=function(){je("'emval_handle_array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_free_list")||(o.emval_free_list=function(){je("'emval_free_list' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_symbols")||(o.emval_symbols=function(){je("'emval_symbols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"init_emval")||(o.init_emval=function(){je("'init_emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"count_emval_handles")||(o.count_emval_handles=function(){je("'count_emval_handles' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"get_first_emval")||(o.get_first_emval=function(){je("'get_first_emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getStringOrSymbol")||(o.getStringOrSymbol=function(){je("'getStringOrSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"requireHandle")||(o.requireHandle=function(){je("'requireHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_newers")||(o.emval_newers=function(){je("'emval_newers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"craftEmvalAllocator")||(o.craftEmvalAllocator=function(){je("'craftEmvalAllocator' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_get_global")||(o.emval_get_global=function(){je("'emval_get_global' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_methodCallers")||(o.emval_methodCallers=function(){je("'emval_methodCallers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"InternalError")||(o.InternalError=function(){je("'InternalError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"BindingError")||(o.BindingError=function(){je("'BindingError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UnboundTypeError")||(o.UnboundTypeError=function(){je("'UnboundTypeError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"PureVirtualError")||(o.PureVirtualError=function(){je("'PureVirtualError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"init_embind")||(o.init_embind=function(){je("'init_embind' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"throwInternalError")||(o.throwInternalError=function(){je("'throwInternalError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"throwBindingError")||(o.throwBindingError=function(){je("'throwBindingError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"throwUnboundTypeError")||(o.throwUnboundTypeError=function(){je("'throwUnboundTypeError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ensureOverloadTable")||(o.ensureOverloadTable=function(){je("'ensureOverloadTable' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"exposePublicSymbol")||(o.exposePublicSymbol=function(){je("'exposePublicSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"replacePublicSymbol")||(o.replacePublicSymbol=function(){je("'replacePublicSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"extendError")||(o.extendError=function(){je("'extendError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"createNamedFunction")||(o.createNamedFunction=function(){je("'createNamedFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registeredInstances")||(o.registeredInstances=function(){je("'registeredInstances' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getBasestPointer")||(o.getBasestPointer=function(){je("'getBasestPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerInheritedInstance")||(o.registerInheritedInstance=function(){je("'registerInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"unregisterInheritedInstance")||(o.unregisterInheritedInstance=function(){je("'unregisterInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getInheritedInstance")||(o.getInheritedInstance=function(){je("'getInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getInheritedInstanceCount")||(o.getInheritedInstanceCount=function(){je("'getInheritedInstanceCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getLiveInheritedInstances")||(o.getLiveInheritedInstances=function(){je("'getLiveInheritedInstances' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registeredTypes")||(o.registeredTypes=function(){je("'registeredTypes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"awaitingDependencies")||(o.awaitingDependencies=function(){je("'awaitingDependencies' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"typeDependencies")||(o.typeDependencies=function(){je("'typeDependencies' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registeredPointers")||(o.registeredPointers=function(){je("'registeredPointers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerType")||(o.registerType=function(){je("'registerType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"whenDependentTypesAreResolved")||(o.whenDependentTypesAreResolved=function(){je("'whenDependentTypesAreResolved' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"embind_charCodes")||(o.embind_charCodes=function(){je("'embind_charCodes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"embind_init_charCodes")||(o.embind_init_charCodes=function(){je("'embind_init_charCodes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readLatin1String")||(o.readLatin1String=function(){je("'readLatin1String' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getTypeName")||(o.getTypeName=function(){je("'getTypeName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"heap32VectorToArray")||(o.heap32VectorToArray=function(){je("'heap32VectorToArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"requireRegisteredType")||(o.requireRegisteredType=function(){je("'requireRegisteredType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getShiftFromSize")||(o.getShiftFromSize=function(){je("'getShiftFromSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"integerReadValueFromPointer")||(o.integerReadValueFromPointer=function(){je("'integerReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"enumReadValueFromPointer")||(o.enumReadValueFromPointer=function(){je("'enumReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"floatReadValueFromPointer")||(o.floatReadValueFromPointer=function(){je("'floatReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"simpleReadValueFromPointer")||(o.simpleReadValueFromPointer=function(){je("'simpleReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"runDestructors")||(o.runDestructors=function(){je("'runDestructors' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"new_")||(o.new_=function(){je("'new_' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"craftInvokerFunction")||(o.craftInvokerFunction=function(){je("'craftInvokerFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"embind__requireFunction")||(o.embind__requireFunction=function(){je("'embind__requireFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"tupleRegistrations")||(o.tupleRegistrations=function(){je("'tupleRegistrations' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"structRegistrations")||(o.structRegistrations=function(){je("'structRegistrations' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"genericPointerToWireType")||(o.genericPointerToWireType=function(){je("'genericPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"constNoSmartPtrRawPointerToWireType")||(o.constNoSmartPtrRawPointerToWireType=function(){je("'constNoSmartPtrRawPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"nonConstNoSmartPtrRawPointerToWireType")||(o.nonConstNoSmartPtrRawPointerToWireType=function(){je("'nonConstNoSmartPtrRawPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"init_RegisteredPointer")||(o.init_RegisteredPointer=function(){je("'init_RegisteredPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredPointer")||(o.RegisteredPointer=function(){je("'RegisteredPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_getPointee")||(o.RegisteredPointer_getPointee=function(){je("'RegisteredPointer_getPointee' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_destructor")||(o.RegisteredPointer_destructor=function(){je("'RegisteredPointer_destructor' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_deleteObject")||(o.RegisteredPointer_deleteObject=function(){je("'RegisteredPointer_deleteObject' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_fromWireType")||(o.RegisteredPointer_fromWireType=function(){je("'RegisteredPointer_fromWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"runDestructor")||(o.runDestructor=function(){je("'runDestructor' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"releaseClassHandle")||(o.releaseClassHandle=function(){je("'releaseClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"finalizationGroup")||(o.finalizationGroup=function(){je("'finalizationGroup' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"detachFinalizer_deps")||(o.detachFinalizer_deps=function(){je("'detachFinalizer_deps' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"detachFinalizer")||(o.detachFinalizer=function(){je("'detachFinalizer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"attachFinalizer")||(o.attachFinalizer=function(){je("'attachFinalizer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"makeClassHandle")||(o.makeClassHandle=function(){je("'makeClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"init_ClassHandle")||(o.init_ClassHandle=function(){je("'init_ClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle")||(o.ClassHandle=function(){je("'ClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle_isAliasOf")||(o.ClassHandle_isAliasOf=function(){je("'ClassHandle_isAliasOf' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"throwInstanceAlreadyDeleted")||(o.throwInstanceAlreadyDeleted=function(){je("'throwInstanceAlreadyDeleted' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle_clone")||(o.ClassHandle_clone=function(){je("'ClassHandle_clone' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle_delete")||(o.ClassHandle_delete=function(){je("'ClassHandle_delete' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"deletionQueue")||(o.deletionQueue=function(){je("'deletionQueue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle_isDeleted")||(o.ClassHandle_isDeleted=function(){je("'ClassHandle_isDeleted' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle_deleteLater")||(o.ClassHandle_deleteLater=function(){je("'ClassHandle_deleteLater' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"flushPendingDeletes")||(o.flushPendingDeletes=function(){je("'flushPendingDeletes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"delayFunction")||(o.delayFunction=function(){je("'delayFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setDelayFunction")||(o.setDelayFunction=function(){je("'setDelayFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredClass")||(o.RegisteredClass=function(){je("'RegisteredClass' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"shallowCopyInternalPointer")||(o.shallowCopyInternalPointer=function(){je("'shallowCopyInternalPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"downcastPointer")||(o.downcastPointer=function(){je("'downcastPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"upcastPointer")||(o.upcastPointer=function(){je("'upcastPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"validateThis")||(o.validateThis=function(){je("'validateThis' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"char_0")||(o.char_0=function(){je("'char_0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"char_9")||(o.char_9=function(){je("'char_9' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"makeLegalFunctionName")||(o.makeLegalFunctionName=function(){je("'makeLegalFunctionName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"warnOnce")||(o.warnOnce=function(){je("'warnOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stackSave")||(o.stackSave=function(){je("'stackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stackRestore")||(o.stackRestore=function(){je("'stackRestore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stackAlloc")||(o.stackAlloc=function(){je("'stackAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"AsciiToString")||(o.AsciiToString=function(){je("'AsciiToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToAscii")||(o.stringToAscii=function(){je("'stringToAscii' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UTF16ToString")||(o.UTF16ToString=function(){je("'UTF16ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToUTF16")||(o.stringToUTF16=function(){je("'stringToUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"lengthBytesUTF16")||(o.lengthBytesUTF16=function(){je("'lengthBytesUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UTF32ToString")||(o.UTF32ToString=function(){je("'UTF32ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToUTF32")||(o.stringToUTF32=function(){je("'stringToUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"lengthBytesUTF32")||(o.lengthBytesUTF32=function(){je("'lengthBytesUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"allocateUTF8")||(o.allocateUTF8=function(){je("'allocateUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"allocateUTF8OnStack")||(o.allocateUTF8OnStack=function(){je("'allocateUTF8OnStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),o.writeStackCookie=le,o.checkStackCookie=Ee,Object.getOwnPropertyDescriptor(o,"ALLOC_NORMAL")||Object.defineProperty(o,"ALLOC_NORMAL",{configurable:!0,get:function(){je("'ALLOC_NORMAL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(o,"ALLOC_STACK")||Object.defineProperty(o,"ALLOC_STACK",{configurable:!0,get:function(){je("'ALLOC_STACK' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}});function xr(){br(),le()}function Nr(e){function t(){_r||(_r=!0,o.calledRun=!0,U||(ye(),r(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),x(!o._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'),be()))}e=e||s,me>0||(xr(),we(),me>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),t()}),1)):t(),Ee()))}if(Ae=function e(){_r||Nr(),_r||(Ae=e)},o.run=Nr,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Nr(),t.ready}}();"object"==typeof exports&&"object"==typeof module?module.exports=AcuantInitializerModule:"function"==typeof define&&define.amd?define([],(function(){return AcuantInitializerModule})):"object"==typeof exports&&(exports.AcuantInitializerModule=AcuantInitializerModule); \ No newline at end of file diff --git a/public/acuant/11.5.1/AcuantInitializerService.wasm b/public/acuant/11.5.1/AcuantInitializerService.wasm new file mode 100755 index 00000000000..a11449fafd8 Binary files /dev/null and b/public/acuant/11.5.1/AcuantInitializerService.wasm differ diff --git a/public/acuant/11.5.1/AcuantInitializerWorker.min.js b/public/acuant/11.5.1/AcuantInitializerWorker.min.js new file mode 100644 index 00000000000..dd7f1fd9278 --- /dev/null +++ b/public/acuant/11.5.1/AcuantInitializerWorker.min.js @@ -0,0 +1 @@ +"use strict";importScripts("AcuantInitializerService.min.js"),AcuantInitializerModule().then((i=>{let e=i.addFunction(n,"vi");function n(i){postMessage({func:"initialize",status:i})}onmessage=t=>{if(t&&t.data)if("initialize"===t.data.func){let a=t.data.data;a.creds&&a.endpoint?i.ccall("initialize",null,["string","string","number"],[a.creds,a.endpoint,e]):(console.error("missing params"),n(6))}else if("initializeWithToken"===t.data.func){let a=t.data.data;a.token&&a.endpoint?i.ccall("initializeWithToken",null,["string","string","number"],[a.token,a.endpoint,e]):(console.error("missing params"),n(6))}else console.error("called with no func specified"),n(7)},postMessage({initializerWorker:"started"})})); \ No newline at end of file diff --git a/public/acuant/11.5.1/AcuantJavascriptWebSdk.min.js b/public/acuant/11.5.1/AcuantJavascriptWebSdk.min.js new file mode 100644 index 00000000000..e8feb890cf9 --- /dev/null +++ b/public/acuant/11.5.1/AcuantJavascriptWebSdk.min.js @@ -0,0 +1 @@ +var AcuantConfig=function(){"use strict";return{acuantVersion:"11.5.1",cvmlVersion:"4.3.4"}}(),config={};"undefined"!=typeof acuantConfig&&0!==Object.keys(acuantConfig).length&&acuantConfig.constructor===Object&&(config=acuantConfig),document.addEventListener("DOMContentLoaded",(function(){void 0===AcuantJavascriptWebSdk&&loadAcuantSdk(),document.removeEventListener("DOMContentLoaded",this)}));var AcuantJavascriptWebSdk=void 0;function loadAcuantSdk(){AcuantJavascriptWebSdk=function(e){var t={ACUANT_IMAGE_WORKER:"AcuantImageWorker",ACUANT_METRICS_WORKER:"AcuantMetricsWorker",SEQUENCE_BREAK_CODE:SEQUENCE_BREAK_CODE="sequence-break",START_FAIL_CODE:START_FAIL_CODE="start-fail",REPEAT_FAIL_CODE:REPEAT_FAIL_CODE="repeat-fail",startInitializer:function(t,n=0){if(t){if(!d){b(i,t);let a=null;e&&e.cdnPath&&e.cdnPath.initializerUrl?a=e.cdnPath.initializerUrl:e.path&&(a=e.path),d=new Worker(W(a,"AcuantInitializerWorker.min.js",n)),d.onmessage=E}}else T("startInitializer did not have a user callback set")},endInitializer:function(){d&&(d.terminate(),d.onmessage=null,h=!1,d=null)},startWorkers:function(t,i=[this.ACUANT_IMAGE_WORKER,this.ACUANT_METRICS_WORKER],a=0){if(t){if(b(n,t),i.includes(this.ACUANT_IMAGE_WORKER)&&!f){let t=null;e&&e.cdnPath&&e.cdnPath.imageUrl?t=e.cdnPath.imageUrl:e.path&&(t=e.path),A++,f=new Worker(W(t,"AcuantImageWorker.min.js",a)),f.onmessage=v}if(i.includes(this.ACUANT_METRICS_WORKER)&&!m){let t=null;e&&e.cdnPath&&e.cdnPath.metricsUrl?t=e.cdnPath.metricsUrl:e.path&&(t=e.path),A++,m=new Worker(W(t,"AcuantMetricsWorker.min.js",a)),m.onmessage=w}}else T("startWorkers did not have a user callback set")},endWorkers:function(e=[this.ACUANT_IMAGE_WORKER,this.ACUANT_METRICS_WORKER]){e.includes(this.ACUANT_IMAGE_WORKER)&&f&&(f.terminate(),f.onmessage=null,g=!1,f=null),e.includes(this.ACUANT_METRICS_WORKER)&&m&&(m.terminate(),m.onmessage=null,k=!1,m=null)},initialize:function(e,t,i,n=0){i?(b(a,i),d?x(d,"initialize",{creds:e,endpoint:t}):this.startInitializer((()=>{x(d,"initialize",{creds:e,endpoint:t})}),n)):T("initialize did not have a user callback set")},initializeWithToken:function(e,t,i,n=0){i?(b(a,i),d?x(d,"initializeWithToken",{token:e,endpoint:t}):this.startInitializer((()=>{x(d,"initializeWithToken",{token:e,endpoint:t})}),n)):T("initializeWithToken did not have a user callback set")},crop:function(e,t,i,n){n?g&&null!=e?(b(r,n),x(f,"crop",{imgData:e.data,width:t,height:i})):n.onFail():T("crop did not have a user callback set")},detect:function(e,t,i,n){n?g&&null!=e?(b(o,n),x(f,"detect",{imgData:e.data,width:t,height:i})):n.onFail():T("detect did not have a user callback set")},metrics:function(e,t,i,n){n?k&&null!=e?(b(c,n),x(m,"metrics",{imgData:e.data,width:t,height:i})):n.onFail():T("metrics did not have a user callback set")},moire:function(e,t,i,n){n?k&&null!=e?(b(s,n),x(m,"moire",{imgData:e.data,width:t,height:i})):n.onFail():T("moire did not have a user callback set")},setUnexpectedErrorCallback:function(e){b(l,e)}};const i="initStart",n="workersStart",a="init",r="crop",o="detect",c="metrics",s="moire",l="unexpectedError";let u=!1,d=null,h=!1,f=null,g=!1,m=null,k=!1,A=0,p={},y={};function E(e){if(u=!1,e){let r=e.data;if(h)if(r&&"initialize"===r.func){let e=r.status;var n=p[a];t.endInitializer(),n?1==e?(u=!0,n.onSuccess()):n.onFail(e,function(e){switch(e){case 401:return"Server returned a 401 (missing credentials).";case 403:return"Server returned a 403 (invalid credentials).";case 400:return"Server returned a 400.";case 2:return"Token Validation Failed (Recieved token, but token was null/corrupt).";case 3:return"Token Validation Failed (Recieved token, but token was missing part of body).";case 4:return"Token Validation Failed (Recieved token, but token body was missing fields).";case 5:return"Token Validation Failed (Recieved token, but token body failed validation).";case 6:return"At least one param was null/invalid.";case 7:return"Incorrectly formatted message to worker.";default:return"Unexpected error code."}}(e)):T("initialize did not have a user callback set")}else T("initworker sent message without correct function tagging");else{h=!0;let e=p[i];e&&e()}}else T("initworker sent message without anything in the body")}function v(e){if(e){let i=e.data;if(g)if(i&&"detect"===i.func)(t=p[o])?i.type&&i.x1&&i.y1&&i.x2&&i.y2&&i.x3&&i.y3&&i.x4&&i.y4?function(e,t,i,n,a,r,o,c,s,l){if(l)if(-1==e)l.onFail();else{let u=function(e,t,i,n,a,r,o,c){let s={x:e,y:t},l={x:i,y:n},u={x:a,y:r},d={x:o,y:c},h=C(s,l),f=C(l,u),g=C(u,d),m=C(d,s),k=(h+g)/2,A=(f+m)/2;return k>A?{width:k,height:A}:{width:A,height:k}}(t,i,n,a,r,o,c,s),d=function(e,t){var i=!1;let n=5,a=1.42,r=1.5887;if(2==t){let t=(100+n)/100*a;e>=(100-n)/100*a&&e<=t&&(i=!0)}else if(1==t){let t=(100+n)/100*r;e>=(100-n)/100*r&&e<=t&&(i=!0)}return i}(u.width/u.height,e),h=_(u.width,u.height,2==e),f=function(e){var t=[-1,-1,-1,-1];e&&4===e.length&&(R(t,e[0],e[2]),R(t,e[1],e[3]));return t}([{x:t,y:i},{x:n,y:a},{x:r,y:o},{x:c,y:s}]);l.onSuccess({type:e,dimensions:u,dpi:h,isCorrectAspectRatio:d,points:f})}}(i.type,i.x1,i.y1,i.x2,i.y2,i.x3,i.y3,i.x4,i.y4,t):t.onFail():T("detect did not have a user callback set");else if("crop"===i.func){var t;(t=p[r])?i.imgData&&i.width&&i.height&&i.type?function(e,t,i,n,a){a&&(null!=e&&t>=0&&i>=0&&n>=0?(y={image:{data:e,width:t,height:i},cardtype:n,dpi:_(t,i,2==n)},a.onSuccess(y)):a.onFail())}(i.imgData,i.width,i.height,i.type,t):i.error?t.onFail(i.error):t.onFail():T("crop did not have a user callback set")}else T("imageworker sent message without correct function tagging");else g=!0,S()}else T("imageworker sent message without anything in the body")}function w(e){if(e){let i=e.data;if(k)if(i&&"metrics"===i.func)(t=p[c])?i.sharpness&&i.glare?function(e,t,i){if(i)if(t>=0&&e>=0){let n=Math.floor(100*e),a=Math.floor(100*t);i.onSuccess(n,a)}else i.onFail()}(i.sharpness,i.glare,t):i.error?t.onFail(i.error):t.onFail():T("metrics did not have a user callback set");else if("moire"===i.func){var t;(t=p[s])?i.moire&&i.moireraw?function(e,t,i){if(i)if(e>=0&&t>=0){let n=Math.floor(100*e),a=Math.floor(100*t);i.onSuccess(n,a)}else i.onFail()}(i.moire,i.moireraw,t):i.error?t.onFail(i.error):t.onFail():T("moire did not have a user callback set")}else T("metricsworker sent message without correct function tagging");else k=!0,S()}else T("metricsworker sent message without anything in the body")}function R(e,t,i){return t.xi.x&&t.y>i.y?(e[0]=i,e[2]=t):t.x>i.x&&t.yt?e:t,a=i?4.92:3.37;return Math.round(n/a)}function b(e,t){p[e]=t}function T(e){let t=p[l];t?e?t(e):t():console.error("Error: ",e)}function W(e,t,i){let n;return null!=e&&e.length>0&&0==i?(n="/"===e.charAt(e.length-1)?e:e+"/",n+=t):n=0!=i?e:t,n}function x(e,t,i){var n={func:t,data:i};i&&i.imgData&&i.imgData.data?e.postMessage(n,[n.data.imgData.data]):e.postMessage(n)}function S(){let e=p[n];A--,0==A&&e&&e()}return t}(config),"function"==typeof onAcuantSdkLoaded&&onAcuantSdkLoaded()} \ No newline at end of file diff --git a/public/acuant/11.5.1/AcuantMetricsService.min.js b/public/acuant/11.5.1/AcuantMetricsService.min.js new file mode 100644 index 00000000000..ca386449441 --- /dev/null +++ b/public/acuant/11.5.1/AcuantMetricsService.min.js @@ -0,0 +1 @@ +var AcuantMetricsModule=function(){var e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(e=e||__filename),function(t){var r,n,o;t=t||{},r||(r=void 0!==t?t:{}),r.ready=new Promise((function(e,t){n=e,o=t})),Object.getOwnPropertyDescriptor(r.ready,"_acuantMetrics")||(Object.defineProperty(r.ready,"_acuantMetrics",{configurable:!0,get:function(){ge("You are getting _acuantMetrics on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_acuantMetrics",{configurable:!0,set:function(){ge("You are setting _acuantMetrics on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_acuantMoire")||(Object.defineProperty(r.ready,"_acuantMoire",{configurable:!0,get:function(){ge("You are getting _acuantMoire on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_acuantMoire",{configurable:!0,set:function(){ge("You are setting _acuantMoire on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_emscripten_stack_get_end")||(Object.defineProperty(r.ready,"_emscripten_stack_get_end",{configurable:!0,get:function(){ge("You are getting _emscripten_stack_get_end on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_emscripten_stack_get_end",{configurable:!0,set:function(){ge("You are setting _emscripten_stack_get_end on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_emscripten_stack_get_free")||(Object.defineProperty(r.ready,"_emscripten_stack_get_free",{configurable:!0,get:function(){ge("You are getting _emscripten_stack_get_free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_emscripten_stack_get_free",{configurable:!0,set:function(){ge("You are setting _emscripten_stack_get_free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_emscripten_stack_init")||(Object.defineProperty(r.ready,"_emscripten_stack_init",{configurable:!0,get:function(){ge("You are getting _emscripten_stack_init on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_emscripten_stack_init",{configurable:!0,set:function(){ge("You are setting _emscripten_stack_init on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_stackSave")||(Object.defineProperty(r.ready,"_stackSave",{configurable:!0,get:function(){ge("You are getting _stackSave on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_stackSave",{configurable:!0,set:function(){ge("You are setting _stackSave on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_stackRestore")||(Object.defineProperty(r.ready,"_stackRestore",{configurable:!0,get:function(){ge("You are getting _stackRestore on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_stackRestore",{configurable:!0,set:function(){ge("You are setting _stackRestore on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_stackAlloc")||(Object.defineProperty(r.ready,"_stackAlloc",{configurable:!0,get:function(){ge("You are getting _stackAlloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_stackAlloc",{configurable:!0,set:function(){ge("You are setting _stackAlloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"___wasm_call_ctors")||(Object.defineProperty(r.ready,"___wasm_call_ctors",{configurable:!0,get:function(){ge("You are getting ___wasm_call_ctors on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"___wasm_call_ctors",{configurable:!0,set:function(){ge("You are setting ___wasm_call_ctors on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_fflush")||(Object.defineProperty(r.ready,"_fflush",{configurable:!0,get:function(){ge("You are getting _fflush on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_fflush",{configurable:!0,set:function(){ge("You are setting _fflush on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"___errno_location")||(Object.defineProperty(r.ready,"___errno_location",{configurable:!0,get:function(){ge("You are getting ___errno_location on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"___errno_location",{configurable:!0,set:function(){ge("You are setting ___errno_location on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_malloc")||(Object.defineProperty(r.ready,"_malloc",{configurable:!0,get:function(){ge("You are getting _malloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_malloc",{configurable:!0,set:function(){ge("You are setting _malloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_free")||(Object.defineProperty(r.ready,"_free",{configurable:!0,get:function(){ge("You are getting _free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_free",{configurable:!0,set:function(){ge("You are setting _free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"___cxa_is_pointer_type")||(Object.defineProperty(r.ready,"___cxa_is_pointer_type",{configurable:!0,get:function(){ge("You are getting ___cxa_is_pointer_type on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"___cxa_is_pointer_type",{configurable:!0,set:function(){ge("You are setting ___cxa_is_pointer_type on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"___cxa_can_catch")||(Object.defineProperty(r.ready,"___cxa_can_catch",{configurable:!0,get:function(){ge("You are getting ___cxa_can_catch on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"___cxa_can_catch",{configurable:!0,set:function(){ge("You are setting ___cxa_can_catch on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"_setThrew")||(Object.defineProperty(r.ready,"_setThrew",{configurable:!0,get:function(){ge("You are getting _setThrew on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"_setThrew",{configurable:!0,set:function(){ge("You are setting _setThrew on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"___getTypeName")||(Object.defineProperty(r.ready,"___getTypeName",{configurable:!0,get:function(){ge("You are getting ___getTypeName on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"___getTypeName",{configurable:!0,set:function(){ge("You are setting ___getTypeName on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"___embind_register_native_and_builtin_types")||(Object.defineProperty(r.ready,"___embind_register_native_and_builtin_types",{configurable:!0,get:function(){ge("You are getting ___embind_register_native_and_builtin_types on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"___embind_register_native_and_builtin_types",{configurable:!0,set:function(){ge("You are setting ___embind_register_native_and_builtin_types on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(r.ready,"onRuntimeInitialized")||(Object.defineProperty(r.ready,"onRuntimeInitialized",{configurable:!0,get:function(){ge("You are getting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(r.ready,"onRuntimeInitialized",{configurable:!0,set:function(){ge("You are setting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}));var i,a={};for(i in r)r.hasOwnProperty(i)&&(a[i]=r[i]);var s="./this.program",c="object"==typeof window,d="function"==typeof importScripts,u="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,p=!c&&!u&&!d;if(r.ENVIRONMENT)throw Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -s ENVIRONMENT=web or -s ENVIRONMENT=node)");var l,E,f,O,h,g="";if(u){if("object"!=typeof process||"function"!=typeof require)throw Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");g=d?require("path").dirname(g)+"/":__dirname+"/",l=function(e,t){return O||(O=require("fs")),h||(h=require("path")),e=h.normalize(e),O.readFileSync(e,t?null:"utf8")},f=function(e){return(e=l(e,!0)).buffer||(e=new Uint8Array(e)),v(e.buffer),e},E=function(e,t,r){O||(O=require("fs")),h||(h=require("path")),e=h.normalize(e),O.readFile(e,(function(e,n){e?r(e):t(n.buffer)}))},1=n);)++r;if(16o?n+=String.fromCharCode(o):(o-=65536,n+=String.fromCharCode(55296|o>>10,56320|1023&o))}}else n+=String.fromCharCode(o)}return n}function F(e,t){return e?A(k,e,t):""}function I(e,t,r,n){if(!(0=a)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i);if(127>=a){if(r>=n)break;t[r++]=a}else{if(2047>=a){if(r+1>=n)break;t[r++]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;t[r++]=224|a>>12}else{if(r+3>=n)break;1114111>18,t[r++]=128|a>>12&63}t[r++]=128|a>>6&63}t[r++]=128|63&a}}return t[r]=0,r-o}function j(e,t,r){v("number"==typeof r,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),I(e,k,t,r)}function U(e){for(var t=0,r=0;r=n&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),127>=n?++t:t=2047>=n?t+2:65535>=n?t+3:t+4}return t}var N,x,k,H,C,X,Q,L,W,B="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function G(e,t){v(0==e%2,"Pointer passed to UTF16ToString must be aligned to two bytes!");for(var r=e>>1,n=r+t/2;!(r>=n)&&C[r];)++r;if(32<(r<<=1)-e&&B)return B.decode(k.subarray(e,r));for(r="",n=0;!(n>=t/2);++n){var o=H[e+2*n>>1];if(0==o)break;r+=String.fromCharCode(o)}return r}function Y(e,t,r){if(v(0==t%2,"Pointer passed to stringToUTF16 must be aligned to two bytes!"),v("number"==typeof r,"stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),2>r)return 0;var n=t;r=(r-=2)<2*e.length?r/2:e.length;for(var o=0;o>1]=e.charCodeAt(o),t+=2;return H[t>>1]=0,t-n}function V(e){return 2*e.length}function z(e,t){v(0==e%4,"Pointer passed to UTF32ToString must be aligned to four bytes!");for(var r=0,n="";!(r>=t/4);){var o=X[e+4*r>>2];if(0==o)break;++r,65536<=o?(o-=65536,n+=String.fromCharCode(55296|o>>10,56320|1023&o)):n+=String.fromCharCode(o)}return n}function Z(e,t,r){if(v(0==t%4,"Pointer passed to stringToUTF32 must be aligned to four bytes!"),v("number"==typeof r,"stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),4>r)return 0;var n=t;r=n+r-4;for(var o=0;o=i)i=65536+((1023&i)<<10)|1023&e.charCodeAt(++o);if(X[t>>2]=i,(t+=4)+4>r)break}return X[t>>2]=0,t-n}function q(e){for(var t=0,r=0;r=n&&++r,t+=4}return t}function K(e,t){v(0<=e.length,"writeArrayToMemory array must have a length (should be an array or typed array)"),x.set(e,t)}function J(){var e=M.buffer;N=e,r.HEAP8=x=new Int8Array(e),r.HEAP16=H=new Int16Array(e),r.HEAP32=X=new Int32Array(e),r.HEAPU8=k=new Uint8Array(e),r.HEAPU16=C=new Uint16Array(e),r.HEAPU32=Q=new Uint32Array(e),r.HEAPF32=L=new Float32Array(e),r.HEAPF64=W=new Float64Array(e)}r.TOTAL_STACK&&v(5242880===r.TOTAL_STACK,"the stack size can no longer be determined at runtime");var $,ee=r.INITIAL_MEMORY||16777216;function te(){var e=or();v(0==(3&e)),Q[1+(e>>2)]=34821223,Q[2+(e>>2)]=2310721022,X[0]=1668509029}function re(){if(!R){var e=or(),t=Q[1+(e>>2)];e=Q[2+(e>>2)],34821223==t&&2310721022==e||ge("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x"+e.toString(16)+" "+t.toString(16)),1668509029!==X[0]&&ge("Runtime error: The application has corrupted its heap memory area (address zero)!")}}Object.getOwnPropertyDescriptor(r,"INITIAL_MEMORY")||Object.defineProperty(r,"INITIAL_MEMORY",{configurable:!0,get:function(){ge("Module.INITIAL_MEMORY has been replaced with plain INITIAL_MEMORY (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),v(5242880<=ee,"INITIAL_MEMORY should be larger than TOTAL_STACK, was "+ee+"! (TOTAL_STACK=5242880)"),v("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support"),v(!r.wasmMemory,"Use of `wasmMemory` detected. Use -s IMPORTED_MEMORY to define wasmMemory externally"),v(16777216==ee,"Detected runtime INITIAL_MEMORY setting. Use -s IMPORTED_MEMORY to define wasmMemory dynamically");var ne=new Int16Array(1),oe=new Int8Array(ne.buffer);if(ne[0]=25459,115!==oe[0]||99!==oe[1])throw"Runtime error: expected the system to be little-endian! (Run with -s SUPPORT_BIG_ENDIAN=1 to bypass)";var ie=[],ae=[],se=[],ce=!1;function de(){var e=r.preRun.shift();ie.unshift(e)}v(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),v(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),v(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),v(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var ue,pe,le,Ee=0,fe=null,Oe=null,he={};function ge(e){r.onAbort&&r.onAbort(e),T(e),R=!0,e="abort("+e+") at ";e:{var t=Error();if(!t.stack){try{throw Error()}catch(e){t=e}if(!t.stack){t="(no stack trace available)";break e}}t=t.stack.toString()}throw r.extraStackTrace&&(t+="\n"+r.extraStackTrace()),t=be(t),e=new WebAssembly.RuntimeError(e+t),o(e),e}function _e(){return ue.startsWith("data:application/octet-stream;base64,")}function Te(e){return function(){var t=r.asm;return v(ce,"native function `"+e+"` called before runtime initialization"),v(!0,"native function `"+e+"` called after runtime exit (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),t[e]||v(t[e],"exported native function `"+e+"` not found"),t[e].apply(null,arguments)}}if(r.preloadedImages={},r.preloadedAudios={},ue="AcuantMetricsService.wasm",!_e()){var we=ue;ue=r.locateFile?r.locateFile(we,g):g+we}function De(){var e=ue;try{if(e==ue&&b)return new Uint8Array(b);if(f)return f(e);throw"both async and sync fetching of the wasm failed"}catch(e){ge(e)}}function ye(e){for(;0>2]=e},this.F=function(){return X[this.g+4>>2]},this.Ca=function(e){X[this.g+8>>2]=e},this.ra=function(){return X[this.g+8>>2]},this.Da=function(){X[this.g>>2]=0},this.$=function(e){x[this.g+12>>0]=e?1:0},this.qa=function(){return 0!=x[this.g+12>>0]},this.aa=function(e){x[this.g+13>>0]=e?1:0},this.ja=function(){return 0!=x[this.g+13>>0]},this.ua=function(e,t){this.Ea(e),this.Ca(t),this.Da(),this.$(!1),this.aa(!1)},this.na=function(){X[this.g>>2]=X[this.g>>2]+1},this.za=function(){var e=X[this.g>>2];return X[this.g>>2]=e-1,v(0>2]=e},this.L=function(){return X[this.g>>2]},this.H=function(e){X[this.g+4>>2]=e},this.K=function(){return this.g+4},this.pa=function(){return X[this.g+4>>2]},this.sa=function(){if(lr(this.O().F()))return X[this.L()>>2];var e=this.pa();return 0!==e?e:this.L()},this.O=function(){return new Pe(this.L())},void 0===e?(this.g=rr(8),this.H(0)):this.g=e}var Me=[],Re=0,ve=0;function Se(e){try{return nr(new Pe(e).g)}catch(e){T("exception during cxa_free_exception: "+e)}}function Ae(e,t){for(var r=0,n=e.length-1;0<=n;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e}function Fe(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=Ae(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function Ie(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."}function je(e){if("/"===e)return"/";var t=(e=(e=Fe(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)}function Ue(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=Ae(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."}var Ne=[];function xe(e,t){Ne[e]={input:[],output:[],G:t},dt(e,ke)}var ke={open:function(e){var t=Ne[e.node.rdev];if(!t)throw new Ze(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.G.flush(e.tty)},flush:function(e){e.tty.G.flush(e.tty)},read:function(e,t,r,n){if(!e.tty||!e.tty.G.ia)throw new Ze(60);for(var o=0,i=0;i=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=e.h,e.h=new Uint8Array(t),0=e.node.o)return 0;if(v(0<=(e=Math.min(e.node.o-o,n))),8t)throw new Ze(28);return t},ba:function(e,t,r){Xe.fa(e.node,t+r),e.node.o=Math.max(e.node.o,t+r)},ka:function(e,t,r,n,o,i){if(0!==t)throw new Ze(28);if(32768!=(61440&e.node.mode))throw new Ze(43);if(e=e.node.h,2&i||e.buffer!==N){if((0>>0)%Ve.length}function et(e,t){var r;if(r=(r=ot(e,"x"))?r:e.l.lookup?0:2)throw new Ze(r,e);for(r=Ve[$e(e.id,t)];r;r=r.xa){var n=r.name;if(r.parent.id===e.id&&n===t)return r}return e.l.lookup(e,t)}function tt(e,t,r,n){return v("object"==typeof e),t=$e((e=new Kt(e,t,r,n)).parent.id,e.name),e.xa=Ve[t],Ve[t]=e}var rt={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090};function nt(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t}function ot(e,t){return ze?0:!t.includes("r")||292&e.mode?t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0:2}function it(e,t){try{return et(e,t),20}catch(e){}return ot(e,"wx")}function at(e,t){Dt||((Dt=function(){}).prototype={});var r,n=new Dt;for(r in e)n[r]=e[r];return e=n,t=function(e){for(e=e||0;e<=4096;e++)if(!Ge[e])return e;throw new Ze(33)}(t),e.fd=t,Ge[t]=e}var st,ct={open:function(e){e.m=Be[e.node.rdev].m,e.m.open&&e.m.open(e)},D:function(){throw new Ze(70)}};function dt(e,t){Be[e]={m:t}}function ut(e,t){if("string"==typeof e)throw e;var r="/"===t,n=!t;if(r&&We)throw new Ze(10);if(!r&&!n){var o=Ke(t,{ha:!1});if(t=o.path,(o=o.node).R)throw new Ze(10);if(16384!=(61440&o.mode))throw new Ze(54)}t={type:e,Oa:{},la:t,wa:[]},(e=e.A(t)).A=t,t.root=e,r?We=e:o&&(o.R=t,o.A&&o.A.wa.push(t))}function pt(e,t,r){var n=Ke(e,{parent:!0}).node;if(!(e=je(e))||"."===e||".."===e)throw new Ze(28);var o=it(n,e);if(o)throw new Ze(o);if(!n.l.P)throw new Ze(63);return n.l.P(n,e,t,r)}function lt(e){return pt(e,16895,0)}function Et(e,t,r){void 0===r&&(r=t,t=438),pt(e,8192|t,r)}function ft(e,t){if(!Ue(e))throw new Ze(44);var r=Ke(t,{parent:!0}).node;if(!r)throw new Ze(44);var n=it(r,t=je(t));if(n)throw new Ze(n);if(!r.l.symlink)throw new Ze(63);r.l.symlink(r,t,e)}function Ot(e){if(!(e=Ke(e).node))throw new Ze(44);if(!e.l.readlink)throw new Ze(28);return Ue(Je(e.parent),e.l.readlink(e))}function ht(e,t,n,o){if(""===e)throw new Ze(44);if("string"==typeof t){var i=rt[t];if(void 0===i)throw Error("Unknown file open mode: "+t);t=i}if(n=64&t?4095&(void 0===n?438:n)|32768:0,"object"==typeof e)var a=e;else{e=Fe(e);try{a=Ke(e,{ga:!(131072&t)}).node}catch(e){}}if(i=!1,64&t)if(a){if(128&t)throw new Ze(20)}else a=pt(e,n,0),i=!0;if(!a)throw new Ze(44);if(8192==(61440&a.mode)&&(t&=-513),65536&t&&16384!=(61440&a.mode))throw new Ze(54);if(!i&&(n=a?40960==(61440&a.mode)?32:16384==(61440&a.mode)&&("r"!==nt(t)||512&t)?31:ot(a,nt(t)):44))throw new Ze(n);if(512&t){if(!(n="string"==typeof(n=a)?Ke(n,{ga:!0}).node:n).l.v)throw new Ze(63);if(16384==(61440&n.mode))throw new Ze(31);if(32768!=(61440&n.mode))throw new Ze(28);if(i=ot(n,"w"))throw new Ze(i);n.l.v(n,{size:0,timestamp:Date.now()})}return t&=-131713,(o=at({node:a,path:Je(a),flags:t,seekable:!0,position:0,m:a.m,Ja:[],error:!1},o)).m.open&&o.m.open(o),!r.logReadFiles||1&t||(yt||(yt={}),e in yt||(yt[e]=1)),o}function gt(e,t,r){if(null===e.fd)throw new Ze(8);if(!e.seekable||!e.m.D)throw new Ze(70);if(0!=r&&1!=r&&2!=r)throw new Ze(28);e.position=e.m.D(e,t,r),e.Ja=[]}function _t(){Ze||((Ze=function(e,t){this.node=t,this.Ba=function(e){for(var t in this.C=e,Le)if(Le[t]===e){this.code=t;break}},this.Ba(e),this.message=Qe[e],this.stack&&(Object.defineProperty(this,"stack",{value:Error().stack,writable:!0}),this.stack=be(this.stack))}).prototype=Error(),Ze.prototype.constructor=Ze,[44].forEach((function(e){qe[e]=new Ze(e),qe[e].stack=""})))}function Tt(e,t,r){e=Fe("/dev/"+e);var n=function(e,t){var r=0;return e&&(r|=365),t&&(r|=146),r}(!!t,!!r);wt||(wt=64);var o=wt++<<8|0;dt(o,{open:function(e){e.seekable=!1},close:function(){r&&r.buffer&&r.buffer.length&&r(10)},read:function(e,r,n,o){for(var i=0,a=0;a>2]}function Mt(e){if(!(e=Ge[e]))throw new Ze(8);return e}function Rt(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var vt=void 0;function St(e){for(var t="";k[e];)t+=vt[k[e++]];return t}var At={},Ft={},It={};function jt(e){var t=Error,r=function(e,t){if(void 0===e)e="_unknown";else{var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);e=48<=r&&57>=r?"_"+e:e}return new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}(e,(function(t){this.name=e,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var Ut=void 0;function Nt(e){throw new Ut(e)}function xt(e,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||Nt('type "'+n+'" must have a positive integer typeid pointer'),Ft.hasOwnProperty(e)){if(r.ta)return;Nt("Cannot register type '"+n+"' twice")}Ft[e]=t,delete It[e],At.hasOwnProperty(e)&&(t=At[e],delete At[e],t.forEach((function(e){e()})))}var kt=[],Ht=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Ct(e){return this.fromWireType(Q[e>>2])}function Xt(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function Qt(e,t){switch(t){case 2:return function(e){return this.fromWireType(L[e>>2])};case 3:return function(e){return this.fromWireType(W[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function Lt(e,t,r){switch(t){case 0:return r?function(e){return x[e]}:function(e){return k[e]};case 1:return r?function(e){return H[e>>1]}:function(e){return C[e>>1]};case 2:return r?function(e){return X[e>>2]}:function(e){return Q[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var Wt,Bt={};function Gt(){if(!Wt){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(e in Bt)void 0===Bt[e]?delete t[e]:t[e]=Bt[e];var r=[];for(e in t)r.push(e+"="+t[e]);Wt=r}return Wt}function Yt(e){return 0==e%4&&(0!=e%100||0==e%400)}function Vt(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}var zt=[31,29,31,30,31,30,31,31,30,31,30,31],Zt=[31,28,31,30,31,30,31,31,30,31,30,31];function qt(e,t){for(e=new Date(e.getTime());0n-e.getDate())){e.setDate(e.getDate()+t);break}t-=n-e.getDate()+1,e.setDate(1),11>r?e.setMonth(r+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return e}function Kt(e,t,r,n){e||(e=this),this.parent=e,this.A=e.A,this.R=null,this.id=Ye++,this.name=t,this.mode=r,this.l={},this.m={},this.rdev=n}Object.defineProperties(Kt.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}}}),_t(),Ve=Array(4096),ut(Xe,"/"),lt("/tmp"),lt("/home"),lt("/home/web_user"),function(){lt("/dev"),dt(259,{read:function(){return 0},write:function(e,t,r,n){return n}}),Et("/dev/null",259),xe(1280,He),xe(1536,Ce),Et("/dev/tty",1280),Et("/dev/tty1",1536);var e=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return function(){return crypto.getRandomValues(e),e[0]}}if(u)try{var t=require("crypto");return function(){return t.randomBytes(1)[0]}}catch(e){}return function(){ge("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };")}}();Tt("random",e),Tt("urandom",e),lt("/dev/shm"),lt("/dev/shm/tmp")}(),function(){lt("/proc");var e=lt("/proc/self");lt("/proc/self/fd"),ut({A:function(){var t=tt(e,"fd",16895,73);return t.l={lookup:function(e,t){var r=Ge[+t];if(!r)throw new Ze(8);return(e={parent:null,A:{la:"fake"},l:{readlink:function(){return r.path}}}).parent=e}},t}},"/proc/self/fd")}(),Le={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135};for(var Jt=Array(256),$t=0;256>$t;++$t)Jt[$t]=String.fromCharCode($t);function er(e,t){var r=Array(U(e)+1);return e=I(e,r,0,r.length),t&&(r.length=e),r}vt=Jt,Ut=r.BindingError=jt("BindingError"),r.InternalError=jt("InternalError"),r.count_emval_handles=function(){for(var e=0,t=5;to?-28:ht(n.path,n.flags,0,o).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:return o=mt(),n.flags|=o,0;case 12:return o=mt(),H[o+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return X[ir()>>2]=28,-1;default:return-28}}catch(e){return void 0!==bt&&e instanceof Ze||ge(e),-e.C}},__sys_ioctl:function(e,t,r){Pt=r;try{var n=Mt(e);switch(t){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var o=mt();return X[o>>2]=0;case 21520:return n.tty?-28:-59;case 21531:if(e=o=mt(),!n.m.va)throw new Ze(59);return n.m.va(n,t,e);case 21523:case 21524:return n.tty?0:-59;default:ge("bad ioctl syscall "+t)}}catch(e){return void 0!==bt&&e instanceof Ze||ge(e),-e.C}},__sys_open:function(e,t,r){Pt=r;try{return ht(F(e),t,r?mt():0).fd}catch(e){return void 0!==bt&&e instanceof Ze||ge(e),-e.C}},_embind_register_bigint:function(){},_embind_register_bool:function(e,t,r,n,o){var i=Rt(r);xt(e,{name:t=St(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:o},argPackAdvance:8,readValueFromPointer:function(e){if(1===r)var n=x;else if(2===r)n=H;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=X}return this.fromWireType(n[e>>i])},J:null})},_embind_register_emval:function(e,t){xt(e,{name:t=St(t),fromWireType:function(e){var t=Ht[e].value;return 4>>s}}var c=t.includes("unsigned");xt(e,{name:t,fromWireType:i,toWireType:function(e,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+Xt(r)+'" to '+this.name);if(ro)throw new TypeError('Passing a number "'+Xt(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+o+"]!");return c?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:Lt(t,a,0!==n),J:null})},_embind_register_memory_view:function(e,t,r){function n(e){var t=Q;return new o(N,t[(e>>=2)+1],t[e])}var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];xt(e,{name:r=St(r),fromWireType:n,argPackAdvance:8,readValueFromPointer:n},{ta:!0})},_embind_register_std_string:function(e,t){var r="std::string"===(t=St(t));xt(e,{name:t,fromWireType:function(e){var t=Q[e>>2];if(r)for(var n=e+4,o=0;o<=t;++o){var i=e+4+o;if(o==t||0==k[i]){if(n=F(n,i-n),void 0===a)var a=n;else a+=String.fromCharCode(0),a+=n;n=i+1}}else{for(a=Array(t),o=0;o>2]=o,r&&n)j(t,i+4,o+1);else if(n)for(n=0;n>2],i=a(),c=e+4,d=0;d<=o;++d){var u=e+4+d*t;d!=o&&0!=i[u>>s]||(c=n(c,u-c),void 0===r?r=c:(r+=String.fromCharCode(0),r+=c),c=u+t)}return nr(e),r},toWireType:function(e,n){"string"!=typeof n&&Nt("Cannot pass non-string to C++ string type "+r);var a=i(n),c=rr(4+a+t);return Q[c>>2]=a>>s,o(n,c+4,a+t),null!==e&&e.push(nr,c),c},argPackAdvance:8,readValueFromPointer:Ct,J:function(e){nr(e)}})},_embind_register_void:function(e,t){xt(e,{Na:!0,name:t=St(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},abort:function(){ge()},emscripten_memcpy_big:function(e,t,r){k.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t=k.length;if(v((e>>>=0)>t),2147483648=r;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+100663296),0<(n=Math.max(e,n))%65536&&(n+=65536-n%65536);e:{var o=n=Math.min(2147483648,n);try{M.grow(o-N.byteLength+65535>>>16),J();var i=1;break e}catch(e){T("emscripten_realloc_buffer: Attempted to grow heap from "+N.byteLength+" bytes to "+o+" bytes, but got error: "+e)}i=void 0}if(i)return!0}return T("Failed to grow the heap from "+t+" bytes to "+n+" bytes, not enough memory!"),!1},environ_get:function(e,t){var r=0;return Gt().forEach((function(n,o){var i=t+r;for(o=X[e+4*o>>2]=i,i=0;i>0]=n.charCodeAt(i);x[o>>0]=0,r+=n.length+1})),0},environ_sizes_get:function(e,t){var r=Gt();X[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),X[t>>2]=n,0},fd_close:function(e){try{var t=Mt(e);if(null===t.fd)throw new Ze(8);t.X&&(t.X=null);try{t.m.close&&t.m.close(t)}catch(e){throw e}finally{Ge[t.fd]=null}return t.fd=null,0}catch(e){return void 0!==bt&&e instanceof Ze||ge(e),e.C}},fd_read:function(e,t,r,n){try{e:{for(var o=Mt(e),i=e=0;i>2],s=o,c=X[t+8*i>>2],d=a,u=void 0,p=x;if(0>d||0>u)throw new Ze(28);if(null===s.fd)throw new Ze(8);if(1==(2097155&s.flags))throw new Ze(8);if(16384==(61440&s.node.mode))throw new Ze(31);if(!s.m.read)throw new Ze(28);var l=void 0!==u;if(l){if(!s.seekable)throw new Ze(70)}else u=s.position;var E=s.m.read(s,p,c,d,u);l||(s.position+=E);var f=E;if(0>f){var O=-1;break e}if(e+=f,f>2]=O,0}catch(e){return void 0!==bt&&e instanceof Ze||ge(e),e.C}},fd_seek:function(e,t,r,n,o){try{var i=Mt(e);return-9007199254740992>=(e=4294967296*r+(t>>>0))||9007199254740992<=e?-61:(gt(i,e,n),le=[i.position>>>0,(pe=i.position,1<=+Math.abs(pe)?0>>0:~~+Math.ceil((pe-+(~~pe>>>0))/4294967296)>>>0:0)],X[o>>2]=le[0],X[o+4>>2]=le[1],i.X&&0===e&&0===n&&(i.X=null),0)}catch(e){return void 0!==bt&&e instanceof Ze||ge(e),e.C}},fd_write:function(e,t,r,n){try{e:{for(var o=Mt(e),i=e=0;i>2],c=X[t+(8*i+4)>>2],d=void 0,u=x;if(0>c||0>d)throw new Ze(28);if(null===a.fd)throw new Ze(8);if(0==(2097155&a.flags))throw new Ze(8);if(16384==(61440&a.node.mode))throw new Ze(31);if(!a.m.write)throw new Ze(28);a.seekable&&1024&a.flags&>(a,0,2);var p=void 0!==d;if(p){if(!a.seekable)throw new Ze(70)}else d=a.position;var l=a.m.write(a,u,s,c,d,void 0);p||(a.position+=l);var E=l;if(0>E){var f=-1;break e}e+=E}f=e}return X[n>>2]=f,0}catch(e){return void 0!==bt&&e instanceof Ze||ge(e),e.C}},getTempRet0:function(){return m},invoke_ddd:function(e,t,r){var n=ar();try{return $.get(e)(t,r)}catch(e){if(sr(n),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_diii:function(e,t,r,n){var o=ar();try{return $.get(e)(t,r,n)}catch(e){if(sr(o),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_fii:function(e,t,r){var n=ar();try{return $.get(e)(t,r)}catch(e){if(sr(n),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_fiii:function(e,t,r,n){var o=ar();try{return $.get(e)(t,r,n)}catch(e){if(sr(o),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_fiiii:function(e,t,r,n,o){var i=ar();try{return $.get(e)(t,r,n,o)}catch(e){if(sr(i),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_fiiiiiiiii:function(e,t,r,n,o,i,a,s,c,d){var u=ar();try{return $.get(e)(t,r,n,o,i,a,s,c,d)}catch(e){if(sr(u),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_fiiiiiiiiii:function(e,t,r,n,o,i,a,s,c,d,u){var p=ar();try{return $.get(e)(t,r,n,o,i,a,s,c,d,u)}catch(e){if(sr(p),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_fiiiiiiiiiiiiiiii:function(e,t,r,n,o,i,a,s,c,d,u,p,l,E,f,O,h){var g=ar();try{return $.get(e)(t,r,n,o,i,a,s,c,d,u,p,l,E,f,O,h)}catch(e){if(sr(g),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_i:function(e){var t=ar();try{return $.get(e)()}catch(e){if(sr(t),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_id:function(e,t){var r=ar();try{return $.get(e)(t)}catch(e){if(sr(r),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_ii:function(e,t){var r=ar();try{return $.get(e)(t)}catch(e){if(sr(r),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iif:function(e,t,r){var n=ar();try{return $.get(e)(t,r)}catch(e){if(sr(n),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iii:function(e,t,r){var n=ar();try{return $.get(e)(t,r)}catch(e){if(sr(n),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iiii:function(e,t,r,n){var o=ar();try{return $.get(e)(t,r,n)}catch(e){if(sr(o),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iiiidi:function(e,t,r,n,o,i){var a=ar();try{return $.get(e)(t,r,n,o,i)}catch(e){if(sr(a),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iiiii:function(e,t,r,n,o){var i=ar();try{return $.get(e)(t,r,n,o)}catch(e){if(sr(i),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iiiiid:function(e,t,r,n,o,i){var a=ar();try{return $.get(e)(t,r,n,o,i)}catch(e){if(sr(a),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iiiiii:function(e,t,r,n,o,i){var a=ar();try{return $.get(e)(t,r,n,o,i)}catch(e){if(sr(a),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iiiiiii:function(e,t,r,n,o,i,a){var s=ar();try{return $.get(e)(t,r,n,o,i,a)}catch(e){if(sr(s),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iiiiiiii:function(e,t,r,n,o,i,a,s){var c=ar();try{return $.get(e)(t,r,n,o,i,a,s)}catch(e){if(sr(c),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iiiiiiiiiii:function(e,t,r,n,o,i,a,s,c,d,u){var p=ar();try{return $.get(e)(t,r,n,o,i,a,s,c,d,u)}catch(e){if(sr(p),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iiiiiiiiiiii:function(e,t,r,n,o,i,a,s,c,d,u,p){var l=ar();try{return $.get(e)(t,r,n,o,i,a,s,c,d,u,p)}catch(e){if(sr(l),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_iiiiiiiiiiiii:function(e,t,r,n,o,i,a,s,c,d,u,p,l){var E=ar();try{return $.get(e)(t,r,n,o,i,a,s,c,d,u,p,l)}catch(e){if(sr(E),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_jiiii:function(e,t,r,n,o){var i=ar();try{return fr(e,t,r,n,o)}catch(e){if(sr(i),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_v:function(e){var t=ar();try{$.get(e)()}catch(e){if(sr(t),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_vff:function(e,t,r){var n=ar();try{$.get(e)(t,r)}catch(e){if(sr(n),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_vi:function(e,t){var r=ar();try{$.get(e)(t)}catch(e){if(sr(r),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_vid:function(e,t,r){var n=ar();try{$.get(e)(t,r)}catch(e){if(sr(n),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_vii:function(e,t,r){var n=ar();try{$.get(e)(t,r)}catch(e){if(sr(n),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viid:function(e,t,r,n){var o=ar();try{$.get(e)(t,r,n)}catch(e){if(sr(o),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viif:function(e,t,r,n){var o=ar();try{$.get(e)(t,r,n)}catch(e){if(sr(o),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viii:function(e,t,r,n){var o=ar();try{$.get(e)(t,r,n)}catch(e){if(sr(o),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viiii:function(e,t,r,n,o){var i=ar();try{$.get(e)(t,r,n,o)}catch(e){if(sr(i),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viiiii:function(e,t,r,n,o,i){var a=ar();try{$.get(e)(t,r,n,o,i)}catch(e){if(sr(a),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viiiiii:function(e,t,r,n,o,i,a){var s=ar();try{$.get(e)(t,r,n,o,i,a)}catch(e){if(sr(s),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viiiiiii:function(e,t,r,n,o,i,a,s){var c=ar();try{$.get(e)(t,r,n,o,i,a,s)}catch(e){if(sr(c),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viiiiiiiii:function(e,t,r,n,o,i,a,s,c,d){var u=ar();try{$.get(e)(t,r,n,o,i,a,s,c,d)}catch(e){if(sr(u),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viiiiiiiiii:function(e,t,r,n,o,i,a,s,c,d,u){var p=ar();try{$.get(e)(t,r,n,o,i,a,s,c,d,u)}catch(e){if(sr(p),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viiiiiiiiiii:function(e,t,r,n,o,i,a,s,c,d,u,p){var l=ar();try{$.get(e)(t,r,n,o,i,a,s,c,d,u,p)}catch(e){if(sr(l),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},invoke_viiiiiiiiiiiiiii:function(e,t,r,n,o,i,a,s,c,d,u,p,l,E,f,O){var h=ar();try{$.get(e)(t,r,n,o,i,a,s,c,d,u,p,l,E,f,O)}catch(e){if(sr(h),e!==e+0&&"longjmp"!==e)throw e;ur(1,0)}},llvm_eh_typeid_for:function(e){return e},setTempRet0:function(e){m=e},strftime_l:function(e,t,r,n){return function(e,t,r,n){function o(e,t,r){for(e="number"==typeof e?e.toString():e||"";e.lengthe?-1:0=a(r,e)?0>=a(t,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var d=X[n+40>>2];for(var u in n={Ha:X[n>>2],Ga:X[n+4>>2],S:X[n+8>>2],N:X[n+12>>2],I:X[n+16>>2],s:X[n+20>>2],T:X[n+24>>2],U:X[n+28>>2],Pa:X[n+32>>2],Fa:X[n+36>>2],Ia:d?F(d):""},r=F(r),d={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})r=r.replace(new RegExp(u,"g"),d[u]);var p="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),l="January February March April May June July August September October November December".split(" ");for(u in d={"%a":function(e){return p[e.T].substring(0,3)},"%A":function(e){return p[e.T]},"%b":function(e){return l[e.I].substring(0,3)},"%B":function(e){return l[e.I]},"%C":function(e){return i((e.s+1900)/100|0,2)},"%d":function(e){return i(e.N,2)},"%e":function(e){return o(e.N,2," ")},"%g":function(e){return c(e).toString().substring(2)},"%G":function(e){return c(e)},"%H":function(e){return i(e.S,2)},"%I":function(e){return 0==(e=e.S)?e=12:12e.S?"AM":"PM"},"%S":function(e){return i(e.Ha,2)},"%t":function(){return"\t"},"%u":function(e){return e.T||7},"%U":function(e){var t=new Date(e.s+1900,0,1),r=0===t.getDay()?t:qt(t,7-t.getDay());return 0>a(r,e=new Date(e.s+1900,e.I,e.N))?i(Math.ceil((31-r.getDate()+(Vt(Yt(e.getFullYear())?zt:Zt,e.getMonth()-1)-31)+e.getDate())/7),2):0===a(r,t)?"01":"00"},"%V":function(e){var t=new Date(e.s+1901,0,4),r=s(new Date(e.s+1900,0,4));t=s(t);var n=qt(new Date(e.s+1900,0,1),e.U);return 0>a(n,r)?"53":0>=a(t,n)?"01":i(Math.ceil((r.getFullYear()a(r,e=new Date(e.s+1900,e.I,e.N))?i(Math.ceil((31-r.getDate()+(Vt(Yt(e.getFullYear())?zt:Zt,e.getMonth()-1)-31)+e.getDate())/7),2):0===a(r,t)?"01":"00"},"%y":function(e){return(e.s+1900).toString().substring(2)},"%Y":function(e){return e.s+1900},"%z":function(e){var t=0<=(e=e.Fa);return e=Math.abs(e)/60,(t?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":function(e){return e.Ia},"%%":function(){return"%"}})r.includes(u)&&(r=r.replace(new RegExp(u,"g"),d[u](n)));return(u=er(r,!1)).length>t?0:(K(u,e),u.length-1)}(e,t,r,n)}};!function(){function e(e){r.asm=e.exports,v(M=r.asm.memory,"memory not found in wasm exports"),J(),v($=r.asm.__indirect_function_table,"table not found in wasm exports"),ae.unshift(r.asm.__wasm_call_ctors),Ee--,r.monitorRunDependencies&&r.monitorRunDependencies(Ee),v(he["wasm-instantiate"]),delete he["wasm-instantiate"],0==Ee&&(null!==fe&&(clearInterval(fe),fe=null),Oe&&(e=Oe,Oe=null,e()))}function t(t){v(r===a,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),a=null,e(t.instance)}function n(e){return function(){if(!b&&(c||d)){if("function"==typeof fetch&&!ue.startsWith("file://"))return fetch(ue,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ue+"'";return e.arrayBuffer()})).catch((function(){return De()}));if(E)return new Promise((function(e,t){E(ue,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return De()}))}().then((function(e){return WebAssembly.instantiate(e,i)})).then((function(e){return e})).then(e,(function(e){T("failed to asynchronously prepare wasm: "+e),ue.startsWith("file://")&&T("warning: Loading from a file URI ("+ue+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing"),ge(e)}))}var i={env:tr,wasi_snapshot_preview1:tr};Ee++,r.monitorRunDependencies&&r.monitorRunDependencies(Ee),v(!he["wasm-instantiate"]),he["wasm-instantiate"]=1,null===fe&&"undefined"!=typeof setInterval&&(fe=setInterval((function(){if(R)clearInterval(fe),fe=null;else{var e,t=!1;for(e in he)t||(t=!0,T("still waiting on run dependencies:")),T("dependency: "+e);t&&T("(end of list)")}}),1e4));var a=r;if(r.instantiateWasm)try{return r.instantiateWasm(i,e)}catch(e){return T("Module.instantiateWasm callback failed with error: "+e),!1}(b||"function"!=typeof WebAssembly.instantiateStreaming||_e()||ue.startsWith("file://")||"function"!=typeof fetch?n(t):fetch(ue,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,i).then(t,(function(e){return T("wasm streaming compile failed: "+e),T("falling back to ArrayBuffer instantiation"),n(t)}))}))).catch(o)}(),r.___wasm_call_ctors=Te("__wasm_call_ctors"),r._acuantMetrics=Te("acuantMetrics"),r._acuantMoire=Te("acuantMoire");var rr=r._malloc=Te("malloc"),nr=r._free=Te("free");r._fflush=Te("fflush"),r.___getTypeName=Te("__getTypeName"),r.___embind_register_native_and_builtin_types=Te("__embind_register_native_and_builtin_types");var or=r._emscripten_stack_get_end=function(){return(or=r._emscripten_stack_get_end=r.asm.emscripten_stack_get_end).apply(null,arguments)},ir=r.___errno_location=Te("__errno_location"),ar=r.stackSave=Te("stackSave"),sr=r.stackRestore=Te("stackRestore"),cr=r.stackAlloc=Te("stackAlloc"),dr=r._emscripten_stack_init=function(){return(dr=r._emscripten_stack_init=r.asm.emscripten_stack_init).apply(null,arguments)};r._emscripten_stack_get_free=function(){return(r._emscripten_stack_get_free=r.asm.emscripten_stack_get_free).apply(null,arguments)};var ur=r._setThrew=Te("setThrew"),pr=r.___cxa_can_catch=Te("__cxa_can_catch"),lr=r.___cxa_is_pointer_type=Te("__cxa_is_pointer_type");r.dynCall_jiji=Te("dynCall_jiji");var Er,fr=r.dynCall_jiiii=Te("dynCall_jiiii");function Or(){function e(){if(!Er&&(Er=!0,r.calledRun=!0,!R)){if(re(),v(!ce),ce=!0,!r.noFSInit&&!st){v(!st,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),st=!0,_t(),r.stdin=r.stdin,r.stdout=r.stdout,r.stderr=r.stderr,r.stdin?Tt("stdin",r.stdin):ft("/dev/tty","/dev/stdin"),r.stdout?Tt("stdout",null,r.stdout):ft("/dev/tty","/dev/stdout"),r.stderr?Tt("stderr",null,r.stderr):ft("/dev/tty1","/dev/stderr");var e=ht("/dev/stdin",0),t=ht("/dev/stdout",1),o=ht("/dev/stderr",1);v(0===e.fd,"invalid handle for stdin ("+e.fd+")"),v(1===t.fd,"invalid handle for stdout ("+t.fd+")"),v(2===o.fd,"invalid handle for stderr ("+o.fd+")")}if(ze=!1,ye(ae),n(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),v(!r._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'),re(),r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),se.unshift(e);ye(se)}}if(!(0{let r=e.addFunction(n,"vff"),t=e.addFunction(i,"vff");function n(e,r){let t={func:"metrics"};e>=0&&r>=0?(t.sharpness=e,t.glare=r):t.error=e<-.5&&e>-1.5?"Runtime error":e<-1.5&&e>-2.5?"Metrics did not return OK":"Unknown Error Occured",postMessage(t)}function i(e,r){let t={func:"moire"};e>=0&&r>=0?(t.moire=e,t.moireraw=r):t.error=e<-.5&&e>-1.5?"Runtime error":e<-1.5&&e>-2.5?"Moire did not return OK":"Unknown Error Occured",postMessage(t)}function a(r){null!=r&&(e._free(r),r=null)}function s(r){var t=e._malloc(r.length*r.BYTES_PER_ELEMENT);return e.HEAPU8.set(r,t),t}onmessage=o=>{if(o&&o.data)if("metrics"===o.data.func){let t=o.data.data;if(t.imgData&&t.width&&t.height){let n=s(t.imgData);e.ccall("acuantMetrics",null,["number","number","number","number"],[n,t.width,t.height,r]),a(n)}else console.error("missing params"),n(-1,-1)}else if("moire"===o.data.func){let r=o.data.data;if(r.imgData&&r.width&&r.height){let n=s(r.imgData);e.ccall("acuantMoire",null,["number","number","number","number"],[n,r.width,r.height,t]),a(n)}else console.error("missing params"),i(-1,-1)}else console.error("called with no func specified")},postMessage({metricsWorker:"started"})})); \ No newline at end of file diff --git a/public/acuant/11.5.1/AcuantPassiveLiveness.min.js b/public/acuant/11.5.1/AcuantPassiveLiveness.min.js new file mode 100644 index 00000000000..f83f037ec0b --- /dev/null +++ b/public/acuant/11.5.1/AcuantPassiveLiveness.min.js @@ -0,0 +1 @@ +var AcuantPassiveLiveness=function(){var e=null,t=null;var a=void 0,n=void 0;function i(e){a||(a=document.createElement("img")),n||(n=document.createElement("canvas"));let i=e.target,o=new FileReader;o.onload=e=>{a.onload=()=>{let e=1080,i=720,o=a.width,c=a.height,s=n.getContext("2d");(o>c?c:o)>i?o