@zappar/zappar-cv 3.0.1-alpha.7 → 3.0.1-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/zappar-cv.js +202 -170
- package/lib/zappar-cv.wasm +0 -0
- package/package.json +1 -1
- package/umd/{7e63bec626d6ccda2134.wasm → 5a86c8fa5c139c48ad64.wasm} +0 -0
- package/umd/867.zappar-cv.js +1 -1
- package/umd/zappar-cv.js +1 -1
- package/umd/zappar-cv.worker.js +1 -1
package/umd/zappar-cv.worker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={238:function(e,r,t){var a;!function(i,n){"use strict";var _="function",o="undefined",s="object",c="string",l="model",h="name",u="type",f="vendor",d="version",p="architecture",m="console",b="mobile",w="tablet",v="smarttv",E="wearable",g="embedded",y="Amazon",k="Apple",A="ASUS",z="BlackBerry",N="Browser",R="Chrome",S="Firefox",L="Google",T="Huawei",x="LG",I="Microsoft",P="Motorola",M="Opera",F="Samsung",O="Sharp",C="Sony",j="Xiaomi",B="Zebra",U="Facebook",V=function(e){for(var r={},t=0;t<e.length;t++)r[e[t].toUpperCase()]=e[t];return r},D=function(e,r){return typeof e===c&&-1!==K(r).indexOf(K(e))},K=function(e){return e.toLowerCase()},Z=function(e,r){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof r===o?e:e.substring(0,350)},G=function(e,r){for(var t,a,i,o,c,l,h=0;h<r.length&&!c;){var u=r[h],f=r[h+1];for(t=a=0;t<u.length&&!c;)if(c=u[t++].exec(e))for(i=0;i<f.length;i++)l=c[++a],typeof(o=f[i])===s&&o.length>0?2===o.length?typeof o[1]==_?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:3===o.length?typeof o[1]!==_||o[1].exec&&o[1].test?this[o[0]]=l?l.replace(o[1],o[2]):n:this[o[0]]=l?o[1].call(this,l,o[2]):n:4===o.length&&(this[o[0]]=l?o[3].call(this,l.replace(o[1],o[2])):n):this[o]=l||n;h+=2}},W=function(e,r){for(var t in r)if(typeof r[t]===s&&r[t].length>0){for(var a=0;a<r[t].length;a++)if(D(r[t][a],e))return"?"===t?n:t}else if(D(r[t],e))return"?"===t?n:t;return e},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,d],[/opios[\/ ]+([\w\.]+)/i],[d,[h,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[d,[h,M]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[h,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[h,"UC"+N]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[d,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[d,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[h,"IE"]],[/yabrowser\/([\w\.]+)/i],[d,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+N],d],[/\bfocus\/([\w\.]+)/i],[d,[h,S+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[h,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[h,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[h,"MIUI "+N]],[/fxios\/([-\w\.]+)/i],[d,[h,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+N]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+N],d],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,d],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,U],d],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[h,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[h,R+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,R+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[h,"Android "+N]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[d,W,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[h,S+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[h,d],[/(cobalt)\/([\w\.]+)/i],[h,[d,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,K]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[f,F],[u,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[f,F],[u,b]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[f,k],[u,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[f,k],[u,w]],[/(macintosh);/i],[l,[f,k]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[f,T],[u,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[f,T],[u,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[f,j],[u,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[f,j],[u,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[f,"OPPO"],[u,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[f,"Vivo"],[u,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[f,"Realme"],[u,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[f,P],[u,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[f,P],[u,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[f,x],[u,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[f,x],[u,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[f,"Lenovo"],[u,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[f,"Nokia"],[u,b]],[/(pixel c)\b/i],[l,[f,L],[u,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[f,L],[u,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[f,C],[u,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[f,C],[u,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[f,"OnePlus"],[u,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[f,y],[u,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[f,y],[u,b]],[/(playbook);[-\w\),; ]+(rim)/i],[l,f,[u,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[f,z],[u,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[f,A],[u,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[f,A],[u,b]],[/(nexus 9)/i],[l,[f,"HTC"],[u,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[l,/_/g," "],[u,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[f,"Acer"],[u,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[f,"Meizu"],[u,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[f,O],[u,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,l,[u,b]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,l,[u,w]],[/(surface duo)/i],[l,[f,I],[u,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[f,"Fairphone"],[u,b]],[/(u304aa)/i],[l,[f,"AT&T"],[u,b]],[/\bsie-(\w*)/i],[l,[f,"Siemens"],[u,b]],[/\b(rct\w+) b/i],[l,[f,"RCA"],[u,w]],[/\b(venue[\d ]{2,7}) b/i],[l,[f,"Dell"],[u,w]],[/\b(q(?:mv|ta)\w+) b/i],[l,[f,"Verizon"],[u,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[f,"Barnes & Noble"],[u,w]],[/\b(tm\d{3}\w+) b/i],[l,[f,"NuVision"],[u,w]],[/\b(k88) b/i],[l,[f,"ZTE"],[u,w]],[/\b(nx\d{3}j) b/i],[l,[f,"ZTE"],[u,b]],[/\b(gen\d{3}) b.+49h/i],[l,[f,"Swiss"],[u,b]],[/\b(zur\d{3}) b/i],[l,[f,"Swiss"],[u,w]],[/\b((zeki)?tb.*\b) b/i],[l,[f,"Zeki"],[u,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],l,[u,w]],[/\b(ns-?\w{0,9}) b/i],[l,[f,"Insignia"],[u,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[f,"NextBook"],[u,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],l,[u,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],l,[u,b]],[/\b(ph-1) /i],[l,[f,"Essential"],[u,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[f,"Envizen"],[u,w]],[/\b(trio[-\w\. ]+) b/i],[l,[f,"MachSpeed"],[u,w]],[/\btu_(1491) b/i],[l,[f,"Rotor"],[u,w]],[/(shield[\w ]+) b/i],[l,[f,"Nvidia"],[u,w]],[/(sprint) (\w+)/i],[f,l,[u,b]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[f,I],[u,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[f,B],[u,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[f,B],[u,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,l,[u,m]],[/droid.+; (shield) bui/i],[l,[f,"Nvidia"],[u,m]],[/(playstation [345portablevi]+)/i],[l,[f,C],[u,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[f,I],[u,m]],[/smart-tv.+(samsung)/i],[f,[u,v]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[f,F],[u,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,x],[u,v]],[/(apple) ?tv/i],[f,[l,k+" TV"],[u,v]],[/crkey/i],[[l,R+"cast"],[f,L],[u,v]],[/droid.+aft(\w)( bui|\))/i],[l,[f,y],[u,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[f,O],[u,v]],[/(bravia[\w ]+)( bui|\))/i],[l,[f,C],[u,v]],[/(mitv-\w{5}) bui/i],[l,[f,j],[u,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,Z],[l,Z],[u,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,v]],[/((pebble))app/i],[f,l,[u,E]],[/droid.+; (glass) \d/i],[l,[f,L],[u,E]],[/droid.+; (wt63?0{2,3})\)/i],[l,[f,B],[u,E]],[/(quest( 2)?)/i],[l,[f,U],[u,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[u,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[u,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[u,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,b]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[h,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,d],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[d,W,X]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[d,W,X]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,"Mac OS"],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,d],[/\(bb(10);/i],[d,[h,z]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[h,S+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[h,"webOS"]],[/crkey\/([\d\.]+)/i],[d,[h,R+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[h,"Chromium OS"],d],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,d],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[h,d]]},H=function(e,r){if(typeof e===s&&(r=e,e=n),!(this instanceof H))return new H(e,r).getResult();var t=e||(typeof i!==o&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),a=r?function(e,r){var t={};for(var a in e)r[a]&&r[a].length%2==0?t[a]=r[a].concat(e[a]):t[a]=e[a];return t}(Y,r):Y;return this.getBrowser=function(){var e,r={};return r[h]=n,r[d]=n,G.call(r,t,a.browser),r.major=typeof(e=r.version)===c?e.replace(/[^\d\.]/g,"").split(".")[0]:n,r},this.getCPU=function(){var e={};return e[p]=n,G.call(e,t,a.cpu),e},this.getDevice=function(){var e={};return e[f]=n,e[l]=n,e[u]=n,G.call(e,t,a.device),e},this.getEngine=function(){var e={};return e[h]=n,e[d]=n,G.call(e,t,a.engine),e},this.getOS=function(){var e={};return e[h]=n,e[d]=n,G.call(e,t,a.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return t},this.setUA=function(e){return t=typeof e===c&&e.length>350?Z(e,350):e,this},this.setUA(t),this};H.VERSION="1.0.33",H.BROWSER=V([h,d,"major"]),H.CPU=V([p]),H.DEVICE=V([l,f,u,m,b,v,w,E,g]),H.ENGINE=H.OS=V([h,d]),typeof r!==o?(e.exports&&(r=e.exports=H),r.UAParser=H):t.amdO?(a=function(){return H}.call(r,t,r,e))===n||(e.exports=a):typeof i!==o&&(i.UAParser=H);var q=typeof i!==o&&(i.jQuery||i.Zepto);if(q&&!q.ua){var $=new H;q.ua=$.getResult(),q.ua.get=function(){return $.getUA()},q.ua.set=function(e){$.setUA(e);var r=$.getResult();for(var t in r)q.ua[t]=r[t]}}}("object"==typeof window?window:this)},751:(e,r,t)=>{"use strict";e.exports=t.p+"7e63bec626d6ccda2134.wasm"}},r={};function t(a){var i=r[a];if(void 0!==i)return i.exports;var n=r[a]={exports:{}};return e[a].call(n.exports,n,n.exports,t),n.exports}t.m=e,t.amdO={},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var r=t.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var a=r.getElementsByTagName("script");if(a.length)for(var i=a.length-1;i>-1&&!e;)e=a[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e})(),t.b=self.location+"",(()=>{"use strict";var e;const r=(e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(r={}){var t,a,i=r;i.ready=new Promise(((e,r)=>{t=e,a=r}));var n,_=Object.assign({},i),o="./this.program",s=(e,r)=>{throw r},c="";c=self.location.href,e&&(c=e),c=c.startsWith("blob:")?"":c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1),n=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)};var l,h=i.print||console.log.bind(console),u=i.printErr||console.error.bind(console);Object.assign(i,_),_=null,i.thisProgram&&(o=i.thisProgram),i.quit&&(s=i.quit),i.wasmBinary&&(l=i.wasmBinary),"object"!=typeof WebAssembly&&C("no native wasm support detected");var f,d,p,m,b,w,v,E,g,y,k=!1;function A(){var e=f.buffer;i.HEAP8=p=new Int8Array(e),i.HEAP16=b=new Int16Array(e),i.HEAPU8=m=new Uint8Array(e),i.HEAPU16=w=new Uint16Array(e),i.HEAP32=v=new Int32Array(e),i.HEAPU32=E=new Uint32Array(e),i.HEAPF32=g=new Float32Array(e),i.HEAPF64=y=new Float64Array(e)}var z=[],N=[],R=[];function S(){var e=i.preRun.shift();z.unshift(e)}var L,T,x,I=0,P=null,M=null;function F(){I++,i.monitorRunDependencies?.(I)}function O(){if(I--,i.monitorRunDependencies?.(I),0==I&&(null!==P&&(clearInterval(P),P=null),M)){var e=M;M=null,e()}}function C(e){throw i.onAbort?.(e),u(e="Aborted("+e+")"),k=!0,d=1,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}if(!(L="zappar-cv.wasm").startsWith("data:application/octet-stream;base64,")){var j=L;L=i.locateFile?i.locateFile(j,c):c+j}function B(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var U=e=>{for(;0<e.length;)e.shift()(i)},V=i.noExitRuntime||!0,D=[],K=0,Z=0;class G{constructor(e){this.ai=e,this.Qh=e-24}}var W=e=>{var r=Z;if(!r)return ut(0),0;var t=new G(r);E[t.Qh+16>>2]=r;var a=E[t.Qh+4>>2];if(!a)return ut(0),r;for(var i in e){var n=e[i];if(0===n||n===a)break;if(wt(n,a,t.Qh+16))return ut(n),r}return ut(a),r},X=()=>{var e=D.pop();e||C("no exception to throw");var r=e.ai;throw 0==p[e.Qh+13>>0]&&(D.push(e),p[e.Qh+13>>0]=1,p[e.Qh+12>>0]=0,K++),Z=r},Y=(e,r)=>{for(var t=0,a=e.length-1;0<=a;a--){var i=e[a];"."===i?e.splice(a,1):".."===i?(e.splice(a,1),t++):t&&(e.splice(a,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},H=e=>{var r="/"===e.charAt(0),t="/"===e.substr(-1);return(e=Y(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},q=e=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=r[0],r=r[1],e||r?(r&&=r.substr(0,r.length-1),e+r):"."},$=e=>{if("/"===e)return"/";var r=(e=(e=H(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},Q=e=>(Q=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);C("initRandomDevice")})())(e);function J(){for(var e="",r=!1,t=arguments.length-1;-1<=t&&!r;t--){if("string"!=typeof(r=0<=t?arguments[t]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";e=r+"/"+e,r="/"===r.charAt(0)}return(r?"/":"")+(e=Y(e.split("/").filter((e=>!!e)),!r).join("/"))||"."}var ee="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,re=(e,r,t)=>{var a=r+t;for(t=r;e[t]&&!(t>=a);)++t;if(16<t-r&&e.buffer&&ee)return ee.decode(e.subarray(r,t));for(a="";r<t;){var i=e[r++];if(128&i){var n=63&e[r++];if(192==(224&i))a+=String.fromCharCode((31&i)<<6|n);else{var _=63&e[r++];65536>(i=224==(240&i)?(15&i)<<12|n<<6|_:(7&i)<<18|n<<12|_<<6|63&e[r++])?a+=String.fromCharCode(i):(i-=65536,a+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else a+=String.fromCharCode(i)}return a},te=[],ae=e=>{for(var r=0,t=0;t<e.length;++t){var a=e.charCodeAt(t);127>=a?r++:2047>=a?r+=2:55296<=a&&57343>=a?(r+=4,++t):r+=3}return r},ie=(e,r,t,a)=>{if(!(0<a))return 0;var i=t;a=t+a-1;for(var n=0;n<e.length;++n){var _=e.charCodeAt(n);if(55296<=_&&57343>=_&&(_=65536+((1023&_)<<10)|1023&e.charCodeAt(++n)),127>=_){if(t>=a)break;r[t++]=_}else{if(2047>=_){if(t+1>=a)break;r[t++]=192|_>>6}else{if(65535>=_){if(t+2>=a)break;r[t++]=224|_>>12}else{if(t+3>=a)break;r[t++]=240|_>>18,r[t++]=128|_>>12&63}r[t++]=128|_>>6&63}r[t++]=128|63&_}}return r[t]=0,t-i};function ne(e,r){var t=Array(ae(e)+1);return e=ie(e,t,0,t.length),r&&(t.length=e),t}var _e=[];function oe(e,r){_e[e]={input:[],Rh:[],Zh:r},je(e,se)}var se={open(e){var r=_e[e.node.ji];if(!r)throw new ge(43);e.Oh=r,e.seekable=!1},close(e){e.Oh.Zh.ni(e.Oh)},ni(e){e.Oh.Zh.ni(e.Oh)},read(e,r,t,a){if(!e.Oh||!e.Oh.Zh.Di)throw new ge(60);for(var i=0,n=0;n<a;n++){try{var _=e.Oh.Zh.Di(e.Oh)}catch(e){throw new ge(29)}if(void 0===_&&0===i)throw new ge(6);if(null==_)break;i++,r[t+n]=_}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,a){if(!e.Oh||!e.Oh.Zh.yi)throw new ge(60);try{for(var i=0;i<a;i++)e.Oh.Zh.yi(e.Oh,r[t+i])}catch(e){throw new ge(29)}return a&&(e.node.timestamp=Date.now()),i}},ce={Di(){e:{if(!te.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e){e=null;break e}te=ne(e,!0)}e=te.shift()}return e},yi(e,r){null===r||10===r?(h(re(e.Rh,0)),e.Rh=[]):0!=r&&e.Rh.push(r)},ni(e){e.Rh&&0<e.Rh.length&&(h(re(e.Rh,0)),e.Rh=[])},Ti:()=>({jj:25856,lj:5,ij:191,kj:35387,hj:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),Ui:()=>0,Vi:()=>[24,80]},le={yi(e,r){null===r||10===r?(u(re(e.Rh,0)),e.Rh=[]):0!=r&&e.Rh.push(r)},ni(e){e.Rh&&0<e.Rh.length&&(u(re(e.Rh,0)),e.Rh=[])}};function he(e,r){var t=e.Mh?e.Mh.length:0;t>=r||(r=Math.max(r,t*(1048576>t?2:1.125)>>>0),0!=t&&(r=Math.max(r,256)),t=e.Mh,e.Mh=new Uint8Array(r),0<e.Ph&&e.Mh.set(t.subarray(0,e.Ph),0))}var ue={Vh:null,Yh:()=>ue.createNode(null,"/",16895,0),createNode(e,r,t,a){if(24576==(61440&t)||4096==(61440&t))throw new ge(63);return ue.Vh||(ue.Vh={dir:{node:{Uh:ue.Lh.Uh,Wh:ue.Lh.Wh,ii:ue.Lh.ii,oi:ue.Lh.oi,Ii:ue.Lh.Ii,vi:ue.Lh.vi,ri:ue.Lh.ri,pi:ue.Lh.pi,si:ue.Lh.si},stream:{ci:ue.Nh.ci}},file:{node:{Uh:ue.Lh.Uh,Wh:ue.Lh.Wh},stream:{ci:ue.Nh.ci,read:ue.Nh.read,write:ue.Nh.write,li:ue.Nh.li,Fi:ue.Nh.Fi,Hi:ue.Nh.Hi}},link:{node:{Uh:ue.Lh.Uh,Wh:ue.Lh.Wh,ki:ue.Lh.ki},stream:{}},Bi:{node:{Uh:ue.Lh.Uh,Wh:ue.Lh.Wh},stream:Ce}}),Le((t=Se(e,r,t,a)).mode)?(t.Lh=ue.Vh.dir.node,t.Nh=ue.Vh.dir.stream,t.Mh={}):32768==(61440&t.mode)?(t.Lh=ue.Vh.file.node,t.Nh=ue.Vh.file.stream,t.Ph=0,t.Mh=null):40960==(61440&t.mode)?(t.Lh=ue.Vh.link.node,t.Nh=ue.Vh.link.stream):8192==(61440&t.mode)&&(t.Lh=ue.Vh.Bi.node,t.Nh=ue.Vh.Bi.stream),t.timestamp=Date.now(),e&&(e.Mh[r]=t,e.timestamp=t.timestamp),t},qj:e=>e.Mh?e.Mh.subarray?e.Mh.subarray(0,e.Ph):new Uint8Array(e.Mh):new Uint8Array(0),Lh:{Uh(e){var r={};return r.Ni=8192==(61440&e.mode)?e.id:1,r.Ei=e.id,r.mode=e.mode,r.Zi=1,r.uid=0,r.Pi=0,r.ji=e.ji,Le(e.mode)?r.size=4096:32768==(61440&e.mode)?r.size=e.Ph:40960==(61440&e.mode)?r.size=e.link.length:r.size=0,r.Ji=new Date(e.timestamp),r.Yi=new Date(e.timestamp),r.Mi=new Date(e.timestamp),r.Ki=4096,r.Li=Math.ceil(r.size/r.Ki),r},Wh(e,r){if(void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&(r=r.size,e.Ph!=r))if(0==r)e.Mh=null,e.Ph=0;else{var t=e.Mh;e.Mh=new Uint8Array(r),t&&e.Mh.set(t.subarray(0,Math.min(r,e.Ph))),e.Ph=r}},ii(){throw ye[44]},oi:(e,r,t,a)=>ue.createNode(e,r,t,a),Ii(e,r,t){if(Le(e.mode)){try{var a=Re(r,t)}catch(e){}if(a)for(var i in a.Mh)throw new ge(55)}delete e.parent.Mh[e.name],e.parent.timestamp=Date.now(),e.name=t,r.Mh[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},vi(e,r){delete e.Mh[r],e.timestamp=Date.now()},ri(e,r){var t,a=Re(e,r);for(t in a.Mh)throw new ge(55);delete e.Mh[r],e.timestamp=Date.now()},pi(e){var r,t=[".",".."];for(r of Object.keys(e.Mh))t.push(r);return t},si:(e,r,t)=>((e=ue.createNode(e,r,41471,0)).link=t,e),ki(e){if(40960!=(61440&e.mode))throw new ge(28);return e.link}},Nh:{read(e,r,t,a,i){var n=e.node.Mh;if(i>=e.node.Ph)return 0;if(8<(e=Math.min(e.node.Ph-i,a))&&n.subarray)r.set(n.subarray(i,i+e),t);else for(a=0;a<e;a++)r[t+a]=n[i+a];return e},write(e,r,t,a,i,n){if(r.buffer===p.buffer&&(n=!1),!a)return 0;if((e=e.node).timestamp=Date.now(),r.subarray&&(!e.Mh||e.Mh.subarray)){if(n)return e.Mh=r.subarray(t,t+a),e.Ph=a;if(0===e.Ph&&0===i)return e.Mh=r.slice(t,t+a),e.Ph=a;if(i+a<=e.Ph)return e.Mh.set(r.subarray(t,t+a),i),a}if(he(e,i+a),e.Mh.subarray&&r.subarray)e.Mh.set(r.subarray(t,t+a),i);else for(n=0;n<a;n++)e.Mh[i+n]=r[t+n];return e.Ph=Math.max(e.Ph,i+a),a},ci(e,r,t){if(1===t?r+=e.position:2===t&&32768==(61440&e.node.mode)&&(r+=e.node.Ph),0>r)throw new ge(28);return r},li(e,r,t){he(e.node,r+t),e.node.Ph=Math.max(e.node.Ph,r+t)},Fi(e,r,t,a,i){if(32768!=(61440&e.node.mode))throw new ge(43);if(e=e.node.Mh,2&i||e.buffer!==p.buffer){if((0<t||t+r<e.length)&&(e=e.subarray?e.subarray(t,t+r):Array.prototype.slice.call(e,t,t+r)),t=!0,C(),!(r=void 0))throw new ge(48);p.set(e,r)}else t=!1,r=e.byteOffset;return{Qh:r,fi:t}},Hi:(e,r,t,a)=>(ue.Nh.write(e,r,0,a,t,!1),0)}},fe=i.preloadPlugins||[],de=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},pe=null,me={},be=[],we=1,ve=null,Ee=!0,ge=class{constructor(e){this.name="ErrnoError",this.Sh=e}},ye={};function ke(e,r={}){if(!(e=J(e)))return{path:"",node:null};if(8<(r=Object.assign({Ci:!0,zi:0},r)).zi)throw new ge(32);e=e.split("/").filter((e=>!!e));for(var t=pe,a="/",i=0;i<e.length;i++){var n=i===e.length-1;if(n&&r.parent)break;if(t=Re(t,e[i]),a=H(a+"/"+e[i]),t.gi&&(!n||n&&r.Ci)&&(t=t.gi.root),!n||r.mi)for(n=0;40960==(61440&t.mode);)if(t=Ze(a),t=ke(a=J(q(a),t),{zi:r.zi+1}).node,40<n++)throw new ge(32)}return{path:a,node:t}}function Ae(e){for(var r;;){if(e===e.parent)return e=e.Yh.Gi,r?"/"!==e[e.length-1]?`${e}/${r}`:e+r:e;r=r?`${e.name}/${r}`:e.name,e=e.parent}}function ze(e,r){for(var t=0,a=0;a<r.length;a++)t=(t<<5)-t+r.charCodeAt(a)|0;return(e+t>>>0)%ve.length}function Ne(e){var r=ze(e.parent.id,e.name);if(ve[r]===e)ve[r]=e.hi;else for(r=ve[r];r;){if(r.hi===e){r.hi=e.hi;break}r=r.hi}}function Re(e,r){var t=Le(e.mode)?(t=xe(e,"x"))?t:e.Lh.ii?0:2:54;if(t)throw new ge(t);for(t=ve[ze(e.id,r)];t;t=t.hi){var a=t.name;if(t.parent.id===e.id&&a===r)return t}return e.Lh.ii(e,r)}function Se(e,r,t,a){return r=ze((e=new it(e,r,t,a)).parent.id,e.name),e.hi=ve[r],ve[r]=e}function Le(e){return 16384==(61440&e)}function Te(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r}function xe(e,r){return Ee?0:!r.includes("r")||292&e.mode?r.includes("w")&&!(146&e.mode)||r.includes("x")&&!(73&e.mode)?2:0:2}function Ie(e,r){try{return Re(e,r),20}catch(e){}return xe(e,"wx")}function Pe(e,r,t){try{var a=Re(e,r)}catch(e){return e.Sh}if(e=xe(e,"wx"))return e;if(t){if(!Le(a.mode))return 54;if(a===a.parent||"/"===Ae(a))return 10}else if(Le(a.mode))return 31;return 0}function Me(e){if(!(e=be[e]))throw new ge(8);return e}function Fe(e,r=-1){return He||((He=function(){this.Th={}}).prototype={},Object.defineProperties(He.prototype,{object:{get(){return this.node},set(e){this.node=e}},flags:{get(){return this.Th.flags},set(e){this.Th.flags=e}},position:{get(){return this.Th.position},set(e){this.Th.position=e}}})),e=Object.assign(new He,e),-1==r&&(r=function(){for(var e=0;4096>=e;e++)if(!be[e])return e;throw new ge(33)}()),e.$h=r,be[r]=e}var Oe,Ce={open(e){e.Nh=me[e.node.ji].Nh,e.Nh.open?.(e)},ci(){throw new ge(70)}};function je(e,r){me[e]={Nh:r}}function Be(e,r){var t="/"===r;if(t&&pe)throw new ge(10);if(!t&&r){var a=ke(r,{Ci:!1});if(r=a.path,(a=a.node).gi)throw new ge(10);if(!Le(a.mode))throw new ge(54)}r={type:e,uj:{},Gi:r,Xi:[]},(e=e.Yh(r)).Yh=r,r.root=e,t?pe=e:a&&(a.gi=r,a.Yh&&a.Yh.Xi.push(r))}function Ue(e,r,t){var a=ke(e,{parent:!0}).node;if(!(e=$(e))||"."===e||".."===e)throw new ge(28);var i=Ie(a,e);if(i)throw new ge(i);if(!a.Lh.oi)throw new ge(63);return a.Lh.oi(a,e,r,t)}function Ve(e){return Ue(e,16895,0)}function De(e,r,t){void 0===t&&(t=r,r=438),Ue(e,8192|r,t)}function Ke(e,r){if(!J(e))throw new ge(44);var t=ke(r,{parent:!0}).node;if(!t)throw new ge(44);var a=Ie(t,r=$(r));if(a)throw new ge(a);if(!t.Lh.si)throw new ge(63);t.Lh.si(t,r,e)}function Ze(e){if(!(e=ke(e).node))throw new ge(44);if(!e.Lh.ki)throw new ge(28);return J(Ae(e.parent),e.Lh.ki(e))}function Ge(e,r,t){if(""===e)throw new ge(44);if("string"==typeof r){var a={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===a)throw Error(`Unknown file open mode: ${r}`);r=a}if(t=64&r?4095&(void 0===t?438:t)|32768:0,"object"==typeof e)var n=e;else{e=H(e);try{n=ke(e,{mi:!(131072&r)}).node}catch(e){}}if(a=!1,64&r)if(n){if(128&r)throw new ge(20)}else n=Ue(e,t,0),a=!0;if(!n)throw new ge(44);if(8192==(61440&n.mode)&&(r&=-513),65536&r&&!Le(n.mode))throw new ge(54);if(!a&&(t=n?40960==(61440&n.mode)?32:Le(n.mode)&&("r"!==Te(r)||512&r)?31:xe(n,Te(r)):44))throw new ge(t);if(512&r&&!a){if(!(t="string"==typeof(t=n)?ke(t,{mi:!0}).node:t).Lh.Wh)throw new ge(63);if(Le(t.mode))throw new ge(31);if(32768!=(61440&t.mode))throw new ge(28);if(a=xe(t,"w"))throw new ge(a);t.Lh.Wh(t,{size:0,timestamp:Date.now()})}return r&=-131713,(n=Fe({node:n,path:Ae(n),flags:r,seekable:!0,position:0,Nh:n.Nh,dj:[],error:!1})).Nh.open&&n.Nh.open(n),!i.logReadFiles||1&r||(qe||={},e in qe||(qe[e]=1)),n}function We(e,r,t){if(null===e.$h)throw new ge(8);if(!e.seekable||!e.Nh.ci)throw new ge(70);if(0!=t&&1!=t&&2!=t)throw new ge(28);return e.position=e.Nh.ci(e,r,t),e.dj=[],e.position}function Xe(e,r,t){e=H("/dev/"+e);var a=de(!!r,!!t);Ye||=64;var i=Ye++<<8|0;je(i,{open(e){e.seekable=!1},close(){t?.buffer?.length&&t(10)},read(e,t,a,i){for(var n=0,_=0;_<i;_++){try{var o=r()}catch(e){throw new ge(29)}if(void 0===o&&0===n)throw new ge(6);if(null==o)break;n++,t[a+_]=o}return n&&(e.node.timestamp=Date.now()),n},write(e,r,a,i){for(var n=0;n<i;n++)try{t(r[a+n])}catch(e){throw new ge(29)}return i&&(e.node.timestamp=Date.now()),n}}),De(e,a,i)}var Ye,He,qe,$e={},Qe=(e,r)=>e?re(m,e,r):"";function Je(e,r){if("/"===r.charAt(0))return r;if(e=-100===e?"/":Me(e).path,0==r.length)throw new ge(44);return H(e+"/"+r)}var er=void 0;function rr(){var e=v[+er>>2];return er+=4,e}var tr,ar=e=>0==e%4&&(0!=e%100||0==e%400),ir=[0,31,60,91,121,152,182,213,244,274,305,335],nr=[0,31,59,90,120,151,181,212,243,273,304,334],_r=e=>{var r=ae(e)+1,t=ct(r);return t&&ie(e,m,t,r),t},or=e=>{d=e,V||(i.onExit?.(e),k=!0),s(e,new B(e))},sr=e=>{if(!k)try{if(e(),!V)try{d=e=d,or(e)}catch(e){e instanceof B||"unwind"==e||s(1,e)}}catch(e){e instanceof B||"unwind"==e||s(1,e)}},cr=(e,r)=>{setTimeout((()=>{sr(e)}),r)};tr=()=>performance.now();var lr,hr,ur,fr=!1,dr=null,pr=0,mr=null,br=0,wr=0,vr=0,Er=[],gr={},yr=!1,kr=!1,Ar=[],zr=!1,Nr=void 0,Rr=void 0;function Sr(){return!!yr&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||(()=>{})).apply(document,[]),!0)}var Lr=0;function Tr(e){if("function"==typeof requestAnimationFrame)requestAnimationFrame(e);else{var r=Date.now();if(0===Lr)Lr=r+1e3/60;else for(;r+2>=Lr;)Lr+=1e3/60;setTimeout(e,Math.max(Lr-r,0))}}function xr(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}var Ir=[];function Pr(){var e=i.canvas;Ir.forEach((r=>r(e.width,e.height)))}function Mr(e,r,t){r&&t?(e.ej=r,e.Qi=t):(r=e.ej,t=e.Qi);var a=r,n=t;if(i.forcedAspectRatio&&0<i.forcedAspectRatio&&(a/n<i.forcedAspectRatio?a=Math.round(n*i.forcedAspectRatio):n=Math.round(a/i.forcedAspectRatio)),(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e.parentNode&&"undefined"!=typeof screen){var _=Math.min(screen.width/a,screen.height/n);a=Math.round(a*_),n=Math.round(n*_)}Rr?(e.width!=a&&(e.width=a),e.height!=n&&(e.height=n),void 0!==e.style&&(e.style.removeProperty("width"),e.style.removeProperty("height"))):(e.width!=r&&(e.width=r),e.height!=t&&(e.height=t),void 0!==e.style&&(a!=r||n!=t?(e.style.setProperty("width",a+"px","important"),e.style.setProperty("height",n+"px","important")):(e.style.removeProperty("width"),e.style.removeProperty("height"))))}var Fr,Or,Cr,jr,Br,Ur=[],Vr=e=>{var r=Ur[e];return r||(e>=Ur.length&&(Ur.length=e+1),Ur[e]=r=Cr.get(e)),r};function Dr(e,r,t,a,i){function n(){var r=0,t=0;y.response&&v&&0===E[e+12>>2]&&(t=y.response.byteLength),0<t&&(r=ct(t),m.set(new Uint8Array(y.response),r)),E[e+12>>2]=r,Kr(e+16,t),Kr(e+24,0),(r=y.response?y.response.byteLength:0)&&Kr(e+32,r),w[e+40>>1]=y.readyState,w[e+42>>1]=y.status,y.statusText&&ie(y.statusText,m,e+44,64)}var _=E[e+8>>2];if(_){var o=_?re(m,_):"",s=e+112,c=Qe(s+0);c||="GET";var l=E[s+56>>2],h=E[s+68>>2],u=E[s+72>>2];_=E[s+76>>2];var f=E[s+80>>2],d=E[s+84>>2],p=E[s+88>>2],b=E[s+52>>2],v=!!(1&b),g=!!(2&b);b=!!(64&b),h=h?h?re(m,h):"":void 0,u=u?u?re(m,u):"":void 0;var y=new XMLHttpRequest;if(y.withCredentials=!!m[s+60>>0],y.open(c,o,!b,h,u),b||(y.timeout=l),y.Th=o,y.responseType="arraybuffer",f&&(o=f?re(m,f):"",y.overrideMimeType(o)),_)for(;(s=E[_>>2])&&(o=E[_+4>>2]);)_+=8,s=s?re(m,s):"",o=o?re(m,o):"",y.setRequestHeader(s,o);var k=jr.li(y);E[e>>2]=k,_=d&&p?m.slice(d,d+p):null,y.onload=a=>{jr.has(k)&&(n(),200<=y.status&&300>y.status?r?.(e,y,a):t?.(e,y,a))},y.onerror=r=>{jr.has(k)&&(n(),t?.(e,y,r))},y.ontimeout=r=>{jr.has(k)&&t?.(e,y,r)},y.onprogress=r=>{if(jr.has(k)){var t=v&&g&&y.response?y.response.byteLength:0,i=0;0<t&&v&&g&&(i=ct(t),m.set(new Uint8Array(y.response),i)),E[e+12>>2]=i,Kr(e+16,t),Kr(e+24,r.loaded-t),Kr(e+32,r.total),w[e+40>>1]=y.readyState,3<=y.readyState&&0===y.status&&0<r.loaded&&(y.status=200),w[e+42>>1]=y.status,y.statusText&&ie(y.statusText,m,e+44,64),a?.(e,y,r),i&&st(i)}},y.onreadystatechange=r=>{jr.has(k)&&(w[e+40>>1]=y.readyState,2<=y.readyState&&(w[e+42>>1]=y.status),i?.(e,y,r))};try{y.send(_)}catch(r){t?.(e,y,r)}}else t(e,0,"no url specified!")}var Kr=(e,r)=>{E[e>>2]=r,E[e+4>>2]=(r-E[e>>2])/4294967296};function Zr(e,r,t,a){var i=Br;if(i){var n=E[e+112+64>>2];n||=E[e+8>>2];var _=n?re(m,n):"";try{var o=i.transaction(["FILES"],"readwrite").objectStore("FILES").put(r,_);o.onsuccess=()=>{w[e+40>>1]=4,w[e+42>>1]=200,ie("OK",m,e+44,64),t(e,0,_)},o.onerror=r=>{w[e+40>>1]=4,w[e+42>>1]=413,ie("Payload Too Large",m,e+44,64),a(e,0,r)}}catch(r){a(e,0,r)}}else a(e,0,"IndexedDB not available!")}var Gr,Wr,Xr,Yr={},Hr=()=>{if(!Gr){var e,r={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",_:o||"./this.program"};for(e in Yr)void 0===Yr[e]?delete r[e]:r[e]=Yr[e];var t=[];for(e in r)t.push(`${e}=${r[e]}`);Gr=t}return Gr},qr=1,$r=[],Qr=[],Jr=e=>{for(var r=qr++,t=e.length;t<r;t++)e[t]=null;return r},et=e=>{if(e||=Xr,!e.Ri){e.Ri=!0;var r=e.wi;(e=>{var r=e.getExtension("ANGLE_instanced_arrays");r&&(e.vertexAttribDivisor=(e,t)=>r.vertexAttribDivisorANGLE(e,t),e.drawArraysInstanced=(e,t,a,i)=>r.drawArraysInstancedANGLE(e,t,a,i),e.drawElementsInstanced=(e,t,a,i,n)=>r.drawElementsInstancedANGLE(e,t,a,i,n))})(r),(e=>{var r=e.getExtension("OES_vertex_array_object");r&&(e.createVertexArray=()=>r.createVertexArrayOES(),e.deleteVertexArray=e=>r.deleteVertexArrayOES(e),e.bindVertexArray=e=>r.bindVertexArrayOES(e),e.isVertexArray=e=>r.isVertexArrayOES(e))})(r),(e=>{var r=e.getExtension("WEBGL_draw_buffers");r&&(e.drawBuffers=(e,t)=>r.drawBuffersWEBGL(e,t))})(r),r.nj=r.getExtension("EXT_disjoint_timer_query"),r.rj=r.getExtension("WEBGL_multi_draw"),function(e){var r="ANGLE_instanced_arrays EXT_blend_minmax EXT_disjoint_timer_query EXT_frag_depth EXT_shader_texture_lod EXT_sRGB OES_element_index_uint OES_fbo_render_mipmap OES_standard_derivatives OES_texture_float OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_depth_texture WEBGL_draw_buffers EXT_color_buffer_half_float EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw".split(" ");return(e.getSupportedExtensions()||[]).filter((e=>r.includes(e)))}(r).forEach((e=>{e.includes("lose_context")||e.includes("debug")||r.getExtension(e)}))}},rt={},tt=[31,29,31,30,31,30,31,31,30,31,30,31],at=[31,28,31,30,31,30,31,31,30,31,30,31];function it(e,r,t,a){e||=this,this.parent=e,this.Yh=e.Yh,this.gi=null,this.id=we++,this.name=r,this.mode=t,this.Lh={},this.Nh={},this.ji=a}Object.defineProperties(it.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}}}),[44].forEach((e=>{ye[e]=new ge(e),ye[e].stack="<generic error, no stack>"})),ve=Array(4096),Be(ue,"/"),Ve("/tmp"),Ve("/home"),Ve("/home/web_user"),function(){Ve("/dev"),je(259,{read:()=>0,write:(e,r,t,a)=>a}),De("/dev/null",259),oe(1280,ce),oe(1536,le),De("/dev/tty",1280),De("/dev/tty1",1536);var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=Q(e).byteLength),e[--r]);Xe("random",t),Xe("urandom",t),Ve("/dev/shm"),Ve("/dev/shm/tmp")}(),function(){Ve("/proc");var e=Ve("/proc/self");Ve("/proc/self/fd"),Be({Yh(){var r=Se(e,"fd",16895,73);return r.Lh={ii(e,r){var t=Me(+r);return(e={parent:null,Yh:{Gi:"fake"},Lh:{ki:()=>t.path}}).parent=e}},r}},"/proc/self/fd")}(),i.requestFullscreen=function(e,r){function t(){yr=!1;var e=a.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e?(a.exitFullscreen=Sr,Nr&&a.requestPointerLock(),yr=!0,Rr?("undefined"!=typeof SDL&&(v[SDL.screen>>2]=8388608|E[SDL.screen>>2]),Mr(i.canvas),Pr()):Mr(a)):(e.parentNode.insertBefore(a,e),e.parentNode.removeChild(e),Rr?("undefined"!=typeof SDL&&(v[SDL.screen>>2]=-8388609&E[SDL.screen>>2]),Mr(i.canvas),Pr()):Mr(a)),i.onFullScreen?.(yr),i.onFullscreen?.(yr)}void 0===(Nr=e)&&(Nr=!0),void 0===(Rr=r)&&(Rr=!1);var a=i.canvas;zr||(zr=!0,document.addEventListener("fullscreenchange",t,!1),document.addEventListener("mozfullscreenchange",t,!1),document.addEventListener("webkitfullscreenchange",t,!1),document.addEventListener("MSFullscreenChange",t,!1));var n=document.createElement("div");a.parentNode.insertBefore(n,a),n.appendChild(a),n.requestFullscreen=n.requestFullscreen||n.mozRequestFullScreen||n.msRequestFullscreen||(n.webkitRequestFullscreen?()=>n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):null)||(n.webkitRequestFullScreen?()=>n.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):null),n.requestFullscreen()},i.requestAnimationFrame=Tr,i.setCanvasSize=function(e,r,t){Mr(i.canvas,e,r),t||Pr()},i.pauseMainLoop=function(){dr=null,pr++},i.resumeMainLoop=function(){pr++;var e=br,r=wr,t=mr;mr=null,(e=>{!mr||C("emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),mr=e;var r=pr;fr=!1,hr=function(){if(!k)if(0<Er.length){var t=Er.shift();if(t.pj(t.gj),ur){var a=ur,n=0==a%1?a-1:Math.floor(a);ur=t.mj?n:(8*a+(n+.5))/9}i.setStatus&&(t=i.statusMessage||"Please wait...",n=gr.oj,(a=ur)?a<n?i.setStatus(t+" ("+(n-a)+"/"+n+")"):i.setStatus(t):i.setStatus("")),r<pr||setTimeout(hr,0)}else r<pr||(vr=vr+1|0,1==br&&1<wr&&0!=vr%wr?dr():(0==br&&(lr=tr()),k||i.preMainLoop&&!1===i.preMainLoop()||(sr(e),i.postMainLoop?.()),r<pr||("object"==typeof SDL&&SDL.audio?.vj?.(),dr())))}})(t),((e,r)=>{if(br=e,wr=r,mr)if(fr||=!0,0==e)dr=function(){var e=0|Math.max(0,lr+r-tr());setTimeout(hr,e)};else if(1==e)dr=function(){Tr(hr)};else if(2==e){if(void 0===Fr)if("undefined"==typeof setImmediate){var t=[];addEventListener("message",(e=>{"setimmediate"!==e.data&&"setimmediate"!==e.data.target||(e.stopPropagation(),t.shift()())}),!0),Fr=function(e){t.push(e),void 0===i.setImmediates&&(i.setImmediates=[]),i.setImmediates.push(e),postMessage({target:"setimmediate"})}}else Fr=setImmediate;dr=function(){Fr(hr)}}})(e,r),dr()},i.getUserMedia=function(e){let r;(r=window).getUserMedia||(r.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},i.createContext=function(e,r,t,a){if(r&&i.xi&&e==i.canvas)return i.xi;var n;if(r){var _={antialias:!1,alpha:!1,Wi:1};if(a)for(var o in a)_[o]=a[o];if(void 0!==rt&&(n=((e,r)=>{e.Th||(e.Th=e.getContext,e.getContext=function(r,t){return"webgl"==r==(t=e.Th(r,t))instanceof WebGLRenderingContext?t:null});var t=e.getContext("webgl",r);return t?((e,r)=>{var t=Jr(Qr),a={handle:t,attributes:r,version:r.Wi,wi:e};return e.canvas&&(e.canvas.fj=a),Qr[t]=a,(void 0===r.Oi||r.Oi)&&et(a),t})(t,r):0})(e,_)))var s=Qr[n].wi}else s=e.getContext("2d");return s?(t&&(r||void 0===nt||C("cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),i.xi=s,r&&(Xr=Qr[n],i.xi=nt=Xr?.wi),i.xj=r,Ar.forEach((e=>e())),function(){function e(){kr=document.pointerLockElement===i.canvas||document.mozPointerLockElement===i.canvas||document.webkitPointerLockElement===i.canvas||document.msPointerLockElement===i.canvas}if(!Or){Or=!0,fe.push({canHandle:function(e){return!i.tj&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,r,t,a){var i=new Blob([e],{type:xr(r)});i.size!==e.length&&(i=new Blob([new Uint8Array(e).buffer],{type:xr(r)}));var n=URL.createObjectURL(i),_=new Image;_.onload=()=>{_.complete||C(`Image ${r} could not be decoded`);var a=document.createElement("canvas");a.width=_.width,a.height=_.height,a.getContext("2d").drawImage(_,0,0),URL.revokeObjectURL(n),t?.(e)},_.onerror=()=>{u(`Image ${n} could not be decoded`),a?.()},_.src=n}}),fe.push({canHandle:function(e){return!i.sj&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,r,t){function a(){i||(i=!0,t?.(e))}var i=!1,n=URL.createObjectURL(new Blob([e],{type:xr(r)})),_=new Audio;_.addEventListener("canplaythrough",(()=>a()),!1),_.onerror=function(){if(!i){u(`warning: browser could not fully decode audio ${r}, trying slower base64 approach`);for(var t="",n=0,o=0,s=0;s<e.length;s++)for(n=n<<8|e[s],o+=8;6<=o;){var c=n>>o-6&63;o-=6,t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[c]}2==o?(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&n)<<4],t+="=="):4==o&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&n)<<2],t+="="),_.src="data:audio/x-"+r.substr(-3)+";base64,"+t,a()}},_.src=n,cr((()=>{a()}),1e4)}});var r=i.canvas;r&&(r.requestPointerLock=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||(()=>{}),r.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||(()=>{}),r.exitPointerLock=r.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",e,!1),document.addEventListener("mozpointerlockchange",e,!1),document.addEventListener("webkitpointerlockchange",e,!1),document.addEventListener("mspointerlockchange",e,!1),i.elementPointerLock&&r.addEventListener("click",(e=>{!kr&&i.canvas.requestPointerLock&&(i.canvas.requestPointerLock(),e.preventDefault())}),!1))}}()),s):null},jr=new class{constructor(){this.fi=[void 0],this.Th=[]}get(e){return this.fi[e]}has(e){return void 0!==this.fi[e]}li(e){var r=this.Th.pop()||this.fi.length;return this.fi[r]=e,r}},F(),function(e,r){try{var t=indexedDB.open("emscripten_filesystem",1)}catch(e){return void r()}t.onupgradeneeded=e=>{(e=e.target.result).objectStoreNames.contains("FILES")&&e.deleteObjectStore("FILES"),e.createObjectStore("FILES")},t.onsuccess=e=>(e=>{Br=e,O()})(e.target.result),t.onerror=r}(0,(()=>{Br=!1,O()}));var nt,_t={q:e=>{if(e=new G(e),0==p[e.Qh+12>>0]&&(p[e.Qh+12>>0]=1,K--),p[e.Qh+13>>0]=0,D.push(e),bt(e.ai),vt(E[e.Qh+4>>2]))e=E[e.ai>>2];else{var r=E[e.Qh+16>>2];e=0!==r?r:e.ai}return e},_b:()=>{if(!D.length)return 0;var e=D[D.length-1];return bt(e.ai),e.ai},x:()=>{ht(0,0);var e=D.pop();mt(e.ai),Z=0},a:()=>W([]),i:e=>W([e]),H:(e,r)=>W([e,r]),Ia:X,Zb:e=>{e&&(e=new G(e),D.push(e),p[e.Qh+13>>0]=1,X())},n:(e,r,t)=>{var a=new G(e);throw E[a.Qh+16>>2]=0,E[a.Qh+4>>2]=r,E[a.Qh+8>>2]=t,K++,Z=e},sa:()=>K,c:e=>{throw Z||=e,Z},T:function(e,r,t){er=t;try{var a=Me(e);switch(r){case 0:var i=rr();if(0>i)break;for(;be[i];)i++;return Fe(a,i).$h;case 1:case 2:case 13:case 14:return 0;case 3:return a.flags;case 4:return i=rr(),a.flags|=i,0;case 12:return i=rr(),b[i+0>>1]=2,0}return-28}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Sh}},ec:function(e,r,t){try{var a=Me(e);if(!a.bi){var i=ke(a.path,{mi:!0}).node;if(!i.Lh.pi)throw new ge(54);var n=i.Lh.pi(i);a.bi=n}e=0;for(var _=We(a,0,1),o=Math.floor(_/280);o<a.bi.length&&e+280<=t;){var s=a.bi[o];if("."===s)var c=a.node.id,l=4;else if(".."===s)c=ke(a.path,{parent:!0}).node.id,l=4;else{var h=Re(a.node,s);c=h.id,l=8192==(61440&h.mode)?2:Le(h.mode)?4:40960==(61440&h.mode)?10:8}x=[c>>>0,(T=c,1<=+Math.abs(T)?0<T?+Math.floor(T/4294967296)>>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)],v[r+e>>2]=x[0],v[r+e+4>>2]=x[1],x=[280*(o+1)>>>0,(T=280*(o+1),1<=+Math.abs(T)?0<T?+Math.floor(T/4294967296)>>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)],v[r+e+8>>2]=x[0],v[r+e+12>>2]=x[1],b[r+e+16>>1]=280,p[r+e+18>>0]=l,ie(s,m,r+e+19,256),e+=280,o+=1}return We(a,280*o,0),e}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Sh}},lc:function(e,r,t){er=t;try{var a=Me(e);switch(r){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return a.Oh?0:-59;case 21505:if(!a.Oh)return-59;if(a.Oh.Zh.Ti){e=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var i=rr();v[i>>2]=25856,v[i+4>>2]=5,v[i+8>>2]=191,v[i+12>>2]=35387;for(var n=0;32>n;n++)p[i+n+17>>0]=e[n]||0}return 0;case 21506:case 21507:case 21508:if(!a.Oh)return-59;if(a.Oh.Zh.Ui)for(i=rr(),e=[],n=0;32>n;n++)e.push(p[i+n+17>>0]);return 0;case 21519:return a.Oh?(i=rr(),v[i>>2]=0):-59;case 21520:return a.Oh?-28:-59;case 21531:if(i=rr(),!a.Nh.Si)throw new ge(59);return a.Nh.Si(a,r,i);case 21523:return a.Oh?(a.Oh.Zh.Vi&&(n=[24,80],i=rr(),b[i>>1]=n[0],b[i+2>>1]=n[1]),0):-59;default:return-28}}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Sh}},Ma:function(e,r,t,a){er=a;try{return Ge(r=Je(e,r=r?re(m,r):""),t,a?rr():0).$h}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Sh}},cc:function(e,r,t,a){try{if(r=Je(e,r=r?re(m,r):""),0>=a)return-28;var i=Ze(r),n=Math.min(a,ae(i)),_=p[t+n];return ie(i,m,t,a+1),p[t+n]=_,n}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Sh}},hc:function(e,r){try{var t=ke(e=e?re(m,e):"",{mi:!0}).node;if(!t)throw new ge(44);if(!t.Lh.Uh)throw new ge(63);var a=t.Lh.Uh(t);v[r>>2]=a.Ni,v[r+4>>2]=a.mode,E[r+8>>2]=a.Zi,v[r+12>>2]=a.uid,v[r+16>>2]=a.Pi,v[r+20>>2]=a.ji,x=[a.size>>>0,(T=a.size,1<=+Math.abs(T)?0<T?+Math.floor(T/4294967296)>>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)],v[r+24>>2]=x[0],v[r+28>>2]=x[1],v[r+32>>2]=4096,v[r+36>>2]=a.Li;var i=a.Ji.getTime(),n=a.Yi.getTime(),_=a.Mi.getTime();return x=[Math.floor(i/1e3)>>>0,(T=Math.floor(i/1e3),1<=+Math.abs(T)?0<T?+Math.floor(T/4294967296)>>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)],v[r+40>>2]=x[0],v[r+44>>2]=x[1],E[r+48>>2]=i%1e3*1e3,x=[Math.floor(n/1e3)>>>0,(T=Math.floor(n/1e3),1<=+Math.abs(T)?0<T?+Math.floor(T/4294967296)>>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)],v[r+56>>2]=x[0],v[r+60>>2]=x[1],E[r+64>>2]=n%1e3*1e3,x=[Math.floor(_/1e3)>>>0,(T=Math.floor(_/1e3),1<=+Math.abs(T)?0<T?+Math.floor(T/4294967296)>>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)],v[r+72>>2]=x[0],v[r+76>>2]=x[1],E[r+80>>2]=_%1e3*1e3,x=[a.Ei>>>0,(T=a.Ei,1<=+Math.abs(T)?0<T?+Math.floor(T/4294967296)>>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)],v[r+88>>2]=x[0],v[r+92>>2]=x[1],0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Sh}},dc:function(e,r){try{return Ke(e=e?re(m,e):"",r=r?re(m,r):""),0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Sh}},ac:function(e,r,t){try{if(r=Je(e,r=r?re(m,r):""),0===t){var a=r,i=ke(a,{parent:!0}).node;if(!i)throw new ge(44);var n=$(a),_=Re(i,n),o=Pe(i,n,!1);if(o)throw new ge(o);if(!i.Lh.vi)throw new ge(63);if(_.gi)throw new ge(10);i.Lh.vi(i,n),Ne(_)}else if(512===t){a=ke(i=r,{parent:!0}).node;var s=$(i),c=Re(a,s),l=Pe(a,s,!0);if(l)throw new ge(l);if(!a.Lh.ri)throw new ge(63);if(c.gi)throw new ge(10);a.Lh.ri(a,s),Ne(c)}else C("Invalid flags passed to unlinkat");return 0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Sh}},mc:function(e){if(jr.has(e)){var r=jr.get(e),t=jr;t.fi[e]=void 0,t.Th.push(e),0<r.readyState&&4>r.readyState&&r.abort()}},jc:()=>1,ub:function(e,r,t){e=new Date(1e3*(r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN)),v[t>>2]=e.getUTCSeconds(),v[t+4>>2]=e.getUTCMinutes(),v[t+8>>2]=e.getUTCHours(),v[t+12>>2]=e.getUTCDate(),v[t+16>>2]=e.getUTCMonth(),v[t+20>>2]=e.getUTCFullYear()-1900,v[t+24>>2]=e.getUTCDay(),v[t+28>>2]=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},vb:function(e,r,t){e=new Date(1e3*(r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN)),v[t>>2]=e.getSeconds(),v[t+4>>2]=e.getMinutes(),v[t+8>>2]=e.getHours(),v[t+12>>2]=e.getDate(),v[t+16>>2]=e.getMonth(),v[t+20>>2]=e.getFullYear()-1900,v[t+24>>2]=e.getDay(),v[t+28>>2]=(ar(e.getFullYear())?ir:nr)[e.getMonth()]+e.getDate()-1|0,v[t+36>>2]=-60*e.getTimezoneOffset(),r=new Date(e.getFullYear(),6,1).getTimezoneOffset();var a=new Date(e.getFullYear(),0,1).getTimezoneOffset();v[t+32>>2]=0|(r!=a&&e.getTimezoneOffset()==Math.min(a,r))},bc:(e,r,t)=>{function a(e){return(e=e.toTimeString().match(/\(([A-Za-z ]+)\)$/))?e[1]:"GMT"}var i=(new Date).getFullYear(),n=new Date(i,0,1),_=new Date(i,6,1);i=n.getTimezoneOffset();var o=_.getTimezoneOffset();E[e>>2]=60*Math.max(i,o),v[r>>2]=Number(i!=o),e=a(n),r=a(_),e=_r(e),r=_r(r),o<i?(E[t>>2]=e,E[t+4>>2]=r):(E[t>>2]=r,E[t+4>>2]=e)},F:()=>{C("")},pb:function(){self.postMessage({t:"gfx"})},rb:function(){var e=new URL(location.origin).hostname;if(0===e.length&&(e=new URL(location.href.replace("blob:","")).hostname),/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e))0===e.indexOf("10.")&&(e="10.*"),0===e.indexOf("192.168.")&&(e="192.168.*"),0===e.indexOf("172.")&&(e="172.*"),0===e.indexOf("127.")&&(e="127.*");else{var r=new RegExp("("+String.fromCharCode(92)+".ngrok"+String.fromCharCode(92)+".io)$","i");r.test(e)&&(e="*.ngrok.io"),(r=new RegExp("("+String.fromCharCode(92)+".ngrok-free"+String.fromCharCode(92)+".app)$","i")).test(e)&&(e="*.ngrok.io"),(r=new RegExp("("+String.fromCharCode(92)+".arweb"+String.fromCharCode(92)+".app)$","i")).test(e)&&(e="*.arweb.app")}r=ae(e)+1;var t=ct(r);return ie(e,m,t,r+1),t},qb:function(){self.postMessage({t:"licerr"})},Ha:(e,r,t)=>{function a(){Vr(e)(r)}0<=t?cr(a,t):function(e){Tr((()=>{sr(e)}))}(a)},ta:()=>Date.now(),Xb:()=>2147483648,ic:tr,oc:()=>!1,kc:(e,r,t)=>m.copyWithin(e,r,r+t),$b:e=>{var r=m.length;if(2147483648<(e>>>=0))return!1;for(var t=1;4>=t;t*=2){var a=r*(1+.2/t);a=Math.min(a,e+100663296);var i=Math;a=Math.max(e,a);e:{i=(i.min.call(i,2147483648,a+(65536-a%65536)%65536)-f.buffer.byteLength+65535)/65536;try{f.grow(i),A();var n=1;break e}catch(e){}n=void 0}if(n)return!0}return!1},nc:function(e,r,t,a,i){function n(e){u?e():sr(e)}var _=e+112,o=E[_+36>>2],s=E[_+40>>2],c=E[_+44>>2],l=E[_+48>>2],h=E[_+52>>2],u=!!(64&h),f=e=>{n((()=>{o?Vr(o)(e):r?.(e)}))},d=e=>{n((()=>{c?Vr(c)(e):a?.(e)}))},p=e=>{n((()=>{s?Vr(s)(e):t?.(e)}))},b=e=>{n((()=>{l?Vr(l)(e):i?.(e)}))},v=e=>{Dr(e,f,p,d,b)},g=(e,t)=>{Zr(e,t.response,(e=>{n((()=>{o?Vr(o)(e):r?.(e)}))}),(e=>{n((()=>{o?Vr(o)(e):r?.(e)}))}))},y=Qe(_+0),k=!!(16&h),A=!!(4&h);if(h=!!(32&h),"EM_IDB_STORE"===y)v=E[_+84>>2],Zr(e,m.slice(v,v+E[_+88>>2]),f,p);else if("EM_IDB_DELETE"===y)!function(e,r,t){var a=Br;if(a){var i=E[e+112+64>>2];i||=E[e+8>>2],i=i?re(m,i):"";try{var n=a.transaction(["FILES"],"readwrite").objectStore("FILES").delete(i);n.onsuccess=t=>{t=t.target.result,E[e+12>>2]=0,Kr(e+16,0),Kr(e+24,0),Kr(e+32,0),w[e+40>>1]=4,w[e+42>>1]=200,ie("OK",m,e+44,64),r(e,0,t)},n.onerror=r=>{w[e+40>>1]=4,w[e+42>>1]=404,ie("Not Found",m,e+44,64),t(e,0,r)}}catch(r){t(e,0,r)}}else t(e,0,"IndexedDB not available!")}(e,f,p);else if(k){if(h)return 0;Dr(e,A?g:f,p,d,b)}else!function(e,r,t){var a=Br;if(a){var i=E[e+112+64>>2];i||=E[e+8>>2],i=i?re(m,i):"";try{var n=a.transaction(["FILES"],"readonly").objectStore("FILES").get(i);n.onsuccess=a=>{if(a.target.result){var i=(a=a.target.result).byteLength||a.length,n=ct(i);m.set(new Uint8Array(a),n),E[e+12>>2]=n,Kr(e+16,i),Kr(e+24,0),Kr(e+32,i),w[e+40>>1]=4,w[e+42>>1]=200,ie("OK",m,e+44,64),r(e,0,a)}else w[e+40>>1]=4,w[e+42>>1]=404,ie("Not Found",m,e+44,64),t(e,0,"no data")},n.onerror=r=>{w[e+40>>1]=4,w[e+42>>1]=404,ie("Not Found",m,e+44,64),t(e,0,r)}}catch(r){t(e,0,r)}}else t(e,0,"IndexedDB not available!")}(e,f,h?p:A?e=>{Dr(e,g,p,d,b)}:v);return e},fc:(e,r)=>{var t=0;return Hr().forEach(((a,i)=>{var n=r+t;for(i=E[e+4*i>>2]=n,n=0;n<a.length;++n)p[i++>>0]=a.charCodeAt(n);p[i>>0]=0,t+=a.length+1})),0},gc:(e,r)=>{var t=Hr();E[e>>2]=t.length;var a=0;return t.forEach((e=>a+=e.length+1)),E[r>>2]=a,0},qc:e=>{d=e,or(e)},ba:function(e){try{var r=Me(e);if(null===r.$h)throw new ge(8);r.bi&&(r.bi=null);try{r.Nh.close&&r.Nh.close(r)}catch(e){throw e}finally{be[r.$h]=null}return r.$h=null,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.Sh}},Na:function(e,r,t,a){try{e:{var i=Me(e);e=r;for(var n,_=r=0;_<t;_++){var o=E[e>>2],s=E[e+4>>2];e+=8;var c=i,l=n,h=p;if(0>s||0>l)throw new ge(28);if(null===c.$h)throw new ge(8);if(1==(2097155&c.flags))throw new ge(8);if(Le(c.node.mode))throw new ge(31);if(!c.Nh.read)throw new ge(28);var u=void 0!==l;if(u){if(!c.seekable)throw new ge(70)}else l=c.position;var f=c.Nh.read(c,h,o,s,l);u||(c.position+=f);var d=f;if(0>d){var m=-1;break e}if(r+=d,d<s)break;void 0!==n&&(n+=d)}m=r}return E[a>>2]=m,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.Sh}},wb:function(e,r,t,a,i){r=t+2097152>>>0<4194305-!!r?(r>>>0)+4294967296*t:NaN;try{if(isNaN(r))return 61;var n=Me(e);return We(n,r,a),x=[n.position>>>0,(T=n.position,1<=+Math.abs(T)?0<T?+Math.floor(T/4294967296)>>>0:~~+Math.ceil((T-+(~~T>>>0))/4294967296)>>>0:0)],v[i>>2]=x[0],v[i+4>>2]=x[1],n.bi&&0===r&&0===a&&(n.bi=null),0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.Sh}},ua:function(e,r,t,a){try{e:{var i=Me(e);e=r;for(var n,_=r=0;_<t;_++){var o=E[e>>2],s=E[e+4>>2];e+=8;var c=i,l=o,h=s,u=n,f=p;if(0>h||0>u)throw new ge(28);if(null===c.$h)throw new ge(8);if(0==(2097155&c.flags))throw new ge(8);if(Le(c.node.mode))throw new ge(31);if(!c.Nh.write)throw new ge(28);c.seekable&&1024&c.flags&&We(c,0,2);var d=void 0!==u;if(d){if(!c.seekable)throw new ge(70)}else u=c.position;var m=c.Nh.write(c,f,l,h,u,void 0);d||(c.position+=m);var b=m;if(0>b){var w=-1;break e}r+=b,void 0!==n&&(n+=b)}w=r}return E[a>>2]=w,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.Sh}},Ka:(e,r)=>{nt.bindTexture(e,$r[r])},La:(e,r)=>{for(var t=0;t<e;t++){var a=nt.createTexture(),i=a&&Jr($r);a?(a.name=i,$r[i]=a):Wr||=1282,v[r+4*t>>2]=i}},qa:(e,r,t,a,i,n,_,o,s)=>{var c=nt,l=c.texImage2D;if(s){var h=o-5120;h=1==h?m:4==h?v:6==h?g:5==h||28922==h?E:w;var u=31-Math.clz32(h.BYTES_PER_ELEMENT);s=h.subarray(s>>u,s+i*(a*({5:3,6:4,8:2,29502:3,29504:4}[_-6402]||1)*(1<<u)+4-1&-4)>>u)}else s=null;l.call(c,e,r,t,a,i,n,_,o,s)},ra:function(e,r,t){nt.texParameteri(e,r,t)},y:function(e){var r=ft();try{return Vr(e)()}catch(e){if(dt(r),e!==e+0)throw e;ht(1,0)}},ka:function(e,r){var t=ft();try{return Vr(e)(r)}catch(e){if(dt(t),e!==e+0)throw e;ht(1,0)}},pc:function(e,r,t){var a=ft();try{return Vr(e)(r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},Ca:function(e,r,t){var a=ft();try{return Vr(e)(r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},P:function(e,r,t,a){var i=ft();try{return Vr(e)(r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},eb:function(e,r,t,a,i){var n=ft();try{return Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},xa:function(e,r,t,a,i,n,_,o){var s=ft();try{return Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},Ib:function(e,r,t,a,i){var n=ft();try{return Ct(e,r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},xb:function(e,r,t,a,i){var n=ft();try{return Gt(e,r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Q:function(e,r){var t=ft();try{return Vr(e)(r)}catch(e){if(dt(t),e!==e+0)throw e;ht(1,0)}},ca:function(e,r,t){var a=ft();try{return Vr(e)(r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},da:function(e,r,t,a){var i=ft();try{return Vr(e)(r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},Za:function(e,r,t,a,i,n){var _=ft();try{return Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},s:function(e){var r=ft();try{return Vr(e)()}catch(e){if(dt(r),e!==e+0)throw e;ht(1,0)}},Oa:function(e,r,t,a,i){var n=ft();try{return Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Wa:function(e,r,t,a,i,n){var _=ft();try{return Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},b:function(e,r){var t=ft();try{return Vr(e)(r)}catch(e){if(dt(t),e!==e+0)throw e;ht(1,0)}},r:function(e,r,t){var a=ft();try{return Vr(e)(r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},$:function(e,r,t,a){var i=ft();try{return Vr(e)(r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},la:function(e,r,t,a,i){var n=ft();try{return Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},tc:function(e,r,t,a,i){var n=ft();try{return Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Ra:function(e,r,t,a){var i=ft();try{return Vr(e)(r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},ea:function(e,r,t){var a=ft();try{return Vr(e)(r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},Ya:function(e,r,t,a,i){var n=ft();try{return Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Xa:function(e,r,t,a,i,n){var _=ft();try{return Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},f:function(e,r,t){var a=ft();try{return Vr(e)(r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},U:function(e,r,t,a){var i=ft();try{return Vr(e)(r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},fb:function(e,r,t,a,i){var n=ft();try{return Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},sc:function(e,r,t,a,i,n,_,o){var s=ft();try{return Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},Va:function(e,r,t,a,i,n,_,o,s,c,l,h,u){var f=ft();try{return Vr(e)(r,t,a,i,n,_,o,s,c,l,h,u)}catch(e){if(dt(f),e!==e+0)throw e;ht(1,0)}},ya:function(e,r,t,a,i,n){var _=ft();try{return Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},jb:function(e,r,t,a,i,n){var _=ft();try{return Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},d:function(e,r,t,a){var i=ft();try{return Vr(e)(r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},Qa:function(e,r,t,a,i,n){var _=ft();try{return Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},l:function(e,r,t,a,i){var n=ft();try{return Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Pa:function(e,r,t,a,i,n){var _=ft();try{return Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},fa:function(e,r,t,a,i,n,_){var o=ft();try{return Vr(e)(r,t,a,i,n,_)}catch(e){if(dt(o),e!==e+0)throw e;ht(1,0)}},Ea:function(e,r,t,a,i,n,_,o,s){var c=ft();try{return Vr(e)(r,t,a,i,n,_,o,s)}catch(e){if(dt(c),e!==e+0)throw e;ht(1,0)}},u:function(e,r,t,a,i,n){var _=ft();try{return Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},z:function(e,r,t,a,i,n,_){var o=ft();try{return Vr(e)(r,t,a,i,n,_)}catch(e){if(dt(o),e!==e+0)throw e;ht(1,0)}},w:function(e,r,t,a,i,n,_,o){var s=ft();try{return Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},mb:function(e,r,t,a,i,n,_,o,s,c,l){var h=ft();try{return Vr(e)(r,t,a,i,n,_,o,s,c,l)}catch(e){if(dt(h),e!==e+0)throw e;ht(1,0)}},G:function(e,r,t,a,i,n,_,o,s){var c=ft();try{return Vr(e)(r,t,a,i,n,_,o,s)}catch(e){if(dt(c),e!==e+0)throw e;ht(1,0)}},aa:function(e,r,t,a,i,n,_,o,s,c){var l=ft();try{return Vr(e)(r,t,a,i,n,_,o,s,c)}catch(e){if(dt(l),e!==e+0)throw e;ht(1,0)}},L:function(e,r,t,a,i,n,_,o,s,c,l){var h=ft();try{return Vr(e)(r,t,a,i,n,_,o,s,c,l)}catch(e){if(dt(h),e!==e+0)throw e;ht(1,0)}},ha:function(e,r,t,a,i,n,_,o,s,c,l,h){var u=ft();try{return Vr(e)(r,t,a,i,n,_,o,s,c,l,h)}catch(e){if(dt(u),e!==e+0)throw e;ht(1,0)}},tb:function(e,r,t,a,i,n,_){var o=ft();try{return Wt(e,r,t,a,i,n,_)}catch(e){if(dt(o),e!==e+0)throw e;ht(1,0)}},zb:function(e,r,t,a,i,n){var _=ft();try{return Kt(e,r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},Hb:function(e,r,t,a,i,n,_,o,s){var c=ft();try{return Mt(e,r,t,a,i,n,_,o,s)}catch(e){if(dt(c),e!==e+0)throw e;ht(1,0)}},Kb:function(e,r,t,a,i,n,_,o,s,c,l){var h=ft();try{return Pt(e,r,t,a,i,n,_,o,s,c,l)}catch(e){if(dt(h),e!==e+0)throw e;ht(1,0)}},Mb:function(e,r,t,a,i){var n=ft();try{return xt(e,r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Sb:function(e,r,t,a){var i=ft();try{return zt(e,r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},Qb:function(e,r,t,a,i){var n=ft();try{return Nt(e,r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Ob:function(e,r,t,a,i,n){var _=ft();try{return St(e,r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},Gb:function(e,r,t,a,i,n,_,o,s,c,l,h,u,f,d){var p=ft();try{return Ft(e,r,t,a,i,n,_,o,s,c,l,h,u,f,d)}catch(e){if(dt(p),e!==e+0)throw e;ht(1,0)}},Ab:function(e,r,t,a){var i=ft();try{return Dt(e,r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},Vb:function(e){var r=ft();try{return Et(e)}catch(e){if(dt(r),e!==e+0)throw e;ht(1,0)}},Lb:function(e,r){var t=ft();try{return It(e,r)}catch(e){if(dt(t),e!==e+0)throw e;ht(1,0)}},Eb:function(e,r,t){var a=ft();try{return Bt(e,r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},Fb:function(e,r,t,a){var i=ft();try{return jt(e,r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},sb:function(e,r,t,a,i){var n=ft();try{return Xt(e,r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Pb:function(e,r,t,a){var i=ft();try{return Tt(e,r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},Nb:function(e,r,t,a,i){var n=ft();try{return Lt(e,r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},yb:function(e,r,t){var a=ft();try{return Zt(e,r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},m:function(e){var r=ft();try{Vr(e)()}catch(e){if(dt(r),e!==e+0)throw e;ht(1,0)}},ib:function(e,r,t){var a=ft();try{Vr(e)(r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},M:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},g:function(e,r){var t=ft();try{Vr(e)(r)}catch(e){if(dt(t),e!==e+0)throw e;ht(1,0)}},Sa:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},ja:function(e,r,t,a,i,n,_){var o=ft();try{Vr(e)(r,t,a,i,n,_)}catch(e){if(dt(o),e!==e+0)throw e;ht(1,0)}},Ua:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},Ja:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},rc:function(e,r,t,a){var i=ft();try{Vr(e)(r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},X:function(e,r,t,a,i){var n=ft();try{Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},lb:function(e,r,t){var a=ft();try{Vr(e)(r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},Ta:function(e,r,t,a,i){var n=ft();try{Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},$a:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},e:function(e,r,t){var a=ft();try{Vr(e)(r,t)}catch(e){if(dt(a),e!==e+0)throw e;ht(1,0)}},t:function(e,r,t,a){var i=ft();try{Vr(e)(r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},S:function(e,r,t,a,i){var n=ft();try{Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},N:function(e,r,t,a){var i=ft();try{Vr(e)(r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},Z:function(e,r,t,a,i){var n=ft();try{Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},za:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},ab:function(e,r,t,a,i,n,_,o,s){var c=ft();try{Vr(e)(r,t,a,i,n,_,o,s)}catch(e){if(dt(c),e!==e+0)throw e;ht(1,0)}},O:function(e,r,t,a,i){var n=ft();try{Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},h:function(e,r,t,a){var i=ft();try{Vr(e)(r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},ma:function(e,r,t,a,i){var n=ft();try{Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},wa:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},gb:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},db:function(e,r,t,a,i,n,_,o){var s=ft();try{Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},cb:function(e,r,t,a,i,n,_,o,s){var c=ft();try{Vr(e)(r,t,a,i,n,_,o,s)}catch(e){if(dt(c),e!==e+0)throw e;ht(1,0)}},ga:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},Ga:function(e,r,t,a,i,n,_,o){var s=ft();try{Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},W:function(e,r,t,a,i,n,_,o,s,c,l,h){var u=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l,h)}catch(e){if(dt(u),e!==e+0)throw e;ht(1,0)}},nb:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},oa:function(e,r,t,a,i,n,_){var o=ft();try{Vr(e)(r,t,a,i,n,_)}catch(e){if(dt(o),e!==e+0)throw e;ht(1,0)}},k:function(e,r,t,a,i){var n=ft();try{Vr(e)(r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Aa:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},ob:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},_a:function(e,r,t,a,i,n,_,o,s,c,l){var h=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l)}catch(e){if(dt(h),e!==e+0)throw e;ht(1,0)}},Fa:function(e,r,t,a,i,n,_,o){var s=ft();try{Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},pa:function(e,r,t,a,i,n,_){var o=ft();try{Vr(e)(r,t,a,i,n,_)}catch(e){if(dt(o),e!==e+0)throw e;ht(1,0)}},bb:function(e,r,t,a,i,n,_,o){var s=ft();try{Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},kb:function(e,r,t,a,i,n,_,o,s){var c=ft();try{Vr(e)(r,t,a,i,n,_,o,s)}catch(e){if(dt(c),e!==e+0)throw e;ht(1,0)}},j:function(e,r,t,a,i,n){var _=ft();try{Vr(e)(r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},V:function(e,r,t,a,i,n,_){var o=ft();try{Vr(e)(r,t,a,i,n,_)}catch(e){if(dt(o),e!==e+0)throw e;ht(1,0)}},hb:function(e,r,t,a,i,n,_,o){var s=ft();try{Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},_:function(e,r,t,a,i,n,_,o){var s=ft();try{Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},o:function(e,r,t,a,i,n,_){var o=ft();try{Vr(e)(r,t,a,i,n,_)}catch(e){if(dt(o),e!==e+0)throw e;ht(1,0)}},A:function(e,r,t,a,i,n,_,o){var s=ft();try{Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},na:function(e,r,t,a,i,n,_,o){var s=ft();try{Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},p:function(e,r,t,a,i,n,_,o){var s=ft();try{Vr(e)(r,t,a,i,n,_,o)}catch(e){if(dt(s),e!==e+0)throw e;ht(1,0)}},v:function(e,r,t,a,i,n,_,o,s,c,l,h,u){var f=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l,h,u)}catch(e){if(dt(f),e!==e+0)throw e;ht(1,0)}},R:function(e,r,t,a,i,n,_,o,s,c){var l=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c)}catch(e){if(dt(l),e!==e+0)throw e;ht(1,0)}},Y:function(e,r,t,a,i,n,_,o,s,c,l,h,u){var f=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l,h,u)}catch(e){if(dt(f),e!==e+0)throw e;ht(1,0)}},C:function(e,r,t,a,i,n,_,o,s){var c=ft();try{Vr(e)(r,t,a,i,n,_,o,s)}catch(e){if(dt(c),e!==e+0)throw e;ht(1,0)}},E:function(e,r,t,a,i,n,_,o,s,c){var l=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c)}catch(e){if(dt(l),e!==e+0)throw e;ht(1,0)}},I:function(e,r,t,a,i,n,_,o,s,c,l){var h=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l)}catch(e){if(dt(h),e!==e+0)throw e;ht(1,0)}},Ba:function(e,r,t,a,i,n,_,o,s,c,l,h){var u=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l,h)}catch(e){if(dt(u),e!==e+0)throw e;ht(1,0)}},J:function(e,r,t,a,i,n,_,o,s,c,l,h,u,f){var d=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l,h,u,f)}catch(e){if(dt(d),e!==e+0)throw e;ht(1,0)}},D:function(e,r,t,a,i,n,_,o,s,c,l,h){var u=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l,h)}catch(e){if(dt(u),e!==e+0)throw e;ht(1,0)}},K:function(e,r,t,a,i,n,_,o,s,c,l,h,u){var f=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l,h,u)}catch(e){if(dt(f),e!==e+0)throw e;ht(1,0)}},Da:function(e,r,t,a,i,n,_,o,s,c,l,h,u,f){var d=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l,h,u,f)}catch(e){if(dt(d),e!==e+0)throw e;ht(1,0)}},va:function(e,r,t,a,i,n,_,o,s,c,l,h,u,f,d){var p=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l,h,u,f,d)}catch(e){if(dt(p),e!==e+0)throw e;ht(1,0)}},ia:function(e,r,t,a,i,n,_,o,s,c,l,h,u,f,d,p){var m=ft();try{Vr(e)(r,t,a,i,n,_,o,s,c,l,h,u,f,d,p)}catch(e){if(dt(m),e!==e+0)throw e;ht(1,0)}},Ub:function(e,r,t,a,i,n){var _=ft();try{kt(e,r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},Wb:function(e,r,t,a,i){var n=ft();try{gt(e,r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Jb:function(e,r,t,a,i,n){var _=ft();try{Ot(e,r,t,a,i,n)}catch(e){if(dt(_),e!==e+0)throw e;ht(1,0)}},Rb:function(e,r,t,a,i,n,_){var o=ft();try{yt(e,r,t,a,i,n,_)}catch(e){if(dt(o),e!==e+0)throw e;ht(1,0)}},Tb:function(e,r,t,a){var i=ft();try{At(e,r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},Db:function(e,r,t,a,i){var n=ft();try{Rt(e,r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},Bb:function(e,r,t,a){var i=ft();try{Vt(e,r,t,a)}catch(e){if(dt(i),e!==e+0)throw e;ht(1,0)}},Cb:function(e,r,t,a,i){var n=ft();try{Ut(e,r,t,a,i)}catch(e){if(dt(n),e!==e+0)throw e;ht(1,0)}},B:e=>e,Yb:(e,r,t,a)=>((e,r,t,a)=>{function i(e,r,t){for(e="number"==typeof e?e.toString():e||"";e.length<r;)e=t[0]+e;return e}function n(e,r){return i(e,r,"0")}function _(e,r){function t(e){return 0>e?-1:0<e?1:0}var a;return 0===(a=t(e.getFullYear()-r.getFullYear()))&&0===(a=t(e.getMonth()-r.getMonth()))&&(a=t(e.getDate()-r.getDate())),a}function o(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function s(e){var r=e.di;for(e=new Date(new Date(e.ei+1900,0,1).getTime());0<r;){var t=e.getMonth(),a=(ar(e.getFullYear())?tt:at)[t];if(!(r>a-e.getDate())){e.setDate(e.getDate()+r);break}r-=a-e.getDate()+1,e.setDate(1),11>t?e.setMonth(t+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return t=new Date(e.getFullYear()+1,0,4),r=o(new Date(e.getFullYear(),0,4)),t=o(t),0>=_(r,e)?0>=_(t,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var c=E[a+40>>2];for(var l in a={bj:v[a>>2],aj:v[a+4>>2],ti:v[a+8>>2],Ai:v[a+12>>2],ui:v[a+16>>2],ei:v[a+20>>2],Xh:v[a+24>>2],di:v[a+28>>2],wj:v[a+32>>2],$i:v[a+36>>2],cj:c&&c?re(m,c):""},t=t?re(m,t):"",c={"%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"})t=t.replace(new RegExp(l,"g"),c[l]);var h="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),u="January February March April May June July August September October November December".split(" ");for(l in c={"%a":e=>h[e.Xh].substring(0,3),"%A":e=>h[e.Xh],"%b":e=>u[e.ui].substring(0,3),"%B":e=>u[e.ui],"%C":e=>n((e.ei+1900)/100|0,2),"%d":e=>n(e.Ai,2),"%e":e=>i(e.Ai,2," "),"%g":e=>s(e).toString().substring(2),"%G":s,"%H":e=>n(e.ti,2),"%I":e=>(0==(e=e.ti)?e=12:12<e&&(e-=12),n(e,2)),"%j":e=>{for(var r=0,t=0;t<=e.ui-1;r+=(ar(e.ei+1900)?tt:at)[t++]);return n(e.Ai+r,3)},"%m":e=>n(e.ui+1,2),"%M":e=>n(e.aj,2),"%n":()=>"\n","%p":e=>0<=e.ti&&12>e.ti?"AM":"PM","%S":e=>n(e.bj,2),"%t":()=>"\t","%u":e=>e.Xh||7,"%U":e=>n(Math.floor((e.di+7-e.Xh)/7),2),"%V":e=>{var r=Math.floor((e.di+7-(e.Xh+6)%7)/7);if(2>=(e.Xh+371-e.di-2)%7&&r++,r)53==r&&(4==(t=(e.Xh+371-e.di)%7)||3==t&&ar(e.ei)||(r=1));else{r=52;var t=(e.Xh+7-e.di-1)%7;(4==t||5==t&&ar(e.ei%400-1))&&r++}return n(r,2)},"%w":e=>e.Xh,"%W":e=>n(Math.floor((e.di+7-(e.Xh+6)%7)/7),2),"%y":e=>(e.ei+1900).toString().substring(2),"%Y":e=>e.ei+1900,"%z":e=>{var r=0<=(e=e.$i);return e=Math.abs(e)/60,(r?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":e=>e.cj,"%%":()=>"%"},t=t.replace(/%%/g,"\0\0"),c)t.includes(l)&&(t=t.replace(new RegExp(l,"g"),c[l](a)));return(l=ne(t=t.replace(/\0\0/g,"%"),!1)).length>r?0:(p.set(l,e),l.length-1)})(e,r,t,a)},ot=function(){function e(e){return ot=e.exports,f=ot.uc,A(),Cr=ot.zc,N.unshift(ot.vc),O(),ot}var r={a:_t};if(F(),i.instantiateWasm)try{return i.instantiateWasm(r,e)}catch(e){u(`Module.instantiateWasm callback failed with error: ${e}`),a(e)}return r=function(e){if(L==L&&l)var r=new Uint8Array(l);else{if(!n)throw'sync fetching of the wasm failed: you can preload it to Module["wasmBinary"] manually, or emcc.py will do that for you when generating HTML (but not JS)';r=n(L)}return r=new WebAssembly.Module(r),[new WebAssembly.Instance(r,e),r]}(r),e(r[0])}();i._zappar_has_initialized=ot.wc,i._zappar_invert=ot.xc,i._zappar_loaded=ot.yc,i._zappar_pipeline_create=ot.Ac,i._zappar_pipeline_destroy=ot.Bc,i._zappar_pipeline_camera_frame_submit=ot.Cc,i._zappar_pipeline_camera_frame_submit_raw_pointer=ot.Dc,i._zappar_pipeline_frame_update=ot.Ec,i._zappar_pipeline_camera_frame_user_data=ot.Fc,i._zappar_pipeline_camera_model=ot.Gc,i._zappar_pipeline_frame_number=ot.Hc,i._zappar_pipeline_camera_frame_data_raw_size=ot.Ic,i._zappar_pipeline_camera_frame_data_raw_width=ot.Jc,i._zappar_pipeline_camera_frame_data_raw_height=ot.Kc,i._zappar_pipeline_camera_frame_data_raw=ot.Lc,i._zappar_pipeline_motion_accelerometer_submit=ot.Mc,i._zappar_pipeline_motion_accelerometer_with_gravity_submit_int=ot.Nc,i._zappar_pipeline_motion_accelerometer_without_gravity_submit_int=ot.Oc,i._zappar_pipeline_motion_rotation_rate_submit_int=ot.Pc,i._zappar_pipeline_motion_attitude_submit_int=ot.Qc,i._zappar_pipeline_motion_rotation_rate_submit=ot.Rc,i._zappar_pipeline_motion_attitude_submit=ot.Sc,i._zappar_pipeline_motion_attitude_matrix_submit=ot.Tc,i._zappar_pipeline_camera_frame_user_facing=ot.Uc,i._zappar_pipeline_camera_frame_texture_matrix=ot.Vc,i._zappar_pipeline_camera_pose_with_attitude=ot.Wc,i._zappar_pipeline_camera_pose_with_origin=ot.Xc,i._zappar_pipeline_camera_frame_camera_attitude=ot.Yc,i._zappar_pipeline_camera_frame_device_attitude=ot.Zc,i._zappar_pipeline_camera_frame_texture_gl=ot._c,i._zappar_pipeline_camera_frame_upload_gl=ot.$c,i._zappar_pipeline_sequence_record_start=ot.ad,i._zappar_pipeline_sequence_record_stop=ot.bd,i._zappar_pipeline_sequence_record_clear=ot.cd,i._zappar_pipeline_sequence_record_device_attitude_matrices_set=ot.dd,i._zappar_pipeline_sequence_record_data_size=ot.ed,i._zappar_pipeline_sequence_record_data=ot.fd,i._zappar_pipeline_process_gl=ot.gd,i._zappar_pipeline_camera_pose_default=ot.hd,i._zappar_instant_world_tracker_create=ot.id,i._zappar_instant_world_tracker_destroy=ot.jd,i._zappar_instant_world_tracker_anchor_pose_set_from_camera_offset_raw=ot.kd,i._zappar_instant_world_tracker_anchor_pose_raw=ot.ld,i._zappar_instant_world_tracker_enabled_set=ot.md,i._zappar_instant_world_tracker_enabled=ot.nd,i._zappar_image_tracker_create=ot.od,i._zappar_image_tracker_destroy=ot.pd,i._zappar_image_tracker_target_load_from_memory=ot.qd,i.__Z42zappar_image_tracker_target_load_from_fileP23zappar_image_tracker_tiPKc=ot.rd;var st=i._free=ot.sd;i._zappar_image_tracker_anchor_count=ot.td,i._zappar_image_tracker_anchor_id=ot.ud,i._zappar_image_tracker_anchor_pose_raw=ot.vd,i._zappar_image_tracker_enabled_set=ot.wd,i._zappar_image_tracker_enabled=ot.xd,i._zappar_image_tracker_target_loaded_version=ot.yd,i.__Z33zappar_image_tracker_target_countP23zappar_image_tracker_ti=ot.zd,i.__Z46zappar_image_tracker_target_preview_compressedP23zappar_image_tracker_tii=ot.Ad,i.__Z51zappar_image_tracker_target_preview_compressed_sizeP23zappar_image_tracker_tii=ot.Bd,i.__Z55zappar_image_tracker_target_preview_compressed_mimetypeP23zappar_image_tracker_tii=ot.Cd,i.__Z40zappar_image_tracker_target_preview_rgbaP23zappar_image_tracker_tii=ot.Dd,i.__Z45zappar_image_tracker_target_preview_rgba_sizeP23zappar_image_tracker_tii=ot.Ed,i.__Z46zappar_image_tracker_target_preview_rgba_widthP23zappar_image_tracker_tii=ot.Fd,i.__Z47zappar_image_tracker_target_preview_rgba_heightP23zappar_image_tracker_tii=ot.Gd,i.__Z38zappar_image_tracker_target_radius_topP23zappar_image_tracker_tii=ot.Hd,i.__Z41zappar_image_tracker_target_radius_bottomP23zappar_image_tracker_tii=ot.Id,i.__Z39zappar_image_tracker_target_side_lengthP23zappar_image_tracker_tii=ot.Jd,i.__Z49zappar_image_tracker_target_physical_scale_factorP23zappar_image_tracker_tii=ot.Kd,i.__Z49zappar_image_tracker_target_preview_mesh_verticesP23zappar_image_tracker_tii=ot.Ld,i.__Z48zappar_image_tracker_target_preview_mesh_normalsP23zappar_image_tracker_tii=ot.Md,i.__Z44zappar_image_tracker_target_preview_mesh_uvsP23zappar_image_tracker_tii=ot.Nd,i.__Z48zappar_image_tracker_target_preview_mesh_indicesP23zappar_image_tracker_tii=ot.Od,i.__Z54zappar_image_tracker_target_preview_mesh_vertices_sizeP23zappar_image_tracker_tii=ot.Pd,i.__Z53zappar_image_tracker_target_preview_mesh_normals_sizeP23zappar_image_tracker_tii=ot.Qd,i.__Z49zappar_image_tracker_target_preview_mesh_uvs_sizeP23zappar_image_tracker_tii=ot.Rd,i.__Z53zappar_image_tracker_target_preview_mesh_indices_sizeP23zappar_image_tracker_tii=ot.Sd,i.__Z32zappar_image_tracker_target_typeP23zappar_image_tracker_tii=ot.Td,i._zappar_face_tracker_create=ot.Ud,i._zappar_face_tracker_destroy=ot.Vd,i._zappar_face_tracker_model_load_from_memory=ot.Wd,i._zappar_face_tracker_anchor_count=ot.Xd,i._zappar_face_tracker_anchor_id=ot.Yd,i._zappar_face_tracker_anchor_pose_raw=ot.Zd,i._zappar_face_tracker_anchor_identity_coefficients=ot._d,i._zappar_face_tracker_anchor_expression_coefficients=ot.$d,i._zappar_face_tracker_enabled_set=ot.ae,i._zappar_face_tracker_enabled=ot.be,i._zappar_face_tracker_max_faces_set=ot.ce,i._zappar_face_tracker_max_faces=ot.de,i._zappar_face_tracker_model_loaded_version=ot.ee,i._zappar_face_landmark_create=ot.fe,i._zappar_face_landmark_destroy=ot.ge,i.__Z27zappar_face_landmark_updateP23zappar_face_landmark_tiPKfS2_i=ot.he,i._zappar_face_landmark_anchor_pose=ot.ie,i._zappar_barcode_finder_create=ot.je,i._zappar_barcode_finder_destroy=ot.ke,i._zappar_barcode_finder_found_number=ot.le,i._zappar_barcode_finder_found_text=ot.me,i._zappar_barcode_finder_enabled_set=ot.ne,i._zappar_barcode_finder_enabled=ot.oe,i._zappar_barcode_finder_found_format=ot.pe,i._zappar_barcode_finder_formats=ot.qe,i._zappar_barcode_finder_formats_set=ot.re,i._zappar_zapcode_tracker_create=ot.se,i._zappar_zapcode_tracker_destroy=ot.te,i._zappar_zapcode_tracker_target_load_from_memory=ot.ue,i.__Z44zappar_zapcode_tracker_target_load_from_fileP25zappar_zapcode_tracker_tiPKc=ot.ve,i._zappar_zapcode_tracker_anchor_count=ot.we,i._zappar_zapcode_tracker_anchor_id=ot.xe,i._zappar_zapcode_tracker_anchor_pose_raw=ot.ye,i._zappar_zapcode_tracker_enabled_set=ot.ze,i._zappar_zapcode_tracker_enabled=ot.Ae,i._zappar_zapcode_tracker_target_loaded_version=ot.Be;var ct=i._malloc=ot.Ce;i._zappar_face_mesh_create=ot.De,i._zappar_face_mesh_destroy=ot.Ee,i.__Z33zappar_face_mesh_load_from_memoryP19zappar_face_mesh_tiPKciiiii=ot.Fe,i.__Z29zappar_face_mesh_indices_sizeP19zappar_face_mesh_ti=ot.Ge,i.__Z25zappar_face_mesh_uvs_sizeP19zappar_face_mesh_ti=ot.He,i.__Z30zappar_face_mesh_vertices_sizeP19zappar_face_mesh_ti=ot.Ie,i.__Z31zappar_face_mesh_loaded_versionP19zappar_face_mesh_ti=ot.Je,i.__Z25zappar_face_mesh_verticesP19zappar_face_mesh_ti=ot.Ke,i.__Z20zappar_face_mesh_uvsP19zappar_face_mesh_ti=ot.Le,i.__Z24zappar_face_mesh_indicesP19zappar_face_mesh_ti=ot.Me,i.__Z23zappar_face_mesh_updateP19zappar_face_mesh_tiPKfS2_i=ot.Ne,i.__Z29zappar_face_mesh_normals_sizeP19zappar_face_mesh_ti=ot.Oe,i.__Z24zappar_face_mesh_normalsP19zappar_face_mesh_ti=ot.Pe,i._zappar_camera_source_create=ot.Qe,i._zappar_camera_source_destroy=ot.Re,i._zappar_camera_source_start=ot.Se,i._zappar_camera_source_pause=ot.Te,i._zappar_camera_default_device_id=ot.Ue,i._zappar_sequence_source_create=ot.Ve,i.__Z28zappar_sequence_source_startP25zappar_sequence_source_ti=ot.We,i.__Z39zappar_sequence_source_load_from_memoryP25zappar_sequence_source_tiPKci=ot.Xe,i.__Z28zappar_sequence_source_pauseP25zappar_sequence_source_ti=ot.Ye,i._zappar_sequence_source_destroy=ot.Ze,i._zappar_sequence_source_max_playback_fps_set=ot._e,i._zappar_log_level_set=ot.$e,i._zappar_log_level=ot.af,i.__Z23zappar_log_redirect_setPFv18zappar_log_level_tPKcE=ot.bf,i._zappar_world_tracker_create=ot.cf,i._zappar_world_tracker_destroy=ot.df,i._zappar_world_tracker_world_anchor_valid=ot.ef,i._zappar_world_tracker_plane_count=ot.ff,i._zappar_world_tracker_plane_pose_raw=ot.gf,i._zappar_world_tracker_world_anchor_pose_raw=ot.hf,i._zappar_world_tracker_ground_anchor_valid=ot.jf,i._zappar_world_tracker_ground_anchor_pose_raw=ot.kf,i._zappar_world_tracker_reset=ot.lf,i._zappar_world_tracker_enabled_set=ot.mf,i._zappar_world_tracker_quality=ot.nf,i._zappar_world_tracker_enabled=ot.of,i._zappar_world_tracker_debug_enabled=ot.pf,i._zappar_world_tracker_debug_enabled_set=ot.qf,i._zappar_world_tracker_debug_tracks_data=ot.rf,i._zappar_world_tracker_debug_tracks_data_size=ot.sf,i._zappar_world_tracker_debug_projections_data=ot.tf,i._zappar_world_tracker_debug_projections_data_size=ot.uf,i._worker_message_send_count=ot.vf,i._worker_message_send_clear=ot.wf,i._worker_message_send_data_size=ot.xf,i._worker_message_send_reference=ot.yf,i._worker_message_send_data=ot.zf,i._worker_message_receive=ot.Af,i._ceres_worker=ot.Bf,i._data_download_clear=ot.Cf,i._data_download_size=ot.Df,i._data_download=ot.Ef,i._data_should_record_set=ot.Ff,i._zappar_analytics_project_id_set=ot.Gf,i.__ZN5boost13serialization16singleton_module8get_lockEv=ot.Hf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem19InitializationInputEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.If,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Jf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKi5FrameEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Kf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE5FrameE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Lf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Mf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Nf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Of,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam5Pose3EE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Pf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Qf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Rf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam7imuBias12ConstantBiasEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Sf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26bitsetILm2EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Tf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Uf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE3ImuE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Vf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Wf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKi12WorldFeatureEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Xf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE12WorldFeatureE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Yf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Zf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam7Cal3_S2EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot._f,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam7Cal3_S2EE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.$f,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.ag,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam7Cal3_S2EE15load_object_ptrERNS1_14basic_iarchiveEPvj=ot.bg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam28PreintegrationCombinedParamsEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.cg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam28PreintegrationCombinedParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.dg,i.__ZN5boost13serialization18void_cast_registerIN5gtsam28PreintegrationCombinedParamsENS2_20PreintegrationParamsEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=ot.eg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam20PreintegrationParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.fg,i.__ZN5boost13serialization18void_cast_registerIN5gtsam20PreintegrationParamsENS2_27PreintegratedRotationParamsEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=ot.gg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam27PreintegratedRotationParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.hg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__28optionalIN5gtsam5Pose3EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.ig,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__28optionalIN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.jg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi3ELi3ELi0ELi3ELi3EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.kg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.lg,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam28PreintegrationCombinedParamsEE15load_object_ptrERNS1_14basic_iarchiveEPvj=ot.mg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem10ParametersEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.ng,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN2cv12TermCriteriaEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.og,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem20InitializationResultEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.pg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.qg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKi5FrameEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.rg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE5FrameE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.sg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.tg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ug,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.vg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam5Pose3EE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.wg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.xg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.yg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam7imuBias12ConstantBiasEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.zg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26bitsetILm2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ag,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Bg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE3ImuE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Cg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Dg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKi12WorldFeatureEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Eg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE12WorldFeatureE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Fg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Gg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem19InitializationInputEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Hg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam7Cal3_S2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ig,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam7Cal3_S2EE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Jg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Kg,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam7Cal3_S2EE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.Lg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam28PreintegrationCombinedParamsEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Mg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam28PreintegrationCombinedParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ng,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam20PreintegrationParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Og,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam27PreintegratedRotationParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Pg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__28optionalIN5gtsam5Pose3EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Qg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__28optionalIN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Rg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi3ELi3ELi0ELi3ELi3EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Sg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Tg,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam28PreintegrationCombinedParamsEE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.Ug,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem10ParametersEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Vg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN2cv12TermCriteriaEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Wg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem20InitializationResultEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Xg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE9RecordingE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Yg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__26vectorI11SensorEventNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Zg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE11SensorEventE16save_object_dataERNS1_14basic_oarchiveEPKv=ot._g,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.$g;var lt,ht=ot.ah,ut=ot.bh,ft=ot.ch,dt=ot.dh,pt=ot.eh,mt=ot.fh,bt=ot.gh,wt=ot.hh,vt=ot.ih,Et=i.dynCall_j=ot.jh,gt=i.dynCall_viij=ot.kh,yt=i.dynCall_viijii=ot.lh,kt=i.dynCall_viiij=ot.mh,At=i.dynCall_vij=ot.nh,zt=i.dynCall_iij=ot.oh,Nt=i.dynCall_iiji=ot.ph,Rt=i.dynCall_viji=ot.qh,St=i.dynCall_iijj=ot.rh,Lt=i.dynCall_jiji=ot.sh,Tt=i.dynCall_jij=ot.th,xt=i.dynCall_iiij=ot.uh,It=i.dynCall_ji=ot.vh,Pt=i.dynCall_iiiijjji=ot.wh,Mt=i.dynCall_iiiijji=ot.xh,Ft=i.dynCall_iijjjjjji=ot.yh,Ot=i.dynCall_viiji=ot.zh,Ct=i.dynCall_diji=ot.Ah,jt=i.dynCall_jiii=ot.Bh,Bt=i.dynCall_jii=ot.Ch,Ut=i.dynCall_vjii=ot.Dh,Vt=i.dynCall_vji=ot.Eh,Dt=i.dynCall_iji=ot.Fh,Kt=i.dynCall_iiiij=ot.Gh,Zt=i.dynCall_jj=ot.Hh,Gt=i.dynCall_djj=ot.Ih,Wt=i.dynCall_iiiiij=ot.Jh,Xt=i.dynCall_jiiii=ot.Kh;function Yt(){function e(){if(!lt&&(lt=!0,i.calledRun=!0,!k)){if(i.noFSInit||Oe||(Oe=!0,i.stdin=i.stdin,i.stdout=i.stdout,i.stderr=i.stderr,i.stdin?Xe("stdin",i.stdin):Ke("/dev/tty","/dev/stdin"),i.stdout?Xe("stdout",null,i.stdout):Ke("/dev/tty","/dev/stdout"),i.stderr?Xe("stderr",null,i.stderr):Ke("/dev/tty1","/dev/stderr"),Ge("/dev/stdin",0),Ge("/dev/stdout",1),Ge("/dev/stderr",1)),Ee=!1,U(N),t(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();R.unshift(e)}U(R)}}if(!(0<I)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)S();U(z),0<I||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e())}}if(i.___start_em_js=632092,i.___stop_em_js=633257,i.cwrap=(e,r,t,a)=>{var n=!t||t.every((e=>"number"===e||"boolean"===e));return"string"!==r&&n&&!a?i["_"+e]:function(){return((e,r,t,a)=>{var n={string:e=>{var r=0;if(null!=e&&0!==e){r=ae(e)+1;var t=pt(r);ie(e,m,t,r),r=t}return r},array:e=>{var r=pt(e.length);return p.set(e,r),r}};e=i["_"+e];var _,o=[],s=0;if(a)for(var c=0;c<a.length;c++){var l=n[t[c]];l?(0===s&&(s=ft()),o[c]=l(a[c])):o[c]=a[c]}return _=t=e.apply(null,o),0!==s&&dt(s),"string"===r?_?re(m,_):"":"boolean"===r?!!_:_})(e,r,t,arguments)}},i.setValue=function(e,r,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":p[e>>0]=r;break;case"i16":b[e>>1]=r;break;case"i32":v[e>>2]=r;break;case"i64":C("to do setValue(i64) use WASM_BIGINT");case"float":g[e>>2]=r;break;case"double":y[e>>3]=r;break;case"*":E[e>>2]=r;break;default:C(`invalid type for setValue: ${t}`)}},i.getValue=function(e,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":return p[e>>0];case"i16":return b[e>>1];case"i32":return v[e>>2];case"i64":C("to do getValue(i64) use WASM_BIGINT");case"float":return g[e>>2];case"double":return y[e>>3];case"*":return E[e>>2];default:C(`invalid type for getValue: ${r}`)}},i.UTF8ToString=Qe,M=function e(){lt||Yt(),lt||(M=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return Yt(),r});class a{constructor(e){this._messageSender=e,this._freeBufferPool=[],this._buffer=new ArrayBuffer(16),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=1,this._startOffset=-1,this._timeoutSet=!1,this._appender={int:e=>this.int(e),bool:e=>this.int(e?1:0),float:e=>this.float(e),string:e=>this.string(e),dataWithLength:e=>this.arrayBuffer(e),type:e=>this.int(e),matrix4x4:e=>this.float32ArrayBuffer(e),matrix3x3:e=>this.float32ArrayBuffer(e),floatArray:e=>this.float32ArrayBuffer(e),identityCoefficients:e=>this.float32ArrayBuffer(e),expressionCoefficients:e=>this.float32ArrayBuffer(e),cameraModel:e=>this.float32ArrayBuffer(e),timestamp:e=>this.double(e),barcodeFormat:e=>this.int(e),faceLandmarkName:e=>this.int(e),instantTrackerTransformOrientation:e=>this.int(e),logLevel:e=>this.int(e)},this._freeBufferPool.push(new ArrayBuffer(16)),this._freeBufferPool.push(new ArrayBuffer(16))}bufferReturn(e){this._freeBufferPool.push(e)}_ensureArrayBuffer(e){let r,t=4*(this._offset+e+8);if(this._buffer&&this._buffer.byteLength>=t)return;if(!r){let e=t;e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,r=new ArrayBuffer(e)}let a=this._buffer?this._i32View:void 0;this._buffer=r,this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),a&&this._i32View.set(a.subarray(0,this._offset))}sendMessage(e,r){this._ensureArrayBuffer(4),this._startOffset=this._offset,this._i32View[this._offset+1]=e,this._offset+=2,r(this._appender),this._i32View[this._startOffset]=this._offset-this._startOffset,this._startOffset=-1,this._sendOneTime()}_sendOneTime(){!1===this._timeoutSet&&(this._timeoutSet=!0,setTimeout((()=>{this._timeoutSet=!1,this._send()}),0))}_send(){0!==this._freeBufferPool.length?(this._i32View[0]=this._offset,this._messageSender(this._buffer),this._buffer=void 0,this._buffer=this._freeBufferPool.pop(),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=1,this._startOffset=-1):this._sendOneTime()}int(e){this._ensureArrayBuffer(1),this._i32View[this._offset]=e,this._offset++}double(e){this._ensureArrayBuffer(2),this._offset%2==1&&this._offset++,this._f64View[this._offset/2]=e,this._offset+=2}float(e){this._ensureArrayBuffer(1),this._f32View[this._offset]=e,this._offset++}int32Array(e){this._ensureArrayBuffer(e.length);for(let r=0;r<e.length;++r)this._i32View[this._offset+r]=e[r];this._offset+=e.length}float32Array(e){this._ensureArrayBuffer(e.length);for(let r=0;r<e.length;++r)this._f32View[this._offset+r]=e[r];this._offset+=e.length}booleanArray(e){this._ensureArrayBuffer(e.length);for(let r=0;r<e.length;++r)this._i32View[this._offset+r]=e[r]?1:0;this._offset+=e.length}uint8ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.byteLength,this._offset++,this._u8View.set(e,4*this._offset),this._offset+=e.byteLength>>2,0!=(3&e.byteLength)&&this._offset++}arrayBuffer(e){let r=new Uint8Array(e);this.uint8ArrayBuffer(r)}uint8ClampedArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.byteLength,this._offset++,this._u8cView.set(e,4*this._offset),this._offset+=e.byteLength>>2,0!=(3&e.byteLength)&&this._offset++}float32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._f32View.set(e,this._offset),this._offset+=e.length}uint16ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++;let r=2*this._offset;this._u16View.set(e,r),this._offset+=e.length>>1,0!=(1&e.length)&&this._offset++}int32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._i32View.set(e,this._offset),this._offset+=e.length}uint32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._u32View.set(e,this._offset),this._offset+=e.length}string(e){let r=(new TextEncoder).encode(e);this._ensureArrayBuffer(r.byteLength/4),this._i32View[this._offset]=r.byteLength,this._offset++,this._u8View.set(r,4*this._offset),this._offset+=r.byteLength>>2,0!=(3&r.byteLength)&&this._offset++}}class i{constructor(){this._buffer=new ArrayBuffer(0),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=0,this._length=0,this._startOffset=-1,this._processor={int:()=>this._i32View[this._startOffset++],bool:()=>1===this._i32View[this._startOffset++],type:()=>this._i32View[this._startOffset++],float:()=>this._f32View[this._startOffset++],timestamp:()=>{this._startOffset%2==1&&this._startOffset++;let e=this._f64View[this._startOffset/2];return this._startOffset+=2,e},string:()=>{let e=this._i32View[this._startOffset++],r=(new TextDecoder).decode(new Uint8Array(this._buffer,4*this._startOffset,e));return this._startOffset+=e>>2,0!=(3&e)&&this._startOffset++,r},dataWithLength:()=>{let e=this._i32View[this._startOffset++],r=new Uint8Array(e);return r.set(this._u8View.subarray(4*this._startOffset,4*this._startOffset+e)),this._startOffset+=r.byteLength>>2,0!=(3&r.byteLength)&&this._startOffset++,r.buffer},floatArray:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+e)),this._startOffset+=e,r},matrix4x4:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+16)),this._startOffset+=e,r},matrix3x3:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+9)),this._startOffset+=e,r},identityCoefficients:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+50)),this._startOffset+=e,r},expressionCoefficients:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+29)),this._startOffset+=e,r},cameraModel:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+6)),this._startOffset+=e,r},barcodeFormat:()=>this._i32View[this._startOffset++],faceLandmarkName:()=>this._i32View[this._startOffset++],instantTrackerTransformOrientation:()=>this._i32View[this._startOffset++],logLevel:()=>this._i32View[this._startOffset++]}}setData(e){this._buffer=e,this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=0,this._length=0,e.byteLength>=4&&(this._offset=1,this._length=this._i32View[0]),this._startOffset=-1}hasMessage(){return this._offset+1<this._length}forMessages(e){for(;this.hasMessage();){let r=this._i32View[this._offset],t=this._i32View[this._offset+1];this._startOffset=this._offset+2,this._offset+=r,e(t,this._processor)}}}class n{constructor(e,r){this._impl=e,this._sender=r,this._deserializer=new i,this.serializersByPipelineId=new Map,this._pipeline_id_by_pipeline_id=new Map,this._pipeline_by_instance=new Map,this._pipeline_id_by_camera_source_id=new Map,this._camera_source_by_instance=new Map,this._pipeline_id_by_sequence_source_id=new Map,this._sequence_source_by_instance=new Map,this._pipeline_id_by_image_tracker_id=new Map,this._image_tracker_by_instance=new Map,this._pipeline_id_by_face_tracker_id=new Map,this._face_tracker_by_instance=new Map,this._pipeline_id_by_face_mesh_id=new Map,this._face_mesh_by_instance=new Map,this._pipeline_id_by_face_landmark_id=new Map,this._face_landmark_by_instance=new Map,this._pipeline_id_by_barcode_finder_id=new Map,this._barcode_finder_by_instance=new Map,this._pipeline_id_by_instant_world_tracker_id=new Map,this._instant_world_tracker_by_instance=new Map,this._pipeline_id_by_zapcode_tracker_id=new Map,this._zapcode_tracker_by_instance=new Map,this._pipeline_id_by_world_tracker_id=new Map,this._world_tracker_by_instance=new Map}processBuffer(e){this._deserializer.setData(e),this._deserializer.forMessages(((e,r)=>{switch(e){case 38:this._impl.log_level_set(r.logLevel());break;case 35:this._impl.analytics_project_id_set(r.string(),r.string());break;case 31:{let e=r.type(),t=this._impl.pipeline_create();this._pipeline_by_instance.set(e,t),this._pipeline_id_by_pipeline_id.set(e,e),this.serializersByPipelineId.set(e,new a((r=>{this._sender(e,r)})));break}case 32:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_destroy(t),this._pipeline_by_instance.delete(e);break}case 9:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_frame_update(t);break}case 8:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_camera_frame_submit(t,r.dataWithLength(),r.int(),r.int(),r.int(),r.matrix4x4(),r.cameraModel(),r.bool());break}case 10:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_accelerometer_submit(t,r.timestamp(),r.float(),r.float(),r.float());break}case 12:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_accelerometer_with_gravity_submit_int(t,r.timestamp(),r.timestamp(),r.float(),r.float(),r.float());break}case 11:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_accelerometer_without_gravity_submit_int(t,r.timestamp(),r.timestamp(),r.float(),r.float(),r.float());break}case 15:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_rotation_rate_submit(t,r.timestamp(),r.float(),r.float(),r.float());break}case 13:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_rotation_rate_submit_int(t,r.timestamp(),r.timestamp(),r.float(),r.float(),r.float());break}case 16:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_attitude_submit(t,r.timestamp(),r.float(),r.float(),r.float());break}case 14:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_attitude_submit_int(t,r.timestamp(),r.timestamp(),r.float(),r.float(),r.float());break}case 17:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_attitude_matrix_submit(t,r.matrix4x4());break}case 33:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=r.string(),n=this._impl.camera_source_create(a,i);this._camera_source_by_instance.set(e,n),this._pipeline_id_by_camera_source_id.set(e,t);break}case 34:{let e=r.type(),t=this._camera_source_by_instance.get(e);if(void 0===t)return;this._impl.camera_source_destroy(t),this._camera_source_by_instance.delete(e);break}case 39:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.sequence_source_create(a);this._sequence_source_by_instance.set(e,i),this._pipeline_id_by_sequence_source_id.set(e,t);break}case 40:{let e=r.type(),t=this._sequence_source_by_instance.get(e);if(void 0===t)return;this._impl.sequence_source_destroy(t),this._sequence_source_by_instance.delete(e);break}case 2:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.image_tracker_create(a);this._image_tracker_by_instance.set(e,i),this._pipeline_id_by_image_tracker_id.set(e,t);break}case 18:{let e=r.type(),t=this._image_tracker_by_instance.get(e);if(void 0===t)return;this._impl.image_tracker_destroy(t),this._image_tracker_by_instance.delete(e);break}case 4:{let e=r.type(),t=this._image_tracker_by_instance.get(e);if(void 0===t)return;this._impl.image_tracker_target_load_from_memory(t,r.dataWithLength());break}case 3:{let e=r.type(),t=this._image_tracker_by_instance.get(e);if(void 0===t)return;this._impl.image_tracker_enabled_set(t,r.bool());break}case 24:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.face_tracker_create(a);this._face_tracker_by_instance.set(e,i),this._pipeline_id_by_face_tracker_id.set(e,t);break}case 25:{let e=r.type(),t=this._face_tracker_by_instance.get(e);if(void 0===t)return;this._impl.face_tracker_destroy(t),this._face_tracker_by_instance.delete(e);break}case 26:{let e=r.type(),t=this._face_tracker_by_instance.get(e);if(void 0===t)return;this._impl.face_tracker_model_load_from_memory(t,r.dataWithLength());break}case 27:{let e=r.type(),t=this._face_tracker_by_instance.get(e);if(void 0===t)return;this._impl.face_tracker_enabled_set(t,r.bool());break}case 28:{let e=r.type(),t=this._face_tracker_by_instance.get(e);if(void 0===t)return;this._impl.face_tracker_max_faces_set(t,r.int());break}case 29:{let e=r.type(),t=this._impl.face_mesh_create();this._face_mesh_by_instance.set(e,t);break}case 30:{let e=r.type(),t=this._face_mesh_by_instance.get(e);if(void 0===t)return;this._impl.face_mesh_destroy(t),this._face_mesh_by_instance.delete(e);break}case 36:{let e=r.type(),t=r.faceLandmarkName(),a=this._impl.face_landmark_create(t);this._face_landmark_by_instance.set(e,a);break}case 37:{let e=r.type(),t=this._face_landmark_by_instance.get(e);if(void 0===t)return;this._impl.face_landmark_destroy(t),this._face_landmark_by_instance.delete(e);break}case 20:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.barcode_finder_create(a);this._barcode_finder_by_instance.set(e,i),this._pipeline_id_by_barcode_finder_id.set(e,t);break}case 21:{let e=r.type(),t=this._barcode_finder_by_instance.get(e);if(void 0===t)return;this._impl.barcode_finder_destroy(t),this._barcode_finder_by_instance.delete(e);break}case 22:{let e=r.type(),t=this._barcode_finder_by_instance.get(e);if(void 0===t)return;this._impl.barcode_finder_enabled_set(t,r.bool());break}case 23:{let e=r.type(),t=this._barcode_finder_by_instance.get(e);if(void 0===t)return;this._impl.barcode_finder_formats_set(t,r.barcodeFormat());break}case 5:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.instant_world_tracker_create(a);this._instant_world_tracker_by_instance.set(e,i),this._pipeline_id_by_instant_world_tracker_id.set(e,t);break}case 19:{let e=r.type(),t=this._instant_world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.instant_world_tracker_destroy(t),this._instant_world_tracker_by_instance.delete(e);break}case 6:{let e=r.type(),t=this._instant_world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.instant_world_tracker_enabled_set(t,r.bool());break}case 7:{let e=r.type(),t=this._instant_world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.instant_world_tracker_anchor_pose_set_from_camera_offset_raw(t,r.float(),r.float(),r.float(),r.instantTrackerTransformOrientation());break}case 41:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.zapcode_tracker_create(a);this._zapcode_tracker_by_instance.set(e,i),this._pipeline_id_by_zapcode_tracker_id.set(e,t);break}case 44:{let e=r.type(),t=this._zapcode_tracker_by_instance.get(e);if(void 0===t)return;this._impl.zapcode_tracker_destroy(t),this._zapcode_tracker_by_instance.delete(e);break}case 43:{let e=r.type(),t=this._zapcode_tracker_by_instance.get(e);if(void 0===t)return;this._impl.zapcode_tracker_target_load_from_memory(t,r.dataWithLength());break}case 42:{let e=r.type(),t=this._zapcode_tracker_by_instance.get(e);if(void 0===t)return;this._impl.zapcode_tracker_enabled_set(t,r.bool());break}case 45:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.world_tracker_create(a);this._world_tracker_by_instance.set(e,i),this._pipeline_id_by_world_tracker_id.set(e,t);break}case 46:{let e=r.type(),t=this._world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.world_tracker_destroy(t),this._world_tracker_by_instance.delete(e);break}case 47:{let e=r.type(),t=this._world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.world_tracker_enabled_set(t,r.bool());break}case 48:{let e=r.type(),t=this._world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.world_tracker_reset(t);break}case 49:{let e=r.type(),t=this._world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.world_tracker_debug_enabled_set(t,r.bool());break}}}))}exploreState(){for(let[e,r]of this._pipeline_by_instance){let t=this._pipeline_id_by_pipeline_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);a&&(a.sendMessage(7,(t=>{t.type(e),t.int(this._impl.pipeline_frame_number(r))})),a.sendMessage(6,(t=>{t.type(e),t.cameraModel(this._impl.pipeline_camera_model(r))})),a.sendMessage(5,(t=>{t.type(e),t.int(this._impl.pipeline_camera_frame_user_data(r))})),a.sendMessage(11,(t=>{t.type(e),t.matrix4x4(this._impl.pipeline_camera_frame_camera_attitude(r))})),a.sendMessage(12,(t=>{t.type(e),t.matrix4x4(this._impl.pipeline_camera_frame_device_attitude(r))})))}for(let[e,r]of this._camera_source_by_instance){let r=this._pipeline_id_by_camera_source_id.get(e);r&&this.serializersByPipelineId.get(r)}for(let[e,r]of this._sequence_source_by_instance){let r=this._pipeline_id_by_sequence_source_id.get(e);r&&this.serializersByPipelineId.get(r)}for(let[e,r]of this._image_tracker_by_instance){let t=this._pipeline_id_by_image_tracker_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);if(a){a.sendMessage(19,(t=>{t.type(e),t.int(this._impl.image_tracker_target_loaded_version(r))})),a.sendMessage(1,(t=>{t.type(e),t.int(this._impl.image_tracker_anchor_count(r))}));for(let t=0;t<this._impl.image_tracker_anchor_count(r);t++)a.sendMessage(2,(a=>{a.type(e),a.int(t),a.string(this._impl.image_tracker_anchor_id(r,t))}));for(let t=0;t<this._impl.image_tracker_anchor_count(r);t++)a.sendMessage(3,(a=>{a.type(e),a.int(t),a.matrix4x4(this._impl.image_tracker_anchor_pose_raw(r,t))}))}}for(let[e,r]of this._face_tracker_by_instance){let t=this._pipeline_id_by_face_tracker_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);if(a){a.sendMessage(18,(t=>{t.type(e),t.int(this._impl.face_tracker_model_loaded_version(r))})),a.sendMessage(13,(t=>{t.type(e),t.int(this._impl.face_tracker_anchor_count(r))}));for(let t=0;t<this._impl.face_tracker_anchor_count(r);t++)a.sendMessage(14,(a=>{a.type(e),a.int(t),a.string(this._impl.face_tracker_anchor_id(r,t))}));for(let t=0;t<this._impl.face_tracker_anchor_count(r);t++)a.sendMessage(15,(a=>{a.type(e),a.int(t),a.matrix4x4(this._impl.face_tracker_anchor_pose_raw(r,t))}));for(let t=0;t<this._impl.face_tracker_anchor_count(r);t++)a.sendMessage(16,(a=>{a.type(e),a.int(t),a.identityCoefficients(this._impl.face_tracker_anchor_identity_coefficients(r,t))}));for(let t=0;t<this._impl.face_tracker_anchor_count(r);t++)a.sendMessage(17,(a=>{a.type(e),a.int(t),a.expressionCoefficients(this._impl.face_tracker_anchor_expression_coefficients(r,t))}))}}for(let[e,r]of this._face_mesh_by_instance){let r=this._pipeline_id_by_face_mesh_id.get(e);r&&this.serializersByPipelineId.get(r)}for(let[e,r]of this._face_landmark_by_instance){let r=this._pipeline_id_by_face_landmark_id.get(e);r&&this.serializersByPipelineId.get(r)}for(let[e,r]of this._barcode_finder_by_instance){let t=this._pipeline_id_by_barcode_finder_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);if(a){a.sendMessage(8,(t=>{t.type(e),t.int(this._impl.barcode_finder_found_number(r))}));for(let t=0;t<this._impl.barcode_finder_found_number(r);t++)a.sendMessage(9,(a=>{a.type(e),a.int(t),a.string(this._impl.barcode_finder_found_text(r,t))}));for(let t=0;t<this._impl.barcode_finder_found_number(r);t++)a.sendMessage(10,(a=>{a.type(e),a.int(t),a.barcodeFormat(this._impl.barcode_finder_found_format(r,t))}))}}for(let[e,r]of this._instant_world_tracker_by_instance){let t=this._pipeline_id_by_instant_world_tracker_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);a&&a.sendMessage(4,(t=>{t.type(e),t.matrix4x4(this._impl.instant_world_tracker_anchor_pose_raw(r))}))}for(let[e,r]of this._zapcode_tracker_by_instance){let t=this._pipeline_id_by_zapcode_tracker_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);if(a){a.sendMessage(24,(t=>{t.type(e),t.int(this._impl.zapcode_tracker_target_loaded_version(r))})),a.sendMessage(21,(t=>{t.type(e),t.int(this._impl.zapcode_tracker_anchor_count(r))}));for(let t=0;t<this._impl.zapcode_tracker_anchor_count(r);t++)a.sendMessage(22,(a=>{a.type(e),a.int(t),a.string(this._impl.zapcode_tracker_anchor_id(r,t))}));for(let t=0;t<this._impl.zapcode_tracker_anchor_count(r);t++)a.sendMessage(23,(a=>{a.type(e),a.int(t),a.matrix4x4(this._impl.zapcode_tracker_anchor_pose_raw(r,t))}))}}for(let[e,r]of this._world_tracker_by_instance){let t=this._pipeline_id_by_world_tracker_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);if(a){a.sendMessage(31,(t=>{t.type(e),t.int(this._impl.world_tracker_quality(r))})),a.sendMessage(25,(t=>{t.type(e),t.int(this._impl.world_tracker_plane_count(r))}));for(let t=0;t<this._impl.world_tracker_plane_count(r);t++)a.sendMessage(26,(a=>{a.type(e),a.int(t),a.matrix4x4(this._impl.world_tracker_plane_pose_raw(r,t))}));a.sendMessage(27,(t=>{t.type(e),t.bool(this._impl.world_tracker_world_anchor_valid(r))})),a.sendMessage(28,(t=>{t.type(e),t.matrix4x4(this._impl.world_tracker_world_anchor_pose_raw(r))})),a.sendMessage(27,(t=>{t.type(e),t.bool(this._impl.world_tracker_ground_anchor_valid(r))})),a.sendMessage(30,(t=>{t.type(e),t.matrix4x4(this._impl.world_tracker_ground_anchor_pose_raw(r))})),a.sendMessage(33,(t=>{t.type(e),t.int(this._impl.world_tracker_debug_tracks_data_size(r))})),a.sendMessage(32,(t=>{t.type(e),t.floatArray(this._impl.world_tracker_debug_tracks_data(r))})),a.sendMessage(35,(t=>{t.type(e),t.int(this._impl.world_tracker_debug_projections_data_size(r))})),a.sendMessage(34,(t=>{t.type(e),t.floatArray(this._impl.world_tracker_debug_projections_data(r))}))}}}}class _{constructor(){this._funcs=[]}bind(e){this._funcs.push(e)}unbind(e){let r=this._funcs.indexOf(e);r>-1&&this._funcs.splice(r,1)}emit(){for(var e=0,r=this._funcs.length;e<r;e++)this._funcs[e]()}}class o{constructor(){this._funcs=[]}bind(e){this._funcs.push(e)}unbind(e){let r=this._funcs.indexOf(e);r>-1&&this._funcs.splice(r,1)}emit(e){for(var r=0,t=this._funcs.length;r<t;r++)this._funcs[r](e)}}var s,c,l,h,u,f,d,p,m="undefined"!=typeof Float32Array?Float32Array:Array;function b(){var e=new m(16);return m!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function w(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}Math.random,Math.PI,Math.hypot||(Math.hypot=function(){for(var e=0,r=arguments.length;r--;)e+=arguments[r]*arguments[r];return Math.sqrt(e)}),function(e){e[e.UNKNOWN=131072]="UNKNOWN",e[e.AZTEC=1]="AZTEC",e[e.CODABAR=2]="CODABAR",e[e.CODE_39=4]="CODE_39",e[e.CODE_93=8]="CODE_93",e[e.CODE_128=16]="CODE_128",e[e.DATA_MATRIX=32]="DATA_MATRIX",e[e.EAN_8=64]="EAN_8",e[e.EAN_13=128]="EAN_13",e[e.ITF=256]="ITF",e[e.MAXICODE=512]="MAXICODE",e[e.PDF_417=1024]="PDF_417",e[e.QR_CODE=2048]="QR_CODE",e[e.RSS_14=4096]="RSS_14",e[e.RSS_EXPANDED=8192]="RSS_EXPANDED",e[e.UPC_A=16384]="UPC_A",e[e.UPC_E=32768]="UPC_E",e[e.UPC_EAN_EXTENSION=65536]="UPC_EAN_EXTENSION",e[e.ALL=131071]="ALL"}(s||(s={})),function(e){e[e.EYE_LEFT=0]="EYE_LEFT",e[e.EYE_RIGHT=1]="EYE_RIGHT",e[e.EAR_LEFT=2]="EAR_LEFT",e[e.EAR_RIGHT=3]="EAR_RIGHT",e[e.NOSE_BRIDGE=4]="NOSE_BRIDGE",e[e.NOSE_TIP=5]="NOSE_TIP",e[e.NOSE_BASE=6]="NOSE_BASE",e[e.LIP_TOP=7]="LIP_TOP",e[e.LIP_BOTTOM=8]="LIP_BOTTOM",e[e.MOUTH_CENTER=9]="MOUTH_CENTER",e[e.CHIN=10]="CHIN",e[e.EYEBROW_LEFT=11]="EYEBROW_LEFT",e[e.EYEBROW_RIGHT=12]="EYEBROW_RIGHT"}(c||(c={})),function(e){e[e.WORLD=3]="WORLD",e[e.MINUS_Z_AWAY_FROM_USER=4]="MINUS_Z_AWAY_FROM_USER",e[e.MINUS_Z_HEADING=5]="MINUS_Z_HEADING",e[e.UNCHANGED=6]="UNCHANGED"}(l||(l={})),function(e){e[e.LOG_LEVEL_NONE=0]="LOG_LEVEL_NONE",e[e.LOG_LEVEL_ERROR=1]="LOG_LEVEL_ERROR",e[e.LOG_LEVEL_WARNING=2]="LOG_LEVEL_WARNING",e[e.LOG_LEVEL_VERBOSE=3]="LOG_LEVEL_VERBOSE"}(h||(h={})),function(e){e[e.FRAME_PIXEL_FORMAT_I420=0]="FRAME_PIXEL_FORMAT_I420",e[e.FRAME_PIXEL_FORMAT_I420A=1]="FRAME_PIXEL_FORMAT_I420A",e[e.FRAME_PIXEL_FORMAT_I422=2]="FRAME_PIXEL_FORMAT_I422",e[e.FRAME_PIXEL_FORMAT_I444=3]="FRAME_PIXEL_FORMAT_I444",e[e.FRAME_PIXEL_FORMAT_NV12=4]="FRAME_PIXEL_FORMAT_NV12",e[e.FRAME_PIXEL_FORMAT_RGBA=5]="FRAME_PIXEL_FORMAT_RGBA",e[e.FRAME_PIXEL_FORMAT_BGRA=6]="FRAME_PIXEL_FORMAT_BGRA",e[e.FRAME_PIXEL_FORMAT_Y=7]="FRAME_PIXEL_FORMAT_Y"}(u||(u={})),function(e){e[e.IMAGE_TRACKER_TYPE_PLANAR=0]="IMAGE_TRACKER_TYPE_PLANAR",e[e.IMAGE_TRACKER_TYPE_CYLINDRICAL=1]="IMAGE_TRACKER_TYPE_CYLINDRICAL",e[e.IMAGE_TRACKER_TYPE_CONICAL=2]="IMAGE_TRACKER_TYPE_CONICAL"}(f||(f={})),function(e){e[e.WORLD_TRACKER_QUALITY_INITIALIZING=0]="WORLD_TRACKER_QUALITY_INITIALIZING",e[e.WORLD_TRACKER_QUALITY_GOOD=1]="WORLD_TRACKER_QUALITY_GOOD",e[e.WORLD_TRACKER_QUALITY_ORIENTATION_ONLY=2]="WORLD_TRACKER_QUALITY_ORIENTATION_ONLY"}(d||(d={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.HIGH=1]="HIGH"}(p||(p={}));const v=new Map;class E{constructor(e){this._gl=e,this._viewports=[],this._underlyingViewport=this._gl.viewport,this._viewports.push(this._gl.getParameter(this._gl.VIEWPORT)),this._gl.viewport=(e,r,t,a)=>{this._viewports[this._viewports.length-1]=[e,r,t,a],this._underlyingViewport.call(this._gl,e,r,t,a)}}static get(e){let r=v.get(e);return r||(r=new E(e),v.set(e,r)),r}push(){this._viewports.push(this._viewports[this._viewports.length-1])}pop(){const e=this._viewports.pop(),r=this._viewports[this._viewports.length-1];e&&e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]&&e[3]===r[3]||this._underlyingViewport.call(this._gl,r[0],r[1],r[2],r[3])}}var g,y=t(238);!function(e){e[e.OBJECT_URL=0]="OBJECT_URL",e[e.SRC_OBJECT=1]="SRC_OBJECT"}(g||(g={}));let k={deviceMotionMutliplier:-1,blacklisted:!1,showGyroPermissionsWarningIfNecessary:!1,showSafariPermissionsResetIfNecessary:!1,requestHighFrameRate:!1,videoWidth:640,videoHeight:480,getDataSize:e=>e===p.HIGH?[640,480]:[320,240],videoElementInDOM:!1,preferMediaStreamTrackProcessorCamera:!0,preferImageBitmapCamera:!1,ios164CameraSelection:!1,relyOnConstraintsForCameraSelection:!1,forceWindowOrientation:!1,intervalMultiplier:1,trustSensorIntervals:!1};"undefined"!=typeof window&&(window.zeeProfile=k,window.location.href.indexOf("_mstppipeline")>=0&&(console.log("Configuring for MSTP camera pipeline (if supported)"),k.preferMediaStreamTrackProcessorCamera=!0),window.location.href.indexOf("_imagebitmappipeline")>=0&&(console.log("Configuring for ImageBitmap camera pipeline (if supported)"),k.preferImageBitmapCamera=!0));let A=new y.UAParser,z=(A.getOS().name||"unknown").toLowerCase(),N=(A.getEngine().name||"unknown").toLowerCase();function R(e){k.forceWindowOrientation=!0,k.preferMediaStreamTrackProcessorCamera=!1,k.intervalMultiplier=1e3,k.trustSensorIntervals=!0;let r=e.split(".");if(r.length>=2){const e=parseInt(r[0]),t=parseInt(r[1]);(e<11||11===e&&t<3)&&(k.blacklisted=!0),(e<12||12===e&&t<2)&&(k.videoElementInDOM=!0),(12===e&&t>=2||e>=13)&&(k.showGyroPermissionsWarningIfNecessary=!0),e>=13&&(k.showSafariPermissionsResetIfNecessary=!0),(e>=12&&t>1||e>=13)&&navigator.mediaDevices&&navigator.mediaDevices.getSupportedConstraints&&navigator.mediaDevices.getSupportedConstraints().frameRate&&(k.requestHighFrameRate=!0,e<14&&(k.videoHeight=360,k.getDataSize=e=>e===p.HIGH?[640,360]:[320,180])),16===e&&t>=4&&(k.ios164CameraSelection=!0),e>=17&&(k.relyOnConstraintsForCameraSelection=!0)}}function S(e,r,t){let a=e.createShader(r);if(!a)throw new Error("Unable to create shader");e.shaderSource(a,t),e.compileShader(a);let i=e.getShaderInfoLog(a);if(i&&i.trim().length>0)throw new Error("Shader compile error: "+i);return a}"webkit"===N&&"ios"!==z&&(k.deviceMotionMutliplier=1,"undefined"!=typeof window&&void 0!==window.orientation&&R("15.0")),"webkit"===N&&"ios"===z&&(k.deviceMotionMutliplier=1,R(A.getOS().version||"15.0"));class L{constructor(e){this._gl=e,this._isPaused=!0,this._hadFrames=!1,this._isUserFacing=!1,this._cameraToScreenRotation=0,this._isUploadFrame=!0,this._computedTransformRotation=-1,this._computedFrontCameraRotation=!1,this._cameraUvTransform=b(),this._framebufferWidth=0,this._framebufferHeight=0,this._framebufferId=null,this._renderTexture=null,this._isWebGL2=!1,this._isWebGL2=e.getParameter(e.VERSION).indexOf("WebGL 2")>=0,this._isWebGL2||(this._instancedArraysExtension=this._gl.getExtension("ANGLE_instanced_arrays"))}resetGLContext(){this._framebufferId=null,this._renderTexture=null,this._vertexBuffer=void 0,this._indexBuffer=void 0,this._greyscaleShader=void 0}destroy(){this.resetGLContext()}uploadFrame(e,r,t,a,i){let n=this._gl;const _=E.get(n);_.push();const o=n.isEnabled(n.SCISSOR_TEST),s=n.isEnabled(n.DEPTH_TEST),c=n.isEnabled(n.BLEND),l=n.isEnabled(n.CULL_FACE),h=n.isEnabled(n.STENCIL_TEST),u=n.getParameter(n.ACTIVE_TEXTURE),f=n.getParameter(n.UNPACK_FLIP_Y_WEBGL),d=n.getParameter(n.CURRENT_PROGRAM);n.activeTexture(n.TEXTURE0);const p=n.getParameter(n.TEXTURE_BINDING_2D),m=n.getParameter(n.FRAMEBUFFER_BINDING),b=n.getParameter(n.ARRAY_BUFFER_BINDING),w=n.getParameter(n.ELEMENT_ARRAY_BUFFER_BINDING);n.disable(n.SCISSOR_TEST),n.disable(n.DEPTH_TEST),n.disable(n.BLEND),n.disable(n.CULL_FACE),n.disable(n.STENCIL_TEST),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1),n.bindTexture(n.TEXTURE_2D,e);const v=n.RGBA,g=n.RGBA,y=n.UNSIGNED_BYTE;n.texImage2D(n.TEXTURE_2D,0,v,g,y,r);let A=0,z=0;"undefined"!=typeof HTMLVideoElement&&r instanceof HTMLVideoElement?(A=r.videoWidth,z=r.videoHeight):(A=r.width,z=r.height),z>A&&(z=[A,A=z][0]),this._updateTransforms(t,a);const[N,R]=k.getDataSize(i);let S=this._getFramebuffer(n,N/4,R),L=this._getVertexBuffer(n),T=this._getIndexBuffer(n),x=this._getGreyscaleShader(n);const I=n.getVertexAttrib(x.aVertexPositionLoc,n.VERTEX_ATTRIB_ARRAY_SIZE),P=n.getVertexAttrib(x.aVertexPositionLoc,n.VERTEX_ATTRIB_ARRAY_TYPE),M=n.getVertexAttrib(x.aVertexPositionLoc,n.VERTEX_ATTRIB_ARRAY_NORMALIZED),F=n.getVertexAttrib(x.aVertexPositionLoc,n.VERTEX_ATTRIB_ARRAY_STRIDE),O=n.getVertexAttribOffset(x.aVertexPositionLoc,n.VERTEX_ATTRIB_ARRAY_POINTER),C=n.getVertexAttrib(x.aVertexPositionLoc,n.VERTEX_ATTRIB_ARRAY_ENABLED),j=n.getVertexAttrib(x.aVertexPositionLoc,n.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING),B=n.getVertexAttrib(x.aTextureCoordLoc,n.VERTEX_ATTRIB_ARRAY_SIZE),U=n.getVertexAttrib(x.aTextureCoordLoc,n.VERTEX_ATTRIB_ARRAY_TYPE),V=n.getVertexAttrib(x.aTextureCoordLoc,n.VERTEX_ATTRIB_ARRAY_NORMALIZED),D=n.getVertexAttrib(x.aTextureCoordLoc,n.VERTEX_ATTRIB_ARRAY_STRIDE),K=n.getVertexAttribOffset(x.aTextureCoordLoc,n.VERTEX_ATTRIB_ARRAY_POINTER),Z=n.getVertexAttrib(x.aTextureCoordLoc,n.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING),G=n.getVertexAttrib(x.aTextureCoordLoc,n.VERTEX_ATTRIB_ARRAY_ENABLED);let W=0,X=0;this._isWebGL2?(W=n.getVertexAttrib(x.aVertexPositionLoc,n.VERTEX_ATTRIB_ARRAY_DIVISOR),X=n.getVertexAttrib(x.aTextureCoordLoc,n.VERTEX_ATTRIB_ARRAY_DIVISOR),n.vertexAttribDivisor(x.aVertexPositionLoc,0),n.vertexAttribDivisor(x.aTextureCoordLoc,0)):this._instancedArraysExtension&&(W=n.getVertexAttrib(x.aVertexPositionLoc,this._instancedArraysExtension.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE),X=n.getVertexAttrib(x.aTextureCoordLoc,this._instancedArraysExtension.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE),this._instancedArraysExtension.vertexAttribDivisorANGLE(x.aVertexPositionLoc,0),this._instancedArraysExtension.vertexAttribDivisorANGLE(x.aTextureCoordLoc,0)),n.bindFramebuffer(n.FRAMEBUFFER,S),n.viewport(0,0,this._framebufferWidth,this._framebufferHeight),n.clear(n.COLOR_BUFFER_BIT),n.bindBuffer(n.ARRAY_BUFFER,L),n.vertexAttribPointer(x.aVertexPositionLoc,2,n.FLOAT,!1,16,0),n.enableVertexAttribArray(x.aVertexPositionLoc),n.vertexAttribPointer(x.aTextureCoordLoc,2,n.FLOAT,!1,16,8),n.enableVertexAttribArray(x.aTextureCoordLoc),n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,T),n.useProgram(x.program),n.uniform1f(x.uTexWidthLoc,N),n.uniformMatrix4fv(x.uUvTransformLoc,!1,this._cameraUvTransform),n.activeTexture(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,e),n.uniform1i(x.uSamplerLoc,0),n.drawElements(n.TRIANGLES,6,n.UNSIGNED_SHORT,0),n.bindBuffer(n.ARRAY_BUFFER,j),n.vertexAttribPointer(x.aVertexPositionLoc,I,P,M,F,O),n.bindBuffer(n.ARRAY_BUFFER,Z),n.vertexAttribPointer(x.aTextureCoordLoc,B,U,V,D,K),n.bindBuffer(n.ARRAY_BUFFER,b),n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,w),C||n.disableVertexAttribArray(x.aVertexPositionLoc),G||n.disableVertexAttribArray(x.aTextureCoordLoc),this._isWebGL2?(n.vertexAttribDivisor(x.aVertexPositionLoc,W),n.vertexAttribDivisor(x.aTextureCoordLoc,X)):this._instancedArraysExtension&&(this._instancedArraysExtension.vertexAttribDivisorANGLE(x.aVertexPositionLoc,W),this._instancedArraysExtension.vertexAttribDivisorANGLE(x.aTextureCoordLoc,X)),n.bindFramebuffer(n.FRAMEBUFFER,m),n.useProgram(d),n.bindTexture(n.TEXTURE_2D,p),n.activeTexture(u),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,f),_.pop(),c&&n.enable(n.BLEND),l&&n.enable(n.CULL_FACE),s&&n.enable(n.DEPTH_TEST),o&&n.enable(n.SCISSOR_TEST),h&&n.enable(n.STENCIL_TEST)}readFrame(e,r,t){let a=this._gl,i=new Uint8Array(r);const n=a.getParameter(a.FRAMEBUFFER_BINDING),[_,o]=k.getDataSize(t);let s=this._getFramebuffer(a,_/4,o);return a.bindFramebuffer(a.FRAMEBUFFER,s),a.readPixels(0,0,this._framebufferWidth,this._framebufferHeight,a.RGBA,a.UNSIGNED_BYTE,i),a.bindFramebuffer(a.FRAMEBUFFER,n),{uvTransform:this._cameraUvTransform,data:r,texture:e,dataWidth:_,dataHeight:o,userFacing:this._computedFrontCameraRotation}}_updateTransforms(e,r){e==this._computedTransformRotation&&r==this._computedFrontCameraRotation||(this._computedTransformRotation=e,this._computedFrontCameraRotation=r,this._cameraUvTransform=this._getCameraUvTransform())}_getCameraUvTransform(){switch(this._computedTransformRotation){case 270:return new Float32Array([0,1,0,0,-1,0,0,0,0,0,1,0,1,0,0,1]);case 180:return new Float32Array([-1,0,0,0,0,-1,0,0,0,0,1,0,1,1,0,1]);case 90:return new Float32Array([0,-1,0,0,1,0,0,0,0,0,1,0,0,1,0,1])}return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}_getFramebuffer(e,r,t){if(this._framebufferWidth===r&&this._framebufferHeight===t&&this._framebufferId)return this._framebufferId;if(this._framebufferId&&(e.deleteFramebuffer(this._framebufferId),this._framebufferId=null),this._renderTexture&&(e.deleteTexture(this._renderTexture),this._renderTexture=null),this._framebufferId=e.createFramebuffer(),!this._framebufferId)throw new Error("Unable to create framebuffer");if(e.bindFramebuffer(e.FRAMEBUFFER,this._framebufferId),this._renderTexture=e.createTexture(),!this._renderTexture)throw new Error("Unable to create render texture");e.activeTexture(e.TEXTURE0);const a=e.getParameter(e.TEXTURE_BINDING_2D);e.bindTexture(e.TEXTURE_2D,this._renderTexture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,r,t,0,e.RGBA,e.UNSIGNED_BYTE,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameterf(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this._renderTexture,0);let i=e.checkFramebufferStatus(e.FRAMEBUFFER);if(i!==e.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer not complete: "+i.toString());return this._framebufferWidth=r,this._framebufferHeight=t,e.bindTexture(e.TEXTURE_2D,a),e.bindFramebuffer(e.FRAMEBUFFER,null),this._framebufferId}_getVertexBuffer(e){if(this._vertexBuffer)return this._vertexBuffer;if(this._vertexBuffer=e.createBuffer(),!this._vertexBuffer)throw new Error("Unable to create vertex buffer");e.bindBuffer(e.ARRAY_BUFFER,this._vertexBuffer);let r=new Float32Array([-1,-1,0,0,-1,1,0,1,1,1,1,1,1,-1,1,0]);return e.bufferData(e.ARRAY_BUFFER,r,e.STATIC_DRAW),this._vertexBuffer}_getIndexBuffer(e){if(this._indexBuffer)return this._indexBuffer;if(this._indexBuffer=e.createBuffer(),!this._indexBuffer)throw new Error("Unable to create index buffer");e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this._indexBuffer);let r=new Uint16Array([0,1,2,0,2,3]);return e.bufferData(e.ELEMENT_ARRAY_BUFFER,r,e.STATIC_DRAW),this._indexBuffer}_getGreyscaleShader(e){if(this._greyscaleShader)return this._greyscaleShader;let r=e.createProgram();if(!r)throw new Error("Unable to create program");let t=S(e,e.VERTEX_SHADER,M),a=S(e,e.FRAGMENT_SHADER,F);e.attachShader(r,t),e.attachShader(r,a),function(e,r){e.linkProgram(r);let t=e.getProgramInfoLog(r);if(t&&t.trim().length>0)throw new Error("Unable to link: "+t)}(e,r);let i=e.getUniformLocation(r,"uTexWidth");if(!i)throw new Error("Unable to get uniform location uTexWidth");let n=e.getUniformLocation(r,"uUvTransform");if(!n)throw new Error("Unable to get uniform location uUvTransform");let _=e.getUniformLocation(r,"uSampler");if(!_)throw new Error("Unable to get uniform location uSampler");return this._greyscaleShader={program:r,aVertexPositionLoc:e.getAttribLocation(r,"aVertexPosition"),aTextureCoordLoc:e.getAttribLocation(r,"aTextureCoord"),uTexWidthLoc:i,uUvTransformLoc:n,uSamplerLoc:_},this._greyscaleShader}}let T,x,I,P,M="\n attribute vec4 aVertexPosition;\n attribute vec2 aTextureCoord;\n\n varying highp vec2 vTextureCoord1;\n varying highp vec2 vTextureCoord2;\n varying highp vec2 vTextureCoord3;\n varying highp vec2 vTextureCoord4;\n\n uniform float uTexWidth;\n\tuniform mat4 uUvTransform;\n\n void main(void) {\n highp vec2 offset1 = vec2(1.5 / uTexWidth, 0);\n highp vec2 offset2 = vec2(0.5 / uTexWidth, 0);\n\n gl_Position = aVertexPosition;\n vTextureCoord1 = (uUvTransform * vec4(aTextureCoord - offset1, 0, 1)).xy;\n vTextureCoord2 = (uUvTransform * vec4(aTextureCoord - offset2, 0, 1)).xy;\n vTextureCoord3 = (uUvTransform * vec4(aTextureCoord + offset2, 0, 1)).xy;\n vTextureCoord4 = (uUvTransform * vec4(aTextureCoord + offset1, 0, 1)).xy;\n }\n",F="\n varying highp vec2 vTextureCoord1;\n varying highp vec2 vTextureCoord2;\n varying highp vec2 vTextureCoord3;\n varying highp vec2 vTextureCoord4;\n\n uniform sampler2D uSampler;\n\n const lowp vec3 colorWeights = vec3(77.0 / 256.0, 150.0 / 256.0, 29.0 / 256.0);\n\n void main(void) {\n lowp vec4 outpx;\n\n outpx.r = dot(colorWeights, texture2D(uSampler, vTextureCoord1).xyz);\n outpx.g = dot(colorWeights, texture2D(uSampler, vTextureCoord2).xyz);\n outpx.b = dot(colorWeights, texture2D(uSampler, vTextureCoord3).xyz);\n outpx.a = dot(colorWeights, texture2D(uSampler, vTextureCoord4).xyz);\n\n gl_FragColor = outpx;\n }\n";var O=function(e,r,t,a){return new(t||(t=Promise))((function(i,n){function _(e){try{s(a.next(e))}catch(e){n(e)}}function o(e){try{s(a.throw(e))}catch(e){n(e)}}function s(e){var r;e.done?i(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(_,o)}s((a=a.apply(e,r||[])).next())}))};let C,j=new class{constructor(){this.onOutgoingMessage=new _,this.onIncomingMessage=new o,this._outgoingMessages=[]}postIncomingMessage(e){this.onIncomingMessage.emit(e)}postOutgoingMessage(e,r){this._outgoingMessages.push({msg:e,transferables:r}),this.onOutgoingMessage.emit()}getOutgoingMessages(){let e=this._outgoingMessages;return this._outgoingMessages=[],e}},B=0,U=!1;const V=new Map,D=new Map;function K(e,t,a){return O(this,void 0,void 0,(function*(){let i=r({locateFile:(r,t)=>r.endsWith("zappar-cv.wasm")?e:t+r,instantiateWasm:(e,r)=>{const a=new WebAssembly.Instance(t,e);return r(a),a.exports},onRuntimeInitialized:()=>{let e=function(e){let r=e.cwrap("zappar_log_level","number",[]),t=e.cwrap("zappar_log_level_set",null,["number"]),a=e.cwrap("zappar_analytics_project_id_set",null,["string","string"]),i=e.cwrap("zappar_pipeline_create","number",[]),n=e.cwrap("zappar_pipeline_destroy",null,["number"]),_=e.cwrap("zappar_pipeline_camera_frame_data_raw","number",["number"]),o=e.cwrap("zappar_pipeline_camera_frame_data_raw_size","number",["number"]),s=e.cwrap("zappar_pipeline_camera_frame_data_raw_width","number",["number"]),c=e.cwrap("zappar_pipeline_camera_frame_data_raw_height","number",["number"]),l=e.cwrap("zappar_pipeline_frame_update",null,["number"]),h=e.cwrap("zappar_pipeline_frame_number","number",["number"]),u=e.cwrap("zappar_pipeline_camera_model","number",["number"]),f=e.cwrap("zappar_pipeline_camera_frame_user_data","number",["number"]),d=e.cwrap("zappar_pipeline_camera_frame_submit",null,["number","number","number","number","number","number","number","number","number"]),p=e.cwrap("zappar_pipeline_camera_frame_submit_raw_pointer",null,["number","number","number","number","number","number","number","number","number","number","number","number","number"]),m=e.cwrap("zappar_pipeline_camera_frame_camera_attitude","number",["number"]),b=e.cwrap("zappar_pipeline_camera_frame_device_attitude","number",["number"]),w=e.cwrap("zappar_pipeline_motion_accelerometer_submit",null,["number","number","number","number","number"]),v=e.cwrap("zappar_pipeline_motion_accelerometer_with_gravity_submit_int",null,["number","number","number","number","number","number"]),E=e.cwrap("zappar_pipeline_motion_accelerometer_without_gravity_submit_int",null,["number","number","number","number","number","number"]),g=e.cwrap("zappar_pipeline_motion_rotation_rate_submit",null,["number","number","number","number","number"]),y=e.cwrap("zappar_pipeline_motion_rotation_rate_submit_int",null,["number","number","number","number","number","number"]),k=e.cwrap("zappar_pipeline_motion_attitude_submit",null,["number","number","number","number","number"]),A=e.cwrap("zappar_pipeline_motion_attitude_submit_int",null,["number","number","number","number","number","number"]),z=e.cwrap("zappar_pipeline_motion_attitude_matrix_submit",null,["number","number"]),N=e.cwrap("zappar_camera_source_create","number",["number","string"]),R=e.cwrap("zappar_camera_source_destroy",null,["number"]),S=e.cwrap("zappar_sequence_source_create","number",["number"]),L=e.cwrap("zappar_sequence_source_destroy",null,["number"]),T=e.cwrap("zappar_image_tracker_create","number",["number"]),x=e.cwrap("zappar_image_tracker_destroy",null,["number"]),I=e.cwrap("zappar_image_tracker_target_load_from_memory",null,["number","number","number"]),P=e.cwrap("zappar_image_tracker_target_loaded_version","number",["number"]),M=e.cwrap("zappar_image_tracker_enabled","number",["number"]),F=e.cwrap("zappar_image_tracker_enabled_set",null,["number","number"]),O=e.cwrap("zappar_image_tracker_anchor_count","number",["number"]),C=e.cwrap("zappar_image_tracker_anchor_id","string",["number","number"]),j=e.cwrap("zappar_image_tracker_anchor_pose_raw","number",["number","number"]),B=e.cwrap("zappar_face_tracker_create","number",["number"]),U=e.cwrap("zappar_face_tracker_destroy",null,["number"]),V=e.cwrap("zappar_face_tracker_model_load_from_memory",null,["number","number","number"]),D=e.cwrap("zappar_face_tracker_model_loaded_version","number",["number"]),K=e.cwrap("zappar_face_tracker_enabled_set",null,["number","number"]),Z=e.cwrap("zappar_face_tracker_enabled","number",["number"]),G=e.cwrap("zappar_face_tracker_max_faces_set",null,["number","number"]),W=e.cwrap("zappar_face_tracker_max_faces","number",["number"]),X=e.cwrap("zappar_face_tracker_anchor_count","number",["number"]),Y=e.cwrap("zappar_face_tracker_anchor_id","string",["number","number"]),H=e.cwrap("zappar_face_tracker_anchor_pose_raw","number",["number","number"]),q=e.cwrap("zappar_face_tracker_anchor_identity_coefficients","number",["number","number"]),$=e.cwrap("zappar_face_tracker_anchor_expression_coefficients","number",["number","number"]),Q=e.cwrap("zappar_face_mesh_create","number",[]),J=e.cwrap("zappar_face_mesh_destroy",null,["number"]),ee=e.cwrap("zappar_face_landmark_create","number",["number"]),re=e.cwrap("zappar_face_landmark_destroy",null,["number"]),te=e.cwrap("zappar_barcode_finder_create","number",["number"]),ae=e.cwrap("zappar_barcode_finder_destroy",null,["number"]),ie=e.cwrap("zappar_barcode_finder_enabled_set",null,["number","number"]),ne=e.cwrap("zappar_barcode_finder_enabled","number",["number"]),_e=e.cwrap("zappar_barcode_finder_found_number","number",["number"]),oe=e.cwrap("zappar_barcode_finder_found_text","string",["number","number"]),se=e.cwrap("zappar_barcode_finder_found_format","number",["number","number"]),ce=e.cwrap("zappar_barcode_finder_formats","number",["number"]),le=e.cwrap("zappar_barcode_finder_formats_set",null,["number","number"]),he=e.cwrap("zappar_instant_world_tracker_create","number",["number"]),ue=e.cwrap("zappar_instant_world_tracker_destroy",null,["number"]),fe=e.cwrap("zappar_instant_world_tracker_enabled_set",null,["number","number"]),de=e.cwrap("zappar_instant_world_tracker_enabled","number",["number"]),pe=e.cwrap("zappar_instant_world_tracker_anchor_pose_raw","number",["number"]),me=e.cwrap("zappar_instant_world_tracker_anchor_pose_set_from_camera_offset_raw",null,["number","number","number","number","number"]),be=e.cwrap("zappar_zapcode_tracker_create","number",["number"]),we=e.cwrap("zappar_zapcode_tracker_destroy",null,["number"]),ve=e.cwrap("zappar_zapcode_tracker_target_load_from_memory",null,["number","number","number"]),Ee=e.cwrap("zappar_zapcode_tracker_target_loaded_version","number",["number"]),ge=e.cwrap("zappar_zapcode_tracker_enabled","number",["number"]),ye=e.cwrap("zappar_zapcode_tracker_enabled_set",null,["number","number"]),ke=e.cwrap("zappar_zapcode_tracker_anchor_count","number",["number"]),Ae=e.cwrap("zappar_zapcode_tracker_anchor_id","string",["number","number"]),ze=e.cwrap("zappar_zapcode_tracker_anchor_pose_raw","number",["number","number"]),Ne=e.cwrap("zappar_world_tracker_create","number",["number"]),Re=e.cwrap("zappar_world_tracker_destroy",null,["number"]),Se=e.cwrap("zappar_world_tracker_enabled","number",["number"]),Le=e.cwrap("zappar_world_tracker_enabled_set",null,["number","number"]),Te=e.cwrap("zappar_world_tracker_quality","number",["number"]),xe=e.cwrap("zappar_world_tracker_plane_count","number",["number"]),Ie=e.cwrap("zappar_world_tracker_plane_pose_raw","number",["number","number"]),Pe=e.cwrap("zappar_world_tracker_world_anchor_valid","number",["number"]),Me=e.cwrap("zappar_world_tracker_world_anchor_pose_raw","number",["number"]),Fe=e.cwrap("zappar_world_tracker_ground_anchor_valid","number",["number"]),Oe=e.cwrap("zappar_world_tracker_ground_anchor_pose_raw","number",["number"]),Ce=e.cwrap("zappar_world_tracker_reset",null,["number"]),je=e.cwrap("zappar_world_tracker_debug_enabled","number",["number"]),Be=e.cwrap("zappar_world_tracker_debug_enabled_set",null,["number","number"]),Ue=e.cwrap("zappar_world_tracker_debug_tracks_data_size","number",["number"]),Ve=e.cwrap("zappar_world_tracker_debug_tracks_data","number",["number"]),De=e.cwrap("zappar_world_tracker_debug_projections_data_size","number",["number"]),Ke=e.cwrap("zappar_world_tracker_debug_projections_data","number",["number"]),Ze=32,Ge=e._malloc(Ze),We=(e._malloc(64),new Map),Xe=(r,t)=>{let a=We.get(r);return(!a||a[0]<t)&&(a&&e._free(a[1]),a=[t,e._malloc(t)],We.set(r,a)),a[1]};return{log_level:()=>r(),log_level_set:e=>t(e),analytics_project_id_set:(e,r)=>a(e,r),pipeline_create:()=>i(),pipeline_destroy:()=>{n()},pipeline_camera_frame_data_raw:e=>_(e),pipeline_camera_frame_data_raw_size:e=>o(e),pipeline_camera_frame_data_raw_width:e=>s(e),pipeline_camera_frame_data_raw_height:e=>c(e),pipeline_frame_update:e=>l(e),pipeline_frame_number:e=>h(e),pipeline_camera_model:r=>{let t=u(r),a=new Float32Array(6);return a.set(e.HEAPF32.subarray(t/4,6+t/4)),t=a,t},pipeline_camera_frame_user_data:e=>f(e),pipeline_camera_frame_submit:(r,t,a,i,n,_,o,s)=>{Ze<t.byteLength&&(e._free(Ge),Ze=t.byteLength,Ge=e._malloc(Ze));let c=Ge,l=t.byteLength;e.HEAPU8.set(new Uint8Array(t),Ge);let h=a,u=i,f=n,p=Xe(4,_.byteLength);e.HEAPF32.set(_,p/4);let m=Xe(5,o.byteLength);return e.HEAPF32.set(o,m/4),d(r,c,l,h,u,f,p,m,s?1:0)},pipeline_camera_frame_submit_raw_pointer:(r,t,a,i,n,_,o,s,c,l,h,u,f)=>{let d=t,m=a,b=i,w=n,v=_,E=o,g=Xe(6,s.byteLength);e.HEAPF32.set(s,g/4);let y=c,k=Xe(8,l.byteLength);return e.HEAPF32.set(l,k/4),p(r,d,m,b,w,v,E,g,y,k,h?1:0,u,f?1:0)},pipeline_camera_frame_camera_attitude:r=>{let t=m(r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(t/4,16+t/4)),t=a,t},pipeline_camera_frame_device_attitude:r=>{let t=b(r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(t/4,16+t/4)),t=a,t},pipeline_motion_accelerometer_submit:(e,r,t,a,i)=>w(e,r,t,a,i),pipeline_motion_accelerometer_with_gravity_submit_int:(e,r,t,a,i,n)=>v(e,r,t,a,i,n),pipeline_motion_accelerometer_without_gravity_submit_int:(e,r,t,a,i,n)=>E(e,r,t,a,i,n),pipeline_motion_rotation_rate_submit:(e,r,t,a,i)=>g(e,r,t,a,i),pipeline_motion_rotation_rate_submit_int:(e,r,t,a,i,n)=>y(e,r,t,a,i,n),pipeline_motion_attitude_submit:(e,r,t,a,i)=>k(e,r,t,a,i),pipeline_motion_attitude_submit_int:(e,r,t,a,i,n)=>A(e,r,t,a,i,n),pipeline_motion_attitude_matrix_submit:(r,t)=>{let a=Xe(0,t.byteLength);return e.HEAPF32.set(t,a/4),z(r,a)},camera_source_create:(e,r)=>N(e,r),camera_source_destroy:()=>{R()},sequence_source_create:e=>S(e),sequence_source_destroy:()=>{L()},image_tracker_create:e=>T(e),image_tracker_destroy:()=>{x()},image_tracker_target_load_from_memory:(r,t)=>{Ze<t.byteLength&&(e._free(Ge),Ze=t.byteLength,Ge=e._malloc(Ze));let a=Ge,i=t.byteLength;return e.HEAPU8.set(new Uint8Array(t),Ge),I(r,a,i)},image_tracker_target_loaded_version:e=>P(e),image_tracker_enabled:e=>{let r=M(e);return r=1===r,r},image_tracker_enabled_set:(e,r)=>F(e,r?1:0),image_tracker_anchor_count:e=>O(e),image_tracker_anchor_id:(e,r)=>C(e,r),image_tracker_anchor_pose_raw:(r,t)=>{let a=j(r,t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},face_tracker_create:e=>B(e),face_tracker_destroy:()=>{U()},face_tracker_model_load_from_memory:(r,t)=>{Ze<t.byteLength&&(e._free(Ge),Ze=t.byteLength,Ge=e._malloc(Ze));let a=Ge,i=t.byteLength;return e.HEAPU8.set(new Uint8Array(t),Ge),V(r,a,i)},face_tracker_model_loaded_version:e=>D(e),face_tracker_enabled_set:(e,r)=>K(e,r?1:0),face_tracker_enabled:e=>{let r=Z(e);return r=1===r,r},face_tracker_max_faces_set:(e,r)=>G(e,r),face_tracker_max_faces:e=>W(e),face_tracker_anchor_count:e=>X(e),face_tracker_anchor_id:(e,r)=>Y(e,r),face_tracker_anchor_pose_raw:(r,t)=>{let a=H(r,t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},face_tracker_anchor_identity_coefficients:(r,t)=>{let a=q(r,t),i=new Float32Array(50);return i.set(e.HEAPF32.subarray(a/4,50+a/4)),a=i,a},face_tracker_anchor_expression_coefficients:(r,t)=>{let a=$(r,t),i=new Float32Array(29);return i.set(e.HEAPF32.subarray(a/4,29+a/4)),a=i,a},face_mesh_create:()=>Q(),face_mesh_destroy:()=>{J()},face_landmark_create:e=>ee(e),face_landmark_destroy:()=>{re()},barcode_finder_create:e=>te(e),barcode_finder_destroy:()=>{ae()},barcode_finder_enabled_set:(e,r)=>ie(e,r?1:0),barcode_finder_enabled:e=>{let r=ne(e);return r=1===r,r},barcode_finder_found_number:e=>_e(e),barcode_finder_found_text:(e,r)=>oe(e,r),barcode_finder_found_format:(e,r)=>se(e,r),barcode_finder_formats:e=>ce(e),barcode_finder_formats_set:(e,r)=>le(e,r),instant_world_tracker_create:e=>he(e),instant_world_tracker_destroy:()=>{ue()},instant_world_tracker_enabled_set:(e,r)=>fe(e,r?1:0),instant_world_tracker_enabled:e=>{let r=de(e);return r=1===r,r},instant_world_tracker_anchor_pose_raw:r=>{let t=pe(r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(t/4,16+t/4)),t=a,t},instant_world_tracker_anchor_pose_set_from_camera_offset_raw:(e,r,t,a,i)=>me(e,r,t,a,i),zapcode_tracker_create:e=>be(e),zapcode_tracker_destroy:()=>{we()},zapcode_tracker_target_load_from_memory:(r,t)=>{Ze<t.byteLength&&(e._free(Ge),Ze=t.byteLength,Ge=e._malloc(Ze));let a=Ge,i=t.byteLength;return e.HEAPU8.set(new Uint8Array(t),Ge),ve(r,a,i)},zapcode_tracker_target_loaded_version:e=>Ee(e),zapcode_tracker_enabled:e=>{let r=ge(e);return r=1===r,r},zapcode_tracker_enabled_set:(e,r)=>ye(e,r?1:0),zapcode_tracker_anchor_count:e=>ke(e),zapcode_tracker_anchor_id:(e,r)=>Ae(e,r),zapcode_tracker_anchor_pose_raw:(r,t)=>{let a=ze(r,t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},world_tracker_create:e=>Ne(e),world_tracker_destroy:()=>{Re()},world_tracker_enabled:e=>{let r=Se(e);return r=1===r,r},world_tracker_enabled_set:(e,r)=>Le(e,r?1:0),world_tracker_quality:e=>Te(e),world_tracker_plane_count:e=>xe(e),world_tracker_plane_pose_raw:(r,t)=>{let a=Ie(r,t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},world_tracker_world_anchor_valid:e=>{let r=Pe(e);return r=1===r,r},world_tracker_world_anchor_pose_raw:r=>{let t=Me(r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(t/4,16+t/4)),t=a,t},world_tracker_ground_anchor_valid:e=>{let r=Fe(e);return r=1===r,r},world_tracker_ground_anchor_pose_raw:r=>{let t=Oe(r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(t/4,16+t/4)),t=a,t},world_tracker_reset:e=>Ce(e),world_tracker_debug_enabled:e=>{let r=je(e);return r=1===r,r},world_tracker_debug_enabled_set:(e,r)=>Be(e,r?1:0),world_tracker_debug_tracks_data_size:e=>Ue(e),world_tracker_debug_tracks_data:r=>{let t=Ve(r),a=Ue(r),i=new Float32Array(a);return i.set(e.HEAPF32.subarray(t/4,a+t/4)),t=i,t},world_tracker_debug_projections_data_size:e=>De(e),world_tracker_debug_projections_data:r=>{let t=Ke(r),a=De(r),i=new Float32Array(a);return i.set(e.HEAPF32.subarray(t/4,a+t/4)),t=i,t}}}(i);const r=function(e){return{worker_message_send_count:e.cwrap("worker_message_send_count","number",[]),worker_message_send_clear:e.cwrap("worker_message_send_clear",null,[]),worker_message_send_data_size:e.cwrap("worker_message_send_data_size","number",["number"]),worker_message_send_data:e.cwrap("worker_message_send_data","number",["number"]),worker_message_send_reference:e.cwrap("worker_message_send_reference","number",["number"]),worker_message_receive:e.cwrap("worker_message_receive",null,["number","number","number"])}}(i),t=a?function(e){return{data_download_clear:e.cwrap("data_download_clear",null,[]),data_download_size:e.cwrap("data_download_size","number",[]),data_download:e.cwrap("data_download","number",[]),data_should_record_set:e.cwrap("data_should_record_set",null,["number"])}}(i):void 0;null==t||t.data_should_record_set(1);let _=new n(e,((e,r)=>{j.postOutgoingMessage({p:e,t:"zappar",d:r},[r])}));j.postOutgoingMessage("loaded",[]),j.onIncomingMessage.bind((a=>{var n,o,s;switch(a.t){case"zappar":_.processBuffer(a.d),j.postOutgoingMessage({t:"buf",d:a.d},[a.d]);break;case"buf":null===(n=_.serializersByPipelineId.get(a.p))||void 0===n||n.bufferReturn(a.d);break;case"cameraFrameC2S":{let n,o=a,s=_._pipeline_by_instance.get(o.p);s&&(e.pipeline_camera_frame_submit(s,o.d,o.width,o.height,o.token,o.c2d,o.cm,o.userFacing),e.pipeline_frame_update(s),n=e.pipeline_camera_frame_device_attitude(s),_.exploreState(),J(i,r),t&&ee(i,t));let c={token:o.token,d:o.d,p:o.p,t:"cameraFrameRecycleS2C",att:n};j.postOutgoingMessage(c,[o.d]);break}case"rawenabled":U=a.v;break;case"rawrequest":{const e=a,r=V.get(e.p),t={t:"raw",token:e.token,p:e.p,data:r&&null!==(s=null===(o=r.ready.find((r=>r.token===e.token)))||void 0===o?void 0:o.data)&&void 0!==s?s:null};j.postOutgoingMessage(t,[]);break}case"cameraProfileC2S":{let e=a;D.set(e.source,e.p);break}case"streamC2S":{let n=a;(function(e,r,t,a,i,n,_,o,s){return O(this,void 0,void 0,(function*(){for(;;){let c;try{c=yield t.getReader()}catch(e){yield $(1e3);continue}try{return void(yield q(e,r,c,a,i,n,_,o,s))}catch(e){}return void(yield $(1e3))}}))})(i,e,n.s,n.p,n.userFacing,_,n.source,r,t).then((()=>{let e={t:"streamEndedS2C",p:n.p,source:n.source};j.postOutgoingMessage(e,[])})).catch((e=>{}));break}case"cameraToScreenC2S":B=a.r;break;case"imageBitmapC2S":!function(e,r,t,a){const[i,n]=function(){if(!I||!P){const e=new OffscreenCanvas(1,1);if(P=e.getContext("webgl"),!P)throw new Error("Unable to get offscreen GL context");I=new L(P)}return[I,P]}();if(x||(x=n.createTexture(),n.bindTexture(n.TEXTURE_2D,x),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR)),!x)return;const[_,o]=k.getDataSize(e.cp);(!T||T.byteLength<_*o)&&(T=new ArrayBuffer(_*o)),i.uploadFrame(x,e.i,e.r,e.userFacing,e.cp);let s=i.readFrame(x,T,e.cp),c={t:"imageBitmapS2C",dataWidth:s.dataWidth,dataHeight:s.dataHeight,frame:e.i,userFacing:s.userFacing,uvTransform:s.uvTransform||b(),tokenId:e.tokenId,p:e.p};a.postOutgoingMessage(c,[e.i]);let l=t._pipeline_by_instance.get(e.p);l&&(r.pipeline_camera_frame_submit(l,T,s.dataWidth,s.dataHeight,e.tokenId,e.cameraToDevice,e.cameraModel,s.userFacing),r.pipeline_frame_update(l),t.exploreState())}(a,e,_,j);break;case"sensorDataC2S":{const r=a,t=_._pipeline_by_instance.get(r.p);if(!t)break;switch(r.sensor){case"accel":e.pipeline_motion_accelerometer_submit(t,r.timestamp,r.x,r.y,r.z);break;case"accel_w_gravity_int":e.pipeline_motion_accelerometer_with_gravity_submit_int(t,r.timestamp,r.interval,r.x,r.y,r.z);break;case"accel_wo_gravity_int":e.pipeline_motion_accelerometer_without_gravity_submit_int(t,r.timestamp,r.interval,r.x,r.y,r.z);break;case"attitude_int":e.pipeline_motion_attitude_submit_int(t,r.timestamp,r.interval,r.x,r.y,r.z);break;case"attitude":e.pipeline_motion_attitude_submit(t,r.timestamp,r.x,r.y,r.z);break;case"rotation_rate_int":e.pipeline_motion_rotation_rate_submit_int(t,r.timestamp,r.interval,r.x,r.y,r.z);break;case"rotation_rate":e.pipeline_motion_rotation_rate_submit(t,r.timestamp,r.x,r.y,r.z)}break}case"attitudeMatrixC2S":{const r=a,t=_._pipeline_by_instance.get(r.p);if(!t)break;e.pipeline_motion_attitude_matrix_submit(t,r.m);break}}}))}})}))}let Z=0,G=0,W=1;function X(e){return new Promise(((r,t)=>{const a=setTimeout((()=>{t("Frame timeout")}),2e3);e.read().then((e=>{clearTimeout(a),r(e)}))}))}const Y=b(),H=new Float32Array([300,300,160,120,0,0]);function q(e,r,t,a,i,n,_,o,s){var c,l;return O(this,void 0,void 0,(function*(){for(;;){let f=yield X(t);if(f.done)return void(null===(c=f.value)||void 0===c||c.close());let d=f.value,m=d.allocationSize();m>G&&(Z>0&&e._free(Z),Z=e._malloc(m),G=m),yield d.copyTo(e.HEAPU8.subarray(Z,Z+G));let b=W;W++;const v=d.visibleRect.width,E=d.visibleRect.height;let g,y=v,k=E;switch(B){case 270:g=new Float32Array([0,1,0,0,-1,0,0,0,0,0,1,0,1,0,0,1]),y=E,k=v;break;case 180:g=new Float32Array([-1,0,0,0,0,-1,0,0,0,0,1,0,1,1,0,1]);break;case 90:g=new Float32Array([0,-1,0,0,1,0,0,0,0,0,1,0,0,1,0,1]),y=E,k=v;break;default:g=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}let A=!1;D.get(_)!==p.HIGH&&(y/=2,k/=2,A=!0);let z=d.clone();i?(u=[-1,1,-1],(h=Y)[0]=u[0],h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=u[1],h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=u[2],h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1):w(Y);let N=300*y/320;H[0]=N,H[1]=N,H[2]=.5*y,H[3]=.5*k;const R={token:b,d:z,p:a,t:"videoFrameS2C",userFacing:i,uvTransform:g,w:y,h:k,cameraToDevice:Y,cameraModel:H,source:_};j.postOutgoingMessage(R,[R.d,R.uvTransform.buffer]);const S=n._pipeline_by_instance.get(a);if(S){try{r.pipeline_camera_frame_submit_raw_pointer(S,Z,m,Q(d.format),v,E,b,Y,B,H,i,null!==(l=d.timestamp)&&void 0!==l?l:-1,A),J(e,o),s&&ee(e,s)}catch(e){console.log("Exception during camera processing",e)}if(r.pipeline_frame_update(S),U){let t=V.get(a);if(t||(t={available:[],ready:[]},V.set(a,t)),t.ready.length>4){const e=t.ready.splice(0,1);for(const r of e)t.available.push(new Uint8Array(r.data.data))}const i=r.pipeline_camera_frame_data_raw_size(S);let n;for(;!n||n.byteLength<i;)t.available.length<1&&t.available.push(new Uint8Array(i)),n=t.available.pop();const _=r.pipeline_camera_frame_data_raw(S);n.set(e.HEAPU8.subarray(_,_+i)),t.ready.push({token:b,data:{data:n,width:r.pipeline_camera_frame_data_raw_width(a),height:r.pipeline_camera_frame_data_raw_height(a)}})}n.exploreState()}d.close()}var h,u}))}function $(e){return new Promise((r=>{setTimeout(r,e)}))}function Q(e){switch(e){case"I420":return u.FRAME_PIXEL_FORMAT_I420;case"I420A":return u.FRAME_PIXEL_FORMAT_I420A;case"I422":return u.FRAME_PIXEL_FORMAT_I422;case"I444":return u.FRAME_PIXEL_FORMAT_I444;case"NV12":return u.FRAME_PIXEL_FORMAT_NV12;case"RGBA":case"RGBX":return u.FRAME_PIXEL_FORMAT_RGBA;case"BGRA":case"BGRX":return u.FRAME_PIXEL_FORMAT_BGRA}return u.FRAME_PIXEL_FORMAT_Y}function J(e,r){const t=r.worker_message_send_count();if(0!==t){C||(C=new MessageChannel,C.port1.start(),C.port1.addEventListener("message",(t=>{if("msgrec"!==t.data.t)return;const a=t.data.data,i=e._malloc(a.byteLength);e.HEAPU8.set(a,i),r.worker_message_receive(t.data.reference,a.byteLength,i),e._free(i)})),j.postOutgoingMessage({t:"setupCeresWorker",port:C.port2},[C.port2]));for(let a=0;a<t;a++){const t=r.worker_message_send_reference(a),i=r.worker_message_send_data_size(a),n=r.worker_message_send_data(a),_=e.HEAPU8.slice(n,n+i);C.port1.postMessage({t:"msgsend",data:_,reference:t},[_.buffer])}r.worker_message_send_clear()}}function ee(e,r){const t=r.data_download_size();if(0===t)return;const a=r.data_download(),i=e.HEAPU8.slice(a,a+t);j.postOutgoingMessage({t:"_z_datadownload",data:i},[i.buffer]),r.data_download_clear()}const re=self;j.onOutgoingMessage.bind((()=>{let e=j.getOutgoingMessages();for(let r of e)re.postMessage(r.msg,r.transferables)}));let te=e=>{var r;e&&e.data&&"wasm"===e.data.t&&(K(location.href.startsWith("blob")?e.data.url:new URL(t(751),t.b).toString(),e.data.module,null!==(r=e.data.shouldRecordData)&&void 0!==r&&r),re.removeEventListener("message",te))};re.addEventListener("message",te),re.addEventListener("message",(e=>{j.postIncomingMessage(e.data)}))})()})();
|
|
1
|
+
(()=>{var e={238:function(e,r,t){var a;!function(i,_){"use strict";var n="function",o="undefined",s="object",c="string",l="model",d="name",h="type",u="vendor",f="version",p="architecture",b="console",m="mobile",E="tablet",v="smarttv",w="wearable",g="embedded",y="Amazon",N="Apple",k="ASUS",S="BlackBerry",j="Browser",z="Chrome",I="Firefox",R="Google",A="Huawei",x="LG",L="Microsoft",T="Motorola",P="Opera",F="Samsung",M="Sharp",K="Sony",C="Xiaomi",O="Zebra",B="Facebook",D=function(e){for(var r={},t=0;t<e.length;t++)r[e[t].toUpperCase()]=e[t];return r},U=function(e,r){return typeof e===c&&-1!==Z(r).indexOf(Z(e))},Z=function(e){return e.toLowerCase()},V=function(e,r){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof r===o?e:e.substring(0,350)},G=function(e,r){for(var t,a,i,o,c,l,d=0;d<r.length&&!c;){var h=r[d],u=r[d+1];for(t=a=0;t<h.length&&!c;)if(c=h[t++].exec(e))for(i=0;i<u.length;i++)l=c[++a],typeof(o=u[i])===s&&o.length>0?2===o.length?typeof o[1]==n?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:3===o.length?typeof o[1]!==n||o[1].exec&&o[1].test?this[o[0]]=l?l.replace(o[1],o[2]):_:this[o[0]]=l?o[1].call(this,l,o[2]):_:4===o.length&&(this[o[0]]=l?o[3].call(this,l.replace(o[1],o[2])):_):this[o]=l||_;d+=2}},H=function(e,r){for(var t in r)if(typeof r[t]===s&&r[t].length>0){for(var a=0;a<r[t].length;a++)if(U(r[t][a],e))return"?"===t?_:t}else if(U(r[t],e))return"?"===t?_:t;return e},W={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,f],[/opios[\/ ]+([\w\.]+)/i],[f,[d,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[d,P]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[d,"UC"+j]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[f,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+j],f],[/\bfocus\/([\w\.]+)/i],[f,[d,I+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[d,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[d,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[d,"MIUI "+j]],[/fxios\/([-\w\.]+)/i],[f,[d,I]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+j]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+j],f],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,B],f],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[d,z+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,z+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[d,"Android "+j]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[f,H,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[d,I+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,f],[/(cobalt)\/([\w\.]+)/i],[d,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,Z]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",Z]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[u,F],[h,E]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[u,F],[h,m]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[u,N],[h,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[u,N],[h,E]],[/(macintosh);/i],[l,[u,N]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[u,A],[h,E]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[u,A],[h,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[u,C],[h,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[u,C],[h,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[u,"OPPO"],[h,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[u,"Vivo"],[h,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[u,"Realme"],[h,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[u,T],[h,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[u,T],[h,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[u,x],[h,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[u,x],[h,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[u,"Lenovo"],[h,E]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[u,"Nokia"],[h,m]],[/(pixel c)\b/i],[l,[u,R],[h,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[u,R],[h,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[u,K],[h,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[u,K],[h,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[u,"OnePlus"],[h,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[u,y],[h,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[u,y],[h,m]],[/(playbook);[-\w\),; ]+(rim)/i],[l,u,[h,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[u,S],[h,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[u,k],[h,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[u,k],[h,m]],[/(nexus 9)/i],[l,[u,"HTC"],[h,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[l,/_/g," "],[h,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[u,"Acer"],[h,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[u,"Meizu"],[h,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[u,M],[h,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,l,[h,m]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,l,[h,E]],[/(surface duo)/i],[l,[u,L],[h,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[u,"Fairphone"],[h,m]],[/(u304aa)/i],[l,[u,"AT&T"],[h,m]],[/\bsie-(\w*)/i],[l,[u,"Siemens"],[h,m]],[/\b(rct\w+) b/i],[l,[u,"RCA"],[h,E]],[/\b(venue[\d ]{2,7}) b/i],[l,[u,"Dell"],[h,E]],[/\b(q(?:mv|ta)\w+) b/i],[l,[u,"Verizon"],[h,E]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[u,"Barnes & Noble"],[h,E]],[/\b(tm\d{3}\w+) b/i],[l,[u,"NuVision"],[h,E]],[/\b(k88) b/i],[l,[u,"ZTE"],[h,E]],[/\b(nx\d{3}j) b/i],[l,[u,"ZTE"],[h,m]],[/\b(gen\d{3}) b.+49h/i],[l,[u,"Swiss"],[h,m]],[/\b(zur\d{3}) b/i],[l,[u,"Swiss"],[h,E]],[/\b((zeki)?tb.*\b) b/i],[l,[u,"Zeki"],[h,E]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],l,[h,E]],[/\b(ns-?\w{0,9}) b/i],[l,[u,"Insignia"],[h,E]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[u,"NextBook"],[h,E]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],l,[h,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],l,[h,m]],[/\b(ph-1) /i],[l,[u,"Essential"],[h,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[u,"Envizen"],[h,E]],[/\b(trio[-\w\. ]+) b/i],[l,[u,"MachSpeed"],[h,E]],[/\btu_(1491) b/i],[l,[u,"Rotor"],[h,E]],[/(shield[\w ]+) b/i],[l,[u,"Nvidia"],[h,E]],[/(sprint) (\w+)/i],[u,l,[h,m]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[u,L],[h,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[u,O],[h,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[u,O],[h,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,l,[h,b]],[/droid.+; (shield) bui/i],[l,[u,"Nvidia"],[h,b]],[/(playstation [345portablevi]+)/i],[l,[u,K],[h,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[u,L],[h,b]],[/smart-tv.+(samsung)/i],[u,[h,v]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[u,F],[h,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,x],[h,v]],[/(apple) ?tv/i],[u,[l,N+" TV"],[h,v]],[/crkey/i],[[l,z+"cast"],[u,R],[h,v]],[/droid.+aft(\w)( bui|\))/i],[l,[u,y],[h,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[u,M],[h,v]],[/(bravia[\w ]+)( bui|\))/i],[l,[u,K],[h,v]],[/(mitv-\w{5}) bui/i],[l,[u,C],[h,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[u,V],[l,V],[h,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,v]],[/((pebble))app/i],[u,l,[h,w]],[/droid.+; (glass) \d/i],[l,[u,R],[h,w]],[/droid.+; (wt63?0{2,3})\)/i],[l,[u,O],[h,w]],[/(quest( 2)?)/i],[l,[u,B],[h,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[h,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[h,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[h,E]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,m]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[d,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[f,H,W]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[f,H,W]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,f],[/\(bb(10);/i],[f,[d,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[d,I+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[f,[d,z+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],f],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,f],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,f]]},X=function(e,r){if(typeof e===s&&(r=e,e=_),!(this instanceof X))return new X(e,r).getResult();var t=e||(typeof i!==o&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),a=r?function(e,r){var t={};for(var a in e)r[a]&&r[a].length%2==0?t[a]=r[a].concat(e[a]):t[a]=e[a];return t}(Y,r):Y;return this.getBrowser=function(){var e,r={};return r[d]=_,r[f]=_,G.call(r,t,a.browser),r.major=typeof(e=r.version)===c?e.replace(/[^\d\.]/g,"").split(".")[0]:_,r},this.getCPU=function(){var e={};return e[p]=_,G.call(e,t,a.cpu),e},this.getDevice=function(){var e={};return e[u]=_,e[l]=_,e[h]=_,G.call(e,t,a.device),e},this.getEngine=function(){var e={};return e[d]=_,e[f]=_,G.call(e,t,a.engine),e},this.getOS=function(){var e={};return e[d]=_,e[f]=_,G.call(e,t,a.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return t},this.setUA=function(e){return t=typeof e===c&&e.length>350?V(e,350):e,this},this.setUA(t),this};X.VERSION="1.0.33",X.BROWSER=D([d,f,"major"]),X.CPU=D([p]),X.DEVICE=D([l,u,h,b,m,v,E,w,g]),X.ENGINE=X.OS=D([d,f]),typeof r!==o?(e.exports&&(r=e.exports=X),r.UAParser=X):t.amdO?(a=function(){return X}.call(r,t,r,e))===_||(e.exports=a):typeof i!==o&&(i.UAParser=X);var q=typeof i!==o&&(i.jQuery||i.Zepto);if(q&&!q.ua){var $=new X;q.ua=$.getResult(),q.ua.get=function(){return $.getUA()},q.ua.set=function(e){$.setUA(e);var r=$.getResult();for(var t in r)q.ua[t]=r[t]}}}("object"==typeof window?window:this)},751:(e,r,t)=>{"use strict";e.exports=t.p+"5a86c8fa5c139c48ad64.wasm"}},r={};function t(a){var i=r[a];if(void 0!==i)return i.exports;var _=r[a]={exports:{}};return e[a].call(_.exports,_,_.exports,t),_.exports}t.m=e,t.amdO={},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var r=t.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var a=r.getElementsByTagName("script");if(a.length)for(var i=a.length-1;i>-1&&!e;)e=a[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e})(),t.b=self.location+"",(()=>{"use strict";var e;const r=(e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(r={}){var t,a,i=r;i.ready=new Promise(((e,r)=>{t=e,a=r}));var _,n=Object.assign({},i),o="./this.program",s=(e,r)=>{throw r},c="";c=self.location.href,e&&(c=e),c=c.startsWith("blob:")?"":c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1),_=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)};var l,d=i.print||console.log.bind(console),h=i.printErr||console.error.bind(console);Object.assign(i,n),n=null,i.thisProgram&&(o=i.thisProgram),i.quit&&(s=i.quit),i.wasmBinary&&(l=i.wasmBinary),"object"!=typeof WebAssembly&&K("no native wasm support detected");var u,f,p,b,m,E,v,w,g,y,N=!1;function k(){var e=u.buffer;i.HEAP8=p=new Int8Array(e),i.HEAP16=m=new Int16Array(e),i.HEAPU8=b=new Uint8Array(e),i.HEAPU16=E=new Uint16Array(e),i.HEAP32=v=new Int32Array(e),i.HEAPU32=w=new Uint32Array(e),i.HEAPF32=g=new Float32Array(e),i.HEAPF64=y=new Float64Array(e)}var S=[],j=[],z=[];function I(){var e=i.preRun.shift();S.unshift(e)}var R,A,x,L=0,T=null,P=null;function F(){L++,i.monitorRunDependencies?.(L)}function M(){if(L--,i.monitorRunDependencies?.(L),0==L&&(null!==T&&(clearInterval(T),T=null),P)){var e=P;P=null,e()}}function K(e){throw i.onAbort?.(e),h(e="Aborted("+e+")"),N=!0,f=1,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}if(!(R="zappar-cv.wasm").startsWith("data:application/octet-stream;base64,")){var C=R;R=i.locateFile?i.locateFile(C,c):c+C}function O(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var B=e=>{for(;0<e.length;)e.shift()(i)},D=i.noExitRuntime||!0,U=[],Z=0,V=0;class G{constructor(e){this.Rj=e,this.Gj=e-24}}var H=e=>{var r=V;if(!r)return ht(0),0;var t=new G(r);w[t.Gj+16>>2]=r;var a=w[t.Gj+4>>2];if(!a)return ht(0),r;for(var i in e){var _=e[i];if(0===_||_===a)break;if(Et(_,a,t.Gj+16))return ht(_),r}return ht(a),r},W=()=>{var e=U.pop();e||K("no exception to throw");var r=e.Rj;throw 0==p[e.Gj+13>>0]&&(U.push(e),p[e.Gj+13>>0]=1,p[e.Gj+12>>0]=0,Z++),V=r},Y=(e,r)=>{for(var t=0,a=e.length-1;0<=a;a--){var i=e[a];"."===i?e.splice(a,1):".."===i?(e.splice(a,1),t++):t&&(e.splice(a,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},X=e=>{var r="/"===e.charAt(0),t="/"===e.substr(-1);return(e=Y(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},q=e=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=r[0],r=r[1],e||r?(r&&=r.substr(0,r.length-1),e+r):"."},$=e=>{if("/"===e)return"/";var r=(e=(e=X(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},J=e=>(J=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);K("initRandomDevice")})())(e);function Q(){for(var e="",r=!1,t=arguments.length-1;-1<=t&&!r;t--){if("string"!=typeof(r=0<=t?arguments[t]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";e=r+"/"+e,r="/"===r.charAt(0)}return(r?"/":"")+(e=Y(e.split("/").filter((e=>!!e)),!r).join("/"))||"."}var ee="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,re=(e,r,t)=>{var a=r+t;for(t=r;e[t]&&!(t>=a);)++t;if(16<t-r&&e.buffer&&ee)return ee.decode(e.subarray(r,t));for(a="";r<t;){var i=e[r++];if(128&i){var _=63&e[r++];if(192==(224&i))a+=String.fromCharCode((31&i)<<6|_);else{var n=63&e[r++];65536>(i=224==(240&i)?(15&i)<<12|_<<6|n:(7&i)<<18|_<<12|n<<6|63&e[r++])?a+=String.fromCharCode(i):(i-=65536,a+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else a+=String.fromCharCode(i)}return a},te=[],ae=e=>{for(var r=0,t=0;t<e.length;++t){var a=e.charCodeAt(t);127>=a?r++:2047>=a?r+=2:55296<=a&&57343>=a?(r+=4,++t):r+=3}return r},ie=(e,r,t,a)=>{if(!(0<a))return 0;var i=t;a=t+a-1;for(var _=0;_<e.length;++_){var n=e.charCodeAt(_);if(55296<=n&&57343>=n&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++_)),127>=n){if(t>=a)break;r[t++]=n}else{if(2047>=n){if(t+1>=a)break;r[t++]=192|n>>6}else{if(65535>=n){if(t+2>=a)break;r[t++]=224|n>>12}else{if(t+3>=a)break;r[t++]=240|n>>18,r[t++]=128|n>>12&63}r[t++]=128|n>>6&63}r[t++]=128|63&n}}return r[t]=0,t-i};function _e(e,r){var t=Array(ae(e)+1);return e=ie(e,t,0,t.length),r&&(t.length=e),t}var ne=[];function oe(e,r){ne[e]={input:[],Hj:[],Pj:r},Ce(e,se)}var se={open(e){var r=ne[e.node.$j];if(!r)throw new ge(43);e.Ej=r,e.seekable=!1},close(e){e.Ej.Pj.dk(e.Ej)},dk(e){e.Ej.Pj.dk(e.Ej)},read(e,r,t,a){if(!e.Ej||!e.Ej.Pj.tk)throw new ge(60);for(var i=0,_=0;_<a;_++){try{var n=e.Ej.Pj.tk(e.Ej)}catch(e){throw new ge(29)}if(void 0===n&&0===i)throw new ge(6);if(null==n)break;i++,r[t+_]=n}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,a){if(!e.Ej||!e.Ej.Pj.nk)throw new ge(60);try{for(var i=0;i<a;i++)e.Ej.Pj.nk(e.Ej,r[t+i])}catch(e){throw new ge(29)}return a&&(e.node.timestamp=Date.now()),i}},ce={tk(){e:{if(!te.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e){e=null;break e}te=_e(e,!0)}e=te.shift()}return e},nk(e,r){null===r||10===r?(d(re(e.Hj,0)),e.Hj=[]):0!=r&&e.Hj.push(r)},dk(e){e.Hj&&0<e.Hj.length&&(d(re(e.Hj,0)),e.Hj=[])},Jk:()=>({$k:25856,bl:5,Zk:191,al:35387,Yk:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),Kk:()=>0,Lk:()=>[24,80]},le={nk(e,r){null===r||10===r?(h(re(e.Hj,0)),e.Hj=[]):0!=r&&e.Hj.push(r)},dk(e){e.Hj&&0<e.Hj.length&&(h(re(e.Hj,0)),e.Hj=[])}};function de(e,r){var t=e.Cj?e.Cj.length:0;t>=r||(r=Math.max(r,t*(1048576>t?2:1.125)>>>0),0!=t&&(r=Math.max(r,256)),t=e.Cj,e.Cj=new Uint8Array(r),0<e.Fj&&e.Cj.set(t.subarray(0,e.Fj),0))}var he={Lj:null,Oj:()=>he.createNode(null,"/",16895,0),createNode(e,r,t,a){if(24576==(61440&t)||4096==(61440&t))throw new ge(63);return he.Lj||(he.Lj={dir:{node:{Kj:he.Bj.Kj,Mj:he.Bj.Mj,Zj:he.Bj.Zj,ek:he.Bj.ek,yk:he.Bj.yk,kk:he.Bj.kk,gk:he.Bj.gk,fk:he.Bj.fk,hk:he.Bj.hk},stream:{Tj:he.Dj.Tj}},file:{node:{Kj:he.Bj.Kj,Mj:he.Bj.Mj},stream:{Tj:he.Dj.Tj,read:he.Dj.read,write:he.Dj.write,bk:he.Dj.bk,vk:he.Dj.vk,xk:he.Dj.xk}},link:{node:{Kj:he.Bj.Kj,Mj:he.Bj.Mj,ak:he.Bj.ak},stream:{}},rk:{node:{Kj:he.Bj.Kj,Mj:he.Bj.Mj},stream:Ke}}),Re((t=Ie(e,r,t,a)).mode)?(t.Bj=he.Lj.dir.node,t.Dj=he.Lj.dir.stream,t.Cj={}):32768==(61440&t.mode)?(t.Bj=he.Lj.file.node,t.Dj=he.Lj.file.stream,t.Fj=0,t.Cj=null):40960==(61440&t.mode)?(t.Bj=he.Lj.link.node,t.Dj=he.Lj.link.stream):8192==(61440&t.mode)&&(t.Bj=he.Lj.rk.node,t.Dj=he.Lj.rk.stream),t.timestamp=Date.now(),e&&(e.Cj[r]=t,e.timestamp=t.timestamp),t},gl:e=>e.Cj?e.Cj.subarray?e.Cj.subarray(0,e.Fj):new Uint8Array(e.Cj):new Uint8Array(0),Bj:{Kj(e){var r={};return r.Dk=8192==(61440&e.mode)?e.id:1,r.uk=e.id,r.mode=e.mode,r.Pk=1,r.uid=0,r.Fk=0,r.$j=e.$j,Re(e.mode)?r.size=4096:32768==(61440&e.mode)?r.size=e.Fj:40960==(61440&e.mode)?r.size=e.link.length:r.size=0,r.zk=new Date(e.timestamp),r.Ok=new Date(e.timestamp),r.Ck=new Date(e.timestamp),r.Ak=4096,r.Bk=Math.ceil(r.size/r.Ak),r},Mj(e,r){if(void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&(r=r.size,e.Fj!=r))if(0==r)e.Cj=null,e.Fj=0;else{var t=e.Cj;e.Cj=new Uint8Array(r),t&&e.Cj.set(t.subarray(0,Math.min(r,e.Fj))),e.Fj=r}},Zj(){throw ye[44]},ek:(e,r,t,a)=>he.createNode(e,r,t,a),yk(e,r,t){if(Re(e.mode)){try{var a=ze(r,t)}catch(e){}if(a)for(var i in a.Cj)throw new ge(55)}delete e.parent.Cj[e.name],e.parent.timestamp=Date.now(),e.name=t,r.Cj[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},kk(e,r){delete e.Cj[r],e.timestamp=Date.now()},gk(e,r){var t,a=ze(e,r);for(t in a.Cj)throw new ge(55);delete e.Cj[r],e.timestamp=Date.now()},fk(e){var r,t=[".",".."];for(r of Object.keys(e.Cj))t.push(r);return t},hk:(e,r,t)=>((e=he.createNode(e,r,41471,0)).link=t,e),ak(e){if(40960!=(61440&e.mode))throw new ge(28);return e.link}},Dj:{read(e,r,t,a,i){var _=e.node.Cj;if(i>=e.node.Fj)return 0;if(8<(e=Math.min(e.node.Fj-i,a))&&_.subarray)r.set(_.subarray(i,i+e),t);else for(a=0;a<e;a++)r[t+a]=_[i+a];return e},write(e,r,t,a,i,_){if(r.buffer===p.buffer&&(_=!1),!a)return 0;if((e=e.node).timestamp=Date.now(),r.subarray&&(!e.Cj||e.Cj.subarray)){if(_)return e.Cj=r.subarray(t,t+a),e.Fj=a;if(0===e.Fj&&0===i)return e.Cj=r.slice(t,t+a),e.Fj=a;if(i+a<=e.Fj)return e.Cj.set(r.subarray(t,t+a),i),a}if(de(e,i+a),e.Cj.subarray&&r.subarray)e.Cj.set(r.subarray(t,t+a),i);else for(_=0;_<a;_++)e.Cj[i+_]=r[t+_];return e.Fj=Math.max(e.Fj,i+a),a},Tj(e,r,t){if(1===t?r+=e.position:2===t&&32768==(61440&e.node.mode)&&(r+=e.node.Fj),0>r)throw new ge(28);return r},bk(e,r,t){de(e.node,r+t),e.node.Fj=Math.max(e.node.Fj,r+t)},vk(e,r,t,a,i){if(32768!=(61440&e.node.mode))throw new ge(43);if(e=e.node.Cj,2&i||e.buffer!==p.buffer){if((0<t||t+r<e.length)&&(e=e.subarray?e.subarray(t,t+r):Array.prototype.slice.call(e,t,t+r)),t=!0,K(),!(r=void 0))throw new ge(48);p.set(e,r)}else t=!1,r=e.byteOffset;return{Gj:r,Wj:t}},xk:(e,r,t,a)=>(he.Dj.write(e,r,0,a,t,!1),0)}},ue=i.preloadPlugins||[],fe=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},pe=null,be={},me=[],Ee=1,ve=null,we=!0,ge=class{constructor(e){this.name="ErrnoError",this.Ij=e}},ye={};function Ne(e,r={}){if(!(e=Q(e)))return{path:"",node:null};if(8<(r=Object.assign({sk:!0,pk:0},r)).pk)throw new ge(32);e=e.split("/").filter((e=>!!e));for(var t=pe,a="/",i=0;i<e.length;i++){var _=i===e.length-1;if(_&&r.parent)break;if(t=ze(t,e[i]),a=X(a+"/"+e[i]),t.Xj&&(!_||_&&r.sk)&&(t=t.Xj.root),!_||r.ck)for(_=0;40960==(61440&t.mode);)if(t=Ve(a),t=Ne(a=Q(q(a),t),{pk:r.pk+1}).node,40<_++)throw new ge(32)}return{path:a,node:t}}function ke(e){for(var r;;){if(e===e.parent)return e=e.Oj.wk,r?"/"!==e[e.length-1]?`${e}/${r}`:e+r:e;r=r?`${e.name}/${r}`:e.name,e=e.parent}}function Se(e,r){for(var t=0,a=0;a<r.length;a++)t=(t<<5)-t+r.charCodeAt(a)|0;return(e+t>>>0)%ve.length}function je(e){var r=Se(e.parent.id,e.name);if(ve[r]===e)ve[r]=e.Yj;else for(r=ve[r];r;){if(r.Yj===e){r.Yj=e.Yj;break}r=r.Yj}}function ze(e,r){var t=Re(e.mode)?(t=xe(e,"x"))?t:e.Bj.Zj?0:2:54;if(t)throw new ge(t);for(t=ve[Se(e.id,r)];t;t=t.Yj){var a=t.name;if(t.parent.id===e.id&&a===r)return t}return e.Bj.Zj(e,r)}function Ie(e,r,t,a){return r=Se((e=new it(e,r,t,a)).parent.id,e.name),e.Yj=ve[r],ve[r]=e}function Re(e){return 16384==(61440&e)}function Ae(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r}function xe(e,r){return we?0:!r.includes("r")||292&e.mode?r.includes("w")&&!(146&e.mode)||r.includes("x")&&!(73&e.mode)?2:0:2}function Le(e,r){try{return ze(e,r),20}catch(e){}return xe(e,"wx")}function Te(e,r,t){try{var a=ze(e,r)}catch(e){return e.Ij}if(e=xe(e,"wx"))return e;if(t){if(!Re(a.mode))return 54;if(a===a.parent||"/"===ke(a))return 10}else if(Re(a.mode))return 31;return 0}function Pe(e){if(!(e=me[e]))throw new ge(8);return e}function Fe(e,r=-1){return Xe||((Xe=function(){this.Jj={}}).prototype={},Object.defineProperties(Xe.prototype,{object:{get(){return this.node},set(e){this.node=e}},flags:{get(){return this.Jj.flags},set(e){this.Jj.flags=e}},position:{get(){return this.Jj.position},set(e){this.Jj.position=e}}})),e=Object.assign(new Xe,e),-1==r&&(r=function(){for(var e=0;4096>=e;e++)if(!me[e])return e;throw new ge(33)}()),e.Qj=r,me[r]=e}var Me,Ke={open(e){e.Dj=be[e.node.$j].Dj,e.Dj.open?.(e)},Tj(){throw new ge(70)}};function Ce(e,r){be[e]={Dj:r}}function Oe(e,r){var t="/"===r;if(t&&pe)throw new ge(10);if(!t&&r){var a=Ne(r,{sk:!1});if(r=a.path,(a=a.node).Xj)throw new ge(10);if(!Re(a.mode))throw new ge(54)}r={type:e,kl:{},wk:r,Nk:[]},(e=e.Oj(r)).Oj=r,r.root=e,t?pe=e:a&&(a.Xj=r,a.Oj&&a.Oj.Nk.push(r))}function Be(e,r,t){var a=Ne(e,{parent:!0}).node;if(!(e=$(e))||"."===e||".."===e)throw new ge(28);var i=Le(a,e);if(i)throw new ge(i);if(!a.Bj.ek)throw new ge(63);return a.Bj.ek(a,e,r,t)}function De(e){return Be(e,16895,0)}function Ue(e,r,t){void 0===t&&(t=r,r=438),Be(e,8192|r,t)}function Ze(e,r){if(!Q(e))throw new ge(44);var t=Ne(r,{parent:!0}).node;if(!t)throw new ge(44);var a=Le(t,r=$(r));if(a)throw new ge(a);if(!t.Bj.hk)throw new ge(63);t.Bj.hk(t,r,e)}function Ve(e){if(!(e=Ne(e).node))throw new ge(44);if(!e.Bj.ak)throw new ge(28);return Q(ke(e.parent),e.Bj.ak(e))}function Ge(e,r,t){if(""===e)throw new ge(44);if("string"==typeof r){var a={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===a)throw Error(`Unknown file open mode: ${r}`);r=a}if(t=64&r?4095&(void 0===t?438:t)|32768:0,"object"==typeof e)var _=e;else{e=X(e);try{_=Ne(e,{ck:!(131072&r)}).node}catch(e){}}if(a=!1,64&r)if(_){if(128&r)throw new ge(20)}else _=Be(e,t,0),a=!0;if(!_)throw new ge(44);if(8192==(61440&_.mode)&&(r&=-513),65536&r&&!Re(_.mode))throw new ge(54);if(!a&&(t=_?40960==(61440&_.mode)?32:Re(_.mode)&&("r"!==Ae(r)||512&r)?31:xe(_,Ae(r)):44))throw new ge(t);if(512&r&&!a){if(!(t="string"==typeof(t=_)?Ne(t,{ck:!0}).node:t).Bj.Mj)throw new ge(63);if(Re(t.mode))throw new ge(31);if(32768!=(61440&t.mode))throw new ge(28);if(a=xe(t,"w"))throw new ge(a);t.Bj.Mj(t,{size:0,timestamp:Date.now()})}return r&=-131713,(_=Fe({node:_,path:ke(_),flags:r,seekable:!0,position:0,Dj:_.Dj,Uk:[],error:!1})).Dj.open&&_.Dj.open(_),!i.logReadFiles||1&r||(qe||={},e in qe||(qe[e]=1)),_}function He(e,r,t){if(null===e.Qj)throw new ge(8);if(!e.seekable||!e.Dj.Tj)throw new ge(70);if(0!=t&&1!=t&&2!=t)throw new ge(28);return e.position=e.Dj.Tj(e,r,t),e.Uk=[],e.position}function We(e,r,t){e=X("/dev/"+e);var a=fe(!!r,!!t);Ye||=64;var i=Ye++<<8|0;Ce(i,{open(e){e.seekable=!1},close(){t?.buffer?.length&&t(10)},read(e,t,a,i){for(var _=0,n=0;n<i;n++){try{var o=r()}catch(e){throw new ge(29)}if(void 0===o&&0===_)throw new ge(6);if(null==o)break;_++,t[a+n]=o}return _&&(e.node.timestamp=Date.now()),_},write(e,r,a,i){for(var _=0;_<i;_++)try{t(r[a+_])}catch(e){throw new ge(29)}return i&&(e.node.timestamp=Date.now()),_}}),Ue(e,a,i)}var Ye,Xe,qe,$e={},Je=(e,r)=>e?re(b,e,r):"";function Qe(e,r){if("/"===r.charAt(0))return r;if(e=-100===e?"/":Pe(e).path,0==r.length)throw new ge(44);return X(e+"/"+r)}var er=void 0;function rr(){var e=v[+er>>2];return er+=4,e}var tr,ar=e=>0==e%4&&(0!=e%100||0==e%400),ir=[0,31,60,91,121,152,182,213,244,274,305,335],_r=[0,31,59,90,120,151,181,212,243,273,304,334],nr=e=>{var r=ae(e)+1,t=ct(r);return t&&ie(e,b,t,r),t},or=e=>{f=e,D||(i.onExit?.(e),N=!0),s(e,new O(e))},sr=e=>{if(!N)try{if(e(),!D)try{f=e=f,or(e)}catch(e){e instanceof O||"unwind"==e||s(1,e)}}catch(e){e instanceof O||"unwind"==e||s(1,e)}},cr=(e,r)=>{setTimeout((()=>{sr(e)}),r)};tr=()=>performance.now();var lr,dr,hr,ur=!1,fr=null,pr=0,br=null,mr=0,Er=0,vr=0,wr=[],gr={},yr=!1,Nr=!1,kr=[],Sr=!1,jr=void 0,zr=void 0;function Ir(){return!!yr&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||(()=>{})).apply(document,[]),!0)}var Rr=0;function Ar(e){if("function"==typeof requestAnimationFrame)requestAnimationFrame(e);else{var r=Date.now();if(0===Rr)Rr=r+1e3/60;else for(;r+2>=Rr;)Rr+=1e3/60;setTimeout(e,Math.max(Rr-r,0))}}function xr(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}var Lr=[];function Tr(){var e=i.canvas;Lr.forEach((r=>r(e.width,e.height)))}function Pr(e,r,t){r&&t?(e.Vk=r,e.Gk=t):(r=e.Vk,t=e.Gk);var a=r,_=t;if(i.forcedAspectRatio&&0<i.forcedAspectRatio&&(a/_<i.forcedAspectRatio?a=Math.round(_*i.forcedAspectRatio):_=Math.round(a/i.forcedAspectRatio)),(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e.parentNode&&"undefined"!=typeof screen){var n=Math.min(screen.width/a,screen.height/_);a=Math.round(a*n),_=Math.round(_*n)}zr?(e.width!=a&&(e.width=a),e.height!=_&&(e.height=_),void 0!==e.style&&(e.style.removeProperty("width"),e.style.removeProperty("height"))):(e.width!=r&&(e.width=r),e.height!=t&&(e.height=t),void 0!==e.style&&(a!=r||_!=t?(e.style.setProperty("width",a+"px","important"),e.style.setProperty("height",_+"px","important")):(e.style.removeProperty("width"),e.style.removeProperty("height"))))}var Fr,Mr,Kr,Cr,Or,Br=[],Dr=e=>{var r=Br[e];return r||(e>=Br.length&&(Br.length=e+1),Br[e]=r=Kr.get(e)),r};function Ur(e,r,t,a,i){function _(){var r=0,t=0;y.response&&v&&0===w[e+12>>2]&&(t=y.response.byteLength),0<t&&(r=ct(t),b.set(new Uint8Array(y.response),r)),w[e+12>>2]=r,Zr(e+16,t),Zr(e+24,0),(r=y.response?y.response.byteLength:0)&&Zr(e+32,r),E[e+40>>1]=y.readyState,E[e+42>>1]=y.status,y.statusText&&ie(y.statusText,b,e+44,64)}var n=w[e+8>>2];if(n){var o=n?re(b,n):"",s=e+112,c=Je(s+0);c||="GET";var l=w[s+56>>2],d=w[s+68>>2],h=w[s+72>>2];n=w[s+76>>2];var u=w[s+80>>2],f=w[s+84>>2],p=w[s+88>>2],m=w[s+52>>2],v=!!(1&m),g=!!(2&m);m=!!(64&m),d=d?d?re(b,d):"":void 0,h=h?h?re(b,h):"":void 0;var y=new XMLHttpRequest;if(y.withCredentials=!!b[s+60>>0],y.open(c,o,!m,d,h),m||(y.timeout=l),y.Jj=o,y.responseType="arraybuffer",u&&(o=u?re(b,u):"",y.overrideMimeType(o)),n)for(;(s=w[n>>2])&&(o=w[n+4>>2]);)n+=8,s=s?re(b,s):"",o=o?re(b,o):"",y.setRequestHeader(s,o);var N=Cr.bk(y);w[e>>2]=N,n=f&&p?b.slice(f,f+p):null,y.onload=a=>{Cr.has(N)&&(_(),200<=y.status&&300>y.status?r?.(e,y,a):t?.(e,y,a))},y.onerror=r=>{Cr.has(N)&&(_(),t?.(e,y,r))},y.ontimeout=r=>{Cr.has(N)&&t?.(e,y,r)},y.onprogress=r=>{if(Cr.has(N)){var t=v&&g&&y.response?y.response.byteLength:0,i=0;0<t&&v&&g&&(i=ct(t),b.set(new Uint8Array(y.response),i)),w[e+12>>2]=i,Zr(e+16,t),Zr(e+24,r.loaded-t),Zr(e+32,r.total),E[e+40>>1]=y.readyState,3<=y.readyState&&0===y.status&&0<r.loaded&&(y.status=200),E[e+42>>1]=y.status,y.statusText&&ie(y.statusText,b,e+44,64),a?.(e,y,r),i&&st(i)}},y.onreadystatechange=r=>{Cr.has(N)&&(E[e+40>>1]=y.readyState,2<=y.readyState&&(E[e+42>>1]=y.status),i?.(e,y,r))};try{y.send(n)}catch(r){t?.(e,y,r)}}else t(e,0,"no url specified!")}var Zr=(e,r)=>{w[e>>2]=r,w[e+4>>2]=(r-w[e>>2])/4294967296};function Vr(e,r,t,a){var i=Or;if(i){var _=w[e+112+64>>2];_||=w[e+8>>2];var n=_?re(b,_):"";try{var o=i.transaction(["FILES"],"readwrite").objectStore("FILES").put(r,n);o.onsuccess=()=>{E[e+40>>1]=4,E[e+42>>1]=200,ie("OK",b,e+44,64),t(e,0,n)},o.onerror=r=>{E[e+40>>1]=4,E[e+42>>1]=413,ie("Payload Too Large",b,e+44,64),a(e,0,r)}}catch(r){a(e,0,r)}}else a(e,0,"IndexedDB not available!")}var Gr,Hr,Wr,Yr={},Xr=()=>{if(!Gr){var e,r={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",_:o||"./this.program"};for(e in Yr)void 0===Yr[e]?delete r[e]:r[e]=Yr[e];var t=[];for(e in r)t.push(`${e}=${r[e]}`);Gr=t}return Gr},qr=1,$r=[],Jr=[],Qr=e=>{for(var r=qr++,t=e.length;t<r;t++)e[t]=null;return r},et=e=>{if(e||=Wr,!e.Hk){e.Hk=!0;var r=e.lk;(e=>{var r=e.getExtension("ANGLE_instanced_arrays");r&&(e.vertexAttribDivisor=(e,t)=>r.vertexAttribDivisorANGLE(e,t),e.drawArraysInstanced=(e,t,a,i)=>r.drawArraysInstancedANGLE(e,t,a,i),e.drawElementsInstanced=(e,t,a,i,_)=>r.drawElementsInstancedANGLE(e,t,a,i,_))})(r),(e=>{var r=e.getExtension("OES_vertex_array_object");r&&(e.createVertexArray=()=>r.createVertexArrayOES(),e.deleteVertexArray=e=>r.deleteVertexArrayOES(e),e.bindVertexArray=e=>r.bindVertexArrayOES(e),e.isVertexArray=e=>r.isVertexArrayOES(e))})(r),(e=>{var r=e.getExtension("WEBGL_draw_buffers");r&&(e.drawBuffers=(e,t)=>r.drawBuffersWEBGL(e,t))})(r),r.dl=r.getExtension("EXT_disjoint_timer_query"),r.hl=r.getExtension("WEBGL_multi_draw"),function(e){var r="ANGLE_instanced_arrays EXT_blend_minmax EXT_disjoint_timer_query EXT_frag_depth EXT_shader_texture_lod EXT_sRGB OES_element_index_uint OES_fbo_render_mipmap OES_standard_derivatives OES_texture_float OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_depth_texture WEBGL_draw_buffers EXT_color_buffer_half_float EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw".split(" ");return(e.getSupportedExtensions()||[]).filter((e=>r.includes(e)))}(r).forEach((e=>{e.includes("lose_context")||e.includes("debug")||r.getExtension(e)}))}},rt={},tt=[31,29,31,30,31,30,31,31,30,31,30,31],at=[31,28,31,30,31,30,31,31,30,31,30,31];function it(e,r,t,a){e||=this,this.parent=e,this.Oj=e.Oj,this.Xj=null,this.id=Ee++,this.name=r,this.mode=t,this.Bj={},this.Dj={},this.$j=a}Object.defineProperties(it.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}}}),[44].forEach((e=>{ye[e]=new ge(e),ye[e].stack="<generic error, no stack>"})),ve=Array(4096),Oe(he,"/"),De("/tmp"),De("/home"),De("/home/web_user"),function(){De("/dev"),Ce(259,{read:()=>0,write:(e,r,t,a)=>a}),Ue("/dev/null",259),oe(1280,ce),oe(1536,le),Ue("/dev/tty",1280),Ue("/dev/tty1",1536);var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=J(e).byteLength),e[--r]);We("random",t),We("urandom",t),De("/dev/shm"),De("/dev/shm/tmp")}(),function(){De("/proc");var e=De("/proc/self");De("/proc/self/fd"),Oe({Oj(){var r=Ie(e,"fd",16895,73);return r.Bj={Zj(e,r){var t=Pe(+r);return(e={parent:null,Oj:{wk:"fake"},Bj:{ak:()=>t.path}}).parent=e}},r}},"/proc/self/fd")}(),i.requestFullscreen=function(e,r){function t(){yr=!1;var e=a.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e?(a.exitFullscreen=Ir,jr&&a.requestPointerLock(),yr=!0,zr?("undefined"!=typeof SDL&&(v[SDL.screen>>2]=8388608|w[SDL.screen>>2]),Pr(i.canvas),Tr()):Pr(a)):(e.parentNode.insertBefore(a,e),e.parentNode.removeChild(e),zr?("undefined"!=typeof SDL&&(v[SDL.screen>>2]=-8388609&w[SDL.screen>>2]),Pr(i.canvas),Tr()):Pr(a)),i.onFullScreen?.(yr),i.onFullscreen?.(yr)}void 0===(jr=e)&&(jr=!0),void 0===(zr=r)&&(zr=!1);var a=i.canvas;Sr||(Sr=!0,document.addEventListener("fullscreenchange",t,!1),document.addEventListener("mozfullscreenchange",t,!1),document.addEventListener("webkitfullscreenchange",t,!1),document.addEventListener("MSFullscreenChange",t,!1));var _=document.createElement("div");a.parentNode.insertBefore(_,a),_.appendChild(a),_.requestFullscreen=_.requestFullscreen||_.mozRequestFullScreen||_.msRequestFullscreen||(_.webkitRequestFullscreen?()=>_.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):null)||(_.webkitRequestFullScreen?()=>_.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):null),_.requestFullscreen()},i.requestAnimationFrame=Ar,i.setCanvasSize=function(e,r,t){Pr(i.canvas,e,r),t||Tr()},i.pauseMainLoop=function(){fr=null,pr++},i.resumeMainLoop=function(){pr++;var e=mr,r=Er,t=br;br=null,(e=>{!br||K("emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),br=e;var r=pr;ur=!1,dr=function(){if(!N)if(0<wr.length){var t=wr.shift();if(t.fl(t.Xk),hr){var a=hr,_=0==a%1?a-1:Math.floor(a);hr=t.cl?_:(8*a+(_+.5))/9}i.setStatus&&(t=i.statusMessage||"Please wait...",_=gr.el,(a=hr)?a<_?i.setStatus(t+" ("+(_-a)+"/"+_+")"):i.setStatus(t):i.setStatus("")),r<pr||setTimeout(dr,0)}else r<pr||(vr=vr+1|0,1==mr&&1<Er&&0!=vr%Er?fr():(0==mr&&(lr=tr()),N||i.preMainLoop&&!1===i.preMainLoop()||(sr(e),i.postMainLoop?.()),r<pr||("object"==typeof SDL&&SDL.audio?.ll?.(),fr())))}})(t),((e,r)=>{if(mr=e,Er=r,br)if(ur||=!0,0==e)fr=function(){var e=0|Math.max(0,lr+r-tr());setTimeout(dr,e)};else if(1==e)fr=function(){Ar(dr)};else if(2==e){if(void 0===Fr)if("undefined"==typeof setImmediate){var t=[];addEventListener("message",(e=>{"setimmediate"!==e.data&&"setimmediate"!==e.data.target||(e.stopPropagation(),t.shift()())}),!0),Fr=function(e){t.push(e),void 0===i.setImmediates&&(i.setImmediates=[]),i.setImmediates.push(e),postMessage({target:"setimmediate"})}}else Fr=setImmediate;fr=function(){Fr(dr)}}})(e,r),fr()},i.getUserMedia=function(e){let r;(r=window).getUserMedia||(r.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},i.createContext=function(e,r,t,a){if(r&&i.mk&&e==i.canvas)return i.mk;var _;if(r){var n={antialias:!1,alpha:!1,Mk:1};if(a)for(var o in a)n[o]=a[o];if(void 0!==rt&&(_=((e,r)=>{e.Jj||(e.Jj=e.getContext,e.getContext=function(r,t){return"webgl"==r==(t=e.Jj(r,t))instanceof WebGLRenderingContext?t:null});var t=e.getContext("webgl",r);return t?((e,r)=>{var t=Qr(Jr),a={handle:t,attributes:r,version:r.Mk,lk:e};return e.canvas&&(e.canvas.Wk=a),Jr[t]=a,(void 0===r.Ek||r.Ek)&&et(a),t})(t,r):0})(e,n)))var s=Jr[_].lk}else s=e.getContext("2d");return s?(t&&(r||void 0===_t||K("cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),i.mk=s,r&&(Wr=Jr[_],i.mk=_t=Wr?.lk),i.nl=r,kr.forEach((e=>e())),function(){function e(){Nr=document.pointerLockElement===i.canvas||document.mozPointerLockElement===i.canvas||document.webkitPointerLockElement===i.canvas||document.msPointerLockElement===i.canvas}if(!Mr){Mr=!0,ue.push({canHandle:function(e){return!i.jl&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,r,t,a){var i=new Blob([e],{type:xr(r)});i.size!==e.length&&(i=new Blob([new Uint8Array(e).buffer],{type:xr(r)}));var _=URL.createObjectURL(i),n=new Image;n.onload=()=>{n.complete||K(`Image ${r} could not be decoded`);var a=document.createElement("canvas");a.width=n.width,a.height=n.height,a.getContext("2d").drawImage(n,0,0),URL.revokeObjectURL(_),t?.(e)},n.onerror=()=>{h(`Image ${_} could not be decoded`),a?.()},n.src=_}}),ue.push({canHandle:function(e){return!i.il&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,r,t){function a(){i||(i=!0,t?.(e))}var i=!1,_=URL.createObjectURL(new Blob([e],{type:xr(r)})),n=new Audio;n.addEventListener("canplaythrough",(()=>a()),!1),n.onerror=function(){if(!i){h(`warning: browser could not fully decode audio ${r}, trying slower base64 approach`);for(var t="",_=0,o=0,s=0;s<e.length;s++)for(_=_<<8|e[s],o+=8;6<=o;){var c=_>>o-6&63;o-=6,t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[c]}2==o?(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&_)<<4],t+="=="):4==o&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&_)<<2],t+="="),n.src="data:audio/x-"+r.substr(-3)+";base64,"+t,a()}},n.src=_,cr((()=>{a()}),1e4)}});var r=i.canvas;r&&(r.requestPointerLock=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||(()=>{}),r.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||(()=>{}),r.exitPointerLock=r.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",e,!1),document.addEventListener("mozpointerlockchange",e,!1),document.addEventListener("webkitpointerlockchange",e,!1),document.addEventListener("mspointerlockchange",e,!1),i.elementPointerLock&&r.addEventListener("click",(e=>{!Nr&&i.canvas.requestPointerLock&&(i.canvas.requestPointerLock(),e.preventDefault())}),!1))}}()),s):null},Cr=new class{constructor(){this.Wj=[void 0],this.Jj=[]}get(e){return this.Wj[e]}has(e){return void 0!==this.Wj[e]}bk(e){var r=this.Jj.pop()||this.Wj.length;return this.Wj[r]=e,r}},F(),function(e,r){try{var t=indexedDB.open("emscripten_filesystem",1)}catch(e){return void r()}t.onupgradeneeded=e=>{(e=e.target.result).objectStoreNames.contains("FILES")&&e.deleteObjectStore("FILES"),e.createObjectStore("FILES")},t.onsuccess=e=>(e=>{Or=e,M()})(e.target.result),t.onerror=r}(0,(()=>{Or=!1,M()}));var _t,nt={r:e=>{if(e=new G(e),0==p[e.Gj+12>>0]&&(p[e.Gj+12>>0]=1,Z--),p[e.Gj+13>>0]=0,U.push(e),mt(e.Rj),vt(w[e.Gj+4>>2]))e=w[e.Rj>>2];else{var r=w[e.Gj+16>>2];e=0!==r?r:e.Rj}return e},dc:()=>{if(!U.length)return 0;var e=U[U.length-1];return mt(e.Rj),e.Rj},w:()=>{dt(0,0);var e=U.pop();bt(e.Rj),V=0},a:()=>H([]),i:e=>H([e]),D:(e,r)=>H([e,r]),Ka:W,cc:e=>{e&&(e=new G(e),U.push(e),p[e.Gj+13>>0]=1,W())},n:(e,r,t)=>{var a=new G(e);throw w[a.Gj+16>>2]=0,w[a.Gj+4>>2]=r,w[a.Gj+8>>2]=t,Z++,V=e},ta:()=>Z,c:e=>{throw V||=e,V},T:function(e,r,t){er=t;try{var a=Pe(e);switch(r){case 0:var i=rr();if(0>i)break;for(;me[i];)i++;return Fe(a,i).Qj;case 1:case 2:case 13:case 14:return 0;case 3:return a.flags;case 4:return i=rr(),a.flags|=i,0;case 12:return i=rr(),m[i+0>>1]=2,0}return-28}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Ij}},jc:function(e,r,t){try{var a=Pe(e);if(!a.Sj){var i=Ne(a.path,{ck:!0}).node;if(!i.Bj.fk)throw new ge(54);var _=i.Bj.fk(i);a.Sj=_}e=0;for(var n=He(a,0,1),o=Math.floor(n/280);o<a.Sj.length&&e+280<=t;){var s=a.Sj[o];if("."===s)var c=a.node.id,l=4;else if(".."===s)c=Ne(a.path,{parent:!0}).node.id,l=4;else{var d=ze(a.node,s);c=d.id,l=8192==(61440&d.mode)?2:Re(d.mode)?4:40960==(61440&d.mode)?10:8}x=[c>>>0,(A=c,1<=+Math.abs(A)?0<A?+Math.floor(A/4294967296)>>>0:~~+Math.ceil((A-+(~~A>>>0))/4294967296)>>>0:0)],v[r+e>>2]=x[0],v[r+e+4>>2]=x[1],x=[280*(o+1)>>>0,(A=280*(o+1),1<=+Math.abs(A)?0<A?+Math.floor(A/4294967296)>>>0:~~+Math.ceil((A-+(~~A>>>0))/4294967296)>>>0:0)],v[r+e+8>>2]=x[0],v[r+e+12>>2]=x[1],m[r+e+16>>1]=280,p[r+e+18>>0]=l,ie(s,b,r+e+19,256),e+=280,o+=1}return He(a,280*o,0),e}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Ij}},qc:function(e,r,t){er=t;try{var a=Pe(e);switch(r){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return a.Ej?0:-59;case 21505:if(!a.Ej)return-59;if(a.Ej.Pj.Jk){e=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var i=rr();v[i>>2]=25856,v[i+4>>2]=5,v[i+8>>2]=191,v[i+12>>2]=35387;for(var _=0;32>_;_++)p[i+_+17>>0]=e[_]||0}return 0;case 21506:case 21507:case 21508:if(!a.Ej)return-59;if(a.Ej.Pj.Kk)for(i=rr(),e=[],_=0;32>_;_++)e.push(p[i+_+17>>0]);return 0;case 21519:return a.Ej?(i=rr(),v[i>>2]=0):-59;case 21520:return a.Ej?-28:-59;case 21531:if(i=rr(),!a.Dj.Ik)throw new ge(59);return a.Dj.Ik(a,r,i);case 21523:return a.Ej?(a.Ej.Pj.Lk&&(_=[24,80],i=rr(),m[i>>1]=_[0],m[i+2>>1]=_[1]),0):-59;default:return-28}}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Ij}},Oa:function(e,r,t,a){er=a;try{return Ge(r=Qe(e,r=r?re(b,r):""),t,a?rr():0).Qj}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Ij}},hc:function(e,r,t,a){try{if(r=Qe(e,r=r?re(b,r):""),0>=a)return-28;var i=Ve(r),_=Math.min(a,ae(i)),n=p[t+_];return ie(i,b,t,a+1),p[t+_]=n,_}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Ij}},mc:function(e,r){try{var t=Ne(e=e?re(b,e):"",{ck:!0}).node;if(!t)throw new ge(44);if(!t.Bj.Kj)throw new ge(63);var a=t.Bj.Kj(t);v[r>>2]=a.Dk,v[r+4>>2]=a.mode,w[r+8>>2]=a.Pk,v[r+12>>2]=a.uid,v[r+16>>2]=a.Fk,v[r+20>>2]=a.$j,x=[a.size>>>0,(A=a.size,1<=+Math.abs(A)?0<A?+Math.floor(A/4294967296)>>>0:~~+Math.ceil((A-+(~~A>>>0))/4294967296)>>>0:0)],v[r+24>>2]=x[0],v[r+28>>2]=x[1],v[r+32>>2]=4096,v[r+36>>2]=a.Bk;var i=a.zk.getTime(),_=a.Ok.getTime(),n=a.Ck.getTime();return x=[Math.floor(i/1e3)>>>0,(A=Math.floor(i/1e3),1<=+Math.abs(A)?0<A?+Math.floor(A/4294967296)>>>0:~~+Math.ceil((A-+(~~A>>>0))/4294967296)>>>0:0)],v[r+40>>2]=x[0],v[r+44>>2]=x[1],w[r+48>>2]=i%1e3*1e3,x=[Math.floor(_/1e3)>>>0,(A=Math.floor(_/1e3),1<=+Math.abs(A)?0<A?+Math.floor(A/4294967296)>>>0:~~+Math.ceil((A-+(~~A>>>0))/4294967296)>>>0:0)],v[r+56>>2]=x[0],v[r+60>>2]=x[1],w[r+64>>2]=_%1e3*1e3,x=[Math.floor(n/1e3)>>>0,(A=Math.floor(n/1e3),1<=+Math.abs(A)?0<A?+Math.floor(A/4294967296)>>>0:~~+Math.ceil((A-+(~~A>>>0))/4294967296)>>>0:0)],v[r+72>>2]=x[0],v[r+76>>2]=x[1],w[r+80>>2]=n%1e3*1e3,x=[a.uk>>>0,(A=a.uk,1<=+Math.abs(A)?0<A?+Math.floor(A/4294967296)>>>0:~~+Math.ceil((A-+(~~A>>>0))/4294967296)>>>0:0)],v[r+88>>2]=x[0],v[r+92>>2]=x[1],0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Ij}},ic:function(e,r){try{return Ze(e=e?re(b,e):"",r=r?re(b,r):""),0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Ij}},fc:function(e,r,t){try{if(r=Qe(e,r=r?re(b,r):""),0===t){var a=r,i=Ne(a,{parent:!0}).node;if(!i)throw new ge(44);var _=$(a),n=ze(i,_),o=Te(i,_,!1);if(o)throw new ge(o);if(!i.Bj.kk)throw new ge(63);if(n.Xj)throw new ge(10);i.Bj.kk(i,_),je(n)}else if(512===t){a=Ne(i=r,{parent:!0}).node;var s=$(i),c=ze(a,s),l=Te(a,s,!0);if(l)throw new ge(l);if(!a.Bj.gk)throw new ge(63);if(c.Xj)throw new ge(10);a.Bj.gk(a,s),je(c)}else K("Invalid flags passed to unlinkat");return 0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.Ij}},rc:function(e){if(Cr.has(e)){var r=Cr.get(e),t=Cr;t.Wj[e]=void 0,t.Jj.push(e),0<r.readyState&&4>r.readyState&&r.abort()}},oc:()=>1,xb:function(e,r,t){e=new Date(1e3*(r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN)),v[t>>2]=e.getUTCSeconds(),v[t+4>>2]=e.getUTCMinutes(),v[t+8>>2]=e.getUTCHours(),v[t+12>>2]=e.getUTCDate(),v[t+16>>2]=e.getUTCMonth(),v[t+20>>2]=e.getUTCFullYear()-1900,v[t+24>>2]=e.getUTCDay(),v[t+28>>2]=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},yb:function(e,r,t){e=new Date(1e3*(r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN)),v[t>>2]=e.getSeconds(),v[t+4>>2]=e.getMinutes(),v[t+8>>2]=e.getHours(),v[t+12>>2]=e.getDate(),v[t+16>>2]=e.getMonth(),v[t+20>>2]=e.getFullYear()-1900,v[t+24>>2]=e.getDay(),v[t+28>>2]=(ar(e.getFullYear())?ir:_r)[e.getMonth()]+e.getDate()-1|0,v[t+36>>2]=-60*e.getTimezoneOffset(),r=new Date(e.getFullYear(),6,1).getTimezoneOffset();var a=new Date(e.getFullYear(),0,1).getTimezoneOffset();v[t+32>>2]=0|(r!=a&&e.getTimezoneOffset()==Math.min(a,r))},gc:(e,r,t)=>{function a(e){return(e=e.toTimeString().match(/\(([A-Za-z ]+)\)$/))?e[1]:"GMT"}var i=(new Date).getFullYear(),_=new Date(i,0,1),n=new Date(i,6,1);i=_.getTimezoneOffset();var o=n.getTimezoneOffset();w[e>>2]=60*Math.max(i,o),v[r>>2]=Number(i!=o),e=a(_),r=a(n),e=nr(e),r=nr(r),o<i?(w[t>>2]=e,w[t+4>>2]=r):(w[t>>2]=r,w[t+4>>2]=e)},G:()=>{K("")},sb:function(){self.postMessage({t:"gfx"})},ub:function(){var e=new URL(location.origin).hostname;if(0===e.length&&(e=new URL(location.href.replace("blob:","")).hostname),/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e))0===e.indexOf("10.")&&(e="10.*"),0===e.indexOf("192.168.")&&(e="192.168.*"),0===e.indexOf("172.")&&(e="172.*"),0===e.indexOf("127.")&&(e="127.*");else{var r=new RegExp("("+String.fromCharCode(92)+".ngrok"+String.fromCharCode(92)+".io)$","i");r.test(e)&&(e="*.ngrok.io"),(r=new RegExp("("+String.fromCharCode(92)+".ngrok-free"+String.fromCharCode(92)+".app)$","i")).test(e)&&(e="*.ngrok.io"),(r=new RegExp("("+String.fromCharCode(92)+".arweb"+String.fromCharCode(92)+".app)$","i")).test(e)&&(e="*.arweb.app")}r=ae(e)+1;var t=ct(r);return ie(e,b,t,r+1),t},tb:function(){self.postMessage({t:"licerr"})},Ja:(e,r,t)=>{function a(){Dr(e)(r)}0<=t?cr(a,t):function(e){Ar((()=>{sr(e)}))}(a)},ua:()=>Date.now(),ac:()=>2147483648,nc:tr,tc:()=>!1,pc:(e,r,t)=>b.copyWithin(e,r,r+t),ec:e=>{var r=b.length;if(2147483648<(e>>>=0))return!1;for(var t=1;4>=t;t*=2){var a=r*(1+.2/t);a=Math.min(a,e+100663296);var i=Math;a=Math.max(e,a);e:{i=(i.min.call(i,2147483648,a+(65536-a%65536)%65536)-u.buffer.byteLength+65535)/65536;try{u.grow(i),k();var _=1;break e}catch(e){}_=void 0}if(_)return!0}return!1},sc:function(e,r,t,a,i){function _(e){h?e():sr(e)}var n=e+112,o=w[n+36>>2],s=w[n+40>>2],c=w[n+44>>2],l=w[n+48>>2],d=w[n+52>>2],h=!!(64&d),u=e=>{_((()=>{o?Dr(o)(e):r?.(e)}))},f=e=>{_((()=>{c?Dr(c)(e):a?.(e)}))},p=e=>{_((()=>{s?Dr(s)(e):t?.(e)}))},m=e=>{_((()=>{l?Dr(l)(e):i?.(e)}))},v=e=>{Ur(e,u,p,f,m)},g=(e,t)=>{Vr(e,t.response,(e=>{_((()=>{o?Dr(o)(e):r?.(e)}))}),(e=>{_((()=>{o?Dr(o)(e):r?.(e)}))}))},y=Je(n+0),N=!!(16&d),k=!!(4&d);if(d=!!(32&d),"EM_IDB_STORE"===y)v=w[n+84>>2],Vr(e,b.slice(v,v+w[n+88>>2]),u,p);else if("EM_IDB_DELETE"===y)!function(e,r,t){var a=Or;if(a){var i=w[e+112+64>>2];i||=w[e+8>>2],i=i?re(b,i):"";try{var _=a.transaction(["FILES"],"readwrite").objectStore("FILES").delete(i);_.onsuccess=t=>{t=t.target.result,w[e+12>>2]=0,Zr(e+16,0),Zr(e+24,0),Zr(e+32,0),E[e+40>>1]=4,E[e+42>>1]=200,ie("OK",b,e+44,64),r(e,0,t)},_.onerror=r=>{E[e+40>>1]=4,E[e+42>>1]=404,ie("Not Found",b,e+44,64),t(e,0,r)}}catch(r){t(e,0,r)}}else t(e,0,"IndexedDB not available!")}(e,u,p);else if(N){if(d)return 0;Ur(e,k?g:u,p,f,m)}else!function(e,r,t){var a=Or;if(a){var i=w[e+112+64>>2];i||=w[e+8>>2],i=i?re(b,i):"";try{var _=a.transaction(["FILES"],"readonly").objectStore("FILES").get(i);_.onsuccess=a=>{if(a.target.result){var i=(a=a.target.result).byteLength||a.length,_=ct(i);b.set(new Uint8Array(a),_),w[e+12>>2]=_,Zr(e+16,i),Zr(e+24,0),Zr(e+32,i),E[e+40>>1]=4,E[e+42>>1]=200,ie("OK",b,e+44,64),r(e,0,a)}else E[e+40>>1]=4,E[e+42>>1]=404,ie("Not Found",b,e+44,64),t(e,0,"no data")},_.onerror=r=>{E[e+40>>1]=4,E[e+42>>1]=404,ie("Not Found",b,e+44,64),t(e,0,r)}}catch(r){t(e,0,r)}}else t(e,0,"IndexedDB not available!")}(e,u,d?p:k?e=>{Ur(e,g,p,f,m)}:v);return e},kc:(e,r)=>{var t=0;return Xr().forEach(((a,i)=>{var _=r+t;for(i=w[e+4*i>>2]=_,_=0;_<a.length;++_)p[i++>>0]=a.charCodeAt(_);p[i>>0]=0,t+=a.length+1})),0},lc:(e,r)=>{var t=Xr();w[e>>2]=t.length;var a=0;return t.forEach((e=>a+=e.length+1)),w[r>>2]=a,0},uc:e=>{f=e,or(e)},ca:function(e){try{var r=Pe(e);if(null===r.Qj)throw new ge(8);r.Sj&&(r.Sj=null);try{r.Dj.close&&r.Dj.close(r)}catch(e){throw e}finally{me[r.Qj]=null}return r.Qj=null,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.Ij}},Pa:function(e,r,t,a){try{e:{var i=Pe(e);e=r;for(var _,n=r=0;n<t;n++){var o=w[e>>2],s=w[e+4>>2];e+=8;var c=i,l=_,d=p;if(0>s||0>l)throw new ge(28);if(null===c.Qj)throw new ge(8);if(1==(2097155&c.flags))throw new ge(8);if(Re(c.node.mode))throw new ge(31);if(!c.Dj.read)throw new ge(28);var h=void 0!==l;if(h){if(!c.seekable)throw new ge(70)}else l=c.position;var u=c.Dj.read(c,d,o,s,l);h||(c.position+=u);var f=u;if(0>f){var b=-1;break e}if(r+=f,f<s)break;void 0!==_&&(_+=f)}b=r}return w[a>>2]=b,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.Ij}},zb:function(e,r,t,a,i){r=t+2097152>>>0<4194305-!!r?(r>>>0)+4294967296*t:NaN;try{if(isNaN(r))return 61;var _=Pe(e);return He(_,r,a),x=[_.position>>>0,(A=_.position,1<=+Math.abs(A)?0<A?+Math.floor(A/4294967296)>>>0:~~+Math.ceil((A-+(~~A>>>0))/4294967296)>>>0:0)],v[i>>2]=x[0],v[i+4>>2]=x[1],_.Sj&&0===r&&0===a&&(_.Sj=null),0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.Ij}},va:function(e,r,t,a){try{e:{var i=Pe(e);e=r;for(var _,n=r=0;n<t;n++){var o=w[e>>2],s=w[e+4>>2];e+=8;var c=i,l=o,d=s,h=_,u=p;if(0>d||0>h)throw new ge(28);if(null===c.Qj)throw new ge(8);if(0==(2097155&c.flags))throw new ge(8);if(Re(c.node.mode))throw new ge(31);if(!c.Dj.write)throw new ge(28);c.seekable&&1024&c.flags&&He(c,0,2);var f=void 0!==h;if(f){if(!c.seekable)throw new ge(70)}else h=c.position;var b=c.Dj.write(c,u,l,d,h,void 0);f||(c.position+=b);var m=b;if(0>m){var E=-1;break e}r+=m,void 0!==_&&(_+=m)}E=r}return w[a>>2]=E,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.Ij}},Ma:(e,r)=>{_t.bindTexture(e,$r[r])},Na:(e,r)=>{for(var t=0;t<e;t++){var a=_t.createTexture(),i=a&&Qr($r);a?(a.name=i,$r[i]=a):Hr||=1282,v[r+4*t>>2]=i}},ra:(e,r,t,a,i,_,n,o,s)=>{var c=_t,l=c.texImage2D;if(s){var d=o-5120;d=1==d?b:4==d?v:6==d?g:5==d||28922==d?w:E;var h=31-Math.clz32(d.BYTES_PER_ELEMENT);s=d.subarray(s>>h,s+i*(a*({5:3,6:4,8:2,29502:3,29504:4}[n-6402]||1)*(1<<h)+4-1&-4)>>h)}else s=null;l.call(c,e,r,t,a,i,_,n,o,s)},sa:function(e,r,t){_t.texParameteri(e,r,t)},z:function(e){var r=ut();try{return Dr(e)()}catch(e){if(ft(r),e!==e+0)throw e;dt(1,0)}},da:function(e,r){var t=ut();try{return Dr(e)(r)}catch(e){if(ft(t),e!==e+0)throw e;dt(1,0)}},wa:function(e,r,t){var a=ut();try{return Dr(e)(r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},W:function(e,r,t){var a=ut();try{return Dr(e)(r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},V:function(e,r,t,a){var i=ut();try{return Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},ib:function(e,r,t,a,i){var _=ut();try{return Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},za:function(e,r,t,a,i,_,n,o){var s=ut();try{return Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},Mb:function(e,r,t,a,i){var _=ut();try{return Ft(e,r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Ab:function(e,r,t,a,i){var _=ut();try{return Wt(e,r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Q:function(e,r){var t=ut();try{return Dr(e)(r)}catch(e){if(ft(t),e!==e+0)throw e;dt(1,0)}},fa:function(e,r,t){var a=ut();try{return Dr(e)(r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},ga:function(e,r,t,a){var i=ut();try{return Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},ab:function(e,r,t,a,i,_){var n=ut();try{return Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},t:function(e){var r=ut();try{return Dr(e)()}catch(e){if(ft(r),e!==e+0)throw e;dt(1,0)}},Ra:function(e,r,t,a,i){var _=ut();try{return Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Ya:function(e,r,t,a,i,_){var n=ut();try{return Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},b:function(e,r){var t=ut();try{return Dr(e)(r)}catch(e){if(ft(t),e!==e+0)throw e;dt(1,0)}},q:function(e,r,t){var a=ut();try{return Dr(e)(r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},Aa:function(e,r,t,a){var i=ut();try{return Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},wc:function(e,r,t,a,i){var _=ut();try{return Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},ya:function(e,r,t,a){var i=ut();try{return Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},ha:function(e,r,t){var a=ut();try{return Dr(e)(r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},_a:function(e,r,t,a,i){var _=ut();try{return Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Za:function(e,r,t,a,i,_){var n=ut();try{return Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},e:function(e,r,t){var a=ut();try{return Dr(e)(r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},U:function(e,r,t,a){var i=ut();try{return Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},jb:function(e,r,t,a,i){var _=ut();try{return Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},vc:function(e,r,t,a,i,_,n,o){var s=ut();try{return Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},Xa:function(e,r,t,a,i,_,n,o,s,c,l,d,h){var u=ut();try{return Dr(e)(r,t,a,i,_,n,o,s,c,l,d,h)}catch(e){if(ft(u),e!==e+0)throw e;dt(1,0)}},$a:function(e,r,t,a,i,_){var n=ut();try{return Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},mb:function(e,r,t,a,i,_){var n=ut();try{return Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},d:function(e,r,t,a){var i=ut();try{return Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},Ta:function(e,r,t,a,i,_){var n=ut();try{return Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},l:function(e,r,t,a,i){var _=ut();try{return Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Sa:function(e,r,t,a,i,_){var n=ut();try{return Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},ia:function(e,r,t,a,i,_,n){var o=ut();try{return Dr(e)(r,t,a,i,_,n)}catch(e){if(ft(o),e!==e+0)throw e;dt(1,0)}},Ga:function(e,r,t,a,i,_,n,o,s){var c=ut();try{return Dr(e)(r,t,a,i,_,n,o,s)}catch(e){if(ft(c),e!==e+0)throw e;dt(1,0)}},s:function(e,r,t,a,i,_){var n=ut();try{return Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},B:function(e,r,t,a,i,_,n){var o=ut();try{return Dr(e)(r,t,a,i,_,n)}catch(e){if(ft(o),e!==e+0)throw e;dt(1,0)}},x:function(e,r,t,a,i,_,n,o){var s=ut();try{return Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},pb:function(e,r,t,a,i,_,n,o,s,c,l){var d=ut();try{return Dr(e)(r,t,a,i,_,n,o,s,c,l)}catch(e){if(ft(d),e!==e+0)throw e;dt(1,0)}},H:function(e,r,t,a,i,_,n,o,s){var c=ut();try{return Dr(e)(r,t,a,i,_,n,o,s)}catch(e){if(ft(c),e!==e+0)throw e;dt(1,0)}},ba:function(e,r,t,a,i,_,n,o,s,c){var l=ut();try{return Dr(e)(r,t,a,i,_,n,o,s,c)}catch(e){if(ft(l),e!==e+0)throw e;dt(1,0)}},M:function(e,r,t,a,i,_,n,o,s,c,l){var d=ut();try{return Dr(e)(r,t,a,i,_,n,o,s,c,l)}catch(e){if(ft(d),e!==e+0)throw e;dt(1,0)}},ka:function(e,r,t,a,i,_,n,o,s,c,l,d){var h=ut();try{return Dr(e)(r,t,a,i,_,n,o,s,c,l,d)}catch(e){if(ft(h),e!==e+0)throw e;dt(1,0)}},wb:function(e,r,t,a,i,_,n){var o=ut();try{return Yt(e,r,t,a,i,_,n)}catch(e){if(ft(o),e!==e+0)throw e;dt(1,0)}},Jb:function(e,r,t,a,i,_,n,o,s){var c=ut();try{return Ct(e,r,t,a,i,_,n,o,s)}catch(e){if(ft(c),e!==e+0)throw e;dt(1,0)}},Cb:function(e,r,t,a,i,_){var n=ut();try{return Gt(e,r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},Rb:function(e,r,t,a,i){var _=ut();try{return xt(e,r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Xb:function(e,r,t,a){var i=ut();try{return St(e,r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},Vb:function(e,r,t,a,i){var _=ut();try{return jt(e,r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Lb:function(e,r,t,a,i,_){var n=ut();try{return Mt(e,r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},Ib:function(e,r,t,a,i,_,n){var o=ut();try{return Ot(e,r,t,a,i,_,n)}catch(e){if(ft(o),e!==e+0)throw e;dt(1,0)}},Tb:function(e,r,t,a,i,_){var n=ut();try{return It(e,r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},Ob:function(e,r,t,a,i,_,n,o,s,c,l,d,h){var u=ut();try{return Tt(e,r,t,a,i,_,n,o,s,c,l,d,h)}catch(e){if(ft(u),e!==e+0)throw e;dt(1,0)}},Db:function(e,r,t,a){var i=ut();try{return Vt(e,r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},_b:function(e){var r=ut();try{return wt(e)}catch(e){if(ft(r),e!==e+0)throw e;dt(1,0)}},Qb:function(e,r){var t=ut();try{return Lt(e,r)}catch(e){if(ft(t),e!==e+0)throw e;dt(1,0)}},Gb:function(e,r,t){var a=ut();try{return Dt(e,r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},Hb:function(e,r,t,a){var i=ut();try{return Bt(e,r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},vb:function(e,r,t,a,i){var _=ut();try{return Xt(e,r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Ub:function(e,r,t,a){var i=ut();try{return At(e,r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},Sb:function(e,r,t,a,i){var _=ut();try{return Rt(e,r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Bb:function(e,r,t){var a=ut();try{return Ht(e,r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},m:function(e){var r=ut();try{Dr(e)()}catch(e){if(ft(r),e!==e+0)throw e;dt(1,0)}},Ea:function(e,r,t){var a=ut();try{Dr(e)(r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},L:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},g:function(e,r){var t=ut();try{Dr(e)(r)}catch(e){if(ft(t),e!==e+0)throw e;dt(1,0)}},Qa:function(e,r,t){var a=ut();try{Dr(e)(r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},gb:function(e,r,t,a){var i=ut();try{Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},Ua:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},ma:function(e,r,t,a,i,_,n){var o=ut();try{Dr(e)(r,t,a,i,_,n)}catch(e){if(ft(o),e!==e+0)throw e;dt(1,0)}},Wa:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},La:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},aa:function(e,r,t,a){var i=ut();try{Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},R:function(e,r,t,a,i){var _=ut();try{Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},ob:function(e,r,t){var a=ut();try{Dr(e)(r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},Va:function(e,r,t,a,i){var _=ut();try{Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},cb:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},f:function(e,r,t){var a=ut();try{Dr(e)(r,t)}catch(e){if(ft(a),e!==e+0)throw e;dt(1,0)}},u:function(e,r,t,a){var i=ut();try{Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},O:function(e,r,t,a,i){var _=ut();try{Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},N:function(e,r,t,a){var i=ut();try{Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},_:function(e,r,t,a,i){var _=ut();try{Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Ba:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},db:function(e,r,t,a,i,_,n,o,s){var c=ut();try{Dr(e)(r,t,a,i,_,n,o,s)}catch(e){if(ft(c),e!==e+0)throw e;dt(1,0)}},P:function(e,r,t,a,i){var _=ut();try{Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},h:function(e,r,t,a){var i=ut();try{Dr(e)(r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},ea:function(e,r,t,a,i){var _=ut();try{Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},xa:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},kb:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},Ca:function(e,r,t,a,i,_,n,o){var s=ut();try{Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},ja:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},Ia:function(e,r,t,a,i,_,n,o){var s=ut();try{Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},Y:function(e,r,t,a,i,_,n,o,s,c,l,d){var h=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l,d)}catch(e){if(ft(h),e!==e+0)throw e;dt(1,0)}},qb:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},pa:function(e,r,t,a,i,_,n){var o=ut();try{Dr(e)(r,t,a,i,_,n)}catch(e){if(ft(o),e!==e+0)throw e;dt(1,0)}},j:function(e,r,t,a,i){var _=ut();try{Dr(e)(r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},na:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},hb:function(e,r,t,a,i,_,n,o,s){var c=ut();try{Dr(e)(r,t,a,i,_,n,o,s)}catch(e){if(ft(c),e!==e+0)throw e;dt(1,0)}},rb:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},bb:function(e,r,t,a,i,_,n,o,s,c,l){var d=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l)}catch(e){if(ft(d),e!==e+0)throw e;dt(1,0)}},Ha:function(e,r,t,a,i,_,n,o){var s=ut();try{Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},qa:function(e,r,t,a,i,_,n){var o=ut();try{Dr(e)(r,t,a,i,_,n)}catch(e){if(ft(o),e!==e+0)throw e;dt(1,0)}},fb:function(e,r,t,a,i,_,n,o){var s=ut();try{Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},nb:function(e,r,t,a,i,_,n,o,s){var c=ut();try{Dr(e)(r,t,a,i,_,n,o,s)}catch(e){if(ft(c),e!==e+0)throw e;dt(1,0)}},k:function(e,r,t,a,i,_){var n=ut();try{Dr(e)(r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},X:function(e,r,t,a,i,_,n){var o=ut();try{Dr(e)(r,t,a,i,_,n)}catch(e){if(ft(o),e!==e+0)throw e;dt(1,0)}},lb:function(e,r,t,a,i,_,n,o){var s=ut();try{Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},$:function(e,r,t,a,i,_,n,o){var s=ut();try{Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},o:function(e,r,t,a,i,_,n){var o=ut();try{Dr(e)(r,t,a,i,_,n)}catch(e){if(ft(o),e!==e+0)throw e;dt(1,0)}},y:function(e,r,t,a,i,_,n,o){var s=ut();try{Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},oa:function(e,r,t,a,i,_,n,o){var s=ut();try{Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},p:function(e,r,t,a,i,_,n,o){var s=ut();try{Dr(e)(r,t,a,i,_,n,o)}catch(e){if(ft(s),e!==e+0)throw e;dt(1,0)}},v:function(e,r,t,a,i,_,n,o,s,c,l,d,h){var u=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l,d,h)}catch(e){if(ft(u),e!==e+0)throw e;dt(1,0)}},S:function(e,r,t,a,i,_,n,o,s,c){var l=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c)}catch(e){if(ft(l),e!==e+0)throw e;dt(1,0)}},Z:function(e,r,t,a,i,_,n,o,s,c,l,d,h){var u=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l,d,h)}catch(e){if(ft(u),e!==e+0)throw e;dt(1,0)}},C:function(e,r,t,a,i,_,n,o,s){var c=ut();try{Dr(e)(r,t,a,i,_,n,o,s)}catch(e){if(ft(c),e!==e+0)throw e;dt(1,0)}},F:function(e,r,t,a,i,_,n,o,s,c){var l=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c)}catch(e){if(ft(l),e!==e+0)throw e;dt(1,0)}},I:function(e,r,t,a,i,_,n,o,s,c,l){var d=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l)}catch(e){if(ft(d),e!==e+0)throw e;dt(1,0)}},Da:function(e,r,t,a,i,_,n,o,s,c,l,d){var h=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l,d)}catch(e){if(ft(h),e!==e+0)throw e;dt(1,0)}},K:function(e,r,t,a,i,_,n,o,s,c,l,d,h,u){var f=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l,d,h,u)}catch(e){if(ft(f),e!==e+0)throw e;dt(1,0)}},E:function(e,r,t,a,i,_,n,o,s,c,l,d){var h=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l,d)}catch(e){if(ft(h),e!==e+0)throw e;dt(1,0)}},J:function(e,r,t,a,i,_,n,o,s,c,l,d,h){var u=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l,d,h)}catch(e){if(ft(u),e!==e+0)throw e;dt(1,0)}},Fa:function(e,r,t,a,i,_,n,o,s,c,l,d,h,u){var f=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l,d,h,u)}catch(e){if(ft(f),e!==e+0)throw e;dt(1,0)}},eb:function(e,r,t,a,i,_,n,o,s,c,l,d,h,u,f){var p=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l,d,h,u,f)}catch(e){if(ft(p),e!==e+0)throw e;dt(1,0)}},la:function(e,r,t,a,i,_,n,o,s,c,l,d,h,u,f,p){var b=ut();try{Dr(e)(r,t,a,i,_,n,o,s,c,l,d,h,u,f,p)}catch(e){if(ft(b),e!==e+0)throw e;dt(1,0)}},Kb:function(e,r,t,a,i,_,n,o,s){var c=ut();try{Kt(e,r,t,a,i,_,n,o,s)}catch(e){if(ft(c),e!==e+0)throw e;dt(1,0)}},Zb:function(e,r,t,a,i,_){var n=ut();try{Nt(e,r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},$b:function(e,r,t,a,i){var _=ut();try{gt(e,r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Nb:function(e,r,t,a,i,_){var n=ut();try{Pt(e,r,t,a,i,_)}catch(e){if(ft(n),e!==e+0)throw e;dt(1,0)}},Wb:function(e,r,t,a,i,_,n){var o=ut();try{yt(e,r,t,a,i,_,n)}catch(e){if(ft(o),e!==e+0)throw e;dt(1,0)}},Yb:function(e,r,t,a){var i=ut();try{kt(e,r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},Pb:function(e,r,t,a,i){var _=ut();try{zt(e,r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},Eb:function(e,r,t,a){var i=ut();try{Zt(e,r,t,a)}catch(e){if(ft(i),e!==e+0)throw e;dt(1,0)}},Fb:function(e,r,t,a,i){var _=ut();try{Ut(e,r,t,a,i)}catch(e){if(ft(_),e!==e+0)throw e;dt(1,0)}},A:e=>e,bc:(e,r,t,a)=>((e,r,t,a)=>{function i(e,r,t){for(e="number"==typeof e?e.toString():e||"";e.length<r;)e=t[0]+e;return e}function _(e,r){return i(e,r,"0")}function n(e,r){function t(e){return 0>e?-1:0<e?1:0}var a;return 0===(a=t(e.getFullYear()-r.getFullYear()))&&0===(a=t(e.getMonth()-r.getMonth()))&&(a=t(e.getDate()-r.getDate())),a}function o(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function s(e){var r=e.Uj;for(e=new Date(new Date(e.Vj+1900,0,1).getTime());0<r;){var t=e.getMonth(),a=(ar(e.getFullYear())?tt:at)[t];if(!(r>a-e.getDate())){e.setDate(e.getDate()+r);break}r-=a-e.getDate()+1,e.setDate(1),11>t?e.setMonth(t+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return t=new Date(e.getFullYear()+1,0,4),r=o(new Date(e.getFullYear(),0,4)),t=o(t),0>=n(r,e)?0>=n(t,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var c=w[a+40>>2];for(var l in a={Sk:v[a>>2],Rk:v[a+4>>2],ik:v[a+8>>2],qk:v[a+12>>2],jk:v[a+16>>2],Vj:v[a+20>>2],Nj:v[a+24>>2],Uj:v[a+28>>2],ml:v[a+32>>2],Qk:v[a+36>>2],Tk:c&&c?re(b,c):""},t=t?re(b,t):"",c={"%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"})t=t.replace(new RegExp(l,"g"),c[l]);var d="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(l in c={"%a":e=>d[e.Nj].substring(0,3),"%A":e=>d[e.Nj],"%b":e=>h[e.jk].substring(0,3),"%B":e=>h[e.jk],"%C":e=>_((e.Vj+1900)/100|0,2),"%d":e=>_(e.qk,2),"%e":e=>i(e.qk,2," "),"%g":e=>s(e).toString().substring(2),"%G":s,"%H":e=>_(e.ik,2),"%I":e=>(0==(e=e.ik)?e=12:12<e&&(e-=12),_(e,2)),"%j":e=>{for(var r=0,t=0;t<=e.jk-1;r+=(ar(e.Vj+1900)?tt:at)[t++]);return _(e.qk+r,3)},"%m":e=>_(e.jk+1,2),"%M":e=>_(e.Rk,2),"%n":()=>"\n","%p":e=>0<=e.ik&&12>e.ik?"AM":"PM","%S":e=>_(e.Sk,2),"%t":()=>"\t","%u":e=>e.Nj||7,"%U":e=>_(Math.floor((e.Uj+7-e.Nj)/7),2),"%V":e=>{var r=Math.floor((e.Uj+7-(e.Nj+6)%7)/7);if(2>=(e.Nj+371-e.Uj-2)%7&&r++,r)53==r&&(4==(t=(e.Nj+371-e.Uj)%7)||3==t&&ar(e.Vj)||(r=1));else{r=52;var t=(e.Nj+7-e.Uj-1)%7;(4==t||5==t&&ar(e.Vj%400-1))&&r++}return _(r,2)},"%w":e=>e.Nj,"%W":e=>_(Math.floor((e.Uj+7-(e.Nj+6)%7)/7),2),"%y":e=>(e.Vj+1900).toString().substring(2),"%Y":e=>e.Vj+1900,"%z":e=>{var r=0<=(e=e.Qk);return e=Math.abs(e)/60,(r?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":e=>e.Tk,"%%":()=>"%"},t=t.replace(/%%/g,"\0\0"),c)t.includes(l)&&(t=t.replace(new RegExp(l,"g"),c[l](a)));return(l=_e(t=t.replace(/\0\0/g,"%"),!1)).length>r?0:(p.set(l,e),l.length-1)})(e,r,t,a)},ot=function(){function e(e){return ot=e.exports,u=ot.xc,k(),Kr=ot.Cc,j.unshift(ot.yc),M(),ot}var r={a:nt};if(F(),i.instantiateWasm)try{return i.instantiateWasm(r,e)}catch(e){h(`Module.instantiateWasm callback failed with error: ${e}`),a(e)}return r=function(e){if(R==R&&l)var r=new Uint8Array(l);else{if(!_)throw'sync fetching of the wasm failed: you can preload it to Module["wasmBinary"] manually, or emcc.py will do that for you when generating HTML (but not JS)';r=_(R)}return r=new WebAssembly.Module(r),[new WebAssembly.Instance(r,e),r]}(r),e(r[0])}();i._zappar_has_initialized=ot.zc,i._zappar_invert=ot.Ac,i._zappar_loaded=ot.Bc,i._zappar_pipeline_create=ot.Dc,i._zappar_pipeline_destroy=ot.Ec,i._zappar_pipeline_camera_frame_submit=ot.Fc,i._zappar_pipeline_camera_frame_submit_raw_pointer=ot.Gc,i._zappar_pipeline_frame_update=ot.Hc,i._zappar_pipeline_camera_frame_user_data=ot.Ic,i._zappar_pipeline_camera_model=ot.Jc,i._zappar_pipeline_frame_number=ot.Kc,i._zappar_pipeline_camera_frame_data_raw_size=ot.Lc,i._zappar_pipeline_camera_frame_data_raw_width=ot.Mc,i._zappar_pipeline_camera_frame_data_raw_height=ot.Nc,i._zappar_pipeline_camera_frame_data_raw=ot.Oc,i._zappar_pipeline_motion_accelerometer_submit=ot.Pc,i._zappar_pipeline_motion_accelerometer_with_gravity_submit_int=ot.Qc,i._zappar_pipeline_motion_accelerometer_without_gravity_submit_int=ot.Rc,i._zappar_pipeline_motion_rotation_rate_submit_int=ot.Sc,i._zappar_pipeline_motion_attitude_submit_int=ot.Tc,i._zappar_pipeline_motion_rotation_rate_submit=ot.Uc,i._zappar_pipeline_motion_attitude_submit=ot.Vc,i._zappar_pipeline_motion_attitude_matrix_submit=ot.Wc,i._zappar_pipeline_camera_frame_user_facing=ot.Xc,i._zappar_pipeline_camera_frame_texture_matrix=ot.Yc,i._zappar_pipeline_camera_pose_with_attitude=ot.Zc,i._zappar_pipeline_camera_pose_with_origin=ot._c,i._zappar_pipeline_camera_frame_camera_attitude=ot.$c,i._zappar_pipeline_camera_frame_device_attitude=ot.ad,i._zappar_pipeline_camera_frame_texture_gl=ot.bd,i._zappar_pipeline_camera_frame_upload_gl=ot.cd,i._zappar_pipeline_sequence_record_start=ot.dd,i._zappar_pipeline_sequence_record_stop=ot.ed,i._zappar_pipeline_sequence_record_clear=ot.fd,i._zappar_pipeline_sequence_record_device_attitude_matrices_set=ot.gd,i._zappar_pipeline_sequence_record_data_size=ot.hd,i._zappar_pipeline_sequence_record_data=ot.id,i._zappar_pipeline_process_gl=ot.jd,i._zappar_pipeline_camera_pose_default=ot.kd,i._zappar_instant_world_tracker_create=ot.ld,i._zappar_instant_world_tracker_destroy=ot.md,i._zappar_instant_world_tracker_anchor_pose_set_from_camera_offset_raw=ot.nd,i._zappar_instant_world_tracker_anchor_pose_raw=ot.od,i._zappar_instant_world_tracker_enabled_set=ot.pd,i._zappar_instant_world_tracker_enabled=ot.qd,i._zappar_image_tracker_create=ot.rd,i._zappar_image_tracker_destroy=ot.sd,i._zappar_image_tracker_target_load_from_memory=ot.td,i.__Z42zappar_image_tracker_target_load_from_fileP23zappar_image_tracker_tiPKc=ot.ud;var st=i._free=ot.vd;i._zappar_image_tracker_anchor_count=ot.wd,i._zappar_image_tracker_anchor_id=ot.xd,i._zappar_image_tracker_anchor_pose_raw=ot.yd,i._zappar_image_tracker_enabled_set=ot.zd,i._zappar_image_tracker_enabled=ot.Ad,i._zappar_image_tracker_target_loaded_version=ot.Bd,i.__Z33zappar_image_tracker_target_countP23zappar_image_tracker_ti=ot.Cd,i.__Z46zappar_image_tracker_target_preview_compressedP23zappar_image_tracker_tii=ot.Dd,i.__Z51zappar_image_tracker_target_preview_compressed_sizeP23zappar_image_tracker_tii=ot.Ed,i.__Z55zappar_image_tracker_target_preview_compressed_mimetypeP23zappar_image_tracker_tii=ot.Fd,i.__Z40zappar_image_tracker_target_preview_rgbaP23zappar_image_tracker_tii=ot.Gd,i.__Z45zappar_image_tracker_target_preview_rgba_sizeP23zappar_image_tracker_tii=ot.Hd,i.__Z46zappar_image_tracker_target_preview_rgba_widthP23zappar_image_tracker_tii=ot.Id,i.__Z47zappar_image_tracker_target_preview_rgba_heightP23zappar_image_tracker_tii=ot.Jd,i.__Z38zappar_image_tracker_target_radius_topP23zappar_image_tracker_tii=ot.Kd,i.__Z41zappar_image_tracker_target_radius_bottomP23zappar_image_tracker_tii=ot.Ld,i.__Z39zappar_image_tracker_target_side_lengthP23zappar_image_tracker_tii=ot.Md,i.__Z49zappar_image_tracker_target_physical_scale_factorP23zappar_image_tracker_tii=ot.Nd,i.__Z49zappar_image_tracker_target_preview_mesh_verticesP23zappar_image_tracker_tii=ot.Od,i.__Z48zappar_image_tracker_target_preview_mesh_normalsP23zappar_image_tracker_tii=ot.Pd,i.__Z44zappar_image_tracker_target_preview_mesh_uvsP23zappar_image_tracker_tii=ot.Qd,i.__Z48zappar_image_tracker_target_preview_mesh_indicesP23zappar_image_tracker_tii=ot.Rd,i.__Z54zappar_image_tracker_target_preview_mesh_vertices_sizeP23zappar_image_tracker_tii=ot.Sd,i.__Z53zappar_image_tracker_target_preview_mesh_normals_sizeP23zappar_image_tracker_tii=ot.Td,i.__Z49zappar_image_tracker_target_preview_mesh_uvs_sizeP23zappar_image_tracker_tii=ot.Ud,i.__Z53zappar_image_tracker_target_preview_mesh_indices_sizeP23zappar_image_tracker_tii=ot.Vd,i.__Z32zappar_image_tracker_target_typeP23zappar_image_tracker_tii=ot.Wd,i._zappar_face_tracker_create=ot.Xd,i._zappar_face_tracker_destroy=ot.Yd,i._zappar_face_tracker_model_load_from_memory=ot.Zd,i._zappar_face_tracker_anchor_count=ot._d,i._zappar_face_tracker_anchor_id=ot.$d,i._zappar_face_tracker_anchor_pose_raw=ot.ae,i._zappar_face_tracker_anchor_identity_coefficients=ot.be,i._zappar_face_tracker_anchor_expression_coefficients=ot.ce,i._zappar_face_tracker_enabled_set=ot.de,i._zappar_face_tracker_enabled=ot.ee,i._zappar_face_tracker_max_faces_set=ot.fe,i._zappar_face_tracker_max_faces=ot.ge,i._zappar_face_tracker_model_loaded_version=ot.he,i._zappar_face_landmark_create=ot.ie,i._zappar_face_landmark_destroy=ot.je,i.__Z27zappar_face_landmark_updateP23zappar_face_landmark_tiPKfS2_i=ot.ke,i._zappar_face_landmark_anchor_pose=ot.le,i._zappar_barcode_finder_create=ot.me,i._zappar_barcode_finder_destroy=ot.ne,i._zappar_barcode_finder_found_number=ot.oe,i._zappar_barcode_finder_found_text=ot.pe,i._zappar_barcode_finder_enabled_set=ot.qe,i._zappar_barcode_finder_enabled=ot.re,i._zappar_barcode_finder_found_format=ot.se,i._zappar_barcode_finder_formats=ot.te,i._zappar_barcode_finder_formats_set=ot.ue,i._zappar_zapcode_tracker_create=ot.ve,i._zappar_zapcode_tracker_destroy=ot.we,i._zappar_zapcode_tracker_target_load_from_memory=ot.xe,i.__Z44zappar_zapcode_tracker_target_load_from_fileP25zappar_zapcode_tracker_tiPKc=ot.ye,i._zappar_zapcode_tracker_anchor_count=ot.ze,i._zappar_zapcode_tracker_anchor_id=ot.Ae,i._zappar_zapcode_tracker_anchor_pose_raw=ot.Be,i._zappar_zapcode_tracker_enabled_set=ot.Ce,i._zappar_zapcode_tracker_enabled=ot.De,i._zappar_zapcode_tracker_target_loaded_version=ot.Ee;var ct=i._malloc=ot.Fe;i._zappar_face_mesh_create=ot.Ge,i._zappar_face_mesh_destroy=ot.He,i.__Z33zappar_face_mesh_load_from_memoryP19zappar_face_mesh_tiPKciiiii=ot.Ie,i.__Z29zappar_face_mesh_indices_sizeP19zappar_face_mesh_ti=ot.Je,i.__Z25zappar_face_mesh_uvs_sizeP19zappar_face_mesh_ti=ot.Ke,i.__Z30zappar_face_mesh_vertices_sizeP19zappar_face_mesh_ti=ot.Le,i.__Z31zappar_face_mesh_loaded_versionP19zappar_face_mesh_ti=ot.Me,i.__Z25zappar_face_mesh_verticesP19zappar_face_mesh_ti=ot.Ne,i.__Z20zappar_face_mesh_uvsP19zappar_face_mesh_ti=ot.Oe,i.__Z24zappar_face_mesh_indicesP19zappar_face_mesh_ti=ot.Pe,i.__Z23zappar_face_mesh_updateP19zappar_face_mesh_tiPKfS2_i=ot.Qe,i.__Z29zappar_face_mesh_normals_sizeP19zappar_face_mesh_ti=ot.Re,i.__Z24zappar_face_mesh_normalsP19zappar_face_mesh_ti=ot.Se,i._zappar_camera_source_create=ot.Te,i._zappar_camera_source_destroy=ot.Ue,i._zappar_camera_source_start=ot.Ve,i._zappar_camera_source_pause=ot.We,i._zappar_camera_default_device_id=ot.Xe,i._zappar_sequence_source_create=ot.Ye,i.__Z28zappar_sequence_source_startP25zappar_sequence_source_ti=ot.Ze,i.__Z39zappar_sequence_source_load_from_memoryP25zappar_sequence_source_tiPKci=ot._e,i.__Z28zappar_sequence_source_pauseP25zappar_sequence_source_ti=ot.$e,i._zappar_sequence_source_destroy=ot.af,i._zappar_sequence_source_max_playback_fps_set=ot.bf,i._zappar_log_level_set=ot.cf,i._zappar_log_level=ot.df,i.__Z23zappar_log_redirect_setPFv18zappar_log_level_tPKcE=ot.ef,i._zappar_world_tracker_create=ot.ff,i._zappar_world_tracker_destroy=ot.gf,i._zappar_world_tracker_world_anchor_valid=ot.hf,i._zappar_world_tracker_plane_count=ot.jf,i._zappar_world_tracker_plane_pose_raw=ot.kf,i._zappar_world_tracker_world_anchor_pose_raw=ot.lf,i._zappar_world_tracker_ground_anchor_valid=ot.mf,i._zappar_world_tracker_ground_anchor_pose_raw=ot.nf,i._zappar_world_tracker_reset=ot.of,i._zappar_world_tracker_enabled_set=ot.pf,i._zappar_world_tracker_quality=ot.qf,i._zappar_world_tracker_enabled=ot.rf,i._zappar_world_tracker_debug_enabled=ot.sf,i._zappar_world_tracker_debug_enabled_set=ot.tf,i._zappar_world_tracker_debug_tracks_data=ot.uf,i._zappar_world_tracker_debug_tracks_data_size=ot.vf,i._zappar_world_tracker_debug_projections_data=ot.wf,i._zappar_world_tracker_debug_projections_data_size=ot.xf,i._worker_message_send_count=ot.yf,i._worker_message_send_clear=ot.zf,i._worker_message_send_data_size=ot.Af,i._worker_message_send_reference=ot.Bf,i._worker_message_send_data=ot.Cf,i._worker_message_receive=ot.Df,i._ceres_worker=ot.Ef,i._data_download_clear=ot.Ff,i._data_download_size=ot.Gf,i._data_download=ot.Hf,i._data_should_record_set=ot.If,i._zappar_analytics_project_id_set=ot.Jf,i.__ZN5boost13serialization16singleton_module8get_lockEv=ot.Kf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem19InitializationInputEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Lf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Mf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKi5FrameEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Nf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE5FrameE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Of,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Pf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Qf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Rf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam5Pose3EE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Sf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Tf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26bitsetILm1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Uf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Vf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE3ImuE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Wf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Xf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKi12WorldFeatureEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Yf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE12WorldFeatureE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Zf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam7Cal3_S2EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot._f,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam7Cal3_S2EE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.$f,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.ag,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam7Cal3_S2EE15load_object_ptrERNS1_14basic_iarchiveEPvj=ot.bg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem10ParametersEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.cg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN2cv12TermCriteriaEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.dg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem20InitializationResultEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.eg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem19InitializationInputEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.fg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.gg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKi5FrameEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.hg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE5FrameE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ig,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.jg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.kg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.lg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam5Pose3EE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.mg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ng,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26bitsetILm1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.og,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.pg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE3ImuE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.qg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.rg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKi12WorldFeatureEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.sg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE12WorldFeatureE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.tg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam7Cal3_S2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ug,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam7Cal3_S2EE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.vg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.wg,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam7Cal3_S2EE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.xg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem10ParametersEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.yg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN2cv12TermCriteriaEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.zg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem20InitializationResultEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Ag,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE9RecordingE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Bg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__26vectorI11SensorEventNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Cg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE11SensorEventE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Dg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Eg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Fg,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26bitsetILm2EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Gg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Hg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26bitsetILm2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ig,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Jg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Kg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Lg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__26bitsetILm2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Mg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ng,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__24pairIKi5FrameEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Og,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE5FrameE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Pg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Qg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Rg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Sg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam5Pose3EE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Tg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__26bitsetILm1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ug,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Vg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE3ImuE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Wg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Xg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__24pairIKi12WorldFeatureEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Yg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE12WorldFeatureE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Zg,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_15binary_iarchiveEN5gtsam5Pose3EE11instantiateEv=ot._g,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam5Pose3EE15load_object_ptrERNS1_14basic_iarchiveEPvj=ot.$g,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_15binary_oarchiveEN5gtsam5Pose3EE11instantiateEv=ot.ah,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam5Pose3EE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.bh,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_12xml_oarchiveEN5gtsam5Pose3EE11instantiateEv=ot.ch,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_12xml_oarchiveEN5gtsam5Pose3EE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.dh,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_15binary_iarchiveEN5gtsam21LinearContainerFactorEE11instantiateEv=ot.eh,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam21LinearContainerFactorEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.fh,i.__ZN5boost13serialization18void_cast_registerIN5gtsam21LinearContainerFactorENS2_15NonlinearFactorEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=ot.gh,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam15NonlinearFactorEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.hh,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam14GaussianFactorEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.ih,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__28optionalIN5gtsam6ValuesEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.jh,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam6ValuesEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.kh,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam21LinearContainerFactorEE15load_object_ptrERNS1_14basic_iarchiveEPvj=ot.lh,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_15binary_oarchiveEN5gtsam21LinearContainerFactorEE11instantiateEv=ot.mh,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam21LinearContainerFactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.nh,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam15NonlinearFactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.oh,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam14GaussianFactorEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ph,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__28optionalIN5gtsam6ValuesEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.qh,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam6ValuesEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.rh,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam21LinearContainerFactorEE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.sh,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_12xml_oarchiveEN5gtsam21LinearContainerFactorEE11instantiateEv=ot.th,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam21LinearContainerFactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.uh,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam15NonlinearFactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.vh,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__210shared_ptrIN5gtsam14GaussianFactorEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.wh,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__28optionalIN5gtsam6ValuesEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.xh,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam6ValuesEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.yh,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_12xml_oarchiveEN5gtsam21LinearContainerFactorEE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.zh,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_15binary_iarchiveEN5gtsam13HessianFactorEE11instantiateEv=ot.Ah,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam13HessianFactorEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Bh,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam13HessianFactorEE15load_object_ptrERNS1_14basic_iarchiveEPvj=ot.Ch,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_15binary_oarchiveEN5gtsam13HessianFactorEE11instantiateEv=ot.Dh,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam13HessianFactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Eh,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam13HessianFactorEE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.Fh,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_12xml_oarchiveEN5gtsam13HessianFactorEE11instantiateEv=ot.Gh,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam13HessianFactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Hh,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_12xml_oarchiveEN5gtsam13HessianFactorEE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.Ih,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_15binary_iarchiveEN5gtsam14JacobianFactorEE11instantiateEv=ot.Jh,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam14JacobianFactorEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Kh,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam14JacobianFactorEE15load_object_ptrERNS1_14basic_iarchiveEPvj=ot.Lh,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_15binary_oarchiveEN5gtsam14JacobianFactorEE11instantiateEv=ot.Mh,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam14JacobianFactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Nh,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam14JacobianFactorEE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.Oh,i.__ZN5boost7archive6detail25ptr_serialization_supportINS0_12xml_oarchiveEN5gtsam14JacobianFactorEE11instantiateEv=ot.Ph,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam14JacobianFactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Qh,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_12xml_oarchiveEN5gtsam14JacobianFactorEE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.Rh,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Sh,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Th,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Uh,i.__ZN5boost13serialization18void_cast_registerIN5gtsam10noiseModel8DiagonalENS3_8GaussianEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=ot.Vh,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam10noiseModel8GaussianEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Wh,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Xh,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam10noiseModel8GaussianEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Yh,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Zh,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam10noiseModel8GaussianEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot._h,i.__ZN5boost13serialization18void_cast_registerIN5gtsam15NonlinearFactorENS2_6FactorEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=ot.$h,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam6FactorEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.ai,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam6FactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.bi,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam6FactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ci,i.__ZN5boost13serialization18void_cast_registerIN5gtsam14GaussianFactorENS2_6FactorEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=ot.di,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.ei,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26vectorIlNS4_9allocatorIlEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.fi,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.gi,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26vectorIlNS4_9allocatorIlEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.hi,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ii,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__26vectorIlNS4_9allocatorIlEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ji,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIyNS4_10unique_ptrIN5gtsam5ValueENS4_14default_deleteIS8_EEEENS4_4lessIyEENS4_9allocatorINS4_4pairIKySB_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.ki,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKyNS4_10unique_ptrIN5gtsam5ValueENS4_14default_deleteIS9_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.li,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210unique_ptrIN5gtsam5ValueENS4_14default_deleteIS7_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.mi,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIyRKN5gtsam5ValueENS4_4lessIyEENS4_9allocatorINS4_4pairIKyS9_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ni,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKyRKN5gtsam5ValueEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.oi,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam5ValueEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.pi,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__23mapIyRKN5gtsam5ValueENS4_4lessIyEENS4_9allocatorINS4_4pairIKyS9_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.qi,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__24pairIKyRKN5gtsam5ValueEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ri,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam5ValueEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.si,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26vectorIyNS4_9allocatorIyEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.ti,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26vectorIyNS4_9allocatorIyEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.ui,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__26vectorIyNS4_9allocatorIyEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.vi,i.__ZN5boost13serialization18void_cast_registerIN5gtsam14JacobianFactorENS2_14GaussianFactorEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=ot.wi,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam14GaussianFactorEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.xi,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam19VerticalBlockMatrixEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.yi,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam10noiseModel8DiagonalEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.zi,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam10noiseModel8DiagonalEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Ai,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam10noiseModel8DiagonalEE15load_object_ptrERNS1_14basic_iarchiveEPvj=ot.Bi,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam14GaussianFactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ci,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam19VerticalBlockMatrixEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Di,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam10noiseModel8DiagonalEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ei,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam10noiseModel8DiagonalEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Fi,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam10noiseModel8DiagonalEE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.Gi,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam14GaussianFactorEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Hi,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam19VerticalBlockMatrixEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ii,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__210shared_ptrIN5gtsam10noiseModel8DiagonalEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ji,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam10noiseModel8DiagonalEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Ki,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_12xml_oarchiveEN5gtsam10noiseModel8DiagonalEE15save_object_ptrERNS1_14basic_oarchiveEPKv=ot.Li,i.__ZN5boost13serialization18void_cast_registerIN5gtsam13HessianFactorENS2_14GaussianFactorEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=ot.Mi,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam20SymmetricBlockMatrixEE16load_object_dataERNS1_14basic_iarchiveEPvj=ot.Ni,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam20SymmetricBlockMatrixEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Oi,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5gtsam20SymmetricBlockMatrixEE16save_object_dataERNS1_14basic_oarchiveEPKv=ot.Pi;var lt,dt=ot.Qi,ht=ot.Ri,ut=ot.Si,ft=ot.Ti,pt=ot.Ui,bt=ot.Vi,mt=ot.Wi,Et=ot.Xi,vt=ot.Yi,wt=i.dynCall_j=ot.Zi,gt=i.dynCall_viij=ot._i,yt=i.dynCall_viijii=ot.$i,Nt=i.dynCall_viiij=ot.aj,kt=i.dynCall_vij=ot.bj,St=i.dynCall_iij=ot.cj,jt=i.dynCall_iiji=ot.dj,zt=i.dynCall_viji=ot.ej,It=i.dynCall_iijj=ot.fj,Rt=i.dynCall_jiji=ot.gj,At=i.dynCall_jij=ot.hj,xt=i.dynCall_iiij=ot.ij,Lt=i.dynCall_ji=ot.jj,Tt=i.dynCall_iijjjjji=ot.kj,Pt=i.dynCall_viiji=ot.lj,Ft=i.dynCall_diji=ot.mj,Mt=i.dynCall_iijii=ot.nj,Kt=i.dynCall_viiiijii=ot.oj,Ct=i.dynCall_iiiiijii=ot.pj,Ot=i.dynCall_iijiii=ot.qj,Bt=i.dynCall_jiii=ot.rj,Dt=i.dynCall_jii=ot.sj,Ut=i.dynCall_vjii=ot.tj,Zt=i.dynCall_vji=ot.uj,Vt=i.dynCall_iji=ot.vj,Gt=i.dynCall_iiiij=ot.wj,Ht=i.dynCall_jj=ot.xj,Wt=i.dynCall_djj=ot.yj,Yt=i.dynCall_iiiiij=ot.zj,Xt=i.dynCall_jiiii=ot.Aj;function qt(){function e(){if(!lt&&(lt=!0,i.calledRun=!0,!N)){if(i.noFSInit||Me||(Me=!0,i.stdin=i.stdin,i.stdout=i.stdout,i.stderr=i.stderr,i.stdin?We("stdin",i.stdin):Ze("/dev/tty","/dev/stdin"),i.stdout?We("stdout",null,i.stdout):Ze("/dev/tty","/dev/stdout"),i.stderr?We("stderr",null,i.stderr):Ze("/dev/tty1","/dev/stderr"),Ge("/dev/stdin",0),Ge("/dev/stdout",1),Ge("/dev/stderr",1)),we=!1,B(j),t(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();z.unshift(e)}B(z)}}if(!(0<L)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)I();B(S),0<L||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e())}}if(i.___start_em_js=681716,i.___stop_em_js=682881,i.cwrap=(e,r,t,a)=>{var _=!t||t.every((e=>"number"===e||"boolean"===e));return"string"!==r&&_&&!a?i["_"+e]:function(){return((e,r,t,a)=>{var _={string:e=>{var r=0;if(null!=e&&0!==e){r=ae(e)+1;var t=pt(r);ie(e,b,t,r),r=t}return r},array:e=>{var r=pt(e.length);return p.set(e,r),r}};e=i["_"+e];var n,o=[],s=0;if(a)for(var c=0;c<a.length;c++){var l=_[t[c]];l?(0===s&&(s=ut()),o[c]=l(a[c])):o[c]=a[c]}return n=t=e.apply(null,o),0!==s&&ft(s),"string"===r?n?re(b,n):"":"boolean"===r?!!n:n})(e,r,t,arguments)}},i.setValue=function(e,r,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":p[e>>0]=r;break;case"i16":m[e>>1]=r;break;case"i32":v[e>>2]=r;break;case"i64":K("to do setValue(i64) use WASM_BIGINT");case"float":g[e>>2]=r;break;case"double":y[e>>3]=r;break;case"*":w[e>>2]=r;break;default:K(`invalid type for setValue: ${t}`)}},i.getValue=function(e,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":return p[e>>0];case"i16":return m[e>>1];case"i32":return v[e>>2];case"i64":K("to do getValue(i64) use WASM_BIGINT");case"float":return g[e>>2];case"double":return y[e>>3];case"*":return w[e>>2];default:K(`invalid type for getValue: ${r}`)}},i.UTF8ToString=Je,P=function e(){lt||qt(),lt||(P=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return qt(),r});class a{constructor(e){this._messageSender=e,this._freeBufferPool=[],this._buffer=new ArrayBuffer(16),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=1,this._startOffset=-1,this._timeoutSet=!1,this._appender={int:e=>this.int(e),bool:e=>this.int(e?1:0),float:e=>this.float(e),string:e=>this.string(e),dataWithLength:e=>this.arrayBuffer(e),type:e=>this.int(e),matrix4x4:e=>this.float32ArrayBuffer(e),matrix3x3:e=>this.float32ArrayBuffer(e),floatArray:e=>this.float32ArrayBuffer(e),identityCoefficients:e=>this.float32ArrayBuffer(e),expressionCoefficients:e=>this.float32ArrayBuffer(e),cameraModel:e=>this.float32ArrayBuffer(e),timestamp:e=>this.double(e),barcodeFormat:e=>this.int(e),faceLandmarkName:e=>this.int(e),instantTrackerTransformOrientation:e=>this.int(e),logLevel:e=>this.int(e)},this._freeBufferPool.push(new ArrayBuffer(16)),this._freeBufferPool.push(new ArrayBuffer(16))}bufferReturn(e){this._freeBufferPool.push(e)}_ensureArrayBuffer(e){let r,t=4*(this._offset+e+8);if(this._buffer&&this._buffer.byteLength>=t)return;if(!r){let e=t;e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,r=new ArrayBuffer(e)}let a=this._buffer?this._i32View:void 0;this._buffer=r,this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),a&&this._i32View.set(a.subarray(0,this._offset))}sendMessage(e,r){this._ensureArrayBuffer(4),this._startOffset=this._offset,this._i32View[this._offset+1]=e,this._offset+=2,r(this._appender),this._i32View[this._startOffset]=this._offset-this._startOffset,this._startOffset=-1,this._sendOneTime()}_sendOneTime(){!1===this._timeoutSet&&(this._timeoutSet=!0,setTimeout((()=>{this._timeoutSet=!1,this._send()}),0))}_send(){0!==this._freeBufferPool.length?(this._i32View[0]=this._offset,this._messageSender(this._buffer),this._buffer=void 0,this._buffer=this._freeBufferPool.pop(),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=1,this._startOffset=-1):this._sendOneTime()}int(e){this._ensureArrayBuffer(1),this._i32View[this._offset]=e,this._offset++}double(e){this._ensureArrayBuffer(2),this._offset%2==1&&this._offset++,this._f64View[this._offset/2]=e,this._offset+=2}float(e){this._ensureArrayBuffer(1),this._f32View[this._offset]=e,this._offset++}int32Array(e){this._ensureArrayBuffer(e.length);for(let r=0;r<e.length;++r)this._i32View[this._offset+r]=e[r];this._offset+=e.length}float32Array(e){this._ensureArrayBuffer(e.length);for(let r=0;r<e.length;++r)this._f32View[this._offset+r]=e[r];this._offset+=e.length}booleanArray(e){this._ensureArrayBuffer(e.length);for(let r=0;r<e.length;++r)this._i32View[this._offset+r]=e[r]?1:0;this._offset+=e.length}uint8ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.byteLength,this._offset++,this._u8View.set(e,4*this._offset),this._offset+=e.byteLength>>2,0!=(3&e.byteLength)&&this._offset++}arrayBuffer(e){let r=new Uint8Array(e);this.uint8ArrayBuffer(r)}uint8ClampedArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.byteLength,this._offset++,this._u8cView.set(e,4*this._offset),this._offset+=e.byteLength>>2,0!=(3&e.byteLength)&&this._offset++}float32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._f32View.set(e,this._offset),this._offset+=e.length}uint16ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++;let r=2*this._offset;this._u16View.set(e,r),this._offset+=e.length>>1,0!=(1&e.length)&&this._offset++}int32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._i32View.set(e,this._offset),this._offset+=e.length}uint32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._u32View.set(e,this._offset),this._offset+=e.length}string(e){let r=(new TextEncoder).encode(e);this._ensureArrayBuffer(r.byteLength/4),this._i32View[this._offset]=r.byteLength,this._offset++,this._u8View.set(r,4*this._offset),this._offset+=r.byteLength>>2,0!=(3&r.byteLength)&&this._offset++}}class i{constructor(){this._buffer=new ArrayBuffer(0),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=0,this._length=0,this._startOffset=-1,this._processor={int:()=>this._i32View[this._startOffset++],bool:()=>1===this._i32View[this._startOffset++],type:()=>this._i32View[this._startOffset++],float:()=>this._f32View[this._startOffset++],timestamp:()=>{this._startOffset%2==1&&this._startOffset++;let e=this._f64View[this._startOffset/2];return this._startOffset+=2,e},string:()=>{let e=this._i32View[this._startOffset++],r=(new TextDecoder).decode(new Uint8Array(this._buffer,4*this._startOffset,e));return this._startOffset+=e>>2,0!=(3&e)&&this._startOffset++,r},dataWithLength:()=>{let e=this._i32View[this._startOffset++],r=new Uint8Array(e);return r.set(this._u8View.subarray(4*this._startOffset,4*this._startOffset+e)),this._startOffset+=r.byteLength>>2,0!=(3&r.byteLength)&&this._startOffset++,r.buffer},floatArray:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+e)),this._startOffset+=e,r},matrix4x4:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+16)),this._startOffset+=e,r},matrix3x3:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+9)),this._startOffset+=e,r},identityCoefficients:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+50)),this._startOffset+=e,r},expressionCoefficients:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+29)),this._startOffset+=e,r},cameraModel:()=>{let e=this._i32View[this._startOffset++],r=new Float32Array(e);return r.set(this._f32View.subarray(this._startOffset,this._startOffset+6)),this._startOffset+=e,r},barcodeFormat:()=>this._i32View[this._startOffset++],faceLandmarkName:()=>this._i32View[this._startOffset++],instantTrackerTransformOrientation:()=>this._i32View[this._startOffset++],logLevel:()=>this._i32View[this._startOffset++]}}setData(e){this._buffer=e,this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=0,this._length=0,e.byteLength>=4&&(this._offset=1,this._length=this._i32View[0]),this._startOffset=-1}hasMessage(){return this._offset+1<this._length}forMessages(e){for(;this.hasMessage();){let r=this._i32View[this._offset],t=this._i32View[this._offset+1];this._startOffset=this._offset+2,this._offset+=r,e(t,this._processor)}}}class _{constructor(e,r){this._impl=e,this._sender=r,this._deserializer=new i,this.serializersByPipelineId=new Map,this._pipeline_id_by_pipeline_id=new Map,this._pipeline_by_instance=new Map,this._pipeline_id_by_camera_source_id=new Map,this._camera_source_by_instance=new Map,this._pipeline_id_by_sequence_source_id=new Map,this._sequence_source_by_instance=new Map,this._pipeline_id_by_image_tracker_id=new Map,this._image_tracker_by_instance=new Map,this._pipeline_id_by_face_tracker_id=new Map,this._face_tracker_by_instance=new Map,this._pipeline_id_by_face_mesh_id=new Map,this._face_mesh_by_instance=new Map,this._pipeline_id_by_face_landmark_id=new Map,this._face_landmark_by_instance=new Map,this._pipeline_id_by_barcode_finder_id=new Map,this._barcode_finder_by_instance=new Map,this._pipeline_id_by_instant_world_tracker_id=new Map,this._instant_world_tracker_by_instance=new Map,this._pipeline_id_by_zapcode_tracker_id=new Map,this._zapcode_tracker_by_instance=new Map,this._pipeline_id_by_world_tracker_id=new Map,this._world_tracker_by_instance=new Map}processBuffer(e){this._deserializer.setData(e),this._deserializer.forMessages(((e,r)=>{switch(e){case 38:this._impl.log_level_set(r.logLevel());break;case 35:this._impl.analytics_project_id_set(r.string(),r.string());break;case 31:{let e=r.type(),t=this._impl.pipeline_create();this._pipeline_by_instance.set(e,t),this._pipeline_id_by_pipeline_id.set(e,e),this.serializersByPipelineId.set(e,new a((r=>{this._sender(e,r)})));break}case 32:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_destroy(t),this._pipeline_by_instance.delete(e);break}case 9:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_frame_update(t);break}case 8:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_camera_frame_submit(t,r.dataWithLength(),r.int(),r.int(),r.int(),r.matrix4x4(),r.cameraModel(),r.bool());break}case 10:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_accelerometer_submit(t,r.timestamp(),r.float(),r.float(),r.float());break}case 12:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_accelerometer_with_gravity_submit_int(t,r.timestamp(),r.timestamp(),r.float(),r.float(),r.float());break}case 11:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_accelerometer_without_gravity_submit_int(t,r.timestamp(),r.timestamp(),r.float(),r.float(),r.float());break}case 15:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_rotation_rate_submit(t,r.timestamp(),r.float(),r.float(),r.float());break}case 13:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_rotation_rate_submit_int(t,r.timestamp(),r.timestamp(),r.float(),r.float(),r.float());break}case 16:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_attitude_submit(t,r.timestamp(),r.float(),r.float(),r.float());break}case 14:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_attitude_submit_int(t,r.timestamp(),r.timestamp(),r.float(),r.float(),r.float());break}case 17:{let e=r.type(),t=this._pipeline_by_instance.get(e);if(void 0===t)return;this._impl.pipeline_motion_attitude_matrix_submit(t,r.matrix4x4());break}case 33:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=r.string(),_=this._impl.camera_source_create(a,i);this._camera_source_by_instance.set(e,_),this._pipeline_id_by_camera_source_id.set(e,t);break}case 34:{let e=r.type(),t=this._camera_source_by_instance.get(e);if(void 0===t)return;this._impl.camera_source_destroy(t),this._camera_source_by_instance.delete(e);break}case 39:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.sequence_source_create(a);this._sequence_source_by_instance.set(e,i),this._pipeline_id_by_sequence_source_id.set(e,t);break}case 40:{let e=r.type(),t=this._sequence_source_by_instance.get(e);if(void 0===t)return;this._impl.sequence_source_destroy(t),this._sequence_source_by_instance.delete(e);break}case 2:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.image_tracker_create(a);this._image_tracker_by_instance.set(e,i),this._pipeline_id_by_image_tracker_id.set(e,t);break}case 18:{let e=r.type(),t=this._image_tracker_by_instance.get(e);if(void 0===t)return;this._impl.image_tracker_destroy(t),this._image_tracker_by_instance.delete(e);break}case 4:{let e=r.type(),t=this._image_tracker_by_instance.get(e);if(void 0===t)return;this._impl.image_tracker_target_load_from_memory(t,r.dataWithLength());break}case 3:{let e=r.type(),t=this._image_tracker_by_instance.get(e);if(void 0===t)return;this._impl.image_tracker_enabled_set(t,r.bool());break}case 24:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.face_tracker_create(a);this._face_tracker_by_instance.set(e,i),this._pipeline_id_by_face_tracker_id.set(e,t);break}case 25:{let e=r.type(),t=this._face_tracker_by_instance.get(e);if(void 0===t)return;this._impl.face_tracker_destroy(t),this._face_tracker_by_instance.delete(e);break}case 26:{let e=r.type(),t=this._face_tracker_by_instance.get(e);if(void 0===t)return;this._impl.face_tracker_model_load_from_memory(t,r.dataWithLength());break}case 27:{let e=r.type(),t=this._face_tracker_by_instance.get(e);if(void 0===t)return;this._impl.face_tracker_enabled_set(t,r.bool());break}case 28:{let e=r.type(),t=this._face_tracker_by_instance.get(e);if(void 0===t)return;this._impl.face_tracker_max_faces_set(t,r.int());break}case 29:{let e=r.type(),t=this._impl.face_mesh_create();this._face_mesh_by_instance.set(e,t);break}case 30:{let e=r.type(),t=this._face_mesh_by_instance.get(e);if(void 0===t)return;this._impl.face_mesh_destroy(t),this._face_mesh_by_instance.delete(e);break}case 36:{let e=r.type(),t=r.faceLandmarkName(),a=this._impl.face_landmark_create(t);this._face_landmark_by_instance.set(e,a);break}case 37:{let e=r.type(),t=this._face_landmark_by_instance.get(e);if(void 0===t)return;this._impl.face_landmark_destroy(t),this._face_landmark_by_instance.delete(e);break}case 20:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.barcode_finder_create(a);this._barcode_finder_by_instance.set(e,i),this._pipeline_id_by_barcode_finder_id.set(e,t);break}case 21:{let e=r.type(),t=this._barcode_finder_by_instance.get(e);if(void 0===t)return;this._impl.barcode_finder_destroy(t),this._barcode_finder_by_instance.delete(e);break}case 22:{let e=r.type(),t=this._barcode_finder_by_instance.get(e);if(void 0===t)return;this._impl.barcode_finder_enabled_set(t,r.bool());break}case 23:{let e=r.type(),t=this._barcode_finder_by_instance.get(e);if(void 0===t)return;this._impl.barcode_finder_formats_set(t,r.barcodeFormat());break}case 5:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.instant_world_tracker_create(a);this._instant_world_tracker_by_instance.set(e,i),this._pipeline_id_by_instant_world_tracker_id.set(e,t);break}case 19:{let e=r.type(),t=this._instant_world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.instant_world_tracker_destroy(t),this._instant_world_tracker_by_instance.delete(e);break}case 6:{let e=r.type(),t=this._instant_world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.instant_world_tracker_enabled_set(t,r.bool());break}case 7:{let e=r.type(),t=this._instant_world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.instant_world_tracker_anchor_pose_set_from_camera_offset_raw(t,r.float(),r.float(),r.float(),r.instantTrackerTransformOrientation());break}case 41:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.zapcode_tracker_create(a);this._zapcode_tracker_by_instance.set(e,i),this._pipeline_id_by_zapcode_tracker_id.set(e,t);break}case 44:{let e=r.type(),t=this._zapcode_tracker_by_instance.get(e);if(void 0===t)return;this._impl.zapcode_tracker_destroy(t),this._zapcode_tracker_by_instance.delete(e);break}case 43:{let e=r.type(),t=this._zapcode_tracker_by_instance.get(e);if(void 0===t)return;this._impl.zapcode_tracker_target_load_from_memory(t,r.dataWithLength());break}case 42:{let e=r.type(),t=this._zapcode_tracker_by_instance.get(e);if(void 0===t)return;this._impl.zapcode_tracker_enabled_set(t,r.bool());break}case 45:{let e=r.type(),t=r.type(),a=this._pipeline_by_instance.get(t),i=this._impl.world_tracker_create(a);this._world_tracker_by_instance.set(e,i),this._pipeline_id_by_world_tracker_id.set(e,t);break}case 46:{let e=r.type(),t=this._world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.world_tracker_destroy(t),this._world_tracker_by_instance.delete(e);break}case 47:{let e=r.type(),t=this._world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.world_tracker_enabled_set(t,r.bool());break}case 48:{let e=r.type(),t=this._world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.world_tracker_reset(t);break}case 49:{let e=r.type(),t=this._world_tracker_by_instance.get(e);if(void 0===t)return;this._impl.world_tracker_debug_enabled_set(t,r.bool());break}}}))}exploreState(){for(let[e,r]of this._pipeline_by_instance){let t=this._pipeline_id_by_pipeline_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);a&&(a.sendMessage(7,(t=>{t.type(e),t.int(this._impl.pipeline_frame_number(r))})),a.sendMessage(6,(t=>{t.type(e),t.cameraModel(this._impl.pipeline_camera_model(r))})),a.sendMessage(5,(t=>{t.type(e),t.int(this._impl.pipeline_camera_frame_user_data(r))})),a.sendMessage(11,(t=>{t.type(e),t.matrix4x4(this._impl.pipeline_camera_frame_camera_attitude(r))})),a.sendMessage(12,(t=>{t.type(e),t.matrix4x4(this._impl.pipeline_camera_frame_device_attitude(r))})))}for(let[e,r]of this._camera_source_by_instance){let r=this._pipeline_id_by_camera_source_id.get(e);r&&this.serializersByPipelineId.get(r)}for(let[e,r]of this._sequence_source_by_instance){let r=this._pipeline_id_by_sequence_source_id.get(e);r&&this.serializersByPipelineId.get(r)}for(let[e,r]of this._image_tracker_by_instance){let t=this._pipeline_id_by_image_tracker_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);if(a){a.sendMessage(19,(t=>{t.type(e),t.int(this._impl.image_tracker_target_loaded_version(r))})),a.sendMessage(1,(t=>{t.type(e),t.int(this._impl.image_tracker_anchor_count(r))}));for(let t=0;t<this._impl.image_tracker_anchor_count(r);t++)a.sendMessage(2,(a=>{a.type(e),a.int(t),a.string(this._impl.image_tracker_anchor_id(r,t))}));for(let t=0;t<this._impl.image_tracker_anchor_count(r);t++)a.sendMessage(3,(a=>{a.type(e),a.int(t),a.matrix4x4(this._impl.image_tracker_anchor_pose_raw(r,t))}))}}for(let[e,r]of this._face_tracker_by_instance){let t=this._pipeline_id_by_face_tracker_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);if(a){a.sendMessage(18,(t=>{t.type(e),t.int(this._impl.face_tracker_model_loaded_version(r))})),a.sendMessage(13,(t=>{t.type(e),t.int(this._impl.face_tracker_anchor_count(r))}));for(let t=0;t<this._impl.face_tracker_anchor_count(r);t++)a.sendMessage(14,(a=>{a.type(e),a.int(t),a.string(this._impl.face_tracker_anchor_id(r,t))}));for(let t=0;t<this._impl.face_tracker_anchor_count(r);t++)a.sendMessage(15,(a=>{a.type(e),a.int(t),a.matrix4x4(this._impl.face_tracker_anchor_pose_raw(r,t))}));for(let t=0;t<this._impl.face_tracker_anchor_count(r);t++)a.sendMessage(16,(a=>{a.type(e),a.int(t),a.identityCoefficients(this._impl.face_tracker_anchor_identity_coefficients(r,t))}));for(let t=0;t<this._impl.face_tracker_anchor_count(r);t++)a.sendMessage(17,(a=>{a.type(e),a.int(t),a.expressionCoefficients(this._impl.face_tracker_anchor_expression_coefficients(r,t))}))}}for(let[e,r]of this._face_mesh_by_instance){let r=this._pipeline_id_by_face_mesh_id.get(e);r&&this.serializersByPipelineId.get(r)}for(let[e,r]of this._face_landmark_by_instance){let r=this._pipeline_id_by_face_landmark_id.get(e);r&&this.serializersByPipelineId.get(r)}for(let[e,r]of this._barcode_finder_by_instance){let t=this._pipeline_id_by_barcode_finder_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);if(a){a.sendMessage(8,(t=>{t.type(e),t.int(this._impl.barcode_finder_found_number(r))}));for(let t=0;t<this._impl.barcode_finder_found_number(r);t++)a.sendMessage(9,(a=>{a.type(e),a.int(t),a.string(this._impl.barcode_finder_found_text(r,t))}));for(let t=0;t<this._impl.barcode_finder_found_number(r);t++)a.sendMessage(10,(a=>{a.type(e),a.int(t),a.barcodeFormat(this._impl.barcode_finder_found_format(r,t))}))}}for(let[e,r]of this._instant_world_tracker_by_instance){let t=this._pipeline_id_by_instant_world_tracker_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);a&&a.sendMessage(4,(t=>{t.type(e),t.matrix4x4(this._impl.instant_world_tracker_anchor_pose_raw(r))}))}for(let[e,r]of this._zapcode_tracker_by_instance){let t=this._pipeline_id_by_zapcode_tracker_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);if(a){a.sendMessage(24,(t=>{t.type(e),t.int(this._impl.zapcode_tracker_target_loaded_version(r))})),a.sendMessage(21,(t=>{t.type(e),t.int(this._impl.zapcode_tracker_anchor_count(r))}));for(let t=0;t<this._impl.zapcode_tracker_anchor_count(r);t++)a.sendMessage(22,(a=>{a.type(e),a.int(t),a.string(this._impl.zapcode_tracker_anchor_id(r,t))}));for(let t=0;t<this._impl.zapcode_tracker_anchor_count(r);t++)a.sendMessage(23,(a=>{a.type(e),a.int(t),a.matrix4x4(this._impl.zapcode_tracker_anchor_pose_raw(r,t))}))}}for(let[e,r]of this._world_tracker_by_instance){let t=this._pipeline_id_by_world_tracker_id.get(e);if(!t)continue;let a=this.serializersByPipelineId.get(t);if(a){a.sendMessage(31,(t=>{t.type(e),t.int(this._impl.world_tracker_quality(r))})),a.sendMessage(25,(t=>{t.type(e),t.int(this._impl.world_tracker_plane_count(r))}));for(let t=0;t<this._impl.world_tracker_plane_count(r);t++)a.sendMessage(26,(a=>{a.type(e),a.int(t),a.matrix4x4(this._impl.world_tracker_plane_pose_raw(r,t))}));a.sendMessage(27,(t=>{t.type(e),t.bool(this._impl.world_tracker_world_anchor_valid(r))})),a.sendMessage(28,(t=>{t.type(e),t.matrix4x4(this._impl.world_tracker_world_anchor_pose_raw(r))})),a.sendMessage(27,(t=>{t.type(e),t.bool(this._impl.world_tracker_ground_anchor_valid(r))})),a.sendMessage(30,(t=>{t.type(e),t.matrix4x4(this._impl.world_tracker_ground_anchor_pose_raw(r))})),a.sendMessage(33,(t=>{t.type(e),t.int(this._impl.world_tracker_debug_tracks_data_size(r))})),a.sendMessage(32,(t=>{t.type(e),t.floatArray(this._impl.world_tracker_debug_tracks_data(r))})),a.sendMessage(35,(t=>{t.type(e),t.int(this._impl.world_tracker_debug_projections_data_size(r))})),a.sendMessage(34,(t=>{t.type(e),t.floatArray(this._impl.world_tracker_debug_projections_data(r))}))}}}}class n{constructor(){this._funcs=[]}bind(e){this._funcs.push(e)}unbind(e){let r=this._funcs.indexOf(e);r>-1&&this._funcs.splice(r,1)}emit(){for(var e=0,r=this._funcs.length;e<r;e++)this._funcs[e]()}}class o{constructor(){this._funcs=[]}bind(e){this._funcs.push(e)}unbind(e){let r=this._funcs.indexOf(e);r>-1&&this._funcs.splice(r,1)}emit(e){for(var r=0,t=this._funcs.length;r<t;r++)this._funcs[r](e)}}var s,c,l,d,h,u,f,p,b="undefined"!=typeof Float32Array?Float32Array:Array;function m(){var e=new b(16);return b!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function E(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}Math.random,Math.PI,Math.hypot||(Math.hypot=function(){for(var e=0,r=arguments.length;r--;)e+=arguments[r]*arguments[r];return Math.sqrt(e)}),function(e){e[e.UNKNOWN=131072]="UNKNOWN",e[e.AZTEC=1]="AZTEC",e[e.CODABAR=2]="CODABAR",e[e.CODE_39=4]="CODE_39",e[e.CODE_93=8]="CODE_93",e[e.CODE_128=16]="CODE_128",e[e.DATA_MATRIX=32]="DATA_MATRIX",e[e.EAN_8=64]="EAN_8",e[e.EAN_13=128]="EAN_13",e[e.ITF=256]="ITF",e[e.MAXICODE=512]="MAXICODE",e[e.PDF_417=1024]="PDF_417",e[e.QR_CODE=2048]="QR_CODE",e[e.RSS_14=4096]="RSS_14",e[e.RSS_EXPANDED=8192]="RSS_EXPANDED",e[e.UPC_A=16384]="UPC_A",e[e.UPC_E=32768]="UPC_E",e[e.UPC_EAN_EXTENSION=65536]="UPC_EAN_EXTENSION",e[e.ALL=131071]="ALL"}(s||(s={})),function(e){e[e.EYE_LEFT=0]="EYE_LEFT",e[e.EYE_RIGHT=1]="EYE_RIGHT",e[e.EAR_LEFT=2]="EAR_LEFT",e[e.EAR_RIGHT=3]="EAR_RIGHT",e[e.NOSE_BRIDGE=4]="NOSE_BRIDGE",e[e.NOSE_TIP=5]="NOSE_TIP",e[e.NOSE_BASE=6]="NOSE_BASE",e[e.LIP_TOP=7]="LIP_TOP",e[e.LIP_BOTTOM=8]="LIP_BOTTOM",e[e.MOUTH_CENTER=9]="MOUTH_CENTER",e[e.CHIN=10]="CHIN",e[e.EYEBROW_LEFT=11]="EYEBROW_LEFT",e[e.EYEBROW_RIGHT=12]="EYEBROW_RIGHT"}(c||(c={})),function(e){e[e.WORLD=3]="WORLD",e[e.MINUS_Z_AWAY_FROM_USER=4]="MINUS_Z_AWAY_FROM_USER",e[e.MINUS_Z_HEADING=5]="MINUS_Z_HEADING",e[e.UNCHANGED=6]="UNCHANGED"}(l||(l={})),function(e){e[e.LOG_LEVEL_NONE=0]="LOG_LEVEL_NONE",e[e.LOG_LEVEL_ERROR=1]="LOG_LEVEL_ERROR",e[e.LOG_LEVEL_WARNING=2]="LOG_LEVEL_WARNING",e[e.LOG_LEVEL_VERBOSE=3]="LOG_LEVEL_VERBOSE"}(d||(d={})),function(e){e[e.FRAME_PIXEL_FORMAT_I420=0]="FRAME_PIXEL_FORMAT_I420",e[e.FRAME_PIXEL_FORMAT_I420A=1]="FRAME_PIXEL_FORMAT_I420A",e[e.FRAME_PIXEL_FORMAT_I422=2]="FRAME_PIXEL_FORMAT_I422",e[e.FRAME_PIXEL_FORMAT_I444=3]="FRAME_PIXEL_FORMAT_I444",e[e.FRAME_PIXEL_FORMAT_NV12=4]="FRAME_PIXEL_FORMAT_NV12",e[e.FRAME_PIXEL_FORMAT_RGBA=5]="FRAME_PIXEL_FORMAT_RGBA",e[e.FRAME_PIXEL_FORMAT_BGRA=6]="FRAME_PIXEL_FORMAT_BGRA",e[e.FRAME_PIXEL_FORMAT_Y=7]="FRAME_PIXEL_FORMAT_Y"}(h||(h={})),function(e){e[e.IMAGE_TRACKER_TYPE_PLANAR=0]="IMAGE_TRACKER_TYPE_PLANAR",e[e.IMAGE_TRACKER_TYPE_CYLINDRICAL=1]="IMAGE_TRACKER_TYPE_CYLINDRICAL",e[e.IMAGE_TRACKER_TYPE_CONICAL=2]="IMAGE_TRACKER_TYPE_CONICAL"}(u||(u={})),function(e){e[e.WORLD_TRACKER_QUALITY_INITIALIZING=0]="WORLD_TRACKER_QUALITY_INITIALIZING",e[e.WORLD_TRACKER_QUALITY_GOOD=1]="WORLD_TRACKER_QUALITY_GOOD",e[e.WORLD_TRACKER_QUALITY_ORIENTATION_ONLY=2]="WORLD_TRACKER_QUALITY_ORIENTATION_ONLY"}(f||(f={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.HIGH=1]="HIGH"}(p||(p={}));const v=new Map;class w{constructor(e){this._gl=e,this._viewports=[],this._underlyingViewport=this._gl.viewport,this._viewports.push(this._gl.getParameter(this._gl.VIEWPORT)),this._gl.viewport=(e,r,t,a)=>{this._viewports[this._viewports.length-1]=[e,r,t,a],this._underlyingViewport.call(this._gl,e,r,t,a)}}static get(e){let r=v.get(e);return r||(r=new w(e),v.set(e,r)),r}push(){this._viewports.push(this._viewports[this._viewports.length-1])}pop(){const e=this._viewports.pop(),r=this._viewports[this._viewports.length-1];e&&e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]&&e[3]===r[3]||this._underlyingViewport.call(this._gl,r[0],r[1],r[2],r[3])}}var g,y=t(238);!function(e){e[e.OBJECT_URL=0]="OBJECT_URL",e[e.SRC_OBJECT=1]="SRC_OBJECT"}(g||(g={}));let N={deviceMotionMutliplier:-1,blacklisted:!1,showGyroPermissionsWarningIfNecessary:!1,showSafariPermissionsResetIfNecessary:!1,requestHighFrameRate:!1,videoWidth:640,videoHeight:480,getDataSize:e=>e===p.HIGH?[640,480]:[320,240],videoElementInDOM:!1,preferMediaStreamTrackProcessorCamera:!0,preferImageBitmapCamera:!1,ios164CameraSelection:!1,relyOnConstraintsForCameraSelection:!1,forceWindowOrientation:!1,intervalMultiplier:1,trustSensorIntervals:!1};"undefined"!=typeof window&&(window.zeeProfile=N,window.location.href.indexOf("_mstppipeline")>=0&&(console.log("Configuring for MSTP camera pipeline (if supported)"),N.preferMediaStreamTrackProcessorCamera=!0),window.location.href.indexOf("_imagebitmappipeline")>=0&&(console.log("Configuring for ImageBitmap camera pipeline (if supported)"),N.preferImageBitmapCamera=!0));let k=new y.UAParser,S=(k.getOS().name||"unknown").toLowerCase(),j=(k.getEngine().name||"unknown").toLowerCase();function z(e){N.forceWindowOrientation=!0,N.preferMediaStreamTrackProcessorCamera=!1,N.intervalMultiplier=1e3,N.trustSensorIntervals=!0;let r=e.split(".");if(r.length>=2){const e=parseInt(r[0]),t=parseInt(r[1]);(e<11||11===e&&t<3)&&(N.blacklisted=!0),(e<12||12===e&&t<2)&&(N.videoElementInDOM=!0),(12===e&&t>=2||e>=13)&&(N.showGyroPermissionsWarningIfNecessary=!0),e>=13&&(N.showSafariPermissionsResetIfNecessary=!0),(e>=12&&t>1||e>=13)&&navigator.mediaDevices&&navigator.mediaDevices.getSupportedConstraints&&navigator.mediaDevices.getSupportedConstraints().frameRate&&(N.requestHighFrameRate=!0,e<14&&(N.videoHeight=360,N.getDataSize=e=>e===p.HIGH?[640,360]:[320,180])),16===e&&t>=4&&(N.ios164CameraSelection=!0),e>=17&&(N.relyOnConstraintsForCameraSelection=!0)}}function I(e,r,t){let a=e.createShader(r);if(!a)throw new Error("Unable to create shader");e.shaderSource(a,t),e.compileShader(a);let i=e.getShaderInfoLog(a);if(i&&i.trim().length>0)throw new Error("Shader compile error: "+i);return a}"webkit"===j&&"ios"!==S&&(N.deviceMotionMutliplier=1,"undefined"!=typeof window&&void 0!==window.orientation&&z("15.0")),"webkit"===j&&"ios"===S&&(N.deviceMotionMutliplier=1,z(k.getOS().version||"15.0"));class R{constructor(e){this._gl=e,this._isPaused=!0,this._hadFrames=!1,this._isUserFacing=!1,this._cameraToScreenRotation=0,this._isUploadFrame=!0,this._computedTransformRotation=-1,this._computedFrontCameraRotation=!1,this._cameraUvTransform=m(),this._framebufferWidth=0,this._framebufferHeight=0,this._framebufferId=null,this._renderTexture=null,this._isWebGL2=!1,this._isWebGL2=e.getParameter(e.VERSION).indexOf("WebGL 2")>=0,this._isWebGL2||(this._instancedArraysExtension=this._gl.getExtension("ANGLE_instanced_arrays"))}resetGLContext(){this._framebufferId=null,this._renderTexture=null,this._vertexBuffer=void 0,this._indexBuffer=void 0,this._greyscaleShader=void 0}destroy(){this.resetGLContext()}uploadFrame(e,r,t,a,i){let _=this._gl;const n=w.get(_);n.push();const o=_.isEnabled(_.SCISSOR_TEST),s=_.isEnabled(_.DEPTH_TEST),c=_.isEnabled(_.BLEND),l=_.isEnabled(_.CULL_FACE),d=_.isEnabled(_.STENCIL_TEST),h=_.getParameter(_.ACTIVE_TEXTURE),u=_.getParameter(_.UNPACK_FLIP_Y_WEBGL),f=_.getParameter(_.CURRENT_PROGRAM);_.activeTexture(_.TEXTURE0);const p=_.getParameter(_.TEXTURE_BINDING_2D),b=_.getParameter(_.FRAMEBUFFER_BINDING),m=_.getParameter(_.ARRAY_BUFFER_BINDING),E=_.getParameter(_.ELEMENT_ARRAY_BUFFER_BINDING);_.disable(_.SCISSOR_TEST),_.disable(_.DEPTH_TEST),_.disable(_.BLEND),_.disable(_.CULL_FACE),_.disable(_.STENCIL_TEST),_.pixelStorei(_.UNPACK_FLIP_Y_WEBGL,!1),_.bindTexture(_.TEXTURE_2D,e);const v=_.RGBA,g=_.RGBA,y=_.UNSIGNED_BYTE;_.texImage2D(_.TEXTURE_2D,0,v,g,y,r);let k=0,S=0;"undefined"!=typeof HTMLVideoElement&&r instanceof HTMLVideoElement?(k=r.videoWidth,S=r.videoHeight):(k=r.width,S=r.height),S>k&&(S=[k,k=S][0]),this._updateTransforms(t,a);const[j,z]=N.getDataSize(i);let I=this._getFramebuffer(_,j/4,z),R=this._getVertexBuffer(_),A=this._getIndexBuffer(_),x=this._getGreyscaleShader(_);const L=_.getVertexAttrib(x.aVertexPositionLoc,_.VERTEX_ATTRIB_ARRAY_SIZE),T=_.getVertexAttrib(x.aVertexPositionLoc,_.VERTEX_ATTRIB_ARRAY_TYPE),P=_.getVertexAttrib(x.aVertexPositionLoc,_.VERTEX_ATTRIB_ARRAY_NORMALIZED),F=_.getVertexAttrib(x.aVertexPositionLoc,_.VERTEX_ATTRIB_ARRAY_STRIDE),M=_.getVertexAttribOffset(x.aVertexPositionLoc,_.VERTEX_ATTRIB_ARRAY_POINTER),K=_.getVertexAttrib(x.aVertexPositionLoc,_.VERTEX_ATTRIB_ARRAY_ENABLED),C=_.getVertexAttrib(x.aVertexPositionLoc,_.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING),O=_.getVertexAttrib(x.aTextureCoordLoc,_.VERTEX_ATTRIB_ARRAY_SIZE),B=_.getVertexAttrib(x.aTextureCoordLoc,_.VERTEX_ATTRIB_ARRAY_TYPE),D=_.getVertexAttrib(x.aTextureCoordLoc,_.VERTEX_ATTRIB_ARRAY_NORMALIZED),U=_.getVertexAttrib(x.aTextureCoordLoc,_.VERTEX_ATTRIB_ARRAY_STRIDE),Z=_.getVertexAttribOffset(x.aTextureCoordLoc,_.VERTEX_ATTRIB_ARRAY_POINTER),V=_.getVertexAttrib(x.aTextureCoordLoc,_.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING),G=_.getVertexAttrib(x.aTextureCoordLoc,_.VERTEX_ATTRIB_ARRAY_ENABLED);let H=0,W=0;this._isWebGL2?(H=_.getVertexAttrib(x.aVertexPositionLoc,_.VERTEX_ATTRIB_ARRAY_DIVISOR),W=_.getVertexAttrib(x.aTextureCoordLoc,_.VERTEX_ATTRIB_ARRAY_DIVISOR),_.vertexAttribDivisor(x.aVertexPositionLoc,0),_.vertexAttribDivisor(x.aTextureCoordLoc,0)):this._instancedArraysExtension&&(H=_.getVertexAttrib(x.aVertexPositionLoc,this._instancedArraysExtension.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE),W=_.getVertexAttrib(x.aTextureCoordLoc,this._instancedArraysExtension.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE),this._instancedArraysExtension.vertexAttribDivisorANGLE(x.aVertexPositionLoc,0),this._instancedArraysExtension.vertexAttribDivisorANGLE(x.aTextureCoordLoc,0)),_.bindFramebuffer(_.FRAMEBUFFER,I),_.viewport(0,0,this._framebufferWidth,this._framebufferHeight),_.clear(_.COLOR_BUFFER_BIT),_.bindBuffer(_.ARRAY_BUFFER,R),_.vertexAttribPointer(x.aVertexPositionLoc,2,_.FLOAT,!1,16,0),_.enableVertexAttribArray(x.aVertexPositionLoc),_.vertexAttribPointer(x.aTextureCoordLoc,2,_.FLOAT,!1,16,8),_.enableVertexAttribArray(x.aTextureCoordLoc),_.bindBuffer(_.ELEMENT_ARRAY_BUFFER,A),_.useProgram(x.program),_.uniform1f(x.uTexWidthLoc,j),_.uniformMatrix4fv(x.uUvTransformLoc,!1,this._cameraUvTransform),_.activeTexture(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,e),_.uniform1i(x.uSamplerLoc,0),_.drawElements(_.TRIANGLES,6,_.UNSIGNED_SHORT,0),_.bindBuffer(_.ARRAY_BUFFER,C),_.vertexAttribPointer(x.aVertexPositionLoc,L,T,P,F,M),_.bindBuffer(_.ARRAY_BUFFER,V),_.vertexAttribPointer(x.aTextureCoordLoc,O,B,D,U,Z),_.bindBuffer(_.ARRAY_BUFFER,m),_.bindBuffer(_.ELEMENT_ARRAY_BUFFER,E),K||_.disableVertexAttribArray(x.aVertexPositionLoc),G||_.disableVertexAttribArray(x.aTextureCoordLoc),this._isWebGL2?(_.vertexAttribDivisor(x.aVertexPositionLoc,H),_.vertexAttribDivisor(x.aTextureCoordLoc,W)):this._instancedArraysExtension&&(this._instancedArraysExtension.vertexAttribDivisorANGLE(x.aVertexPositionLoc,H),this._instancedArraysExtension.vertexAttribDivisorANGLE(x.aTextureCoordLoc,W)),_.bindFramebuffer(_.FRAMEBUFFER,b),_.useProgram(f),_.bindTexture(_.TEXTURE_2D,p),_.activeTexture(h),_.pixelStorei(_.UNPACK_FLIP_Y_WEBGL,u),n.pop(),c&&_.enable(_.BLEND),l&&_.enable(_.CULL_FACE),s&&_.enable(_.DEPTH_TEST),o&&_.enable(_.SCISSOR_TEST),d&&_.enable(_.STENCIL_TEST)}readFrame(e,r,t){let a=this._gl,i=new Uint8Array(r);const _=a.getParameter(a.FRAMEBUFFER_BINDING),[n,o]=N.getDataSize(t);let s=this._getFramebuffer(a,n/4,o);return a.bindFramebuffer(a.FRAMEBUFFER,s),a.readPixels(0,0,this._framebufferWidth,this._framebufferHeight,a.RGBA,a.UNSIGNED_BYTE,i),a.bindFramebuffer(a.FRAMEBUFFER,_),{uvTransform:this._cameraUvTransform,data:r,texture:e,dataWidth:n,dataHeight:o,userFacing:this._computedFrontCameraRotation}}_updateTransforms(e,r){e==this._computedTransformRotation&&r==this._computedFrontCameraRotation||(this._computedTransformRotation=e,this._computedFrontCameraRotation=r,this._cameraUvTransform=this._getCameraUvTransform())}_getCameraUvTransform(){switch(this._computedTransformRotation){case 270:return new Float32Array([0,1,0,0,-1,0,0,0,0,0,1,0,1,0,0,1]);case 180:return new Float32Array([-1,0,0,0,0,-1,0,0,0,0,1,0,1,1,0,1]);case 90:return new Float32Array([0,-1,0,0,1,0,0,0,0,0,1,0,0,1,0,1])}return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}_getFramebuffer(e,r,t){if(this._framebufferWidth===r&&this._framebufferHeight===t&&this._framebufferId)return this._framebufferId;if(this._framebufferId&&(e.deleteFramebuffer(this._framebufferId),this._framebufferId=null),this._renderTexture&&(e.deleteTexture(this._renderTexture),this._renderTexture=null),this._framebufferId=e.createFramebuffer(),!this._framebufferId)throw new Error("Unable to create framebuffer");if(e.bindFramebuffer(e.FRAMEBUFFER,this._framebufferId),this._renderTexture=e.createTexture(),!this._renderTexture)throw new Error("Unable to create render texture");e.activeTexture(e.TEXTURE0);const a=e.getParameter(e.TEXTURE_BINDING_2D);e.bindTexture(e.TEXTURE_2D,this._renderTexture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,r,t,0,e.RGBA,e.UNSIGNED_BYTE,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameterf(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this._renderTexture,0);let i=e.checkFramebufferStatus(e.FRAMEBUFFER);if(i!==e.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer not complete: "+i.toString());return this._framebufferWidth=r,this._framebufferHeight=t,e.bindTexture(e.TEXTURE_2D,a),e.bindFramebuffer(e.FRAMEBUFFER,null),this._framebufferId}_getVertexBuffer(e){if(this._vertexBuffer)return this._vertexBuffer;if(this._vertexBuffer=e.createBuffer(),!this._vertexBuffer)throw new Error("Unable to create vertex buffer");e.bindBuffer(e.ARRAY_BUFFER,this._vertexBuffer);let r=new Float32Array([-1,-1,0,0,-1,1,0,1,1,1,1,1,1,-1,1,0]);return e.bufferData(e.ARRAY_BUFFER,r,e.STATIC_DRAW),this._vertexBuffer}_getIndexBuffer(e){if(this._indexBuffer)return this._indexBuffer;if(this._indexBuffer=e.createBuffer(),!this._indexBuffer)throw new Error("Unable to create index buffer");e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this._indexBuffer);let r=new Uint16Array([0,1,2,0,2,3]);return e.bufferData(e.ELEMENT_ARRAY_BUFFER,r,e.STATIC_DRAW),this._indexBuffer}_getGreyscaleShader(e){if(this._greyscaleShader)return this._greyscaleShader;let r=e.createProgram();if(!r)throw new Error("Unable to create program");let t=I(e,e.VERTEX_SHADER,P),a=I(e,e.FRAGMENT_SHADER,F);e.attachShader(r,t),e.attachShader(r,a),function(e,r){e.linkProgram(r);let t=e.getProgramInfoLog(r);if(t&&t.trim().length>0)throw new Error("Unable to link: "+t)}(e,r);let i=e.getUniformLocation(r,"uTexWidth");if(!i)throw new Error("Unable to get uniform location uTexWidth");let _=e.getUniformLocation(r,"uUvTransform");if(!_)throw new Error("Unable to get uniform location uUvTransform");let n=e.getUniformLocation(r,"uSampler");if(!n)throw new Error("Unable to get uniform location uSampler");return this._greyscaleShader={program:r,aVertexPositionLoc:e.getAttribLocation(r,"aVertexPosition"),aTextureCoordLoc:e.getAttribLocation(r,"aTextureCoord"),uTexWidthLoc:i,uUvTransformLoc:_,uSamplerLoc:n},this._greyscaleShader}}let A,x,L,T,P="\n attribute vec4 aVertexPosition;\n attribute vec2 aTextureCoord;\n\n varying highp vec2 vTextureCoord1;\n varying highp vec2 vTextureCoord2;\n varying highp vec2 vTextureCoord3;\n varying highp vec2 vTextureCoord4;\n\n uniform float uTexWidth;\n\tuniform mat4 uUvTransform;\n\n void main(void) {\n highp vec2 offset1 = vec2(1.5 / uTexWidth, 0);\n highp vec2 offset2 = vec2(0.5 / uTexWidth, 0);\n\n gl_Position = aVertexPosition;\n vTextureCoord1 = (uUvTransform * vec4(aTextureCoord - offset1, 0, 1)).xy;\n vTextureCoord2 = (uUvTransform * vec4(aTextureCoord - offset2, 0, 1)).xy;\n vTextureCoord3 = (uUvTransform * vec4(aTextureCoord + offset2, 0, 1)).xy;\n vTextureCoord4 = (uUvTransform * vec4(aTextureCoord + offset1, 0, 1)).xy;\n }\n",F="\n varying highp vec2 vTextureCoord1;\n varying highp vec2 vTextureCoord2;\n varying highp vec2 vTextureCoord3;\n varying highp vec2 vTextureCoord4;\n\n uniform sampler2D uSampler;\n\n const lowp vec3 colorWeights = vec3(77.0 / 256.0, 150.0 / 256.0, 29.0 / 256.0);\n\n void main(void) {\n lowp vec4 outpx;\n\n outpx.r = dot(colorWeights, texture2D(uSampler, vTextureCoord1).xyz);\n outpx.g = dot(colorWeights, texture2D(uSampler, vTextureCoord2).xyz);\n outpx.b = dot(colorWeights, texture2D(uSampler, vTextureCoord3).xyz);\n outpx.a = dot(colorWeights, texture2D(uSampler, vTextureCoord4).xyz);\n\n gl_FragColor = outpx;\n }\n";var M=function(e,r,t,a){return new(t||(t=Promise))((function(i,_){function n(e){try{s(a.next(e))}catch(e){_(e)}}function o(e){try{s(a.throw(e))}catch(e){_(e)}}function s(e){var r;e.done?i(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(n,o)}s((a=a.apply(e,r||[])).next())}))};let K,C=new class{constructor(){this.onOutgoingMessage=new n,this.onIncomingMessage=new o,this._outgoingMessages=[]}postIncomingMessage(e){this.onIncomingMessage.emit(e)}postOutgoingMessage(e,r){this._outgoingMessages.push({msg:e,transferables:r}),this.onOutgoingMessage.emit()}getOutgoingMessages(){let e=this._outgoingMessages;return this._outgoingMessages=[],e}},O=0,B=!1;const D=new Map,U=new Map;function Z(e,t,a){return M(this,void 0,void 0,(function*(){let i=r({locateFile:(r,t)=>r.endsWith("zappar-cv.wasm")?e:t+r,instantiateWasm:(e,r)=>{const a=new WebAssembly.Instance(t,e);return r(a),a.exports},onRuntimeInitialized:()=>{let e=function(e){let r=e.cwrap("zappar_log_level","number",[]),t=e.cwrap("zappar_log_level_set",null,["number"]),a=e.cwrap("zappar_analytics_project_id_set",null,["string","string"]),i=e.cwrap("zappar_pipeline_create","number",[]),_=e.cwrap("zappar_pipeline_destroy",null,["number"]),n=e.cwrap("zappar_pipeline_camera_frame_data_raw","number",["number"]),o=e.cwrap("zappar_pipeline_camera_frame_data_raw_size","number",["number"]),s=e.cwrap("zappar_pipeline_camera_frame_data_raw_width","number",["number"]),c=e.cwrap("zappar_pipeline_camera_frame_data_raw_height","number",["number"]),l=e.cwrap("zappar_pipeline_frame_update",null,["number"]),d=e.cwrap("zappar_pipeline_frame_number","number",["number"]),h=e.cwrap("zappar_pipeline_camera_model","number",["number"]),u=e.cwrap("zappar_pipeline_camera_frame_user_data","number",["number"]),f=e.cwrap("zappar_pipeline_camera_frame_submit",null,["number","number","number","number","number","number","number","number","number"]),p=e.cwrap("zappar_pipeline_camera_frame_submit_raw_pointer",null,["number","number","number","number","number","number","number","number","number","number","number","number","number"]),b=e.cwrap("zappar_pipeline_camera_frame_camera_attitude","number",["number"]),m=e.cwrap("zappar_pipeline_camera_frame_device_attitude","number",["number"]),E=e.cwrap("zappar_pipeline_motion_accelerometer_submit",null,["number","number","number","number","number"]),v=e.cwrap("zappar_pipeline_motion_accelerometer_with_gravity_submit_int",null,["number","number","number","number","number","number"]),w=e.cwrap("zappar_pipeline_motion_accelerometer_without_gravity_submit_int",null,["number","number","number","number","number","number"]),g=e.cwrap("zappar_pipeline_motion_rotation_rate_submit",null,["number","number","number","number","number"]),y=e.cwrap("zappar_pipeline_motion_rotation_rate_submit_int",null,["number","number","number","number","number","number"]),N=e.cwrap("zappar_pipeline_motion_attitude_submit",null,["number","number","number","number","number"]),k=e.cwrap("zappar_pipeline_motion_attitude_submit_int",null,["number","number","number","number","number","number"]),S=e.cwrap("zappar_pipeline_motion_attitude_matrix_submit",null,["number","number"]),j=e.cwrap("zappar_camera_source_create","number",["number","string"]),z=e.cwrap("zappar_camera_source_destroy",null,["number"]),I=e.cwrap("zappar_sequence_source_create","number",["number"]),R=e.cwrap("zappar_sequence_source_destroy",null,["number"]),A=e.cwrap("zappar_image_tracker_create","number",["number"]),x=e.cwrap("zappar_image_tracker_destroy",null,["number"]),L=e.cwrap("zappar_image_tracker_target_load_from_memory",null,["number","number","number"]),T=e.cwrap("zappar_image_tracker_target_loaded_version","number",["number"]),P=e.cwrap("zappar_image_tracker_enabled","number",["number"]),F=e.cwrap("zappar_image_tracker_enabled_set",null,["number","number"]),M=e.cwrap("zappar_image_tracker_anchor_count","number",["number"]),K=e.cwrap("zappar_image_tracker_anchor_id","string",["number","number"]),C=e.cwrap("zappar_image_tracker_anchor_pose_raw","number",["number","number"]),O=e.cwrap("zappar_face_tracker_create","number",["number"]),B=e.cwrap("zappar_face_tracker_destroy",null,["number"]),D=e.cwrap("zappar_face_tracker_model_load_from_memory",null,["number","number","number"]),U=e.cwrap("zappar_face_tracker_model_loaded_version","number",["number"]),Z=e.cwrap("zappar_face_tracker_enabled_set",null,["number","number"]),V=e.cwrap("zappar_face_tracker_enabled","number",["number"]),G=e.cwrap("zappar_face_tracker_max_faces_set",null,["number","number"]),H=e.cwrap("zappar_face_tracker_max_faces","number",["number"]),W=e.cwrap("zappar_face_tracker_anchor_count","number",["number"]),Y=e.cwrap("zappar_face_tracker_anchor_id","string",["number","number"]),X=e.cwrap("zappar_face_tracker_anchor_pose_raw","number",["number","number"]),q=e.cwrap("zappar_face_tracker_anchor_identity_coefficients","number",["number","number"]),$=e.cwrap("zappar_face_tracker_anchor_expression_coefficients","number",["number","number"]),J=e.cwrap("zappar_face_mesh_create","number",[]),Q=e.cwrap("zappar_face_mesh_destroy",null,["number"]),ee=e.cwrap("zappar_face_landmark_create","number",["number"]),re=e.cwrap("zappar_face_landmark_destroy",null,["number"]),te=e.cwrap("zappar_barcode_finder_create","number",["number"]),ae=e.cwrap("zappar_barcode_finder_destroy",null,["number"]),ie=e.cwrap("zappar_barcode_finder_enabled_set",null,["number","number"]),_e=e.cwrap("zappar_barcode_finder_enabled","number",["number"]),ne=e.cwrap("zappar_barcode_finder_found_number","number",["number"]),oe=e.cwrap("zappar_barcode_finder_found_text","string",["number","number"]),se=e.cwrap("zappar_barcode_finder_found_format","number",["number","number"]),ce=e.cwrap("zappar_barcode_finder_formats","number",["number"]),le=e.cwrap("zappar_barcode_finder_formats_set",null,["number","number"]),de=e.cwrap("zappar_instant_world_tracker_create","number",["number"]),he=e.cwrap("zappar_instant_world_tracker_destroy",null,["number"]),ue=e.cwrap("zappar_instant_world_tracker_enabled_set",null,["number","number"]),fe=e.cwrap("zappar_instant_world_tracker_enabled","number",["number"]),pe=e.cwrap("zappar_instant_world_tracker_anchor_pose_raw","number",["number"]),be=e.cwrap("zappar_instant_world_tracker_anchor_pose_set_from_camera_offset_raw",null,["number","number","number","number","number"]),me=e.cwrap("zappar_zapcode_tracker_create","number",["number"]),Ee=e.cwrap("zappar_zapcode_tracker_destroy",null,["number"]),ve=e.cwrap("zappar_zapcode_tracker_target_load_from_memory",null,["number","number","number"]),we=e.cwrap("zappar_zapcode_tracker_target_loaded_version","number",["number"]),ge=e.cwrap("zappar_zapcode_tracker_enabled","number",["number"]),ye=e.cwrap("zappar_zapcode_tracker_enabled_set",null,["number","number"]),Ne=e.cwrap("zappar_zapcode_tracker_anchor_count","number",["number"]),ke=e.cwrap("zappar_zapcode_tracker_anchor_id","string",["number","number"]),Se=e.cwrap("zappar_zapcode_tracker_anchor_pose_raw","number",["number","number"]),je=e.cwrap("zappar_world_tracker_create","number",["number"]),ze=e.cwrap("zappar_world_tracker_destroy",null,["number"]),Ie=e.cwrap("zappar_world_tracker_enabled","number",["number"]),Re=e.cwrap("zappar_world_tracker_enabled_set",null,["number","number"]),Ae=e.cwrap("zappar_world_tracker_quality","number",["number"]),xe=e.cwrap("zappar_world_tracker_plane_count","number",["number"]),Le=e.cwrap("zappar_world_tracker_plane_pose_raw","number",["number","number"]),Te=e.cwrap("zappar_world_tracker_world_anchor_valid","number",["number"]),Pe=e.cwrap("zappar_world_tracker_world_anchor_pose_raw","number",["number"]),Fe=e.cwrap("zappar_world_tracker_ground_anchor_valid","number",["number"]),Me=e.cwrap("zappar_world_tracker_ground_anchor_pose_raw","number",["number"]),Ke=e.cwrap("zappar_world_tracker_reset",null,["number"]),Ce=e.cwrap("zappar_world_tracker_debug_enabled","number",["number"]),Oe=e.cwrap("zappar_world_tracker_debug_enabled_set",null,["number","number"]),Be=e.cwrap("zappar_world_tracker_debug_tracks_data_size","number",["number"]),De=e.cwrap("zappar_world_tracker_debug_tracks_data","number",["number"]),Ue=e.cwrap("zappar_world_tracker_debug_projections_data_size","number",["number"]),Ze=e.cwrap("zappar_world_tracker_debug_projections_data","number",["number"]),Ve=32,Ge=e._malloc(Ve),He=(e._malloc(64),new Map),We=(r,t)=>{let a=He.get(r);return(!a||a[0]<t)&&(a&&e._free(a[1]),a=[t,e._malloc(t)],He.set(r,a)),a[1]};return{log_level:()=>r(),log_level_set:e=>t(e),analytics_project_id_set:(e,r)=>a(e,r),pipeline_create:()=>i(),pipeline_destroy:()=>{_()},pipeline_camera_frame_data_raw:e=>n(e),pipeline_camera_frame_data_raw_size:e=>o(e),pipeline_camera_frame_data_raw_width:e=>s(e),pipeline_camera_frame_data_raw_height:e=>c(e),pipeline_frame_update:e=>l(e),pipeline_frame_number:e=>d(e),pipeline_camera_model:r=>{let t=h(r),a=new Float32Array(6);return a.set(e.HEAPF32.subarray(t/4,6+t/4)),t=a,t},pipeline_camera_frame_user_data:e=>u(e),pipeline_camera_frame_submit:(r,t,a,i,_,n,o,s)=>{Ve<t.byteLength&&(e._free(Ge),Ve=t.byteLength,Ge=e._malloc(Ve));let c=Ge,l=t.byteLength;e.HEAPU8.set(new Uint8Array(t),Ge);let d=a,h=i,u=_,p=We(4,n.byteLength);e.HEAPF32.set(n,p/4);let b=We(5,o.byteLength);return e.HEAPF32.set(o,b/4),f(r,c,l,d,h,u,p,b,s?1:0)},pipeline_camera_frame_submit_raw_pointer:(r,t,a,i,_,n,o,s,c,l,d,h,u)=>{let f=t,b=a,m=i,E=_,v=n,w=o,g=We(6,s.byteLength);e.HEAPF32.set(s,g/4);let y=c,N=We(8,l.byteLength);return e.HEAPF32.set(l,N/4),p(r,f,b,m,E,v,w,g,y,N,d?1:0,h,u?1:0)},pipeline_camera_frame_camera_attitude:r=>{let t=b(r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(t/4,16+t/4)),t=a,t},pipeline_camera_frame_device_attitude:r=>{let t=m(r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(t/4,16+t/4)),t=a,t},pipeline_motion_accelerometer_submit:(e,r,t,a,i)=>E(e,r,t,a,i),pipeline_motion_accelerometer_with_gravity_submit_int:(e,r,t,a,i,_)=>v(e,r,t,a,i,_),pipeline_motion_accelerometer_without_gravity_submit_int:(e,r,t,a,i,_)=>w(e,r,t,a,i,_),pipeline_motion_rotation_rate_submit:(e,r,t,a,i)=>g(e,r,t,a,i),pipeline_motion_rotation_rate_submit_int:(e,r,t,a,i,_)=>y(e,r,t,a,i,_),pipeline_motion_attitude_submit:(e,r,t,a,i)=>N(e,r,t,a,i),pipeline_motion_attitude_submit_int:(e,r,t,a,i,_)=>k(e,r,t,a,i,_),pipeline_motion_attitude_matrix_submit:(r,t)=>{let a=We(0,t.byteLength);return e.HEAPF32.set(t,a/4),S(r,a)},camera_source_create:(e,r)=>j(e,r),camera_source_destroy:()=>{z()},sequence_source_create:e=>I(e),sequence_source_destroy:()=>{R()},image_tracker_create:e=>A(e),image_tracker_destroy:()=>{x()},image_tracker_target_load_from_memory:(r,t)=>{Ve<t.byteLength&&(e._free(Ge),Ve=t.byteLength,Ge=e._malloc(Ve));let a=Ge,i=t.byteLength;return e.HEAPU8.set(new Uint8Array(t),Ge),L(r,a,i)},image_tracker_target_loaded_version:e=>T(e),image_tracker_enabled:e=>{let r=P(e);return r=1===r,r},image_tracker_enabled_set:(e,r)=>F(e,r?1:0),image_tracker_anchor_count:e=>M(e),image_tracker_anchor_id:(e,r)=>K(e,r),image_tracker_anchor_pose_raw:(r,t)=>{let a=C(r,t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},face_tracker_create:e=>O(e),face_tracker_destroy:()=>{B()},face_tracker_model_load_from_memory:(r,t)=>{Ve<t.byteLength&&(e._free(Ge),Ve=t.byteLength,Ge=e._malloc(Ve));let a=Ge,i=t.byteLength;return e.HEAPU8.set(new Uint8Array(t),Ge),D(r,a,i)},face_tracker_model_loaded_version:e=>U(e),face_tracker_enabled_set:(e,r)=>Z(e,r?1:0),face_tracker_enabled:e=>{let r=V(e);return r=1===r,r},face_tracker_max_faces_set:(e,r)=>G(e,r),face_tracker_max_faces:e=>H(e),face_tracker_anchor_count:e=>W(e),face_tracker_anchor_id:(e,r)=>Y(e,r),face_tracker_anchor_pose_raw:(r,t)=>{let a=X(r,t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},face_tracker_anchor_identity_coefficients:(r,t)=>{let a=q(r,t),i=new Float32Array(50);return i.set(e.HEAPF32.subarray(a/4,50+a/4)),a=i,a},face_tracker_anchor_expression_coefficients:(r,t)=>{let a=$(r,t),i=new Float32Array(29);return i.set(e.HEAPF32.subarray(a/4,29+a/4)),a=i,a},face_mesh_create:()=>J(),face_mesh_destroy:()=>{Q()},face_landmark_create:e=>ee(e),face_landmark_destroy:()=>{re()},barcode_finder_create:e=>te(e),barcode_finder_destroy:()=>{ae()},barcode_finder_enabled_set:(e,r)=>ie(e,r?1:0),barcode_finder_enabled:e=>{let r=_e(e);return r=1===r,r},barcode_finder_found_number:e=>ne(e),barcode_finder_found_text:(e,r)=>oe(e,r),barcode_finder_found_format:(e,r)=>se(e,r),barcode_finder_formats:e=>ce(e),barcode_finder_formats_set:(e,r)=>le(e,r),instant_world_tracker_create:e=>de(e),instant_world_tracker_destroy:()=>{he()},instant_world_tracker_enabled_set:(e,r)=>ue(e,r?1:0),instant_world_tracker_enabled:e=>{let r=fe(e);return r=1===r,r},instant_world_tracker_anchor_pose_raw:r=>{let t=pe(r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(t/4,16+t/4)),t=a,t},instant_world_tracker_anchor_pose_set_from_camera_offset_raw:(e,r,t,a,i)=>be(e,r,t,a,i),zapcode_tracker_create:e=>me(e),zapcode_tracker_destroy:()=>{Ee()},zapcode_tracker_target_load_from_memory:(r,t)=>{Ve<t.byteLength&&(e._free(Ge),Ve=t.byteLength,Ge=e._malloc(Ve));let a=Ge,i=t.byteLength;return e.HEAPU8.set(new Uint8Array(t),Ge),ve(r,a,i)},zapcode_tracker_target_loaded_version:e=>we(e),zapcode_tracker_enabled:e=>{let r=ge(e);return r=1===r,r},zapcode_tracker_enabled_set:(e,r)=>ye(e,r?1:0),zapcode_tracker_anchor_count:e=>Ne(e),zapcode_tracker_anchor_id:(e,r)=>ke(e,r),zapcode_tracker_anchor_pose_raw:(r,t)=>{let a=Se(r,t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},world_tracker_create:e=>je(e),world_tracker_destroy:()=>{ze()},world_tracker_enabled:e=>{let r=Ie(e);return r=1===r,r},world_tracker_enabled_set:(e,r)=>Re(e,r?1:0),world_tracker_quality:e=>Ae(e),world_tracker_plane_count:e=>xe(e),world_tracker_plane_pose_raw:(r,t)=>{let a=Le(r,t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},world_tracker_world_anchor_valid:e=>{let r=Te(e);return r=1===r,r},world_tracker_world_anchor_pose_raw:r=>{let t=Pe(r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(t/4,16+t/4)),t=a,t},world_tracker_ground_anchor_valid:e=>{let r=Fe(e);return r=1===r,r},world_tracker_ground_anchor_pose_raw:r=>{let t=Me(r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(t/4,16+t/4)),t=a,t},world_tracker_reset:e=>Ke(e),world_tracker_debug_enabled:e=>{let r=Ce(e);return r=1===r,r},world_tracker_debug_enabled_set:(e,r)=>Oe(e,r?1:0),world_tracker_debug_tracks_data_size:e=>Be(e),world_tracker_debug_tracks_data:r=>{let t=De(r),a=Be(r),i=new Float32Array(a);return i.set(e.HEAPF32.subarray(t/4,a+t/4)),t=i,t},world_tracker_debug_projections_data_size:e=>Ue(e),world_tracker_debug_projections_data:r=>{let t=Ze(r),a=Ue(r),i=new Float32Array(a);return i.set(e.HEAPF32.subarray(t/4,a+t/4)),t=i,t}}}(i);const r=function(e){return{worker_message_send_count:e.cwrap("worker_message_send_count","number",[]),worker_message_send_clear:e.cwrap("worker_message_send_clear",null,[]),worker_message_send_data_size:e.cwrap("worker_message_send_data_size","number",["number"]),worker_message_send_data:e.cwrap("worker_message_send_data","number",["number"]),worker_message_send_reference:e.cwrap("worker_message_send_reference","number",["number"]),worker_message_receive:e.cwrap("worker_message_receive",null,["number","number","number"])}}(i),t=a?function(e){return{data_download_clear:e.cwrap("data_download_clear",null,[]),data_download_size:e.cwrap("data_download_size","number",[]),data_download:e.cwrap("data_download","number",[]),data_should_record_set:e.cwrap("data_should_record_set",null,["number"])}}(i):void 0;null==t||t.data_should_record_set(1);let n=new _(e,((e,r)=>{C.postOutgoingMessage({p:e,t:"zappar",d:r},[r])}));C.postOutgoingMessage("loaded",[]),C.onIncomingMessage.bind((a=>{var _,o,s;switch(a.t){case"zappar":n.processBuffer(a.d),C.postOutgoingMessage({t:"buf",d:a.d},[a.d]);break;case"buf":null===(_=n.serializersByPipelineId.get(a.p))||void 0===_||_.bufferReturn(a.d);break;case"cameraFrameC2S":{let _,o=a,s=n._pipeline_by_instance.get(o.p);s&&(e.pipeline_camera_frame_submit(s,o.d,o.width,o.height,o.token,o.c2d,o.cm,o.userFacing),e.pipeline_frame_update(s),_=e.pipeline_camera_frame_device_attitude(s),n.exploreState(),Q(i,r),t&&ee(i,t));let c={token:o.token,d:o.d,p:o.p,t:"cameraFrameRecycleS2C",att:_};C.postOutgoingMessage(c,[o.d]);break}case"rawenabled":B=a.v;break;case"rawrequest":{const e=a,r=D.get(e.p),t={t:"raw",token:e.token,p:e.p,data:r&&null!==(s=null===(o=r.ready.find((r=>r.token===e.token)))||void 0===o?void 0:o.data)&&void 0!==s?s:null};C.postOutgoingMessage(t,[]);break}case"cameraProfileC2S":{let e=a;U.set(e.source,e.p);break}case"streamC2S":{let _=a;(function(e,r,t,a,i,_,n,o,s){return M(this,void 0,void 0,(function*(){for(;;){let c;try{c=yield t.getReader()}catch(e){yield $(1e3);continue}try{return void(yield q(e,r,c,a,i,_,n,o,s))}catch(e){}return void(yield $(1e3))}}))})(i,e,_.s,_.p,_.userFacing,n,_.source,r,t).then((()=>{let e={t:"streamEndedS2C",p:_.p,source:_.source};C.postOutgoingMessage(e,[])})).catch((e=>{}));break}case"cameraToScreenC2S":O=a.r;break;case"imageBitmapC2S":!function(e,r,t,a){const[i,_]=function(){if(!L||!T){const e=new OffscreenCanvas(1,1);if(T=e.getContext("webgl"),!T)throw new Error("Unable to get offscreen GL context");L=new R(T)}return[L,T]}();if(x||(x=_.createTexture(),_.bindTexture(_.TEXTURE_2D,x),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,_.LINEAR)),!x)return;const[n,o]=N.getDataSize(e.cp);(!A||A.byteLength<n*o)&&(A=new ArrayBuffer(n*o)),i.uploadFrame(x,e.i,e.r,e.userFacing,e.cp);let s=i.readFrame(x,A,e.cp),c={t:"imageBitmapS2C",dataWidth:s.dataWidth,dataHeight:s.dataHeight,frame:e.i,userFacing:s.userFacing,uvTransform:s.uvTransform||m(),tokenId:e.tokenId,p:e.p};a.postOutgoingMessage(c,[e.i]);let l=t._pipeline_by_instance.get(e.p);l&&(r.pipeline_camera_frame_submit(l,A,s.dataWidth,s.dataHeight,e.tokenId,e.cameraToDevice,e.cameraModel,s.userFacing),r.pipeline_frame_update(l),t.exploreState())}(a,e,n,C);break;case"sensorDataC2S":{const r=a,t=n._pipeline_by_instance.get(r.p);if(!t)break;switch(r.sensor){case"accel":e.pipeline_motion_accelerometer_submit(t,r.timestamp,r.x,r.y,r.z);break;case"accel_w_gravity_int":e.pipeline_motion_accelerometer_with_gravity_submit_int(t,r.timestamp,r.interval,r.x,r.y,r.z);break;case"accel_wo_gravity_int":e.pipeline_motion_accelerometer_without_gravity_submit_int(t,r.timestamp,r.interval,r.x,r.y,r.z);break;case"attitude_int":e.pipeline_motion_attitude_submit_int(t,r.timestamp,r.interval,r.x,r.y,r.z);break;case"attitude":e.pipeline_motion_attitude_submit(t,r.timestamp,r.x,r.y,r.z);break;case"rotation_rate_int":e.pipeline_motion_rotation_rate_submit_int(t,r.timestamp,r.interval,r.x,r.y,r.z);break;case"rotation_rate":e.pipeline_motion_rotation_rate_submit(t,r.timestamp,r.x,r.y,r.z)}break}case"attitudeMatrixC2S":{const r=a,t=n._pipeline_by_instance.get(r.p);if(!t)break;e.pipeline_motion_attitude_matrix_submit(t,r.m);break}}}))}})}))}let V=0,G=0,H=1;function W(e){return new Promise(((r,t)=>{const a=setTimeout((()=>{t("Frame timeout")}),2e3);e.read().then((e=>{clearTimeout(a),r(e)}))}))}const Y=m(),X=new Float32Array([300,300,160,120,0,0]);function q(e,r,t,a,i,_,n,o,s){var c,l;return M(this,void 0,void 0,(function*(){for(;;){let u=yield W(t);if(u.done)return void(null===(c=u.value)||void 0===c||c.close());let f=u.value,b=f.allocationSize();b>G&&(V>0&&e._free(V),V=e._malloc(b),G=b),yield f.copyTo(e.HEAPU8.subarray(V,V+G));let m=H;H++;const v=f.visibleRect.width,w=f.visibleRect.height;let g,y=v,N=w;switch(O){case 270:g=new Float32Array([0,1,0,0,-1,0,0,0,0,0,1,0,1,0,0,1]),y=w,N=v;break;case 180:g=new Float32Array([-1,0,0,0,0,-1,0,0,0,0,1,0,1,1,0,1]);break;case 90:g=new Float32Array([0,-1,0,0,1,0,0,0,0,0,1,0,0,1,0,1]),y=w,N=v;break;default:g=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}let k=!1;U.get(n)!==p.HIGH&&(y/=2,N/=2,k=!0);let S=f.clone();i?(h=[-1,1,-1],(d=Y)[0]=h[0],d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=h[1],d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=h[2],d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):E(Y);let j=300*y/320;X[0]=j,X[1]=j,X[2]=.5*y,X[3]=.5*N;const z={token:m,d:S,p:a,t:"videoFrameS2C",userFacing:i,uvTransform:g,w:y,h:N,cameraToDevice:Y,cameraModel:X,source:n};C.postOutgoingMessage(z,[z.d,z.uvTransform.buffer]);const I=_._pipeline_by_instance.get(a);if(I){try{r.pipeline_camera_frame_submit_raw_pointer(I,V,b,J(f.format),v,w,m,Y,O,X,i,null!==(l=f.timestamp)&&void 0!==l?l:-1,k),Q(e,o),s&&ee(e,s)}catch(e){console.log("Exception during camera processing",e)}if(r.pipeline_frame_update(I),B){let t=D.get(a);if(t||(t={available:[],ready:[]},D.set(a,t)),t.ready.length>4){const e=t.ready.splice(0,1);for(const r of e)t.available.push(new Uint8Array(r.data.data))}const i=r.pipeline_camera_frame_data_raw_size(I);let _;for(;!_||_.byteLength<i;)t.available.length<1&&t.available.push(new Uint8Array(i)),_=t.available.pop();const n=r.pipeline_camera_frame_data_raw(I);_.set(e.HEAPU8.subarray(n,n+i)),t.ready.push({token:m,data:{data:_,width:r.pipeline_camera_frame_data_raw_width(a),height:r.pipeline_camera_frame_data_raw_height(a)}})}_.exploreState()}f.close()}var d,h}))}function $(e){return new Promise((r=>{setTimeout(r,e)}))}function J(e){switch(e){case"I420":return h.FRAME_PIXEL_FORMAT_I420;case"I420A":return h.FRAME_PIXEL_FORMAT_I420A;case"I422":return h.FRAME_PIXEL_FORMAT_I422;case"I444":return h.FRAME_PIXEL_FORMAT_I444;case"NV12":return h.FRAME_PIXEL_FORMAT_NV12;case"RGBA":case"RGBX":return h.FRAME_PIXEL_FORMAT_RGBA;case"BGRA":case"BGRX":return h.FRAME_PIXEL_FORMAT_BGRA}return h.FRAME_PIXEL_FORMAT_Y}function Q(e,r){const t=r.worker_message_send_count();if(0!==t){K||(K=new MessageChannel,K.port1.start(),K.port1.addEventListener("message",(t=>{if("msgrec"!==t.data.t)return;const a=t.data.data,i=e._malloc(a.byteLength);e.HEAPU8.set(a,i),r.worker_message_receive(t.data.reference,a.byteLength,i),e._free(i)})),C.postOutgoingMessage({t:"setupCeresWorker",port:K.port2},[K.port2]));for(let a=0;a<t;a++){const t=r.worker_message_send_reference(a),i=r.worker_message_send_data_size(a),_=r.worker_message_send_data(a),n=e.HEAPU8.slice(_,_+i);K.port1.postMessage({t:"msgsend",data:n,reference:t},[n.buffer])}r.worker_message_send_clear()}}function ee(e,r){const t=r.data_download_size();if(0===t)return;const a=r.data_download(),i=e.HEAPU8.slice(a,a+t);C.postOutgoingMessage({t:"_z_datadownload",data:i},[i.buffer]),r.data_download_clear()}const re=self;C.onOutgoingMessage.bind((()=>{let e=C.getOutgoingMessages();for(let r of e)re.postMessage(r.msg,r.transferables)}));let te=e=>{var r;e&&e.data&&"wasm"===e.data.t&&(Z(location.href.startsWith("blob")?e.data.url:new URL(t(751),t.b).toString(),e.data.module,null!==(r=e.data.shouldRecordData)&&void 0!==r&&r),re.removeEventListener("message",te))};re.addEventListener("message",te),re.addEventListener("message",(e=>{C.postIncomingMessage(e.data)}))})()})();
|