@luma.gl/gltools
Advanced tools
Comparing version 8.0.0-alpha.12 to 8.0.0-beta.1
@@ -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 E=t();for(var n in E)("object"==typeof exports?exports:e)[n]=E[n]}}(window,function(){return function(e){var t={};function E(n){if(t[n])return t[n].exports;var _=t[n]={i:n,l:!1,exports:{}};return e[n].call(_.exports,_,_.exports,E),_.l=!0,_.exports}return E.m=e,E.c=t,E.d=function(e,t,n){E.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},E.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},E.t=function(e,t){if(1&t&&(e=E(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(E.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var _ in e)E.d(n,_,function(t){return e[t]}.bind(null,_));return n},E.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return E.d(t,"a",t),t},E.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},E.p="",E(E.s=15)}([function(e,t){e.exports={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,FUNC_ADD:32774,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,BLEND_COLOR:32773,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,VENDOR:7936,RENDERER:7937,VERSION:7938,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,BROWSER_DEFAULT_WEBGL:37444,STATIC_DRAW:35044,STREAM_DRAW:35040,DYNAMIC_DRAW:35048,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,CULL_FACE:2884,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,BLEND:3042,DEPTH_TEST:2929,DITHER:3024,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,SCISSOR_TEST:3089,STENCIL_TEST:2960,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CONTEXT_LOST_WEBGL:37442,CW:2304,CCW:2305,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,COMPILE_STATUS:35713,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_ATTRIBUTES:35721,ACTIVE_UNIFORMS:35718,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,ALWAYS:519,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,GEQUAL:518,NOTEQUAL:517,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,TEXTURE_WIDTH:4096,TEXTURE_HEIGHT:4097,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,MAX_3D_TEXTURE_SIZE:32883,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,MAX_TEXTURE_LOD_BIAS:34045,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,RASTERIZER_DISCARD:35977,VERTEX_ARRAY_BINDING:34229,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,MAX_ELEMENT_INDEX:36203,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,RGB9_E5:35901,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2UI:36975,TEXTURE_IMMUTABLE_FORMAT:37167,TEXTURE_IMMUTABLE_LEVELS:33503,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,UNSIGNED_INT_24_8:34042,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,INT_2_10_10_10_REV:36255,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,MAX_SAMPLES:36183,SAMPLER_BINDING:35097,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,UNSIGNED_NORMALIZED:35863,SIGNED_NORMALIZED:36764,VERTEX_ATTRIB_ARRAY_INTEGER:35069,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,DEPTH24_STENCIL8:35056,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,COLOR:6144,DEPTH:6145,STENCIL:6146,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,INVALID_INDEX:4294967295,TIMEOUT_IGNORED:-1,MAX_CLIENT_WAIT_TIMEOUT_WEBGL:37447,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,UNMASKED_VENDOR_WEBGL:37445,UNMASKED_RENDERER_WEBGL:37446,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,TEXTURE_MAX_ANISOTROPY_EXT:34046,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798,UNSIGNED_INT_24_8_WEBGL:34042,HALF_FLOAT_OES:36193,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863,MIN_EXT:32775,MAX_EXT:32776,SRGB_EXT:35904,SRGB_ALPHA_EXT:35906,SRGB8_ALPHA8_EXT:35907,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,COLOR_ATTACHMENT0_WEBGL:36064,COLOR_ATTACHMENT1_WEBGL:36065,COLOR_ATTACHMENT2_WEBGL:36066,COLOR_ATTACHMENT3_WEBGL:36067,COLOR_ATTACHMENT4_WEBGL:36068,COLOR_ATTACHMENT5_WEBGL:36069,COLOR_ATTACHMENT6_WEBGL:36070,COLOR_ATTACHMENT7_WEBGL:36071,COLOR_ATTACHMENT8_WEBGL:36072,COLOR_ATTACHMENT9_WEBGL:36073,COLOR_ATTACHMENT10_WEBGL:36074,COLOR_ATTACHMENT11_WEBGL:36075,COLOR_ATTACHMENT12_WEBGL:36076,COLOR_ATTACHMENT13_WEBGL:36077,COLOR_ATTACHMENT14_WEBGL:36078,COLOR_ATTACHMENT15_WEBGL:36079,DRAW_BUFFER0_WEBGL:34853,DRAW_BUFFER1_WEBGL:34854,DRAW_BUFFER2_WEBGL:34855,DRAW_BUFFER3_WEBGL:34856,DRAW_BUFFER4_WEBGL:34857,DRAW_BUFFER5_WEBGL:34858,DRAW_BUFFER6_WEBGL:34859,DRAW_BUFFER7_WEBGL:34860,DRAW_BUFFER8_WEBGL:34861,DRAW_BUFFER9_WEBGL:34862,DRAW_BUFFER10_WEBGL:34863,DRAW_BUFFER11_WEBGL:34864,DRAW_BUFFER12_WEBGL:34865,DRAW_BUFFER13_WEBGL:34866,DRAW_BUFFER14_WEBGL:34867,DRAW_BUFFER15_WEBGL:34868,MAX_COLOR_ATTACHMENTS_WEBGL:36063,MAX_DRAW_BUFFERS_WEBGL:34852,VERTEX_ARRAY_BINDING_OES:34229,QUERY_COUNTER_BITS_EXT:34916,CURRENT_QUERY_EXT:34917,QUERY_RESULT_EXT:34918,QUERY_RESULT_AVAILABLE_EXT:34919,TIME_ELAPSED_EXT:35007,TIMESTAMP_EXT:36392,GPU_DISJOINT_EXT:36795}},function(e,t,E){"use strict";var n=E(2);function _(e){return function(e){if(Array.isArray(e)){for(var t=0,E=new Array(e.length);t<e.length;t++)E[t]=e[t];return E}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var E=0;E<t.length;E++){var n=t[E];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,E){return t&&a(e.prototype,t),E&&a(e,E),e}var A=E(13),i="8.0.0-alpha.11",T=Object(A.a)();var R=function(){function e(t,E){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";r(this,e),this.storage=function(e){try{var t=window[e],E="__storage_test__";return t.setItem(E,E),t.removeItem(E),t}catch(e){return null}}(n),this.id=t,this.config={},Object.assign(this.config,E),this._loadConfiguration()}return o(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 c(e,t,E){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600,_=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>n&&(E=Math.min(E,n/e.width));var r=e.width*E,a=e.height*E,o=["font-size:1px;","padding:".concat(Math.floor(a/2),"px ").concat(Math.floor(r/2),"px;"),"line-height:".concat(a,"px;"),"background:url(".concat(_,");"),"background-size:".concat(r,"px ").concat(a,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),o]}var N={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 s(e){return"string"==typeof e?N[e.toUpperCase()]||N.WHITE:e}function u(e,t){if(!e)throw new Error(t||"Assertion failed")}var S=E(6);function I(){var e;if(T&&S.b.performance)e=S.b.performance.now();else if(S.a.hrtime){var t=S.a.hrtime();e=1e3*t[0]+t[1]/1e6}else e=Date.now();return e}var O={debug:T&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},L={enabled:!1,priority:0};function C(){}var F={};var l=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;r(this,e),this.id=t,this.VERSION=i,this._startTs=I(),this._deltaTs=I(),this.LOG_THROTTLE_TIMEOUT=0,this._storage=new R("__probe-".concat(this.id,"__"),L),this.userData={},this.timeStamp("".concat(this.id," started")),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"],E=Object.getPrototypeOf(e),n=Object.getOwnPropertyNames(E),_=!0,r=!1,a=void 0;try{for(var o,A=function(){var E=o.value;"function"==typeof e[E]&&(t.find(function(e){return E===e})||(e[E]=e[E].bind(e)))},i=n[Symbol.iterator]();!(_=(o=i.next()).done);_=!0)A()}catch(e){r=!0,a=e}finally{try{_||null==i.return||i.return()}finally{if(r)throw a}}}(this),Object.seal(this)}return o(e,[{key:"isEnabled",value:function(){return this._storage.config.enabled}},{key:"getPriority",value:function(){return this._storage.config.priority}},{key:"getLevel",value:function(){return this._storage.config.priority}},{key:"getTotal",value:function(){return Number((I()-this._startTs).toPrecision(10))}},{key:"getDelta",value:function(){return Number((I()-this._deltaTs).toPrecision(10))}},{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({priority:e}),this}},{key:"assert",value:function(e,t){u(e,t)}},{key:"warn",value:function(e){for(var t=arguments.length,E=new Array(t>1?t-1:0),n=1;n<t;n++)E[n-1]=arguments[n];return this._getLogFunction({message:e,args:E,method:O.warn,once:!0})}},{key:"error",value:function(e){for(var t=arguments.length,E=new Array(t>1?t-1:0),n=1;n<t;n++)E[n-1]=arguments[n];return this._getLogFunction({message:e,args:E,method:O.error})}},{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){for(var E=arguments.length,n=new Array(E>2?E-2:0),_=2;_<E;_++)n[_-2]=arguments[_];return this._getLogFunction({priority:e,message:t,args:n,method:O.log,time:!0,once:!0})}},{key:"log",value:function(e,t){for(var E=arguments.length,n=new Array(E>2?E-2:0),_=2;_<E;_++)n[_-2]=arguments[_];return this._getLogFunction({priority:e,message:t,args:n,method:O.debug})}},{key:"info",value:function(e,t){for(var E=arguments.length,n=new Array(E>2?E-2:0),_=2;_<E;_++)n[_-2]=arguments[_];return this._getLogFunction({priority:e,message:t,args:n,method:console.info})}},{key:"once",value:function(e,t){for(var E=arguments.length,n=new Array(E>2?E-2:0),_=2;_<E;_++)n[_-2]=arguments[_];return this._getLogFunction({priority:e,message:t,args:n,method:O.debug||O.info,once:!0})}},{key:"table",value:function(e,t,E){if(t){var n=function(e){for(var t in e)for(var E in e[t])return E||"untitled";return"empty"}(t);return this._getLogFunction({priority:e,message:t,args:E&&[E],tag:n,method:console.table||C})}return C}},{key:"image",value:function(e){var t=e.priority,E=e.image,n=e.message,_=void 0===n?"":n,r=e.scale,a=void 0===r?1:r;return t>this.getPriority()?C:T?this._logImageInBrowser({image:E,message:_,scale:a}):this._logImageInNode({image:E,message:_,scale:a})}},{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(function(e,t,E){return t in e?Object.defineProperty(e,t,{value:E,enumerable:!0,configurable:!0,writable:!0}):e[t]=E,e}({},e,t))}},{key:"_logImageInNode",value:function(e){var t=e.image,n=(e.message,e.scale),_=void 0===n?1:n,r=null;try{r=E(16)}catch(e){}return r?function(){return r(t,{fit:"box",width:"".concat(Math.round(80*_),"%")}).then(function(e){return console.log(e)})}:C}},{key:"_logImageInBrowser",value:function(e){var t=e.image,E=e.message,n=void 0===E?"":E,r=e.scale,a=void 0===r?1:r;if("string"==typeof t){var o=new Image;return o.onload=function(){var e,t=c(o,n,a);(e=console).log.apply(e,_(t))},o.src=t,C}var A,i=t.nodeName||"";if("img"===i.toLowerCase())return(A=console).log.apply(A,_(c(t,n,a))),C;if("canvas"===i.toLowerCase()){var T=new Image;return T.onload=function(){var e;return(e=console).log.apply(e,_(c(T,n,a)))},T.src=t.toDataURL(),C}return C}},{key:"time",value:function(e,t){return this._getLogFunction({priority:e,message:t,method:console.time?console.time:console.info})}},{key:"timeEnd",value:function(e,t){return this._getLogFunction({priority:e,message:t,method:console.timeEnd?console.timeEnd:console.info})}},{key:"timeStamp",value:function(e,t){return this._getLogFunction({priority:e,message:t,method:console.timeStamp||C})}},{key:"group",value:function(e,t){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1},n=(E=this._normalizeArguments({priority:e,message:t,opts:E})).collapsed;return this._getLogFunction({priority:e,message:t,opts:E,method:(n?console.groupCollapsed:console.group)||console.info})}},{key:"groupCollapsed",value:function(e,t){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(e,t,Object.assign({},E,{collapsed:!0}))}},{key:"groupEnd",value:function(e){return this._getLogFunction({priority:e,message:"",method:console.groupEnd||C})}},{key:"withGroup",value:function(e,t,E){var n=this._normalizeArguments({priority:e,message:t});this.group(n);try{E()}finally{this.groupEnd(n.message)}}},{key:"trace",value:function(){console.trace&&console.trace()}},{key:"_shouldLog",value:function(e){return 0===(e=this._normalizePriority(e))||this.isEnabled()&&this.getPriority()>=e}},{key:"_getElapsedTime",value:function(){var e=this.getTotal(),t=this.getDelta();return this._deltaTs=I(),{total:e,delta:t}}},{key:"_getLogFunction",value:function(e){if(this._shouldLog(e.priority)){var t=e.method;e=this._parseArguments(e),u(t);var E=e.message,n=e.tag||e.message;if(e.once){if(F[n])return C;F[n]=I()}return E=this._decorateMessage(E,e),t.bind.apply(t,[console,E].concat(_(e.args)))}return C}},{key:"_parseArguments",value:function(e){var t=this._normalizeArguments(e),E=this._getElapsedTime(),n=E.delta,_=E.total;return Object.assign(e,t,{delta:n,total:_})}},{key:"_normalizePriority",value:function(e){var t;switch(Object(n.a)(e)){case"number":t=e;break;case"object":t=e.priority||0;break;default:t=0}return u(Number.isFinite(t)&&t>=0),t}},{key:"_normalizeArguments",value:function(e){var t=e.priority,E=e.message,_=e.args,r=void 0===_?[]:_,a=e.opts,o={priority:this._normalizePriority(t),message:E,args:r};switch(Object(n.a)(t)){case"string":case"function":void 0!==E&&r.unshift(E),Object.assign(o,{message:t});break;case"object":Object.assign(o,t)}return"function"==typeof o.message&&(o.message=this._shouldLog(o.priority)?o.message():""),u("string"==typeof o.message||"object"===Object(n.a)(o.message)),Object.assign(o,a)}},{key:"_decorateMessage",value:function(e,t){if("string"==typeof e){var E="";if(t.time){var n=this._getElapsedTime().total;E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,E=Math.max(t-e.length,0);return"".concat(" ".repeat(E)).concat(e)}((o=n)<10?"".concat(o.toFixed(2),"ms"):o<100?"".concat(o.toFixed(1),"ms"):o<1e3?"".concat(o.toFixed(0),"ms"):"".concat((o/1e3).toFixed(2),"s"))}e=t.time?"".concat(this.id,": ").concat(E," ").concat(e):"".concat(this.id,": ").concat(e),_=e,r=t.color,a=t.background,T||"string"!=typeof _||(r&&(r=s(r),_="[".concat(r,"m").concat(_,"[39m")),a&&(r=s(a),_="[".concat(a+10,"m").concat(_,"[49m"))),e=_}var _,r,a,o;return e}},{key:"priority",set:function(e){return this._storage.updateConfiguration({priority:e}),this},get:function(){return this._storage.config.priority}}]),e}();function f(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}function M(e){for(const t in e)return!1;return!0}function B(e,t){if(e===t)return!0;const E=Array.isArray(e)||ArrayBuffer.isView(e),n=Array.isArray(t)||ArrayBuffer.isView(t);if(E&&n&&e.length===t.length){for(let E=0;E<e.length;++E)if(e[E]!==t[E])return!1;return!0}return!1}l.VERSION=i;var d=E(9),D=E(11);function P(e){if(e.canvas&&e.luma){const{clientWidth:t}=e.luma.canvasSizeInfo;return t?e.drawingBufferWidth/t:1}return 1}function U(e,t,E=!0){return function(e,t,E,n,_){const r=G(e[0],t,E);let a=h(e[1],t,n,_),o=G(e[0]+1,t,E);const A=o===E-1?o:o-1;let i;o=h(e[1]+1,t,n,_),_?(i=a,a=o=0===o?o:o+1):i=o===n-1?o:o-1;return{x:r,y:a,width:Math.max(A-r+1,1),height:Math.max(i-a+1,1)}}(t,P(e),e.drawingBufferWidth,e.drawingBufferHeight,E)}function g(e){const t="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(e)?e<=0?1:e:e?t:1}function G(e,t,E){return Math.min(Math.round(e*t),E-1)}function h(e,t,E,n){return n?Math.max(0,E-1-Math.round(e*t)):Math.min(Math.round(e*t),E-1)}function b(e){return Boolean(e&&Number.isFinite(e._version))}function p(e){return Boolean(e&&2===e._version)}E.d(t,"n",function(){return m}),E.d(t,"a",function(){return f}),E.d(t,"d",function(){return B}),E.d(t,"k",function(){return M}),E.d(t,"g",function(){return d.a}),E.d(t,"j",function(){return d.d}),E.d(t,"i",function(){return d.c}),E.d(t,"h",function(){return d.b}),E.d(t,"f",function(){return D.a}),E.d(t,"p",function(){return D.c}),E.d(t,"o",function(){return D.b}),E.d(t,"b",function(){return U}),E.d(t,"c",function(){return P}),E.d(t,"e",function(){return g}),E.d(t,"l",function(){return b}),E.d(t,"m",function(){return p});const m=new l({id:"gltools"}).enable()},function(e,t,E){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e){return(_="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}E.d(t,"a",function(){return _})},function(e,t,E){"use strict";E.d(t,"c",function(){return a}),E.d(t,"e",function(){return R}),E.d(t,"a",function(){return N}),E.d(t,"b",function(){return s}),E.d(t,"d",function(){return S});var n=E(0),_=E.n(n),r=E(1);const a={[_.a.BLEND]:!1,[_.a.BLEND_COLOR]:new Float32Array([0,0,0,0]),[_.a.BLEND_EQUATION_RGB]:_.a.FUNC_ADD,[_.a.BLEND_EQUATION_ALPHA]:_.a.FUNC_ADD,[_.a.BLEND_SRC_RGB]:_.a.ONE,[_.a.BLEND_DST_RGB]:_.a.ZERO,[_.a.BLEND_SRC_ALPHA]:_.a.ONE,[_.a.BLEND_DST_ALPHA]:_.a.ZERO,[_.a.COLOR_CLEAR_VALUE]:new Float32Array([0,0,0,0]),[_.a.COLOR_WRITEMASK]:[!0,!0,!0,!0],[_.a.CULL_FACE]:!1,[_.a.CULL_FACE_MODE]:_.a.BACK,[_.a.DEPTH_TEST]:!1,[_.a.DEPTH_CLEAR_VALUE]:1,[_.a.DEPTH_FUNC]:_.a.LESS,[_.a.DEPTH_RANGE]:new Float32Array([0,1]),[_.a.DEPTH_WRITEMASK]:!0,[_.a.DITHER]:!0,[_.a.FRAMEBUFFER_BINDING]:null,[_.a.FRONT_FACE]:_.a.CCW,[_.a.GENERATE_MIPMAP_HINT]:_.a.DONT_CARE,[_.a.LINE_WIDTH]:1,[_.a.POLYGON_OFFSET_FILL]:!1,[_.a.POLYGON_OFFSET_FACTOR]:0,[_.a.POLYGON_OFFSET_UNITS]:0,[_.a.SAMPLE_COVERAGE_VALUE]:1,[_.a.SAMPLE_COVERAGE_INVERT]:!1,[_.a.SCISSOR_TEST]:!1,[_.a.SCISSOR_BOX]:new Int32Array([0,0,1024,1024]),[_.a.STENCIL_TEST]:!1,[_.a.STENCIL_CLEAR_VALUE]:0,[_.a.STENCIL_WRITEMASK]:4294967295,[_.a.STENCIL_BACK_WRITEMASK]:4294967295,[_.a.STENCIL_FUNC]:_.a.ALWAYS,[_.a.STENCIL_REF]:0,[_.a.STENCIL_VALUE_MASK]:4294967295,[_.a.STENCIL_BACK_FUNC]:_.a.ALWAYS,[_.a.STENCIL_BACK_REF]:0,[_.a.STENCIL_BACK_VALUE_MASK]:4294967295,[_.a.STENCIL_FAIL]:_.a.KEEP,[_.a.STENCIL_PASS_DEPTH_FAIL]:_.a.KEEP,[_.a.STENCIL_PASS_DEPTH_PASS]:_.a.KEEP,[_.a.STENCIL_BACK_FAIL]:_.a.KEEP,[_.a.STENCIL_BACK_PASS_DEPTH_FAIL]:_.a.KEEP,[_.a.STENCIL_BACK_PASS_DEPTH_PASS]:_.a.KEEP,[_.a.VIEWPORT]:[0,0,1024,1024],[_.a.PACK_ALIGNMENT]:4,[_.a.UNPACK_ALIGNMENT]:4,[_.a.UNPACK_FLIP_Y_WEBGL]:!1,[_.a.UNPACK_PREMULTIPLY_ALPHA_WEBGL]:!1,[_.a.UNPACK_COLORSPACE_CONVERSION_WEBGL]:_.a.BROWSER_DEFAULT_WEBGL,[_.a.FRAGMENT_SHADER_DERIVATIVE_HINT]:_.a.DONT_CARE,[_.a.READ_FRAMEBUFFER_BINDING]:null,[_.a.RASTERIZER_DISCARD]:!1,[_.a.PACK_ROW_LENGTH]:0,[_.a.PACK_SKIP_PIXELS]:0,[_.a.PACK_SKIP_ROWS]:0,[_.a.UNPACK_ROW_LENGTH]:0,[_.a.UNPACK_IMAGE_HEIGHT]:0,[_.a.UNPACK_SKIP_PIXELS]:0,[_.a.UNPACK_SKIP_ROWS]:0,[_.a.UNPACK_SKIP_IMAGES]:0},o=(e,t,E)=>t?e.enable(E):e.disable(E),A=(e,t,E)=>e.hint(E,t),i=(e,t,E)=>e.pixelStorei(E,t);function T(e){return Array.isArray(e)||ArrayBuffer.isView(e)}const R={[_.a.BLEND]:o,[_.a.BLEND_COLOR]:(e,t)=>e.blendColor(...t),[_.a.BLEND_EQUATION_RGB]:"blendEquation",[_.a.BLEND_EQUATION_ALPHA]:"blendEquation",[_.a.BLEND_SRC_RGB]:"blendFunc",[_.a.BLEND_DST_RGB]:"blendFunc",[_.a.BLEND_SRC_ALPHA]:"blendFunc",[_.a.BLEND_DST_ALPHA]:"blendFunc",[_.a.COLOR_CLEAR_VALUE]:(e,t)=>e.clearColor(...t),[_.a.COLOR_WRITEMASK]:(e,t)=>e.colorMask(...t),[_.a.CULL_FACE]:o,[_.a.CULL_FACE_MODE]:(e,t)=>e.cullFace(t),[_.a.DEPTH_TEST]:o,[_.a.DEPTH_CLEAR_VALUE]:(e,t)=>e.clearDepth(t),[_.a.DEPTH_FUNC]:(e,t)=>e.depthFunc(t),[_.a.DEPTH_RANGE]:(e,t)=>e.depthRange(...t),[_.a.DEPTH_WRITEMASK]:(e,t)=>e.depthMask(t),[_.a.DITHER]:o,[_.a.FRAGMENT_SHADER_DERIVATIVE_HINT]:A,[_.a.FRAMEBUFFER_BINDING]:(e,t)=>{const E=Object(r.m)(e)?_.a.DRAW_FRAMEBUFFER:_.a.FRAMEBUFFER;return e.bindFramebuffer(E,t)},[_.a.FRONT_FACE]:(e,t)=>e.frontFace(t),[_.a.GENERATE_MIPMAP_HINT]:A,[_.a.LINE_WIDTH]:(e,t)=>e.lineWidth(t),[_.a.POLYGON_OFFSET_FILL]:o,[_.a.POLYGON_OFFSET_FACTOR]:"polygonOffset",[_.a.POLYGON_OFFSET_UNITS]:"polygonOffset",[_.a.RASTERIZER_DISCARD]:o,[_.a.SAMPLE_COVERAGE_VALUE]:"sampleCoverage",[_.a.SAMPLE_COVERAGE_INVERT]:"sampleCoverage",[_.a.SCISSOR_TEST]:o,[_.a.SCISSOR_BOX]:(e,t)=>e.scissor(...t),[_.a.STENCIL_TEST]:o,[_.a.STENCIL_CLEAR_VALUE]:(e,t)=>e.clearStencil(t),[_.a.STENCIL_WRITEMASK]:(e,t)=>e.stencilMaskSeparate(_.a.FRONT,t),[_.a.STENCIL_BACK_WRITEMASK]:(e,t)=>e.stencilMaskSeparate(_.a.BACK,t),[_.a.STENCIL_FUNC]:"stencilFuncFront",[_.a.STENCIL_REF]:"stencilFuncFront",[_.a.STENCIL_VALUE_MASK]:"stencilFuncFront",[_.a.STENCIL_BACK_FUNC]:"stencilFuncBack",[_.a.STENCIL_BACK_REF]:"stencilFuncBack",[_.a.STENCIL_BACK_VALUE_MASK]:"stencilFuncBack",[_.a.STENCIL_FAIL]:"stencilOpFront",[_.a.STENCIL_PASS_DEPTH_FAIL]:"stencilOpFront",[_.a.STENCIL_PASS_DEPTH_PASS]:"stencilOpFront",[_.a.STENCIL_BACK_FAIL]:"stencilOpBack",[_.a.STENCIL_BACK_PASS_DEPTH_FAIL]:"stencilOpBack",[_.a.STENCIL_BACK_PASS_DEPTH_PASS]:"stencilOpBack",[_.a.VIEWPORT]:(e,t)=>e.viewport(...t),[_.a.PACK_ALIGNMENT]:i,[_.a.UNPACK_ALIGNMENT]:i,[_.a.UNPACK_FLIP_Y_WEBGL]:i,[_.a.UNPACK_PREMULTIPLY_ALPHA_WEBGL]:i,[_.a.UNPACK_COLORSPACE_CONVERSION_WEBGL]:i,[_.a.PACK_ROW_LENGTH]:i,[_.a.PACK_SKIP_PIXELS]:i,[_.a.PACK_SKIP_ROWS]:i,[_.a.READ_FRAMEBUFFER_BINDING]:(e,t)=>e.bindFramebuffer(_.a.READ_FRAMEBUFFER,t),[_.a.UNPACK_ROW_LENGTH]:i,[_.a.UNPACK_IMAGE_HEIGHT]:i,[_.a.UNPACK_SKIP_PIXELS]:i,[_.a.UNPACK_SKIP_ROWS]:i,[_.a.UNPACK_SKIP_IMAGES]:i,framebuffer:(e,t)=>{const E=t&&"handle"in t?t.handle:t;return e.bindFramebuffer(_.a.FRAMEBUFFER,E)},blend:(e,t)=>t?e.enable(_.a.BLEND):e.disable(_.a.BLEND),blendColor:(e,t)=>e.blendColor(...t),blendEquation:(e,t)=>{t=T(t)?t:[t,t],e.blendEquationSeparate(...t)},blendFunc:(e,t)=>{t=T(t)&&2===t.length?[...t,...t]:t,e.blendFuncSeparate(...t)},clearColor:(e,t)=>e.clearColor(...t),clearDepth:(e,t)=>e.clearDepth(t),clearStencil:(e,t)=>e.clearStencil(t),colorMask:(e,t)=>e.colorMask(...t),cull:(e,t)=>t?e.enable(_.a.CULL_FACE):e.disable(_.a.CULL_FACE),cullFace:(e,t)=>e.cullFace(t),depthTest:(e,t)=>t?e.enable(_.a.DEPTH_TEST):e.disable(_.a.DEPTH_TEST),depthFunc:(e,t)=>e.depthFunc(t),depthMask:(e,t)=>e.depthMask(t),depthRange:(e,t)=>e.depthRange(...t),dither:(e,t)=>t?e.enable(_.a.DITHER):e.disable(_.a.DITHER),derivativeHint:(e,t)=>{e.hint(_.a.FRAGMENT_SHADER_DERIVATIVE_HINT,t)},frontFace:(e,t)=>e.frontFace(t),mipmapHint:(e,t)=>e.hint(_.a.GENERATE_MIPMAP_HINT,t),lineWidth:(e,t)=>e.lineWidth(t),polygonOffsetFill:(e,t)=>t?e.enable(_.a.POLYGON_OFFSET_FILL):e.disable(_.a.POLYGON_OFFSET_FILL),polygonOffset:(e,t)=>e.polygonOffset(...t),sampleCoverage:(e,t)=>e.sampleCoverage(...t),scissorTest:(e,t)=>t?e.enable(_.a.SCISSOR_TEST):e.disable(_.a.SCISSOR_TEST),scissor:(e,t)=>e.scissor(...t),stencilTest:(e,t)=>t?e.enable(_.a.STENCIL_TEST):e.disable(_.a.STENCIL_TEST),stencilMask:(e,t)=>{t=T(t)?t:[t,t];const[E,n]=t;e.stencilMaskSeparate(_.a.FRONT,E),e.stencilMaskSeparate(_.a.BACK,n)},stencilFunc:(e,t)=>{t=T(t)&&3===t.length?[...t,...t]:t;const[E,n,r,a,o,A]=t;e.stencilFuncSeparate(_.a.FRONT,E,n,r),e.stencilFuncSeparate(_.a.BACK,a,o,A)},stencilOp:(e,t)=>{t=T(t)&&3===t.length?[...t,...t]:t;const[E,n,r,a,o,A]=t;e.stencilOpSeparate(_.a.FRONT,E,n,r),e.stencilOpSeparate(_.a.BACK,a,o,A)},viewport:(e,t)=>e.viewport(...t)};function c(e,t,E){return void 0!==t[e]?t[e]:E[e]}const N={blendEquation:(e,t,E)=>e.blendEquationSeparate(c(_.a.BLEND_EQUATION_RGB,t,E),c(_.a.BLEND_EQUATION_ALPHA,t,E)),blendFunc:(e,t,E)=>e.blendFuncSeparate(c(_.a.BLEND_SRC_RGB,t,E),c(_.a.BLEND_DST_RGB,t,E),c(_.a.BLEND_SRC_ALPHA,t,E),c(_.a.BLEND_DST_ALPHA,t,E)),polygonOffset:(e,t,E)=>e.polygonOffset(c(_.a.POLYGON_OFFSET_FACTOR,t,E),c(_.a.POLYGON_OFFSET_UNITS,t,E)),sampleCoverage:(e,t,E)=>e.sampleCoverage(c(_.a.SAMPLE_COVERAGE_VALUE,t,E),c(_.a.SAMPLE_COVERAGE_INVERT,t,E)),stencilFuncFront:(e,t,E)=>e.stencilFuncSeparate(_.a.FRONT,c(_.a.STENCIL_FUNC,t,E),c(_.a.STENCIL_REF,t,E),c(_.a.STENCIL_VALUE_MASK,t,E)),stencilFuncBack:(e,t,E)=>e.stencilFuncSeparate(_.a.BACK,c(_.a.STENCIL_BACK_FUNC,t,E),c(_.a.STENCIL_BACK_REF,t,E),c(_.a.STENCIL_BACK_VALUE_MASK,t,E)),stencilOpFront:(e,t,E)=>e.stencilOpSeparate(_.a.FRONT,c(_.a.STENCIL_FAIL,t,E),c(_.a.STENCIL_PASS_DEPTH_FAIL,t,E),c(_.a.STENCIL_PASS_DEPTH_PASS,t,E)),stencilOpBack:(e,t,E)=>e.stencilOpSeparate(_.a.BACK,c(_.a.STENCIL_BACK_FAIL,t,E),c(_.a.STENCIL_BACK_PASS_DEPTH_FAIL,t,E),c(_.a.STENCIL_BACK_PASS_DEPTH_PASS,t,E))},s={enable:(e,t)=>e({[t]:!0}),disable:(e,t)=>e({[t]:!1}),pixelStorei:(e,t,E)=>e({[t]:E}),hint:(e,t,E)=>e({[t]:E}),bindFramebuffer:(e,t,E)=>{switch(t){case _.a.FRAMEBUFFER:return e({[_.a.DRAW_FRAMEBUFFER_BINDING]:E,[_.a.READ_FRAMEBUFFER_BINDING]:E});case _.a.DRAW_FRAMEBUFFER:return e({[_.a.DRAW_FRAMEBUFFER_BINDING]:E});case _.a.READ_FRAMEBUFFER:return e({[_.a.READ_FRAMEBUFFER_BINDING]:E});default:return null}},blendColor:(e,t,E,n,r)=>e({[_.a.BLEND_COLOR]:new Float32Array([t,E,n,r])}),blendEquation:(e,t)=>e({[_.a.BLEND_EQUATION_RGB]:t,[_.a.BLEND_EQUATION_ALPHA]:t}),blendEquationSeparate:(e,t,E)=>e({[_.a.BLEND_EQUATION_RGB]:t,[_.a.BLEND_EQUATION_ALPHA]:E}),blendFunc:(e,t,E)=>e({[_.a.BLEND_SRC_RGB]:t,[_.a.BLEND_DST_RGB]:E,[_.a.BLEND_SRC_ALPHA]:t,[_.a.BLEND_DST_ALPHA]:E}),blendFuncSeparate:(e,t,E,n,r)=>e({[_.a.BLEND_SRC_RGB]:t,[_.a.BLEND_DST_RGB]:E,[_.a.BLEND_SRC_ALPHA]:n,[_.a.BLEND_DST_ALPHA]:r}),clearColor:(e,t,E,n,r)=>e({[_.a.COLOR_CLEAR_VALUE]:new Float32Array([t,E,n,r])}),clearDepth:(e,t)=>e({[_.a.DEPTH_CLEAR_VALUE]:t}),clearStencil:(e,t)=>e({[_.a.STENCIL_CLEAR_VALUE]:t}),colorMask:(e,t,E,n,r)=>e({[_.a.COLOR_WRITEMASK]:[t,E,n,r]}),cullFace:(e,t)=>e({[_.a.CULL_FACE_MODE]:t}),depthFunc:(e,t)=>e({[_.a.DEPTH_FUNC]:t}),depthRange:(e,t,E)=>e({[_.a.DEPTH_RANGE]:new Float32Array([t,E])}),depthMask:(e,t)=>e({[_.a.DEPTH_WRITEMASK]:t}),frontFace:(e,t)=>e({[_.a.FRONT_FACE]:t}),lineWidth:(e,t)=>e({[_.a.LINE_WIDTH]:t}),polygonOffset:(e,t,E)=>e({[_.a.POLYGON_OFFSET_FACTOR]:t,[_.a.POLYGON_OFFSET_UNITS]:E}),sampleCoverage:(e,t,E)=>e({[_.a.SAMPLE_COVERAGE_VALUE]:t,[_.a.SAMPLE_COVERAGE_INVERT]:E}),scissor:(e,t,E,n,r)=>e({[_.a.SCISSOR_BOX]:new Int32Array([t,E,n,r])}),stencilMask:(e,t)=>e({[_.a.STENCIL_WRITEMASK]:t,[_.a.STENCIL_BACK_WRITEMASK]:t}),stencilMaskSeparate:(e,t,E)=>e({[t===_.a.FRONT?_.a.STENCIL_WRITEMASK:_.a.STENCIL_BACK_WRITEMASK]:E}),stencilFunc:(e,t,E,n)=>e({[_.a.STENCIL_FUNC]:t,[_.a.STENCIL_REF]:E,[_.a.STENCIL_VALUE_MASK]:n,[_.a.STENCIL_BACK_FUNC]:t,[_.a.STENCIL_BACK_REF]:E,[_.a.STENCIL_BACK_VALUE_MASK]:n}),stencilFuncSeparate:(e,t,E,n,r)=>e({[t===_.a.FRONT?_.a.STENCIL_FUNC:_.a.STENCIL_BACK_FUNC]:E,[t===_.a.FRONT?_.a.STENCIL_REF:_.a.STENCIL_BACK_REF]:n,[t===_.a.FRONT?_.a.STENCIL_VALUE_MASK:_.a.STENCIL_BACK_VALUE_MASK]:r}),stencilOp:(e,t,E,n)=>e({[_.a.STENCIL_FAIL]:t,[_.a.STENCIL_PASS_DEPTH_FAIL]:E,[_.a.STENCIL_PASS_DEPTH_PASS]:n,[_.a.STENCIL_BACK_FAIL]:t,[_.a.STENCIL_BACK_PASS_DEPTH_FAIL]:E,[_.a.STENCIL_BACK_PASS_DEPTH_PASS]:n}),stencilOpSeparate:(e,t,E,n,r)=>e({[t===_.a.FRONT?_.a.STENCIL_FAIL:_.a.STENCIL_BACK_FAIL]:E,[t===_.a.FRONT?_.a.STENCIL_PASS_DEPTH_FAIL:_.a.STENCIL_BACK_PASS_DEPTH_FAIL]:n,[t===_.a.FRONT?_.a.STENCIL_PASS_DEPTH_PASS:_.a.STENCIL_BACK_PASS_DEPTH_PASS]:r}),viewport:(e,t,E,n,r)=>e({[_.a.VIEWPORT]:[t,E,n,r]})},u=(e,t)=>e.isEnabled(t),S={[_.a.BLEND]:u,[_.a.CULL_FACE]:u,[_.a.DEPTH_TEST]:u,[_.a.DITHER]:u,[_.a.POLYGON_OFFSET_FILL]:u,[_.a.SAMPLE_ALPHA_TO_COVERAGE]:u,[_.a.SAMPLE_COVERAGE]:u,[_.a.SCISSOR_TEST]:u,[_.a.STENCIL_TEST]:u,[_.a.RASTERIZER_DISCARD]:u}},function(e,t,E){"use strict";(function(e){E.d(t,"a",function(){return i}),E.d(t,"c",function(){return T}),E.d(t,"b",function(){return R});var n=E(3),_=E(5),r=E(1);function a(e,t){const E=e[t].bind(e);e[t]=function(...t){const n=t[0];return n in e.state.cache||(e.state.cache[n]=E(...t)),e.state.enable?e.state.cache[n]:E(...t)},Object.defineProperty(e[t],"name",{value:`${t}-from-cache`,configurable:!1})}function o(e,t,E){const n=e[t].bind(e);e[t]=function(...t){const{valueChanged:_,oldValue:r}=E(e.state._updateCache,...t);return _&&n(...t),r},Object.defineProperty(e[t],"name",{value:`${t}-to-cache`,configurable:!1})}class A{constructor(e,{copyState:t=!1,log:E=(()=>{})}={}){this.gl=e,this.program=null,this.stateStack=[],this.enable=!0,this.cache=t?Object(_.a)(e):Object.assign({},n.c),this.log=E,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(e={}){this.stateStack.push({})}pop(){Object(r.a)(this.stateStack.length>0);const e=this.stateStack[this.stateStack.length-1];Object(_.c)(this.gl,e,this.cache),this.stateStack.pop()}_updateCache(e){let t,E=!1;const n=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const _ in e){Object(r.a)(void 0!==_);const a=e[_],o=this.cache[_];Object(r.d)(a,o)||(E=!0,t=o,!n||_ in n||(n[_]=o),this.cache[_]=a)}return{valueChanged:E,oldValue:t}}}function i(t,{enable:E=!0,copyState:_}={}){if(Object(r.a)(void 0!==_),!t.state){const r=void 0!==e?e:window;r.polyfillContext&&r.polyfillContext(t),t.state=new A(t,{copyState:_,enable:E}),function(e){const t=e.useProgram.bind(e);e.useProgram=function(E){e.state.program!==E&&(t(E),e.state.program=E)}}(t);for(const e in n.b){o(t,e,n.b[e])}a(t,"getParameter"),a(t,"isEnabled")}return t.state.enable=E,t}function T(e){e.state||i(e,{copyState:!1}),e.state.push()}function R(e){Object(r.a)(e.state),e.state.pop()}}).call(this,E(8))},function(e,t,E){"use strict";E.d(t,"c",function(){return a}),E.d(t,"a",function(){return o}),E.d(t,"b",function(){return A}),E.d(t,"d",function(){return i});var n=E(3),_=E(4),r=E(1);function a(e,t){if(Object(r.a)(Object(r.l)(e),"setParameters requires a WebGL context"),Object(r.k)(t))return;const E={};for(const _ in t){const r=Number(_),a=n.e[_];a&&("string"==typeof a?E[a]=!0:a(e,t[_],r))}const _=e.state&&e.state.cache;if(_)for(const r in E){(0,n.a[r])(e,t,_)}}function o(e,t){if("number"==typeof(t=t||n.c)){const E=t,_=n.d[E];return _?_(e,E):e.getParameter(E)}const E=Array.isArray(t)?t:Object.keys(t),_={};for(const t of E){const E=n.d[t];_[t]=E?E(e,Number(t)):e.getParameter(Number(t))}return _}function A(e){a(e,n.c)}function i(e,t,E){if(Object(r.k)(t))return E(e);const{nocatch:n=!0}=t;let o;if(Object(_.c)(e),a(e,t),n)o=E(e),Object(_.b)(e);else try{o=E(e)}finally{Object(_.b)(e)}return o}},function(e,t,E){"use strict";(function(e,n){E.d(t,"b",function(){return a}),E.d(t,"a",function(){return o});var _=E(2),r={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===n?"undefined":Object(_.a)(n))&&n},a=r.window||r.self||r.global,o=r.process||{};console}).call(this,E(8),E(10))},function(e,t,E){"use strict";var n=E(0),_=E.n(n),r=E(1);const a=e=>Object(r.m)(e)?void 0:0,o={[_.a.READ_BUFFER]:e=>Object(r.m)(e)?void 0:_.a.COLOR_ATTACHMENT0,35723:e=>Object(r.m)(e)?void 0:4352,[_.a.RASTERIZER_DISCARD]:a,[_.a.SAMPLES]:a,36795:(e,t)=>{const E=Object(r.m)(e)?e.getExtension("EXT_disjoint_timer_query_webgl2"):e.getExtension("EXT_disjoint_timer_query");return E&&E.GPU_DISJOINT_EXT?t(E.GPU_DISJOINT_EXT):0},37445:(e,t)=>{const E=e.getExtension("WEBGL_debug_renderer_info");return t(E&&E.UNMASKED_VENDOR_WEBGL||_.a.VENDOR)},37446:(e,t)=>{const E=e.getExtension("WEBGL_debug_renderer_info");return t(E&&E.UNMASKED_RENDERER_WEBGL||_.a.RENDERER)},34047:(e,t)=>{const E=e.luma.extensions.EXT_texture_filter_anisotropic;return E?t(E.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},[_.a.MAX_3D_TEXTURE_SIZE]:a,[_.a.MAX_ARRAY_TEXTURE_LAYERS]:a,[_.a.MAX_CLIENT_WAIT_TIMEOUT_WEBGL]:a,[_.a.MAX_COLOR_ATTACHMENTS]:(e,t)=>{if(!Object(r.m)(e)){const E=e.getExtension("WEBGL_draw_buffers");return E?t(E.MAX_COLOR_ATTACHMENTS_WEBGL):0}},[_.a.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS]:a,[_.a.MAX_COMBINED_UNIFORM_BLOCKS]:a,[_.a.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS]:a,[_.a.MAX_DRAW_BUFFERS]:e=>{if(!Object(r.m)(e)){const t=e.getExtension("WEBGL_draw_buffers");return t?t.MAX_DRAW_BUFFERS_WEBGL:0}},[_.a.MAX_ELEMENT_INDEX]:e=>e.getExtension("OES_element_index")?2147483647:65535,[_.a.MAX_ELEMENTS_INDICES]:e=>e.getExtension("OES_element_index")?16777216:65535,[_.a.MAX_ELEMENTS_VERTICES]:e=>16777216,[_.a.MAX_FRAGMENT_INPUT_COMPONENTS]:a,[_.a.MAX_FRAGMENT_UNIFORM_BLOCKS]:a,[_.a.MAX_FRAGMENT_UNIFORM_COMPONENTS]:a,[_.a.MAX_SAMPLES]:a,[_.a.MAX_SERVER_WAIT_TIMEOUT]:a,[_.a.MAX_TEXTURE_LOD_BIAS]:a,[_.a.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS]:a,[_.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS]:a,[_.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS]:a,[_.a.MAX_UNIFORM_BLOCK_SIZE]:a,[_.a.MAX_UNIFORM_BUFFER_BINDINGS]:a,[_.a.MAX_VARYING_COMPONENTS]:a,[_.a.MAX_VERTEX_OUTPUT_COMPONENTS]:a,[_.a.MAX_VERTEX_UNIFORM_BLOCKS]:a,[_.a.MAX_VERTEX_UNIFORM_COMPONENTS]:a,[_.a.MIN_PROGRAM_TEXEL_OFFSET]:a,[_.a.MAX_PROGRAM_TEXEL_OFFSET]:a,[_.a.UNIFORM_BUFFER_OFFSET_ALIGNMENT]:a};E.d(t,"b",function(){return A}),E.d(t,"a",function(){return i});const A={OES_vertex_array_object:{meta:{suffix:"OES"},createVertexArray:()=>{Object(r.a)(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:()=>{},bindVertexArray:()=>{},isVertexArray:()=>!1},ANGLE_instanced_arrays:{meta:{suffix:"ANGLE"},vertexAttribDivisor(e,t){Object(r.a)(0===t,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},WEBGL_draw_buffers:{meta:{suffix:"WEBGL"},drawBuffers:()=>{Object(r.a)(!1)}},EXT_disjoint_timer_query:{meta:{suffix:"EXT"},createQuery:()=>{Object(r.a)(!1)},deleteQuery:()=>{Object(r.a)(!1)},beginQuery:()=>{Object(r.a)(!1)},endQuery:()=>{},getQuery(e,t){return this.getQueryObject(e,t)},getQueryParameter(e,t){return this.getQueryObject(e,t)},getQueryObject:()=>{}}},i={readBuffer:(e,t,E)=>{Object(r.m)(e)&&t(E)},getVertexAttrib:(e,t,E,n)=>{const{webgl2:a,ext:o}=function(e,t){return{webgl2:Object(r.m)(e),ext:e.getExtension(t)}}(e,"ANGLE_instanced_arrays");let A;switch(n){case _.a.VERTEX_ATTRIB_ARRAY_INTEGER:A=!!a&&void 0;break;case _.a.VERTEX_ATTRIB_ARRAY_DIVISOR:A=a||o?void 0:0}return void 0!==A?A:t(E,n)},getProgramParameter:(e,t,E,n)=>{if(!Object(r.m)(e))switch(n){case _.a.TRANSFORM_FEEDBACK_BUFFER_MODE:return _.a.SEPARATE_ATTRIBS;case _.a.TRANSFORM_FEEDBACK_VARYINGS:case _.a.ACTIVE_UNIFORM_BLOCKS:return 0}return t(E,n)},getInternalformatParameter:(e,t,E,n,a)=>{if(!Object(r.m)(e))switch(a){case _.a.SAMPLES:return new Int32Array([0])}return e.getInternalformatParameter(E,n,a)},getTexParameter(e,t,E,n){switch(n){case _.a.TEXTURE_MAX_ANISOTROPY_EXT:const{extensions:t}=e.luma,E=t.EXT_texture_filter_anisotropic;n=E&&E.TEXTURE_MAX_ANISOTROPY_EXT||_.a.TEXTURE_MAX_ANISOTROPY_EXT}return t(E,n)},getParameter:function(e,t,E){const n=o[E],_="function"==typeof n?n(e,t,E):n;return void 0!==_?_:t(E)},hint:(e,t,E,n)=>t(E,n)}},function(e,t){var E;E=function(){return this}();try{E=E||new Function("return this")()}catch(e){"object"==typeof window&&(E=window)}e.exports=E},function(e,t,E){"use strict";(function(e){E.d(t,"c",function(){return n}),E.d(t,"d",function(){return _}),E.d(t,"a",function(){return r}),E.d(t,"b",function(){return a});const n="undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type||void 0!==e&&"object"==typeof e.versions&&Boolean(e.versions.electron)||"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0,_="object"==typeof e&&"[object process]"===String(e)&&!e.browser,r=!_||n,a=r&&"undefined"!=typeof document}).call(this,E(10))},function(e,t){var E,n,_=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(E===setTimeout)return setTimeout(e,0);if((E===r||!E)&&setTimeout)return E=setTimeout,setTimeout(e,0);try{return E(e,0)}catch(t){try{return E.call(null,e,0)}catch(t){return E.call(this,e,0)}}}!function(){try{E="function"==typeof setTimeout?setTimeout:r}catch(e){E=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var A,i=[],T=!1,R=-1;function c(){T&&A&&(T=!1,A.length?i=A.concat(i):R=-1,i.length&&N())}function N(){if(!T){var e=o(c);T=!0;for(var t=i.length;t;){for(A=i,i=[];++R<t;)A&&A[R].run();R=-1,t=i.length}A=null,T=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}_.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)t[E-1]=arguments[E];i.push(new s(e,t)),1!==i.length||T||o(N)},s.prototype.run=function(){this.fun.apply(null,this.array)},_.title="browser",_.browser=!0,_.env={},_.argv=[],_.version="",_.versions={},_.on=u,_.addListener=u,_.once=u,_.off=u,_.removeListener=u,_.removeAllListeners=u,_.emit=u,_.prependListener=u,_.prependOnceListener=u,_.listeners=function(e){return[]},_.binding=function(e){throw new Error("process.binding is not supported")},_.cwd=function(){return"/"},_.chdir=function(e){throw new Error("process.chdir is not supported")},_.umask=function(){return 0}},function(e,t,E){"use strict";(function(e){E.d(t,"b",function(){return _}),E.d(t,"c",function(){return r}),E.d(t,"a",function(){return a});const n={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e},_=n.self||n.window||n.global,r=n.window||n.self||n.global,a=n.global||n.self||n.window}).call(this,E(8))},function(e,t,E){"use strict";(function(e){E.d(t,"a",function(){return r});var n=E(1),_=E(7);function r(e){return e.luma=e.luma||{},function(e){e.luma.extensions={};const t=e.getSupportedExtensions()||[];for(const E of t)e.luma[E]=e.getExtension(E)}(e),e.luma.polyfilled||(!function(e,t){for(const E of Object.getOwnPropertyNames(t))"overrides"!==E&&a(e,{extension:E,target:e.luma,target2:e})}(e,_.b),function(e,{target:t,target2:E}){Object.keys(_.a).forEach(n=>{if("function"==typeof _.a[n]){const r=e[n]?e[n].bind(e):()=>{},a=_.a[n].bind(null,e,r);t[n]=a,E[n]=a}})}(e,{target:e.luma,target2:e}),e.luma.polyfilled=!0),e}function a(e,{extension:t,target:E,target2:r}){const a=_.b[t];Object(n.a)(a);const{meta:o={}}=a,{suffix:A=""}=o,i=e.getExtension(t);for(const t of Object.keys(a)){const n=`${t}${A}`;let _=null;"meta"===t||"function"==typeof e[t]||(i&&"function"==typeof i[n]?_=(...e)=>i[n](...e):"function"==typeof a[t]&&(_=a[t].bind(E))),_&&(E[t]=_,r[t]=_)}}(void 0!==e?e:window).polyfillContext=r}).call(this,E(8))},function(e,t,E){"use strict";(function(e){E.d(t,"a",function(){return r});var n=E(2),_=E(14);function r(){return!("object"===(void 0===e?"undefined":Object(n.a)(e))&&"[object process]"===String(e)&&!e.browser)||Object(_.a)()}}).call(this,E(10))},function(e,t,E){"use strict";(function(e){E.d(t,"a",function(){return _});var n=E(2);function _(t){if("undefined"!=typeof window&&"object"===Object(n.a)(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===Object(n.a)(e.versions)&&Boolean(e.versions.electron))return!0;var E="object"===("undefined"==typeof navigator?"undefined":Object(n.a)(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,_=t||E;return!!(_&&_.indexOf("Electron")>=0)}}).call(this,E(10))},function(e,t,E){(function(t){const n=E(17),_="undefined"==typeof window?t:window;_.loaders=_.luma||{},e.exports=Object.assign(_.luma,n)}).call(this,E(8))},function(e,t){},function(e,t,E){"use strict";E.r(t);var n=E(12),_=E(5),r=E(4),a=E(0),o=E.n(a),A=E(1);const i=A.g&&"undefined"!=typeof document,T={webgl2:!0,webgl1:!0,throwOnError:!1,manageState:!0,canvas:null,debug:!1,width:800,height:600};function R(e={}){Object(A.a)(A.g,"createGLContext on available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"),e=Object.assign({},T,e);const{width:t,height:E}=e;let n;const{canvas:_}=e;return(n=function(e,t){const{onError:E=(e=>null)}=t,n=e=>E(`WebGL context: ${e.statusMessage||"error"}`);e.addEventListener("webglcontextcreationerror",n,!1);const{webgl1:_=!0,webgl2:r=!0}=t;let a=null;r&&(a=(a=a||e.getContext("webgl2",t))||e.getContext("experimental-webgl2",t));_&&(a=(a=a||e.getContext("webgl",t))||e.getContext("experimental-webgl",t));if(e.removeEventListener("webglcontextcreationerror",n,!1),!a)return E(`Failed to create ${r&&!_?"WebGL2":"WebGL"} context`);return a}(function({canvas:e,width:t=800,height:E=600,onError:n=(()=>{})}){let _;if("string"==typeof e){const t=i&&"complete"===document.readyState;t||n(`createGLContext called on canvas '${e}' before page was loaded`),_=document.getElementById(e)}else e?_=e:((_=document.createElement("canvas")).id="lumagl-canvas",_.style.width=Number.isFinite(t)?`${t}px`:"100%",_.style.height=Number.isFinite(E)?`${E}px`:"100%",document.body.insertBefore(_,document.body.firstChild));return _}({canvas:_,width:t,height:E,onError:function(t){if(e.throwOnError)throw new Error(t);return null}}),e))?(function(e){const t=Object(A.m)(e)?"WebGL2":"WebGL1",E=N(e),n=E?`(${E.vendor},${E.renderer})`:"",_=e.debug?" debug":"";A.n.info(1,`${t}${_} context ${n}`)()}(n=c(n,e)),n):null}function c(e,t={}){if(!e||e._instrumented)return e;e._version=e._version||function(e){if("undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext)return 2;return 1}(e),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{},t=Object.assign({},T,t);const{manageState:E,debug:n}=t;return E&&Object(r.a)(e,{copyState:!1,log:(...e)=>A.n.log(1,...e)()}),A.g&&n&&(A.f.makeDebugContext?(e=A.f.makeDebugContext(e,t),A.n.priority=Math.max(A.n.priority,1)):A.n.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),e._instrumented=!0,e}function N(e){const t=e.getParameter(o.a.VENDOR),E=e.getParameter(o.a.RENDERER),n=e.getExtension("WEBGL_debug_renderer_info");return{vendor:n&&e.getParameter(n.UNMASKED_VENDOR_WEBGL||o.a.VENDOR)||t,renderer:n&&e.getParameter(n.UNMASKED_RENDERER_WEBGL||o.a.RENDERER)||E,vendorMasked:t,rendererMasked:E,version:e.getParameter(o.a.VERSION),shadingLanguageVersion:e.getParameter(o.a.SHADING_LANGUAGE_VERSION)}}function s(e,t={}){if(e.canvas){return void function(e,t,E){let n="width"in E?E.width:e.canvas.clientWidth,_="height"in E?E.height:e.canvas.clientHeight;n&&_||(A.n.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,n=e.canvas.width||1,_=e.canvas.height||1);e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};const r=e.luma.canvasSizeInfo;if(r.clientWidth!==n||r.clientHeight!==_||r.devicePixelRatio!==t){let E=t;const r=Math.floor(n*E),a=Math.floor(_*E);e.canvas.width=r,e.canvas.height=a,e.drawingBufferWidth===r&&e.drawingBufferHeight===a||(A.n.warn("Device pixel ratio clamped")(),E=Math.min(e.drawingBufferWidth/n,e.drawingBufferHeight/_),e.canvas.width=Math.floor(n*E),e.canvas.height=Math.floor(_*E)),Object.assign(e.luma.canvasSizeInfo,{clientWidth:n,clientHeight:_,devicePixelRatio:t})}}(e,Object(A.e)(t.useDevicePixels),t)}const E=e.getExtension("STACKGL_resize_drawingbuffer");E&&"width"in t&&"height"in t&&E.resize(t.width,t.height)}E.d(t,"polyfillContext",function(){return n.a}),E.d(t,"getParameters",function(){return _.a}),E.d(t,"setParameters",function(){return _.c}),E.d(t,"resetParameters",function(){return _.b}),E.d(t,"withParameters",function(){return _.d}),E.d(t,"trackContextState",function(){return r.a}),E.d(t,"pushContextState",function(){return r.c}),E.d(t,"popContextState",function(){return r.b}),E.d(t,"createGLContext",function(){return R}),E.d(t,"resizeGLContext",function(){return s}),E.d(t,"instrumentGLContext",function(){return c}),E.d(t,"getContextDebugInfo",function(){return N}),E.d(t,"isBrowser",function(){return A.g}),E.d(t,"isBrowserMainThread",function(){return A.h}),E.d(t,"isNode",function(){return A.j}),E.d(t,"isElectron",function(){return A.i}),E.d(t,"global",function(){return A.f}),E.d(t,"window",function(){return A.p}),E.d(t,"self",function(){return A.o}),E.d(t,"cssToDeviceRatio",function(){return A.c}),E.d(t,"cssToDevicePixels",function(){return A.b}),E.d(t,"isWebGL",function(){return A.l}),E.d(t,"isWebGL2",function(){return A.m})}])}); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var E=t();for(var n in E)("object"==typeof exports?exports:e)[n]=E[n]}}(window,function(){return function(e){var t={};function E(n){if(t[n])return t[n].exports;var _=t[n]={i:n,l:!1,exports:{}};return e[n].call(_.exports,_,_.exports,E),_.l=!0,_.exports}return E.m=e,E.c=t,E.d=function(e,t,n){E.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},E.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},E.t=function(e,t){if(1&t&&(e=E(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(E.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var _ in e)E.d(n,_,function(t){return e[t]}.bind(null,_));return n},E.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return E.d(t,"a",t),t},E.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},E.p="",E(E.s=15)}([function(e,t){e.exports={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,FUNC_ADD:32774,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,BLEND_COLOR:32773,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,VENDOR:7936,RENDERER:7937,VERSION:7938,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,BROWSER_DEFAULT_WEBGL:37444,STATIC_DRAW:35044,STREAM_DRAW:35040,DYNAMIC_DRAW:35048,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,CULL_FACE:2884,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,BLEND:3042,DEPTH_TEST:2929,DITHER:3024,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,SCISSOR_TEST:3089,STENCIL_TEST:2960,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CONTEXT_LOST_WEBGL:37442,CW:2304,CCW:2305,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,COMPILE_STATUS:35713,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_ATTRIBUTES:35721,ACTIVE_UNIFORMS:35718,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,ALWAYS:519,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,GEQUAL:518,NOTEQUAL:517,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,TEXTURE_WIDTH:4096,TEXTURE_HEIGHT:4097,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,MAX_3D_TEXTURE_SIZE:32883,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,MAX_TEXTURE_LOD_BIAS:34045,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,RASTERIZER_DISCARD:35977,VERTEX_ARRAY_BINDING:34229,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,MAX_ELEMENT_INDEX:36203,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,RGB9_E5:35901,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2UI:36975,TEXTURE_IMMUTABLE_FORMAT:37167,TEXTURE_IMMUTABLE_LEVELS:33503,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,UNSIGNED_INT_24_8:34042,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,INT_2_10_10_10_REV:36255,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,MAX_SAMPLES:36183,SAMPLER_BINDING:35097,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,UNSIGNED_NORMALIZED:35863,SIGNED_NORMALIZED:36764,VERTEX_ATTRIB_ARRAY_INTEGER:35069,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,DEPTH24_STENCIL8:35056,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,COLOR:6144,DEPTH:6145,STENCIL:6146,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,INVALID_INDEX:4294967295,TIMEOUT_IGNORED:-1,MAX_CLIENT_WAIT_TIMEOUT_WEBGL:37447,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,UNMASKED_VENDOR_WEBGL:37445,UNMASKED_RENDERER_WEBGL:37446,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,TEXTURE_MAX_ANISOTROPY_EXT:34046,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798,UNSIGNED_INT_24_8_WEBGL:34042,HALF_FLOAT_OES:36193,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863,MIN_EXT:32775,MAX_EXT:32776,SRGB_EXT:35904,SRGB_ALPHA_EXT:35906,SRGB8_ALPHA8_EXT:35907,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,COLOR_ATTACHMENT0_WEBGL:36064,COLOR_ATTACHMENT1_WEBGL:36065,COLOR_ATTACHMENT2_WEBGL:36066,COLOR_ATTACHMENT3_WEBGL:36067,COLOR_ATTACHMENT4_WEBGL:36068,COLOR_ATTACHMENT5_WEBGL:36069,COLOR_ATTACHMENT6_WEBGL:36070,COLOR_ATTACHMENT7_WEBGL:36071,COLOR_ATTACHMENT8_WEBGL:36072,COLOR_ATTACHMENT9_WEBGL:36073,COLOR_ATTACHMENT10_WEBGL:36074,COLOR_ATTACHMENT11_WEBGL:36075,COLOR_ATTACHMENT12_WEBGL:36076,COLOR_ATTACHMENT13_WEBGL:36077,COLOR_ATTACHMENT14_WEBGL:36078,COLOR_ATTACHMENT15_WEBGL:36079,DRAW_BUFFER0_WEBGL:34853,DRAW_BUFFER1_WEBGL:34854,DRAW_BUFFER2_WEBGL:34855,DRAW_BUFFER3_WEBGL:34856,DRAW_BUFFER4_WEBGL:34857,DRAW_BUFFER5_WEBGL:34858,DRAW_BUFFER6_WEBGL:34859,DRAW_BUFFER7_WEBGL:34860,DRAW_BUFFER8_WEBGL:34861,DRAW_BUFFER9_WEBGL:34862,DRAW_BUFFER10_WEBGL:34863,DRAW_BUFFER11_WEBGL:34864,DRAW_BUFFER12_WEBGL:34865,DRAW_BUFFER13_WEBGL:34866,DRAW_BUFFER14_WEBGL:34867,DRAW_BUFFER15_WEBGL:34868,MAX_COLOR_ATTACHMENTS_WEBGL:36063,MAX_DRAW_BUFFERS_WEBGL:34852,VERTEX_ARRAY_BINDING_OES:34229,QUERY_COUNTER_BITS_EXT:34916,CURRENT_QUERY_EXT:34917,QUERY_RESULT_EXT:34918,QUERY_RESULT_AVAILABLE_EXT:34919,TIME_ELAPSED_EXT:35007,TIMESTAMP_EXT:36392,GPU_DISJOINT_EXT:36795}},function(e,t,E){"use strict";var n=E(2);function _(e){return function(e){if(Array.isArray(e)){for(var t=0,E=new Array(e.length);t<e.length;t++)E[t]=e[t];return E}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var E=0;E<t.length;E++){var n=t[E];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,E){return t&&a(e.prototype,t),E&&a(e,E),e}var A=E(13),i="8.0.0-alpha.12",T=Object(A.a)();var R=function(){function e(t,E){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";r(this,e),this.storage=function(e){try{var t=window[e],E="__storage_test__";return t.setItem(E,E),t.removeItem(E),t}catch(e){return null}}(n),this.id=t,this.config={},Object.assign(this.config,E),this._loadConfiguration()}return o(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 c(e,t,E){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600,_=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>n&&(E=Math.min(E,n/e.width));var r=e.width*E,a=e.height*E,o=["font-size:1px;","padding:".concat(Math.floor(a/2),"px ").concat(Math.floor(r/2),"px;"),"line-height:".concat(a,"px;"),"background:url(".concat(_,");"),"background-size:".concat(r,"px ").concat(a,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),o]}var N={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 s(e){return"string"==typeof e?N[e.toUpperCase()]||N.WHITE:e}function u(e,t){if(!e)throw new Error(t||"Assertion failed")}var S=E(6);function I(){var e;if(T&&S.b.performance)e=S.b.performance.now();else if(S.a.hrtime){var t=S.a.hrtime();e=1e3*t[0]+t[1]/1e6}else e=Date.now();return e}var O={debug:T&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},L={enabled:!1,priority:0};function C(){}var F={};var l=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;r(this,e),this.id=t,this.VERSION=i,this._startTs=I(),this._deltaTs=I(),this.LOG_THROTTLE_TIMEOUT=0,this._storage=new R("__probe-".concat(this.id,"__"),L),this.userData={},this.timeStamp("".concat(this.id," started")),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"],E=Object.getPrototypeOf(e),n=Object.getOwnPropertyNames(E),_=!0,r=!1,a=void 0;try{for(var o,A=function(){var E=o.value;"function"==typeof e[E]&&(t.find(function(e){return E===e})||(e[E]=e[E].bind(e)))},i=n[Symbol.iterator]();!(_=(o=i.next()).done);_=!0)A()}catch(e){r=!0,a=e}finally{try{_||null==i.return||i.return()}finally{if(r)throw a}}}(this),Object.seal(this)}return o(e,[{key:"isEnabled",value:function(){return this._storage.config.enabled}},{key:"getPriority",value:function(){return this._storage.config.priority}},{key:"getLevel",value:function(){return this._storage.config.priority}},{key:"getTotal",value:function(){return Number((I()-this._startTs).toPrecision(10))}},{key:"getDelta",value:function(){return Number((I()-this._deltaTs).toPrecision(10))}},{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({priority:e}),this}},{key:"assert",value:function(e,t){u(e,t)}},{key:"warn",value:function(e){for(var t=arguments.length,E=new Array(t>1?t-1:0),n=1;n<t;n++)E[n-1]=arguments[n];return this._getLogFunction({message:e,args:E,method:O.warn,once:!0})}},{key:"error",value:function(e){for(var t=arguments.length,E=new Array(t>1?t-1:0),n=1;n<t;n++)E[n-1]=arguments[n];return this._getLogFunction({message:e,args:E,method:O.error})}},{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){for(var E=arguments.length,n=new Array(E>2?E-2:0),_=2;_<E;_++)n[_-2]=arguments[_];return this._getLogFunction({priority:e,message:t,args:n,method:O.log,time:!0,once:!0})}},{key:"log",value:function(e,t){for(var E=arguments.length,n=new Array(E>2?E-2:0),_=2;_<E;_++)n[_-2]=arguments[_];return this._getLogFunction({priority:e,message:t,args:n,method:O.debug})}},{key:"info",value:function(e,t){for(var E=arguments.length,n=new Array(E>2?E-2:0),_=2;_<E;_++)n[_-2]=arguments[_];return this._getLogFunction({priority:e,message:t,args:n,method:console.info})}},{key:"once",value:function(e,t){for(var E=arguments.length,n=new Array(E>2?E-2:0),_=2;_<E;_++)n[_-2]=arguments[_];return this._getLogFunction({priority:e,message:t,args:n,method:O.debug||O.info,once:!0})}},{key:"table",value:function(e,t,E){if(t){var n=function(e){for(var t in e)for(var E in e[t])return E||"untitled";return"empty"}(t);return this._getLogFunction({priority:e,message:t,args:E&&[E],tag:n,method:console.table||C})}return C}},{key:"image",value:function(e){var t=e.priority,E=e.image,n=e.message,_=void 0===n?"":n,r=e.scale,a=void 0===r?1:r;return t>this.getPriority()?C:T?this._logImageInBrowser({image:E,message:_,scale:a}):this._logImageInNode({image:E,message:_,scale:a})}},{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(function(e,t,E){return t in e?Object.defineProperty(e,t,{value:E,enumerable:!0,configurable:!0,writable:!0}):e[t]=E,e}({},e,t))}},{key:"_logImageInNode",value:function(e){var t=e.image,n=(e.message,e.scale),_=void 0===n?1:n,r=null;try{r=E(16)}catch(e){}return r?function(){return r(t,{fit:"box",width:"".concat(Math.round(80*_),"%")}).then(function(e){return console.log(e)})}:C}},{key:"_logImageInBrowser",value:function(e){var t=e.image,E=e.message,n=void 0===E?"":E,r=e.scale,a=void 0===r?1:r;if("string"==typeof t){var o=new Image;return o.onload=function(){var e,t=c(o,n,a);(e=console).log.apply(e,_(t))},o.src=t,C}var A,i=t.nodeName||"";if("img"===i.toLowerCase())return(A=console).log.apply(A,_(c(t,n,a))),C;if("canvas"===i.toLowerCase()){var T=new Image;return T.onload=function(){var e;return(e=console).log.apply(e,_(c(T,n,a)))},T.src=t.toDataURL(),C}return C}},{key:"time",value:function(e,t){return this._getLogFunction({priority:e,message:t,method:console.time?console.time:console.info})}},{key:"timeEnd",value:function(e,t){return this._getLogFunction({priority:e,message:t,method:console.timeEnd?console.timeEnd:console.info})}},{key:"timeStamp",value:function(e,t){return this._getLogFunction({priority:e,message:t,method:console.timeStamp||C})}},{key:"group",value:function(e,t){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1},n=(E=this._normalizeArguments({priority:e,message:t,opts:E})).collapsed;return this._getLogFunction({priority:e,message:t,opts:E,method:(n?console.groupCollapsed:console.group)||console.info})}},{key:"groupCollapsed",value:function(e,t){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(e,t,Object.assign({},E,{collapsed:!0}))}},{key:"groupEnd",value:function(e){return this._getLogFunction({priority:e,message:"",method:console.groupEnd||C})}},{key:"withGroup",value:function(e,t,E){var n=this._normalizeArguments({priority:e,message:t});this.group(n);try{E()}finally{this.groupEnd(n.message)}}},{key:"trace",value:function(){console.trace&&console.trace()}},{key:"_shouldLog",value:function(e){return 0===(e=this._normalizePriority(e))||this.isEnabled()&&this.getPriority()>=e}},{key:"_getElapsedTime",value:function(){var e=this.getTotal(),t=this.getDelta();return this._deltaTs=I(),{total:e,delta:t}}},{key:"_getLogFunction",value:function(e){if(this._shouldLog(e.priority)){var t=e.method;e=this._parseArguments(e),u(t);var E=e.message,n=e.tag||e.message;if(e.once){if(F[n])return C;F[n]=I()}return E=this._decorateMessage(E,e),t.bind.apply(t,[console,E].concat(_(e.args)))}return C}},{key:"_parseArguments",value:function(e){var t=this._normalizeArguments(e),E=this._getElapsedTime(),n=E.delta,_=E.total;return Object.assign(e,t,{delta:n,total:_})}},{key:"_normalizePriority",value:function(e){var t;switch(Object(n.a)(e)){case"number":t=e;break;case"object":t=e.priority||0;break;default:t=0}return u(Number.isFinite(t)&&t>=0),t}},{key:"_normalizeArguments",value:function(e){var t=e.priority,E=e.message,_=e.args,r=void 0===_?[]:_,a=e.opts,o={priority:this._normalizePriority(t),message:E,args:r};switch(Object(n.a)(t)){case"string":case"function":void 0!==E&&r.unshift(E),Object.assign(o,{message:t});break;case"object":Object.assign(o,t)}return"function"==typeof o.message&&(o.message=this._shouldLog(o.priority)?o.message():""),u("string"==typeof o.message||"object"===Object(n.a)(o.message)),Object.assign(o,a)}},{key:"_decorateMessage",value:function(e,t){if("string"==typeof e){var E="";if(t.time){var n=this._getElapsedTime().total;E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,E=Math.max(t-e.length,0);return"".concat(" ".repeat(E)).concat(e)}((o=n)<10?"".concat(o.toFixed(2),"ms"):o<100?"".concat(o.toFixed(1),"ms"):o<1e3?"".concat(o.toFixed(0),"ms"):"".concat((o/1e3).toFixed(2),"s"))}e=t.time?"".concat(this.id,": ").concat(E," ").concat(e):"".concat(this.id,": ").concat(e),_=e,r=t.color,a=t.background,T||"string"!=typeof _||(r&&(r=s(r),_="[".concat(r,"m").concat(_,"[39m")),a&&(r=s(a),_="[".concat(a+10,"m").concat(_,"[49m"))),e=_}var _,r,a,o;return e}},{key:"priority",set:function(e){return this._storage.updateConfiguration({priority:e}),this},get:function(){return this._storage.config.priority}}]),e}();function f(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}function M(e){for(const t in e)return!1;return!0}function B(e,t){if(e===t)return!0;const E=Array.isArray(e)||ArrayBuffer.isView(e),n=Array.isArray(t)||ArrayBuffer.isView(t);if(E&&n&&e.length===t.length){for(let E=0;E<e.length;++E)if(e[E]!==t[E])return!1;return!0}return!1}l.VERSION=i;var d=E(9),D=E(11);function P(e){if(e.canvas&&e.luma){const{clientWidth:t}=e.luma.canvasSizeInfo;return t?e.drawingBufferWidth/t:1}return 1}function U(e,t,E=!0){return function(e,t,E,n,_){const r=G(e[0],t,E);let a=h(e[1],t,n,_),o=G(e[0]+1,t,E);const A=o===E-1?o:o-1;let i;o=h(e[1]+1,t,n,_),_?(i=a,a=o=0===o?o:o+1):i=o===n-1?o:o-1;return{x:r,y:a,width:Math.max(A-r+1,1),height:Math.max(i-a+1,1)}}(t,P(e),e.drawingBufferWidth,e.drawingBufferHeight,E)}function g(e){const t="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(e)?e<=0?1:e:e?t:1}function G(e,t,E){return Math.min(Math.round(e*t),E-1)}function h(e,t,E,n){return n?Math.max(0,E-1-Math.round(e*t)):Math.min(Math.round(e*t),E-1)}function b(e){return Boolean(e&&Number.isFinite(e._version))}function p(e){return Boolean(e&&2===e._version)}E.d(t,"n",function(){return m}),E.d(t,"a",function(){return f}),E.d(t,"d",function(){return B}),E.d(t,"k",function(){return M}),E.d(t,"g",function(){return d.a}),E.d(t,"j",function(){return d.d}),E.d(t,"i",function(){return d.c}),E.d(t,"h",function(){return d.b}),E.d(t,"f",function(){return D.a}),E.d(t,"p",function(){return D.c}),E.d(t,"o",function(){return D.b}),E.d(t,"b",function(){return U}),E.d(t,"c",function(){return P}),E.d(t,"e",function(){return g}),E.d(t,"l",function(){return b}),E.d(t,"m",function(){return p});const m=new l({id:"gltools"}).enable()},function(e,t,E){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e){return(_="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}E.d(t,"a",function(){return _})},function(e,t,E){"use strict";E.d(t,"c",function(){return a}),E.d(t,"e",function(){return R}),E.d(t,"a",function(){return N}),E.d(t,"b",function(){return s}),E.d(t,"d",function(){return S});var n=E(0),_=E.n(n),r=E(1);const a={[_.a.BLEND]:!1,[_.a.BLEND_COLOR]:new Float32Array([0,0,0,0]),[_.a.BLEND_EQUATION_RGB]:_.a.FUNC_ADD,[_.a.BLEND_EQUATION_ALPHA]:_.a.FUNC_ADD,[_.a.BLEND_SRC_RGB]:_.a.ONE,[_.a.BLEND_DST_RGB]:_.a.ZERO,[_.a.BLEND_SRC_ALPHA]:_.a.ONE,[_.a.BLEND_DST_ALPHA]:_.a.ZERO,[_.a.COLOR_CLEAR_VALUE]:new Float32Array([0,0,0,0]),[_.a.COLOR_WRITEMASK]:[!0,!0,!0,!0],[_.a.CULL_FACE]:!1,[_.a.CULL_FACE_MODE]:_.a.BACK,[_.a.DEPTH_TEST]:!1,[_.a.DEPTH_CLEAR_VALUE]:1,[_.a.DEPTH_FUNC]:_.a.LESS,[_.a.DEPTH_RANGE]:new Float32Array([0,1]),[_.a.DEPTH_WRITEMASK]:!0,[_.a.DITHER]:!0,[_.a.FRAMEBUFFER_BINDING]:null,[_.a.FRONT_FACE]:_.a.CCW,[_.a.GENERATE_MIPMAP_HINT]:_.a.DONT_CARE,[_.a.LINE_WIDTH]:1,[_.a.POLYGON_OFFSET_FILL]:!1,[_.a.POLYGON_OFFSET_FACTOR]:0,[_.a.POLYGON_OFFSET_UNITS]:0,[_.a.SAMPLE_COVERAGE_VALUE]:1,[_.a.SAMPLE_COVERAGE_INVERT]:!1,[_.a.SCISSOR_TEST]:!1,[_.a.SCISSOR_BOX]:new Int32Array([0,0,1024,1024]),[_.a.STENCIL_TEST]:!1,[_.a.STENCIL_CLEAR_VALUE]:0,[_.a.STENCIL_WRITEMASK]:4294967295,[_.a.STENCIL_BACK_WRITEMASK]:4294967295,[_.a.STENCIL_FUNC]:_.a.ALWAYS,[_.a.STENCIL_REF]:0,[_.a.STENCIL_VALUE_MASK]:4294967295,[_.a.STENCIL_BACK_FUNC]:_.a.ALWAYS,[_.a.STENCIL_BACK_REF]:0,[_.a.STENCIL_BACK_VALUE_MASK]:4294967295,[_.a.STENCIL_FAIL]:_.a.KEEP,[_.a.STENCIL_PASS_DEPTH_FAIL]:_.a.KEEP,[_.a.STENCIL_PASS_DEPTH_PASS]:_.a.KEEP,[_.a.STENCIL_BACK_FAIL]:_.a.KEEP,[_.a.STENCIL_BACK_PASS_DEPTH_FAIL]:_.a.KEEP,[_.a.STENCIL_BACK_PASS_DEPTH_PASS]:_.a.KEEP,[_.a.VIEWPORT]:[0,0,1024,1024],[_.a.PACK_ALIGNMENT]:4,[_.a.UNPACK_ALIGNMENT]:4,[_.a.UNPACK_FLIP_Y_WEBGL]:!1,[_.a.UNPACK_PREMULTIPLY_ALPHA_WEBGL]:!1,[_.a.UNPACK_COLORSPACE_CONVERSION_WEBGL]:_.a.BROWSER_DEFAULT_WEBGL,[_.a.FRAGMENT_SHADER_DERIVATIVE_HINT]:_.a.DONT_CARE,[_.a.READ_FRAMEBUFFER_BINDING]:null,[_.a.RASTERIZER_DISCARD]:!1,[_.a.PACK_ROW_LENGTH]:0,[_.a.PACK_SKIP_PIXELS]:0,[_.a.PACK_SKIP_ROWS]:0,[_.a.UNPACK_ROW_LENGTH]:0,[_.a.UNPACK_IMAGE_HEIGHT]:0,[_.a.UNPACK_SKIP_PIXELS]:0,[_.a.UNPACK_SKIP_ROWS]:0,[_.a.UNPACK_SKIP_IMAGES]:0},o=(e,t,E)=>t?e.enable(E):e.disable(E),A=(e,t,E)=>e.hint(E,t),i=(e,t,E)=>e.pixelStorei(E,t);function T(e){return Array.isArray(e)||ArrayBuffer.isView(e)}const R={[_.a.BLEND]:o,[_.a.BLEND_COLOR]:(e,t)=>e.blendColor(...t),[_.a.BLEND_EQUATION_RGB]:"blendEquation",[_.a.BLEND_EQUATION_ALPHA]:"blendEquation",[_.a.BLEND_SRC_RGB]:"blendFunc",[_.a.BLEND_DST_RGB]:"blendFunc",[_.a.BLEND_SRC_ALPHA]:"blendFunc",[_.a.BLEND_DST_ALPHA]:"blendFunc",[_.a.COLOR_CLEAR_VALUE]:(e,t)=>e.clearColor(...t),[_.a.COLOR_WRITEMASK]:(e,t)=>e.colorMask(...t),[_.a.CULL_FACE]:o,[_.a.CULL_FACE_MODE]:(e,t)=>e.cullFace(t),[_.a.DEPTH_TEST]:o,[_.a.DEPTH_CLEAR_VALUE]:(e,t)=>e.clearDepth(t),[_.a.DEPTH_FUNC]:(e,t)=>e.depthFunc(t),[_.a.DEPTH_RANGE]:(e,t)=>e.depthRange(...t),[_.a.DEPTH_WRITEMASK]:(e,t)=>e.depthMask(t),[_.a.DITHER]:o,[_.a.FRAGMENT_SHADER_DERIVATIVE_HINT]:A,[_.a.FRAMEBUFFER_BINDING]:(e,t)=>{const E=Object(r.m)(e)?_.a.DRAW_FRAMEBUFFER:_.a.FRAMEBUFFER;return e.bindFramebuffer(E,t)},[_.a.FRONT_FACE]:(e,t)=>e.frontFace(t),[_.a.GENERATE_MIPMAP_HINT]:A,[_.a.LINE_WIDTH]:(e,t)=>e.lineWidth(t),[_.a.POLYGON_OFFSET_FILL]:o,[_.a.POLYGON_OFFSET_FACTOR]:"polygonOffset",[_.a.POLYGON_OFFSET_UNITS]:"polygonOffset",[_.a.RASTERIZER_DISCARD]:o,[_.a.SAMPLE_COVERAGE_VALUE]:"sampleCoverage",[_.a.SAMPLE_COVERAGE_INVERT]:"sampleCoverage",[_.a.SCISSOR_TEST]:o,[_.a.SCISSOR_BOX]:(e,t)=>e.scissor(...t),[_.a.STENCIL_TEST]:o,[_.a.STENCIL_CLEAR_VALUE]:(e,t)=>e.clearStencil(t),[_.a.STENCIL_WRITEMASK]:(e,t)=>e.stencilMaskSeparate(_.a.FRONT,t),[_.a.STENCIL_BACK_WRITEMASK]:(e,t)=>e.stencilMaskSeparate(_.a.BACK,t),[_.a.STENCIL_FUNC]:"stencilFuncFront",[_.a.STENCIL_REF]:"stencilFuncFront",[_.a.STENCIL_VALUE_MASK]:"stencilFuncFront",[_.a.STENCIL_BACK_FUNC]:"stencilFuncBack",[_.a.STENCIL_BACK_REF]:"stencilFuncBack",[_.a.STENCIL_BACK_VALUE_MASK]:"stencilFuncBack",[_.a.STENCIL_FAIL]:"stencilOpFront",[_.a.STENCIL_PASS_DEPTH_FAIL]:"stencilOpFront",[_.a.STENCIL_PASS_DEPTH_PASS]:"stencilOpFront",[_.a.STENCIL_BACK_FAIL]:"stencilOpBack",[_.a.STENCIL_BACK_PASS_DEPTH_FAIL]:"stencilOpBack",[_.a.STENCIL_BACK_PASS_DEPTH_PASS]:"stencilOpBack",[_.a.VIEWPORT]:(e,t)=>e.viewport(...t),[_.a.PACK_ALIGNMENT]:i,[_.a.UNPACK_ALIGNMENT]:i,[_.a.UNPACK_FLIP_Y_WEBGL]:i,[_.a.UNPACK_PREMULTIPLY_ALPHA_WEBGL]:i,[_.a.UNPACK_COLORSPACE_CONVERSION_WEBGL]:i,[_.a.PACK_ROW_LENGTH]:i,[_.a.PACK_SKIP_PIXELS]:i,[_.a.PACK_SKIP_ROWS]:i,[_.a.READ_FRAMEBUFFER_BINDING]:(e,t)=>e.bindFramebuffer(_.a.READ_FRAMEBUFFER,t),[_.a.UNPACK_ROW_LENGTH]:i,[_.a.UNPACK_IMAGE_HEIGHT]:i,[_.a.UNPACK_SKIP_PIXELS]:i,[_.a.UNPACK_SKIP_ROWS]:i,[_.a.UNPACK_SKIP_IMAGES]:i,framebuffer:(e,t)=>{const E=t&&"handle"in t?t.handle:t;return e.bindFramebuffer(_.a.FRAMEBUFFER,E)},blend:(e,t)=>t?e.enable(_.a.BLEND):e.disable(_.a.BLEND),blendColor:(e,t)=>e.blendColor(...t),blendEquation:(e,t)=>{t=T(t)?t:[t,t],e.blendEquationSeparate(...t)},blendFunc:(e,t)=>{t=T(t)&&2===t.length?[...t,...t]:t,e.blendFuncSeparate(...t)},clearColor:(e,t)=>e.clearColor(...t),clearDepth:(e,t)=>e.clearDepth(t),clearStencil:(e,t)=>e.clearStencil(t),colorMask:(e,t)=>e.colorMask(...t),cull:(e,t)=>t?e.enable(_.a.CULL_FACE):e.disable(_.a.CULL_FACE),cullFace:(e,t)=>e.cullFace(t),depthTest:(e,t)=>t?e.enable(_.a.DEPTH_TEST):e.disable(_.a.DEPTH_TEST),depthFunc:(e,t)=>e.depthFunc(t),depthMask:(e,t)=>e.depthMask(t),depthRange:(e,t)=>e.depthRange(...t),dither:(e,t)=>t?e.enable(_.a.DITHER):e.disable(_.a.DITHER),derivativeHint:(e,t)=>{e.hint(_.a.FRAGMENT_SHADER_DERIVATIVE_HINT,t)},frontFace:(e,t)=>e.frontFace(t),mipmapHint:(e,t)=>e.hint(_.a.GENERATE_MIPMAP_HINT,t),lineWidth:(e,t)=>e.lineWidth(t),polygonOffsetFill:(e,t)=>t?e.enable(_.a.POLYGON_OFFSET_FILL):e.disable(_.a.POLYGON_OFFSET_FILL),polygonOffset:(e,t)=>e.polygonOffset(...t),sampleCoverage:(e,t)=>e.sampleCoverage(...t),scissorTest:(e,t)=>t?e.enable(_.a.SCISSOR_TEST):e.disable(_.a.SCISSOR_TEST),scissor:(e,t)=>e.scissor(...t),stencilTest:(e,t)=>t?e.enable(_.a.STENCIL_TEST):e.disable(_.a.STENCIL_TEST),stencilMask:(e,t)=>{t=T(t)?t:[t,t];const[E,n]=t;e.stencilMaskSeparate(_.a.FRONT,E),e.stencilMaskSeparate(_.a.BACK,n)},stencilFunc:(e,t)=>{t=T(t)&&3===t.length?[...t,...t]:t;const[E,n,r,a,o,A]=t;e.stencilFuncSeparate(_.a.FRONT,E,n,r),e.stencilFuncSeparate(_.a.BACK,a,o,A)},stencilOp:(e,t)=>{t=T(t)&&3===t.length?[...t,...t]:t;const[E,n,r,a,o,A]=t;e.stencilOpSeparate(_.a.FRONT,E,n,r),e.stencilOpSeparate(_.a.BACK,a,o,A)},viewport:(e,t)=>e.viewport(...t)};function c(e,t,E){return void 0!==t[e]?t[e]:E[e]}const N={blendEquation:(e,t,E)=>e.blendEquationSeparate(c(_.a.BLEND_EQUATION_RGB,t,E),c(_.a.BLEND_EQUATION_ALPHA,t,E)),blendFunc:(e,t,E)=>e.blendFuncSeparate(c(_.a.BLEND_SRC_RGB,t,E),c(_.a.BLEND_DST_RGB,t,E),c(_.a.BLEND_SRC_ALPHA,t,E),c(_.a.BLEND_DST_ALPHA,t,E)),polygonOffset:(e,t,E)=>e.polygonOffset(c(_.a.POLYGON_OFFSET_FACTOR,t,E),c(_.a.POLYGON_OFFSET_UNITS,t,E)),sampleCoverage:(e,t,E)=>e.sampleCoverage(c(_.a.SAMPLE_COVERAGE_VALUE,t,E),c(_.a.SAMPLE_COVERAGE_INVERT,t,E)),stencilFuncFront:(e,t,E)=>e.stencilFuncSeparate(_.a.FRONT,c(_.a.STENCIL_FUNC,t,E),c(_.a.STENCIL_REF,t,E),c(_.a.STENCIL_VALUE_MASK,t,E)),stencilFuncBack:(e,t,E)=>e.stencilFuncSeparate(_.a.BACK,c(_.a.STENCIL_BACK_FUNC,t,E),c(_.a.STENCIL_BACK_REF,t,E),c(_.a.STENCIL_BACK_VALUE_MASK,t,E)),stencilOpFront:(e,t,E)=>e.stencilOpSeparate(_.a.FRONT,c(_.a.STENCIL_FAIL,t,E),c(_.a.STENCIL_PASS_DEPTH_FAIL,t,E),c(_.a.STENCIL_PASS_DEPTH_PASS,t,E)),stencilOpBack:(e,t,E)=>e.stencilOpSeparate(_.a.BACK,c(_.a.STENCIL_BACK_FAIL,t,E),c(_.a.STENCIL_BACK_PASS_DEPTH_FAIL,t,E),c(_.a.STENCIL_BACK_PASS_DEPTH_PASS,t,E))},s={enable:(e,t)=>e({[t]:!0}),disable:(e,t)=>e({[t]:!1}),pixelStorei:(e,t,E)=>e({[t]:E}),hint:(e,t,E)=>e({[t]:E}),bindFramebuffer:(e,t,E)=>{switch(t){case _.a.FRAMEBUFFER:return e({[_.a.DRAW_FRAMEBUFFER_BINDING]:E,[_.a.READ_FRAMEBUFFER_BINDING]:E});case _.a.DRAW_FRAMEBUFFER:return e({[_.a.DRAW_FRAMEBUFFER_BINDING]:E});case _.a.READ_FRAMEBUFFER:return e({[_.a.READ_FRAMEBUFFER_BINDING]:E});default:return null}},blendColor:(e,t,E,n,r)=>e({[_.a.BLEND_COLOR]:new Float32Array([t,E,n,r])}),blendEquation:(e,t)=>e({[_.a.BLEND_EQUATION_RGB]:t,[_.a.BLEND_EQUATION_ALPHA]:t}),blendEquationSeparate:(e,t,E)=>e({[_.a.BLEND_EQUATION_RGB]:t,[_.a.BLEND_EQUATION_ALPHA]:E}),blendFunc:(e,t,E)=>e({[_.a.BLEND_SRC_RGB]:t,[_.a.BLEND_DST_RGB]:E,[_.a.BLEND_SRC_ALPHA]:t,[_.a.BLEND_DST_ALPHA]:E}),blendFuncSeparate:(e,t,E,n,r)=>e({[_.a.BLEND_SRC_RGB]:t,[_.a.BLEND_DST_RGB]:E,[_.a.BLEND_SRC_ALPHA]:n,[_.a.BLEND_DST_ALPHA]:r}),clearColor:(e,t,E,n,r)=>e({[_.a.COLOR_CLEAR_VALUE]:new Float32Array([t,E,n,r])}),clearDepth:(e,t)=>e({[_.a.DEPTH_CLEAR_VALUE]:t}),clearStencil:(e,t)=>e({[_.a.STENCIL_CLEAR_VALUE]:t}),colorMask:(e,t,E,n,r)=>e({[_.a.COLOR_WRITEMASK]:[t,E,n,r]}),cullFace:(e,t)=>e({[_.a.CULL_FACE_MODE]:t}),depthFunc:(e,t)=>e({[_.a.DEPTH_FUNC]:t}),depthRange:(e,t,E)=>e({[_.a.DEPTH_RANGE]:new Float32Array([t,E])}),depthMask:(e,t)=>e({[_.a.DEPTH_WRITEMASK]:t}),frontFace:(e,t)=>e({[_.a.FRONT_FACE]:t}),lineWidth:(e,t)=>e({[_.a.LINE_WIDTH]:t}),polygonOffset:(e,t,E)=>e({[_.a.POLYGON_OFFSET_FACTOR]:t,[_.a.POLYGON_OFFSET_UNITS]:E}),sampleCoverage:(e,t,E)=>e({[_.a.SAMPLE_COVERAGE_VALUE]:t,[_.a.SAMPLE_COVERAGE_INVERT]:E}),scissor:(e,t,E,n,r)=>e({[_.a.SCISSOR_BOX]:new Int32Array([t,E,n,r])}),stencilMask:(e,t)=>e({[_.a.STENCIL_WRITEMASK]:t,[_.a.STENCIL_BACK_WRITEMASK]:t}),stencilMaskSeparate:(e,t,E)=>e({[t===_.a.FRONT?_.a.STENCIL_WRITEMASK:_.a.STENCIL_BACK_WRITEMASK]:E}),stencilFunc:(e,t,E,n)=>e({[_.a.STENCIL_FUNC]:t,[_.a.STENCIL_REF]:E,[_.a.STENCIL_VALUE_MASK]:n,[_.a.STENCIL_BACK_FUNC]:t,[_.a.STENCIL_BACK_REF]:E,[_.a.STENCIL_BACK_VALUE_MASK]:n}),stencilFuncSeparate:(e,t,E,n,r)=>e({[t===_.a.FRONT?_.a.STENCIL_FUNC:_.a.STENCIL_BACK_FUNC]:E,[t===_.a.FRONT?_.a.STENCIL_REF:_.a.STENCIL_BACK_REF]:n,[t===_.a.FRONT?_.a.STENCIL_VALUE_MASK:_.a.STENCIL_BACK_VALUE_MASK]:r}),stencilOp:(e,t,E,n)=>e({[_.a.STENCIL_FAIL]:t,[_.a.STENCIL_PASS_DEPTH_FAIL]:E,[_.a.STENCIL_PASS_DEPTH_PASS]:n,[_.a.STENCIL_BACK_FAIL]:t,[_.a.STENCIL_BACK_PASS_DEPTH_FAIL]:E,[_.a.STENCIL_BACK_PASS_DEPTH_PASS]:n}),stencilOpSeparate:(e,t,E,n,r)=>e({[t===_.a.FRONT?_.a.STENCIL_FAIL:_.a.STENCIL_BACK_FAIL]:E,[t===_.a.FRONT?_.a.STENCIL_PASS_DEPTH_FAIL:_.a.STENCIL_BACK_PASS_DEPTH_FAIL]:n,[t===_.a.FRONT?_.a.STENCIL_PASS_DEPTH_PASS:_.a.STENCIL_BACK_PASS_DEPTH_PASS]:r}),viewport:(e,t,E,n,r)=>e({[_.a.VIEWPORT]:[t,E,n,r]})},u=(e,t)=>e.isEnabled(t),S={[_.a.BLEND]:u,[_.a.CULL_FACE]:u,[_.a.DEPTH_TEST]:u,[_.a.DITHER]:u,[_.a.POLYGON_OFFSET_FILL]:u,[_.a.SAMPLE_ALPHA_TO_COVERAGE]:u,[_.a.SAMPLE_COVERAGE]:u,[_.a.SCISSOR_TEST]:u,[_.a.STENCIL_TEST]:u,[_.a.RASTERIZER_DISCARD]:u}},function(e,t,E){"use strict";(function(e){E.d(t,"a",function(){return i}),E.d(t,"c",function(){return T}),E.d(t,"b",function(){return R});var n=E(3),_=E(5),r=E(1);function a(e,t){const E=e[t].bind(e);e[t]=function(...t){const n=t[0];return n in e.state.cache||(e.state.cache[n]=E(...t)),e.state.enable?e.state.cache[n]:E(...t)},Object.defineProperty(e[t],"name",{value:`${t}-from-cache`,configurable:!1})}function o(e,t,E){const n=e[t].bind(e);e[t]=function(...t){const{valueChanged:_,oldValue:r}=E(e.state._updateCache,...t);return _&&n(...t),r},Object.defineProperty(e[t],"name",{value:`${t}-to-cache`,configurable:!1})}class A{constructor(e,{copyState:t=!1,log:E=(()=>{})}={}){this.gl=e,this.program=null,this.stateStack=[],this.enable=!0,this.cache=t?Object(_.a)(e):Object.assign({},n.c),this.log=E,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(e={}){this.stateStack.push({})}pop(){Object(r.a)(this.stateStack.length>0);const e=this.stateStack[this.stateStack.length-1];Object(_.c)(this.gl,e,this.cache),this.stateStack.pop()}_updateCache(e){let t,E=!1;const n=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const _ in e){Object(r.a)(void 0!==_);const a=e[_],o=this.cache[_];Object(r.d)(a,o)||(E=!0,t=o,!n||_ in n||(n[_]=o),this.cache[_]=a)}return{valueChanged:E,oldValue:t}}}function i(t,{enable:E=!0,copyState:_}={}){if(Object(r.a)(void 0!==_),!t.state){const r=void 0!==e?e:window;r.polyfillContext&&r.polyfillContext(t),t.state=new A(t,{copyState:_,enable:E}),function(e){const t=e.useProgram.bind(e);e.useProgram=function(E){e.state.program!==E&&(t(E),e.state.program=E)}}(t);for(const e in n.b){o(t,e,n.b[e])}a(t,"getParameter"),a(t,"isEnabled")}return t.state.enable=E,t}function T(e){e.state||i(e,{copyState:!1}),e.state.push()}function R(e){Object(r.a)(e.state),e.state.pop()}}).call(this,E(8))},function(e,t,E){"use strict";E.d(t,"c",function(){return a}),E.d(t,"a",function(){return o}),E.d(t,"b",function(){return A}),E.d(t,"d",function(){return i});var n=E(3),_=E(4),r=E(1);function a(e,t){if(Object(r.a)(Object(r.l)(e),"setParameters requires a WebGL context"),Object(r.k)(t))return;const E={};for(const _ in t){const r=Number(_),a=n.e[_];a&&("string"==typeof a?E[a]=!0:a(e,t[_],r))}const _=e.state&&e.state.cache;if(_)for(const r in E){(0,n.a[r])(e,t,_)}}function o(e,t){if("number"==typeof(t=t||n.c)){const E=t,_=n.d[E];return _?_(e,E):e.getParameter(E)}const E=Array.isArray(t)?t:Object.keys(t),_={};for(const t of E){const E=n.d[t];_[t]=E?E(e,Number(t)):e.getParameter(Number(t))}return _}function A(e){a(e,n.c)}function i(e,t,E){if(Object(r.k)(t))return E(e);const{nocatch:n=!0}=t;let o;if(Object(_.c)(e),a(e,t),n)o=E(e),Object(_.b)(e);else try{o=E(e)}finally{Object(_.b)(e)}return o}},function(e,t,E){"use strict";(function(e,n){E.d(t,"b",function(){return a}),E.d(t,"a",function(){return o});var _=E(2),r={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===n?"undefined":Object(_.a)(n))&&n},a=r.window||r.self||r.global,o=r.process||{};console}).call(this,E(8),E(10))},function(e,t,E){"use strict";var n=E(0),_=E.n(n),r=E(1);const a=e=>Object(r.m)(e)?void 0:0,o={[_.a.READ_BUFFER]:e=>Object(r.m)(e)?void 0:_.a.COLOR_ATTACHMENT0,35723:e=>Object(r.m)(e)?void 0:4352,[_.a.RASTERIZER_DISCARD]:a,[_.a.SAMPLES]:a,36795:(e,t)=>{const E=Object(r.m)(e)?e.getExtension("EXT_disjoint_timer_query_webgl2"):e.getExtension("EXT_disjoint_timer_query");return E&&E.GPU_DISJOINT_EXT?t(E.GPU_DISJOINT_EXT):0},37445:(e,t)=>{const E=e.getExtension("WEBGL_debug_renderer_info");return t(E&&E.UNMASKED_VENDOR_WEBGL||_.a.VENDOR)},37446:(e,t)=>{const E=e.getExtension("WEBGL_debug_renderer_info");return t(E&&E.UNMASKED_RENDERER_WEBGL||_.a.RENDERER)},34047:(e,t)=>{const E=e.luma.extensions.EXT_texture_filter_anisotropic;return E?t(E.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},[_.a.MAX_3D_TEXTURE_SIZE]:a,[_.a.MAX_ARRAY_TEXTURE_LAYERS]:a,[_.a.MAX_CLIENT_WAIT_TIMEOUT_WEBGL]:a,[_.a.MAX_COLOR_ATTACHMENTS]:(e,t)=>{if(!Object(r.m)(e)){const E=e.getExtension("WEBGL_draw_buffers");return E?t(E.MAX_COLOR_ATTACHMENTS_WEBGL):0}},[_.a.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS]:a,[_.a.MAX_COMBINED_UNIFORM_BLOCKS]:a,[_.a.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS]:a,[_.a.MAX_DRAW_BUFFERS]:e=>{if(!Object(r.m)(e)){const t=e.getExtension("WEBGL_draw_buffers");return t?t.MAX_DRAW_BUFFERS_WEBGL:0}},[_.a.MAX_ELEMENT_INDEX]:e=>e.getExtension("OES_element_index")?2147483647:65535,[_.a.MAX_ELEMENTS_INDICES]:e=>e.getExtension("OES_element_index")?16777216:65535,[_.a.MAX_ELEMENTS_VERTICES]:e=>16777216,[_.a.MAX_FRAGMENT_INPUT_COMPONENTS]:a,[_.a.MAX_FRAGMENT_UNIFORM_BLOCKS]:a,[_.a.MAX_FRAGMENT_UNIFORM_COMPONENTS]:a,[_.a.MAX_SAMPLES]:a,[_.a.MAX_SERVER_WAIT_TIMEOUT]:a,[_.a.MAX_TEXTURE_LOD_BIAS]:a,[_.a.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS]:a,[_.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS]:a,[_.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS]:a,[_.a.MAX_UNIFORM_BLOCK_SIZE]:a,[_.a.MAX_UNIFORM_BUFFER_BINDINGS]:a,[_.a.MAX_VARYING_COMPONENTS]:a,[_.a.MAX_VERTEX_OUTPUT_COMPONENTS]:a,[_.a.MAX_VERTEX_UNIFORM_BLOCKS]:a,[_.a.MAX_VERTEX_UNIFORM_COMPONENTS]:a,[_.a.MIN_PROGRAM_TEXEL_OFFSET]:a,[_.a.MAX_PROGRAM_TEXEL_OFFSET]:a,[_.a.UNIFORM_BUFFER_OFFSET_ALIGNMENT]:a};E.d(t,"b",function(){return A}),E.d(t,"a",function(){return i});const A={OES_vertex_array_object:{meta:{suffix:"OES"},createVertexArray:()=>{Object(r.a)(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:()=>{},bindVertexArray:()=>{},isVertexArray:()=>!1},ANGLE_instanced_arrays:{meta:{suffix:"ANGLE"},vertexAttribDivisor(e,t){Object(r.a)(0===t,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},WEBGL_draw_buffers:{meta:{suffix:"WEBGL"},drawBuffers:()=>{Object(r.a)(!1)}},EXT_disjoint_timer_query:{meta:{suffix:"EXT"},createQuery:()=>{Object(r.a)(!1)},deleteQuery:()=>{Object(r.a)(!1)},beginQuery:()=>{Object(r.a)(!1)},endQuery:()=>{},getQuery(e,t){return this.getQueryObject(e,t)},getQueryParameter(e,t){return this.getQueryObject(e,t)},getQueryObject:()=>{}}},i={readBuffer:(e,t,E)=>{Object(r.m)(e)&&t(E)},getVertexAttrib:(e,t,E,n)=>{const{webgl2:a,ext:o}=function(e,t){return{webgl2:Object(r.m)(e),ext:e.getExtension(t)}}(e,"ANGLE_instanced_arrays");let A;switch(n){case _.a.VERTEX_ATTRIB_ARRAY_INTEGER:A=!!a&&void 0;break;case _.a.VERTEX_ATTRIB_ARRAY_DIVISOR:A=a||o?void 0:0}return void 0!==A?A:t(E,n)},getProgramParameter:(e,t,E,n)=>{if(!Object(r.m)(e))switch(n){case _.a.TRANSFORM_FEEDBACK_BUFFER_MODE:return _.a.SEPARATE_ATTRIBS;case _.a.TRANSFORM_FEEDBACK_VARYINGS:case _.a.ACTIVE_UNIFORM_BLOCKS:return 0}return t(E,n)},getInternalformatParameter:(e,t,E,n,a)=>{if(!Object(r.m)(e))switch(a){case _.a.SAMPLES:return new Int32Array([0])}return e.getInternalformatParameter(E,n,a)},getTexParameter(e,t,E,n){switch(n){case _.a.TEXTURE_MAX_ANISOTROPY_EXT:const{extensions:t}=e.luma,E=t.EXT_texture_filter_anisotropic;n=E&&E.TEXTURE_MAX_ANISOTROPY_EXT||_.a.TEXTURE_MAX_ANISOTROPY_EXT}return t(E,n)},getParameter:function(e,t,E){const n=o[E],_="function"==typeof n?n(e,t,E):n;return void 0!==_?_:t(E)},hint:(e,t,E,n)=>t(E,n)}},function(e,t){var E;E=function(){return this}();try{E=E||new Function("return this")()}catch(e){"object"==typeof window&&(E=window)}e.exports=E},function(e,t,E){"use strict";(function(e){E.d(t,"c",function(){return n}),E.d(t,"d",function(){return _}),E.d(t,"a",function(){return r}),E.d(t,"b",function(){return a});const n="undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type||void 0!==e&&"object"==typeof e.versions&&Boolean(e.versions.electron)||"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0,_="object"==typeof e&&"[object process]"===String(e)&&!e.browser,r=!_||n,a=r&&"undefined"!=typeof document}).call(this,E(10))},function(e,t){var E,n,_=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(E===setTimeout)return setTimeout(e,0);if((E===r||!E)&&setTimeout)return E=setTimeout,setTimeout(e,0);try{return E(e,0)}catch(t){try{return E.call(null,e,0)}catch(t){return E.call(this,e,0)}}}!function(){try{E="function"==typeof setTimeout?setTimeout:r}catch(e){E=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var A,i=[],T=!1,R=-1;function c(){T&&A&&(T=!1,A.length?i=A.concat(i):R=-1,i.length&&N())}function N(){if(!T){var e=o(c);T=!0;for(var t=i.length;t;){for(A=i,i=[];++R<t;)A&&A[R].run();R=-1,t=i.length}A=null,T=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}_.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)t[E-1]=arguments[E];i.push(new s(e,t)),1!==i.length||T||o(N)},s.prototype.run=function(){this.fun.apply(null,this.array)},_.title="browser",_.browser=!0,_.env={},_.argv=[],_.version="",_.versions={},_.on=u,_.addListener=u,_.once=u,_.off=u,_.removeListener=u,_.removeAllListeners=u,_.emit=u,_.prependListener=u,_.prependOnceListener=u,_.listeners=function(e){return[]},_.binding=function(e){throw new Error("process.binding is not supported")},_.cwd=function(){return"/"},_.chdir=function(e){throw new Error("process.chdir is not supported")},_.umask=function(){return 0}},function(e,t,E){"use strict";(function(e){E.d(t,"b",function(){return _}),E.d(t,"c",function(){return r}),E.d(t,"a",function(){return a});const n={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e},_=n.self||n.window||n.global,r=n.window||n.self||n.global,a=n.global||n.self||n.window}).call(this,E(8))},function(e,t,E){"use strict";(function(e){E.d(t,"a",function(){return r});var n=E(1),_=E(7);function r(e){return e.luma=e.luma||{},function(e){e.luma.extensions={};const t=e.getSupportedExtensions()||[];for(const E of t)e.luma[E]=e.getExtension(E)}(e),e.luma.polyfilled||(!function(e,t){for(const E of Object.getOwnPropertyNames(t))"overrides"!==E&&a(e,{extension:E,target:e.luma,target2:e})}(e,_.b),function(e,{target:t,target2:E}){Object.keys(_.a).forEach(n=>{if("function"==typeof _.a[n]){const r=e[n]?e[n].bind(e):()=>{},a=_.a[n].bind(null,e,r);t[n]=a,E[n]=a}})}(e,{target:e.luma,target2:e}),e.luma.polyfilled=!0),e}function a(e,{extension:t,target:E,target2:r}){const a=_.b[t];Object(n.a)(a);const{meta:o={}}=a,{suffix:A=""}=o,i=e.getExtension(t);for(const t of Object.keys(a)){const n=`${t}${A}`;let _=null;"meta"===t||"function"==typeof e[t]||(i&&"function"==typeof i[n]?_=(...e)=>i[n](...e):"function"==typeof a[t]&&(_=a[t].bind(E))),_&&(E[t]=_,r[t]=_)}}(void 0!==e?e:window).polyfillContext=r}).call(this,E(8))},function(e,t,E){"use strict";(function(e){E.d(t,"a",function(){return r});var n=E(2),_=E(14);function r(){return!("object"===(void 0===e?"undefined":Object(n.a)(e))&&"[object process]"===String(e)&&!e.browser)||Object(_.a)()}}).call(this,E(10))},function(e,t,E){"use strict";(function(e){E.d(t,"a",function(){return _});var n=E(2);function _(t){if("undefined"!=typeof window&&"object"===Object(n.a)(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===Object(n.a)(e.versions)&&Boolean(e.versions.electron))return!0;var E="object"===("undefined"==typeof navigator?"undefined":Object(n.a)(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,_=t||E;return!!(_&&_.indexOf("Electron")>=0)}}).call(this,E(10))},function(e,t,E){(function(t){const n=E(17),_="undefined"==typeof window?t:window;_.loaders=_.luma||{},e.exports=Object.assign(_.luma,n)}).call(this,E(8))},function(e,t){},function(e,t,E){"use strict";E.r(t);var n=E(12),_=E(5),r=E(4),a=E(0),o=E.n(a),A=E(1);const i=A.g&&"undefined"!=typeof document,T={webgl2:!0,webgl1:!0,throwOnError:!1,manageState:!0,canvas:null,debug:!1,width:800,height:600};function R(e={}){Object(A.a)(A.g,"createGLContext on available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"),e=Object.assign({},T,e);const{width:t,height:E}=e;let n;const{canvas:_}=e;return(n=function(e,t){const{onError:E=(e=>null)}=t,n=e=>E(`WebGL context: ${e.statusMessage||"error"}`);e.addEventListener("webglcontextcreationerror",n,!1);const{webgl1:_=!0,webgl2:r=!0}=t;let a=null;r&&(a=(a=a||e.getContext("webgl2",t))||e.getContext("experimental-webgl2",t));_&&(a=(a=a||e.getContext("webgl",t))||e.getContext("experimental-webgl",t));if(e.removeEventListener("webglcontextcreationerror",n,!1),!a)return E(`Failed to create ${r&&!_?"WebGL2":"WebGL"} context`);return a}(function({canvas:e,width:t=800,height:E=600,onError:n=(()=>{})}){let _;if("string"==typeof e){const t=i&&"complete"===document.readyState;t||n(`createGLContext called on canvas '${e}' before page was loaded`),_=document.getElementById(e)}else e?_=e:((_=document.createElement("canvas")).id="lumagl-canvas",_.style.width=Number.isFinite(t)?`${t}px`:"100%",_.style.height=Number.isFinite(E)?`${E}px`:"100%",document.body.insertBefore(_,document.body.firstChild));return _}({canvas:_,width:t,height:E,onError:function(t){if(e.throwOnError)throw new Error(t);return null}}),e))?(function(e){const t=Object(A.m)(e)?"WebGL2":"WebGL1",E=N(e),n=E?`(${E.vendor},${E.renderer})`:"",_=e.debug?" debug":"";A.n.info(1,`${t}${_} context ${n}`)()}(n=c(n,e)),n):null}function c(e,t={}){if(!e||e._instrumented)return e;e._version=e._version||function(e){if("undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext)return 2;return 1}(e),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{},t=Object.assign({},T,t);const{manageState:E,debug:n}=t;return E&&Object(r.a)(e,{copyState:!1,log:(...e)=>A.n.log(1,...e)()}),A.g&&n&&(A.f.makeDebugContext?(e=A.f.makeDebugContext(e,t),A.n.priority=Math.max(A.n.priority,1)):A.n.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),e._instrumented=!0,e}function N(e){const t=e.getParameter(o.a.VENDOR),E=e.getParameter(o.a.RENDERER),n=e.getExtension("WEBGL_debug_renderer_info");return{vendor:n&&e.getParameter(n.UNMASKED_VENDOR_WEBGL||o.a.VENDOR)||t,renderer:n&&e.getParameter(n.UNMASKED_RENDERER_WEBGL||o.a.RENDERER)||E,vendorMasked:t,rendererMasked:E,version:e.getParameter(o.a.VERSION),shadingLanguageVersion:e.getParameter(o.a.SHADING_LANGUAGE_VERSION)}}function s(e,t={}){if(e.canvas){return void function(e,t,E){let n="width"in E?E.width:e.canvas.clientWidth,_="height"in E?E.height:e.canvas.clientHeight;n&&_||(A.n.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,n=e.canvas.width||1,_=e.canvas.height||1);e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};const r=e.luma.canvasSizeInfo;if(r.clientWidth!==n||r.clientHeight!==_||r.devicePixelRatio!==t){let E=t;const r=Math.floor(n*E),a=Math.floor(_*E);e.canvas.width=r,e.canvas.height=a,e.drawingBufferWidth===r&&e.drawingBufferHeight===a||(A.n.warn("Device pixel ratio clamped")(),E=Math.min(e.drawingBufferWidth/n,e.drawingBufferHeight/_),e.canvas.width=Math.floor(n*E),e.canvas.height=Math.floor(_*E)),Object.assign(e.luma.canvasSizeInfo,{clientWidth:n,clientHeight:_,devicePixelRatio:t})}}(e,Object(A.e)(t.useDevicePixels),t)}const E=e.getExtension("STACKGL_resize_drawingbuffer");E&&"width"in t&&"height"in t&&E.resize(t.width,t.height)}E.d(t,"polyfillContext",function(){return n.a}),E.d(t,"getParameters",function(){return _.a}),E.d(t,"setParameters",function(){return _.c}),E.d(t,"resetParameters",function(){return _.b}),E.d(t,"withParameters",function(){return _.d}),E.d(t,"trackContextState",function(){return r.a}),E.d(t,"pushContextState",function(){return r.c}),E.d(t,"popContextState",function(){return r.b}),E.d(t,"createGLContext",function(){return R}),E.d(t,"resizeGLContext",function(){return s}),E.d(t,"instrumentGLContext",function(){return c}),E.d(t,"getContextDebugInfo",function(){return N}),E.d(t,"isBrowser",function(){return A.g}),E.d(t,"isBrowserMainThread",function(){return A.h}),E.d(t,"isNode",function(){return A.j}),E.d(t,"isElectron",function(){return A.i}),E.d(t,"global",function(){return A.f}),E.d(t,"window",function(){return A.p}),E.d(t,"self",function(){return A.o}),E.d(t,"cssToDeviceRatio",function(){return A.c}),E.d(t,"cssToDevicePixels",function(){return A.b}),E.d(t,"isWebGL",function(){return A.l}),E.d(t,"isWebGL2",function(){return A.m})}])}); |
{ | ||
"name": "@luma.gl/gltools", | ||
"version": "8.0.0-alpha.12", | ||
"version": "8.0.0-beta.1", | ||
"description": "WebGL2 API Polyfills for WebGL1 WebGLRenderingContext", | ||
@@ -32,6 +32,6 @@ "license": "MIT", | ||
"@babel/runtime": "^7.0.0", | ||
"@luma.gl/constants": "8.0.0-alpha.12", | ||
"@luma.gl/constants": "8.0.0-beta.1", | ||
"probe.gl": "^3.1.1" | ||
}, | ||
"gitHead": "e6c1289b481129ee4c458cd707ee937624a74aff" | ||
"gitHead": "7387a28ccac98072ef4df83606c932e53c31dfa8" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
834678
+ Added@luma.gl/constants@8.0.0-beta.1(transitive)
- Removed@luma.gl/constants@8.0.0-alpha.12(transitive)