@luma.gl/gltools
Advanced tools
Comparing version 8.5.10 to 8.5.11
@@ -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 n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(28),o=n(29),i=n(20),a=n(30);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(3);function o(e){return"undefined"!=typeof WebGLRenderingContext&&e instanceof WebGLRenderingContext||("undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||Boolean(e&&Number.isFinite(e._version)))}function i(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||Boolean(e&&2===e._version)}function a(e){return i(e)?e:null}function u(e){return Object(r.a)(o(e),"Invalid WebGLRenderingContext"),e}function c(e){return Object(r.a)(i(e),"Requires WebGL2"),e}},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}n.d(t,"a",(function(){return r}))},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){e.exports=n(32)},function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return w})),n.d(t,"d",(function(){return A}));var r,o,i,a=n(17),u=n.n(a),c=n(1),s=n.n(c),f=n(0),l=n.n(f),d=n(2),b=(r={},l()(r,3042,!1),l()(r,32773,new Float32Array([0,0,0,0])),l()(r,32777,32774),l()(r,34877,32774),l()(r,32969,1),l()(r,32968,0),l()(r,32971,1),l()(r,32970,0),l()(r,3106,new Float32Array([0,0,0,0])),l()(r,3107,[!0,!0,!0,!0]),l()(r,2884,!1),l()(r,2885,1029),l()(r,2929,!1),l()(r,2931,1),l()(r,2932,513),l()(r,2928,new Float32Array([0,1])),l()(r,2930,!0),l()(r,3024,!0),l()(r,36006,null),l()(r,2886,2305),l()(r,33170,4352),l()(r,2849,1),l()(r,32823,!1),l()(r,32824,0),l()(r,10752,0),l()(r,32938,1),l()(r,32939,!1),l()(r,3089,!1),l()(r,3088,new Int32Array([0,0,1024,1024])),l()(r,2960,!1),l()(r,2961,0),l()(r,2968,4294967295),l()(r,36005,4294967295),l()(r,2962,519),l()(r,2967,0),l()(r,2963,4294967295),l()(r,34816,519),l()(r,36003,0),l()(r,36004,4294967295),l()(r,2964,7680),l()(r,2965,7680),l()(r,2966,7680),l()(r,34817,7680),l()(r,34818,7680),l()(r,34819,7680),l()(r,2978,[0,0,1024,1024]),l()(r,3333,4),l()(r,3317,4),l()(r,37440,!1),l()(r,37441,!1),l()(r,37443,37444),l()(r,35723,4352),l()(r,36010,null),l()(r,35977,!1),l()(r,3330,0),l()(r,3332,0),l()(r,3331,0),l()(r,3314,0),l()(r,32878,0),l()(r,3316,0),l()(r,3315,0),l()(r,32877,0),r),v=function(e,t,n){return t?e.enable(n):e.disable(n)},g=function(e,t,n){return e.hint(n,t)},h=function(e,t,n){return e.pixelStorei(n,t)};function p(e){return Array.isArray(e)||ArrayBuffer.isView(e)}var y=(o={},l()(o,3042,v),l()(o,32773,(function(e,t){return e.blendColor.apply(e,s()(t))})),l()(o,32777,"blendEquation"),l()(o,34877,"blendEquation"),l()(o,32969,"blendFunc"),l()(o,32968,"blendFunc"),l()(o,32971,"blendFunc"),l()(o,32970,"blendFunc"),l()(o,3106,(function(e,t){return e.clearColor.apply(e,s()(t))})),l()(o,3107,(function(e,t){return e.colorMask.apply(e,s()(t))})),l()(o,2884,v),l()(o,2885,(function(e,t){return e.cullFace(t)})),l()(o,2929,v),l()(o,2931,(function(e,t){return e.clearDepth(t)})),l()(o,2932,(function(e,t){return e.depthFunc(t)})),l()(o,2928,(function(e,t){return e.depthRange.apply(e,s()(t))})),l()(o,2930,(function(e,t){return e.depthMask(t)})),l()(o,3024,v),l()(o,35723,g),l()(o,36006,(function(e,t){var n=Object(d.e)(e)?36009:36160;return e.bindFramebuffer(n,t)})),l()(o,2886,(function(e,t){return e.frontFace(t)})),l()(o,33170,g),l()(o,2849,(function(e,t){return e.lineWidth(t)})),l()(o,32823,v),l()(o,32824,"polygonOffset"),l()(o,10752,"polygonOffset"),l()(o,35977,v),l()(o,32938,"sampleCoverage"),l()(o,32939,"sampleCoverage"),l()(o,3089,v),l()(o,3088,(function(e,t){return e.scissor.apply(e,s()(t))})),l()(o,2960,v),l()(o,2961,(function(e,t){return e.clearStencil(t)})),l()(o,2968,(function(e,t){return e.stencilMaskSeparate(1028,t)})),l()(o,36005,(function(e,t){return e.stencilMaskSeparate(1029,t)})),l()(o,2962,"stencilFuncFront"),l()(o,2967,"stencilFuncFront"),l()(o,2963,"stencilFuncFront"),l()(o,34816,"stencilFuncBack"),l()(o,36003,"stencilFuncBack"),l()(o,36004,"stencilFuncBack"),l()(o,2964,"stencilOpFront"),l()(o,2965,"stencilOpFront"),l()(o,2966,"stencilOpFront"),l()(o,34817,"stencilOpBack"),l()(o,34818,"stencilOpBack"),l()(o,34819,"stencilOpBack"),l()(o,2978,(function(e,t){return e.viewport.apply(e,s()(t))})),l()(o,3333,h),l()(o,3317,h),l()(o,37440,h),l()(o,37441,h),l()(o,37443,h),l()(o,3330,h),l()(o,3332,h),l()(o,3331,h),l()(o,36010,(function(e,t){return e.bindFramebuffer(36008,t)})),l()(o,3314,h),l()(o,32878,h),l()(o,3316,h),l()(o,3315,h),l()(o,32877,h),l()(o,"framebuffer",(function(e,t){var n=t&&"handle"in t?t.handle:t;return e.bindFramebuffer(36160,n)})),l()(o,"blend",(function(e,t){return t?e.enable(3042):e.disable(3042)})),l()(o,"blendColor",(function(e,t){return e.blendColor.apply(e,s()(t))})),l()(o,"blendEquation",(function(e,t){t=p(t)?t:[t,t],e.blendEquationSeparate.apply(e,s()(t))})),l()(o,"blendFunc",(function(e,t){t=p(t)&&2===t.length?[].concat(s()(t),s()(t)):t,e.blendFuncSeparate.apply(e,s()(t))})),l()(o,"clearColor",(function(e,t){return e.clearColor.apply(e,s()(t))})),l()(o,"clearDepth",(function(e,t){return e.clearDepth(t)})),l()(o,"clearStencil",(function(e,t){return e.clearStencil(t)})),l()(o,"colorMask",(function(e,t){return e.colorMask.apply(e,s()(t))})),l()(o,"cull",(function(e,t){return t?e.enable(2884):e.disable(2884)})),l()(o,"cullFace",(function(e,t){return e.cullFace(t)})),l()(o,"depthTest",(function(e,t){return t?e.enable(2929):e.disable(2929)})),l()(o,"depthFunc",(function(e,t){return e.depthFunc(t)})),l()(o,"depthMask",(function(e,t){return e.depthMask(t)})),l()(o,"depthRange",(function(e,t){return e.depthRange.apply(e,s()(t))})),l()(o,"dither",(function(e,t){return t?e.enable(3024):e.disable(3024)})),l()(o,"derivativeHint",(function(e,t){e.hint(35723,t)})),l()(o,"frontFace",(function(e,t){return e.frontFace(t)})),l()(o,"mipmapHint",(function(e,t){return e.hint(33170,t)})),l()(o,"lineWidth",(function(e,t){return e.lineWidth(t)})),l()(o,"polygonOffsetFill",(function(e,t){return t?e.enable(32823):e.disable(32823)})),l()(o,"polygonOffset",(function(e,t){return e.polygonOffset.apply(e,s()(t))})),l()(o,"sampleCoverage",(function(e,t){return e.sampleCoverage.apply(e,s()(t))})),l()(o,"scissorTest",(function(e,t){return t?e.enable(3089):e.disable(3089)})),l()(o,"scissor",(function(e,t){return e.scissor.apply(e,s()(t))})),l()(o,"stencilTest",(function(e,t){return t?e.enable(2960):e.disable(2960)})),l()(o,"stencilMask",(function(e,t){var n=t=p(t)?t:[t,t],r=u()(n,2),o=r[0],i=r[1];e.stencilMaskSeparate(1028,o),e.stencilMaskSeparate(1029,i)})),l()(o,"stencilFunc",(function(e,t){var n=t=p(t)&&3===t.length?[].concat(s()(t),s()(t)):t,r=u()(n,6),o=r[0],i=r[1],a=r[2],c=r[3],f=r[4],l=r[5];e.stencilFuncSeparate(1028,o,i,a),e.stencilFuncSeparate(1029,c,f,l)})),l()(o,"stencilOp",(function(e,t){var n=t=p(t)&&3===t.length?[].concat(s()(t),s()(t)):t,r=u()(n,6),o=r[0],i=r[1],a=r[2],c=r[3],f=r[4],l=r[5];e.stencilOpSeparate(1028,o,i,a),e.stencilOpSeparate(1029,c,f,l)})),l()(o,"viewport",(function(e,t){return e.viewport.apply(e,s()(t))})),o);function m(e,t,n){return void 0!==t[e]?t[e]:n[e]}var x={blendEquation:function(e,t,n){return e.blendEquationSeparate(m(32777,t,n),m(34877,t,n))},blendFunc:function(e,t,n){return e.blendFuncSeparate(m(32969,t,n),m(32968,t,n),m(32971,t,n),m(32970,t,n))},polygonOffset:function(e,t,n){return e.polygonOffset(m(32824,t,n),m(10752,t,n))},sampleCoverage:function(e,t,n){return e.sampleCoverage(m(32938,t,n),m(32939,t,n))},stencilFuncFront:function(e,t,n){return e.stencilFuncSeparate(1028,m(2962,t,n),m(2967,t,n),m(2963,t,n))},stencilFuncBack:function(e,t,n){return e.stencilFuncSeparate(1029,m(34816,t,n),m(36003,t,n),m(36004,t,n))},stencilOpFront:function(e,t,n){return e.stencilOpSeparate(1028,m(2964,t,n),m(2965,t,n),m(2966,t,n))},stencilOpBack:function(e,t,n){return e.stencilOpSeparate(1029,m(34817,t,n),m(34818,t,n),m(34819,t,n))}},w={enable:function(e,t){return e(l()({},t,!0))},disable:function(e,t){return e(l()({},t,!1))},pixelStorei:function(e,t,n){return e(l()({},t,n))},hint:function(e,t,n){return e(l()({},t,n))},bindFramebuffer:function(e,t,n){var r;switch(t){case 36160:return e((r={},l()(r,36006,n),l()(r,36010,n),r));case 36009:return e(l()({},36006,n));case 36008:return e(l()({},36010,n));default:return null}},blendColor:function(e,t,n,r,o){return e(l()({},32773,new Float32Array([t,n,r,o])))},blendEquation:function(e,t){var n;return e((n={},l()(n,32777,t),l()(n,34877,t),n))},blendEquationSeparate:function(e,t,n){var r;return e((r={},l()(r,32777,t),l()(r,34877,n),r))},blendFunc:function(e,t,n){var r;return e((r={},l()(r,32969,t),l()(r,32968,n),l()(r,32971,t),l()(r,32970,n),r))},blendFuncSeparate:function(e,t,n,r,o){var i;return e((i={},l()(i,32969,t),l()(i,32968,n),l()(i,32971,r),l()(i,32970,o),i))},clearColor:function(e,t,n,r,o){return e(l()({},3106,new Float32Array([t,n,r,o])))},clearDepth:function(e,t){return e(l()({},2931,t))},clearStencil:function(e,t){return e(l()({},2961,t))},colorMask:function(e,t,n,r,o){return e(l()({},3107,[t,n,r,o]))},cullFace:function(e,t){return e(l()({},2885,t))},depthFunc:function(e,t){return e(l()({},2932,t))},depthRange:function(e,t,n){return e(l()({},2928,new Float32Array([t,n])))},depthMask:function(e,t){return e(l()({},2930,t))},frontFace:function(e,t){return e(l()({},2886,t))},lineWidth:function(e,t){return e(l()({},2849,t))},polygonOffset:function(e,t,n){var r;return e((r={},l()(r,32824,t),l()(r,10752,n),r))},sampleCoverage:function(e,t,n){var r;return e((r={},l()(r,32938,t),l()(r,32939,n),r))},scissor:function(e,t,n,r,o){return e(l()({},3088,new Int32Array([t,n,r,o])))},stencilMask:function(e,t){var n;return e((n={},l()(n,2968,t),l()(n,36005,t),n))},stencilMaskSeparate:function(e,t,n){return e(l()({},1028===t?2968:36005,n))},stencilFunc:function(e,t,n,r){var o;return e((o={},l()(o,2962,t),l()(o,2967,n),l()(o,2963,r),l()(o,34816,t),l()(o,36003,n),l()(o,36004,r),o))},stencilFuncSeparate:function(e,t,n,r,o){var i;return e((i={},l()(i,1028===t?2962:34816,n),l()(i,1028===t?2967:36003,r),l()(i,1028===t?2963:36004,o),i))},stencilOp:function(e,t,n,r){var o;return e((o={},l()(o,2964,t),l()(o,2965,n),l()(o,2966,r),l()(o,34817,t),l()(o,34818,n),l()(o,34819,r),o))},stencilOpSeparate:function(e,t,n,r,o){var i;return e((i={},l()(i,1028===t?2964:34817,n),l()(i,1028===t?2965:34818,r),l()(i,1028===t?2966:34819,o),i))},viewport:function(e,t,n,r,o){return e(l()({},2978,[t,n,r,o]))}},O=function(e,t){return e.isEnabled(t)},A=(i={},l()(i,3042,O),l()(i,2884,O),l()(i,2929,O),l()(i,3024,O),l()(i,32823,O),l()(i,32926,O),l()(i,32928,O),l()(i,3089,O),l()(i,2960,O),l()(i,35977,O),i)},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return p}));var r=n(11),o=n.n(r),i=n(12),a=n.n(i),u=n(6),c=n(8),s=n(3),f=n(16);function l(e,t){var n=e[t].bind(e);e[t]=function(){var t=arguments.length<=0?void 0:arguments[0];return t in e.state.cache&&e.state.enable?e.state.cache[t]:n.apply(void 0,arguments)},Object.defineProperty(e[t],"name",{value:"".concat(t,"-from-cache"),configurable:!1})}function d(e,t,n){var r=e[t].bind(e);e[t]=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var a=n.apply(void 0,[e.state._updateCache].concat(o)),u=a.valueChanged,c=a.oldValue;return u&&r.apply(void 0,o),c},Object.defineProperty(e[t],"name",{value:"".concat(t,"-to-cache"),configurable:!1})}function b(e){var t=e.useProgram.bind(e);e.useProgram=function(n){e.state.program!==n&&(t(n),e.state.program=n)}}var v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.copyState,i=void 0!==r&&r,a=n.log,s=void 0===a?function(){}:a;o()(this,e),this.gl=t,this.program=null,this.stateStack=[],this.enable=!0,this.cache=i?Object(c.a)(t):Object.assign({},u.c),this.log=s,this._updateCache=this._updateCache.bind(this),Object.seal(this)}return a()(e,[{key:"push",value:function(){this.stateStack.push({})}},{key:"pop",value:function(){Object(s.a)(this.stateStack.length>0);var e=this.stateStack[this.stateStack.length-1];Object(c.c)(this.gl,e),this.stateStack.pop()}},{key:"_updateCache",value:function(e){var t,n=!1,r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(var o in e){Object(s.a)(void 0!==o);var i=e[o],a=this.cache[o];Object(f.a)(i,a)||(n=!0,t=a,r&&!(o in r)&&(r[o]=a),this.cache[o]=i)}return{valueChanged:n,oldValue:t}}}]),e}();function g(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.enable,o=void 0===r||r,i=n.copyState;if(Object(s.a)(void 0!==i),!t.state){var a=void 0!==e?e:window,c=a.polyfillContext;for(var f in c&&c(t),t.state=new v(t,{copyState:i}),b(t),u.b){var g=u.b[f];d(t,f,g)}l(t,"getParameter"),l(t,"isEnabled")}return t.state.enable=o,t}function h(e){e.state||g(e,{copyState:!1}),e.state.push()}function p(e){Object(s.a)(e.state),e.state.pop()}}).call(this,n(14))},function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return b}));var r=n(6),o=n(7),i=n(3),a=n(2),u=n(16);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(Object(i.a)(Object(a.d)(e),"setParameters requires a WebGL context"),!Object(u.b)(t)){var n={};for(var o in t){var c=Number(o),s=r.e[o];s&&("string"==typeof s?n[s]=!0:s(e,t[o],c))}var f=e.state&&e.state.cache;if(f)for(var l in n){(0,r.a[l])(e,t,f)}}}function l(e,t){if("number"==typeof(t=t||r.c)){var n=t,o=r.d[n];return o?o(e,n):e.getParameter(n)}var i,a={},u=c(Array.isArray(t)?t:Object.keys(t));try{for(u.s();!(i=u.n()).done;){var s=i.value,f=r.d[s];a[s]=f?f(e,Number(s)):e.getParameter(Number(s))}}catch(e){u.e(e)}finally{u.f()}return a}function d(e){f(e,r.c)}function b(e,t,n){if(Object(u.b)(t))return n(e);var r,i=t.nocatch,a=void 0===i||i;if(Object(o.b)(e),f(e,t),a)r=n(e),Object(o.a)(e);else try{r=n(e)}finally{Object(o.a)(e)}return r}},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var o=n(4),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":n.n(o)()(r))&&r},a=i.window||i.self||i.global,u=i.process||{};console}).call(this,n(14),n(10))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],f=!1,l=-1;function d(){f&&c&&(f=!1,c.length?s=c.concat(s):l=-1,s.length&&b())}function b(){if(!f){var e=u(d);f=!0;for(var t=s.length;t;){for(c=s,s=[];++l<t;)c&&c[l].run();l=-1,t=s.length}c=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new v(e,t)),1!==s.length||f||u(b)},v.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=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,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){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r,o,i=n(0),a=n.n(i),u=n(3),c=n(2),s=function(e){return Object(c.e)(e)?void 0:0},f=(r={},a()(r,3074,(function(e){return Object(c.e)(e)?void 0:36064})),a()(r,35723,(function(e){return Object(c.e)(e)?void 0:4352})),a()(r,35977,s),a()(r,32937,s),a()(r,36795,(function(e,t){var n=Object(c.e)(e)?e.getExtension("EXT_disjoint_timer_query_webgl2"):e.getExtension("EXT_disjoint_timer_query");return n&&n.GPU_DISJOINT_EXT?t(n.GPU_DISJOINT_EXT):0})),a()(r,37445,(function(e,t){var n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_VENDOR_WEBGL||7936)})),a()(r,37446,(function(e,t){var n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_RENDERER_WEBGL||7937)})),a()(r,34047,(function(e,t){var n=e.luma.extensions.EXT_texture_filter_anisotropic;return n?t(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1})),a()(r,32883,s),a()(r,35071,s),a()(r,37447,s),a()(r,36063,(function(e,t){if(!Object(c.e)(e)){var n=e.getExtension("WEBGL_draw_buffers");return n?t(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}})),a()(r,35379,s),a()(r,35374,s),a()(r,35377,s),a()(r,34852,(function(e){if(!Object(c.e)(e)){var t=e.getExtension("WEBGL_draw_buffers");return t?t.MAX_DRAW_BUFFERS_WEBGL:0}})),a()(r,36203,(function(e){return e.getExtension("OES_element_index")?2147483647:65535})),a()(r,33001,(function(e){return e.getExtension("OES_element_index")?16777216:65535})),a()(r,33e3,(function(e){return 16777216})),a()(r,37157,s),a()(r,35373,s),a()(r,35657,s),a()(r,36183,s),a()(r,37137,s),a()(r,34045,s),a()(r,35978,s),a()(r,35979,s),a()(r,35968,s),a()(r,35376,s),a()(r,35375,s),a()(r,35659,s),a()(r,37154,s),a()(r,35371,s),a()(r,35658,s),a()(r,35076,s),a()(r,35077,s),a()(r,35380,s),r);var l=(o={},a()(o,"OES_vertex_array_object",{meta:{suffix:"OES"},createVertexArray:function(){Object(u.a)(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:function(){},bindVertexArray:function(){},isVertexArray:function(){return!1}}),a()(o,"ANGLE_instanced_arrays",{meta:{suffix:"ANGLE"},vertexAttribDivisor:function(e,t){Object(u.a)(0===t,"WebGL instanced rendering not supported")},drawElementsInstanced:function(){},drawArraysInstanced:function(){}}),a()(o,"WEBGL_draw_buffers",{meta:{suffix:"WEBGL"},drawBuffers:function(){Object(u.a)(!1)}}),a()(o,"EXT_disjoint_timer_query",{meta:{suffix:"EXT"},createQuery:function(){Object(u.a)(!1)},deleteQuery:function(){Object(u.a)(!1)},beginQuery:function(){Object(u.a)(!1)},endQuery:function(){},getQuery:function(e,t){return this.getQueryObject(e,t)},getQueryParameter:function(e,t){return this.getQueryObject(e,t)},getQueryObject:function(){}}),o),d={readBuffer:function(e,t,n){Object(c.e)(e)&&t(n)},getVertexAttrib:function(e,t,n,r){var o,i=function(e,t){return{webgl2:Object(c.e)(e),ext:e.getExtension(t)}}(e,"ANGLE_instanced_arrays"),a=i.webgl2,u=i.ext;switch(r){case 35069:o=!!a&&void 0;break;case 35070:o=a||u?void 0:0}return void 0!==o?o:t(n,r)},getProgramParameter:function(e,t,n,r){if(!Object(c.e)(e))switch(r){case 35967:return 35981;case 35971:case 35382:return 0}return t(n,r)},getInternalformatParameter:function(e,t,n,r,o){if(!Object(c.e)(e))switch(o){case 32937:return new Int32Array([0])}return e.getInternalformatParameter(n,r,o)},getTexParameter:function(e,t,n,r){switch(r){case 34046:var o=e.luma.extensions.EXT_texture_filter_anisotropic;r=o&&o.TEXTURE_MAX_ANISOTROPY_EXT||34046}return t(n,r)},getParameter:function(e,t,n){var r=f[n],o="function"==typeof r?r(e,t,n):r;return void 0!==o?o:t(n)},hint:function(e,t,n,r){return t(n,r)}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function r(e){for(var t in e)return!1;return!0}function o(e,t){if(e===t)return!0;var n=Array.isArray(e)||ArrayBuffer.isView(e),r=Array.isArray(t)||ArrayBuffer.isView(t);if(n&&r&&e.length===t.length){for(var o=0;o<e.length;++o)if(e[o]!==t[o])return!1;return!0}return!1}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},function(e,t,n){var r=n(34),o=n(35),i=n(20),a=n(36);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){"use strict";(function(e){var r=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){if("undefined"!=typeof window&&"object"===(0,o.default)(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===(0,o.default)(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":(0,o.default)(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=t||n;if(r&&r.indexOf("Electron")>=0)return!0;return!1};var o=r(n(4))}).call(this,n(10))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(19);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(26),o=n(3),i=n(13);function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){e.luma=e.luma||{};var t=e.luma;return t.polyfilled||(Object(r.a)(e),function(e){e.luma.extensions={};var t,n=a(e.getSupportedExtensions()||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.luma[r]=e.getExtension(r)}}catch(e){n.e(e)}finally{n.f()}}(e),function(e,t){var n,r=a(Object.getOwnPropertyNames(t));try{for(r.s();!(n=r.n()).done;){var o=n.value;"overrides"!==o&&s(e,{extension:o,target:e.luma,target2:e})}}catch(e){r.e(e)}finally{r.f()}}(e,i.b),function(e,t){var n=t.target,r=t.target2;Object.keys(i.a).forEach((function(t){if("function"==typeof i.a[t]){var o=e[t]?e[t].bind(e):function(){},a=i.a[t].bind(null,e,o);n[t]=a,r[t]=a}}))}(e,{target:t,target2:e}),t.polyfilled=!0),e}function s(e,t){var n=t.extension,r=t.target,a=t.target2,u=i.b[n];Object(o.a)(u);for(var c=u.meta,s=(void 0===c?{}:c).suffix,f=void 0===s?"":s,l=e.getExtension(n),d=function(){var t=v[b],n="".concat(t).concat(f),o=null;"meta"===t||"function"==typeof e[t]||(l&&"function"==typeof l[n]?o=function(){return l[n].apply(l,arguments)}:"function"==typeof u[t]&&(o=u[t].bind(r))),o&&(r[t]=o,a[t]=o)},b=0,v=Object.keys(u);b<v.length;b++)d()}(void 0!==e?e:window).polyfillContext=c}).call(this,n(14))},function(e,t,n){"use strict";(function(e,r){var o=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.console=t.process=t.document=t.global=t.window=t.self=void 0;var i=o(n(4)),a={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":(0,i.default)(r))&&r},u=a.self||a.window||a.global;t.self=u;var c=a.window||a.self||a.global;t.window=c;var s=a.global||a.self||a.window;t.global=s;var f=a.document||{};t.document=f;var l=a.process||{};t.process=l;var d=console;t.console=d}).call(this,n(14),n(10))},function(e,t,n){"use strict";(function(e){var r=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.isBrowserMainThread=function(){return a()&&"undefined"!=typeof document};var o=r(n(4)),i=r(n(18));function a(){return!("object"===(void 0===e?"undefined":(0,o.default)(e))&&"[object process]"===String(e)&&!e.browser)||(0,i.default)()}}).call(this,n(10))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(4),o=n.n(r),i=n(25);function a(){return!("object"===(void 0===e?"undefined":o()(e))&&"[object process]"===String(e)&&!e.browser)||Object(i.a)()}}).call(this,n(10))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(4),o=n.n(r);function i(t){if("undefined"!=typeof window&&"object"===o()(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===o()(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":o()(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=t||n;return!!(r&&r.indexOf("Electron")>=0)}}).call(this,n(10))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(5),o={};function i(e,t){var n;o[e]=!0,void 0!==t&&(n=t,r.global.console&&r.global.console.error&&r.global.console.error(n))}var a=function e(t){var n=t.gl;this.ext=t,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(t.maxVertexAttribs);for(var r=0;r<this.attribs.length;r++){var o=new e.VertexAttrib(n);this.attribs[r]=o}this.maxAttrib=0};(a.VertexAttrib=function(e){this.enabled=!1,this.buffer=null,this.size=4,this.type=5126,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()}).prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};var u=function(e){var t=this;this.gl=e,function(e){var t=e.getError;e.getError=function(){var n;do{0!==(n=t.apply(e))&&(o[n]=!0)}while(0!==n);for(n in o)if(o[n])return delete o[n],parseInt(n,10);return 0}}(e);var n=this.original={getParameter:e.getParameter,enableVertexAttribArray:e.enableVertexAttribArray,disableVertexAttribArray:e.disableVertexAttribArray,bindBuffer:e.bindBuffer,getVertexAttrib:e.getVertexAttrib,vertexAttribPointer:e.vertexAttribPointer};e.getParameter=function(e){return e===t.VERTEX_ARRAY_BINDING_OES?t.currentVertexArrayObject===t.defaultVertexArrayObject?null:t.currentVertexArrayObject:n.getParameter.apply(this,arguments)},e.enableVertexAttribArray=function(e){var r=t.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,e);var o=r.attribs[e];return o.enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},e.disableVertexAttribArray=function(e){var r=t.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,e);var o=r.attribs[e];return o.enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},e.bindBuffer=function(e,r){switch(e){case 34962:t.currentArrayBuffer=r;break;case 34963:t.currentVertexArrayObject.elementArrayBuffer=r}return n.bindBuffer.apply(this,arguments)},e.getVertexAttrib=function(e,r){var o=t.currentVertexArrayObject,i=o.attribs[e];switch(r){case 34975:return i.buffer;case 34338:return i.enabled;case 34339:return i.size;case 34340:return i.stride;case 34341:return i.type;case 34922:return i.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},e.vertexAttribPointer=function(e,r,o,i,a,u){var c=t.currentVertexArrayObject;c.maxAttrib=Math.max(c.maxAttrib,e);var s=c.attribs[e];return s.buffer=t.currentArrayBuffer,s.size=r,s.type=o,s.normalized=i,s.stride=a,s.offset=u,s.recache(),n.vertexAttribPointer.apply(this,arguments)},e.instrumentExtension&&e.instrumentExtension(this,"OES_vertex_array_object"),e.canvas&&e.canvas.addEventListener("webglcontextrestored",(function(){var e;e="OESVertexArrayObject emulation library context restored",r.global.console&&r.global.console.log&&r.global.console.log(e),t.reset_()}),!0),this.reset_()};function c(e){if("function"!=typeof e.createVertexArray){var t=e.getSupportedExtensions;e.getSupportedExtensions=function(){var e=t.call(this)||[];return e.indexOf("OES_vertex_array_object")<0&&e.push("OES_vertex_array_object"),e};var n=e.getExtension;e.getExtension=function(t){var r=n.call(this,t);return r||("OES_vertex_array_object"!==t?null:(e.__OESVertexArrayObject||(this.__OESVertexArrayObject=new u(this)),this.__OESVertexArrayObject))}}}u.prototype.VERTEX_ARRAY_BINDING_OES=34229,u.prototype.reset_=function(){if(void 0!==this.vertexArrayObjects)for(var e=0;e<this.vertexArrayObjects.length;++e)this.vertexArrayObjects.isAlive=!1;var t=this.gl;this.maxVertexAttribs=t.getParameter(34921),this.defaultVertexArrayObject=new a(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)},u.prototype.createVertexArrayOES=function(){var e=new a(this);return this.vertexArrayObjects.push(e),e},u.prototype.deleteVertexArrayOES=function(e){e.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(e),1),this.currentVertexArrayObject===e&&this.bindVertexArrayOES(null)},u.prototype.isVertexArrayOES=function(e){return!!(e&&e instanceof a&&e.hasBeenBound&&e.ext===this)},u.prototype.bindVertexArrayOES=function(e){var t=this.gl;if(!e||e.isAlive){var n=this.original,r=this.currentVertexArrayObject;this.currentVertexArrayObject=e||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;var o=this.currentVertexArrayObject;if(r!==o){r&&o.elementArrayBuffer===r.elementArrayBuffer||n.bindBuffer.call(t,34963,o.elementArrayBuffer);for(var a=this.currentArrayBuffer,u=Math.max(r?r.maxAttrib:0,o.maxAttrib),c=0;c<=u;c++){var s=o.attribs[c],f=r?r.attribs[c]:null;if(r&&s.enabled===f.enabled||(s.enabled?n.enableVertexAttribArray.call(t,c):n.disableVertexAttribArray.call(t,c)),s.enabled){var l=!1;r&&s.buffer===f.buffer||(a!==s.buffer&&(n.bindBuffer.call(t,34962,s.buffer),a=s.buffer),l=!0),(l||s.cached!==f.cached)&&n.vertexAttribPointer.call(t,c,s.size,s.type,s.normalized,s.stride,s.offset)}}this.currentArrayBuffer!==a&&n.bindBuffer.call(t,34962,this.currentArrayBuffer)}}else i(1282,"bindVertexArrayOES: attempt to bind deleted arrayObject")}},function(e,t,n){(function(t){var r=n(37),o="undefined"==typeof window?t:window;o.luma=o.luma||{},e.exports=Object.assign(o.luma,r)}).call(this,n(14))},function(e,t,n){var r=n(19);e.exports=function(e){if(Array.isArray(e))return r(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){},function(e,t,n){"use strict";var r=n(15),o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),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,"process",{enumerable:!0,get:function(){return i.process}}),Object.defineProperty(t,"console",{enumerable:!0,get:function(){return i.console}}),Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"isBrowserMainThread",{enumerable:!0,get:function(){return a.isBrowserMainThread}}),Object.defineProperty(t,"getBrowser",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"isMobile",{enumerable:!0,get:function(){return u.isMobile}}),Object.defineProperty(t,"isElectron",{enumerable:!0,get:function(){return c.default}});var i=n(22),a=f(n(23)),u=f(n(33)),c=r(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}},function(e,t,n){"use strict";var r=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.isMobile=function(){return void 0!==o.window.orientation},t.default=function(e){if(!e&&!(0,i.default)())return"Node";if((0,a.default)(e))return"Electron";var t="undefined"!=typeof navigator?navigator:{},n=e||t.userAgent||"";if(n.indexOf("Edge")>-1)return"Edge";var r=-1!==n.indexOf("MSIE "),u=-1!==n.indexOf("Trident/");if(r||u)return"IE";if(o.window.chrome)return"Chrome";if(o.window.safari)return"Safari";if(o.window.mozInnerScreenX)return"Firefox";return"Unknown"};var o=n(22),i=r(n(23)),a=r(n(18))},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 n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}},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,n){"use strict";n.r(t),n.d(t,"log",(function(){return I})),n.d(t,"isWebGL",(function(){return V.d})),n.d(t,"isWebGL2",(function(){return V.e})),n.d(t,"getWebGL2Context",(function(){return V.c})),n.d(t,"assertWebGLContext",(function(){return V.b})),n.d(t,"assertWebGL2Context",(function(){return V.a})),n.d(t,"polyfillContext",(function(){return G.a})),n.d(t,"getParameters",(function(){return W.a})),n.d(t,"setParameters",(function(){return W.c})),n.d(t,"resetParameters",(function(){return W.b})),n.d(t,"withParameters",(function(){return W.d})),n.d(t,"trackContextState",(function(){return R.c})),n.d(t,"pushContextState",(function(){return R.b})),n.d(t,"popContextState",(function(){return R.a})),n.d(t,"createGLContext",(function(){return $})),n.d(t,"resizeGLContext",(function(){return te})),n.d(t,"instrumentGLContext",(function(){return Z})),n.d(t,"getContextDebugInfo",(function(){return ee})),n.d(t,"cssToDeviceRatio",(function(){return z})),n.d(t,"cssToDevicePixels",(function(){return H}));var r=n(4),o=n.n(r),i=n(1),a=n.n(i),u=n(0),c=n.n(u),s=n(11),f=n.n(s),l=n(12),d=n.n(l),b=n(24),v=Object(b.a)();function g(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),t}catch(e){return null}}var h=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";f()(this,e),this.storage=g(r),this.id=t,this.config={},Object.assign(this.config,n),this._loadConfiguration()}return d()(e,[{key:"getConfiguration",value:function(){return this.config}},{key:"setConfiguration",value:function(e){return this.config={},this.updateConfiguration(e)}},{key:"updateConfiguration",value:function(e){if(Object.assign(this.config,e),this.storage){var t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}return this}},{key:"_loadConfiguration",value:function(){var e={};if(this.storage){var t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}}]),e}();function p(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600,o=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>r&&(n=Math.min(n,r/e.width));var i=e.width*n,a=e.height*n,u=["font-size:1px;","padding:".concat(Math.floor(a/2),"px ").concat(Math.floor(i/2),"px;"),"line-height:".concat(a,"px;"),"background:url(".concat(o,");"),"background-size:".concat(i,"px ").concat(a,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),u]}var y={BLACK:30,RED:31,GREEN:32,YELLOW:33,BLUE:34,MAGENTA:35,CYAN:36,WHITE:37,BRIGHT_BLACK:90,BRIGHT_RED:91,BRIGHT_GREEN:92,BRIGHT_YELLOW:93,BRIGHT_BLUE:94,BRIGHT_MAGENTA:95,BRIGHT_CYAN:96,BRIGHT_WHITE:97};function m(e){return"string"==typeof e?y[e.toUpperCase()]||y.WHITE:e}function x(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"],r=Object.getPrototypeOf(e),o=Object.getOwnPropertyNames(r),i=x(o);try{var a=function(){var r=t.value;"function"==typeof e[r]&&(n.find((function(e){return r===e}))||(e[r]=e[r].bind(e)))};for(i.s();!(t=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}}function A(e,t){if(!e)throw new Error(t||"Assertion failed")}var _=n(9);function j(){var e;if(v&&_.b.performance)e=_.b.performance.now();else if(_.a.hrtime){var t=_.a.hrtime();e=1e3*t[0]+t[1]/1e6}else e=Date.now();return e}var E={debug:v&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},S={enabled:!0,level:0};function L(){}var k={},C={once:!0};function B(e){for(var t in e)for(var n in e[t])return n||"untitled";return"empty"}var T=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:""},n=t.id;f()(this,e),this.id=n,this.VERSION="8.5.9",this._startTs=j(),this._deltaTs=j(),this.LOG_THROTTLE_TIMEOUT=0,this._storage=new h("__probe-".concat(this.id,"__"),S),this.userData={},this.timeStamp("".concat(this.id," started")),O(this),Object.seal(this)}return d()(e,[{key:"isEnabled",value:function(){return this._storage.config.enabled}},{key:"getLevel",value:function(){return this._storage.config.level}},{key:"getTotal",value:function(){return Number((j()-this._startTs).toPrecision(10))}},{key:"getDelta",value:function(){return Number((j()-this._deltaTs).toPrecision(10))}},{key:"getPriority",value:function(){return this.level}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.updateConfiguration({enabled:e}),this}},{key:"setLevel",value:function(e){return this._storage.updateConfiguration({level:e}),this}},{key:"assert",value:function(e,t){A(e,t)}},{key:"warn",value:function(e){return this._getLogFunction(0,e,E.warn,arguments,C)}},{key:"error",value:function(e){return this._getLogFunction(0,e,E.error,arguments)}},{key:"deprecated",value:function(e,t){return this.warn("`".concat(e,"` is deprecated and will be removed in a later version. Use `").concat(t,"` instead"))}},{key:"removed",value:function(e,t){return this.error("`".concat(e,"` has been removed. Use `").concat(t,"` instead"))}},{key:"probe",value:function(e,t){return this._getLogFunction(e,t,E.log,arguments,{time:!0,once:!0})}},{key:"log",value:function(e,t){return this._getLogFunction(e,t,E.debug,arguments)}},{key:"info",value:function(e,t){return this._getLogFunction(e,t,console.info,arguments)}},{key:"once",value:function(e,t){return this._getLogFunction(e,t,E.debug||E.info,arguments,C)}},{key:"table",value:function(e,t,n){return t?this._getLogFunction(e,t,console.table||L,n&&[n],{tag:B(t)}):L}},{key:"image",value:function(e){var t=e.logLevel,r=e.priority,o=e.image,i=e.message,u=void 0===i?"":i,c=e.scale,s=void 0===c?1:c;return this._shouldLog(t||r)?v?function(e){var t=e.image,n=e.message,r=void 0===n?"":n,o=e.scale,i=void 0===o?1:o;if("string"==typeof t){var u=new Image;return u.onload=function(){var e,t=p(u,r,i);(e=console).log.apply(e,a()(t))},u.src=t,L}var c=t.nodeName||"";if("img"===c.toLowerCase()){var s;return(s=console).log.apply(s,a()(p(t,r,i))),L}if("canvas"===c.toLowerCase()){var f=new Image;return f.onload=function(){var e;return(e=console).log.apply(e,a()(p(f,r,i)))},f.src=t.toDataURL(),L}return L}({image:o,message:u,scale:s}):function(e){var t=e.image,r=(e.message,e.scale),o=void 0===r?1:r,i=null;try{i=n(31)}catch(e){}if(i)return function(){return i(t,{fit:"box",width:"".concat(Math.round(80*o),"%")}).then((function(e){return console.log(e)}))};return L}({image:o,message:u,scale:s}):L}},{key:"settings",value:function(){console.table?console.table(this._storage.config):console.log(this._storage.config)}},{key:"get",value:function(e){return this._storage.config[e]}},{key:"set",value:function(e,t){this._storage.updateConfiguration(c()({},e,t))}},{key:"time",value:function(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}},{key:"timeEnd",value:function(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}},{key:"timeStamp",value:function(e,t){return this._getLogFunction(e,t,console.timeStamp||L)}},{key:"group",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1},r=n=M({logLevel:e,message:t,opts:n}),o=r.collapsed;return n.method=(o?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}},{key:"groupCollapsed",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(e,t,Object.assign({},n,{collapsed:!0}))}},{key:"groupEnd",value:function(e){return this._getLogFunction(e,"",console.groupEnd||L)}},{key:"withGroup",value:function(e,t,n){this.group(e,t)();try{n()}finally{this.groupEnd(e)()}}},{key:"trace",value:function(){console.trace&&console.trace()}},{key:"_shouldLog",value:function(e){return this.isEnabled()&&this.getLevel()>=F(e)}},{key:"_getLogFunction",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0;if(this._shouldLog(e)){var i;o=M({logLevel:e,message:t,args:r,opts:o}),A(n=n||o.method),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=j();var u=o.tag||o.message;if(o.once){if(k[u])return L;k[u]=j()}return t=P(this.id,o.message,o),(i=n).bind.apply(i,[console,t].concat(a()(o.args)))}return L}},{key:"level",set:function(e){this.setLevel(e)},get:function(){return this.getLevel()}},{key:"priority",set:function(e){this.level=e},get:function(){return this.level}}]),e}();function F(e){if(!e)return 0;var t;switch(o()(e)){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return A(Number.isFinite(t)&&t>=0),t}function M(e){var t=e.logLevel,n=e.message;e.logLevel=F(t);for(var r=e.args?Array.from(e.args):[];r.length&&r.shift()!==n;);switch(e.args=r,o()(t)){case"string":case"function":void 0!==n&&r.unshift(n),e.message=t;break;case"object":Object.assign(e,t)}"function"==typeof e.message&&(e.message=e.message());var i=o()(e.message);return A("string"===i||"object"===i),Object.assign(e,e.opts)}function P(e,t,n){if("string"==typeof t){var r=n.time?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=Math.max(t-e.length,0);return"".concat(" ".repeat(n)).concat(e)}((u=n.total)<10?"".concat(u.toFixed(2),"ms"):u<100?"".concat(u.toFixed(1),"ms"):u<1e3?"".concat(u.toFixed(0),"ms"):"".concat((u/1e3).toFixed(2),"s")):"";t=n.time?"".concat(e,": ").concat(r," ").concat(t):"".concat(e,": ").concat(t),o=t,i=n.color,a=n.background,v||"string"!=typeof o||(i&&(i=m(i),o="[".concat(i,"m").concat(o,"[39m")),a&&(i=m(a),o="[".concat(a+10,"m").concat(o,"[49m"))),t=o}var o,i,a,u;return t}T.VERSION="8.5.9";var I=new T({id:"luma.gl"}),V=n(2),G=n(21),W=n(8),R=n(7),N=n(5),D=n(3);function z(e){var t=e.luma;if(e.canvas&&t){var n=t.canvasSizeInfo.clientWidth;return n?e.drawingBufferWidth/n:1}return 1}function H(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=z(e),o=e.drawingBufferWidth,i=e.drawingBufferHeight;return X(t,r,o,i,n)}function U(e){var t="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(e)?e<=0?1:e:e?t:1}function X(e,t,n,r,o){var i,a=q(e[0],t,n),u=Q(e[1],t,r,o),c=q(e[0]+1,t,n),s=c===n-1?c:c-1;return c=Q(e[1]+1,t,r,o),o?(i=u,u=c=0===c?c:c+1):i=c===r-1?c:c-1,{x:a,y:u,width:Math.max(s-a+1,1),height:Math.max(i-u+1,1)}}function q(e,t,n){return Math.min(Math.round(e*t),n-1)}function Q(e,t,n,r){return r?Math.max(0,n-1-Math.round(e*t)):Math.min(Math.round(e*t),n-1)}var Y=Object(N.isBrowser)(),K=Y&&"undefined"!=typeof document,J={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(D.a)(Y,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils");var t,n=e=Object.assign({},J,e),r=n.width,o=n.height;function i(t){if(e.throwOnError)throw new Error(t);return console.error(t),null}e.onError=i;var a=e,u=a.canvas,c=re({canvas:u,width:r,height:o,onError:i});return(t=ne(c,e))?(oe(t=Z(t,e)),t):null}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||e._instrumented)return e;e._version=e._version||ie(e),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};var n=t=Object.assign({},J,t),r=n.manageState,o=n.debug;return r&&Object(R.c)(e,{copyState:!1,log:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.log.apply(I,[1].concat(t))()}}),Y&&o&&(N.global.makeDebugContext?(e=N.global.makeDebugContext(e,t),I.level=Math.max(I.level,1)):I.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),e._instrumented=!0,e}function ee(e){var t=e.getParameter(7936),n=e.getParameter(7937),r=e.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&e.getParameter(r.UNMASKED_VENDOR_WEBGL||7936)||t,renderer:r&&e.getParameter(r.UNMASKED_RENDERER_WEBGL||7937)||n,vendorMasked:t,rendererMasked:n,version:e.getParameter(7938),shadingLanguageVersion:e.getParameter(35724)}}function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.canvas){var n=U(t.useDevicePixels);ae(e,n,t)}else{var r=e.getExtension("STACKGL_resize_drawingbuffer");r&&"width"in t&&"height"in t&&r.resize(t.width,t.height)}}function ne(e,t){var n=t.onError,r=null,o=function(e){return r=e.statusMessage||r};e.addEventListener("webglcontextcreationerror",o,!1);var i=t.webgl1,a=void 0===i||i,u=t.webgl2,c=void 0===u||u,s=null;return c&&(s=(s=s||e.getContext("webgl2",t))||e.getContext("experimental-webgl2",t)),a&&(s=(s=s||e.getContext("webgl",t))||e.getContext("experimental-webgl",t)),e.removeEventListener("webglcontextcreationerror",o,!1),s?(t.onContextLost&&e.addEventListener("webglcontextlost",t.onContextLost,!1),t.onContextRestored&&e.addEventListener("webglcontextrestored",t.onContextRestored,!1),s):n("Failed to create ".concat(c&&!a?"WebGL2":"WebGL"," context: ").concat(r||"Unknown error"))}function re(e){var t,n=e.canvas,r=e.width,o=void 0===r?800:r,i=e.height,a=void 0===i?600:i,u=e.onError;"string"==typeof n?(K&&"complete"===document.readyState||u("createGLContext called on canvas '".concat(n,"' before page was loaded")),t=document.getElementById(n)):n?t=n:((t=document.createElement("canvas")).id="lumagl-canvas",t.style.width=Number.isFinite(o)?"".concat(o,"px"):"100%",t.style.height=Number.isFinite(a)?"".concat(a,"px"):"100%",document.body.insertBefore(t,document.body.firstChild));return t}function oe(e){var t=Object(V.e)(e)?"WebGL2":"WebGL1",n=ee(e),r=n?"(".concat(n.vendor,",").concat(n.renderer,")"):"",o=e.debug?" debug":"";I.info(1,"".concat(t).concat(o," context ").concat(r))()}function ie(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext?2:1}function ae(e,t,n){var r="width"in n?n.width:e.canvas.clientWidth,o="height"in n?n.height:e.canvas.clientHeight;r&&o||(I.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,r=e.canvas.width||1,o=e.canvas.height||1),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};var i=e.luma.canvasSizeInfo;if(i.clientWidth!==r||i.clientHeight!==o||i.devicePixelRatio!==t){var a=t,u=Math.floor(r*a),c=Math.floor(o*a);e.canvas.width=u,e.canvas.height=c,e.drawingBufferWidth===u&&e.drawingBufferHeight===c||(I.warn("Device pixel ratio clamped")(),a=Math.min(e.drawingBufferWidth/r,e.drawingBufferHeight/o),e.canvas.width=Math.floor(r*a),e.canvas.height=Math.floor(o*a)),Object.assign(e.luma.canvasSizeInfo,{clientWidth:r,clientHeight:o,devicePixelRatio:t})}}}])})); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(14),o=n(15),i=n(9),a=n(16);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var o=n(2),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":n.n(o)()(r))&&r},a=i.window||i.self||i.global,u=i.process||{};console}).call(this,n(17),n(6))},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 n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&h())}function h(){if(!l){var e=u(d);l=!0;for(var t=s.length;t;){for(c=s,s=[];++f<t;)c&&c[f].run();f=-1,t=s.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new v(e,t)),1!==s.length||l||u(h)},v.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=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,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,n){var r=n(19),o=n(20),i=n(9),a=n(21);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(8);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(2),o=n.n(r),i=n(11);function a(){return!("object"===(void 0===e?"undefined":o()(e))&&"[object process]"===String(e)&&!e.browser)||Object(i.a)()}}).call(this,n(6))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(2),o=n.n(r);function i(t){if("undefined"!=typeof window&&"object"===o()(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===o()(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":o()(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=t||n;return!!(r&&r.indexOf("Electron")>=0)}}).call(this,n(6))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(2),o=n.n(r);function i(t){if("undefined"!=typeof window&&"object"===o()(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===o()(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":o()(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=t||n;return!!(r&&r.indexOf("Electron")>=0)}}).call(this,n(6))},function(e,t,n){var r=n(22);globalThis.luma=globalThis.luma||{},e.exports=Object.assign(globalThis.luma,r)},function(e,t,n){var r=n(8);e.exports=function(e){if(Array.isArray(e))return r(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){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){},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 n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}},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,n){"use strict";n.r(t),n.d(t,"log",(function(){return I})),n.d(t,"isWebGL",(function(){return P})),n.d(t,"isWebGL2",(function(){return R})),n.d(t,"getWebGL2Context",(function(){return W})),n.d(t,"assertWebGLContext",(function(){return N})),n.d(t,"assertWebGL2Context",(function(){return D})),n.d(t,"polyfillContext",(function(){return te})),n.d(t,"getParameters",(function(){return Ce})),n.d(t,"setParameters",(function(){return ke})),n.d(t,"resetParameters",(function(){return Fe})),n.d(t,"withParameters",(function(){return Be})),n.d(t,"trackContextState",(function(){return Oe})),n.d(t,"pushContextState",(function(){return Se})),n.d(t,"popContextState",(function(){return je})),n.d(t,"createGLContext",(function(){return ze})),n.d(t,"resizeGLContext",(function(){return qe})),n.d(t,"instrumentGLContext",(function(){return Ue})),n.d(t,"getContextDebugInfo",(function(){return Xe})),n.d(t,"cssToDeviceRatio",(function(){return Ge})),n.d(t,"cssToDevicePixels",(function(){return Ie}));var r=n(2),o=n.n(r),i=n(1),a=n.n(i),u=n(0),c=n.n(u),s=n(4),l=n.n(s),f=n(5),d=n.n(f),h=n(10),v=Object(h.a)();function g(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),t}catch(e){return null}}var b=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";l()(this,e),this.storage=g(r),this.id=t,this.config={},Object.assign(this.config,n),this._loadConfiguration()}return d()(e,[{key:"getConfiguration",value:function(){return this.config}},{key:"setConfiguration",value:function(e){return this.config={},this.updateConfiguration(e)}},{key:"updateConfiguration",value:function(e){if(Object.assign(this.config,e),this.storage){var t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}return this}},{key:"_loadConfiguration",value:function(){var e={};if(this.storage){var t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}}]),e}();function p(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600,o=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>r&&(n=Math.min(n,r/e.width));var i=e.width*n,a=e.height*n,u=["font-size:1px;","padding:".concat(Math.floor(a/2),"px ").concat(Math.floor(i/2),"px;"),"line-height:".concat(a,"px;"),"background:url(".concat(o,");"),"background-size:".concat(i,"px ").concat(a,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),u]}var y={BLACK:30,RED:31,GREEN:32,YELLOW:33,BLUE:34,MAGENTA:35,CYAN:36,WHITE:37,BRIGHT_BLACK:90,BRIGHT_RED:91,BRIGHT_GREEN:92,BRIGHT_YELLOW:93,BRIGHT_BLUE:94,BRIGHT_MAGENTA:95,BRIGHT_CYAN:96,BRIGHT_WHITE:97};function m(e){return"string"==typeof e?y[e.toUpperCase()]||y.WHITE:e}function x(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"],r=Object.getPrototypeOf(e),o=Object.getOwnPropertyNames(r),i=x(o);try{var a=function(){var r=t.value;"function"==typeof e[r]&&(n.find((function(e){return r===e}))||(e[r]=e[r].bind(e)))};for(i.s();!(t=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}}function _(e,t){if(!e)throw new Error(t||"Assertion failed")}var E=n(3);function O(){var e;if(v&&E.b.performance)e=E.b.performance.now();else if(E.a.hrtime){var t=E.a.hrtime();e=1e3*t[0]+t[1]/1e6}else e=Date.now();return e}var S={debug:v&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},j={enabled:!0,level:0};function L(){}var T={},k={once:!0};function C(e){for(var t in e)for(var n in e[t])return n||"untitled";return"empty"}var F=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:""},n=t.id;l()(this,e),this.id=n,this.VERSION="8.5.10",this._startTs=O(),this._deltaTs=O(),this.LOG_THROTTLE_TIMEOUT=0,this._storage=new b("__probe-".concat(this.id,"__"),j),this.userData={},this.timeStamp("".concat(this.id," started")),w(this),Object.seal(this)}return d()(e,[{key:"isEnabled",value:function(){return this._storage.config.enabled}},{key:"getLevel",value:function(){return this._storage.config.level}},{key:"getTotal",value:function(){return Number((O()-this._startTs).toPrecision(10))}},{key:"getDelta",value:function(){return Number((O()-this._deltaTs).toPrecision(10))}},{key:"getPriority",value:function(){return this.level}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.updateConfiguration({enabled:e}),this}},{key:"setLevel",value:function(e){return this._storage.updateConfiguration({level:e}),this}},{key:"assert",value:function(e,t){_(e,t)}},{key:"warn",value:function(e){return this._getLogFunction(0,e,S.warn,arguments,k)}},{key:"error",value:function(e){return this._getLogFunction(0,e,S.error,arguments)}},{key:"deprecated",value:function(e,t){return this.warn("`".concat(e,"` is deprecated and will be removed in a later version. Use `").concat(t,"` instead"))}},{key:"removed",value:function(e,t){return this.error("`".concat(e,"` has been removed. Use `").concat(t,"` instead"))}},{key:"probe",value:function(e,t){return this._getLogFunction(e,t,S.log,arguments,{time:!0,once:!0})}},{key:"log",value:function(e,t){return this._getLogFunction(e,t,S.debug,arguments)}},{key:"info",value:function(e,t){return this._getLogFunction(e,t,console.info,arguments)}},{key:"once",value:function(e,t){return this._getLogFunction(e,t,S.debug||S.info,arguments,k)}},{key:"table",value:function(e,t,n){return t?this._getLogFunction(e,t,console.table||L,n&&[n],{tag:C(t)}):L}},{key:"image",value:function(e){var t=e.logLevel,r=e.priority,o=e.image,i=e.message,u=void 0===i?"":i,c=e.scale,s=void 0===c?1:c;return this._shouldLog(t||r)?v?function(e){var t=e.image,n=e.message,r=void 0===n?"":n,o=e.scale,i=void 0===o?1:o;if("string"==typeof t){var u=new Image;return u.onload=function(){var e,t=p(u,r,i);(e=console).log.apply(e,a()(t))},u.src=t,L}var c=t.nodeName||"";if("img"===c.toLowerCase()){var s;return(s=console).log.apply(s,a()(p(t,r,i))),L}if("canvas"===c.toLowerCase()){var l=new Image;return l.onload=function(){var e;return(e=console).log.apply(e,a()(p(l,r,i)))},l.src=t.toDataURL(),L}return L}({image:o,message:u,scale:s}):function(e){var t=e.image,r=(e.message,e.scale),o=void 0===r?1:r,i=null;try{i=n(18)}catch(e){}if(i)return function(){return i(t,{fit:"box",width:"".concat(Math.round(80*o),"%")}).then((function(e){return console.log(e)}))};return L}({image:o,message:u,scale:s}):L}},{key:"settings",value:function(){console.table?console.table(this._storage.config):console.log(this._storage.config)}},{key:"get",value:function(e){return this._storage.config[e]}},{key:"set",value:function(e,t){this._storage.updateConfiguration(c()({},e,t))}},{key:"time",value:function(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}},{key:"timeEnd",value:function(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}},{key:"timeStamp",value:function(e,t){return this._getLogFunction(e,t,console.timeStamp||L)}},{key:"group",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1},r=n=V({logLevel:e,message:t,opts:n}),o=r.collapsed;return n.method=(o?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}},{key:"groupCollapsed",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(e,t,Object.assign({},n,{collapsed:!0}))}},{key:"groupEnd",value:function(e){return this._getLogFunction(e,"",console.groupEnd||L)}},{key:"withGroup",value:function(e,t,n){this.group(e,t)();try{n()}finally{this.groupEnd(e)()}}},{key:"trace",value:function(){console.trace&&console.trace()}},{key:"_shouldLog",value:function(e){return this.isEnabled()&&this.getLevel()>=B(e)}},{key:"_getLogFunction",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0;if(this._shouldLog(e)){var i;o=V({logLevel:e,message:t,args:r,opts:o}),_(n=n||o.method),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=O();var u=o.tag||o.message;if(o.once){if(T[u])return L;T[u]=O()}return t=G(this.id,o.message,o),(i=n).bind.apply(i,[console,t].concat(a()(o.args)))}return L}},{key:"level",set:function(e){this.setLevel(e)},get:function(){return this.getLevel()}},{key:"priority",set:function(e){this.level=e},get:function(){return this.level}}]),e}();function B(e){if(!e)return 0;var t;switch(o()(e)){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return _(Number.isFinite(t)&&t>=0),t}function V(e){var t=e.logLevel,n=e.message;e.logLevel=B(t);for(var r=e.args?Array.from(e.args):[];r.length&&r.shift()!==n;);switch(e.args=r,o()(t)){case"string":case"function":void 0!==n&&r.unshift(n),e.message=t;break;case"object":Object.assign(e,t)}"function"==typeof e.message&&(e.message=e.message());var i=o()(e.message);return _("string"===i||"object"===i),Object.assign(e,e.opts)}function G(e,t,n){if("string"==typeof t){var r=n.time?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=Math.max(t-e.length,0);return"".concat(" ".repeat(n)).concat(e)}((u=n.total)<10?"".concat(u.toFixed(2),"ms"):u<100?"".concat(u.toFixed(1),"ms"):u<1e3?"".concat(u.toFixed(0),"ms"):"".concat((u/1e3).toFixed(2),"s")):"";t=n.time?"".concat(e,": ").concat(r," ").concat(t):"".concat(e,": ").concat(t),o=t,i=n.color,a=n.background,v||"string"!=typeof o||(i&&(i=m(i),o="[".concat(i,"m").concat(o,"[39m")),a&&(i=m(a),o="[".concat(a+10,"m").concat(o,"[49m"))),t=o}var o,i,a,u;return t}F.VERSION="8.5.10";var I=new F({id:"luma.gl"});function M(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}function P(e){return"undefined"!=typeof WebGLRenderingContext&&e instanceof WebGLRenderingContext||("undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||Boolean(e&&Number.isFinite(e._version)))}function R(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||Boolean(e&&2===e._version)}function W(e){return R(e)?e:null}function N(e){return M(P(e),"Invalid WebGLRenderingContext"),e}function D(e){return M(R(e),"Requires WebGL2"),e}var H={};function z(e,t){var n;H[e]=!0,void 0!==t&&(n=t,globalThis.console&&globalThis.console.error&&globalThis.console.error(n))}var U=function e(t){var n=t.gl;this.ext=t,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(t.maxVertexAttribs);for(var r=0;r<this.attribs.length;r++){var o=new e.VertexAttrib(n);this.attribs[r]=o}this.maxAttrib=0};(U.VertexAttrib=function(e){this.enabled=!1,this.buffer=null,this.size=4,this.type=5126,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()}).prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};var X,q=function(e){var t=this;this.gl=e,function(e){var t=e.getError;e.getError=function(){var n;do{0!==(n=t.apply(e))&&(H[n]=!0)}while(0!==n);for(n in H)if(H[n])return delete H[n],parseInt(n,10);return 0}}(e);var n=this.original={getParameter:e.getParameter,enableVertexAttribArray:e.enableVertexAttribArray,disableVertexAttribArray:e.disableVertexAttribArray,bindBuffer:e.bindBuffer,getVertexAttrib:e.getVertexAttrib,vertexAttribPointer:e.vertexAttribPointer};e.getParameter=function(e){return e===t.VERTEX_ARRAY_BINDING_OES?t.currentVertexArrayObject===t.defaultVertexArrayObject?null:t.currentVertexArrayObject:n.getParameter.apply(this,arguments)},e.enableVertexAttribArray=function(e){var r=t.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,e);var o=r.attribs[e];return o.enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},e.disableVertexAttribArray=function(e){var r=t.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,e);var o=r.attribs[e];return o.enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},e.bindBuffer=function(e,r){switch(e){case 34962:t.currentArrayBuffer=r;break;case 34963:t.currentVertexArrayObject.elementArrayBuffer=r}return n.bindBuffer.apply(this,arguments)},e.getVertexAttrib=function(e,r){var o=t.currentVertexArrayObject,i=o.attribs[e];switch(r){case 34975:return i.buffer;case 34338:return i.enabled;case 34339:return i.size;case 34340:return i.stride;case 34341:return i.type;case 34922:return i.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},e.vertexAttribPointer=function(e,r,o,i,a,u){var c=t.currentVertexArrayObject;c.maxAttrib=Math.max(c.maxAttrib,e);var s=c.attribs[e];return s.buffer=t.currentArrayBuffer,s.size=r,s.type=o,s.normalized=i,s.stride=a,s.offset=u,s.recache(),n.vertexAttribPointer.apply(this,arguments)},e.instrumentExtension&&e.instrumentExtension(this,"OES_vertex_array_object"),e.canvas&&e.canvas.addEventListener("webglcontextrestored",(function(){var e;e="OESVertexArrayObject emulation library context restored",globalThis.console&&globalThis.console.log&&globalThis.console.log(e),t.reset_()}),!0),this.reset_()};q.prototype.VERTEX_ARRAY_BINDING_OES=34229,q.prototype.reset_=function(){if(void 0!==this.vertexArrayObjects)for(var e=0;e<this.vertexArrayObjects.length;++e)this.vertexArrayObjects.isAlive=!1;var t=this.gl;this.maxVertexAttribs=t.getParameter(34921),this.defaultVertexArrayObject=new U(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)},q.prototype.createVertexArrayOES=function(){var e=new U(this);return this.vertexArrayObjects.push(e),e},q.prototype.deleteVertexArrayOES=function(e){e.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(e),1),this.currentVertexArrayObject===e&&this.bindVertexArrayOES(null)},q.prototype.isVertexArrayOES=function(e){return!!(e&&e instanceof U&&e.hasBeenBound&&e.ext===this)},q.prototype.bindVertexArrayOES=function(e){var t=this.gl;if(!e||e.isAlive){var n=this.original,r=this.currentVertexArrayObject;this.currentVertexArrayObject=e||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;var o=this.currentVertexArrayObject;if(r!==o){r&&o.elementArrayBuffer===r.elementArrayBuffer||n.bindBuffer.call(t,34963,o.elementArrayBuffer);for(var i=this.currentArrayBuffer,a=Math.max(r?r.maxAttrib:0,o.maxAttrib),u=0;u<=a;u++){var c=o.attribs[u],s=r?r.attribs[u]:null;if(r&&c.enabled===s.enabled||(c.enabled?n.enableVertexAttribArray.call(t,u):n.disableVertexAttribArray.call(t,u)),c.enabled){var l=!1;r&&c.buffer===s.buffer||(i!==c.buffer&&(n.bindBuffer.call(t,34962,c.buffer),i=c.buffer),l=!0),(l||c.cached!==s.cached)&&n.vertexAttribPointer.call(t,u,c.size,c.type,c.normalized,c.stride,c.offset)}}this.currentArrayBuffer!==i&&n.bindBuffer.call(t,34962,this.currentArrayBuffer)}}else z(1282,"bindVertexArrayOES: attempt to bind deleted arrayObject")};var Q,Y=function(e){return R(e)?void 0:0},K=(X={},c()(X,3074,(function(e){return R(e)?void 0:36064})),c()(X,35723,(function(e){return R(e)?void 0:4352})),c()(X,35977,Y),c()(X,32937,Y),c()(X,36795,(function(e,t){var n=R(e)?e.getExtension("EXT_disjoint_timer_query_webgl2"):e.getExtension("EXT_disjoint_timer_query");return n&&n.GPU_DISJOINT_EXT?t(n.GPU_DISJOINT_EXT):0})),c()(X,37445,(function(e,t){var n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_VENDOR_WEBGL||7936)})),c()(X,37446,(function(e,t){var n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_RENDERER_WEBGL||7937)})),c()(X,34047,(function(e,t){var n=e.luma.extensions.EXT_texture_filter_anisotropic;return n?t(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1})),c()(X,32883,Y),c()(X,35071,Y),c()(X,37447,Y),c()(X,36063,(function(e,t){if(!R(e)){var n=e.getExtension("WEBGL_draw_buffers");return n?t(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}})),c()(X,35379,Y),c()(X,35374,Y),c()(X,35377,Y),c()(X,34852,(function(e){if(!R(e)){var t=e.getExtension("WEBGL_draw_buffers");return t?t.MAX_DRAW_BUFFERS_WEBGL:0}})),c()(X,36203,(function(e){return e.getExtension("OES_element_index")?2147483647:65535})),c()(X,33001,(function(e){return e.getExtension("OES_element_index")?16777216:65535})),c()(X,33e3,(function(e){return 16777216})),c()(X,37157,Y),c()(X,35373,Y),c()(X,35657,Y),c()(X,36183,Y),c()(X,37137,Y),c()(X,34045,Y),c()(X,35978,Y),c()(X,35979,Y),c()(X,35968,Y),c()(X,35376,Y),c()(X,35375,Y),c()(X,35659,Y),c()(X,37154,Y),c()(X,35371,Y),c()(X,35658,Y),c()(X,35076,Y),c()(X,35077,Y),c()(X,35380,Y),X);var J=(Q={},c()(Q,"OES_vertex_array_object",{meta:{suffix:"OES"},createVertexArray:function(){M(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:function(){},bindVertexArray:function(){},isVertexArray:function(){return!1}}),c()(Q,"ANGLE_instanced_arrays",{meta:{suffix:"ANGLE"},vertexAttribDivisor:function(e,t){M(0===t,"WebGL instanced rendering not supported")},drawElementsInstanced:function(){},drawArraysInstanced:function(){}}),c()(Q,"WEBGL_draw_buffers",{meta:{suffix:"WEBGL"},drawBuffers:function(){M(!1)}}),c()(Q,"EXT_disjoint_timer_query",{meta:{suffix:"EXT"},createQuery:function(){M(!1)},deleteQuery:function(){M(!1)},beginQuery:function(){M(!1)},endQuery:function(){},getQuery:function(e,t){return this.getQueryObject(e,t)},getQueryParameter:function(e,t){return this.getQueryObject(e,t)},getQueryObject:function(){}}),Q),$={readBuffer:function(e,t,n){R(e)&&t(n)},getVertexAttrib:function(e,t,n,r){var o,i=function(e,t){return{webgl2:R(e),ext:e.getExtension(t)}}(e,"ANGLE_instanced_arrays"),a=i.webgl2,u=i.ext;switch(r){case 35069:o=!!a&&void 0;break;case 35070:o=a||u?void 0:0}return void 0!==o?o:t(n,r)},getProgramParameter:function(e,t,n,r){if(!R(e))switch(r){case 35967:return 35981;case 35971:case 35382:return 0}return t(n,r)},getInternalformatParameter:function(e,t,n,r,o){if(!R(e))switch(o){case 32937:return new Int32Array([0])}return e.getInternalformatParameter(n,r,o)},getTexParameter:function(e,t,n,r){switch(r){case 34046:var o=e.luma.extensions.EXT_texture_filter_anisotropic;r=o&&o.TEXTURE_MAX_ANISOTROPY_EXT||34046}return t(n,r)},getParameter:function(e,t,n){var r=K[n],o="function"==typeof r?r(e,t,n):r;return void 0!==o?o:t(n)},hint:function(e,t,n,r){return t(n,r)}};function Z(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ee(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function te(e){e.luma=e.luma||{};var t=e.luma;return t.polyfilled||(!function(e){if("function"!=typeof e.createVertexArray){var t=e.getSupportedExtensions;e.getSupportedExtensions=function(){var e=t.call(this)||[];return e.indexOf("OES_vertex_array_object")<0&&e.push("OES_vertex_array_object"),e};var n=e.getExtension;e.getExtension=function(t){var r=n.call(this,t);return r||("OES_vertex_array_object"!==t?null:(e.__OESVertexArrayObject||(this.__OESVertexArrayObject=new q(this)),this.__OESVertexArrayObject))}}}(e),function(e){e.luma.extensions={};var t,n=Z(e.getSupportedExtensions()||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.luma[r]=e.getExtension(r)}}catch(e){n.e(e)}finally{n.f()}}(e),function(e,t){var n,r=Z(Object.getOwnPropertyNames(t));try{for(r.s();!(n=r.n()).done;){var o=n.value;"overrides"!==o&&ne(e,{extension:o,target:e.luma,target2:e})}}catch(e){r.e(e)}finally{r.f()}}(e,J),function(e,t){var n=t.target,r=t.target2;Object.keys($).forEach((function(t){if("function"==typeof $[t]){var o=e[t]?e[t].bind(e):function(){},i=$[t].bind(null,e,o);n[t]=i,r[t]=i}}))}(e,{target:t,target2:e}),t.polyfilled=!0),e}function ne(e,t){var n=t.extension,r=t.target,o=t.target2,i=J[n];M(i);for(var a=i.meta,u=(void 0===a?{}:a).suffix,c=void 0===u?"":u,s=e.getExtension(n),l=function(){var t=d[f],n="".concat(t).concat(c),a=null;"meta"===t||"function"==typeof e[t]||(s&&"function"==typeof s[n]?a=function(){return s[n].apply(s,arguments)}:"function"==typeof i[t]&&(a=i[t].bind(r))),a&&(r[t]=a,o[t]=a)},f=0,d=Object.keys(i);f<d.length;f++)l()}globalThis.polyfillContext=te;var re,oe,ie,ae=n(7),ue=n.n(ae),ce=(re={},c()(re,3042,!1),c()(re,32773,new Float32Array([0,0,0,0])),c()(re,32777,32774),c()(re,34877,32774),c()(re,32969,1),c()(re,32968,0),c()(re,32971,1),c()(re,32970,0),c()(re,3106,new Float32Array([0,0,0,0])),c()(re,3107,[!0,!0,!0,!0]),c()(re,2884,!1),c()(re,2885,1029),c()(re,2929,!1),c()(re,2931,1),c()(re,2932,513),c()(re,2928,new Float32Array([0,1])),c()(re,2930,!0),c()(re,3024,!0),c()(re,36006,null),c()(re,2886,2305),c()(re,33170,4352),c()(re,2849,1),c()(re,32823,!1),c()(re,32824,0),c()(re,10752,0),c()(re,32938,1),c()(re,32939,!1),c()(re,3089,!1),c()(re,3088,new Int32Array([0,0,1024,1024])),c()(re,2960,!1),c()(re,2961,0),c()(re,2968,4294967295),c()(re,36005,4294967295),c()(re,2962,519),c()(re,2967,0),c()(re,2963,4294967295),c()(re,34816,519),c()(re,36003,0),c()(re,36004,4294967295),c()(re,2964,7680),c()(re,2965,7680),c()(re,2966,7680),c()(re,34817,7680),c()(re,34818,7680),c()(re,34819,7680),c()(re,2978,[0,0,1024,1024]),c()(re,3333,4),c()(re,3317,4),c()(re,37440,!1),c()(re,37441,!1),c()(re,37443,37444),c()(re,35723,4352),c()(re,36010,null),c()(re,35977,!1),c()(re,3330,0),c()(re,3332,0),c()(re,3331,0),c()(re,3314,0),c()(re,32878,0),c()(re,3316,0),c()(re,3315,0),c()(re,32877,0),re),se=function(e,t,n){return t?e.enable(n):e.disable(n)},le=function(e,t,n){return e.hint(n,t)},fe=function(e,t,n){return e.pixelStorei(n,t)};function de(e){return Array.isArray(e)||ArrayBuffer.isView(e)}var he=(oe={},c()(oe,3042,se),c()(oe,32773,(function(e,t){return e.blendColor.apply(e,a()(t))})),c()(oe,32777,"blendEquation"),c()(oe,34877,"blendEquation"),c()(oe,32969,"blendFunc"),c()(oe,32968,"blendFunc"),c()(oe,32971,"blendFunc"),c()(oe,32970,"blendFunc"),c()(oe,3106,(function(e,t){return e.clearColor.apply(e,a()(t))})),c()(oe,3107,(function(e,t){return e.colorMask.apply(e,a()(t))})),c()(oe,2884,se),c()(oe,2885,(function(e,t){return e.cullFace(t)})),c()(oe,2929,se),c()(oe,2931,(function(e,t){return e.clearDepth(t)})),c()(oe,2932,(function(e,t){return e.depthFunc(t)})),c()(oe,2928,(function(e,t){return e.depthRange.apply(e,a()(t))})),c()(oe,2930,(function(e,t){return e.depthMask(t)})),c()(oe,3024,se),c()(oe,35723,le),c()(oe,36006,(function(e,t){var n=R(e)?36009:36160;return e.bindFramebuffer(n,t)})),c()(oe,2886,(function(e,t){return e.frontFace(t)})),c()(oe,33170,le),c()(oe,2849,(function(e,t){return e.lineWidth(t)})),c()(oe,32823,se),c()(oe,32824,"polygonOffset"),c()(oe,10752,"polygonOffset"),c()(oe,35977,se),c()(oe,32938,"sampleCoverage"),c()(oe,32939,"sampleCoverage"),c()(oe,3089,se),c()(oe,3088,(function(e,t){return e.scissor.apply(e,a()(t))})),c()(oe,2960,se),c()(oe,2961,(function(e,t){return e.clearStencil(t)})),c()(oe,2968,(function(e,t){return e.stencilMaskSeparate(1028,t)})),c()(oe,36005,(function(e,t){return e.stencilMaskSeparate(1029,t)})),c()(oe,2962,"stencilFuncFront"),c()(oe,2967,"stencilFuncFront"),c()(oe,2963,"stencilFuncFront"),c()(oe,34816,"stencilFuncBack"),c()(oe,36003,"stencilFuncBack"),c()(oe,36004,"stencilFuncBack"),c()(oe,2964,"stencilOpFront"),c()(oe,2965,"stencilOpFront"),c()(oe,2966,"stencilOpFront"),c()(oe,34817,"stencilOpBack"),c()(oe,34818,"stencilOpBack"),c()(oe,34819,"stencilOpBack"),c()(oe,2978,(function(e,t){return e.viewport.apply(e,a()(t))})),c()(oe,3333,fe),c()(oe,3317,fe),c()(oe,37440,fe),c()(oe,37441,fe),c()(oe,37443,fe),c()(oe,3330,fe),c()(oe,3332,fe),c()(oe,3331,fe),c()(oe,36010,(function(e,t){return e.bindFramebuffer(36008,t)})),c()(oe,3314,fe),c()(oe,32878,fe),c()(oe,3316,fe),c()(oe,3315,fe),c()(oe,32877,fe),c()(oe,"framebuffer",(function(e,t){var n=t&&"handle"in t?t.handle:t;return e.bindFramebuffer(36160,n)})),c()(oe,"blend",(function(e,t){return t?e.enable(3042):e.disable(3042)})),c()(oe,"blendColor",(function(e,t){return e.blendColor.apply(e,a()(t))})),c()(oe,"blendEquation",(function(e,t){t=de(t)?t:[t,t],e.blendEquationSeparate.apply(e,a()(t))})),c()(oe,"blendFunc",(function(e,t){t=de(t)&&2===t.length?[].concat(a()(t),a()(t)):t,e.blendFuncSeparate.apply(e,a()(t))})),c()(oe,"clearColor",(function(e,t){return e.clearColor.apply(e,a()(t))})),c()(oe,"clearDepth",(function(e,t){return e.clearDepth(t)})),c()(oe,"clearStencil",(function(e,t){return e.clearStencil(t)})),c()(oe,"colorMask",(function(e,t){return e.colorMask.apply(e,a()(t))})),c()(oe,"cull",(function(e,t){return t?e.enable(2884):e.disable(2884)})),c()(oe,"cullFace",(function(e,t){return e.cullFace(t)})),c()(oe,"depthTest",(function(e,t){return t?e.enable(2929):e.disable(2929)})),c()(oe,"depthFunc",(function(e,t){return e.depthFunc(t)})),c()(oe,"depthMask",(function(e,t){return e.depthMask(t)})),c()(oe,"depthRange",(function(e,t){return e.depthRange.apply(e,a()(t))})),c()(oe,"dither",(function(e,t){return t?e.enable(3024):e.disable(3024)})),c()(oe,"derivativeHint",(function(e,t){e.hint(35723,t)})),c()(oe,"frontFace",(function(e,t){return e.frontFace(t)})),c()(oe,"mipmapHint",(function(e,t){return e.hint(33170,t)})),c()(oe,"lineWidth",(function(e,t){return e.lineWidth(t)})),c()(oe,"polygonOffsetFill",(function(e,t){return t?e.enable(32823):e.disable(32823)})),c()(oe,"polygonOffset",(function(e,t){return e.polygonOffset.apply(e,a()(t))})),c()(oe,"sampleCoverage",(function(e,t){return e.sampleCoverage.apply(e,a()(t))})),c()(oe,"scissorTest",(function(e,t){return t?e.enable(3089):e.disable(3089)})),c()(oe,"scissor",(function(e,t){return e.scissor.apply(e,a()(t))})),c()(oe,"stencilTest",(function(e,t){return t?e.enable(2960):e.disable(2960)})),c()(oe,"stencilMask",(function(e,t){var n=t=de(t)?t:[t,t],r=ue()(n,2),o=r[0],i=r[1];e.stencilMaskSeparate(1028,o),e.stencilMaskSeparate(1029,i)})),c()(oe,"stencilFunc",(function(e,t){var n=t=de(t)&&3===t.length?[].concat(a()(t),a()(t)):t,r=ue()(n,6),o=r[0],i=r[1],u=r[2],c=r[3],s=r[4],l=r[5];e.stencilFuncSeparate(1028,o,i,u),e.stencilFuncSeparate(1029,c,s,l)})),c()(oe,"stencilOp",(function(e,t){var n=t=de(t)&&3===t.length?[].concat(a()(t),a()(t)):t,r=ue()(n,6),o=r[0],i=r[1],u=r[2],c=r[3],s=r[4],l=r[5];e.stencilOpSeparate(1028,o,i,u),e.stencilOpSeparate(1029,c,s,l)})),c()(oe,"viewport",(function(e,t){return e.viewport.apply(e,a()(t))})),oe);function ve(e,t,n){return void 0!==t[e]?t[e]:n[e]}var ge={blendEquation:function(e,t,n){return e.blendEquationSeparate(ve(32777,t,n),ve(34877,t,n))},blendFunc:function(e,t,n){return e.blendFuncSeparate(ve(32969,t,n),ve(32968,t,n),ve(32971,t,n),ve(32970,t,n))},polygonOffset:function(e,t,n){return e.polygonOffset(ve(32824,t,n),ve(10752,t,n))},sampleCoverage:function(e,t,n){return e.sampleCoverage(ve(32938,t,n),ve(32939,t,n))},stencilFuncFront:function(e,t,n){return e.stencilFuncSeparate(1028,ve(2962,t,n),ve(2967,t,n),ve(2963,t,n))},stencilFuncBack:function(e,t,n){return e.stencilFuncSeparate(1029,ve(34816,t,n),ve(36003,t,n),ve(36004,t,n))},stencilOpFront:function(e,t,n){return e.stencilOpSeparate(1028,ve(2964,t,n),ve(2965,t,n),ve(2966,t,n))},stencilOpBack:function(e,t,n){return e.stencilOpSeparate(1029,ve(34817,t,n),ve(34818,t,n),ve(34819,t,n))}},be={enable:function(e,t){return e(c()({},t,!0))},disable:function(e,t){return e(c()({},t,!1))},pixelStorei:function(e,t,n){return e(c()({},t,n))},hint:function(e,t,n){return e(c()({},t,n))},bindFramebuffer:function(e,t,n){var r;switch(t){case 36160:return e((r={},c()(r,36006,n),c()(r,36010,n),r));case 36009:return e(c()({},36006,n));case 36008:return e(c()({},36010,n));default:return null}},blendColor:function(e,t,n,r,o){return e(c()({},32773,new Float32Array([t,n,r,o])))},blendEquation:function(e,t){var n;return e((n={},c()(n,32777,t),c()(n,34877,t),n))},blendEquationSeparate:function(e,t,n){var r;return e((r={},c()(r,32777,t),c()(r,34877,n),r))},blendFunc:function(e,t,n){var r;return e((r={},c()(r,32969,t),c()(r,32968,n),c()(r,32971,t),c()(r,32970,n),r))},blendFuncSeparate:function(e,t,n,r,o){var i;return e((i={},c()(i,32969,t),c()(i,32968,n),c()(i,32971,r),c()(i,32970,o),i))},clearColor:function(e,t,n,r,o){return e(c()({},3106,new Float32Array([t,n,r,o])))},clearDepth:function(e,t){return e(c()({},2931,t))},clearStencil:function(e,t){return e(c()({},2961,t))},colorMask:function(e,t,n,r,o){return e(c()({},3107,[t,n,r,o]))},cullFace:function(e,t){return e(c()({},2885,t))},depthFunc:function(e,t){return e(c()({},2932,t))},depthRange:function(e,t,n){return e(c()({},2928,new Float32Array([t,n])))},depthMask:function(e,t){return e(c()({},2930,t))},frontFace:function(e,t){return e(c()({},2886,t))},lineWidth:function(e,t){return e(c()({},2849,t))},polygonOffset:function(e,t,n){var r;return e((r={},c()(r,32824,t),c()(r,10752,n),r))},sampleCoverage:function(e,t,n){var r;return e((r={},c()(r,32938,t),c()(r,32939,n),r))},scissor:function(e,t,n,r,o){return e(c()({},3088,new Int32Array([t,n,r,o])))},stencilMask:function(e,t){var n;return e((n={},c()(n,2968,t),c()(n,36005,t),n))},stencilMaskSeparate:function(e,t,n){return e(c()({},1028===t?2968:36005,n))},stencilFunc:function(e,t,n,r){var o;return e((o={},c()(o,2962,t),c()(o,2967,n),c()(o,2963,r),c()(o,34816,t),c()(o,36003,n),c()(o,36004,r),o))},stencilFuncSeparate:function(e,t,n,r,o){var i;return e((i={},c()(i,1028===t?2962:34816,n),c()(i,1028===t?2967:36003,r),c()(i,1028===t?2963:36004,o),i))},stencilOp:function(e,t,n,r){var o;return e((o={},c()(o,2964,t),c()(o,2965,n),c()(o,2966,r),c()(o,34817,t),c()(o,34818,n),c()(o,34819,r),o))},stencilOpSeparate:function(e,t,n,r,o){var i;return e((i={},c()(i,1028===t?2964:34817,n),c()(i,1028===t?2965:34818,r),c()(i,1028===t?2966:34819,o),i))},viewport:function(e,t,n,r,o){return e(c()({},2978,[t,n,r,o]))}},pe=function(e,t){return e.isEnabled(t)},ye=(ie={},c()(ie,3042,pe),c()(ie,2884,pe),c()(ie,2929,pe),c()(ie,3024,pe),c()(ie,32823,pe),c()(ie,32926,pe),c()(ie,32928,pe),c()(ie,3089,pe),c()(ie,2960,pe),c()(ie,35977,pe),ie);function me(e){for(var t in e)return!1;return!0}function xe(e,t){if(e===t)return!0;var n=Array.isArray(e)||ArrayBuffer.isView(e),r=Array.isArray(t)||ArrayBuffer.isView(t);if(n&&r&&e.length===t.length){for(var o=0;o<e.length;++o)if(e[o]!==t[o])return!1;return!0}return!1}function Ae(e,t){var n=e[t].bind(e);e[t]=function(){var t=arguments.length<=0?void 0:arguments[0];return t in e.state.cache&&e.state.enable?e.state.cache[t]:n.apply(void 0,arguments)},Object.defineProperty(e[t],"name",{value:"".concat(t,"-from-cache"),configurable:!1})}function we(e,t,n){var r=e[t].bind(e);e[t]=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var a=n.apply(void 0,[e.state._updateCache].concat(o)),u=a.valueChanged,c=a.oldValue;return u&&r.apply(void 0,o),c},Object.defineProperty(e[t],"name",{value:"".concat(t,"-to-cache"),configurable:!1})}function _e(e){var t=e.useProgram.bind(e);e.useProgram=function(n){e.state.program!==n&&(t(n),e.state.program=n)}}var Ee=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.copyState,o=void 0!==r&&r,i=n.log,a=void 0===i?function(){}:i;l()(this,e),this.gl=t,this.program=null,this.stateStack=[],this.enable=!0,this.cache=o?Ce(t):Object.assign({},ce),this.log=a,this._updateCache=this._updateCache.bind(this),Object.seal(this)}return d()(e,[{key:"push",value:function(){this.stateStack.push({})}},{key:"pop",value:function(){M(this.stateStack.length>0);var e=this.stateStack[this.stateStack.length-1];ke(this.gl,e),this.stateStack.pop()}},{key:"_updateCache",value:function(e){var t,n=!1,r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(var o in e){M(void 0!==o);var i=e[o],a=this.cache[o];xe(i,a)||(n=!0,t=a,r&&!(o in r)&&(r[o]=a),this.cache[o]=i)}return{valueChanged:n,oldValue:t}}}]),e}();function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.enable,r=void 0===n||n,o=t.copyState;if(M(void 0!==o),!e.state){var i=globalThis.polyfillContext;for(var a in i&&i(e),e.state=new Ee(e,{copyState:o}),_e(e),be){var u=be[a];we(e,a,u)}Ae(e,"getParameter"),Ae(e,"isEnabled")}return e.state.enable=r,e}function Se(e){e.state||Oe(e,{copyState:!1}),e.state.push()}function je(e){M(e.state),e.state.pop()}function Le(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Te(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ke(e,t){if(M(P(e),"setParameters requires a WebGL context"),!me(t)){var n={};for(var r in t){var o=Number(r),i=he[r];i&&("string"==typeof i?n[i]=!0:i(e,t[r],o))}var a=e.state&&e.state.cache;if(a)for(var u in n){(0,ge[u])(e,t,a)}}}function Ce(e,t){if("number"==typeof(t=t||ce)){var n=t,r=ye[n];return r?r(e,n):e.getParameter(n)}var o,i={},a=Le(Array.isArray(t)?t:Object.keys(t));try{for(a.s();!(o=a.n()).done;){var u=o.value,c=ye[u];i[u]=c?c(e,Number(u)):e.getParameter(Number(u))}}catch(e){a.e(e)}finally{a.f()}return i}function Fe(e){ke(e,ce)}function Be(e,t,n){if(me(t))return n(e);var r,o=t.nocatch,i=void 0===o||o;if(Se(e),ke(e,t),i)r=n(e),je(e);else try{r=n(e)}finally{je(e)}return r}var Ve=n(25);function Ge(e){var t=e.luma;if(e.canvas&&t){var n=t.canvasSizeInfo.clientWidth;return n?e.drawingBufferWidth/n:1}return 1}function Ie(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Ge(e),o=e.drawingBufferWidth,i=e.drawingBufferHeight;return Pe(t,r,o,i,n)}function Me(e){var t="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(e)?e<=0?1:e:e?t:1}function Pe(e,t,n,r,o){var i,a=Re(e[0],t,n),u=We(e[1],t,r,o),c=Re(e[0]+1,t,n),s=c===n-1?c:c-1;return c=We(e[1]+1,t,r,o),o?(i=u,u=c=0===c?c:c+1):i=c===r-1?c:c-1,{x:a,y:u,width:Math.max(s-a+1,1),height:Math.max(i-u+1,1)}}function Re(e,t,n){return Math.min(Math.round(e*t),n-1)}function We(e,t,n,r){return r?Math.max(0,n-1-Math.round(e*t)):Math.min(Math.round(e*t),n-1)}var Ne=Object(Ve.a)(),De=Ne&&"undefined"!=typeof document,He={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};M(Ne,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils");var t,n=e=Object.assign({},He,e),r=n.width,o=n.height;function i(t){if(e.throwOnError)throw new Error(t);return console.error(t),null}e.onError=i;var a=e,u=a.canvas,c=Ye({canvas:u,width:r,height:o,onError:i});return(t=Qe(c,e))?(Ke(t=Ue(t,e)),t):null}function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||e._instrumented)return e;e._version=e._version||Je(e),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};var n=t=Object.assign({},He,t),r=n.manageState,o=n.debug;return r&&Oe(e,{copyState:!1,log:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.log.apply(I,[1].concat(t))()}}),Ne&&o&&(globalThis.makeDebugContext?(e=globalThis.makeDebugContext(e,t),I.level=Math.max(I.level,1)):I.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),e._instrumented=!0,e}function Xe(e){var t=e.getParameter(7936),n=e.getParameter(7937),r=e.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&e.getParameter(r.UNMASKED_VENDOR_WEBGL||7936)||t,renderer:r&&e.getParameter(r.UNMASKED_RENDERER_WEBGL||7937)||n,vendorMasked:t,rendererMasked:n,version:e.getParameter(7938),shadingLanguageVersion:e.getParameter(35724)}}function qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.canvas){var n=Me(t.useDevicePixels);$e(e,n,t)}else{var r=e.getExtension("STACKGL_resize_drawingbuffer");r&&"width"in t&&"height"in t&&r.resize(t.width,t.height)}}function Qe(e,t){var n=t.onError,r=null,o=function(e){return r=e.statusMessage||r};e.addEventListener("webglcontextcreationerror",o,!1);var i=t.webgl1,a=void 0===i||i,u=t.webgl2,c=void 0===u||u,s=null;return c&&(s=(s=s||e.getContext("webgl2",t))||e.getContext("experimental-webgl2",t)),a&&(s=(s=s||e.getContext("webgl",t))||e.getContext("experimental-webgl",t)),e.removeEventListener("webglcontextcreationerror",o,!1),s?(t.onContextLost&&e.addEventListener("webglcontextlost",t.onContextLost,!1),t.onContextRestored&&e.addEventListener("webglcontextrestored",t.onContextRestored,!1),s):n("Failed to create ".concat(c&&!a?"WebGL2":"WebGL"," context: ").concat(r||"Unknown error"))}function Ye(e){var t,n=e.canvas,r=e.width,o=void 0===r?800:r,i=e.height,a=void 0===i?600:i,u=e.onError;"string"==typeof n?(De&&"complete"===document.readyState||u("createGLContext called on canvas '".concat(n,"' before page was loaded")),t=document.getElementById(n)):n?t=n:((t=document.createElement("canvas")).id="lumagl-canvas",t.style.width=Number.isFinite(o)?"".concat(o,"px"):"100%",t.style.height=Number.isFinite(a)?"".concat(a,"px"):"100%",document.body.insertBefore(t,document.body.firstChild));return t}function Ke(e){var t=R(e)?"WebGL2":"WebGL1",n=Xe(e),r=n?"(".concat(n.vendor,",").concat(n.renderer,")"):"",o=e.debug?" debug":"";I.info(1,"".concat(t).concat(o," context ").concat(r))()}function Je(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext?2:1}function $e(e,t,n){var r="width"in n?n.width:e.canvas.clientWidth,o="height"in n?n.height:e.canvas.clientHeight;r&&o||(I.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,r=e.canvas.width||1,o=e.canvas.height||1),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};var i=e.luma.canvasSizeInfo;if(i.clientWidth!==r||i.clientHeight!==o||i.devicePixelRatio!==t){var a=t,u=Math.floor(r*a),c=Math.floor(o*a);e.canvas.width=u,e.canvas.height=c,e.drawingBufferWidth===u&&e.drawingBufferHeight===c||(I.warn("Device pixel ratio clamped")(),a=Math.min(e.drawingBufferWidth/r,e.drawingBufferHeight/o),e.canvas.width=Math.floor(r*a),e.canvas.height=Math.floor(o*a)),Object.assign(e.luma.canvasSizeInfo,{clientWidth:r,clientHeight:o,devicePixelRatio:t})}}},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(2),o=n.n(r),i=n(12);function a(){return!("object"===(void 0===e?"undefined":o()(e))&&"[object process]"===String(e)&&!e.browser)||Object(i.a)()}}).call(this,n(6))}])})); |
@@ -5,6 +5,4 @@ "use strict"; | ||
var _global = typeof window === 'undefined' ? global : window; | ||
_global.luma = _global.luma || {}; | ||
module.exports = Object.assign(_global.luma, moduleExports); | ||
globalThis.luma = globalThis.luma || {}; | ||
module.exports = Object.assign(globalThis.luma, moduleExports); | ||
//# sourceMappingURL=bundle.js.map |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _env = require("probe.gl/env"); | ||
var _env = require("@probe.gl/env"); | ||
@@ -104,6 +104,6 @@ var _trackContextState = require("../state-tracker/track-context-state"); | ||
if (isBrowser && debug) { | ||
if (!_env.global.makeDebugContext) { | ||
if (!globalThis.makeDebugContext) { | ||
_log2.log.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')(); | ||
} else { | ||
gl = _env.global.makeDebugContext(gl, options); | ||
gl = globalThis.makeDebugContext(gl, options); | ||
_log2.log.level = Math.max(_log2.log.level, 1); | ||
@@ -110,0 +110,0 @@ } |
@@ -38,4 +38,3 @@ "use strict"; | ||
var global_ = typeof global !== 'undefined' ? global : window; | ||
global_.polyfillContext = polyfillContext; | ||
globalThis.polyfillContext = polyfillContext; | ||
@@ -42,0 +41,0 @@ function initializeExtensions(gl) { |
@@ -7,10 +7,7 @@ "use strict"; | ||
exports.polyfillVertexArrayObject = polyfillVertexArrayObject; | ||
var _env = require("probe.gl/env"); | ||
var glErrorShadow = {}; | ||
function error(msg) { | ||
if (_env.global.console && _env.global.console.error) { | ||
_env.global.console.error(msg); | ||
if (globalThis.console && globalThis.console.error) { | ||
globalThis.console.error(msg); | ||
} | ||
@@ -20,4 +17,4 @@ } | ||
function log(msg) { | ||
if (_env.global.console && _env.global.console.log) { | ||
_env.global.console.log(msg); | ||
if (globalThis.console && globalThis.console.log) { | ||
globalThis.console.log(msg); | ||
} | ||
@@ -24,0 +21,0 @@ } |
@@ -153,4 +153,3 @@ "use strict"; | ||
if (!gl.state) { | ||
var global_ = typeof global !== 'undefined' ? global : window; | ||
var polyfillContext = global_.polyfillContext; | ||
var polyfillContext = globalThis.polyfillContext; | ||
@@ -157,0 +156,0 @@ if (polyfillContext) { |
const moduleExports = require('./index'); | ||
const _global = typeof window === 'undefined' ? global : window; | ||
_global.luma = _global.luma || {}; | ||
module.exports = Object.assign(_global.luma, moduleExports); | ||
globalThis.luma = globalThis.luma || {}; | ||
module.exports = Object.assign(globalThis.luma, moduleExports); | ||
//# sourceMappingURL=bundle.js.map |
@@ -1,2 +0,2 @@ | ||
import { global, isBrowser as getIsBrowser } from 'probe.gl/env'; | ||
import { isBrowser as getIsBrowser } from '@probe.gl/env'; | ||
import { trackContextState } from '../state-tracker/track-context-state'; | ||
@@ -79,6 +79,6 @@ import { log } from '../utils/log'; | ||
if (isBrowser && debug) { | ||
if (!global.makeDebugContext) { | ||
if (!globalThis.makeDebugContext) { | ||
log.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')(); | ||
} else { | ||
gl = global.makeDebugContext(gl, options); | ||
gl = globalThis.makeDebugContext(gl, options); | ||
log.level = Math.max(log.level, 1); | ||
@@ -85,0 +85,0 @@ } |
@@ -23,4 +23,3 @@ import { polyfillVertexArrayObject } from './polyfill-vertex-array-object'; | ||
} | ||
const global_ = typeof global !== 'undefined' ? global : window; | ||
global_.polyfillContext = polyfillContext; | ||
globalThis.polyfillContext = polyfillContext; | ||
@@ -27,0 +26,0 @@ function initializeExtensions(gl) { |
@@ -1,7 +0,6 @@ | ||
import { global } from 'probe.gl/env'; | ||
const glErrorShadow = {}; | ||
function error(msg) { | ||
if (global.console && global.console.error) { | ||
global.console.error(msg); | ||
if (globalThis.console && globalThis.console.error) { | ||
globalThis.console.error(msg); | ||
} | ||
@@ -11,4 +10,4 @@ } | ||
function log(msg) { | ||
if (global.console && global.console.log) { | ||
global.console.log(msg); | ||
if (globalThis.console && globalThis.console.log) { | ||
globalThis.console.log(msg); | ||
} | ||
@@ -15,0 +14,0 @@ } |
@@ -122,6 +122,5 @@ import { GL_PARAMETER_DEFAULTS, GL_HOOKED_SETTERS } from './webgl-parameter-tables'; | ||
if (!gl.state) { | ||
const global_ = typeof global !== 'undefined' ? global : window; | ||
const { | ||
polyfillContext | ||
} = global_; | ||
} = globalThis; | ||
@@ -128,0 +127,0 @@ if (polyfillContext) { |
{ | ||
"name": "@luma.gl/gltools", | ||
"version": "8.5.10", | ||
"version": "8.5.11", | ||
"description": "WebGL2 API Polyfills for WebGL1 WebGLRenderingContext", | ||
@@ -32,6 +32,7 @@ "license": "MIT", | ||
"@babel/runtime": "^7.0.0", | ||
"@luma.gl/constants": "8.5.10", | ||
"@luma.gl/constants": "8.5.11", | ||
"@probe.gl/env": "^3.5.0", | ||
"probe.gl": "^3.4.0" | ||
}, | ||
"gitHead": "830155841c1e574d36061c2d71880a28d68b3cb3" | ||
"gitHead": "9047970bf97ac2f0265551a5ed3453852f59ab54" | ||
} |
const moduleExports = require('./index'); | ||
const _global = typeof window === 'undefined' ? global : window; | ||
// @ts-ignore | ||
_global.luma = _global.luma || {}; | ||
globalThis.luma = globalThis.luma || {}; | ||
// @ts-ignore | ||
module.exports = Object.assign(_global.luma, moduleExports); | ||
module.exports = Object.assign(globalThis.luma, moduleExports); |
@@ -7,3 +7,3 @@ // WebGLRenderingContext related methods | ||
import GL from '@luma.gl/constants'; | ||
import {global, isBrowser as getIsBrowser} from 'probe.gl/env'; | ||
import {isBrowser as getIsBrowser} from '@probe.gl/env'; | ||
import {trackContextState} from '../state-tracker/track-context-state'; | ||
@@ -115,7 +115,7 @@ | ||
// @ts-ignore | ||
if (!global.makeDebugContext) { | ||
if (!globalThis.makeDebugContext) { | ||
log.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')(); | ||
} else { | ||
// @ts-ignore | ||
gl = global.makeDebugContext(gl, options); | ||
gl = globalThis.makeDebugContext(gl, options); | ||
// Debug forces log level to at least 1 | ||
@@ -122,0 +122,0 @@ log.level = Math.max(log.level, 1); |
@@ -39,5 +39,4 @@ // WebGL1/WebGL2 extension polyfill support | ||
// TODO - is this still required? | ||
const global_ = typeof global !== 'undefined' ? global : window; | ||
// @ts-ignore | ||
global_.polyfillContext = polyfillContext; | ||
globalThis.polyfillContext = polyfillContext; | ||
@@ -44,0 +43,0 @@ function initializeExtensions(gl) { |
@@ -29,9 +29,7 @@ /* | ||
import {global} from 'probe.gl/env'; | ||
const glErrorShadow = {}; | ||
function error(msg) { | ||
if (global.console && global.console.error) { | ||
global.console.error(msg); | ||
if (globalThis.console && globalThis.console.error) { | ||
globalThis.console.error(msg); | ||
} | ||
@@ -41,4 +39,4 @@ } | ||
function log(msg) { | ||
if (global.console && global.console.log) { | ||
global.console.log(msg); | ||
if (globalThis.console && globalThis.console.log) { | ||
globalThis.console.log(msg); | ||
} | ||
@@ -45,0 +43,0 @@ } |
@@ -169,5 +169,4 @@ // Support for listening to context state changes and intercepting state queries | ||
if (!gl.state) { | ||
const global_ = typeof global !== 'undefined' ? global : window; | ||
// @ts-ignore | ||
const {polyfillContext} = global_; | ||
const {polyfillContext} = globalThis; | ||
if (polyfillContext) { | ||
@@ -174,0 +173,0 @@ polyfillContext(gl); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
748253
101
4
9808
+ Added@probe.gl/env@^3.5.0
+ Added@luma.gl/constants@8.5.11(transitive)
- Removed@luma.gl/constants@8.5.10(transitive)
Updated@luma.gl/constants@8.5.11