@loaders.gl/basis
Advanced tools
Comparing version 2.3.10 to 2.3.11
@@ -1,1 +0,1 @@ | ||
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=16)}([function(t,e,r){t.exports=r(8)},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,c,"next",t)}function c(t){r(a,o,i,s,c,"throw",t)}s(void 0)}))}}},function(t,e,r){"use strict";(function(t,n){r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return c}));var o=r(3),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==t&&t,document:"undefined"!=typeof document&&document},a=i.global||i.self||i.window,s="object"!==(void 0===n?"undefined":r.n(o)()(n))||"[object process]"!==String(n)||n.browser,c="function"==typeof importScripts,u=void 0!==n&&n.version&&n.version.match(/v([0-9]*)/);u&&parseFloat(u[1])}).call(this,r(14),r(15))},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e){},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){var n=r(9),o=r(10),i=r(11),a=r(13);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||a()}},,function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function l(){}function p(){}function h(){}var d={};d[o]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&r.call(m,o)&&(d=m);var v=h.prototype=l.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){var n;this._invoke=function(o,i){function a(){return new e((function(n,a){!function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=v.constructor=h,h.constructor=p,p.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(g.prototype),g.prototype[i]=function(){return this},t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(v),s(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}},function(t,e,r){var n=r(12);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var c,u=[],f=!1,l=-1;function p(){f&&c&&(f=!1,c.length?u=c.concat(u):l=-1,u.length&&h())}function h(){if(!f){var t=s(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++l<e;)c&&c[l].run();l=-1,e=u.length}c=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new d(t,e)),1!==u.length||f||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,r){"use strict";r.r(e);var n=r(5),o=r.n(n),i=r(0),a=r.n(i),s=r(1),c=r.n(s),u=r(3),f=r.n(u);function l(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,n=r||new Set;if(t){if(p(t))n.add(t);else if(p(t.buffer))n.add(t.buffer);else if(ArrayBuffer.isView(t));else if(e&&"object"===f()(t))for(var o in t)l(t[o],e,n)}else;return void 0===r?Array.from(n):[]}function p(t){return!!t&&(t instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&t instanceof MessagePort||("undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas)))}function h(t,e){if(!t)throw new Error(e||"loader assertion failed.")}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"2.3.10";h(t,"no loader provided");var r=t.version;e&&r&&(e=y(e),r=y(r))}function y(t){var e=t.split(".").map(Number);return{major:e[0],minor:e[1]}}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t){return g.apply(this,arguments)}function g(){return(g=c()(a.a.mark((function t(e){var r,n,o,i,s,c,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.loader,n=e.arraybuffer,e.byteOffset,e.byteLength,o=e.options,i=e.context,!r.parseSync&&!r.parse){t.next=6;break}s=n,c=r.parseSync||r.parse,t.next=13;break;case 6:if(!r.parseTextSync){t.next=12;break}u=new TextDecoder,s=u.decode(n),c=r.parseTextSync,t.next=13;break;case 12:throw new Error("Could not load data with ".concat(r.name," loader"));case 13:return o=v(v({},o),{},{modules:r&&r.options&&r.options.modules||{},worker:!1}),t.next=16,c(s,v({},o),i,r);case 16:return t.abrupt("return",t.sent);case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(t,e){return t&&"parse"===t.type&&t.source&&t.source.startsWith("loaders.gl")}var x,O=r(6),j=r.n(O),L=r(2),S=r(4),E={};function P(t){return k.apply(this,arguments)}function k(){return(k=c()(a.a.mark((function t(e){var r,n,o=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:null,n=o.length>2&&void 0!==o[2]?o[2]:{},r&&(e=F(e,r,n)),E[e]=E[e]||T(e),t.next=6,E[e];case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function F(t,e,r){var n=r.modules||{};return n[t]?n[t]:L.b?r.CDN?(h(r.CDN.startsWith("http")),"".concat(r.CDN,"/").concat(e,"@").concat("2.3.10","/dist/libs/").concat(t)):L.c?"../src/libs/".concat(t):"modules/".concat(e,"/src/libs/").concat(t):"modules/".concat(e,"/dist/libs/").concat(t)}function T(t){return _.apply(this,arguments)}function _(){return(_=c()(a.a.mark((function t(e){var r,n,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.endsWith("wasm")){t.next=7;break}return t.next=3,fetch(e);case 3:return r=t.sent,t.next=6,r.arrayBuffer();case 6:return t.abrupt("return",t.sent);case 7:if(L.b){t.next=9;break}return t.abrupt("return",S.requireFromFile&&S.requireFromFile(e));case 9:if(!L.c){t.next=11;break}return t.abrupt("return",importScripts(e));case 11:return t.next=13,fetch(e);case 13:return n=t.sent,t.next=16,n.text();case 16:return o=t.sent,t.abrupt("return",A(o,e));case 18:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t,e){if(!L.b)return S.requireFromString&&S.requireFromString(t,e);if(L.c)return eval.call(L.a,t),null;var r=document.createElement("script");r.id=e;try{r.appendChild(document.createTextNode(t))}catch(e){r.text=t}return document.body.appendChild(r),null}function I(t){return N.apply(this,arguments)}function N(){return(N=c()(a.a.mark((function t(e){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.modules||{}).basis){t.next=3;break}return t.abrupt("return",r.basis);case 3:return x=x||B(e),t.next=6,x;case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function B(t){return D.apply(this,arguments)}function D(){return(D=c()(a.a.mark((function t(e){var r,n,o,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=null,n=null,t.t0=Promise,t.next=5,P("basis_transcoder.js","basis",e);case 5:return t.t1=t.sent,t.next=8,P("basis_transcoder.wasm","basis",e);case 8:return t.t2=t.sent,t.t3=[t.t1,t.t2],t.next=12,t.t0.all.call(t.t0,t.t3);case 12:return o=t.sent,i=j()(o,2),r=i[0],n=i[1],r=r||L.a.BASIS,t.next=19,C(r,n);case 19:return t.abrupt("return",t.sent);case 20:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(t,e){var r={};return e&&(r.wasmBinary=e),new Promise((function(e){t(r).then((function(t){var r=t.BasisFile;(0,t.initializeBasis)(),e({BasisFile:r})}))}))}var M={etc1:{basisFormat:0,compressed:!0},etc2:{basisFormat:1,compressed:!0},bc1:{basisFormat:2,compressed:!0,format:33776},bc3:{basisFormat:3,compressed:!0,format:33779},bc4:{basisFormat:4,compressed:!0},bc5:{basisFormat:5,compressed:!0},"bc7-m6-opaque-only":{basisFormat:6,compressed:!0},"bc7-m5":{basisFormat:7,compressed:!0},"pvrtc1-4-rgb":{basisFormat:8,compressed:!0},"pvrtc1-4-rgba":{basisFormat:9,compressed:!0},"astc-4x4":{basisFormat:10,compressed:!0},"atc-rgb":{basisFormat:11,compressed:!0},"atc-rgba-interpolated-alpha":{basisFormat:12,compressed:!0},rgba32:{basisFormat:13,compressed:!1},rgb565:{basisFormat:14,compressed:!1},bgr565:{basisFormat:15,compressed:!1},rgba4444:{basisFormat:16,compressed:!1}};function G(){return(G=c()(a.a.mark((function t(e,r){var n,o,i,s,c,u,f,l,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I(r);case 2:if(n=t.sent,o=n.BasisFile,i=new o(new Uint8Array(e)),t.prev=5,i.startTranscoding()){t.next=8;break}return t.abrupt("return",null);case 8:for(s=i.getNumImages(),c=[],u=0;u<s;u++){for(f=i.getNumLevels(u),l=[],p=0;p<f;p++)l.push(q(i,u,p,r));c.push(l)}return t.abrupt("return",c);case 12:return t.prev=12,i.close(),i.delete(),t.finish(12);case 16:case"end":return t.stop()}}),t,null,[[5,,12,16]])})))).apply(this,arguments)}function q(t,e,r,n){var o=t.getImageWidth(e,r),i=t.getImageHeight(e,r),a=t.getHasAlpha(),s=function(t,e){var r=t&&t.basis&&t.basis.format;return"object"===f()(r)&&(r=e?r.alpha:r.noAlpha),r=r.toLowerCase(),M[r]}(n,a),c=s.compressed,u=s.format,l=s.basisFormat,p=t.getImageTranscodedSizeInBytes(e,r,l),h=new Uint8Array(p);return t.transcodeImage(h,e,r,l,0,0)?{width:o,height:i,data:h,compressed:c,hasAlpha:a,format:u}:null}function U(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function W(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?U(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}!function(t){if("undefined"!=typeof self){var e=0,r=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(o,i){var a=e++;self.addEventListener("message",(function t(e){var r=e.data;if(r&&r.id===a)switch(r.type){case"parse-done":self.removeEventListener("message",t),o(r.result);break;case"parse-error":self.removeEventListener("message",t),i(r.message)}})),self.postMessage({type:"parse",id:a,arraybuffer:t,options:r,url:n},[t])}))};self.onmessage=function(){var e=c()(a.a.mark((function e(n){var o,i,s,c,u,f,p,h,y,m;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.data,e.prev=1,w(o,t.name)){e.next=4;break}return e.abrupt("return");case 4:return d(t,o.source.split("@")[1]),i=o.arraybuffer,s=o.byteOffset,c=void 0===s?0:s,u=o.byteLength,f=void 0===u?0:u,p=o.options,h=void 0===p?{}:p,e.next=8,b({loader:t,arraybuffer:i,byteOffset:c,byteLength:f,options:h,context:{parse:r}});case 8:y=e.sent,m=l(y),self.postMessage({type:"done",result:y},m),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),self.postMessage({type:"error",message:e.t0.message});case 16:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(t){return e.apply(this,arguments)}}()}}(W(W({},{id:"basis",name:"Basis",version:"2.3.10",extensions:["basis"],mimeTypes:["application/octet-stream"],tests:["sB"],binary:!0,options:{basis:{format:"rgb565",libraryPath:"libs/",workerUrl:"https://unpkg.com/@loaders.gl/basis@".concat("2.3.10","/dist/basis-loader.worker.js")}}}),{},{parse:function(t,e){return G.apply(this,arguments)}}))}]); | ||
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=16)}([function(t,e,r){t.exports=r(8)},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,c,"next",t)}function c(t){r(a,o,i,s,c,"throw",t)}s(void 0)}))}}},function(t,e,r){"use strict";(function(t,n){r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return c}));var o=r(3),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==t&&t,document:"undefined"!=typeof document&&document},a=i.global||i.self||i.window,s="object"!==(void 0===n?"undefined":r.n(o)()(n))||"[object process]"!==String(n)||n.browser,c="function"==typeof importScripts,u=void 0!==n&&n.version&&n.version.match(/v([0-9]*)/);u&&parseFloat(u[1])}).call(this,r(14),r(15))},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e){},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){var n=r(9),o=r(10),i=r(11),a=r(13);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||a()}},,function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function l(){}function p(){}function h(){}var d={};d[o]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&r.call(m,o)&&(d=m);var v=h.prototype=l.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){var n;this._invoke=function(o,i){function a(){return new e((function(n,a){!function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=v.constructor=h,h.constructor=p,p.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(g.prototype),g.prototype[i]=function(){return this},t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(v),s(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}},function(t,e,r){var n=r(12);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var c,u=[],f=!1,l=-1;function p(){f&&c&&(f=!1,c.length?u=c.concat(u):l=-1,u.length&&h())}function h(){if(!f){var t=s(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++l<e;)c&&c[l].run();l=-1,e=u.length}c=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new d(t,e)),1!==u.length||f||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,r){"use strict";r.r(e);var n=r(5),o=r.n(n),i=r(0),a=r.n(i),s=r(1),c=r.n(s),u=r(3),f=r.n(u);function l(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,n=r||new Set;if(t){if(p(t))n.add(t);else if(p(t.buffer))n.add(t.buffer);else if(ArrayBuffer.isView(t));else if(e&&"object"===f()(t))for(var o in t)l(t[o],e,n)}else;return void 0===r?Array.from(n):[]}function p(t){return!!t&&(t instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&t instanceof MessagePort||("undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas)))}function h(t,e){if(!t)throw new Error(e||"loader assertion failed.")}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"2.3.11";h(t,"no loader provided");var r=t.version;e&&r&&(e=y(e),r=y(r))}function y(t){var e=t.split(".").map(Number);return{major:e[0],minor:e[1]}}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t){return g.apply(this,arguments)}function g(){return(g=c()(a.a.mark((function t(e){var r,n,o,i,s,c,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.loader,n=e.arraybuffer,e.byteOffset,e.byteLength,o=e.options,i=e.context,!r.parseSync&&!r.parse){t.next=6;break}s=n,c=r.parseSync||r.parse,t.next=13;break;case 6:if(!r.parseTextSync){t.next=12;break}u=new TextDecoder,s=u.decode(n),c=r.parseTextSync,t.next=13;break;case 12:throw new Error("Could not load data with ".concat(r.name," loader"));case 13:return o=v(v({},o),{},{modules:r&&r.options&&r.options.modules||{},worker:!1}),t.next=16,c(s,v({},o),i,r);case 16:return t.abrupt("return",t.sent);case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(t,e){return t&&"parse"===t.type&&t.source&&t.source.startsWith("loaders.gl")}var x,O=r(6),j=r.n(O),L=r(2),S=r(4),E={};function P(t){return k.apply(this,arguments)}function k(){return(k=c()(a.a.mark((function t(e){var r,n,o=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:null,n=o.length>2&&void 0!==o[2]?o[2]:{},r&&(e=F(e,r,n)),E[e]=E[e]||T(e),t.next=6,E[e];case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function F(t,e,r){var n=r.modules||{};return n[t]?n[t]:L.b?r.CDN?(h(r.CDN.startsWith("http")),"".concat(r.CDN,"/").concat(e,"@").concat("2.3.11","/dist/libs/").concat(t)):L.c?"../src/libs/".concat(t):"modules/".concat(e,"/src/libs/").concat(t):"modules/".concat(e,"/dist/libs/").concat(t)}function T(t){return _.apply(this,arguments)}function _(){return(_=c()(a.a.mark((function t(e){var r,n,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.endsWith("wasm")){t.next=7;break}return t.next=3,fetch(e);case 3:return r=t.sent,t.next=6,r.arrayBuffer();case 6:return t.abrupt("return",t.sent);case 7:if(L.b){t.next=9;break}return t.abrupt("return",S.requireFromFile&&S.requireFromFile(e));case 9:if(!L.c){t.next=11;break}return t.abrupt("return",importScripts(e));case 11:return t.next=13,fetch(e);case 13:return n=t.sent,t.next=16,n.text();case 16:return o=t.sent,t.abrupt("return",A(o,e));case 18:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t,e){if(!L.b)return S.requireFromString&&S.requireFromString(t,e);if(L.c)return eval.call(L.a,t),null;var r=document.createElement("script");r.id=e;try{r.appendChild(document.createTextNode(t))}catch(e){r.text=t}return document.body.appendChild(r),null}function I(t){return N.apply(this,arguments)}function N(){return(N=c()(a.a.mark((function t(e){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.modules||{}).basis){t.next=3;break}return t.abrupt("return",r.basis);case 3:return x=x||B(e),t.next=6,x;case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function B(t){return D.apply(this,arguments)}function D(){return(D=c()(a.a.mark((function t(e){var r,n,o,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=null,n=null,t.t0=Promise,t.next=5,P("basis_transcoder.js","basis",e);case 5:return t.t1=t.sent,t.next=8,P("basis_transcoder.wasm","basis",e);case 8:return t.t2=t.sent,t.t3=[t.t1,t.t2],t.next=12,t.t0.all.call(t.t0,t.t3);case 12:return o=t.sent,i=j()(o,2),r=i[0],n=i[1],r=r||L.a.BASIS,t.next=19,C(r,n);case 19:return t.abrupt("return",t.sent);case 20:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(t,e){var r={};return e&&(r.wasmBinary=e),new Promise((function(e){t(r).then((function(t){var r=t.BasisFile;(0,t.initializeBasis)(),e({BasisFile:r})}))}))}var M={etc1:{basisFormat:0,compressed:!0},etc2:{basisFormat:1,compressed:!0},bc1:{basisFormat:2,compressed:!0,format:33776},bc3:{basisFormat:3,compressed:!0,format:33779},bc4:{basisFormat:4,compressed:!0},bc5:{basisFormat:5,compressed:!0},"bc7-m6-opaque-only":{basisFormat:6,compressed:!0},"bc7-m5":{basisFormat:7,compressed:!0},"pvrtc1-4-rgb":{basisFormat:8,compressed:!0},"pvrtc1-4-rgba":{basisFormat:9,compressed:!0},"astc-4x4":{basisFormat:10,compressed:!0},"atc-rgb":{basisFormat:11,compressed:!0},"atc-rgba-interpolated-alpha":{basisFormat:12,compressed:!0},rgba32:{basisFormat:13,compressed:!1},rgb565:{basisFormat:14,compressed:!1},bgr565:{basisFormat:15,compressed:!1},rgba4444:{basisFormat:16,compressed:!1}};function G(){return(G=c()(a.a.mark((function t(e,r){var n,o,i,s,c,u,f,l,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I(r);case 2:if(n=t.sent,o=n.BasisFile,i=new o(new Uint8Array(e)),t.prev=5,i.startTranscoding()){t.next=8;break}return t.abrupt("return",null);case 8:for(s=i.getNumImages(),c=[],u=0;u<s;u++){for(f=i.getNumLevels(u),l=[],p=0;p<f;p++)l.push(q(i,u,p,r));c.push(l)}return t.abrupt("return",c);case 12:return t.prev=12,i.close(),i.delete(),t.finish(12);case 16:case"end":return t.stop()}}),t,null,[[5,,12,16]])})))).apply(this,arguments)}function q(t,e,r,n){var o=t.getImageWidth(e,r),i=t.getImageHeight(e,r),a=t.getHasAlpha(),s=function(t,e){var r=t&&t.basis&&t.basis.format;return"object"===f()(r)&&(r=e?r.alpha:r.noAlpha),r=r.toLowerCase(),M[r]}(n,a),c=s.compressed,u=s.format,l=s.basisFormat,p=t.getImageTranscodedSizeInBytes(e,r,l),h=new Uint8Array(p);return t.transcodeImage(h,e,r,l,0,0)?{width:o,height:i,data:h,compressed:c,hasAlpha:a,format:u}:null}function U(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function W(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?U(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}!function(t){if("undefined"!=typeof self){var e=0,r=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(o,i){var a=e++;self.addEventListener("message",(function t(e){var r=e.data;if(r&&r.id===a)switch(r.type){case"parse-done":self.removeEventListener("message",t),o(r.result);break;case"parse-error":self.removeEventListener("message",t),i(r.message)}})),self.postMessage({type:"parse",id:a,arraybuffer:t,options:r,url:n},[t])}))};self.onmessage=function(){var e=c()(a.a.mark((function e(n){var o,i,s,c,u,f,p,h,y,m;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.data,e.prev=1,w(o,t.name)){e.next=4;break}return e.abrupt("return");case 4:return d(t,o.source.split("@")[1]),i=o.arraybuffer,s=o.byteOffset,c=void 0===s?0:s,u=o.byteLength,f=void 0===u?0:u,p=o.options,h=void 0===p?{}:p,e.next=8,b({loader:t,arraybuffer:i,byteOffset:c,byteLength:f,options:h,context:{parse:r}});case 8:y=e.sent,m=l(y),self.postMessage({type:"done",result:y},m),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),self.postMessage({type:"error",message:e.t0.message});case 16:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(t){return e.apply(this,arguments)}}()}}(W(W({},{id:"basis",name:"Basis",version:"2.3.11",extensions:["basis"],mimeTypes:["application/octet-stream"],tests:["sB"],binary:!0,options:{basis:{format:"rgb565",libraryPath:"libs/",workerUrl:"https://unpkg.com/@loaders.gl/basis@".concat("2.3.11","/dist/basis-loader.worker.js")}}}),{},{parse:function(t,e){return G.apply(this,arguments)}}))}]); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=30)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){e.exports=r(34)},function(e,t){function r(e,t,r,n,o,a,i){try{var u=e[a](i),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,o)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function u(e){r(i,o,a,u,s,"next",e)}function s(e){r(i,o,a,u,s,"throw",e)}u(void 0)}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw new Error(t||"loader assertion failed.")}},function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},function(e,t,r){"use strict";(function(e){function n(){var t;if("undefined"!=typeof window&&window.performance)t=window.performance.now();else if(void 0!==e&&e.hrtime){var r=e.hrtime();t=1e3*r[0]+r[1]/1e6}else t=Date.now();return t}r.d(t,"a",(function(){return n}))}).call(this,r(10))},function(e,t,r){var n=r(4);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(r,i,u):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}},function(e,t){var r,n,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,c=[],f=!1,l=-1;function p(){f&&s&&(f=!1,s.length?c=s.concat(c):l=-1,c.length&&d())}function d(){if(!f){var e=u(p);f=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,f=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||f||u(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.getTransferList=function e(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,i=n||new Set;if(t){if(a(t))i.add(t);else if(a(t.buffer))i.add(t.buffer);else if(ArrayBuffer.isView(t));else if(r&&"object"===(0,o.default)(t))for(var u in t)e(t[u],r,i)}else;return void 0===n?Array.from(i):[]};var o=n(r(4));function a(e){return!!e&&(e instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&e instanceof MessagePort||("undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas)))}},function(e,t){e.exports=function(e){var t;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}},function(e,t,r){"use strict";var n=r(9),o=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayBuffer=function(e){u.toArrayBuffer&&(e=u.toArrayBuffer(e));if(e instanceof ArrayBuffer)return e;if(ArrayBuffer.isView(e))return e.buffer;if("string"==typeof e){var t=e;return(new TextEncoder).encode(t).buffer}if(e&&"object"===(0,a.default)(e)&&e._toArrayBuffer)return e._toArrayBuffer();return(0,i.default)(!1)},t.compareArrayBuffers=function(e,t,r){if(r=r||e.byteLength,e.byteLength<r||t.byteLength<r)return!1;for(var n=new Uint8Array(e),o=new Uint8Array(t),a=0;a<n.length;++a)if(n[a]!==o[a])return!1;return!0},t.concatenateArrayBuffers=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=t.map((function(e){return e instanceof ArrayBuffer?new Uint8Array(e):e})),a=o.reduce((function(e,t){return e+t.byteLength}),0),i=new Uint8Array(a),u=0,c=s(o);try{for(c.s();!(n=c.n()).done;){var f=n.value;i.set(f,u),u+=f.byteLength}}catch(e){c.e(e)}finally{c.f()}return i.buffer},t.sliceArrayBuffer=function(e,t,r){var n=void 0!==r?new Uint8Array(e).subarray(t,t+r):new Uint8Array(e).subarray(t);return new Uint8Array(n).buffer};var a=o(r(4)),i=o(r(3)),u=n(r(26));function s(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(16);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},function(e,t,r){"use strict";var n=r(9),o=r(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return i.isBrowser}}),Object.defineProperty(t,"isWorker",{enumerable:!0,get:function(){return i.isWorker}}),Object.defineProperty(t,"nodeVersion",{enumerable:!0,get:function(){return i.nodeVersion}}),Object.defineProperty(t,"self",{enumerable:!0,get:function(){return i.self}}),Object.defineProperty(t,"window",{enumerable:!0,get:function(){return i.window}}),Object.defineProperty(t,"global",{enumerable:!0,get:function(){return i.global}}),Object.defineProperty(t,"document",{enumerable:!0,get:function(){return i.document}}),Object.defineProperty(t,"createWorker",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"validateLoaderVersion",{enumerable:!0,get:function(){return s.validateLoaderVersion}}),Object.defineProperty(t,"makeTransformIterator",{enumerable:!0,get:function(){return c.makeTransformIterator}}),Object.defineProperty(t,"getTransferList",{enumerable:!0,get:function(){return f.getTransferList}}),Object.defineProperty(t,"_WorkerFarm",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"_WorkerPool",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"_WorkerThread",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"getLibraryUrl",{enumerable:!0,get:function(){return h.getLibraryUrl}}),Object.defineProperty(t,"loadLibrary",{enumerable:!0,get:function(){return h.loadLibrary}}),Object.defineProperty(t,"parseJSON",{enumerable:!0,get:function(){return y.parseJSON}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return v.isBuffer}}),Object.defineProperty(t,"toBuffer",{enumerable:!0,get:function(){return v.toBuffer}}),Object.defineProperty(t,"bufferToArrayBuffer",{enumerable:!0,get:function(){return v.bufferToArrayBuffer}}),Object.defineProperty(t,"toArrayBuffer",{enumerable:!0,get:function(){return b.toArrayBuffer}}),Object.defineProperty(t,"sliceArrayBuffer",{enumerable:!0,get:function(){return b.sliceArrayBuffer}}),Object.defineProperty(t,"concatenateArrayBuffers",{enumerable:!0,get:function(){return b.concatenateArrayBuffers}}),Object.defineProperty(t,"compareArrayBuffers",{enumerable:!0,get:function(){return b.compareArrayBuffers}}),Object.defineProperty(t,"padTo4Bytes",{enumerable:!0,get:function(){return m.padTo4Bytes}}),Object.defineProperty(t,"copyToArray",{enumerable:!0,get:function(){return m.copyToArray}}),Object.defineProperty(t,"copyArrayBuffer",{enumerable:!0,get:function(){return m.copyArrayBuffer}}),Object.defineProperty(t,"getZeroOffsetArrayBuffer",{enumerable:!0,get:function(){return m.getZeroOffsetArrayBuffer}}),Object.defineProperty(t,"copyPaddedArrayBufferToDataView",{enumerable:!0,get:function(){return g.copyPaddedArrayBufferToDataView}}),Object.defineProperty(t,"copyPaddedStringToDataView",{enumerable:!0,get:function(){return g.copyPaddedStringToDataView}}),Object.defineProperty(t,"padStringToByteAlignment",{enumerable:!0,get:function(){return w.padStringToByteAlignment}}),Object.defineProperty(t,"copyStringToDataView",{enumerable:!0,get:function(){return w.copyStringToDataView}}),Object.defineProperty(t,"copyBinaryToDataView",{enumerable:!0,get:function(){return w.copyBinaryToDataView}}),Object.defineProperty(t,"getFirstCharacters",{enumerable:!0,get:function(){return x.getFirstCharacters}}),Object.defineProperty(t,"getMagicString",{enumerable:!0,get:function(){return x.getMagicString}}),Object.defineProperty(t,"setPathPrefix",{enumerable:!0,get:function(){return P.setPathPrefix}}),Object.defineProperty(t,"getPathPrefix",{enumerable:!0,get:function(){return P.getPathPrefix}}),Object.defineProperty(t,"resolvePath",{enumerable:!0,get:function(){return P.resolvePath}}),Object.defineProperty(t,"_addAliases",{enumerable:!0,get:function(){return _.addAliases}}),Object.defineProperty(t,"makeTextEncoderIterator",{enumerable:!0,get:function(){return k.makeTextEncoderIterator}}),Object.defineProperty(t,"makeTextDecoderIterator",{enumerable:!0,get:function(){return k.makeTextDecoderIterator}}),Object.defineProperty(t,"makeLineIterator",{enumerable:!0,get:function(){return k.makeLineIterator}}),Object.defineProperty(t,"makeNumberedLineIterator",{enumerable:!0,get:function(){return k.makeNumberedLineIterator}}),Object.defineProperty(t,"forEach",{enumerable:!0,get:function(){return j.forEach}}),Object.defineProperty(t,"concatenateChunksAsync",{enumerable:!0,get:function(){return j.concatenateChunksAsync}}),Object.defineProperty(t,"RequestScheduler",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"ChildProcessProxy",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"_getMeshSize",{enumerable:!0,get:function(){return E.getMeshSize}}),Object.defineProperty(t,"getMeshBoundingBox",{enumerable:!0,get:function(){return E.getMeshBoundingBox}}),t.path=void 0;var a=o(r(3)),i=r(18),u=o(r(40)),s=r(19),c=r(41),f=r(11),l=o(r(43)),p=o(r(23)),d=o(r(24)),h=r(45),y=r(47),v=r(48),b=r(13),m=r(27),g=r(49),w=r(50),x=r(25),O=n(r(51));t.path=O;var P=r(28),_=r(28),k=r(52),j=r(53),S=o(r(54)),T=o(r(55)),E=r(61)},function(e,t,r){"use strict";(function(e,n){var o=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.nodeVersion=t.isWorker=t.isBrowser=t.document=t.global=t.window=t.self=void 0;var a=o(r(4)),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document},u=i.self||i.window||i.global;t.self=u;var s=i.window||i.self||i.global;t.window=s;var c=i.global||i.self||i.window;t.global=c;var f=i.document||{};t.document=f;var l="object"!==(void 0===n?"undefined":(0,a.default)(n))||"[object process]"!==String(n)||n.browser;t.isBrowser=l;var p="function"==typeof importScripts;t.isWorker=p;var d=void 0!==n&&n.version&&n.version.match(/v([0-9]*)/),h=d&&parseFloat(d[1])||0;t.nodeVersion=h}).call(this,r(14),r(10))},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.validateLoaderVersion=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"2.3.10";(0,o.default)(e,"no loader provided");var r=e.version;if(!t||!r)return;t=a(t),r=a(r)};var o=n(r(3));function a(e){var t=e.split(".").map(Number);return{major:t[0],minor:t[1]}}},function(e,t,r){var n=r(21);e.exports=function(e){return new n(e)}},function(e,t){e.exports=function(e){this.wrapped=e}},function(e,t,r){var n=r(42);e.exports=function(e){return function(){return new n(e.apply(this,arguments))}}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(1)),a=n(r(2)),i=n(r(6)),u=n(r(7)),s=n(r(24)),c=function(){function e(t){var r=t.source,n=t.name,o=void 0===n?"unnamed":n,a=t.maxConcurrency,u=void 0===a?1:a,s=t.onMessage,c=t.onDebug,f=void 0===c?function(){}:c,l=t.reuseWorkers,p=void 0===l||l;(0,i.default)(this,e),this.source=r,this.name=o,this.maxConcurrency=u,this.onMessage=s,this.onDebug=f,this.jobQueue=[],this.idleQueue=[],this.count=0,this.isDestroyed=!1,this.reuseWorkers=p}var t;return(0,u.default)(e,[{key:"destroy",value:function(){this.idleQueue.forEach((function(e){return e.destroy()})),this.isDestroyed=!0}},{key:"process",value:function(e,t){var r=this;return new Promise((function(n,o){r.jobQueue.push({data:e,jobName:t,resolve:n,reject:o}),r._startQueuedJob()}))}},{key:"_startQueuedJob",value:(t=(0,a.default)(o.default.mark((function e(){var t,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.jobQueue.length){e.next=2;break}return e.abrupt("return");case 2:if(t=this._getAvailableWorker()){e.next=5;break}return e.abrupt("return");case 5:return r=this.jobQueue.shift(),this.onDebug({message:"processing",worker:t.name,job:r.jobName,backlog:this.jobQueue.length}),e.prev=7,e.t0=r,e.next=11,t.process(r.data);case 11:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=18;break;case 15:e.prev=15,e.t2=e.catch(7),r.reject(e.t2);case 18:return e.prev=18,this._onWorkerDone(t),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[7,15,18,21]])}))),function(){return t.apply(this,arguments)})},{key:"_onWorkerDone",value:function(e){this.isDestroyed?e.destroy():(this.reuseWorkers?this.idleQueue.push(e):(e.destroy(),this.count--),this._startQueuedJob())}},{key:"_getAvailableWorker",value:function(){if(this.idleQueue.length>0)return this.idleQueue.shift();if(this.count<this.maxConcurrency){this.count++;var e="".concat(this.name.toLowerCase()," (#").concat(this.count," of ").concat(this.maxConcurrency,")");return new s.default({source:this.source,onMessage:this.onMessage,name:e})}return null}}]),e}();t.default=c},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(1)),a=n(r(2)),i=n(r(6)),u=n(r(7)),s=r(44),c=r(11),f=0;function l(e){var t=e.data;(0,e.resolve)(t)}var p=function(){function e(t){var r=t.source,n=t.name,o=void 0===n?"web-worker-".concat(f++):n,a=t.onMessage;(0,i.default)(this,e);var u=(0,s.getWorkerURL)(r,o);this.worker=new Worker(u,{name:o}),this.name=o,this.onMessage=a||l}var t;return(0,u.default)(e,[{key:"process",value:(t=(0,a.default)(o.default.mark((function e(t){var r=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){r.worker.onmessage=function(t){r.onMessage({worker:r.worker,data:t.data,resolve:e,reject:n})},r.worker.onerror=function(e){var t="".concat(r.name,": WorkerThread.process() failed");e.message&&(t+=" ".concat(e.message," ").concat(e.filename,":").concat(e.lineno,":").concat(e.colno));var o=new Error(t);console.error(e),n(o)};var o=(0,c.getTransferList)(t);r.worker.postMessage(t,o)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"destroy",value:function(){this.worker.terminate(),this.worker=null}}]),e}();t.default=p},function(e,t,r){"use strict";function n(e,t,r){if(e.byteLength<=t+r)return"";for(var n=new DataView(e),o="",a=0;a<r;a++)o+=String.fromCharCode(n.getUint8(t+a));return o}Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstCharacters=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof e)return e.slice(0,t);if(ArrayBuffer.isView(e))return n(e.buffer,e.byteOffset,t);if(e instanceof ArrayBuffer){var r=0;return n(e,r,t)}return""},t.getMagicString=n},function(e,t){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padTo4Bytes=o,t.getZeroOffsetArrayBuffer=function(e,t,r){return(0,n.sliceArrayBuffer)(e,t,r)},t.copyArrayBuffer=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.byteLength,o=new Uint8Array(e,r,n),a=new Uint8Array(t);return o.set(a),e},t.copyToArray=function(e,t,r){var n;if(e instanceof ArrayBuffer)n=new Uint8Array(e);else{var a=e.byteOffset,i=e.byteLength;n=new Uint8Array(e.buffer,a,i)}return t.set(n,r),r+o(n.byteLength)};var n=r(13);function o(e){return e+3&-4}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPathPrefix=function(e){n=e},t.getPathPrefix=function(){return n},t.addAliases=function(e){Object.assign(o,e)},t.resolvePath=function(e){for(var t in o)if(e.startsWith(t)){var r=o[t];e=e.replace(t,r)}e.startsWith("http://")||e.startsWith("https://")||(e="".concat(n).concat(e));return e};var n="",o={}},function(e,t){},function(e,t,r){"use strict";(function(t){var n=r(31),o="undefined"==typeof window?t:window;o.loaders=o.loaders||{},e.exports=Object.assign(o.loaders,n)}).call(this,r(14))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BasisLoader",{enumerable:!0,get:function(){return n.BasisLoader}}),Object.defineProperty(t,"BasisWorkerLoader",{enumerable:!0,get:function(){return n.BasisWorkerLoader}}),Object.defineProperty(t,"_CompressedTextureLoader",{enumerable:!0,get:function(){return o.CompressedTextureLoader}}),Object.defineProperty(t,"_CompressedTextureWriter",{enumerable:!0,get:function(){return a.CompressedTextureWriter}});var n=r(32),o=r(63),a=r(64)},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.BasisLoader=t.BasisWorkerLoader=void 0;var o=n(r(5)),a=n(r(33));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={id:"basis",name:"Basis",version:"2.3.10",extensions:["basis"],mimeTypes:["application/octet-stream"],tests:["sB"],binary:!0,options:{basis:{format:"rgb565",libraryPath:"libs/",workerUrl:"https://unpkg.com/@loaders.gl/basis@".concat("2.3.10","/dist/basis-loader.worker.js")}}};t.BasisWorkerLoader=s;var c=u(u({},s),{},{parse:a.default});t.BasisLoader=c},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return f.apply(this,arguments)};var o=n(r(1)),a=n(r(4)),i=n(r(2)),u=r(35),s=r(62),c={etc1:{basisFormat:0,compressed:!0},etc2:{basisFormat:1,compressed:!0},bc1:{basisFormat:2,compressed:!0,format:s.GL.COMPRESSED_RGB_S3TC_DXT1_EXT},bc3:{basisFormat:3,compressed:!0,format:s.GL.COMPRESSED_RGBA_S3TC_DXT5_EXT},bc4:{basisFormat:4,compressed:!0},bc5:{basisFormat:5,compressed:!0},"bc7-m6-opaque-only":{basisFormat:6,compressed:!0},"bc7-m5":{basisFormat:7,compressed:!0},"pvrtc1-4-rgb":{basisFormat:8,compressed:!0},"pvrtc1-4-rgba":{basisFormat:9,compressed:!0},"astc-4x4":{basisFormat:10,compressed:!0},"atc-rgb":{basisFormat:11,compressed:!0},"atc-rgba-interpolated-alpha":{basisFormat:12,compressed:!0},rgba32:{basisFormat:13,compressed:!1},rgb565:{basisFormat:14,compressed:!1},bgr565:{basisFormat:15,compressed:!1},rgba4444:{basisFormat:16,compressed:!1}};function f(){return(f=(0,i.default)(o.default.mark((function e(t,r){var n,a,i,s,c,f,p,d,h;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.loadBasisModule)(r);case 2:if(n=e.sent,a=n.BasisFile,i=new a(new Uint8Array(t)),e.prev=5,i.startTranscoding()){e.next=8;break}return e.abrupt("return",null);case 8:for(s=i.getNumImages(),c=[],f=0;f<s;f++){for(p=i.getNumLevels(f),d=[],h=0;h<p;h++)d.push(l(i,f,h,r));c.push(d)}return e.abrupt("return",c);case 12:return e.prev=12,i.close(),i.delete(),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[5,,12,16]])})))).apply(this,arguments)}function l(e,t,r,n){var o=e.getImageWidth(t,r),i=e.getImageHeight(t,r),u=e.getHasAlpha(),s=function(e,t){var r=e&&e.basis&&e.basis.format;return"object"===(0,a.default)(r)&&(r=t?r.alpha:r.noAlpha),r=r.toLowerCase(),c[r]}(n,u),f=s.compressed,l=s.format,p=s.basisFormat,d=e.getImageTranscodedSizeInBytes(t,r,p),h=new Uint8Array(d);return e.transcodeImage(h,t,r,p,0,0)?{width:o,height:i,data:h,compressed:f,hasAlpha:u,format:l}:null}},function(e,t,r){var n=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof l?t:l,a=Object.create(o.prototype),i=new P(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return k()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=w(i,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=c(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(e,r,i),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function l(){}function p(){}function d(){}var h={};h[o]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(_([])));v&&v!==t&&r.call(v,o)&&(h=v);var b=d.prototype=l.prototype=Object.create(h);function m(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){var n;this._invoke=function(o,a){function i(){return new t((function(n,i){!function n(o,a,i,u){var s=c(e[o],e,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(l).then((function(e){f.value=e,i(f)}),(function(e){return n("throw",e,i,u)}))}u(s.arg)}(o,a,n,i)}))}return n=n?n.then(i,i):i()}}function w(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=c(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function _(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=b.constructor=d,d.constructor=p,p.displayName=u(d,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,i,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},m(g.prototype),g.prototype[a]=function(){return this},e.AsyncIterator=g,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new g(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},m(b),u(b,i,"Generator"),b[o]=function(){return this},b.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=_,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:_(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.loadBasisModule=function(e){return c.apply(this,arguments)};var o,a=n(r(36)),i=n(r(1)),u=n(r(2)),s=r(17);function c(){return(c=(0,u.default)(i.default.mark((function e(t){var r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t.modules||{}).basis){e.next=3;break}return e.abrupt("return",r.basis);case 3:return o=o||f(t),e.next=6,o;case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return l.apply(this,arguments)}function l(){return(l=(0,u.default)(i.default.mark((function e(t){var r,n,o,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=null,n=null,e.t0=Promise,e.next=5,(0,s.loadLibrary)("basis_transcoder.js","basis",t);case 5:return e.t1=e.sent,e.next=8,(0,s.loadLibrary)("basis_transcoder.wasm","basis",t);case 8:return e.t2=e.sent,e.t3=[e.t1,e.t2],e.next=12,e.t0.all.call(e.t0,e.t3);case 12:return o=e.sent,u=(0,a.default)(o,2),r=u[0],n=u[1],r=r||s.global.BASIS,e.next=19,p(r,n);case 19:return e.abrupt("return",e.sent);case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,t){var r={};return t&&(r.wasmBinary=t),new Promise((function(t){e(r).then((function(e){var r=e.BasisFile;(0,e.initializeBasis)(),t({BasisFile:r})}))}))}},function(e,t,r){var n=r(37),o=r(38),a=r(15),i=r(39);e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("undefined"==typeof self)return;var t=0,r=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(o,a){var i=t++;self.addEventListener("message",(function e(t){var r=t.data;if(r&&r.id===i)switch(r.type){case"parse-done":self.removeEventListener("message",e),o(r.result);break;case"parse-error":self.removeEventListener("message",e),a(r.message)}})),self.postMessage({type:"parse",id:i,arraybuffer:e,options:r,url:n},[e])}))};self.onmessage=function(){var t=(0,i.default)(a.default.mark((function t(n){var o,i,c,f,p,h,y,v,b,m;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.data,t.prev=1,d(o,e.name)){t.next=4;break}return t.abrupt("return");case 4:return(0,s.validateLoaderVersion)(e,o.source.split("@")[1]),i=o.arraybuffer,c=o.byteOffset,f=void 0===c?0:c,p=o.byteLength,h=void 0===p?0:p,y=o.options,v=void 0===y?{}:y,t.next=8,l({loader:e,arraybuffer:i,byteOffset:f,byteLength:h,options:v,context:{parse:r}});case 8:b=t.sent,m=(0,u.getTransferList)(b),self.postMessage({type:"done",result:b},m),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),self.postMessage({type:"error",message:t.t0.message});case 16:case"end":return t.stop()}}),t,null,[[1,13]])})));return function(e){return t.apply(this,arguments)}}()};var o=n(r(5)),a=n(r(1)),i=n(r(2)),u=r(11),s=r(19);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e){return p.apply(this,arguments)}function p(){return(p=(0,i.default)(a.default.mark((function e(t){var r,n,o,i,u,s,c;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.loader,n=t.arraybuffer,t.byteOffset,t.byteLength,o=t.options,i=t.context,!r.parseSync&&!r.parse){e.next=6;break}u=n,s=r.parseSync||r.parse,e.next=13;break;case 6:if(!r.parseTextSync){e.next=12;break}c=new TextDecoder,u=c.decode(n),s=r.parseTextSync,e.next=13;break;case 12:throw new Error("Could not load data with ".concat(r.name," loader"));case 13:return o=f(f({},o),{},{modules:r&&r.options&&r.options.modules||{},worker:!1}),e.next=16,s(u,f({},o),i,r);case 16:return e.abrupt("return",e.sent);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e,t){return e&&"parse"===e.type&&e.source&&e.source.startsWith("loaders.gl")}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.makeTransformIterator=function(e,t,r){return s.apply(this,arguments)};var o=n(r(1)),a=n(r(20)),i=n(r(22)),u=n(r(12));function s(){return(s=(0,i.default)(o.default.mark((function e(t,r,n){var i,s,c,f,l,p,d,h,y,v;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=new r(n),s=!0,c=!1,e.prev=3,l=(0,u.default)(t);case 5:return e.next=7,(0,a.default)(l.next());case 7:return p=e.sent,s=p.done,e.next=11,(0,a.default)(p.value);case 11:if(d=e.sent,s){e.next=23;break}return h=d,e.next=16,(0,a.default)(i.write(h));case 16:if(!(y=e.sent)){e.next=20;break}return e.next=20,y;case 20:s=!0,e.next=5;break;case 23:e.next=29;break;case 25:e.prev=25,e.t0=e.catch(3),c=!0,f=e.t0;case 29:if(e.prev=29,e.prev=30,s||null==l.return){e.next=34;break}return e.next=34,(0,a.default)(l.return());case 34:if(e.prev=34,!c){e.next=37;break}throw f;case 37:return e.finish(34);case 38:return e.finish(29);case 39:return e.next=41,(0,a.default)(i.end());case 41:if(!(v=e.sent)){e.next=45;break}return e.next=45,v;case 45:case"end":return e.stop()}}),e,null,[[3,25,29,39],[30,,34,38]])})))).apply(this,arguments)}},function(e,t,r){var n=r(21);function o(e){var t,r;function o(t,r){try{var i=e[t](r),u=i.value,s=u instanceof n;Promise.resolve(s?u.wrapped:u).then((function(e){s?o("return"===t?"return":"next",e):a(i.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){a("throw",e)}}function a(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise((function(a,i){var u={key:e,arg:n,resolve:a,reject:i,next:null};r?r=r.next=u:(t=r=u,o(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(o.prototype[Symbol.asyncIterator]=function(){return this}),o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},e.exports=o},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(1)),a=n(r(2)),i=n(r(6)),u=n(r(7)),s=n(r(23)),c=function(){function e(t){var r=t.maxConcurrency,n=void 0===r?5:r,o=t.onMessage,a=void 0===o?null:o,u=t.onDebug,s=void 0===u?function(){}:u,c=t.reuseWorkers,f=void 0===c||c;(0,i.default)(this,e),this.maxConcurrency=n,this.onMessage=a,this.onDebug=s,this.workerPools=new Map,this.reuseWorkers=f}var t;return(0,u.default)(e,null,[{key:"isSupported",value:function(){return"undefined"!=typeof Worker}}]),(0,u.default)(e,[{key:"setProps",value:function(e){"maxConcurrency"in e&&(this.maxConcurrency=e.maxConcurrency),"onDebug"in e&&(this.onDebug=e.onDebug),"reuseWorkers"in e&&(this.reuseWorkers=e.reuseWorkers)}},{key:"destroy",value:function(){this.workerPools.forEach((function(e){return e.destroy()}))}},{key:"process",value:(t=(0,a.default)(o.default.mark((function e(t,r,n){var a;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this._getWorkerPool(t,r),e.abrupt("return",a.process(n));case 2:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"_getWorkerPool",value:function(e,t){var r=this.workerPools.get(t);return r||(r=new s.default({source:e,name:t,onMessage:f.bind(null,this.onMessage),maxConcurrency:this.maxConcurrency,onDebug:this.onDebug,reuseWorkers:this.reuseWorkers}),this.workerPools.set(t,r)),r}}]),e}();function f(e,t){var r=t.worker,n=t.data,o=t.resolve,a=t.reject;if(e)e({worker:r,data:n,resolve:o,reject:a});else switch(n.type){case"done":o(n.result);break;case"error":a(n.message)}}t.default=c},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.getWorkerURL=function(e){if((0,o.default)("string"==typeof e,"worker source"),e.startsWith("url(")&&e.endsWith(")")){var t=e.match(/^url\((.*)\)$/)[1];if(t&&!t.startsWith("http"))return t;e=i(t)}var r=a.get(e);if(!r){var n=new Blob([e],{type:"application/javascript"});r=URL.createObjectURL(n),a.set(e,r)}return r};var o=n(r(3)),a=new Map;function i(e){return"try {\n importScripts('".concat(e,"');\n} catch (error) {\n console.error(error);\n}")}},function(e,t,r){"use strict";var n=r(9),o=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.loadLibrary=function(e){return l.apply(this,arguments)},t.getLibraryUrl=p;var a=o(r(1)),i=o(r(2)),u=r(18),s=n(r(46)),c=o(r(3)),f={};function l(){return(l=(0,i.default)(a.default.mark((function e(t){var r,n,o=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:null,n=o.length>2&&void 0!==o[2]?o[2]:{},r&&(t=p(t,r,n)),f[t]=f[t]||d(t),e.next=6,f[t];case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,t,r){var n=r.modules||{};return n[e]?n[e]:u.isBrowser?r.CDN?((0,c.default)(r.CDN.startsWith("http")),"".concat(r.CDN,"/").concat(t,"@").concat("2.3.10","/dist/libs/").concat(e)):u.isWorker?"../src/libs/".concat(e):"modules/".concat(t,"/src/libs/").concat(e):"modules/".concat(t,"/dist/libs/").concat(e)}function d(e){return h.apply(this,arguments)}function h(){return(h=(0,i.default)(a.default.mark((function e(t){var r,n,o;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.endsWith("wasm")){e.next=7;break}return e.next=3,fetch(t);case 3:return r=e.sent,e.next=6,r.arrayBuffer();case 6:return e.abrupt("return",e.sent);case 7:if(u.isBrowser){e.next=9;break}return e.abrupt("return",s.requireFromFile&&s.requireFromFile(t));case 9:if(!u.isWorker){e.next=11;break}return e.abrupt("return",importScripts(t));case 11:return e.next=13,fetch(t);case 13:return n=e.sent,e.next=16,n.text();case 16:return o=e.sent,e.abrupt("return",y(o,t));case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e,t){if(!u.isBrowser)return s.requireFromString&&s.requireFromString(e,t);if(u.isWorker)return eval.call(u.global,e),null;var r=document.createElement("script");r.id=t;try{r.appendChild(document.createTextNode(e))}catch(t){r.text=e}return document.body.appendChild(r),null}},function(e,t){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=function(e){try{return JSON.parse(e)}catch(t){throw new Error('Failed to parse JSON from data starting with "'.concat((0,n.getFirstCharacters)(e),'"'))}};var n=r(25)},function(e,t,r){"use strict";var n=r(9),o=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return e&&"object"===(0,a.default)(e)&&e.isBuffer},t.toBuffer=function(e){return i.toBuffer?i.toBuffer(e):e},t.bufferToArrayBuffer=function(e){if(i.toArrayBuffer)return i.toArrayBuffer(e);return e};var a=o(r(4)),i=n(r(26))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.copyPaddedArrayBufferToDataView=o,t.copyPaddedStringToDataView=function(e,t,r){var n=(new TextEncoder).encode(r);return t=o(e,t,n)};var n=r(27);function o(e,t,r){var o=(0,n.padTo4Bytes)(r.byteLength),a=o-r.byteLength;if(e){var i=new Uint8Array(e.buffer,e.byteOffset+t,r.byteLength),u=new Uint8Array(r);i.set(u);for(var s=0;s<a;++s)e.setUint8(t+r.byteLength+s,32)}return t+=o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padStringToByteAlignment=function(e,t){for(var r=e.length,n=Math.ceil(r/t)*t-r,o="",a=0;a<n;++a)o+=" ";return e+o},t.copyStringToDataView=function(e,t,r,n){if(e)for(var o=0;o<n;o++)e.setUint8(t+o,r.charCodeAt(o));return t+n},t.copyBinaryToDataView=function(e,t,r,n){if(e)for(var o=0;o<n;o++)e.setUint8(t+o,r[o]),t++;return t+n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dirname=function(e){var t=e&&e.lastIndexOf("/");return t>=0?e.substr(0,t):""}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.makeTextDecoderIterator=function(e,t){return s.apply(this,arguments)},t.makeTextEncoderIterator=function(e,t){return c.apply(this,arguments)},t.makeLineIterator=function(e){return f.apply(this,arguments)},t.makeNumberedLineIterator=function(e){return l.apply(this,arguments)};var o=n(r(1)),a=n(r(20)),i=n(r(22)),u=n(r(12));function s(){return(s=(0,i.default)(o.default.mark((function e(t,r){var n,i,s,c,f,l,p,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new TextDecoder(r),i=!0,s=!1,e.prev=3,f=(0,u.default)(t);case 5:return e.next=7,(0,a.default)(f.next());case 7:return l=e.sent,i=l.done,e.next=11,(0,a.default)(l.value);case 11:if(p=e.sent,i){e.next=19;break}return d=p,e.next=16,"string"==typeof d?d:n.decode(d,{stream:!0});case 16:i=!0,e.next=5;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(3),s=!0,c=e.t0;case 25:if(e.prev=25,e.prev=26,i||null==f.return){e.next=30;break}return e.next=30,(0,a.default)(f.return());case 30:if(e.prev=30,!s){e.next=33;break}throw c;case 33:return e.finish(30);case 34:return e.finish(25);case 35:case"end":return e.stop()}}),e,null,[[3,21,25,35],[26,,30,34]])})))).apply(this,arguments)}function c(){return(c=(0,i.default)(o.default.mark((function e(t,r){var n,i,s,c,f,l,p,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new TextEncoder,i=!0,s=!1,e.prev=3,f=(0,u.default)(t);case 5:return e.next=7,(0,a.default)(f.next());case 7:return l=e.sent,i=l.done,e.next=11,(0,a.default)(l.value);case 11:if(p=e.sent,i){e.next=19;break}return d=p,e.next=16,"string"==typeof d?n.encode(d):d;case 16:i=!0,e.next=5;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(3),s=!0,c=e.t0;case 25:if(e.prev=25,e.prev=26,i||null==f.return){e.next=30;break}return e.next=30,(0,a.default)(f.return());case 30:if(e.prev=30,!s){e.next=33;break}throw c;case 33:return e.finish(30);case 34:return e.finish(25);case 35:case"end":return e.stop()}}),e,null,[[3,21,25,35],[26,,30,34]])})))).apply(this,arguments)}function f(){return(f=(0,i.default)(o.default.mark((function e(t){var r,n,i,s,c,f,l,p,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r="",n=!0,i=!1,e.prev=3,c=(0,u.default)(t);case 5:return e.next=7,(0,a.default)(c.next());case 7:return f=e.sent,n=f.done,e.next=11,(0,a.default)(f.value);case 11:if(l=e.sent,n){e.next=26;break}r+=l,p=void 0;case 16:if(!((p=r.indexOf("\n"))>=0)){e.next=23;break}return d=r.slice(0,p+1),r=r.slice(p+1),e.next=21,d;case 21:e.next=16;break;case 23:n=!0,e.next=5;break;case 26:e.next=32;break;case 28:e.prev=28,e.t0=e.catch(3),i=!0,s=e.t0;case 32:if(e.prev=32,e.prev=33,n||null==c.return){e.next=37;break}return e.next=37,(0,a.default)(c.return());case 37:if(e.prev=37,!i){e.next=40;break}throw s;case 40:return e.finish(37);case 41:return e.finish(32);case 42:if(!(r.length>0)){e.next=45;break}return e.next=45,r;case 45:case"end":return e.stop()}}),e,null,[[3,28,32,42],[33,,37,41]])})))).apply(this,arguments)}function l(){return(l=(0,i.default)(o.default.mark((function e(t){var r,n,i,s,c,f,l,p;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=1,n=!0,i=!1,e.prev=3,c=(0,u.default)(t);case 5:return e.next=7,(0,a.default)(c.next());case 7:return f=e.sent,n=f.done,e.next=11,(0,a.default)(f.value);case 11:if(l=e.sent,n){e.next=20;break}return p=l,e.next=16,{counter:r,line:p};case 16:r++;case 17:n=!0,e.next=5;break;case 20:e.next=26;break;case 22:e.prev=22,e.t0=e.catch(3),i=!0,s=e.t0;case 26:if(e.prev=26,e.prev=27,n||null==c.return){e.next=31;break}return e.next=31,(0,a.default)(c.return());case 31:if(e.prev=31,!i){e.next=34;break}throw s;case 34:return e.finish(31);case 35:return e.finish(26);case 36:case"end":return e.stop()}}),e,null,[[3,22,26,36],[27,,31,35]])})))).apply(this,arguments)}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=function(e,t){return c.apply(this,arguments)},t.concatenateChunksAsync=function(e){return f.apply(this,arguments)};var o=n(r(1)),a=n(r(2)),i=n(r(12)),u=r(13),s=n(r(3));function c(){return(c=(0,a.default)(o.default.mark((function e(t,r){var n,a,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,t.next();case 3:if(n=e.sent,a=n.done,i=n.value,!a){e.next=9;break}return t.return(),e.abrupt("return");case 9:if(!r(i)){e.next=12;break}return e.abrupt("return");case 12:e.next=0;break;case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){return(f=(0,a.default)(o.default.mark((function e(t){var r,n,a,c,f,l,p,d,h;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],n=[],a=!0,c=!1,e.prev=4,l=(0,i.default)(t);case 6:return e.next=8,l.next();case 8:return p=e.sent,a=p.done,e.next=12,p.value;case 12:if(d=e.sent,a){e.next=19;break}"string"==typeof(h=d)?n.push(h):r.push(h);case 16:a=!0,e.next=6;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(4),c=!0,f=e.t0;case 25:if(e.prev=25,e.prev=26,a||null==l.return){e.next=30;break}return e.next=30,l.return();case 30:if(e.prev=30,!c){e.next=33;break}throw f;case 33:return e.finish(30);case 34:return e.finish(25);case 35:if(!(n.length>0)){e.next=38;break}return(0,s.default)(0===r.length),e.abrupt("return",n.join(""));case 38:return e.abrupt("return",u.concatenateArrayBuffers.apply(void 0,r));case 39:case"end":return e.stop()}}),e,null,[[4,21,25,35],[26,,30,34]])})))).apply(this,arguments)}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(5)),a=n(r(6)),i=n(r(7)),u=r(66);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f={id:"request-scheduler",throttleRequests:!0,maxRequests:6},l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(this,e),this.props=c(c({},f),t),this.requestQueue=[],this.activeRequestCount=0,this.requestMap=new Map,this.stats=new u.Stats({id:t.id}),this.stats.get("Queued Requests"),this.stats.get("Active Requests"),this.stats.get("Cancelled Requests"),this.stats.get("Queued Requests Ever"),this.stats.get("Active Requests Ever"),this._deferredUpdate=null}return(0,i.default)(e,[{key:"scheduleRequest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return 0};if(!this.props.throttleRequests)return Promise.resolve({done:function(){}});if(this.requestMap.has(e))return this.requestMap.get(e);var r={handle:e,getPriority:t},n=new Promise((function(e){return r.resolve=e,r}));return this.requestQueue.push(r),this.requestMap.set(e,n),this._issueNewRequests(),n}},{key:"_issueRequest",value:function(e){var t=this,r=e.handle,n=e.resolve,o=!1,a=function(){o||(o=!0,t.requestMap.delete(r),t.activeRequestCount--,t._issueNewRequests())};return this.activeRequestCount++,n?n({done:a}):Promise.resolve({done:a})}},{key:"_issueNewRequests",value:function(){var e=this;this._deferredUpdate||(this._deferredUpdate=setTimeout((function(){return e._issueNewRequestsAsync()}),0))}},{key:"_issueNewRequestsAsync",value:function(){this._deferredUpdate=null;var e=Math.max(this.props.maxRequests-this.activeRequestCount,0);if(0!==e){this._updateAllRequests();for(var t=0;t<e;++t)if(this.requestQueue.length>0){var r=this.requestQueue.shift();this._issueRequest(r)}}}},{key:"_updateAllRequests",value:function(){for(var e=this.requestQueue,t=0;t<e.length;++t){var r=e[t];this._updateRequest(r)||(e.splice(t,1),this.requestMap.delete(r.handle),t--)}e.sort((function(e,t){return e.priority-t.priority}))}},{key:"_updateRequest",value:function(e){return e.priority=e.getPriority(e.handle),!(e.priority<0)||(e.resolve(null),!1)}}]),e}();t.default=l},function(e,t,r){"use strict";(function(e){var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(1)),a=n(r(56)),i=n(r(5)),u=n(r(2)),s=n(r(6)),c=n(r(7)),f=n(r(29)),l=n(r(3)),p=r(60);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y={command:null,arguments:[],portArg:null,port:"auto",basePort:5e3,wait:2e3,nodeSpawnOptions:{maxBuffer:512e4},onSuccess:function(e){console.log("Started ".concat(e.options.command))}},v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,n=void 0===r?"browser-driver":r;(0,s.default)(this,t),this.id=n,this.childProcess=null,this.port=null}var r,n,i;return(0,c.default)(t,[{key:"start",value:(i=(0,u.default)(o.default.mark((function e(){var t,r,n=this,i=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},t=h(h({},y),t),(0,l.default)(t.command&&"string"==typeof t.command),this.options=t,r=(0,a.default)(t.arguments),this.port=t.port,!t.portArg){e.next=12;break}if("auto"!==this.port){e.next=11;break}return e.next=10,(0,p.getAvailablePort)(t.basePort);case 10:this.port=e.sent;case 11:r.push(t.portArg,this.port);case 12:return e.next=14,new Promise((function(e,o){try{var a=setTimeout((function(){t.onSuccess&&t.onSuccess(n),e({})}),t.wait);console.log("Spawning ".concat(t.command," ").concat(t.arguments.join(" "))),n.childProcess=f.default.spawn(t.command,r,t.spawn),n.childProcess.stderr.on("data",(function(e){console.log('Child process wrote to stderr: "'.concat(e,'".')),clearTimeout(a),o(new Error(e))})),n.childProcess.on("error",(function(e){console.log("Child process errored with ".concat(e)),clearTimeout(a),o(e)})),n.childProcess.on("close",(function(e){console.log("Child process exited with ".concat(e)),n.childProcess=null}))}catch(e){o(e)}}));case 14:return e.abrupt("return",e.sent);case 15:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"stop",value:(n=(0,u.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.childProcess&&(this.childProcess.kill(),this.childProcess=null);case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"exit",value:(r=(0,u.default)(o.default.mark((function t(){var r,n=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:0,t.prev=1,t.next=4,this.stop();case 4:e.exit(r),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0.message||t.t0),e.exit(1);case 11:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(){return r.apply(this,arguments)})}]),t}();t.default=v}).call(this,r(10))},function(e,t,r){var n=r(57),o=r(58),a=r(15),i=r(59);e.exports=function(e){return n(e)||o(e)||a(e)||i()}},function(e,t,r){var n=r(16);e.exports=function(e){if(Array.isArray(e))return n(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.getAvailablePort=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;return new Promise((function(t,r){o.default.exec("lsof -i -P -n | grep LISTEN",(function(r,n,o){if(r)t(e);else{var a=[],i=/:(\d+) \(LISTEN\)/;n.split("\n").forEach((function(e){var t=e.match(i);t&&a.push(Number(t[1]))}));for(var u=e;a.includes(u);)u++;t(u)}}))}))};var o=n(r(29))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMeshSize=function(e){var t=0;for(var r in e){var n=e[r];ArrayBuffer.isView(n)&&(t+=n.byteLength*n.BYTES_PER_ELEMENT)}return t},t.getMeshBoundingBox=function(e){if(!e||!e.POSITION)return null;var t=1/0,r=1/0,n=1/0,o=-1/0,a=-1/0,i=-1/0,u=e.POSITION.value,s=u&&u.length;if(!s)return null;for(var c=0;c<s;c+=3){var f=u[c],l=u[c+1],p=u[c+2];t=f<t?f:t,r=l<r?l:r,n=p<n?p:n,o=f>o?f:o,a=l>a?l:a,i=p>i?p:i}return[[t,r,n],[o,a,i]]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GL=void 0;t.GL={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.CompressedTextureLoader=t.CompressedTextureWorkerLoader=void 0;var o=n(r(1)),a=n(r(2)),i=n(r(5));function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var c={id:"basis",name:"CompressedTexture",version:"2.3.10",extensions:["dds","pvr"],mimeTypes:["application/octet-stream"],tests:[new Uint8Array([3,82,86,80]).buffer],binary:!0,options:{basis:{libraryPath:"libs/"}}};t.CompressedTextureWorkerLoader=c;var f,l=s(s({},c),{},{parse:(f=(0,a.default)(o.default.mark((function e(t,r){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)}))),function(e,t){return f.apply(this,arguments)})});t.CompressedTextureLoader=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompressedTextureWriter=void 0;var n={name:"Textures",extensions:["dds"],options:{texture:{format:"auto",compression:"auto",quality:"auto",mipmap:!1,flipY:!1,toolFlags:""}},encodeURLtoURL:r(65).encodeImageURLToCompressedTextureURL};t.CompressedTextureWriter=n},function(e,t,r){"use strict";(function(e){var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.encodeImageURLToCompressedTextureURL=function(e,t,r){return s.apply(this,arguments)};var o=n(r(1)),a=n(r(2)),i=r(17),u="".concat(e,"/../../..");function s(){return(s=(0,a.default)(o.default.mark((function e(t,r,n){var a,s;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=["texture-compressor","--type","s3tc","--compression","DXT1","--quality","normal","--input",t,"--output",r],s=new i.ChildProcessProxy,e.next=4,s.start({command:"npx",arguments:a,spawn:{cwd:u}});case 4:return e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}).call(this,"/")},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),e}r.r(t),r.d(t,"Stats",(function(){return s})),r.d(t,"Stat",(function(){return u})),r.d(t,"_getHiResTimestamp",(function(){return i.a}));var i=r(8),u=function(){function e(t,r){n(this,e),this.name=t,this.type=r,this.sampleSize=1,this.reset()}return a(e,[{key:"setSampleSize",value:function(e){return this.sampleSize=e,this}},{key:"incrementCount",value:function(){return this.addCount(1),this}},{key:"decrementCount",value:function(){return this.subtractCount(1),this}},{key:"addCount",value:function(e){return this._count+=e,this._samples++,this._checkSampling(),this}},{key:"subtractCount",value:function(e){return this._count-=e,this._samples++,this._checkSampling(),this}},{key:"addTime",value:function(e){return this._time+=e,this.lastTiming=e,this._samples++,this._checkSampling(),this}},{key:"timeStart",value:function(){return this._startTime=Object(i.a)(),this._timerPending=!0,this}},{key:"timeEnd",value:function(){return this._timerPending?(this.addTime(Object(i.a)()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}},{key:"getSampleAverageCount",value:function(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}},{key:"getSampleAverageTime",value:function(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}},{key:"getSampleHz",value:function(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}},{key:"getAverageCount",value:function(){return this.samples>0?this.count/this.samples:0}},{key:"getAverageTime",value:function(){return this.samples>0?this.time/this.samples:0}},{key:"getHz",value:function(){return this.time>0?this.samples/(this.time/1e3):0}},{key:"reset",value:function(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}},{key:"_checkSampling",value:function(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}]),e}(),s=function(){function e(t){var r=t.id,o=t.stats;n(this,e),this.id=r,this.stats={},this._initializeStats(o),Object.seal(this)}return a(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count";return this._getOrCreate({name:e,type:t})}},{key:"reset",value:function(){for(var e in this.stats)this.stats[e].reset();return this}},{key:"forEach",value:function(e){for(var t in this.stats)e(this.stats[t])}},{key:"getTable",value:function(){var e={};return this.forEach((function(t){e[t.name]={time:t.time||0,count:t.count||0,average:t.getAverageTime()||0,hz:t.getHz()||0}})),e}},{key:"_initializeStats",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){return e._getOrCreate(t)}))}},{key:"_getOrCreate",value:function(e){if(!e||!e.name)return null;var t=e.name,r=e.type;return this.stats[t]||(this.stats[t]=e instanceof u?e:new u(t,r)),this.stats[t]}},{key:"size",get:function(){return Object.keys(this.stats).length}}]),e}()}])})); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=30)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){e.exports=r(34)},function(e,t){function r(e,t,r,n,o,a,i){try{var u=e[a](i),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,o)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function u(e){r(i,o,a,u,s,"next",e)}function s(e){r(i,o,a,u,s,"throw",e)}u(void 0)}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw new Error(t||"loader assertion failed.")}},function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},function(e,t,r){"use strict";(function(e){function n(){var t;if("undefined"!=typeof window&&window.performance)t=window.performance.now();else if(void 0!==e&&e.hrtime){var r=e.hrtime();t=1e3*r[0]+r[1]/1e6}else t=Date.now();return t}r.d(t,"a",(function(){return n}))}).call(this,r(10))},function(e,t,r){var n=r(4);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(r,i,u):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}},function(e,t){var r,n,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,c=[],f=!1,l=-1;function p(){f&&s&&(f=!1,s.length?c=s.concat(c):l=-1,c.length&&d())}function d(){if(!f){var e=u(p);f=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,f=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||f||u(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.getTransferList=function e(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,i=n||new Set;if(t){if(a(t))i.add(t);else if(a(t.buffer))i.add(t.buffer);else if(ArrayBuffer.isView(t));else if(r&&"object"===(0,o.default)(t))for(var u in t)e(t[u],r,i)}else;return void 0===n?Array.from(i):[]};var o=n(r(4));function a(e){return!!e&&(e instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&e instanceof MessagePort||("undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas)))}},function(e,t){e.exports=function(e){var t;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}},function(e,t,r){"use strict";var n=r(9),o=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayBuffer=function(e){u.toArrayBuffer&&(e=u.toArrayBuffer(e));if(e instanceof ArrayBuffer)return e;if(ArrayBuffer.isView(e))return e.buffer;if("string"==typeof e){var t=e;return(new TextEncoder).encode(t).buffer}if(e&&"object"===(0,a.default)(e)&&e._toArrayBuffer)return e._toArrayBuffer();return(0,i.default)(!1)},t.compareArrayBuffers=function(e,t,r){if(r=r||e.byteLength,e.byteLength<r||t.byteLength<r)return!1;for(var n=new Uint8Array(e),o=new Uint8Array(t),a=0;a<n.length;++a)if(n[a]!==o[a])return!1;return!0},t.concatenateArrayBuffers=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=t.map((function(e){return e instanceof ArrayBuffer?new Uint8Array(e):e})),a=o.reduce((function(e,t){return e+t.byteLength}),0),i=new Uint8Array(a),u=0,c=s(o);try{for(c.s();!(n=c.n()).done;){var f=n.value;i.set(f,u),u+=f.byteLength}}catch(e){c.e(e)}finally{c.f()}return i.buffer},t.sliceArrayBuffer=function(e,t,r){var n=void 0!==r?new Uint8Array(e).subarray(t,t+r):new Uint8Array(e).subarray(t);return new Uint8Array(n).buffer};var a=o(r(4)),i=o(r(3)),u=n(r(26));function s(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(16);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},function(e,t,r){"use strict";var n=r(9),o=r(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return i.isBrowser}}),Object.defineProperty(t,"isWorker",{enumerable:!0,get:function(){return i.isWorker}}),Object.defineProperty(t,"nodeVersion",{enumerable:!0,get:function(){return i.nodeVersion}}),Object.defineProperty(t,"self",{enumerable:!0,get:function(){return i.self}}),Object.defineProperty(t,"window",{enumerable:!0,get:function(){return i.window}}),Object.defineProperty(t,"global",{enumerable:!0,get:function(){return i.global}}),Object.defineProperty(t,"document",{enumerable:!0,get:function(){return i.document}}),Object.defineProperty(t,"createWorker",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"validateLoaderVersion",{enumerable:!0,get:function(){return s.validateLoaderVersion}}),Object.defineProperty(t,"makeTransformIterator",{enumerable:!0,get:function(){return c.makeTransformIterator}}),Object.defineProperty(t,"getTransferList",{enumerable:!0,get:function(){return f.getTransferList}}),Object.defineProperty(t,"_WorkerFarm",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"_WorkerPool",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"_WorkerThread",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"getLibraryUrl",{enumerable:!0,get:function(){return h.getLibraryUrl}}),Object.defineProperty(t,"loadLibrary",{enumerable:!0,get:function(){return h.loadLibrary}}),Object.defineProperty(t,"parseJSON",{enumerable:!0,get:function(){return y.parseJSON}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return v.isBuffer}}),Object.defineProperty(t,"toBuffer",{enumerable:!0,get:function(){return v.toBuffer}}),Object.defineProperty(t,"bufferToArrayBuffer",{enumerable:!0,get:function(){return v.bufferToArrayBuffer}}),Object.defineProperty(t,"toArrayBuffer",{enumerable:!0,get:function(){return b.toArrayBuffer}}),Object.defineProperty(t,"sliceArrayBuffer",{enumerable:!0,get:function(){return b.sliceArrayBuffer}}),Object.defineProperty(t,"concatenateArrayBuffers",{enumerable:!0,get:function(){return b.concatenateArrayBuffers}}),Object.defineProperty(t,"compareArrayBuffers",{enumerable:!0,get:function(){return b.compareArrayBuffers}}),Object.defineProperty(t,"padTo4Bytes",{enumerable:!0,get:function(){return m.padTo4Bytes}}),Object.defineProperty(t,"copyToArray",{enumerable:!0,get:function(){return m.copyToArray}}),Object.defineProperty(t,"copyArrayBuffer",{enumerable:!0,get:function(){return m.copyArrayBuffer}}),Object.defineProperty(t,"getZeroOffsetArrayBuffer",{enumerable:!0,get:function(){return m.getZeroOffsetArrayBuffer}}),Object.defineProperty(t,"copyPaddedArrayBufferToDataView",{enumerable:!0,get:function(){return g.copyPaddedArrayBufferToDataView}}),Object.defineProperty(t,"copyPaddedStringToDataView",{enumerable:!0,get:function(){return g.copyPaddedStringToDataView}}),Object.defineProperty(t,"padStringToByteAlignment",{enumerable:!0,get:function(){return w.padStringToByteAlignment}}),Object.defineProperty(t,"copyStringToDataView",{enumerable:!0,get:function(){return w.copyStringToDataView}}),Object.defineProperty(t,"copyBinaryToDataView",{enumerable:!0,get:function(){return w.copyBinaryToDataView}}),Object.defineProperty(t,"getFirstCharacters",{enumerable:!0,get:function(){return x.getFirstCharacters}}),Object.defineProperty(t,"getMagicString",{enumerable:!0,get:function(){return x.getMagicString}}),Object.defineProperty(t,"setPathPrefix",{enumerable:!0,get:function(){return P.setPathPrefix}}),Object.defineProperty(t,"getPathPrefix",{enumerable:!0,get:function(){return P.getPathPrefix}}),Object.defineProperty(t,"resolvePath",{enumerable:!0,get:function(){return P.resolvePath}}),Object.defineProperty(t,"_addAliases",{enumerable:!0,get:function(){return _.addAliases}}),Object.defineProperty(t,"makeTextEncoderIterator",{enumerable:!0,get:function(){return k.makeTextEncoderIterator}}),Object.defineProperty(t,"makeTextDecoderIterator",{enumerable:!0,get:function(){return k.makeTextDecoderIterator}}),Object.defineProperty(t,"makeLineIterator",{enumerable:!0,get:function(){return k.makeLineIterator}}),Object.defineProperty(t,"makeNumberedLineIterator",{enumerable:!0,get:function(){return k.makeNumberedLineIterator}}),Object.defineProperty(t,"forEach",{enumerable:!0,get:function(){return j.forEach}}),Object.defineProperty(t,"concatenateChunksAsync",{enumerable:!0,get:function(){return j.concatenateChunksAsync}}),Object.defineProperty(t,"RequestScheduler",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"ChildProcessProxy",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"_getMeshSize",{enumerable:!0,get:function(){return E.getMeshSize}}),Object.defineProperty(t,"getMeshBoundingBox",{enumerable:!0,get:function(){return E.getMeshBoundingBox}}),t.path=void 0;var a=o(r(3)),i=r(18),u=o(r(40)),s=r(19),c=r(41),f=r(11),l=o(r(43)),p=o(r(23)),d=o(r(24)),h=r(45),y=r(47),v=r(48),b=r(13),m=r(27),g=r(49),w=r(50),x=r(25),O=n(r(51));t.path=O;var P=r(28),_=r(28),k=r(52),j=r(53),S=o(r(54)),T=o(r(55)),E=r(61)},function(e,t,r){"use strict";(function(e,n){var o=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.nodeVersion=t.isWorker=t.isBrowser=t.document=t.global=t.window=t.self=void 0;var a=o(r(4)),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document},u=i.self||i.window||i.global;t.self=u;var s=i.window||i.self||i.global;t.window=s;var c=i.global||i.self||i.window;t.global=c;var f=i.document||{};t.document=f;var l="object"!==(void 0===n?"undefined":(0,a.default)(n))||"[object process]"!==String(n)||n.browser;t.isBrowser=l;var p="function"==typeof importScripts;t.isWorker=p;var d=void 0!==n&&n.version&&n.version.match(/v([0-9]*)/),h=d&&parseFloat(d[1])||0;t.nodeVersion=h}).call(this,r(14),r(10))},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.validateLoaderVersion=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"2.3.11";(0,o.default)(e,"no loader provided");var r=e.version;if(!t||!r)return;t=a(t),r=a(r)};var o=n(r(3));function a(e){var t=e.split(".").map(Number);return{major:t[0],minor:t[1]}}},function(e,t,r){var n=r(21);e.exports=function(e){return new n(e)}},function(e,t){e.exports=function(e){this.wrapped=e}},function(e,t,r){var n=r(42);e.exports=function(e){return function(){return new n(e.apply(this,arguments))}}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(1)),a=n(r(2)),i=n(r(6)),u=n(r(7)),s=n(r(24)),c=function(){function e(t){var r=t.source,n=t.name,o=void 0===n?"unnamed":n,a=t.maxConcurrency,u=void 0===a?1:a,s=t.onMessage,c=t.onDebug,f=void 0===c?function(){}:c,l=t.reuseWorkers,p=void 0===l||l;(0,i.default)(this,e),this.source=r,this.name=o,this.maxConcurrency=u,this.onMessage=s,this.onDebug=f,this.jobQueue=[],this.idleQueue=[],this.count=0,this.isDestroyed=!1,this.reuseWorkers=p}var t;return(0,u.default)(e,[{key:"destroy",value:function(){this.idleQueue.forEach((function(e){return e.destroy()})),this.isDestroyed=!0}},{key:"process",value:function(e,t){var r=this;return new Promise((function(n,o){r.jobQueue.push({data:e,jobName:t,resolve:n,reject:o}),r._startQueuedJob()}))}},{key:"_startQueuedJob",value:(t=(0,a.default)(o.default.mark((function e(){var t,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.jobQueue.length){e.next=2;break}return e.abrupt("return");case 2:if(t=this._getAvailableWorker()){e.next=5;break}return e.abrupt("return");case 5:return r=this.jobQueue.shift(),this.onDebug({message:"processing",worker:t.name,job:r.jobName,backlog:this.jobQueue.length}),e.prev=7,e.t0=r,e.next=11,t.process(r.data);case 11:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=18;break;case 15:e.prev=15,e.t2=e.catch(7),r.reject(e.t2);case 18:return e.prev=18,this._onWorkerDone(t),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[7,15,18,21]])}))),function(){return t.apply(this,arguments)})},{key:"_onWorkerDone",value:function(e){this.isDestroyed?e.destroy():(this.reuseWorkers?this.idleQueue.push(e):(e.destroy(),this.count--),this._startQueuedJob())}},{key:"_getAvailableWorker",value:function(){if(this.idleQueue.length>0)return this.idleQueue.shift();if(this.count<this.maxConcurrency){this.count++;var e="".concat(this.name.toLowerCase()," (#").concat(this.count," of ").concat(this.maxConcurrency,")");return new s.default({source:this.source,onMessage:this.onMessage,name:e})}return null}}]),e}();t.default=c},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(1)),a=n(r(2)),i=n(r(6)),u=n(r(7)),s=r(44),c=r(11),f=0;function l(e){var t=e.data;(0,e.resolve)(t)}var p=function(){function e(t){var r=t.source,n=t.name,o=void 0===n?"web-worker-".concat(f++):n,a=t.onMessage;(0,i.default)(this,e);var u=(0,s.getWorkerURL)(r,o);this.worker=new Worker(u,{name:o}),this.name=o,this.onMessage=a||l}var t;return(0,u.default)(e,[{key:"process",value:(t=(0,a.default)(o.default.mark((function e(t){var r=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){r.worker.onmessage=function(t){r.onMessage({worker:r.worker,data:t.data,resolve:e,reject:n})},r.worker.onerror=function(e){var t="".concat(r.name,": WorkerThread.process() failed");e.message&&(t+=" ".concat(e.message," ").concat(e.filename,":").concat(e.lineno,":").concat(e.colno));var o=new Error(t);console.error(e),n(o)};var o=(0,c.getTransferList)(t);r.worker.postMessage(t,o)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"destroy",value:function(){this.worker.terminate(),this.worker=null}}]),e}();t.default=p},function(e,t,r){"use strict";function n(e,t,r){if(e.byteLength<=t+r)return"";for(var n=new DataView(e),o="",a=0;a<r;a++)o+=String.fromCharCode(n.getUint8(t+a));return o}Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstCharacters=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof e)return e.slice(0,t);if(ArrayBuffer.isView(e))return n(e.buffer,e.byteOffset,t);if(e instanceof ArrayBuffer){var r=0;return n(e,r,t)}return""},t.getMagicString=n},function(e,t){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padTo4Bytes=o,t.getZeroOffsetArrayBuffer=function(e,t,r){return(0,n.sliceArrayBuffer)(e,t,r)},t.copyArrayBuffer=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.byteLength,o=new Uint8Array(e,r,n),a=new Uint8Array(t);return o.set(a),e},t.copyToArray=function(e,t,r){var n;if(e instanceof ArrayBuffer)n=new Uint8Array(e);else{var a=e.byteOffset,i=e.byteLength;n=new Uint8Array(e.buffer,a,i)}return t.set(n,r),r+o(n.byteLength)};var n=r(13);function o(e){return e+3&-4}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPathPrefix=function(e){n=e},t.getPathPrefix=function(){return n},t.addAliases=function(e){Object.assign(o,e)},t.resolvePath=function(e){for(var t in o)if(e.startsWith(t)){var r=o[t];e=e.replace(t,r)}e.startsWith("http://")||e.startsWith("https://")||(e="".concat(n).concat(e));return e};var n="",o={}},function(e,t){},function(e,t,r){"use strict";(function(t){var n=r(31),o="undefined"==typeof window?t:window;o.loaders=o.loaders||{},e.exports=Object.assign(o.loaders,n)}).call(this,r(14))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BasisLoader",{enumerable:!0,get:function(){return n.BasisLoader}}),Object.defineProperty(t,"BasisWorkerLoader",{enumerable:!0,get:function(){return n.BasisWorkerLoader}}),Object.defineProperty(t,"_CompressedTextureLoader",{enumerable:!0,get:function(){return o.CompressedTextureLoader}}),Object.defineProperty(t,"_CompressedTextureWriter",{enumerable:!0,get:function(){return a.CompressedTextureWriter}});var n=r(32),o=r(63),a=r(64)},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.BasisLoader=t.BasisWorkerLoader=void 0;var o=n(r(5)),a=n(r(33));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={id:"basis",name:"Basis",version:"2.3.11",extensions:["basis"],mimeTypes:["application/octet-stream"],tests:["sB"],binary:!0,options:{basis:{format:"rgb565",libraryPath:"libs/",workerUrl:"https://unpkg.com/@loaders.gl/basis@".concat("2.3.11","/dist/basis-loader.worker.js")}}};t.BasisWorkerLoader=s;var c=u(u({},s),{},{parse:a.default});t.BasisLoader=c},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return f.apply(this,arguments)};var o=n(r(1)),a=n(r(4)),i=n(r(2)),u=r(35),s=r(62),c={etc1:{basisFormat:0,compressed:!0},etc2:{basisFormat:1,compressed:!0},bc1:{basisFormat:2,compressed:!0,format:s.GL.COMPRESSED_RGB_S3TC_DXT1_EXT},bc3:{basisFormat:3,compressed:!0,format:s.GL.COMPRESSED_RGBA_S3TC_DXT5_EXT},bc4:{basisFormat:4,compressed:!0},bc5:{basisFormat:5,compressed:!0},"bc7-m6-opaque-only":{basisFormat:6,compressed:!0},"bc7-m5":{basisFormat:7,compressed:!0},"pvrtc1-4-rgb":{basisFormat:8,compressed:!0},"pvrtc1-4-rgba":{basisFormat:9,compressed:!0},"astc-4x4":{basisFormat:10,compressed:!0},"atc-rgb":{basisFormat:11,compressed:!0},"atc-rgba-interpolated-alpha":{basisFormat:12,compressed:!0},rgba32:{basisFormat:13,compressed:!1},rgb565:{basisFormat:14,compressed:!1},bgr565:{basisFormat:15,compressed:!1},rgba4444:{basisFormat:16,compressed:!1}};function f(){return(f=(0,i.default)(o.default.mark((function e(t,r){var n,a,i,s,c,f,p,d,h;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.loadBasisModule)(r);case 2:if(n=e.sent,a=n.BasisFile,i=new a(new Uint8Array(t)),e.prev=5,i.startTranscoding()){e.next=8;break}return e.abrupt("return",null);case 8:for(s=i.getNumImages(),c=[],f=0;f<s;f++){for(p=i.getNumLevels(f),d=[],h=0;h<p;h++)d.push(l(i,f,h,r));c.push(d)}return e.abrupt("return",c);case 12:return e.prev=12,i.close(),i.delete(),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[5,,12,16]])})))).apply(this,arguments)}function l(e,t,r,n){var o=e.getImageWidth(t,r),i=e.getImageHeight(t,r),u=e.getHasAlpha(),s=function(e,t){var r=e&&e.basis&&e.basis.format;return"object"===(0,a.default)(r)&&(r=t?r.alpha:r.noAlpha),r=r.toLowerCase(),c[r]}(n,u),f=s.compressed,l=s.format,p=s.basisFormat,d=e.getImageTranscodedSizeInBytes(t,r,p),h=new Uint8Array(d);return e.transcodeImage(h,t,r,p,0,0)?{width:o,height:i,data:h,compressed:f,hasAlpha:u,format:l}:null}},function(e,t,r){var n=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof l?t:l,a=Object.create(o.prototype),i=new P(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return k()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=w(i,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=c(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(e,r,i),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function l(){}function p(){}function d(){}var h={};h[o]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(_([])));v&&v!==t&&r.call(v,o)&&(h=v);var b=d.prototype=l.prototype=Object.create(h);function m(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){var n;this._invoke=function(o,a){function i(){return new t((function(n,i){!function n(o,a,i,u){var s=c(e[o],e,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(l).then((function(e){f.value=e,i(f)}),(function(e){return n("throw",e,i,u)}))}u(s.arg)}(o,a,n,i)}))}return n=n?n.then(i,i):i()}}function w(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=c(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function _(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=b.constructor=d,d.constructor=p,p.displayName=u(d,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,i,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},m(g.prototype),g.prototype[a]=function(){return this},e.AsyncIterator=g,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new g(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},m(b),u(b,i,"Generator"),b[o]=function(){return this},b.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=_,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:_(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.loadBasisModule=function(e){return c.apply(this,arguments)};var o,a=n(r(36)),i=n(r(1)),u=n(r(2)),s=r(17);function c(){return(c=(0,u.default)(i.default.mark((function e(t){var r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t.modules||{}).basis){e.next=3;break}return e.abrupt("return",r.basis);case 3:return o=o||f(t),e.next=6,o;case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return l.apply(this,arguments)}function l(){return(l=(0,u.default)(i.default.mark((function e(t){var r,n,o,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=null,n=null,e.t0=Promise,e.next=5,(0,s.loadLibrary)("basis_transcoder.js","basis",t);case 5:return e.t1=e.sent,e.next=8,(0,s.loadLibrary)("basis_transcoder.wasm","basis",t);case 8:return e.t2=e.sent,e.t3=[e.t1,e.t2],e.next=12,e.t0.all.call(e.t0,e.t3);case 12:return o=e.sent,u=(0,a.default)(o,2),r=u[0],n=u[1],r=r||s.global.BASIS,e.next=19,p(r,n);case 19:return e.abrupt("return",e.sent);case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,t){var r={};return t&&(r.wasmBinary=t),new Promise((function(t){e(r).then((function(e){var r=e.BasisFile;(0,e.initializeBasis)(),t({BasisFile:r})}))}))}},function(e,t,r){var n=r(37),o=r(38),a=r(15),i=r(39);e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("undefined"==typeof self)return;var t=0,r=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(o,a){var i=t++;self.addEventListener("message",(function e(t){var r=t.data;if(r&&r.id===i)switch(r.type){case"parse-done":self.removeEventListener("message",e),o(r.result);break;case"parse-error":self.removeEventListener("message",e),a(r.message)}})),self.postMessage({type:"parse",id:i,arraybuffer:e,options:r,url:n},[e])}))};self.onmessage=function(){var t=(0,i.default)(a.default.mark((function t(n){var o,i,c,f,p,h,y,v,b,m;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.data,t.prev=1,d(o,e.name)){t.next=4;break}return t.abrupt("return");case 4:return(0,s.validateLoaderVersion)(e,o.source.split("@")[1]),i=o.arraybuffer,c=o.byteOffset,f=void 0===c?0:c,p=o.byteLength,h=void 0===p?0:p,y=o.options,v=void 0===y?{}:y,t.next=8,l({loader:e,arraybuffer:i,byteOffset:f,byteLength:h,options:v,context:{parse:r}});case 8:b=t.sent,m=(0,u.getTransferList)(b),self.postMessage({type:"done",result:b},m),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),self.postMessage({type:"error",message:t.t0.message});case 16:case"end":return t.stop()}}),t,null,[[1,13]])})));return function(e){return t.apply(this,arguments)}}()};var o=n(r(5)),a=n(r(1)),i=n(r(2)),u=r(11),s=r(19);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e){return p.apply(this,arguments)}function p(){return(p=(0,i.default)(a.default.mark((function e(t){var r,n,o,i,u,s,c;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.loader,n=t.arraybuffer,t.byteOffset,t.byteLength,o=t.options,i=t.context,!r.parseSync&&!r.parse){e.next=6;break}u=n,s=r.parseSync||r.parse,e.next=13;break;case 6:if(!r.parseTextSync){e.next=12;break}c=new TextDecoder,u=c.decode(n),s=r.parseTextSync,e.next=13;break;case 12:throw new Error("Could not load data with ".concat(r.name," loader"));case 13:return o=f(f({},o),{},{modules:r&&r.options&&r.options.modules||{},worker:!1}),e.next=16,s(u,f({},o),i,r);case 16:return e.abrupt("return",e.sent);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e,t){return e&&"parse"===e.type&&e.source&&e.source.startsWith("loaders.gl")}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.makeTransformIterator=function(e,t,r){return s.apply(this,arguments)};var o=n(r(1)),a=n(r(20)),i=n(r(22)),u=n(r(12));function s(){return(s=(0,i.default)(o.default.mark((function e(t,r,n){var i,s,c,f,l,p,d,h,y,v;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=new r(n),s=!0,c=!1,e.prev=3,l=(0,u.default)(t);case 5:return e.next=7,(0,a.default)(l.next());case 7:return p=e.sent,s=p.done,e.next=11,(0,a.default)(p.value);case 11:if(d=e.sent,s){e.next=23;break}return h=d,e.next=16,(0,a.default)(i.write(h));case 16:if(!(y=e.sent)){e.next=20;break}return e.next=20,y;case 20:s=!0,e.next=5;break;case 23:e.next=29;break;case 25:e.prev=25,e.t0=e.catch(3),c=!0,f=e.t0;case 29:if(e.prev=29,e.prev=30,s||null==l.return){e.next=34;break}return e.next=34,(0,a.default)(l.return());case 34:if(e.prev=34,!c){e.next=37;break}throw f;case 37:return e.finish(34);case 38:return e.finish(29);case 39:return e.next=41,(0,a.default)(i.end());case 41:if(!(v=e.sent)){e.next=45;break}return e.next=45,v;case 45:case"end":return e.stop()}}),e,null,[[3,25,29,39],[30,,34,38]])})))).apply(this,arguments)}},function(e,t,r){var n=r(21);function o(e){var t,r;function o(t,r){try{var i=e[t](r),u=i.value,s=u instanceof n;Promise.resolve(s?u.wrapped:u).then((function(e){s?o("return"===t?"return":"next",e):a(i.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){a("throw",e)}}function a(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise((function(a,i){var u={key:e,arg:n,resolve:a,reject:i,next:null};r?r=r.next=u:(t=r=u,o(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(o.prototype[Symbol.asyncIterator]=function(){return this}),o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},e.exports=o},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(1)),a=n(r(2)),i=n(r(6)),u=n(r(7)),s=n(r(23)),c=function(){function e(t){var r=t.maxConcurrency,n=void 0===r?5:r,o=t.onMessage,a=void 0===o?null:o,u=t.onDebug,s=void 0===u?function(){}:u,c=t.reuseWorkers,f=void 0===c||c;(0,i.default)(this,e),this.maxConcurrency=n,this.onMessage=a,this.onDebug=s,this.workerPools=new Map,this.reuseWorkers=f}var t;return(0,u.default)(e,null,[{key:"isSupported",value:function(){return"undefined"!=typeof Worker}}]),(0,u.default)(e,[{key:"setProps",value:function(e){"maxConcurrency"in e&&(this.maxConcurrency=e.maxConcurrency),"onDebug"in e&&(this.onDebug=e.onDebug),"reuseWorkers"in e&&(this.reuseWorkers=e.reuseWorkers)}},{key:"destroy",value:function(){this.workerPools.forEach((function(e){return e.destroy()}))}},{key:"process",value:(t=(0,a.default)(o.default.mark((function e(t,r,n){var a;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this._getWorkerPool(t,r),e.abrupt("return",a.process(n));case 2:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"_getWorkerPool",value:function(e,t){var r=this.workerPools.get(t);return r||(r=new s.default({source:e,name:t,onMessage:f.bind(null,this.onMessage),maxConcurrency:this.maxConcurrency,onDebug:this.onDebug,reuseWorkers:this.reuseWorkers}),this.workerPools.set(t,r)),r}}]),e}();function f(e,t){var r=t.worker,n=t.data,o=t.resolve,a=t.reject;if(e)e({worker:r,data:n,resolve:o,reject:a});else switch(n.type){case"done":o(n.result);break;case"error":a(n.message)}}t.default=c},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.getWorkerURL=function(e){if((0,o.default)("string"==typeof e,"worker source"),e.startsWith("url(")&&e.endsWith(")")){var t=e.match(/^url\((.*)\)$/)[1];if(t&&!t.startsWith("http"))return t;e=i(t)}var r=a.get(e);if(!r){var n=new Blob([e],{type:"application/javascript"});r=URL.createObjectURL(n),a.set(e,r)}return r};var o=n(r(3)),a=new Map;function i(e){return"try {\n importScripts('".concat(e,"');\n} catch (error) {\n console.error(error);\n}")}},function(e,t,r){"use strict";var n=r(9),o=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.loadLibrary=function(e){return l.apply(this,arguments)},t.getLibraryUrl=p;var a=o(r(1)),i=o(r(2)),u=r(18),s=n(r(46)),c=o(r(3)),f={};function l(){return(l=(0,i.default)(a.default.mark((function e(t){var r,n,o=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:null,n=o.length>2&&void 0!==o[2]?o[2]:{},r&&(t=p(t,r,n)),f[t]=f[t]||d(t),e.next=6,f[t];case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,t,r){var n=r.modules||{};return n[e]?n[e]:u.isBrowser?r.CDN?((0,c.default)(r.CDN.startsWith("http")),"".concat(r.CDN,"/").concat(t,"@").concat("2.3.11","/dist/libs/").concat(e)):u.isWorker?"../src/libs/".concat(e):"modules/".concat(t,"/src/libs/").concat(e):"modules/".concat(t,"/dist/libs/").concat(e)}function d(e){return h.apply(this,arguments)}function h(){return(h=(0,i.default)(a.default.mark((function e(t){var r,n,o;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.endsWith("wasm")){e.next=7;break}return e.next=3,fetch(t);case 3:return r=e.sent,e.next=6,r.arrayBuffer();case 6:return e.abrupt("return",e.sent);case 7:if(u.isBrowser){e.next=9;break}return e.abrupt("return",s.requireFromFile&&s.requireFromFile(t));case 9:if(!u.isWorker){e.next=11;break}return e.abrupt("return",importScripts(t));case 11:return e.next=13,fetch(t);case 13:return n=e.sent,e.next=16,n.text();case 16:return o=e.sent,e.abrupt("return",y(o,t));case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e,t){if(!u.isBrowser)return s.requireFromString&&s.requireFromString(e,t);if(u.isWorker)return eval.call(u.global,e),null;var r=document.createElement("script");r.id=t;try{r.appendChild(document.createTextNode(e))}catch(t){r.text=e}return document.body.appendChild(r),null}},function(e,t){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=function(e){try{return JSON.parse(e)}catch(t){throw new Error('Failed to parse JSON from data starting with "'.concat((0,n.getFirstCharacters)(e),'"'))}};var n=r(25)},function(e,t,r){"use strict";var n=r(9),o=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return e&&"object"===(0,a.default)(e)&&e.isBuffer},t.toBuffer=function(e){return i.toBuffer?i.toBuffer(e):e},t.bufferToArrayBuffer=function(e){if(i.toArrayBuffer)return i.toArrayBuffer(e);return e};var a=o(r(4)),i=n(r(26))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.copyPaddedArrayBufferToDataView=o,t.copyPaddedStringToDataView=function(e,t,r){var n=(new TextEncoder).encode(r);return t=o(e,t,n)};var n=r(27);function o(e,t,r){var o=(0,n.padTo4Bytes)(r.byteLength),a=o-r.byteLength;if(e){var i=new Uint8Array(e.buffer,e.byteOffset+t,r.byteLength),u=new Uint8Array(r);i.set(u);for(var s=0;s<a;++s)e.setUint8(t+r.byteLength+s,32)}return t+=o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padStringToByteAlignment=function(e,t){for(var r=e.length,n=Math.ceil(r/t)*t-r,o="",a=0;a<n;++a)o+=" ";return e+o},t.copyStringToDataView=function(e,t,r,n){if(e)for(var o=0;o<n;o++)e.setUint8(t+o,r.charCodeAt(o));return t+n},t.copyBinaryToDataView=function(e,t,r,n){if(e)for(var o=0;o<n;o++)e.setUint8(t+o,r[o]),t++;return t+n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dirname=function(e){var t=e&&e.lastIndexOf("/");return t>=0?e.substr(0,t):""}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.makeTextDecoderIterator=function(e,t){return s.apply(this,arguments)},t.makeTextEncoderIterator=function(e,t){return c.apply(this,arguments)},t.makeLineIterator=function(e){return f.apply(this,arguments)},t.makeNumberedLineIterator=function(e){return l.apply(this,arguments)};var o=n(r(1)),a=n(r(20)),i=n(r(22)),u=n(r(12));function s(){return(s=(0,i.default)(o.default.mark((function e(t,r){var n,i,s,c,f,l,p,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new TextDecoder(r),i=!0,s=!1,e.prev=3,f=(0,u.default)(t);case 5:return e.next=7,(0,a.default)(f.next());case 7:return l=e.sent,i=l.done,e.next=11,(0,a.default)(l.value);case 11:if(p=e.sent,i){e.next=19;break}return d=p,e.next=16,"string"==typeof d?d:n.decode(d,{stream:!0});case 16:i=!0,e.next=5;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(3),s=!0,c=e.t0;case 25:if(e.prev=25,e.prev=26,i||null==f.return){e.next=30;break}return e.next=30,(0,a.default)(f.return());case 30:if(e.prev=30,!s){e.next=33;break}throw c;case 33:return e.finish(30);case 34:return e.finish(25);case 35:case"end":return e.stop()}}),e,null,[[3,21,25,35],[26,,30,34]])})))).apply(this,arguments)}function c(){return(c=(0,i.default)(o.default.mark((function e(t,r){var n,i,s,c,f,l,p,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new TextEncoder,i=!0,s=!1,e.prev=3,f=(0,u.default)(t);case 5:return e.next=7,(0,a.default)(f.next());case 7:return l=e.sent,i=l.done,e.next=11,(0,a.default)(l.value);case 11:if(p=e.sent,i){e.next=19;break}return d=p,e.next=16,"string"==typeof d?n.encode(d):d;case 16:i=!0,e.next=5;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(3),s=!0,c=e.t0;case 25:if(e.prev=25,e.prev=26,i||null==f.return){e.next=30;break}return e.next=30,(0,a.default)(f.return());case 30:if(e.prev=30,!s){e.next=33;break}throw c;case 33:return e.finish(30);case 34:return e.finish(25);case 35:case"end":return e.stop()}}),e,null,[[3,21,25,35],[26,,30,34]])})))).apply(this,arguments)}function f(){return(f=(0,i.default)(o.default.mark((function e(t){var r,n,i,s,c,f,l,p,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r="",n=!0,i=!1,e.prev=3,c=(0,u.default)(t);case 5:return e.next=7,(0,a.default)(c.next());case 7:return f=e.sent,n=f.done,e.next=11,(0,a.default)(f.value);case 11:if(l=e.sent,n){e.next=26;break}r+=l,p=void 0;case 16:if(!((p=r.indexOf("\n"))>=0)){e.next=23;break}return d=r.slice(0,p+1),r=r.slice(p+1),e.next=21,d;case 21:e.next=16;break;case 23:n=!0,e.next=5;break;case 26:e.next=32;break;case 28:e.prev=28,e.t0=e.catch(3),i=!0,s=e.t0;case 32:if(e.prev=32,e.prev=33,n||null==c.return){e.next=37;break}return e.next=37,(0,a.default)(c.return());case 37:if(e.prev=37,!i){e.next=40;break}throw s;case 40:return e.finish(37);case 41:return e.finish(32);case 42:if(!(r.length>0)){e.next=45;break}return e.next=45,r;case 45:case"end":return e.stop()}}),e,null,[[3,28,32,42],[33,,37,41]])})))).apply(this,arguments)}function l(){return(l=(0,i.default)(o.default.mark((function e(t){var r,n,i,s,c,f,l,p;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=1,n=!0,i=!1,e.prev=3,c=(0,u.default)(t);case 5:return e.next=7,(0,a.default)(c.next());case 7:return f=e.sent,n=f.done,e.next=11,(0,a.default)(f.value);case 11:if(l=e.sent,n){e.next=20;break}return p=l,e.next=16,{counter:r,line:p};case 16:r++;case 17:n=!0,e.next=5;break;case 20:e.next=26;break;case 22:e.prev=22,e.t0=e.catch(3),i=!0,s=e.t0;case 26:if(e.prev=26,e.prev=27,n||null==c.return){e.next=31;break}return e.next=31,(0,a.default)(c.return());case 31:if(e.prev=31,!i){e.next=34;break}throw s;case 34:return e.finish(31);case 35:return e.finish(26);case 36:case"end":return e.stop()}}),e,null,[[3,22,26,36],[27,,31,35]])})))).apply(this,arguments)}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=function(e,t){return c.apply(this,arguments)},t.concatenateChunksAsync=function(e){return f.apply(this,arguments)};var o=n(r(1)),a=n(r(2)),i=n(r(12)),u=r(13),s=n(r(3));function c(){return(c=(0,a.default)(o.default.mark((function e(t,r){var n,a,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,t.next();case 3:if(n=e.sent,a=n.done,i=n.value,!a){e.next=9;break}return t.return(),e.abrupt("return");case 9:if(!r(i)){e.next=12;break}return e.abrupt("return");case 12:e.next=0;break;case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){return(f=(0,a.default)(o.default.mark((function e(t){var r,n,a,c,f,l,p,d,h;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],n=[],a=!0,c=!1,e.prev=4,l=(0,i.default)(t);case 6:return e.next=8,l.next();case 8:return p=e.sent,a=p.done,e.next=12,p.value;case 12:if(d=e.sent,a){e.next=19;break}"string"==typeof(h=d)?n.push(h):r.push(h);case 16:a=!0,e.next=6;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(4),c=!0,f=e.t0;case 25:if(e.prev=25,e.prev=26,a||null==l.return){e.next=30;break}return e.next=30,l.return();case 30:if(e.prev=30,!c){e.next=33;break}throw f;case 33:return e.finish(30);case 34:return e.finish(25);case 35:if(!(n.length>0)){e.next=38;break}return(0,s.default)(0===r.length),e.abrupt("return",n.join(""));case 38:return e.abrupt("return",u.concatenateArrayBuffers.apply(void 0,r));case 39:case"end":return e.stop()}}),e,null,[[4,21,25,35],[26,,30,34]])})))).apply(this,arguments)}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(5)),a=n(r(6)),i=n(r(7)),u=r(66);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f={id:"request-scheduler",throttleRequests:!0,maxRequests:6},l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(this,e),this.props=c(c({},f),t),this.requestQueue=[],this.activeRequestCount=0,this.requestMap=new Map,this.stats=new u.Stats({id:t.id}),this.stats.get("Queued Requests"),this.stats.get("Active Requests"),this.stats.get("Cancelled Requests"),this.stats.get("Queued Requests Ever"),this.stats.get("Active Requests Ever"),this._deferredUpdate=null}return(0,i.default)(e,[{key:"scheduleRequest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return 0};if(!this.props.throttleRequests)return Promise.resolve({done:function(){}});if(this.requestMap.has(e))return this.requestMap.get(e);var r={handle:e,getPriority:t},n=new Promise((function(e){return r.resolve=e,r}));return this.requestQueue.push(r),this.requestMap.set(e,n),this._issueNewRequests(),n}},{key:"_issueRequest",value:function(e){var t=this,r=e.handle,n=e.resolve,o=!1,a=function(){o||(o=!0,t.requestMap.delete(r),t.activeRequestCount--,t._issueNewRequests())};return this.activeRequestCount++,n?n({done:a}):Promise.resolve({done:a})}},{key:"_issueNewRequests",value:function(){var e=this;this._deferredUpdate||(this._deferredUpdate=setTimeout((function(){return e._issueNewRequestsAsync()}),0))}},{key:"_issueNewRequestsAsync",value:function(){this._deferredUpdate=null;var e=Math.max(this.props.maxRequests-this.activeRequestCount,0);if(0!==e){this._updateAllRequests();for(var t=0;t<e;++t)if(this.requestQueue.length>0){var r=this.requestQueue.shift();this._issueRequest(r)}}}},{key:"_updateAllRequests",value:function(){for(var e=this.requestQueue,t=0;t<e.length;++t){var r=e[t];this._updateRequest(r)||(e.splice(t,1),this.requestMap.delete(r.handle),t--)}e.sort((function(e,t){return e.priority-t.priority}))}},{key:"_updateRequest",value:function(e){return e.priority=e.getPriority(e.handle),!(e.priority<0)||(e.resolve(null),!1)}}]),e}();t.default=l},function(e,t,r){"use strict";(function(e){var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(1)),a=n(r(56)),i=n(r(5)),u=n(r(2)),s=n(r(6)),c=n(r(7)),f=n(r(29)),l=n(r(3)),p=r(60);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y={command:null,arguments:[],portArg:null,port:"auto",basePort:5e3,wait:2e3,nodeSpawnOptions:{maxBuffer:512e4},onSuccess:function(e){console.log("Started ".concat(e.options.command))}},v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,n=void 0===r?"browser-driver":r;(0,s.default)(this,t),this.id=n,this.childProcess=null,this.port=null}var r,n,i;return(0,c.default)(t,[{key:"start",value:(i=(0,u.default)(o.default.mark((function e(){var t,r,n=this,i=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},t=h(h({},y),t),(0,l.default)(t.command&&"string"==typeof t.command),this.options=t,r=(0,a.default)(t.arguments),this.port=t.port,!t.portArg){e.next=12;break}if("auto"!==this.port){e.next=11;break}return e.next=10,(0,p.getAvailablePort)(t.basePort);case 10:this.port=e.sent;case 11:r.push(t.portArg,this.port);case 12:return e.next=14,new Promise((function(e,o){try{var a=setTimeout((function(){t.onSuccess&&t.onSuccess(n),e({})}),t.wait);console.log("Spawning ".concat(t.command," ").concat(t.arguments.join(" "))),n.childProcess=f.default.spawn(t.command,r,t.spawn),n.childProcess.stderr.on("data",(function(e){console.log('Child process wrote to stderr: "'.concat(e,'".')),clearTimeout(a),o(new Error(e))})),n.childProcess.on("error",(function(e){console.log("Child process errored with ".concat(e)),clearTimeout(a),o(e)})),n.childProcess.on("close",(function(e){console.log("Child process exited with ".concat(e)),n.childProcess=null}))}catch(e){o(e)}}));case 14:return e.abrupt("return",e.sent);case 15:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"stop",value:(n=(0,u.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.childProcess&&(this.childProcess.kill(),this.childProcess=null);case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"exit",value:(r=(0,u.default)(o.default.mark((function t(){var r,n=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:0,t.prev=1,t.next=4,this.stop();case 4:e.exit(r),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0.message||t.t0),e.exit(1);case 11:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(){return r.apply(this,arguments)})}]),t}();t.default=v}).call(this,r(10))},function(e,t,r){var n=r(57),o=r(58),a=r(15),i=r(59);e.exports=function(e){return n(e)||o(e)||a(e)||i()}},function(e,t,r){var n=r(16);e.exports=function(e){if(Array.isArray(e))return n(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.getAvailablePort=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;return new Promise((function(t,r){o.default.exec("lsof -i -P -n | grep LISTEN",(function(r,n,o){if(r)t(e);else{var a=[],i=/:(\d+) \(LISTEN\)/;n.split("\n").forEach((function(e){var t=e.match(i);t&&a.push(Number(t[1]))}));for(var u=e;a.includes(u);)u++;t(u)}}))}))};var o=n(r(29))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMeshSize=function(e){var t=0;for(var r in e){var n=e[r];ArrayBuffer.isView(n)&&(t+=n.byteLength*n.BYTES_PER_ELEMENT)}return t},t.getMeshBoundingBox=function(e){if(!e||!e.POSITION)return null;var t=1/0,r=1/0,n=1/0,o=-1/0,a=-1/0,i=-1/0,u=e.POSITION.value,s=u&&u.length;if(!s)return null;for(var c=0;c<s;c+=3){var f=u[c],l=u[c+1],p=u[c+2];t=f<t?f:t,r=l<r?l:r,n=p<n?p:n,o=f>o?f:o,a=l>a?l:a,i=p>i?p:i}return[[t,r,n],[o,a,i]]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GL=void 0;t.GL={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.CompressedTextureLoader=t.CompressedTextureWorkerLoader=void 0;var o=n(r(1)),a=n(r(2)),i=n(r(5));function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var c={id:"basis",name:"CompressedTexture",version:"2.3.11",extensions:["dds","pvr"],mimeTypes:["application/octet-stream"],tests:[new Uint8Array([3,82,86,80]).buffer],binary:!0,options:{basis:{libraryPath:"libs/"}}};t.CompressedTextureWorkerLoader=c;var f,l=s(s({},c),{},{parse:(f=(0,a.default)(o.default.mark((function e(t,r){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)}))),function(e,t){return f.apply(this,arguments)})});t.CompressedTextureLoader=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompressedTextureWriter=void 0;var n={name:"Textures",extensions:["dds"],options:{texture:{format:"auto",compression:"auto",quality:"auto",mipmap:!1,flipY:!1,toolFlags:""}},encodeURLtoURL:r(65).encodeImageURLToCompressedTextureURL};t.CompressedTextureWriter=n},function(e,t,r){"use strict";(function(e){var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.encodeImageURLToCompressedTextureURL=function(e,t,r){return s.apply(this,arguments)};var o=n(r(1)),a=n(r(2)),i=r(17),u="".concat(e,"/../../..");function s(){return(s=(0,a.default)(o.default.mark((function e(t,r,n){var a,s;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=["texture-compressor","--type","s3tc","--compression","DXT1","--quality","normal","--input",t,"--output",r],s=new i.ChildProcessProxy,e.next=4,s.start({command:"npx",arguments:a,spawn:{cwd:u}});case 4:return e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}).call(this,"/")},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),e}r.r(t),r.d(t,"Stats",(function(){return s})),r.d(t,"Stat",(function(){return u})),r.d(t,"_getHiResTimestamp",(function(){return i.a}));var i=r(8),u=function(){function e(t,r){n(this,e),this.name=t,this.type=r,this.sampleSize=1,this.reset()}return a(e,[{key:"setSampleSize",value:function(e){return this.sampleSize=e,this}},{key:"incrementCount",value:function(){return this.addCount(1),this}},{key:"decrementCount",value:function(){return this.subtractCount(1),this}},{key:"addCount",value:function(e){return this._count+=e,this._samples++,this._checkSampling(),this}},{key:"subtractCount",value:function(e){return this._count-=e,this._samples++,this._checkSampling(),this}},{key:"addTime",value:function(e){return this._time+=e,this.lastTiming=e,this._samples++,this._checkSampling(),this}},{key:"timeStart",value:function(){return this._startTime=Object(i.a)(),this._timerPending=!0,this}},{key:"timeEnd",value:function(){return this._timerPending?(this.addTime(Object(i.a)()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}},{key:"getSampleAverageCount",value:function(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}},{key:"getSampleAverageTime",value:function(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}},{key:"getSampleHz",value:function(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}},{key:"getAverageCount",value:function(){return this.samples>0?this.count/this.samples:0}},{key:"getAverageTime",value:function(){return this.samples>0?this.time/this.samples:0}},{key:"getHz",value:function(){return this.time>0?this.samples/(this.time/1e3):0}},{key:"reset",value:function(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}},{key:"_checkSampling",value:function(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}]),e}(),s=function(){function e(t){var r=t.id,o=t.stats;n(this,e),this.id=r,this.stats={},this._initializeStats(o),Object.seal(this)}return a(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count";return this._getOrCreate({name:e,type:t})}},{key:"reset",value:function(){for(var e in this.stats)this.stats[e].reset();return this}},{key:"forEach",value:function(e){for(var t in this.stats)e(this.stats[t])}},{key:"getTable",value:function(){var e={};return this.forEach((function(t){e[t.name]={time:t.time||0,count:t.count||0,average:t.getAverageTime()||0,hz:t.getHz()||0}})),e}},{key:"_initializeStats",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){return e._getOrCreate(t)}))}},{key:"_getOrCreate",value:function(e){if(!e||!e.name)return null;var t=e.name,r=e.type;return this.stats[t]||(this.stats[t]=e instanceof u?e:new u(t,r)),this.stats[t]}},{key:"size",get:function(){return Object.keys(this.stats).length}}]),e}()}])})); |
@@ -18,3 +18,3 @@ "use strict"; | ||
var VERSION = typeof "2.3.10" !== 'undefined' ? "2.3.10" : 'latest'; | ||
var VERSION = typeof "2.3.11" !== 'undefined' ? "2.3.11" : 'latest'; | ||
var BasisWorkerLoader = { | ||
@@ -21,0 +21,0 @@ id: 'basis', |
@@ -20,3 +20,3 @@ "use strict"; | ||
var VERSION = typeof "2.3.10" !== 'undefined' ? "2.3.10" : 'latest'; | ||
var VERSION = typeof "2.3.11" !== 'undefined' ? "2.3.11" : 'latest'; | ||
var PVR_MAGIC_BYTES = [0x03, 0x52, 0x56, 0x50]; | ||
@@ -23,0 +23,0 @@ var CompressedTextureWorkerLoader = { |
import parseBasis from './lib/parsers/parse-basis'; | ||
const VERSION = typeof "2.3.10" !== 'undefined' ? "2.3.10" : 'latest'; | ||
const VERSION = typeof "2.3.11" !== 'undefined' ? "2.3.11" : 'latest'; | ||
export const BasisWorkerLoader = { | ||
@@ -4,0 +4,0 @@ id: 'basis', |
@@ -1,2 +0,2 @@ | ||
const VERSION = typeof "2.3.10" !== 'undefined' ? "2.3.10" : 'latest'; | ||
const VERSION = typeof "2.3.11" !== 'undefined' ? "2.3.11" : 'latest'; | ||
const PVR_MAGIC_BYTES = [0x03, 0x52, 0x56, 0x50]; | ||
@@ -3,0 +3,0 @@ export const CompressedTextureWorkerLoader = { |
@@ -8,3 +8,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
import parseBasis from './lib/parsers/parse-basis'; | ||
var VERSION = typeof "2.3.10" !== 'undefined' ? "2.3.10" : 'latest'; | ||
var VERSION = typeof "2.3.11" !== 'undefined' ? "2.3.11" : 'latest'; | ||
export var BasisWorkerLoader = { | ||
@@ -11,0 +11,0 @@ id: 'basis', |
@@ -9,3 +9,3 @@ import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
var VERSION = typeof "2.3.10" !== 'undefined' ? "2.3.10" : 'latest'; | ||
var VERSION = typeof "2.3.11" !== 'undefined' ? "2.3.11" : 'latest'; | ||
var PVR_MAGIC_BYTES = [0x03, 0x52, 0x56, 0x50]; | ||
@@ -12,0 +12,0 @@ export var CompressedTextureWorkerLoader = { |
{ | ||
"name": "@loaders.gl/basis", | ||
"version": "2.3.10", | ||
"version": "2.3.11", | ||
"description": "Framework-independent loader for the basis universal format", | ||
@@ -37,7 +37,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"@loaders.gl/core": "2.3.10", | ||
"@loaders.gl/loader-utils": "2.3.10", | ||
"@loaders.gl/core": "2.3.11", | ||
"@loaders.gl/loader-utils": "2.3.11", | ||
"texture-compressor": "^1.0.2" | ||
}, | ||
"gitHead": "bfba76da1239f854d7b97912add5e8e841c33678" | ||
"gitHead": "4fe03d1ee82a7388f324b5c5f6fc09e1b5209bfd" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
+ Added@loaders.gl/core@2.3.11(transitive)
+ Added@loaders.gl/loader-utils@2.3.11(transitive)
- Removed@loaders.gl/core@2.3.10(transitive)
- Removed@loaders.gl/loader-utils@2.3.10(transitive)
Updated@loaders.gl/core@2.3.11