!function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0)}([function(t,e,i){var{Reader:n}=i(1);onmessage=function(t){let e=function(t,e){var i=new n(t);let r=e.length>0?e.length:4,o=i.size/r;var s=0;let a={};for(a.numPoints=o,a.position=new Float32Array(3*o),r>=4&&(a.intensity=new Float32Array(o)),r>=5&&(a.ring=new Float32Array(o));i.position<i.size;){for(let t=0;t<3;t++)a.position[3*s+t]=i.readFloat();r>=4&&(a.intensity[s]=i.readFloat()),r>=5&&(a.ring[s]=i.readFloat()),s++}return a}(t.data.buffer,t.data.fieldData),i=e.numPoints,r=new Uint32Array(i);for(var o=0;o<i;o++)r[o]=o;let s,a,u,f=[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY],l=[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],c=[0,0,0],d=e.position;for(let t=0;t<i;t++)s=d[3*t],a=d[3*t+1],u=d[3*t+2],isNaN(s)||isNaN(a)||isNaN(u)||(c[0]+=s/i,c[1]+=a/i,c[2]+=u/i,f[0]=Math.min(f[0],s),f[1]=Math.min(f[1],a),f[2]=Math.min(f[2],u),l[0]=Math.max(l[0],s),l[1]=Math.max(l[1],a),l[2]=Math.max(l[2],u));let p={position:e.position.buffer,indices:r.buffer,tightBoundingBox:{min:f,max:l}};e.intensity&&(p.intensity=e.intensity.buffer);let h=[p.position,p.indices];postMessage(p,h)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=new TextDecoder("utf-8");class r{constructor(t){this._arraybuffer=t,this.position=0,this.size=this._arraybuffer.byteLength,this._viewer=new DataView(this._arraybuffer)}static create(t){return new r(new ArrayBuffer(t))}readUint8(){var t=this._viewer.getUint8(this.position);return++this.position,t}readBuffer(t){if(t>0){var e=this._arraybuffer.slice(this.position,this.position+t);return this.position+=t,e}}writeUint32(t){this._viewer.setUint32(this.position,t,!0),this.position+=4}readUint32(){var t=this._viewer.getUint32(this.position,!0);return this.position+=4,t}readFloat(){var t=this._viewer.getFloat32(this.position,!0);return this.position+=4,t}wrtieFloat(t){this._viewer.setFloat32(this.position,t,!0),this.position+=4}readString(t){if(t>0){const e=this,i=e._arraybuffer.slice(e.position,e.position+t);return e.position+=t,n.decode(i)}return""}readNullTerminatedString(t,e){const i=this,n=i.position;let r=0,s=t||0;for(;i._viewer.getUint8(n+r)!=s&&!(e>0&&r>=e);)r++;return i.position+=r+1,r>0?o(i._arraybuffer.slice(n,n+r)):""}readCharWithoutComments(){const t=this;let e=t.position,i=t._viewer.getUint8(e++);if(35===i)do{i=t._viewer.getUint8(e++)}while(10!==i&&13!==i);return t.position=e,i}readUnitString(){const t=this;let e,i=0;do{e=t.readCharWithoutComments()}while(32===e||10===e||13===e||9===e);if(e<48||e>57)throw"junk in file where an unsigned integer should be";do{i*=10,i+=e-48,e=t._viewer.getUint8(t.position++)}while(e>=48&&e<=57);return i}}function o(t){var e=new Uint8Array(t);try{var i=String.fromCharCode.apply(null,e),n=decodeURIComponent(escape(i))}catch(t){}return n}e.Reader=r,e.decodeToString=o,e.request=function(t,e){e||(e="blob");const i=new XMLHttpRequest;return new Promise((n,r)=>{i.responseType=e,i.open("GET",t,!0),i.onload=function(){200==this.status||0==this.status?n(i.response):console.error("failed to load: "+t+"["+this.status+"]")},i.send()})},e.resolveImage=function(t){return new Promise((e,i)=>{const n=new Image;n.onload=function(){e(n)},n.onerror=function(t){i()},n.crossOrigin="",n.src=t})}}]);