Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@luma.gl/gltools

Package Overview
Dependencies
Maintainers
8
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luma.gl/gltools - npm Package Compare versions

Comparing version 8.0.0-alpha.9 to 8.0.0-alpha.10

dist/es5/context/context.js

2

dist/dist.min.js

@@ -1,1 +0,1 @@

!function(E,_){if("object"==typeof exports&&"object"==typeof module)module.exports=_();else if("function"==typeof define&&define.amd)define([],_);else{var A=_();for(var T in A)("object"==typeof exports?exports:E)[T]=A[T]}}(window,function(){return function(E){var _={};function A(T){if(_[T])return _[T].exports;var R=_[T]={i:T,l:!1,exports:{}};return E[T].call(R.exports,R,R.exports,A),R.l=!0,R.exports}return A.m=E,A.c=_,A.d=function(E,_,T){A.o(E,_)||Object.defineProperty(E,_,{enumerable:!0,get:T})},A.r=function(E){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},A.t=function(E,_){if(1&_&&(E=A(E)),8&_)return E;if(4&_&&"object"==typeof E&&E&&E.__esModule)return E;var T=Object.create(null);if(A.r(T),Object.defineProperty(T,"default",{enumerable:!0,value:E}),2&_&&"string"!=typeof E)for(var R in E)A.d(T,R,function(_){return E[_]}.bind(null,R));return T},A.n=function(E){var _=E&&E.__esModule?function(){return E.default}:function(){return E};return A.d(_,"a",_),_},A.o=function(E,_){return Object.prototype.hasOwnProperty.call(E,_)},A.p="",A(A.s=9)}([function(E,_){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,_,A){"use strict";function T(E,_){if(!E)throw new Error(_||"luma.gl: assertion failed.")}function R(E,_){if(E===_)return!0;const A=Array.isArray(E)||ArrayBuffer.isView(E),T=Array.isArray(_)||ArrayBuffer.isView(_);if(A&&T&&E.length===_.length){for(let A=0;A<E.length;++A)if(E[A]!==_[A])return!1;return!0}return!1}function N(E){for(const _ in E)return!1;return!0}function S(E){return Boolean(E&&2===E._version)}A.d(_,"a",function(){return T}),A.d(_,"b",function(){return R}),A.d(_,"d",function(){return S}),A.d(_,"c",function(){return N})},function(E,_,A){"use strict";A.d(_,"c",function(){return S}),A.d(_,"e",function(){return C}),A.d(_,"a",function(){return L}),A.d(_,"b",function(){return F}),A.d(_,"d",function(){return M});var T=A(0),R=A.n(T),N=A(1);const S={[R.a.BLEND]:!1,[R.a.BLEND_COLOR]:new Float32Array([0,0,0,0]),[R.a.BLEND_EQUATION_RGB]:R.a.FUNC_ADD,[R.a.BLEND_EQUATION_ALPHA]:R.a.FUNC_ADD,[R.a.BLEND_SRC_RGB]:R.a.ONE,[R.a.BLEND_DST_RGB]:R.a.ZERO,[R.a.BLEND_SRC_ALPHA]:R.a.ONE,[R.a.BLEND_DST_ALPHA]:R.a.ZERO,[R.a.COLOR_CLEAR_VALUE]:new Float32Array([0,0,0,0]),[R.a.COLOR_WRITEMASK]:[!0,!0,!0,!0],[R.a.CULL_FACE]:!1,[R.a.CULL_FACE_MODE]:R.a.BACK,[R.a.DEPTH_TEST]:!1,[R.a.DEPTH_CLEAR_VALUE]:1,[R.a.DEPTH_FUNC]:R.a.LESS,[R.a.DEPTH_RANGE]:new Float32Array([0,1]),[R.a.DEPTH_WRITEMASK]:!0,[R.a.DITHER]:!0,[R.a.FRAMEBUFFER_BINDING]:null,[R.a.FRONT_FACE]:R.a.CCW,[R.a.GENERATE_MIPMAP_HINT]:R.a.DONT_CARE,[R.a.LINE_WIDTH]:1,[R.a.POLYGON_OFFSET_FILL]:!1,[R.a.POLYGON_OFFSET_FACTOR]:0,[R.a.POLYGON_OFFSET_UNITS]:0,[R.a.SAMPLE_COVERAGE_VALUE]:1,[R.a.SAMPLE_COVERAGE_INVERT]:!1,[R.a.SCISSOR_TEST]:!1,[R.a.SCISSOR_BOX]:new Int32Array([0,0,1024,1024]),[R.a.STENCIL_TEST]:!1,[R.a.STENCIL_CLEAR_VALUE]:0,[R.a.STENCIL_WRITEMASK]:4294967295,[R.a.STENCIL_BACK_WRITEMASK]:4294967295,[R.a.STENCIL_FUNC]:R.a.ALWAYS,[R.a.STENCIL_REF]:0,[R.a.STENCIL_VALUE_MASK]:4294967295,[R.a.STENCIL_BACK_FUNC]:R.a.ALWAYS,[R.a.STENCIL_BACK_REF]:0,[R.a.STENCIL_BACK_VALUE_MASK]:4294967295,[R.a.STENCIL_FAIL]:R.a.KEEP,[R.a.STENCIL_PASS_DEPTH_FAIL]:R.a.KEEP,[R.a.STENCIL_PASS_DEPTH_PASS]:R.a.KEEP,[R.a.STENCIL_BACK_FAIL]:R.a.KEEP,[R.a.STENCIL_BACK_PASS_DEPTH_FAIL]:R.a.KEEP,[R.a.STENCIL_BACK_PASS_DEPTH_PASS]:R.a.KEEP,[R.a.VIEWPORT]:[0,0,1024,1024],[R.a.PACK_ALIGNMENT]:4,[R.a.UNPACK_ALIGNMENT]:4,[R.a.UNPACK_FLIP_Y_WEBGL]:!1,[R.a.UNPACK_PREMULTIPLY_ALPHA_WEBGL]:!1,[R.a.UNPACK_COLORSPACE_CONVERSION_WEBGL]:R.a.BROWSER_DEFAULT_WEBGL,[R.a.FRAGMENT_SHADER_DERIVATIVE_HINT]:R.a.DONT_CARE,[R.a.READ_FRAMEBUFFER_BINDING]:null,[R.a.RASTERIZER_DISCARD]:!1,[R.a.PACK_ROW_LENGTH]:0,[R.a.PACK_SKIP_PIXELS]:0,[R.a.PACK_SKIP_ROWS]:0,[R.a.UNPACK_ROW_LENGTH]:0,[R.a.UNPACK_IMAGE_HEIGHT]:0,[R.a.UNPACK_SKIP_PIXELS]:0,[R.a.UNPACK_SKIP_ROWS]:0,[R.a.UNPACK_SKIP_IMAGES]:0},e=(E,_,A)=>_?E.enable(A):E.disable(A),I=(E,_,A)=>E.hint(A,_),t=(E,_,A)=>E.pixelStorei(A,_);function a(E){return Array.isArray(E)||ArrayBuffer.isView(E)}const C={[R.a.BLEND]:e,[R.a.BLEND_COLOR]:(E,_)=>E.blendColor(..._),[R.a.BLEND_EQUATION_RGB]:"blendEquation",[R.a.BLEND_EQUATION_ALPHA]:"blendEquation",[R.a.BLEND_SRC_RGB]:"blendFunc",[R.a.BLEND_DST_RGB]:"blendFunc",[R.a.BLEND_SRC_ALPHA]:"blendFunc",[R.a.BLEND_DST_ALPHA]:"blendFunc",[R.a.COLOR_CLEAR_VALUE]:(E,_)=>E.clearColor(..._),[R.a.COLOR_WRITEMASK]:(E,_)=>E.colorMask(..._),[R.a.CULL_FACE]:e,[R.a.CULL_FACE_MODE]:(E,_)=>E.cullFace(_),[R.a.DEPTH_TEST]:e,[R.a.DEPTH_CLEAR_VALUE]:(E,_)=>E.clearDepth(_),[R.a.DEPTH_FUNC]:(E,_)=>E.depthFunc(_),[R.a.DEPTH_RANGE]:(E,_)=>E.depthRange(..._),[R.a.DEPTH_WRITEMASK]:(E,_)=>E.depthMask(_),[R.a.DITHER]:e,[R.a.FRAGMENT_SHADER_DERIVATIVE_HINT]:I,[R.a.FRAMEBUFFER_BINDING]:(E,_)=>{const A=Object(N.d)(E)?R.a.DRAW_FRAMEBUFFER:R.a.FRAMEBUFFER;return E.bindFramebuffer(A,_)},[R.a.FRONT_FACE]:(E,_)=>E.frontFace(_),[R.a.GENERATE_MIPMAP_HINT]:I,[R.a.LINE_WIDTH]:(E,_)=>E.lineWidth(_),[R.a.POLYGON_OFFSET_FILL]:e,[R.a.POLYGON_OFFSET_FACTOR]:"polygonOffset",[R.a.POLYGON_OFFSET_UNITS]:"polygonOffset",[R.a.RASTERIZER_DISCARD]:e,[R.a.SAMPLE_COVERAGE_VALUE]:"sampleCoverage",[R.a.SAMPLE_COVERAGE_INVERT]:"sampleCoverage",[R.a.SCISSOR_TEST]:e,[R.a.SCISSOR_BOX]:(E,_)=>E.scissor(..._),[R.a.STENCIL_TEST]:e,[R.a.STENCIL_CLEAR_VALUE]:(E,_)=>E.clearStencil(_),[R.a.STENCIL_WRITEMASK]:(E,_)=>E.stencilMaskSeparate(R.a.FRONT,_),[R.a.STENCIL_BACK_WRITEMASK]:(E,_)=>E.stencilMaskSeparate(R.a.BACK,_),[R.a.STENCIL_FUNC]:"stencilFuncFront",[R.a.STENCIL_REF]:"stencilFuncFront",[R.a.STENCIL_VALUE_MASK]:"stencilFuncFront",[R.a.STENCIL_BACK_FUNC]:"stencilFuncBack",[R.a.STENCIL_BACK_REF]:"stencilFuncBack",[R.a.STENCIL_BACK_VALUE_MASK]:"stencilFuncBack",[R.a.STENCIL_FAIL]:"stencilOpFront",[R.a.STENCIL_PASS_DEPTH_FAIL]:"stencilOpFront",[R.a.STENCIL_PASS_DEPTH_PASS]:"stencilOpFront",[R.a.STENCIL_BACK_FAIL]:"stencilOpBack",[R.a.STENCIL_BACK_PASS_DEPTH_FAIL]:"stencilOpBack",[R.a.STENCIL_BACK_PASS_DEPTH_PASS]:"stencilOpBack",[R.a.VIEWPORT]:(E,_)=>E.viewport(..._),[R.a.PACK_ALIGNMENT]:t,[R.a.UNPACK_ALIGNMENT]:t,[R.a.UNPACK_FLIP_Y_WEBGL]:t,[R.a.UNPACK_PREMULTIPLY_ALPHA_WEBGL]:t,[R.a.UNPACK_COLORSPACE_CONVERSION_WEBGL]:t,[R.a.PACK_ROW_LENGTH]:t,[R.a.PACK_SKIP_PIXELS]:t,[R.a.PACK_SKIP_ROWS]:t,[R.a.READ_FRAMEBUFFER_BINDING]:(E,_)=>E.bindFramebuffer(R.a.READ_FRAMEBUFFER,_),[R.a.UNPACK_ROW_LENGTH]:t,[R.a.UNPACK_IMAGE_HEIGHT]:t,[R.a.UNPACK_SKIP_PIXELS]:t,[R.a.UNPACK_SKIP_ROWS]:t,[R.a.UNPACK_SKIP_IMAGES]:t,framebuffer:(E,_)=>{const A=_&&"handle"in _?_.handle:_;return E.bindFramebuffer(R.a.FRAMEBUFFER,A)},blend:(E,_)=>_?E.enable(R.a.BLEND):E.disable(R.a.BLEND),blendColor:(E,_)=>E.blendColor(..._),blendEquation:(E,_)=>{_=a(_)?_:[_,_],E.blendEquationSeparate(..._)},blendFunc:(E,_)=>{_=a(_)&&2===_.length?[..._,..._]:_,E.blendFuncSeparate(..._)},clearColor:(E,_)=>E.clearColor(..._),clearDepth:(E,_)=>E.clearDepth(_),clearStencil:(E,_)=>E.clearStencil(_),colorMask:(E,_)=>E.colorMask(..._),cull:(E,_)=>_?E.enable(R.a.CULL_FACE):E.disable(R.a.CULL_FACE),cullFace:(E,_)=>E.cullFace(_),depthTest:(E,_)=>_?E.enable(R.a.DEPTH_TEST):E.disable(R.a.DEPTH_TEST),depthFunc:(E,_)=>E.depthFunc(_),depthMask:(E,_)=>E.depthMask(_),depthRange:(E,_)=>E.depthRange(..._),dither:(E,_)=>_?E.enable(R.a.DITHER):E.disable(R.a.DITHER),derivativeHint:(E,_)=>{E.hint(R.a.FRAGMENT_SHADER_DERIVATIVE_HINT,_)},frontFace:(E,_)=>E.frontFace(_),mipmapHint:(E,_)=>E.hint(R.a.GENERATE_MIPMAP_HINT,_),lineWidth:(E,_)=>E.lineWidth(_),polygonOffsetFill:(E,_)=>_?E.enable(R.a.POLYGON_OFFSET_FILL):E.disable(R.a.POLYGON_OFFSET_FILL),polygonOffset:(E,_)=>E.polygonOffset(..._),sampleCoverage:(E,_)=>E.sampleCoverage(..._),scissorTest:(E,_)=>_?E.enable(R.a.SCISSOR_TEST):E.disable(R.a.SCISSOR_TEST),scissor:(E,_)=>E.scissor(..._),stencilTest:(E,_)=>_?E.enable(R.a.STENCIL_TEST):E.disable(R.a.STENCIL_TEST),stencilMask:(E,_)=>{_=a(_)?_:[_,_];const[A,T]=_;E.stencilMaskSeparate(R.a.FRONT,A),E.stencilMaskSeparate(R.a.BACK,T)},stencilFunc:(E,_)=>{_=a(_)&&3===_.length?[..._,..._]:_;const[A,T,N,S,e,I]=_;E.stencilFuncSeparate(R.a.FRONT,A,T,N),E.stencilFuncSeparate(R.a.BACK,S,e,I)},stencilOp:(E,_)=>{_=a(_)&&3===_.length?[..._,..._]:_;const[A,T,N,S,e,I]=_;E.stencilOpSeparate(R.a.FRONT,A,T,N),E.stencilOpSeparate(R.a.BACK,S,e,I)},viewport:(E,_)=>E.viewport(..._)};function O(E,_,A){return void 0!==_[E]?_[E]:A[E]}const L={blendEquation:(E,_,A)=>E.blendEquationSeparate(O(R.a.BLEND_EQUATION_RGB,_,A),O(R.a.BLEND_EQUATION_ALPHA,_,A)),blendFunc:(E,_,A)=>E.blendFuncSeparate(O(R.a.BLEND_SRC_RGB,_,A),O(R.a.BLEND_DST_RGB,_,A),O(R.a.BLEND_SRC_ALPHA,_,A),O(R.a.BLEND_DST_ALPHA,_,A)),polygonOffset:(E,_,A)=>E.polygonOffset(O(R.a.POLYGON_OFFSET_FACTOR,_,A),O(R.a.POLYGON_OFFSET_UNITS,_,A)),sampleCoverage:(E,_,A)=>E.sampleCoverage(O(R.a.SAMPLE_COVERAGE_VALUE,_,A),O(R.a.SAMPLE_COVERAGE_INVERT,_,A)),stencilFuncFront:(E,_,A)=>E.stencilFuncSeparate(R.a.FRONT,O(R.a.STENCIL_FUNC,_,A),O(R.a.STENCIL_REF,_,A),O(R.a.STENCIL_VALUE_MASK,_,A)),stencilFuncBack:(E,_,A)=>E.stencilFuncSeparate(R.a.BACK,O(R.a.STENCIL_BACK_FUNC,_,A),O(R.a.STENCIL_BACK_REF,_,A),O(R.a.STENCIL_BACK_VALUE_MASK,_,A)),stencilOpFront:(E,_,A)=>E.stencilOpSeparate(R.a.FRONT,O(R.a.STENCIL_FAIL,_,A),O(R.a.STENCIL_PASS_DEPTH_FAIL,_,A),O(R.a.STENCIL_PASS_DEPTH_PASS,_,A)),stencilOpBack:(E,_,A)=>E.stencilOpSeparate(R.a.BACK,O(R.a.STENCIL_BACK_FAIL,_,A),O(R.a.STENCIL_BACK_PASS_DEPTH_FAIL,_,A),O(R.a.STENCIL_BACK_PASS_DEPTH_PASS,_,A))},F={enable:(E,_)=>E({[_]:!0}),disable:(E,_)=>E({[_]:!1}),pixelStorei:(E,_,A)=>E({[_]:A}),hint:(E,_,A)=>E({[_]:A}),bindFramebuffer:(E,_,A)=>{switch(_){case R.a.FRAMEBUFFER:return E({[R.a.DRAW_FRAMEBUFFER_BINDING]:A,[R.a.READ_FRAMEBUFFER_BINDING]:A});case R.a.DRAW_FRAMEBUFFER:return E({[R.a.DRAW_FRAMEBUFFER_BINDING]:A});case R.a.READ_FRAMEBUFFER:return E({[R.a.READ_FRAMEBUFFER_BINDING]:A});default:return null}},blendColor:(E,_,A,T,N)=>E({[R.a.BLEND_COLOR]:new Float32Array([_,A,T,N])}),blendEquation:(E,_)=>E({[R.a.BLEND_EQUATION_RGB]:_,[R.a.BLEND_EQUATION_ALPHA]:_}),blendEquationSeparate:(E,_,A)=>E({[R.a.BLEND_EQUATION_RGB]:_,[R.a.BLEND_EQUATION_ALPHA]:A}),blendFunc:(E,_,A)=>E({[R.a.BLEND_SRC_RGB]:_,[R.a.BLEND_DST_RGB]:A,[R.a.BLEND_SRC_ALPHA]:_,[R.a.BLEND_DST_ALPHA]:A}),blendFuncSeparate:(E,_,A,T,N)=>E({[R.a.BLEND_SRC_RGB]:_,[R.a.BLEND_DST_RGB]:A,[R.a.BLEND_SRC_ALPHA]:T,[R.a.BLEND_DST_ALPHA]:N}),clearColor:(E,_,A,T,N)=>E({[R.a.COLOR_CLEAR_VALUE]:new Float32Array([_,A,T,N])}),clearDepth:(E,_)=>E({[R.a.DEPTH_CLEAR_VALUE]:_}),clearStencil:(E,_)=>E({[R.a.STENCIL_CLEAR_VALUE]:_}),colorMask:(E,_,A,T,N)=>E({[R.a.COLOR_WRITEMASK]:[_,A,T,N]}),cullFace:(E,_)=>E({[R.a.CULL_FACE_MODE]:_}),depthFunc:(E,_)=>E({[R.a.DEPTH_FUNC]:_}),depthRange:(E,_,A)=>E({[R.a.DEPTH_RANGE]:new Float32Array([_,A])}),depthMask:(E,_)=>E({[R.a.DEPTH_WRITEMASK]:_}),frontFace:(E,_)=>E({[R.a.FRONT_FACE]:_}),lineWidth:(E,_)=>E({[R.a.LINE_WIDTH]:_}),polygonOffset:(E,_,A)=>E({[R.a.POLYGON_OFFSET_FACTOR]:_,[R.a.POLYGON_OFFSET_UNITS]:A}),sampleCoverage:(E,_,A)=>E({[R.a.SAMPLE_COVERAGE_VALUE]:_,[R.a.SAMPLE_COVERAGE_INVERT]:A}),scissor:(E,_,A,T,N)=>E({[R.a.SCISSOR_BOX]:new Int32Array([_,A,T,N])}),stencilMask:(E,_)=>E({[R.a.STENCIL_WRITEMASK]:_,[R.a.STENCIL_BACK_WRITEMASK]:_}),stencilMaskSeparate:(E,_,A)=>E({[_===R.a.FRONT?R.a.STENCIL_WRITEMASK:R.a.STENCIL_BACK_WRITEMASK]:A}),stencilFunc:(E,_,A,T)=>E({[R.a.STENCIL_FUNC]:_,[R.a.STENCIL_REF]:A,[R.a.STENCIL_VALUE_MASK]:T,[R.a.STENCIL_BACK_FUNC]:_,[R.a.STENCIL_BACK_REF]:A,[R.a.STENCIL_BACK_VALUE_MASK]:T}),stencilFuncSeparate:(E,_,A,T,N)=>E({[_===R.a.FRONT?R.a.STENCIL_FUNC:R.a.STENCIL_BACK_FUNC]:A,[_===R.a.FRONT?R.a.STENCIL_REF:R.a.STENCIL_BACK_REF]:T,[_===R.a.FRONT?R.a.STENCIL_VALUE_MASK:R.a.STENCIL_BACK_VALUE_MASK]:N}),stencilOp:(E,_,A,T)=>E({[R.a.STENCIL_FAIL]:_,[R.a.STENCIL_PASS_DEPTH_FAIL]:A,[R.a.STENCIL_PASS_DEPTH_PASS]:T,[R.a.STENCIL_BACK_FAIL]:_,[R.a.STENCIL_BACK_PASS_DEPTH_FAIL]:A,[R.a.STENCIL_BACK_PASS_DEPTH_PASS]:T}),stencilOpSeparate:(E,_,A,T,N)=>E({[_===R.a.FRONT?R.a.STENCIL_FAIL:R.a.STENCIL_BACK_FAIL]:A,[_===R.a.FRONT?R.a.STENCIL_PASS_DEPTH_FAIL:R.a.STENCIL_BACK_PASS_DEPTH_FAIL]:T,[_===R.a.FRONT?R.a.STENCIL_PASS_DEPTH_PASS:R.a.STENCIL_BACK_PASS_DEPTH_PASS]:N}),viewport:(E,_,A,T,N)=>E({[R.a.VIEWPORT]:[_,A,T,N]})},n=(E,_)=>E.isEnabled(_),M={[R.a.BLEND]:n,[R.a.CULL_FACE]:n,[R.a.DEPTH_TEST]:n,[R.a.DITHER]:n,[R.a.POLYGON_OFFSET_FILL]:n,[R.a.SAMPLE_ALPHA_TO_COVERAGE]:n,[R.a.SAMPLE_COVERAGE]:n,[R.a.SCISSOR_TEST]:n,[R.a.STENCIL_TEST]:n,[R.a.RASTERIZER_DISCARD]:n}},function(E,_,A){"use strict";function T(E,_){if(!E)throw new Error(_||"gltools: assertion failed.")}A.d(_,"a",function(){return T})},function(E,_,A){"use strict";A.d(_,"c",function(){return S}),A.d(_,"a",function(){return e}),A.d(_,"b",function(){return I}),A.d(_,"d",function(){return t});var T=A(2),R=A(5),N=A(1);function S(E,_){if(Object(N.c)(_))return;const A={};for(const R in _){const N=Number(R),S=T.e[R];S&&("string"==typeof S?A[S]=!0:S(E,_[R],N))}const R=E.state&&E.state.cache;if(R)for(const N in A){(0,T.a[N])(E,_,R)}}function e(E,_){if("number"==typeof(_=_||T.c)){const A=_,R=T.d[A];return R?R(E,Number(A)):E.getParameter(Number(A))}const A=Array.isArray(_)?_:Object.keys(_),R={};for(const _ of A){const A=T.d[_];R[_]=A?A(E,Number(_)):E.getParameter(Number(_))}return R}function I(E){S(E,T.c)}function t(E,_,A){if(Object(N.c)(_))return A(E);const{nocatch:T=!0}=_;let e;if(Object(R.c)(E),S(E,_),T)e=A(E),Object(R.b)(E);else try{e=A(E)}finally{Object(R.b)(E)}return e}},function(E,_,A){"use strict";(function(E){A.d(_,"a",function(){return t}),A.d(_,"c",function(){return a}),A.d(_,"b",function(){return C});var T=A(2),R=A(4),N=A(1);function S(E,_){const A=E[_].bind(E);E[_]=function(..._){const T=_[0];return T in E.state.cache||(E.state.cache[T]=A(..._)),E.state.enable?E.state.cache[T]:A(..._)},Object.defineProperty(E[_],"name",{value:`${_}-from-cache`,configurable:!1})}function e(E,_,A){const T=E[_].bind(E);E[_]=function(..._){const{valueChanged:R,oldValue:N}=A(E.state._updateCache,..._);return R&&T(..._),N},Object.defineProperty(E[_],"name",{value:`${_}-to-cache`,configurable:!1})}class I{constructor(E,{copyState:_=!1,log:A=(()=>{})}={}){this.gl=E,this.program=null,this.stateStack=[],this.enable=!0,this.cache=_?Object(R.a)(E):Object.assign({},T.c),this.log=A,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(E={}){this.stateStack.push({})}pop(){Object(N.a)(this.stateStack.length>0);const E=this.stateStack[this.stateStack.length-1];Object(R.c)(this.gl,E,this.cache),this.stateStack.pop()}_updateCache(E){let _,A=!1;const T=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const R in E){Object(N.a)(void 0!==R);const S=E[R],e=this.cache[R];Object(N.b)(S,e)||(A=!0,_=e,!T||R in T||(T[R]=e),this.cache[R]=S)}return{valueChanged:A,oldValue:_}}}function t(_,{enable:A=!0,copyState:R}={}){if(Object(N.a)(void 0!==R),!_.state){const N=void 0!==E?E:window;N.polyfillContext&&N.polyfillContext(_),_.state=new I(_,{copyState:R,enable:A}),function(E){const _=E.useProgram.bind(E);E.useProgram=function(A){E.state.program!==A&&(_(A),E.state.program=A)}}(_);for(const E in T.b){e(_,E,T.b[E])}S(_,"getParameter"),S(_,"isEnabled")}return _.state.enable=A,_}function a(E){E.state||t(E,{copyState:!1}),E.state.push()}function C(E){Object(N.a)(E.state),E.state.pop()}}).call(this,A(7))},function(E,_,A){"use strict";var T=A(0),R=A.n(T),N=A(3);const S=E=>I(E)?void 0:0,e={[R.a.READ_BUFFER]:E=>I(E)?void 0:R.a.COLOR_ATTACHMENT0,35723:E=>I(E)?void 0:4352,[R.a.RASTERIZER_DISCARD]:S,[R.a.SAMPLES]:S,36795:(E,_)=>{const A=I(E)?E.getExtension("EXT_disjoint_timer_query_webgl2"):E.getExtension("EXT_disjoint_timer_query");return A&&A.GPU_DISJOINT_EXT?_(A.GPU_DISJOINT_EXT):0},37445:(E,_)=>{const A=E.getExtension("WEBGL_debug_renderer_info");return _(A&&A.UNMASKED_VENDOR_WEBGL||R.a.VENDOR)},37446:(E,_)=>{const A=E.getExtension("WEBGL_debug_renderer_info");return _(A&&A.UNMASKED_RENDERER_WEBGL||R.a.RENDERER)},34047:(E,_)=>{const A=E.luma.extensions.EXT_texture_filter_anisotropic;return A?_(A.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},[R.a.MAX_3D_TEXTURE_SIZE]:S,[R.a.MAX_ARRAY_TEXTURE_LAYERS]:S,[R.a.MAX_CLIENT_WAIT_TIMEOUT_WEBGL]:S,[R.a.MAX_COLOR_ATTACHMENTS]:(E,_)=>{if(!I(E)){const A=E.getExtension("WEBGL_draw_buffers");return A?_(A.MAX_COLOR_ATTACHMENTS_WEBGL):0}},[R.a.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS]:S,[R.a.MAX_COMBINED_UNIFORM_BLOCKS]:S,[R.a.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS]:S,[R.a.MAX_DRAW_BUFFERS]:E=>{if(!I(E)){const _=E.getExtension("WEBGL_draw_buffers");return _?_.MAX_DRAW_BUFFERS_WEBGL:0}},[R.a.MAX_ELEMENT_INDEX]:E=>E.getExtension("OES_element_index")?2147483647:65535,[R.a.MAX_ELEMENTS_INDICES]:E=>E.getExtension("OES_element_index")?16777216:65535,[R.a.MAX_ELEMENTS_VERTICES]:E=>16777216,[R.a.MAX_FRAGMENT_INPUT_COMPONENTS]:S,[R.a.MAX_FRAGMENT_UNIFORM_BLOCKS]:S,[R.a.MAX_FRAGMENT_UNIFORM_COMPONENTS]:S,[R.a.MAX_SAMPLES]:S,[R.a.MAX_SERVER_WAIT_TIMEOUT]:S,[R.a.MAX_TEXTURE_LOD_BIAS]:S,[R.a.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS]:S,[R.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS]:S,[R.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS]:S,[R.a.MAX_UNIFORM_BLOCK_SIZE]:S,[R.a.MAX_UNIFORM_BUFFER_BINDINGS]:S,[R.a.MAX_VARYING_COMPONENTS]:S,[R.a.MAX_VERTEX_OUTPUT_COMPONENTS]:S,[R.a.MAX_VERTEX_UNIFORM_BLOCKS]:S,[R.a.MAX_VERTEX_UNIFORM_COMPONENTS]:S,[R.a.MIN_PROGRAM_TEXEL_OFFSET]:S,[R.a.MAX_PROGRAM_TEXEL_OFFSET]:S,[R.a.UNIFORM_BUFFER_OFFSET_ALIGNMENT]:S};function I(E){return Boolean(E&&2===E._version)}A.d(_,"b",function(){return a}),A.d(_,"a",function(){return C});function t(E){return Boolean(E&&2===E._version)}const a={OES_vertex_array_object:{meta:{suffix:"OES"},createVertexArray:()=>{Object(N.a)(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:()=>{},bindVertexArray:()=>{},isVertexArray:()=>!1},ANGLE_instanced_arrays:{meta:{suffix:"ANGLE"},vertexAttribDivisor(E,_){Object(N.a)(0===_,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},WEBGL_draw_buffers:{meta:{suffix:"WEBGL"},drawBuffers:()=>{Object(N.a)(!1)}},EXT_disjoint_timer_query:{meta:{suffix:"EXT"},createQuery:()=>{Object(N.a)(!1)},deleteQuery:()=>{Object(N.a)(!1)},beginQuery:()=>{Object(N.a)(!1)},endQuery:()=>{},getQuery(E,_){return this.getQueryObject(E,_)},getQueryParameter(E,_){return this.getQueryObject(E,_)},getQueryObject:()=>{}}},C={readBuffer:(E,_,A)=>{t(E)&&_(A)},getVertexAttrib:(E,_,A,T)=>{const{webgl2:N,ext:S}=function(E,_){return{webgl2:t(E),ext:E.getExtension(_)}}(E,"ANGLE_instanced_arrays");let e;switch(T){case R.a.VERTEX_ATTRIB_ARRAY_INTEGER:e=!!N&&void 0;break;case R.a.VERTEX_ATTRIB_ARRAY_DIVISOR:e=N||S?void 0:0}return void 0!==e?e:_(A,T)},getProgramParameter:(E,_,A,T)=>{if(!t(E))switch(T){case R.a.TRANSFORM_FEEDBACK_BUFFER_MODE:return R.a.SEPARATE_ATTRIBS;case R.a.TRANSFORM_FEEDBACK_VARYINGS:case R.a.ACTIVE_UNIFORM_BLOCKS:return 0}return _(A,T)},getInternalformatParameter:(E,_,A,T,N)=>{if(!t(E))switch(N){case R.a.SAMPLES:return new Int32Array([0])}return E.getInternalformatParameter(A,T,N)},getTexParameter(E,_,A,T){switch(T){case R.a.TEXTURE_MAX_ANISOTROPY_EXT:const{extensions:_}=E.luma,A=_.EXT_texture_filter_anisotropic;T=A&&A.TEXTURE_MAX_ANISOTROPY_EXT||R.a.TEXTURE_MAX_ANISOTROPY_EXT}return _(A,T)},getParameter:function(E,_,A){const T=e[A],R="function"==typeof T?T(E,_,A):T;return void 0!==R?R:_(A)},hint:(E,_,A,T)=>_(A,T)}},function(E,_){var A;A=function(){return this}();try{A=A||new Function("return this")()}catch(E){"object"==typeof window&&(A=window)}E.exports=A},function(E,_,A){"use strict";(function(E){A.d(_,"a",function(){return N});var T=A(3),R=A(6);function N(E){return E.luma=E.luma||{},function(E){E.luma.extensions={};const _=E.getSupportedExtensions()||[];for(const A of _)E.luma[A]=E.getExtension(A)}(E),E.luma.polyfilled||(!function(E,_){for(const A of Object.getOwnPropertyNames(_))"overrides"!==A&&S(E,{extension:A,target:E.luma,target2:E})}(E,R.b),function(E,{target:_,target2:A}){Object.keys(R.a).forEach(T=>{if("function"==typeof R.a[T]){const N=E[T]?E[T].bind(E):()=>{},S=R.a[T].bind(null,E,N);_[T]=S,A[T]=S}})}(E,{target:E.luma,target2:E}),E.luma.polyfilled=!0),E}function S(E,{extension:_,target:A,target2:N}){const S=R.b[_];Object(T.a)(S);const{meta:e={}}=S,{suffix:I=""}=e,t=E.getExtension(_);for(const _ of Object.keys(S)){const T=`${_}${I}`;let R=null;"meta"===_||"function"==typeof E[_]||(t&&"function"==typeof t[T]?R=(...E)=>t[T](...E):"function"==typeof S[_]&&(R=S[_].bind(A))),R&&(A[_]=R,N[_]=R)}}(void 0!==E?E:window).polyfillContext=N}).call(this,A(7))},function(E,_,A){(function(_){const T=A(10),R="undefined"==typeof window?_:window;R.loaders=R.luma||{},E.exports=Object.assign(R.luma,T)}).call(this,A(7))},function(E,_,A){"use strict";A.r(_);var T=A(8);A.d(_,"polyfillContext",function(){return T.a});var R=A(4);A.d(_,"getParameters",function(){return R.a}),A.d(_,"setParameters",function(){return R.c}),A.d(_,"resetParameters",function(){return R.b}),A.d(_,"withParameters",function(){return R.d});var N=A(5);A.d(_,"trackContextState",function(){return N.a}),A.d(_,"pushContextState",function(){return N.c}),A.d(_,"popContextState",function(){return N.b})}])});
!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.9",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(_,"")),a&&(r=s(a),_="[".concat(a+10,"m").concat(_,""))),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 p(e){return Boolean(e&&Number.isFinite(e._version))}function b(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 p}),E.d(t,"m",function(){return b});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.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;function T(e){return Boolean(e&&2===e._version)}const R={webgl2:!0,webgl1:!0,throwOnError:!1,manageState:!0,canvas:null,debug:!1,width:800,height:600};function c(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({},R,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=T(e)?"WebGL2":"WebGL1",E=s(e),n=E?`(${E.vendor},${E.renderer})`:"",_=e.debug?" debug":"";A.n.info(1,`${t}${_} context ${n}`)()}(n=N(n,e)),n):null}function N(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({},R,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 s(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 u(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 c}),E.d(t,"resizeGLContext",function(){return u}),E.d(t,"instrumentGLContext",function(){return N}),E.d(t,"getContextDebugInfo",function(){return s}),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})}])});

@@ -58,2 +58,92 @@ "use strict";

});
Object.defineProperty(exports, "createGLContext", {
enumerable: true,
get: function get() {
return _context.createGLContext;
}
});
Object.defineProperty(exports, "resizeGLContext", {
enumerable: true,
get: function get() {
return _context.resizeGLContext;
}
});
Object.defineProperty(exports, "instrumentGLContext", {
enumerable: true,
get: function get() {
return _context.instrumentGLContext;
}
});
Object.defineProperty(exports, "getContextDebugInfo", {
enumerable: true,
get: function get() {
return _context.getContextDebugInfo;
}
});
Object.defineProperty(exports, "isBrowser", {
enumerable: true,
get: function get() {
return _utils.isBrowser;
}
});
Object.defineProperty(exports, "isBrowserMainThread", {
enumerable: true,
get: function get() {
return _utils.isBrowserMainThread;
}
});
Object.defineProperty(exports, "isNode", {
enumerable: true,
get: function get() {
return _utils.isNode;
}
});
Object.defineProperty(exports, "isElectron", {
enumerable: true,
get: function get() {
return _utils.isElectron;
}
});
Object.defineProperty(exports, "global", {
enumerable: true,
get: function get() {
return _utils.global;
}
});
Object.defineProperty(exports, "window", {
enumerable: true,
get: function get() {
return _utils.window;
}
});
Object.defineProperty(exports, "self", {
enumerable: true,
get: function get() {
return _utils.self;
}
});
Object.defineProperty(exports, "cssToDeviceRatio", {
enumerable: true,
get: function get() {
return _utils.cssToDeviceRatio;
}
});
Object.defineProperty(exports, "cssToDevicePixels", {
enumerable: true,
get: function get() {
return _utils.cssToDevicePixels;
}
});
Object.defineProperty(exports, "isWebGL", {
enumerable: true,
get: function get() {
return _utils.isWebGL;
}
});
Object.defineProperty(exports, "isWebGL2", {
enumerable: true,
get: function get() {
return _utils.isWebGL2;
}
});

@@ -65,2 +155,6 @@ var _polyfillContext = _interopRequireDefault(require("./polyfill/polyfill-context"));

var _trackContextState = _interopRequireWildcard(require("./state-tracker/track-context-state"));
var _context = require("./context/context");
var _utils = require("./utils/");
//# sourceMappingURL=index.js.map
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -10,3 +8,3 @@ value: true

var _assert = _interopRequireDefault(require("./assert"));
var _utils = require("../utils");

@@ -115,3 +113,3 @@ var _polyfillTable = require("./polyfill-table");

var defaults = _polyfillTable.WEBGL2_CONTEXT_POLYFILLS[extension];
(0, _assert["default"])(defaults);
(0, _utils.assert)(defaults);
var _defaults$meta = defaults.meta,

@@ -118,0 +116,0 @@ meta = _defaults$meta === void 0 ? {} : _defaults$meta;

@@ -12,5 +12,5 @@ "use strict";

var _assert = _interopRequireDefault(require("./assert"));
var _utils = require("../utils");
var _getParameterPolyfill = require("./polyfills/get-parameter-polyfill");
var _getParameterPolyfill = require("./get-parameter-polyfill");

@@ -26,9 +26,5 @@ var _WEBGL2_CONTEXT_POLYF;

function isWebGL2(gl) {
return Boolean(gl && gl._version === 2);
}
function getExtensionData(gl, extension) {
return {
webgl2: isWebGL2(gl),
webgl2: (0, _utils.isWebGL2)(gl),
ext: gl.getExtension(extension)

@@ -43,3 +39,3 @@ };

createVertexArray: function createVertexArray() {
(0, _assert["default"])(false, ERR_VAO_NOT_SUPPORTED);
(0, _utils.assert)(false, ERR_VAO_NOT_SUPPORTED);
},

@@ -56,3 +52,3 @@ deleteVertexArray: function deleteVertexArray() {},

vertexAttribDivisor: function vertexAttribDivisor(location, divisor) {
(0, _assert["default"])(divisor === 0, 'WebGL instanced rendering not supported');
(0, _utils.assert)(divisor === 0, 'WebGL instanced rendering not supported');
},

@@ -66,3 +62,3 @@ drawElementsInstanced: function drawElementsInstanced() {},

drawBuffers: function drawBuffers() {
(0, _assert["default"])(false);
(0, _utils.assert)(false);
}

@@ -74,9 +70,9 @@ }), (0, _defineProperty2["default"])(_WEBGL2_CONTEXT_POLYF, EXT_disjoint_timer_query, {

createQuery: function createQuery() {
(0, _assert["default"])(false);
(0, _utils.assert)(false);
},
deleteQuery: function deleteQuery() {
(0, _assert["default"])(false);
(0, _utils.assert)(false);
},
beginQuery: function beginQuery() {
(0, _assert["default"])(false);
(0, _utils.assert)(false);
},

@@ -95,3 +91,3 @@ endQuery: function endQuery() {},

readBuffer: function readBuffer(gl, originalFunc, attachment) {
if (isWebGL2(gl)) {
if ((0, _utils.isWebGL2)(gl)) {
originalFunc(attachment);

@@ -122,3 +118,3 @@ } else {}

getProgramParameter: function getProgramParameter(gl, originalFunc, program, pname) {
if (!isWebGL2(gl)) {
if (!(0, _utils.isWebGL2)(gl)) {
switch (pname) {

@@ -141,3 +137,3 @@ case 35967:

getInternalformatParameter: function getInternalformatParameter(gl, originalFunc, target, format, pname) {
if (!isWebGL2(gl)) {
if (!(0, _utils.isWebGL2)(gl)) {
switch (pname) {

@@ -144,0 +140,0 @@ case 32937:

@@ -20,3 +20,3 @@ "use strict";

var _utils = require("./utils");
var _utils = require("../utils");

@@ -23,0 +23,0 @@ function installGetterOverride(gl, functionName) {

@@ -15,3 +15,3 @@ "use strict";

var _utils = require("./utils");
var _utils = require("../utils");

@@ -54,3 +54,3 @@ function setParameters(gl, values) {

var getter = _webglParameterTables.GL_PARAMETER_GETTERS[key];
return getter ? getter(gl, Number(key)) : gl.getParameter(Number(key));
return getter ? getter(gl, key) : gl.getParameter(key);
}

@@ -57,0 +57,0 @@

@@ -16,3 +16,3 @@ "use strict";

var _utils = require("./utils");
var _utils = require("../utils");

@@ -19,0 +19,0 @@ var _GL_PARAMETER_DEFAULT, _GL_PARAMETER_SETTERS, _GL_PARAMETER_GETTERS;

export { default as polyfillContext } from './polyfill/polyfill-context';
export { getParameters, setParameters, resetParameters, withParameters } from './state-tracker/unified-parameter-api';
export { default as trackContextState, pushContextState, popContextState } from './state-tracker/track-context-state';
export { createGLContext, resizeGLContext, instrumentGLContext, getContextDebugInfo } from './context/context';
export { isBrowser, isBrowserMainThread, isNode, isElectron, global, window, self, cssToDeviceRatio, cssToDevicePixels, isWebGL, isWebGL2 } from './utils/';
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import assert from './assert';
import { assert } from '../utils';
import { WEBGL2_CONTEXT_POLYFILLS, WEBGL2_CONTEXT_OVERRIDES } from './polyfill-table';

@@ -3,0 +3,0 @@ export default function polyfillContext(gl) {

@@ -1,3 +0,3 @@

import assert from './assert';
import { getParameterPolyfill } from './polyfills/get-parameter-polyfill';
import { assert, isWebGL2 } from '../utils';
import { getParameterPolyfill } from './get-parameter-polyfill';
const OES_vertex_array_object = 'OES_vertex_array_object';

@@ -10,6 +10,2 @@ const ANGLE_instanced_arrays = 'ANGLE_instanced_arrays';

function isWebGL2(gl) {
return Boolean(gl && gl._version === 2);
}
function getExtensionData(gl, extension) {

@@ -16,0 +12,0 @@ return {

import { GL_PARAMETER_DEFAULTS, GL_HOOKED_SETTERS } from './webgl-parameter-tables';
import { setParameters, getParameters } from './unified-parameter-api';
import { assert, deepArrayEqual } from './utils';
import { assert, deepArrayEqual } from '../utils';

@@ -5,0 +5,0 @@ function installGetterOverride(gl, functionName) {

import { GL_PARAMETER_DEFAULTS, GL_PARAMETER_SETTERS, GL_COMPOSITE_PARAMETER_SETTERS, GL_PARAMETER_GETTERS } from './webgl-parameter-tables';
import { pushContextState, popContextState } from './track-context-state';
import { isObjectEmpty } from './utils';
import { isObjectEmpty } from '../utils';
export function setParameters(gl, values) {

@@ -39,3 +39,3 @@ if (isObjectEmpty(values)) {

const getter = GL_PARAMETER_GETTERS[key];
return getter ? getter(gl, Number(key)) : gl.getParameter(Number(key));
return getter ? getter(gl, key) : gl.getParameter(key);
}

@@ -42,0 +42,0 @@

@@ -1,2 +0,2 @@

import { isWebGL2 } from './utils';
import { isWebGL2 } from '../utils';
export const GL_PARAMETER_DEFAULTS = {

@@ -3,0 +3,0 @@ [3042]: false,

export { default as polyfillContext } from './polyfill/polyfill-context';
export { getParameters, setParameters, resetParameters, withParameters } from './state-tracker/unified-parameter-api';
export { default as trackContextState, pushContextState, popContextState } from './state-tracker/track-context-state';
export { createGLContext, resizeGLContext, instrumentGLContext, getContextDebugInfo } from './context/context';
export { isBrowser, isBrowserMainThread, isNode, isElectron, global, window, self, cssToDeviceRatio, cssToDevicePixels, isWebGL, isWebGL2 } from './utils/';
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import assert from './assert';
import { assert } from '../utils';
import { WEBGL2_CONTEXT_POLYFILLS, WEBGL2_CONTEXT_OVERRIDES } from './polyfill-table';

@@ -3,0 +3,0 @@ export default function polyfillContext(gl) {

@@ -5,4 +5,4 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

import assert from './assert';
import { getParameterPolyfill } from './polyfills/get-parameter-polyfill';
import { assert, isWebGL2 } from '../utils';
import { getParameterPolyfill } from './get-parameter-polyfill';
var OES_vertex_array_object = 'OES_vertex_array_object';

@@ -15,6 +15,2 @@ var ANGLE_instanced_arrays = 'ANGLE_instanced_arrays';

function isWebGL2(gl) {
return Boolean(gl && gl._version === 2);
}
function getExtensionData(gl, extension) {

@@ -21,0 +17,0 @@ return {

@@ -5,3 +5,3 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";

import { setParameters, getParameters } from './unified-parameter-api';
import { assert, deepArrayEqual } from './utils';
import { assert, deepArrayEqual } from '../utils';

@@ -8,0 +8,0 @@ function installGetterOverride(gl, functionName) {

import { GL_PARAMETER_DEFAULTS, GL_PARAMETER_SETTERS, GL_COMPOSITE_PARAMETER_SETTERS, GL_PARAMETER_GETTERS } from './webgl-parameter-tables';
import { pushContextState, popContextState } from './track-context-state';
import { isObjectEmpty } from './utils';
import { isObjectEmpty } from '../utils';
export function setParameters(gl, values) {

@@ -39,3 +39,3 @@ if (isObjectEmpty(values)) {

var getter = GL_PARAMETER_GETTERS[key];
return getter ? getter(gl, Number(key)) : gl.getParameter(Number(key));
return getter ? getter(gl, key) : gl.getParameter(key);
}

@@ -42,0 +42,0 @@

@@ -7,3 +7,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

import { isWebGL2 } from './utils';
import { isWebGL2 } from '../utils';
export var GL_PARAMETER_DEFAULTS = (_GL_PARAMETER_DEFAULT = {}, _defineProperty(_GL_PARAMETER_DEFAULT, 3042, false), _defineProperty(_GL_PARAMETER_DEFAULT, 32773, new Float32Array([0, 0, 0, 0])), _defineProperty(_GL_PARAMETER_DEFAULT, 32777, 32774), _defineProperty(_GL_PARAMETER_DEFAULT, 34877, 32774), _defineProperty(_GL_PARAMETER_DEFAULT, 32969, 1), _defineProperty(_GL_PARAMETER_DEFAULT, 32968, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 32971, 1), _defineProperty(_GL_PARAMETER_DEFAULT, 32970, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 3106, new Float32Array([0, 0, 0, 0])), _defineProperty(_GL_PARAMETER_DEFAULT, 3107, [true, true, true, true]), _defineProperty(_GL_PARAMETER_DEFAULT, 2884, false), _defineProperty(_GL_PARAMETER_DEFAULT, 2885, 1029), _defineProperty(_GL_PARAMETER_DEFAULT, 2929, false), _defineProperty(_GL_PARAMETER_DEFAULT, 2931, 1), _defineProperty(_GL_PARAMETER_DEFAULT, 2932, 513), _defineProperty(_GL_PARAMETER_DEFAULT, 2928, new Float32Array([0, 1])), _defineProperty(_GL_PARAMETER_DEFAULT, 2930, true), _defineProperty(_GL_PARAMETER_DEFAULT, 3024, true), _defineProperty(_GL_PARAMETER_DEFAULT, 36006, null), _defineProperty(_GL_PARAMETER_DEFAULT, 2886, 2305), _defineProperty(_GL_PARAMETER_DEFAULT, 33170, 4352), _defineProperty(_GL_PARAMETER_DEFAULT, 2849, 1), _defineProperty(_GL_PARAMETER_DEFAULT, 32823, false), _defineProperty(_GL_PARAMETER_DEFAULT, 32824, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 10752, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 32938, 1.0), _defineProperty(_GL_PARAMETER_DEFAULT, 32939, false), _defineProperty(_GL_PARAMETER_DEFAULT, 3089, false), _defineProperty(_GL_PARAMETER_DEFAULT, 3088, new Int32Array([0, 0, 1024, 1024])), _defineProperty(_GL_PARAMETER_DEFAULT, 2960, false), _defineProperty(_GL_PARAMETER_DEFAULT, 2961, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 2968, 0xffffffff), _defineProperty(_GL_PARAMETER_DEFAULT, 36005, 0xffffffff), _defineProperty(_GL_PARAMETER_DEFAULT, 2962, 519), _defineProperty(_GL_PARAMETER_DEFAULT, 2967, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 2963, 0xffffffff), _defineProperty(_GL_PARAMETER_DEFAULT, 34816, 519), _defineProperty(_GL_PARAMETER_DEFAULT, 36003, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 36004, 0xffffffff), _defineProperty(_GL_PARAMETER_DEFAULT, 2964, 7680), _defineProperty(_GL_PARAMETER_DEFAULT, 2965, 7680), _defineProperty(_GL_PARAMETER_DEFAULT, 2966, 7680), _defineProperty(_GL_PARAMETER_DEFAULT, 34817, 7680), _defineProperty(_GL_PARAMETER_DEFAULT, 34818, 7680), _defineProperty(_GL_PARAMETER_DEFAULT, 34819, 7680), _defineProperty(_GL_PARAMETER_DEFAULT, 2978, [0, 0, 1024, 1024]), _defineProperty(_GL_PARAMETER_DEFAULT, 3333, 4), _defineProperty(_GL_PARAMETER_DEFAULT, 3317, 4), _defineProperty(_GL_PARAMETER_DEFAULT, 37440, false), _defineProperty(_GL_PARAMETER_DEFAULT, 37441, false), _defineProperty(_GL_PARAMETER_DEFAULT, 37443, 37444), _defineProperty(_GL_PARAMETER_DEFAULT, 35723, 4352), _defineProperty(_GL_PARAMETER_DEFAULT, 36010, null), _defineProperty(_GL_PARAMETER_DEFAULT, 35977, false), _defineProperty(_GL_PARAMETER_DEFAULT, 3330, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 3332, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 3331, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 3314, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 32878, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 3316, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 3315, 0), _defineProperty(_GL_PARAMETER_DEFAULT, 32877, 0), _GL_PARAMETER_DEFAULT);

@@ -10,0 +10,0 @@

{
"name": "@luma.gl/gltools",
"version": "8.0.0-alpha.9",
"version": "8.0.0-alpha.10",
"description": "WebGL2 API Polyfills for WebGL1 WebGLRenderingContext",

@@ -32,5 +32,6 @@ "license": "MIT",

"@babel/runtime": "^7.0.0",
"@luma.gl/constants": "8.0.0-alpha.9"
"@luma.gl/constants": "8.0.0-alpha.10",
"probe.gl": "^3.1.1"
},
"gitHead": "fed10cf18cf978b4c1fedd4dbaf3c16b957bbb0a"
"gitHead": "49834deb7c9729385bc53e0b2b01ebef5e86e16a"
}
// Installs polyfills to support a subset of WebGL2 APIs on WebGL1 contexts
export {default as polyfillContext} from './polyfill/polyfill-context';

@@ -19,1 +18,22 @@

} from './state-tracker/track-context-state';
export {
createGLContext,
resizeGLContext,
instrumentGLContext,
getContextDebugInfo
} from './context/context';
export {
isBrowser,
isBrowserMainThread,
isNode,
isElectron,
global,
window,
self,
cssToDeviceRatio,
cssToDevicePixels,
isWebGL,
isWebGL2
} from './utils/';

@@ -11,3 +11,3 @@ // WebGL1/WebGL2 extension polyfill support

/* eslint-disable camelcase, brace-style */
import assert from './assert';
import {assert} from '../utils';

@@ -14,0 +14,0 @@ import {WEBGL2_CONTEXT_POLYFILLS, WEBGL2_CONTEXT_OVERRIDES} from './polyfill-table';

import GL from '@luma.gl/constants';
import assert from './assert';
import {assert, isWebGL2} from '../utils';
import {getParameterPolyfill} from './polyfills/get-parameter-polyfill';
import {getParameterPolyfill} from './get-parameter-polyfill';

@@ -14,7 +14,2 @@ const OES_vertex_array_object = 'OES_vertex_array_object';

// Return true if WebGL2 context
function isWebGL2(gl) {
return Boolean(gl && gl._version === 2);
}
// Return object with webgl2 flag and an extension

@@ -21,0 +16,0 @@ function getExtensionData(gl, extension) {

@@ -6,3 +6,3 @@ // Support for listening to context state changes and intercepting state queries

import {setParameters, getParameters} from './unified-parameter-api';
import {assert, deepArrayEqual} from './utils';
import {assert, deepArrayEqual} from '../utils';

@@ -9,0 +9,0 @@ // HELPER FUNCTIONS - INSTALL GET/SET INTERCEPTORS (SPYS) ON THE CONTEXT

@@ -12,3 +12,3 @@ // Provides a unified API for getting and setting any WebGL parameter

import {pushContextState, popContextState} from './track-context-state';
import {isObjectEmpty} from './utils';
import {isObjectEmpty} from '../utils';

@@ -80,3 +80,3 @@ // Sets any GL parameter regardless of function (gl.blendMode, ...)

const getter = GL_PARAMETER_GETTERS[key];
return getter ? getter(gl, Number(key)) : gl.getParameter(Number(key));
return getter ? getter(gl, key) : gl.getParameter(key);
}

@@ -83,0 +83,0 @@

// Tables describing WebGL parameters
import GL from '@luma.gl/constants';
import {isWebGL2} from './utils';
import {isWebGL2} from '../utils';

@@ -5,0 +5,0 @@ // DEFAULT SETTINGS - FOR FAST CACHE INITIALIZATION AND CONTEXT RESETS

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc