@luma.gl/gltools
Advanced tools
Comparing version 8.3.1 to 8.4.0-alpha.1
@@ -1,1 +0,1 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var E=t[r]={i:r,l:!1,exports:{}};return e[r].call(E.exports,E,E.exports,n),E.l=!0,E.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var E in e)n.d(r,E,function(t){return e[t]}.bind(null,E));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t,n){"use strict";t.a={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,n){"use strict";var r=n(2);function E(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(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")}()}var _=n(12),a=n(13),o=n(20),i="8.3.0",A=Object(o.a)();var R=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";Object(_.a)(this,e),this.storage=function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),t}catch(e){return null}}(r),this.id=t,this.config={},Object.assign(this.config,n),this._loadConfiguration()}return Object(a.a)(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 T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600,E=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>r&&(n=Math.min(n,r/e.width));var _=e.width*n,a=e.height*n,o=["font-size:1px;","padding:".concat(Math.floor(a/2),"px ").concat(Math.floor(_/2),"px;"),"line-height:".concat(a,"px;"),"background:url(".concat(E,");"),"background-size:".concat(_,"px ").concat(a,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),o]}var c={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 u(e){return"string"==typeof e?c[e.toUpperCase()]||c.WHITE:e}function s(e,t){if(!e)throw new Error(t||"Assertion failed")}var N=n(7);function S(){var e;if(A&&N.b.performance)e=N.b.performance.now();else if(N.a.hrtime){var t=N.a.hrtime();e=1e3*t[0]+t[1]/1e6}else e=Date.now();return e}var l={debug:A&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},O={enabled:!0,level:0};function I(){}var f={},L={once:!0};function C(e){for(var t in e)for(var n in e[t])return n||"untitled";return"empty"}var F=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;Object(_.a)(this,e),this.id=t,this.VERSION=i,this._startTs=S(),this._deltaTs=S(),this.LOG_THROTTLE_TIMEOUT=0,this._storage=new R("__probe-".concat(this.id,"__"),O),this.userData={},this.timeStamp("".concat(this.id," started")),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"],n=Object.getPrototypeOf(e),r=Object.getOwnPropertyNames(n),E=!0,_=!1,a=void 0;try{for(var o,i=function(){var n=o.value;"function"==typeof e[n]&&(t.find(function(e){return n===e})||(e[n]=e[n].bind(e)))},A=r[Symbol.iterator]();!(E=(o=A.next()).done);E=!0)i()}catch(e){_=!0,a=e}finally{try{E||null==A.return||A.return()}finally{if(_)throw a}}}(this),Object.seal(this)}return Object(a.a)(e,[{key:"isEnabled",value:function(){return this._storage.config.enabled}},{key:"getLevel",value:function(){return this._storage.config.level}},{key:"getTotal",value:function(){return Number((S()-this._startTs).toPrecision(10))}},{key:"getDelta",value:function(){return Number((S()-this._deltaTs).toPrecision(10))}},{key:"getPriority",value:function(){return this.level}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.updateConfiguration({enabled:e}),this}},{key:"setLevel",value:function(e){return this._storage.updateConfiguration({level:e}),this}},{key:"assert",value:function(e,t){s(e,t)}},{key:"warn",value:function(e){return this._getLogFunction(0,e,l.warn,arguments,L)}},{key:"error",value:function(e){return this._getLogFunction(0,e,l.error,arguments)}},{key:"deprecated",value:function(e,t){return this.warn("`".concat(e,"` is deprecated and will be removed in a later version. Use `").concat(t,"` instead"))}},{key:"removed",value:function(e,t){return this.error("`".concat(e,"` has been removed. Use `").concat(t,"` instead"))}},{key:"probe",value:function(e,t){return this._getLogFunction(e,t,l.log,arguments,{time:!0,once:!0})}},{key:"log",value:function(e,t){return this._getLogFunction(e,t,l.debug,arguments)}},{key:"info",value:function(e,t){return this._getLogFunction(e,t,console.info,arguments)}},{key:"once",value:function(e,t){return this._getLogFunction(e,t,l.debug||l.info,arguments,L)}},{key:"table",value:function(e,t,n){return t?this._getLogFunction(e,t,console.table||I,n&&[n],{tag:C(t)}):I}},{key:"image",value:function(e){var t=e.logLevel,r=e.priority,_=e.image,a=e.message,o=void 0===a?"":a,i=e.scale,R=void 0===i?1:i;return this._shouldLog(t||r)?A?function(e){var t=e.image,n=e.message,r=void 0===n?"":n,_=e.scale,a=void 0===_?1:_;if("string"==typeof t){var o=new Image;return o.onload=function(){var e,t=T(o,r,a);(e=console).log.apply(e,E(t))},o.src=t,I}var i=t.nodeName||"";if("img"===i.toLowerCase()){var A;return(A=console).log.apply(A,E(T(t,r,a))),I}if("canvas"===i.toLowerCase()){var R=new Image;return R.onload=function(){var e;return(e=console).log.apply(e,E(T(R,r,a)))},R.src=t.toDataURL(),I}return I}({image:_,message:o,scale:R}):function(e){var t=e.image,r=(e.message,e.scale),E=void 0===r?1:r,_=null;try{_=n(26)}catch(e){}if(_)return function(){return _(t,{fit:"box",width:"".concat(Math.round(80*E),"%")}).then(function(e){return console.log(e)})};return I}({image:_,message:o,scale:R}):I}},{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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))}},{key:"time",value:function(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}},{key:"timeEnd",value:function(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}},{key:"timeStamp",value:function(e,t){return this._getLogFunction(e,t,console.timeStamp||I)}},{key:"group",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1},r=(n=d({logLevel:e,message:t,opts:n})).collapsed;return n.method=(r?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}},{key:"groupCollapsed",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(e,t,Object.assign({},n,{collapsed:!0}))}},{key:"groupEnd",value:function(e){return this._getLogFunction(e,"",console.groupEnd||I)}},{key:"withGroup",value:function(e,t,n){this.group(e,t)();try{n()}finally{this.groupEnd(e)()}}},{key:"trace",value:function(){console.trace&&console.trace()}},{key:"_shouldLog",value:function(e){return this.isEnabled()&&this.getLevel()>=M(e)}},{key:"_getLogFunction",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],_=arguments.length>4?arguments[4]:void 0;if(this._shouldLog(e)){var a;_=d({logLevel:e,message:t,args:r,opts:_}),s(n=n||_.method),_.total=this.getTotal(),_.delta=this.getDelta(),this._deltaTs=S();var o=_.tag||_.message;if(_.once){if(f[o])return I;f[o]=S()}return t=function(e,t,n){if("string"==typeof t){var r=n.time?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=Math.max(t-e.length,0);return"".concat(" ".repeat(n)).concat(e)}((o=n.total)<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")):"";t=n.time?"".concat(e,": ").concat(r," ").concat(t):"".concat(e,": ").concat(t),E=t,_=n.color,a=n.background,A||"string"!=typeof E||(_&&(_=u(_),E="[".concat(_,"m").concat(E,"[39m")),a&&(_=u(a),E="[".concat(a+10,"m").concat(E,"[49m"))),t=E}var E,_,a;var o;return t}(this.id,_.message,_),(a=n).bind.apply(a,[console,t].concat(E(_.args)))}return I}},{key:"level",set:function(e){this.setLevel(e)},get:function(){return this.getLevel()}},{key:"priority",set:function(e){this.level=e},get:function(){return this.level}}]),e}();function M(e){if(!e)return 0;var t;switch(Object(r.a)(e)){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return s(Number.isFinite(t)&&t>=0),t}function d(e){var t=e.logLevel,n=e.message;e.logLevel=M(t);for(var E=e.args?Array.from(e.args):[];E.length&&E.shift()!==n;);switch(e.args=E,Object(r.a)(t)){case"string":case"function":void 0!==n&&E.unshift(n),e.message=t;break;case"object":Object.assign(e,t)}"function"==typeof e.message&&(e.message=e.message());var _=Object(r.a)(e.message);return s("string"===_||"object"===_),Object.assign(e,e.opts)}function B(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}function P(e){for(const t in e)return!1;return!0}function D(e,t){if(e===t)return!0;const n=Array.isArray(e)||ArrayBuffer.isView(e),r=Array.isArray(t)||ArrayBuffer.isView(t);if(n&&r&&e.length===t.length){for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}return!1}function b(e){if(e.canvas&&e.luma){const{clientWidth:t}=e.luma.canvasSizeInfo;return t?e.drawingBufferWidth/t:1}return 1}function U(e,t,n=!0){return function(e,t,n,r,E){const _=h(e[0],t,n);let a=G(e[1],t,r,E),o=h(e[0]+1,t,n);const i=o===n-1?o:o-1;let A;o=G(e[1]+1,t,r,E),E?(A=a,a=o=0===o?o:o+1):A=o===r-1?o:o-1;return{x:_,y:a,width:Math.max(i-_+1,1),height:Math.max(A-a+1,1)}}(t,b(e),e.drawingBufferWidth,e.drawingBufferHeight,n)}function g(e){const t="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(e)?e<=0?1:e:e?t:1}function h(e,t,n){return Math.min(Math.round(e*t),n-1)}function G(e,t,n,r){return r?Math.max(0,n-1-Math.round(e*t)):Math.min(Math.round(e*t),n-1)}F.VERSION=i;function p(e){return Boolean(e&&Number.isFinite(e._version))}function y(e){return Boolean(e&&2===e._version)}n.d(t,"i",function(){return v}),n.d(t,"a",function(){return B}),n.d(t,"d",function(){return D}),n.d(t,"f",function(){return P}),n.d(t,"b",function(){return U}),n.d(t,"c",function(){return b}),n.d(t,"e",function(){return g}),n.d(t,"g",function(){return p}),n.d(t,"h",function(){return y});const v=new F({id:"luma.gl"})},function(e,t,n){"use strict";function r(e){return(r="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(e){return(E="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return E})},function(e,t,n){e.exports=n(23)},function(e,t,n){"use strict";n.d(t,"c",function(){return _}),n.d(t,"e",function(){return R}),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return N});var r=n(0),E=n(1);const _={[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},a=(e,t,n)=>t?e.enable(n):e.disable(n),o=(e,t,n)=>e.hint(n,t),i=(e,t,n)=>e.pixelStorei(n,t);function A(e){return Array.isArray(e)||ArrayBuffer.isView(e)}const R={[r.a.BLEND]:a,[r.a.BLEND_COLOR]:(e,t)=>e.blendColor(...t),[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,t)=>e.clearColor(...t),[r.a.COLOR_WRITEMASK]:(e,t)=>e.colorMask(...t),[r.a.CULL_FACE]:a,[r.a.CULL_FACE_MODE]:(e,t)=>e.cullFace(t),[r.a.DEPTH_TEST]:a,[r.a.DEPTH_CLEAR_VALUE]:(e,t)=>e.clearDepth(t),[r.a.DEPTH_FUNC]:(e,t)=>e.depthFunc(t),[r.a.DEPTH_RANGE]:(e,t)=>e.depthRange(...t),[r.a.DEPTH_WRITEMASK]:(e,t)=>e.depthMask(t),[r.a.DITHER]:a,[r.a.FRAGMENT_SHADER_DERIVATIVE_HINT]:o,[r.a.FRAMEBUFFER_BINDING]:(e,t)=>{const n=Object(E.h)(e)?r.a.DRAW_FRAMEBUFFER:r.a.FRAMEBUFFER;return e.bindFramebuffer(n,t)},[r.a.FRONT_FACE]:(e,t)=>e.frontFace(t),[r.a.GENERATE_MIPMAP_HINT]:o,[r.a.LINE_WIDTH]:(e,t)=>e.lineWidth(t),[r.a.POLYGON_OFFSET_FILL]:a,[r.a.POLYGON_OFFSET_FACTOR]:"polygonOffset",[r.a.POLYGON_OFFSET_UNITS]:"polygonOffset",[r.a.RASTERIZER_DISCARD]:a,[r.a.SAMPLE_COVERAGE_VALUE]:"sampleCoverage",[r.a.SAMPLE_COVERAGE_INVERT]:"sampleCoverage",[r.a.SCISSOR_TEST]:a,[r.a.SCISSOR_BOX]:(e,t)=>e.scissor(...t),[r.a.STENCIL_TEST]:a,[r.a.STENCIL_CLEAR_VALUE]:(e,t)=>e.clearStencil(t),[r.a.STENCIL_WRITEMASK]:(e,t)=>e.stencilMaskSeparate(r.a.FRONT,t),[r.a.STENCIL_BACK_WRITEMASK]:(e,t)=>e.stencilMaskSeparate(r.a.BACK,t),[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,t)=>e.viewport(...t),[r.a.PACK_ALIGNMENT]:i,[r.a.UNPACK_ALIGNMENT]:i,[r.a.UNPACK_FLIP_Y_WEBGL]:i,[r.a.UNPACK_PREMULTIPLY_ALPHA_WEBGL]:i,[r.a.UNPACK_COLORSPACE_CONVERSION_WEBGL]:i,[r.a.PACK_ROW_LENGTH]:i,[r.a.PACK_SKIP_PIXELS]:i,[r.a.PACK_SKIP_ROWS]:i,[r.a.READ_FRAMEBUFFER_BINDING]:(e,t)=>e.bindFramebuffer(r.a.READ_FRAMEBUFFER,t),[r.a.UNPACK_ROW_LENGTH]:i,[r.a.UNPACK_IMAGE_HEIGHT]:i,[r.a.UNPACK_SKIP_PIXELS]:i,[r.a.UNPACK_SKIP_ROWS]:i,[r.a.UNPACK_SKIP_IMAGES]:i,framebuffer:(e,t)=>{const n=t&&"handle"in t?t.handle:t;return e.bindFramebuffer(r.a.FRAMEBUFFER,n)},blend:(e,t)=>t?e.enable(r.a.BLEND):e.disable(r.a.BLEND),blendColor:(e,t)=>e.blendColor(...t),blendEquation:(e,t)=>{t=A(t)?t:[t,t],e.blendEquationSeparate(...t)},blendFunc:(e,t)=>{t=A(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(r.a.CULL_FACE):e.disable(r.a.CULL_FACE),cullFace:(e,t)=>e.cullFace(t),depthTest:(e,t)=>t?e.enable(r.a.DEPTH_TEST):e.disable(r.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(r.a.DITHER):e.disable(r.a.DITHER),derivativeHint:(e,t)=>{e.hint(r.a.FRAGMENT_SHADER_DERIVATIVE_HINT,t)},frontFace:(e,t)=>e.frontFace(t),mipmapHint:(e,t)=>e.hint(r.a.GENERATE_MIPMAP_HINT,t),lineWidth:(e,t)=>e.lineWidth(t),polygonOffsetFill:(e,t)=>t?e.enable(r.a.POLYGON_OFFSET_FILL):e.disable(r.a.POLYGON_OFFSET_FILL),polygonOffset:(e,t)=>e.polygonOffset(...t),sampleCoverage:(e,t)=>e.sampleCoverage(...t),scissorTest:(e,t)=>t?e.enable(r.a.SCISSOR_TEST):e.disable(r.a.SCISSOR_TEST),scissor:(e,t)=>e.scissor(...t),stencilTest:(e,t)=>t?e.enable(r.a.STENCIL_TEST):e.disable(r.a.STENCIL_TEST),stencilMask:(e,t)=>{t=A(t)?t:[t,t];const[n,E]=t;e.stencilMaskSeparate(r.a.FRONT,n),e.stencilMaskSeparate(r.a.BACK,E)},stencilFunc:(e,t)=>{t=A(t)&&3===t.length?[...t,...t]:t;const[n,E,_,a,o,i]=t;e.stencilFuncSeparate(r.a.FRONT,n,E,_),e.stencilFuncSeparate(r.a.BACK,a,o,i)},stencilOp:(e,t)=>{t=A(t)&&3===t.length?[...t,...t]:t;const[n,E,_,a,o,i]=t;e.stencilOpSeparate(r.a.FRONT,n,E,_),e.stencilOpSeparate(r.a.BACK,a,o,i)},viewport:(e,t)=>e.viewport(...t)};function T(e,t,n){return void 0!==t[e]?t[e]:n[e]}const c={blendEquation:(e,t,n)=>e.blendEquationSeparate(T(r.a.BLEND_EQUATION_RGB,t,n),T(r.a.BLEND_EQUATION_ALPHA,t,n)),blendFunc:(e,t,n)=>e.blendFuncSeparate(T(r.a.BLEND_SRC_RGB,t,n),T(r.a.BLEND_DST_RGB,t,n),T(r.a.BLEND_SRC_ALPHA,t,n),T(r.a.BLEND_DST_ALPHA,t,n)),polygonOffset:(e,t,n)=>e.polygonOffset(T(r.a.POLYGON_OFFSET_FACTOR,t,n),T(r.a.POLYGON_OFFSET_UNITS,t,n)),sampleCoverage:(e,t,n)=>e.sampleCoverage(T(r.a.SAMPLE_COVERAGE_VALUE,t,n),T(r.a.SAMPLE_COVERAGE_INVERT,t,n)),stencilFuncFront:(e,t,n)=>e.stencilFuncSeparate(r.a.FRONT,T(r.a.STENCIL_FUNC,t,n),T(r.a.STENCIL_REF,t,n),T(r.a.STENCIL_VALUE_MASK,t,n)),stencilFuncBack:(e,t,n)=>e.stencilFuncSeparate(r.a.BACK,T(r.a.STENCIL_BACK_FUNC,t,n),T(r.a.STENCIL_BACK_REF,t,n),T(r.a.STENCIL_BACK_VALUE_MASK,t,n)),stencilOpFront:(e,t,n)=>e.stencilOpSeparate(r.a.FRONT,T(r.a.STENCIL_FAIL,t,n),T(r.a.STENCIL_PASS_DEPTH_FAIL,t,n),T(r.a.STENCIL_PASS_DEPTH_PASS,t,n)),stencilOpBack:(e,t,n)=>e.stencilOpSeparate(r.a.BACK,T(r.a.STENCIL_BACK_FAIL,t,n),T(r.a.STENCIL_BACK_PASS_DEPTH_FAIL,t,n),T(r.a.STENCIL_BACK_PASS_DEPTH_PASS,t,n))},u={enable:(e,t)=>e({[t]:!0}),disable:(e,t)=>e({[t]:!1}),pixelStorei:(e,t,n)=>e({[t]:n}),hint:(e,t,n)=>e({[t]:n}),bindFramebuffer:(e,t,n)=>{switch(t){case r.a.FRAMEBUFFER:return e({[r.a.DRAW_FRAMEBUFFER_BINDING]:n,[r.a.READ_FRAMEBUFFER_BINDING]:n});case r.a.DRAW_FRAMEBUFFER:return e({[r.a.DRAW_FRAMEBUFFER_BINDING]:n});case r.a.READ_FRAMEBUFFER:return e({[r.a.READ_FRAMEBUFFER_BINDING]:n});default:return null}},blendColor:(e,t,n,E,_)=>e({[r.a.BLEND_COLOR]:new Float32Array([t,n,E,_])}),blendEquation:(e,t)=>e({[r.a.BLEND_EQUATION_RGB]:t,[r.a.BLEND_EQUATION_ALPHA]:t}),blendEquationSeparate:(e,t,n)=>e({[r.a.BLEND_EQUATION_RGB]:t,[r.a.BLEND_EQUATION_ALPHA]:n}),blendFunc:(e,t,n)=>e({[r.a.BLEND_SRC_RGB]:t,[r.a.BLEND_DST_RGB]:n,[r.a.BLEND_SRC_ALPHA]:t,[r.a.BLEND_DST_ALPHA]:n}),blendFuncSeparate:(e,t,n,E,_)=>e({[r.a.BLEND_SRC_RGB]:t,[r.a.BLEND_DST_RGB]:n,[r.a.BLEND_SRC_ALPHA]:E,[r.a.BLEND_DST_ALPHA]:_}),clearColor:(e,t,n,E,_)=>e({[r.a.COLOR_CLEAR_VALUE]:new Float32Array([t,n,E,_])}),clearDepth:(e,t)=>e({[r.a.DEPTH_CLEAR_VALUE]:t}),clearStencil:(e,t)=>e({[r.a.STENCIL_CLEAR_VALUE]:t}),colorMask:(e,t,n,E,_)=>e({[r.a.COLOR_WRITEMASK]:[t,n,E,_]}),cullFace:(e,t)=>e({[r.a.CULL_FACE_MODE]:t}),depthFunc:(e,t)=>e({[r.a.DEPTH_FUNC]:t}),depthRange:(e,t,n)=>e({[r.a.DEPTH_RANGE]:new Float32Array([t,n])}),depthMask:(e,t)=>e({[r.a.DEPTH_WRITEMASK]:t}),frontFace:(e,t)=>e({[r.a.FRONT_FACE]:t}),lineWidth:(e,t)=>e({[r.a.LINE_WIDTH]:t}),polygonOffset:(e,t,n)=>e({[r.a.POLYGON_OFFSET_FACTOR]:t,[r.a.POLYGON_OFFSET_UNITS]:n}),sampleCoverage:(e,t,n)=>e({[r.a.SAMPLE_COVERAGE_VALUE]:t,[r.a.SAMPLE_COVERAGE_INVERT]:n}),scissor:(e,t,n,E,_)=>e({[r.a.SCISSOR_BOX]:new Int32Array([t,n,E,_])}),stencilMask:(e,t)=>e({[r.a.STENCIL_WRITEMASK]:t,[r.a.STENCIL_BACK_WRITEMASK]:t}),stencilMaskSeparate:(e,t,n)=>e({[t===r.a.FRONT?r.a.STENCIL_WRITEMASK:r.a.STENCIL_BACK_WRITEMASK]:n}),stencilFunc:(e,t,n,E)=>e({[r.a.STENCIL_FUNC]:t,[r.a.STENCIL_REF]:n,[r.a.STENCIL_VALUE_MASK]:E,[r.a.STENCIL_BACK_FUNC]:t,[r.a.STENCIL_BACK_REF]:n,[r.a.STENCIL_BACK_VALUE_MASK]:E}),stencilFuncSeparate:(e,t,n,E,_)=>e({[t===r.a.FRONT?r.a.STENCIL_FUNC:r.a.STENCIL_BACK_FUNC]:n,[t===r.a.FRONT?r.a.STENCIL_REF:r.a.STENCIL_BACK_REF]:E,[t===r.a.FRONT?r.a.STENCIL_VALUE_MASK:r.a.STENCIL_BACK_VALUE_MASK]:_}),stencilOp:(e,t,n,E)=>e({[r.a.STENCIL_FAIL]:t,[r.a.STENCIL_PASS_DEPTH_FAIL]:n,[r.a.STENCIL_PASS_DEPTH_PASS]:E,[r.a.STENCIL_BACK_FAIL]:t,[r.a.STENCIL_BACK_PASS_DEPTH_FAIL]:n,[r.a.STENCIL_BACK_PASS_DEPTH_PASS]:E}),stencilOpSeparate:(e,t,n,E,_)=>e({[t===r.a.FRONT?r.a.STENCIL_FAIL:r.a.STENCIL_BACK_FAIL]:n,[t===r.a.FRONT?r.a.STENCIL_PASS_DEPTH_FAIL:r.a.STENCIL_BACK_PASS_DEPTH_FAIL]:E,[t===r.a.FRONT?r.a.STENCIL_PASS_DEPTH_PASS:r.a.STENCIL_BACK_PASS_DEPTH_PASS]:_}),viewport:(e,t,n,E,_)=>e({[r.a.VIEWPORT]:[t,n,E,_]})},s=(e,t)=>e.isEnabled(t),N={[r.a.BLEND]:s,[r.a.CULL_FACE]:s,[r.a.DEPTH_TEST]:s,[r.a.DITHER]:s,[r.a.POLYGON_OFFSET_FILL]:s,[r.a.SAMPLE_ALPHA_TO_COVERAGE]:s,[r.a.SAMPLE_COVERAGE]:s,[r.a.SCISSOR_TEST]:s,[r.a.STENCIL_TEST]:s,[r.a.RASTERIZER_DISCARD]:s}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return A}),n.d(t,"c",function(){return R}),n.d(t,"b",function(){return T});var r=n(4),E=n(6),_=n(1);function a(e,t){const n=e[t].bind(e);e[t]=function(...t){const r=t[0];return r in e.state.cache||(e.state.cache[r]=n(...t)),e.state.enable?e.state.cache[r]:n(...t)},Object.defineProperty(e[t],"name",{value:`${t}-from-cache`,configurable:!1})}function o(e,t,n){const r=e[t].bind(e);e[t]=function(...t){const{valueChanged:E,oldValue:_}=n(e.state._updateCache,...t);return E&&r(...t),_},Object.defineProperty(e[t],"name",{value:`${t}-to-cache`,configurable:!1})}class i{constructor(e,{copyState:t=!1,log:n=(()=>{})}={}){this.gl=e,this.program=null,this.stateStack=[],this.enable=!0,this.cache=t?Object(E.a)(e):Object.assign({},r.c),this.log=n,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(e={}){this.stateStack.push({})}pop(){Object(_.a)(this.stateStack.length>0);const e=this.stateStack[this.stateStack.length-1];Object(E.c)(this.gl,e,this.cache),this.stateStack.pop()}_updateCache(e){let t,n=!1;const r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const E in e){Object(_.a)(void 0!==E);const a=e[E],o=this.cache[E];Object(_.d)(a,o)||(n=!0,t=o,!r||E in r||(r[E]=o),this.cache[E]=a)}return{valueChanged:n,oldValue:t}}}function A(t,{enable:n=!0,copyState:E}={}){if(Object(_.a)(void 0!==E),!t.state){const _=void 0!==e?e:window;_.polyfillContext&&_.polyfillContext(t),t.state=new i(t,{copyState:E,enable:n}),function(e){const t=e.useProgram.bind(e);e.useProgram=function(n){e.state.program!==n&&(t(n),e.state.program=n)}}(t);for(const e in r.b){o(t,e,r.b[e])}a(t,"getParameter"),a(t,"isEnabled")}return t.state.enable=n,t}function R(e){e.state||A(e,{copyState:!1}),e.state.push()}function T(e){Object(_.a)(e.state),e.state.pop()}}).call(this,n(10))},function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return A});var r=n(4),E=n(5),_=n(1);function a(e,t){if(Object(_.a)(Object(_.g)(e),"setParameters requires a WebGL context"),Object(_.f)(t))return;const n={};for(const E in t){const _=Number(E),a=r.e[E];a&&("string"==typeof a?n[a]=!0:a(e,t[E],_))}const E=e.state&&e.state.cache;if(E)for(const _ in n){(0,r.a[_])(e,t,E)}}function o(e,t){if("number"==typeof(t=t||r.c)){const n=t,E=r.d[n];return E?E(e,n):e.getParameter(n)}const n=Array.isArray(t)?t:Object.keys(t),E={};for(const t of n){const n=r.d[t];E[t]=n?n(e,Number(t)):e.getParameter(Number(t))}return E}function i(e){a(e,r.c)}function A(e,t,n){if(Object(_.f)(t))return n(e);const{nocatch:r=!0}=t;let o;if(Object(E.c)(e),a(e,t),r)o=n(e),Object(E.b)(e);else try{o=n(e)}finally{Object(E.b)(e)}return o}},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",function(){return a}),n.d(t,"a",function(){return o});var E=n(2),_={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":Object(E.a)(r))&&r},a=_.window||_.self||_.global,o=_.process||{};console}).call(this,n(10),n(8))},function(e,t){var n,r,E=e.exports={};function _(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===_||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:_}catch(e){n=_}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var i,A=[],R=!1,T=-1;function c(){R&&i&&(R=!1,i.length?A=i.concat(A):T=-1,A.length&&u())}function u(){if(!R){var e=o(c);R=!0;for(var t=A.length;t;){for(i=A,A=[];++T<t;)i&&i[T].run();T=-1,t=A.length}i=null,R=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function N(){}E.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];A.push(new s(e,t)),1!==A.length||R||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={},E.on=N,E.addListener=N,E.once=N,E.off=N,E.removeListener=N,E.removeAllListeners=N,E.emit=N,E.prependListener=N,E.prependOnceListener=N,E.listeners=function(e){return[]},E.binding=function(e){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(e){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(0),E=n(1);const _=e=>Object(E.h)(e)?void 0:0,a={[r.a.READ_BUFFER]:e=>Object(E.h)(e)?void 0:r.a.COLOR_ATTACHMENT0,35723:e=>Object(E.h)(e)?void 0:4352,[r.a.RASTERIZER_DISCARD]:_,[r.a.SAMPLES]:_,36795:(e,t)=>{const n=Object(E.h)(e)?e.getExtension("EXT_disjoint_timer_query_webgl2"):e.getExtension("EXT_disjoint_timer_query");return n&&n.GPU_DISJOINT_EXT?t(n.GPU_DISJOINT_EXT):0},37445:(e,t)=>{const n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_VENDOR_WEBGL||r.a.VENDOR)},37446:(e,t)=>{const n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_RENDERER_WEBGL||r.a.RENDERER)},34047:(e,t)=>{const n=e.luma.extensions.EXT_texture_filter_anisotropic;return n?t(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},[r.a.MAX_3D_TEXTURE_SIZE]:_,[r.a.MAX_ARRAY_TEXTURE_LAYERS]:_,[r.a.MAX_CLIENT_WAIT_TIMEOUT_WEBGL]:_,[r.a.MAX_COLOR_ATTACHMENTS]:(e,t)=>{if(!Object(E.h)(e)){const n=e.getExtension("WEBGL_draw_buffers");return n?t(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}},[r.a.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS]:_,[r.a.MAX_COMBINED_UNIFORM_BLOCKS]:_,[r.a.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS]:_,[r.a.MAX_DRAW_BUFFERS]:e=>{if(!Object(E.h)(e)){const t=e.getExtension("WEBGL_draw_buffers");return t?t.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]:_,[r.a.MAX_FRAGMENT_UNIFORM_BLOCKS]:_,[r.a.MAX_FRAGMENT_UNIFORM_COMPONENTS]:_,[r.a.MAX_SAMPLES]:_,[r.a.MAX_SERVER_WAIT_TIMEOUT]:_,[r.a.MAX_TEXTURE_LOD_BIAS]:_,[r.a.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS]:_,[r.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS]:_,[r.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS]:_,[r.a.MAX_UNIFORM_BLOCK_SIZE]:_,[r.a.MAX_UNIFORM_BUFFER_BINDINGS]:_,[r.a.MAX_VARYING_COMPONENTS]:_,[r.a.MAX_VERTEX_OUTPUT_COMPONENTS]:_,[r.a.MAX_VERTEX_UNIFORM_BLOCKS]:_,[r.a.MAX_VERTEX_UNIFORM_COMPONENTS]:_,[r.a.MIN_PROGRAM_TEXEL_OFFSET]:_,[r.a.MAX_PROGRAM_TEXEL_OFFSET]:_,[r.a.UNIFORM_BUFFER_OFFSET_ALIGNMENT]:_};n.d(t,"b",function(){return o}),n.d(t,"a",function(){return i});const o={OES_vertex_array_object:{meta:{suffix:"OES"},createVertexArray:()=>{Object(E.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(E.a)(0===t,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},WEBGL_draw_buffers:{meta:{suffix:"WEBGL"},drawBuffers:()=>{Object(E.a)(!1)}},EXT_disjoint_timer_query:{meta:{suffix:"EXT"},createQuery:()=>{Object(E.a)(!1)},deleteQuery:()=>{Object(E.a)(!1)},beginQuery:()=>{Object(E.a)(!1)},endQuery:()=>{},getQuery(e,t){return this.getQueryObject(e,t)},getQueryParameter(e,t){return this.getQueryObject(e,t)},getQueryObject:()=>{}}},i={readBuffer:(e,t,n)=>{Object(E.h)(e)&&t(n)},getVertexAttrib:(e,t,n,_)=>{const{webgl2:a,ext:o}=function(e,t){return{webgl2:Object(E.h)(e),ext:e.getExtension(t)}}(e,"ANGLE_instanced_arrays");let i;switch(_){case r.a.VERTEX_ATTRIB_ARRAY_INTEGER:i=!!a&&void 0;break;case r.a.VERTEX_ATTRIB_ARRAY_DIVISOR:i=a||o?void 0:0}return void 0!==i?i:t(n,_)},getProgramParameter:(e,t,n,_)=>{if(!Object(E.h)(e))switch(_){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 t(n,_)},getInternalformatParameter:(e,t,n,_,a)=>{if(!Object(E.h)(e))switch(a){case r.a.SAMPLES:return new Int32Array([0])}return e.getInternalformatParameter(n,_,a)},getTexParameter(e,t,n,E){switch(E){case r.a.TEXTURE_MAX_ANISOTROPY_EXT:const{extensions:t}=e.luma,n=t.EXT_texture_filter_anisotropic;E=n&&n.TEXTURE_MAX_ANISOTROPY_EXT||r.a.TEXTURE_MAX_ANISOTROPY_EXT}return t(n,E)},getParameter:function(e,t,n){const r=a[n],E="function"==typeof r?r(e,t,n):r;return void 0!==E?E:t(n)},hint:(e,t,n,r)=>t(n,r)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",function(){return E})},function(e,t){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 r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";(function(e){var r=n(11);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){if("undefined"!=typeof window&&"object"===(0,E.default)(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===(0,E.default)(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":(0,E.default)(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=t||n;if(r&&r.indexOf("Electron")>=0)return!0;return!1};var E=r(n(14))}).call(this,n(8))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return a});var r=n(19),E=n(1),_=n(9);function a(e){return e.luma=e.luma||{},e.luma.polyfilled||(Object(r.a)(e),function(e){e.luma.extensions={};const t=e.getSupportedExtensions()||[];for(const n of t)e.luma[n]=e.getExtension(n)}(e),function(e,t){for(const n of Object.getOwnPropertyNames(t))"overrides"!==n&&o(e,{extension:n,target:e.luma,target2:e})}(e,_.b),function(e,{target:t,target2:n}){Object.keys(_.a).forEach(r=>{if("function"==typeof _.a[r]){const E=e[r]?e[r].bind(e):()=>{},a=_.a[r].bind(null,e,E);t[r]=a,n[r]=a}})}(e,{target:e.luma,target2:e}),e.luma.polyfilled=!0),e}function o(e,{extension:t,target:n,target2:r}){const a=_.b[t];Object(E.a)(a);const{meta:o={}}=a,{suffix:i=""}=o,A=e.getExtension(t);for(const t of Object.keys(a)){const E=`${t}${i}`;let _=null;"meta"===t||"function"==typeof e[t]||(A&&"function"==typeof A[E]?_=(...e)=>A[E](...e):"function"==typeof a[t]&&(_=a[t].bind(n))),_&&(n[t]=_,r[t]=_)}}(void 0!==e?e:window).polyfillContext=a}).call(this,n(10))},function(e,t,n){"use strict";(function(e,r){var E=n(11);Object.defineProperty(t,"__esModule",{value:!0}),t.console=t.process=t.document=t.global=t.window=t.self=void 0;var _=E(n(14)),a={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":(0,_.default)(r))&&r},o=a.self||a.window||a.global;t.self=o;var i=a.window||a.self||a.global;t.window=i;var A=a.global||a.self||a.window;t.global=A;var R=a.document||{};t.document=R;var T=a.process||{};t.process=T;var c=console;t.console=c}).call(this,n(10),n(8))},function(e,t,n){"use strict";(function(e){var r=n(11);Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.isBrowserMainThread=function(){return a()&&"undefined"!=typeof document};var E=r(n(14)),_=r(n(15));function a(){return!("object"===(void 0===e?"undefined":(0,E.default)(e))&&"[object process]"===String(e)&&!e.browser)||(0,_.default)()}}).call(this,n(8))},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(3);const E={};function _(e,t){var n;E[e]=!0,void 0!==t&&(n=t,r.global.console&&r.global.console.error&&r.global.console.error(n))}const a=function e(t){const n=t.gl;this.ext=t,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(t.maxVertexAttribs);for(let t=0;t<this.attribs.length;t++){const r=new e.VertexAttrib(n);this.attribs[t]=r}this.maxAttrib=0};(a.VertexAttrib=function(e){this.enabled=!1,this.buffer=null,this.size=4,this.type=e.FLOAT,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()}).prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};const o=function(e){const t=this;this.gl=e,function(e){const t=e.getError;e.getError=function(){let n;do{(n=t.apply(e))!==e.NO_ERROR&&(E[n]=!0)}while(n!==e.NO_ERROR);for(n in E)if(E[n])return delete E[n],parseInt(n,10);return e.NO_ERROR}}(e);const n=this.original={getParameter:e.getParameter,enableVertexAttribArray:e.enableVertexAttribArray,disableVertexAttribArray:e.disableVertexAttribArray,bindBuffer:e.bindBuffer,getVertexAttrib:e.getVertexAttrib,vertexAttribPointer:e.vertexAttribPointer};e.getParameter=function(e){return e===t.VERTEX_ARRAY_BINDING_OES?t.currentVertexArrayObject===t.defaultVertexArrayObject?null:t.currentVertexArrayObject:n.getParameter.apply(this,arguments)},e.enableVertexAttribArray=function(e){const r=t.currentVertexArrayObject;return r.maxAttrib=Math.max(r.maxAttrib,e),r.attribs[e].enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},e.disableVertexAttribArray=function(e){const r=t.currentVertexArrayObject;return r.maxAttrib=Math.max(r.maxAttrib,e),r.attribs[e].enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},e.bindBuffer=function(r,E){switch(r){case e.ARRAY_BUFFER:t.currentArrayBuffer=E;break;case e.ELEMENT_ARRAY_BUFFER:t.currentVertexArrayObject.elementArrayBuffer=E}return n.bindBuffer.apply(this,arguments)},e.getVertexAttrib=function(r,E){const _=t.currentVertexArrayObject.attribs[r];switch(E){case e.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:return _.buffer;case e.VERTEX_ATTRIB_ARRAY_ENABLED:return _.enabled;case e.VERTEX_ATTRIB_ARRAY_SIZE:return _.size;case e.VERTEX_ATTRIB_ARRAY_STRIDE:return _.stride;case e.VERTEX_ATTRIB_ARRAY_TYPE:return _.type;case e.VERTEX_ATTRIB_ARRAY_NORMALIZED:return _.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},e.vertexAttribPointer=function(e,r,E,_,a,o){const i=t.currentVertexArrayObject;i.maxAttrib=Math.max(i.maxAttrib,e);const A=i.attribs[e];return A.buffer=t.currentArrayBuffer,A.size=r,A.type=E,A.normalized=_,A.stride=a,A.offset=o,A.recache(),n.vertexAttribPointer.apply(this,arguments)},e.instrumentExtension&&e.instrumentExtension(this,"OES_vertex_array_object"),e.canvas&&e.canvas.addEventListener("webglcontextrestored",()=>{!function(e){r.global.console&&r.global.console.log&&r.global.console.log(e)}("OESVertexArrayObject emulation library context restored"),t.reset_()},!0),this.reset_()};function i(e){if("function"==typeof e.createVertexArray)return;const t=e.getSupportedExtensions;e.getSupportedExtensions=function(){const e=t.call(this)||[];return e.indexOf("OES_vertex_array_object")<0&&e.push("OES_vertex_array_object"),e};const n=e.getExtension;e.getExtension=function(t){const r=n.call(this,t);return r||("OES_vertex_array_object"!==t?null:(e.__OESVertexArrayObject||(this.__OESVertexArrayObject=new o(this)),this.__OESVertexArrayObject))}}o.prototype.VERTEX_ARRAY_BINDING_OES=34229,o.prototype.reset_=function(){if(void 0!==this.vertexArrayObjects)for(let e=0;e<this.vertexArrayObjects.length;++e)this.vertexArrayObjects.isAlive=!1;const e=this.gl;this.maxVertexAttribs=e.getParameter(e.MAX_VERTEX_ATTRIBS),this.defaultVertexArrayObject=new a(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)},o.prototype.createVertexArrayOES=function(){const e=new a(this);return this.vertexArrayObjects.push(e),e},o.prototype.deleteVertexArrayOES=function(e){e.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(e),1),this.currentVertexArrayObject===e&&this.bindVertexArrayOES(null)},o.prototype.isVertexArrayOES=function(e){return!!(e&&e instanceof a&&e.hasBeenBound&&e.ext===this)},o.prototype.bindVertexArrayOES=function(e){const t=this.gl;if(e&&!e.isAlive)return void _(t.INVALID_OPERATION,"bindVertexArrayOES: attempt to bind deleted arrayObject");const n=this.original,r=this.currentVertexArrayObject;this.currentVertexArrayObject=e||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;const E=this.currentVertexArrayObject;if(r===E)return;r&&E.elementArrayBuffer===r.elementArrayBuffer||n.bindBuffer.call(t,t.ELEMENT_ARRAY_BUFFER,E.elementArrayBuffer);let a=this.currentArrayBuffer;const o=Math.max(r?r.maxAttrib:0,E.maxAttrib);for(let e=0;e<=o;e++){const _=E.attribs[e],o=r?r.attribs[e]:null;if(r&&_.enabled===o.enabled||(_.enabled?n.enableVertexAttribArray.call(t,e):n.disableVertexAttribArray.call(t,e)),_.enabled){let E=!1;r&&_.buffer===o.buffer||(a!==_.buffer&&(n.bindBuffer.call(t,t.ARRAY_BUFFER,_.buffer),a=_.buffer),E=!0),(E||_.cached!==o.cached)&&n.vertexAttribPointer.call(t,e,_.size,_.type,_.normalized,_.stride,_.offset)}}this.currentArrayBuffer!==a&&n.bindBuffer.call(t,t.ARRAY_BUFFER,this.currentArrayBuffer)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var r=n(2),E=n(21);function _(){return!("object"===(void 0===e?"undefined":Object(r.a)(e))&&"[object process]"===String(e)&&!e.browser)||Object(E.a)()}}).call(this,n(8))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return E});var r=n(2);function E(t){if("undefined"!=typeof window&&"object"===Object(r.a)(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===Object(r.a)(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":Object(r.a)(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,E=t||n;return!!(E&&E.indexOf("Electron")>=0)}}).call(this,n(8))},function(e,t,n){(function(t){const r=n(27),E="undefined"==typeof window?t:window;E.loaders=E.luma||{},e.exports=Object.assign(E.luma,r)}).call(this,n(10))},function(e,t,n){"use strict";var r=n(11),E=n(24);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"self",{enumerable:!0,get:function(){return _.self}}),Object.defineProperty(t,"window",{enumerable:!0,get:function(){return _.window}}),Object.defineProperty(t,"global",{enumerable:!0,get:function(){return _.global}}),Object.defineProperty(t,"document",{enumerable:!0,get:function(){return _.document}}),Object.defineProperty(t,"process",{enumerable:!0,get:function(){return _.process}}),Object.defineProperty(t,"console",{enumerable:!0,get:function(){return _.console}}),Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"isBrowserMainThread",{enumerable:!0,get:function(){return a.isBrowserMainThread}}),Object.defineProperty(t,"getBrowser",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"isMobile",{enumerable:!0,get:function(){return o.isMobile}}),Object.defineProperty(t,"isElectron",{enumerable:!0,get:function(){return i.default}});var _=n(17),a=E(n(18)),o=E(n(25)),i=r(n(15))},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}},function(e,t,n){"use strict";var r=n(11);Object.defineProperty(t,"__esModule",{value:!0}),t.isMobile=function(){return void 0!==E.window.orientation},t.default=function(e){if(!e&&!(0,_.default)())return"Node";if((0,a.default)(e))return"Electron";var t="undefined"!=typeof navigator?navigator:{},n=e||t.userAgent||"";if(n.indexOf("Edge")>-1)return"Edge";var r=-1!==n.indexOf("MSIE "),o=-1!==n.indexOf("Trident/");if(r||o)return"IE";if(E.window.chrome)return"Chrome";if(E.window.safari)return"Safari";if(E.window.mozInnerScreenX)return"Firefox";return"Unknown"};var E=n(17),_=r(n(18)),a=r(n(15))},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(16),E=n(6),_=n(5),a=n(0),o=n(3),i=n(1);const A=Object(o.isBrowser)(),R=A&&"undefined"!=typeof document,T={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function c(e={}){Object(i.a)(A,"createGLContext on available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"),e=Object.assign({},T,e);const{width:t,height:n}=e;function r(t){if(e.throwOnError)throw new Error(t);return console.error(t),null}let E;e.onError=r;const{canvas:_}=e;return(E=function(e,t){const{onError:n}=t,r=e=>n(`WebGL context: ${e.statusMessage||"error"}`);e.addEventListener("webglcontextcreationerror",r,!1);const{webgl1:E=!0,webgl2:_=!0}=t;let a=null;_&&(a=(a=a||e.getContext("webgl2",t))||e.getContext("experimental-webgl2",t));E&&(a=(a=a||e.getContext("webgl",t))||e.getContext("experimental-webgl",t));if(e.removeEventListener("webglcontextcreationerror",r,!1),!a)return n(`Failed to create ${_&&!E?"WebGL2":"WebGL"} context`);return a}(function({canvas:e,width:t=800,height:n=600,onError:r}){let E;if("string"==typeof e){const t=R&&"complete"===document.readyState;t||r(`createGLContext called on canvas '${e}' before page was loaded`),E=document.getElementById(e)}else e?E=e:((E=document.createElement("canvas")).id="lumagl-canvas",E.style.width=Number.isFinite(t)?`${t}px`:"100%",E.style.height=Number.isFinite(n)?`${n}px`:"100%",document.body.insertBefore(E,document.body.firstChild));return E}({canvas:_,width:t,height:n,onError:r}),e))?(function(e){const t=Object(i.h)(e)?"WebGL2":"WebGL1",n=s(e),r=n?`(${n.vendor},${n.renderer})`:"",E=e.debug?" debug":"";i.i.info(1,`${t}${E} context ${r}`)()}(E=u(E,e)),E):null}function u(e,t={}){if(!e||e._instrumented)return e;e._version=e._version||function(e){if("undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext)return 2;return 1}(e),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{},t=Object.assign({},T,t);const{manageState:n,debug:r}=t;return n&&Object(_.a)(e,{copyState:!1,log:(...e)=>i.i.log(1,...e)()}),A&&r&&(o.global.makeDebugContext?(e=o.global.makeDebugContext(e,t),i.i.level=Math.max(i.i.level,1)):i.i.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),e._instrumented=!0,e}function s(e){const t=e.getParameter(a.a.VENDOR),n=e.getParameter(a.a.RENDERER),r=e.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&e.getParameter(r.UNMASKED_VENDOR_WEBGL||a.a.VENDOR)||t,renderer:r&&e.getParameter(r.UNMASKED_RENDERER_WEBGL||a.a.RENDERER)||n,vendorMasked:t,rendererMasked:n,version:e.getParameter(a.a.VERSION),shadingLanguageVersion:e.getParameter(a.a.SHADING_LANGUAGE_VERSION)}}function N(e,t={}){if(e.canvas){return void function(e,t,n){let r="width"in n?n.width:e.canvas.clientWidth,E="height"in n?n.height:e.canvas.clientHeight;r&&E||(i.i.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,r=e.canvas.width||1,E=e.canvas.height||1);e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};const _=e.luma.canvasSizeInfo;if(_.clientWidth!==r||_.clientHeight!==E||_.devicePixelRatio!==t){let n=t;const _=Math.floor(r*n),a=Math.floor(E*n);e.canvas.width=_,e.canvas.height=a,e.drawingBufferWidth===_&&e.drawingBufferHeight===a||(i.i.warn("Device pixel ratio clamped")(),n=Math.min(e.drawingBufferWidth/r,e.drawingBufferHeight/E),e.canvas.width=Math.floor(r*n),e.canvas.height=Math.floor(E*n)),Object.assign(e.luma.canvasSizeInfo,{clientWidth:r,clientHeight:E,devicePixelRatio:t})}}(e,Object(i.e)(t.useDevicePixels),t)}const n=e.getExtension("STACKGL_resize_drawingbuffer");n&&"width"in t&&"height"in t&&n.resize(t.width,t.height)}n.d(t,"polyfillContext",function(){return r.a}),n.d(t,"getParameters",function(){return E.a}),n.d(t,"setParameters",function(){return E.c}),n.d(t,"resetParameters",function(){return E.b}),n.d(t,"withParameters",function(){return E.d}),n.d(t,"trackContextState",function(){return _.a}),n.d(t,"pushContextState",function(){return _.c}),n.d(t,"popContextState",function(){return _.b}),n.d(t,"createGLContext",function(){return c}),n.d(t,"resizeGLContext",function(){return N}),n.d(t,"instrumentGLContext",function(){return u}),n.d(t,"getContextDebugInfo",function(){return s}),n.d(t,"log",function(){return i.i}),n.d(t,"cssToDeviceRatio",function(){return i.c}),n.d(t,"cssToDevicePixels",function(){return i.b}),n.d(t,"isWebGL",function(){return i.g}),n.d(t,"isWebGL2",function(){return i.h})}])}); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var E=t[r]={i:r,l:!1,exports:{}};return e[r].call(E.exports,E,E.exports,n),E.l=!0,E.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var E in e)n.d(r,E,function(t){return e[t]}.bind(null,E));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t,n){"use strict";t.a={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,n){"use strict";var r=n(2);function E(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(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")}()}var _=n(12),a=n(13),o=n(20),i="8.3.0",A=Object(o.a)();var R=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";Object(_.a)(this,e),this.storage=function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),t}catch(e){return null}}(r),this.id=t,this.config={},Object.assign(this.config,n),this._loadConfiguration()}return Object(a.a)(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 T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600,E=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>r&&(n=Math.min(n,r/e.width));var _=e.width*n,a=e.height*n,o=["font-size:1px;","padding:".concat(Math.floor(a/2),"px ").concat(Math.floor(_/2),"px;"),"line-height:".concat(a,"px;"),"background:url(".concat(E,");"),"background-size:".concat(_,"px ").concat(a,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),o]}var c={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 u(e){return"string"==typeof e?c[e.toUpperCase()]||c.WHITE:e}function s(e,t){if(!e)throw new Error(t||"Assertion failed")}var N=n(7);function S(){var e;if(A&&N.b.performance)e=N.b.performance.now();else if(N.a.hrtime){var t=N.a.hrtime();e=1e3*t[0]+t[1]/1e6}else e=Date.now();return e}var l={debug:A&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},O={enabled:!0,level:0};function I(){}var f={},L={once:!0};function C(e){for(var t in e)for(var n in e[t])return n||"untitled";return"empty"}var F=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;Object(_.a)(this,e),this.id=t,this.VERSION=i,this._startTs=S(),this._deltaTs=S(),this.LOG_THROTTLE_TIMEOUT=0,this._storage=new R("__probe-".concat(this.id,"__"),O),this.userData={},this.timeStamp("".concat(this.id," started")),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"],n=Object.getPrototypeOf(e),r=Object.getOwnPropertyNames(n),E=!0,_=!1,a=void 0;try{for(var o,i=function(){var n=o.value;"function"==typeof e[n]&&(t.find(function(e){return n===e})||(e[n]=e[n].bind(e)))},A=r[Symbol.iterator]();!(E=(o=A.next()).done);E=!0)i()}catch(e){_=!0,a=e}finally{try{E||null==A.return||A.return()}finally{if(_)throw a}}}(this),Object.seal(this)}return Object(a.a)(e,[{key:"isEnabled",value:function(){return this._storage.config.enabled}},{key:"getLevel",value:function(){return this._storage.config.level}},{key:"getTotal",value:function(){return Number((S()-this._startTs).toPrecision(10))}},{key:"getDelta",value:function(){return Number((S()-this._deltaTs).toPrecision(10))}},{key:"getPriority",value:function(){return this.level}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.updateConfiguration({enabled:e}),this}},{key:"setLevel",value:function(e){return this._storage.updateConfiguration({level:e}),this}},{key:"assert",value:function(e,t){s(e,t)}},{key:"warn",value:function(e){return this._getLogFunction(0,e,l.warn,arguments,L)}},{key:"error",value:function(e){return this._getLogFunction(0,e,l.error,arguments)}},{key:"deprecated",value:function(e,t){return this.warn("`".concat(e,"` is deprecated and will be removed in a later version. Use `").concat(t,"` instead"))}},{key:"removed",value:function(e,t){return this.error("`".concat(e,"` has been removed. Use `").concat(t,"` instead"))}},{key:"probe",value:function(e,t){return this._getLogFunction(e,t,l.log,arguments,{time:!0,once:!0})}},{key:"log",value:function(e,t){return this._getLogFunction(e,t,l.debug,arguments)}},{key:"info",value:function(e,t){return this._getLogFunction(e,t,console.info,arguments)}},{key:"once",value:function(e,t){return this._getLogFunction(e,t,l.debug||l.info,arguments,L)}},{key:"table",value:function(e,t,n){return t?this._getLogFunction(e,t,console.table||I,n&&[n],{tag:C(t)}):I}},{key:"image",value:function(e){var t=e.logLevel,r=e.priority,_=e.image,a=e.message,o=void 0===a?"":a,i=e.scale,R=void 0===i?1:i;return this._shouldLog(t||r)?A?function(e){var t=e.image,n=e.message,r=void 0===n?"":n,_=e.scale,a=void 0===_?1:_;if("string"==typeof t){var o=new Image;return o.onload=function(){var e,t=T(o,r,a);(e=console).log.apply(e,E(t))},o.src=t,I}var i=t.nodeName||"";if("img"===i.toLowerCase()){var A;return(A=console).log.apply(A,E(T(t,r,a))),I}if("canvas"===i.toLowerCase()){var R=new Image;return R.onload=function(){var e;return(e=console).log.apply(e,E(T(R,r,a)))},R.src=t.toDataURL(),I}return I}({image:_,message:o,scale:R}):function(e){var t=e.image,r=(e.message,e.scale),E=void 0===r?1:r,_=null;try{_=n(26)}catch(e){}if(_)return function(){return _(t,{fit:"box",width:"".concat(Math.round(80*E),"%")}).then(function(e){return console.log(e)})};return I}({image:_,message:o,scale:R}):I}},{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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))}},{key:"time",value:function(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}},{key:"timeEnd",value:function(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}},{key:"timeStamp",value:function(e,t){return this._getLogFunction(e,t,console.timeStamp||I)}},{key:"group",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1},r=(n=d({logLevel:e,message:t,opts:n})).collapsed;return n.method=(r?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}},{key:"groupCollapsed",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(e,t,Object.assign({},n,{collapsed:!0}))}},{key:"groupEnd",value:function(e){return this._getLogFunction(e,"",console.groupEnd||I)}},{key:"withGroup",value:function(e,t,n){this.group(e,t)();try{n()}finally{this.groupEnd(e)()}}},{key:"trace",value:function(){console.trace&&console.trace()}},{key:"_shouldLog",value:function(e){return this.isEnabled()&&this.getLevel()>=M(e)}},{key:"_getLogFunction",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],_=arguments.length>4?arguments[4]:void 0;if(this._shouldLog(e)){var a;_=d({logLevel:e,message:t,args:r,opts:_}),s(n=n||_.method),_.total=this.getTotal(),_.delta=this.getDelta(),this._deltaTs=S();var o=_.tag||_.message;if(_.once){if(f[o])return I;f[o]=S()}return t=function(e,t,n){if("string"==typeof t){var r=n.time?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=Math.max(t-e.length,0);return"".concat(" ".repeat(n)).concat(e)}((o=n.total)<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")):"";t=n.time?"".concat(e,": ").concat(r," ").concat(t):"".concat(e,": ").concat(t),E=t,_=n.color,a=n.background,A||"string"!=typeof E||(_&&(_=u(_),E="[".concat(_,"m").concat(E,"[39m")),a&&(_=u(a),E="[".concat(a+10,"m").concat(E,"[49m"))),t=E}var E,_,a;var o;return t}(this.id,_.message,_),(a=n).bind.apply(a,[console,t].concat(E(_.args)))}return I}},{key:"level",set:function(e){this.setLevel(e)},get:function(){return this.getLevel()}},{key:"priority",set:function(e){this.level=e},get:function(){return this.level}}]),e}();function M(e){if(!e)return 0;var t;switch(Object(r.a)(e)){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return s(Number.isFinite(t)&&t>=0),t}function d(e){var t=e.logLevel,n=e.message;e.logLevel=M(t);for(var E=e.args?Array.from(e.args):[];E.length&&E.shift()!==n;);switch(e.args=E,Object(r.a)(t)){case"string":case"function":void 0!==n&&E.unshift(n),e.message=t;break;case"object":Object.assign(e,t)}"function"==typeof e.message&&(e.message=e.message());var _=Object(r.a)(e.message);return s("string"===_||"object"===_),Object.assign(e,e.opts)}function B(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}function P(e){for(const t in e)return!1;return!0}function D(e,t){if(e===t)return!0;const n=Array.isArray(e)||ArrayBuffer.isView(e),r=Array.isArray(t)||ArrayBuffer.isView(t);if(n&&r&&e.length===t.length){for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}return!1}function b(e){if(e.canvas&&e.luma){const{clientWidth:t}=e.luma.canvasSizeInfo;return t?e.drawingBufferWidth/t:1}return 1}function U(e,t,n=!0){return function(e,t,n,r,E){const _=h(e[0],t,n);let a=G(e[1],t,r,E),o=h(e[0]+1,t,n);const i=o===n-1?o:o-1;let A;o=G(e[1]+1,t,r,E),E?(A=a,a=o=0===o?o:o+1):A=o===r-1?o:o-1;return{x:_,y:a,width:Math.max(i-_+1,1),height:Math.max(A-a+1,1)}}(t,b(e),e.drawingBufferWidth,e.drawingBufferHeight,n)}function g(e){const t="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(e)?e<=0?1:e:e?t:1}function h(e,t,n){return Math.min(Math.round(e*t),n-1)}function G(e,t,n,r){return r?Math.max(0,n-1-Math.round(e*t)):Math.min(Math.round(e*t),n-1)}F.VERSION=i;function p(e){return Boolean(e&&Number.isFinite(e._version))}function y(e){return Boolean(e&&2===e._version)}n.d(t,"i",function(){return v}),n.d(t,"a",function(){return B}),n.d(t,"d",function(){return D}),n.d(t,"f",function(){return P}),n.d(t,"b",function(){return U}),n.d(t,"c",function(){return b}),n.d(t,"e",function(){return g}),n.d(t,"g",function(){return p}),n.d(t,"h",function(){return y});const v=new F({id:"luma.gl"})},function(e,t,n){"use strict";function r(e){return(r="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(e){return(E="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return E})},function(e,t,n){e.exports=n(23)},function(e,t,n){"use strict";n.d(t,"c",function(){return _}),n.d(t,"e",function(){return R}),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return N});var r=n(0),E=n(1);const _={[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},a=(e,t,n)=>t?e.enable(n):e.disable(n),o=(e,t,n)=>e.hint(n,t),i=(e,t,n)=>e.pixelStorei(n,t);function A(e){return Array.isArray(e)||ArrayBuffer.isView(e)}const R={[r.a.BLEND]:a,[r.a.BLEND_COLOR]:(e,t)=>e.blendColor(...t),[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,t)=>e.clearColor(...t),[r.a.COLOR_WRITEMASK]:(e,t)=>e.colorMask(...t),[r.a.CULL_FACE]:a,[r.a.CULL_FACE_MODE]:(e,t)=>e.cullFace(t),[r.a.DEPTH_TEST]:a,[r.a.DEPTH_CLEAR_VALUE]:(e,t)=>e.clearDepth(t),[r.a.DEPTH_FUNC]:(e,t)=>e.depthFunc(t),[r.a.DEPTH_RANGE]:(e,t)=>e.depthRange(...t),[r.a.DEPTH_WRITEMASK]:(e,t)=>e.depthMask(t),[r.a.DITHER]:a,[r.a.FRAGMENT_SHADER_DERIVATIVE_HINT]:o,[r.a.FRAMEBUFFER_BINDING]:(e,t)=>{const n=Object(E.h)(e)?r.a.DRAW_FRAMEBUFFER:r.a.FRAMEBUFFER;return e.bindFramebuffer(n,t)},[r.a.FRONT_FACE]:(e,t)=>e.frontFace(t),[r.a.GENERATE_MIPMAP_HINT]:o,[r.a.LINE_WIDTH]:(e,t)=>e.lineWidth(t),[r.a.POLYGON_OFFSET_FILL]:a,[r.a.POLYGON_OFFSET_FACTOR]:"polygonOffset",[r.a.POLYGON_OFFSET_UNITS]:"polygonOffset",[r.a.RASTERIZER_DISCARD]:a,[r.a.SAMPLE_COVERAGE_VALUE]:"sampleCoverage",[r.a.SAMPLE_COVERAGE_INVERT]:"sampleCoverage",[r.a.SCISSOR_TEST]:a,[r.a.SCISSOR_BOX]:(e,t)=>e.scissor(...t),[r.a.STENCIL_TEST]:a,[r.a.STENCIL_CLEAR_VALUE]:(e,t)=>e.clearStencil(t),[r.a.STENCIL_WRITEMASK]:(e,t)=>e.stencilMaskSeparate(r.a.FRONT,t),[r.a.STENCIL_BACK_WRITEMASK]:(e,t)=>e.stencilMaskSeparate(r.a.BACK,t),[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,t)=>e.viewport(...t),[r.a.PACK_ALIGNMENT]:i,[r.a.UNPACK_ALIGNMENT]:i,[r.a.UNPACK_FLIP_Y_WEBGL]:i,[r.a.UNPACK_PREMULTIPLY_ALPHA_WEBGL]:i,[r.a.UNPACK_COLORSPACE_CONVERSION_WEBGL]:i,[r.a.PACK_ROW_LENGTH]:i,[r.a.PACK_SKIP_PIXELS]:i,[r.a.PACK_SKIP_ROWS]:i,[r.a.READ_FRAMEBUFFER_BINDING]:(e,t)=>e.bindFramebuffer(r.a.READ_FRAMEBUFFER,t),[r.a.UNPACK_ROW_LENGTH]:i,[r.a.UNPACK_IMAGE_HEIGHT]:i,[r.a.UNPACK_SKIP_PIXELS]:i,[r.a.UNPACK_SKIP_ROWS]:i,[r.a.UNPACK_SKIP_IMAGES]:i,framebuffer:(e,t)=>{const n=t&&"handle"in t?t.handle:t;return e.bindFramebuffer(r.a.FRAMEBUFFER,n)},blend:(e,t)=>t?e.enable(r.a.BLEND):e.disable(r.a.BLEND),blendColor:(e,t)=>e.blendColor(...t),blendEquation:(e,t)=>{t=A(t)?t:[t,t],e.blendEquationSeparate(...t)},blendFunc:(e,t)=>{t=A(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(r.a.CULL_FACE):e.disable(r.a.CULL_FACE),cullFace:(e,t)=>e.cullFace(t),depthTest:(e,t)=>t?e.enable(r.a.DEPTH_TEST):e.disable(r.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(r.a.DITHER):e.disable(r.a.DITHER),derivativeHint:(e,t)=>{e.hint(r.a.FRAGMENT_SHADER_DERIVATIVE_HINT,t)},frontFace:(e,t)=>e.frontFace(t),mipmapHint:(e,t)=>e.hint(r.a.GENERATE_MIPMAP_HINT,t),lineWidth:(e,t)=>e.lineWidth(t),polygonOffsetFill:(e,t)=>t?e.enable(r.a.POLYGON_OFFSET_FILL):e.disable(r.a.POLYGON_OFFSET_FILL),polygonOffset:(e,t)=>e.polygonOffset(...t),sampleCoverage:(e,t)=>e.sampleCoverage(...t),scissorTest:(e,t)=>t?e.enable(r.a.SCISSOR_TEST):e.disable(r.a.SCISSOR_TEST),scissor:(e,t)=>e.scissor(...t),stencilTest:(e,t)=>t?e.enable(r.a.STENCIL_TEST):e.disable(r.a.STENCIL_TEST),stencilMask:(e,t)=>{t=A(t)?t:[t,t];const[n,E]=t;e.stencilMaskSeparate(r.a.FRONT,n),e.stencilMaskSeparate(r.a.BACK,E)},stencilFunc:(e,t)=>{t=A(t)&&3===t.length?[...t,...t]:t;const[n,E,_,a,o,i]=t;e.stencilFuncSeparate(r.a.FRONT,n,E,_),e.stencilFuncSeparate(r.a.BACK,a,o,i)},stencilOp:(e,t)=>{t=A(t)&&3===t.length?[...t,...t]:t;const[n,E,_,a,o,i]=t;e.stencilOpSeparate(r.a.FRONT,n,E,_),e.stencilOpSeparate(r.a.BACK,a,o,i)},viewport:(e,t)=>e.viewport(...t)};function T(e,t,n){return void 0!==t[e]?t[e]:n[e]}const c={blendEquation:(e,t,n)=>e.blendEquationSeparate(T(r.a.BLEND_EQUATION_RGB,t,n),T(r.a.BLEND_EQUATION_ALPHA,t,n)),blendFunc:(e,t,n)=>e.blendFuncSeparate(T(r.a.BLEND_SRC_RGB,t,n),T(r.a.BLEND_DST_RGB,t,n),T(r.a.BLEND_SRC_ALPHA,t,n),T(r.a.BLEND_DST_ALPHA,t,n)),polygonOffset:(e,t,n)=>e.polygonOffset(T(r.a.POLYGON_OFFSET_FACTOR,t,n),T(r.a.POLYGON_OFFSET_UNITS,t,n)),sampleCoverage:(e,t,n)=>e.sampleCoverage(T(r.a.SAMPLE_COVERAGE_VALUE,t,n),T(r.a.SAMPLE_COVERAGE_INVERT,t,n)),stencilFuncFront:(e,t,n)=>e.stencilFuncSeparate(r.a.FRONT,T(r.a.STENCIL_FUNC,t,n),T(r.a.STENCIL_REF,t,n),T(r.a.STENCIL_VALUE_MASK,t,n)),stencilFuncBack:(e,t,n)=>e.stencilFuncSeparate(r.a.BACK,T(r.a.STENCIL_BACK_FUNC,t,n),T(r.a.STENCIL_BACK_REF,t,n),T(r.a.STENCIL_BACK_VALUE_MASK,t,n)),stencilOpFront:(e,t,n)=>e.stencilOpSeparate(r.a.FRONT,T(r.a.STENCIL_FAIL,t,n),T(r.a.STENCIL_PASS_DEPTH_FAIL,t,n),T(r.a.STENCIL_PASS_DEPTH_PASS,t,n)),stencilOpBack:(e,t,n)=>e.stencilOpSeparate(r.a.BACK,T(r.a.STENCIL_BACK_FAIL,t,n),T(r.a.STENCIL_BACK_PASS_DEPTH_FAIL,t,n),T(r.a.STENCIL_BACK_PASS_DEPTH_PASS,t,n))},u={enable:(e,t)=>e({[t]:!0}),disable:(e,t)=>e({[t]:!1}),pixelStorei:(e,t,n)=>e({[t]:n}),hint:(e,t,n)=>e({[t]:n}),bindFramebuffer:(e,t,n)=>{switch(t){case r.a.FRAMEBUFFER:return e({[r.a.DRAW_FRAMEBUFFER_BINDING]:n,[r.a.READ_FRAMEBUFFER_BINDING]:n});case r.a.DRAW_FRAMEBUFFER:return e({[r.a.DRAW_FRAMEBUFFER_BINDING]:n});case r.a.READ_FRAMEBUFFER:return e({[r.a.READ_FRAMEBUFFER_BINDING]:n});default:return null}},blendColor:(e,t,n,E,_)=>e({[r.a.BLEND_COLOR]:new Float32Array([t,n,E,_])}),blendEquation:(e,t)=>e({[r.a.BLEND_EQUATION_RGB]:t,[r.a.BLEND_EQUATION_ALPHA]:t}),blendEquationSeparate:(e,t,n)=>e({[r.a.BLEND_EQUATION_RGB]:t,[r.a.BLEND_EQUATION_ALPHA]:n}),blendFunc:(e,t,n)=>e({[r.a.BLEND_SRC_RGB]:t,[r.a.BLEND_DST_RGB]:n,[r.a.BLEND_SRC_ALPHA]:t,[r.a.BLEND_DST_ALPHA]:n}),blendFuncSeparate:(e,t,n,E,_)=>e({[r.a.BLEND_SRC_RGB]:t,[r.a.BLEND_DST_RGB]:n,[r.a.BLEND_SRC_ALPHA]:E,[r.a.BLEND_DST_ALPHA]:_}),clearColor:(e,t,n,E,_)=>e({[r.a.COLOR_CLEAR_VALUE]:new Float32Array([t,n,E,_])}),clearDepth:(e,t)=>e({[r.a.DEPTH_CLEAR_VALUE]:t}),clearStencil:(e,t)=>e({[r.a.STENCIL_CLEAR_VALUE]:t}),colorMask:(e,t,n,E,_)=>e({[r.a.COLOR_WRITEMASK]:[t,n,E,_]}),cullFace:(e,t)=>e({[r.a.CULL_FACE_MODE]:t}),depthFunc:(e,t)=>e({[r.a.DEPTH_FUNC]:t}),depthRange:(e,t,n)=>e({[r.a.DEPTH_RANGE]:new Float32Array([t,n])}),depthMask:(e,t)=>e({[r.a.DEPTH_WRITEMASK]:t}),frontFace:(e,t)=>e({[r.a.FRONT_FACE]:t}),lineWidth:(e,t)=>e({[r.a.LINE_WIDTH]:t}),polygonOffset:(e,t,n)=>e({[r.a.POLYGON_OFFSET_FACTOR]:t,[r.a.POLYGON_OFFSET_UNITS]:n}),sampleCoverage:(e,t,n)=>e({[r.a.SAMPLE_COVERAGE_VALUE]:t,[r.a.SAMPLE_COVERAGE_INVERT]:n}),scissor:(e,t,n,E,_)=>e({[r.a.SCISSOR_BOX]:new Int32Array([t,n,E,_])}),stencilMask:(e,t)=>e({[r.a.STENCIL_WRITEMASK]:t,[r.a.STENCIL_BACK_WRITEMASK]:t}),stencilMaskSeparate:(e,t,n)=>e({[t===r.a.FRONT?r.a.STENCIL_WRITEMASK:r.a.STENCIL_BACK_WRITEMASK]:n}),stencilFunc:(e,t,n,E)=>e({[r.a.STENCIL_FUNC]:t,[r.a.STENCIL_REF]:n,[r.a.STENCIL_VALUE_MASK]:E,[r.a.STENCIL_BACK_FUNC]:t,[r.a.STENCIL_BACK_REF]:n,[r.a.STENCIL_BACK_VALUE_MASK]:E}),stencilFuncSeparate:(e,t,n,E,_)=>e({[t===r.a.FRONT?r.a.STENCIL_FUNC:r.a.STENCIL_BACK_FUNC]:n,[t===r.a.FRONT?r.a.STENCIL_REF:r.a.STENCIL_BACK_REF]:E,[t===r.a.FRONT?r.a.STENCIL_VALUE_MASK:r.a.STENCIL_BACK_VALUE_MASK]:_}),stencilOp:(e,t,n,E)=>e({[r.a.STENCIL_FAIL]:t,[r.a.STENCIL_PASS_DEPTH_FAIL]:n,[r.a.STENCIL_PASS_DEPTH_PASS]:E,[r.a.STENCIL_BACK_FAIL]:t,[r.a.STENCIL_BACK_PASS_DEPTH_FAIL]:n,[r.a.STENCIL_BACK_PASS_DEPTH_PASS]:E}),stencilOpSeparate:(e,t,n,E,_)=>e({[t===r.a.FRONT?r.a.STENCIL_FAIL:r.a.STENCIL_BACK_FAIL]:n,[t===r.a.FRONT?r.a.STENCIL_PASS_DEPTH_FAIL:r.a.STENCIL_BACK_PASS_DEPTH_FAIL]:E,[t===r.a.FRONT?r.a.STENCIL_PASS_DEPTH_PASS:r.a.STENCIL_BACK_PASS_DEPTH_PASS]:_}),viewport:(e,t,n,E,_)=>e({[r.a.VIEWPORT]:[t,n,E,_]})},s=(e,t)=>e.isEnabled(t),N={[r.a.BLEND]:s,[r.a.CULL_FACE]:s,[r.a.DEPTH_TEST]:s,[r.a.DITHER]:s,[r.a.POLYGON_OFFSET_FILL]:s,[r.a.SAMPLE_ALPHA_TO_COVERAGE]:s,[r.a.SAMPLE_COVERAGE]:s,[r.a.SCISSOR_TEST]:s,[r.a.STENCIL_TEST]:s,[r.a.RASTERIZER_DISCARD]:s}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return A}),n.d(t,"c",function(){return R}),n.d(t,"b",function(){return T});var r=n(4),E=n(6),_=n(1);function a(e,t){const n=e[t].bind(e);e[t]=function(...t){const r=t[0];return r in e.state.cache||(e.state.cache[r]=n(...t)),e.state.enable?e.state.cache[r]:n(...t)},Object.defineProperty(e[t],"name",{value:`${t}-from-cache`,configurable:!1})}function o(e,t,n){const r=e[t].bind(e);e[t]=function(...t){const{valueChanged:E,oldValue:_}=n(e.state._updateCache,...t);return E&&r(...t),_},Object.defineProperty(e[t],"name",{value:`${t}-to-cache`,configurable:!1})}class i{constructor(e,{copyState:t=!1,log:n=(()=>{})}={}){this.gl=e,this.program=null,this.stateStack=[],this.enable=!0,this.cache=t?Object(E.a)(e):Object.assign({},r.c),this.log=n,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(e={}){this.stateStack.push({})}pop(){Object(_.a)(this.stateStack.length>0);const e=this.stateStack[this.stateStack.length-1];Object(E.c)(this.gl,e,this.cache),this.stateStack.pop()}_updateCache(e){let t,n=!1;const r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const E in e){Object(_.a)(void 0!==E);const a=e[E],o=this.cache[E];Object(_.d)(a,o)||(n=!0,t=o,!r||E in r||(r[E]=o),this.cache[E]=a)}return{valueChanged:n,oldValue:t}}}function A(t,{enable:n=!0,copyState:E}={}){if(Object(_.a)(void 0!==E),!t.state){const _=void 0!==e?e:window;_.polyfillContext&&_.polyfillContext(t),t.state=new i(t,{copyState:E,enable:n}),function(e){const t=e.useProgram.bind(e);e.useProgram=function(n){e.state.program!==n&&(t(n),e.state.program=n)}}(t);for(const e in r.b){o(t,e,r.b[e])}a(t,"getParameter"),a(t,"isEnabled")}return t.state.enable=n,t}function R(e){e.state||A(e,{copyState:!1}),e.state.push()}function T(e){Object(_.a)(e.state),e.state.pop()}}).call(this,n(10))},function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return A});var r=n(4),E=n(5),_=n(1);function a(e,t){if(Object(_.a)(Object(_.g)(e),"setParameters requires a WebGL context"),Object(_.f)(t))return;const n={};for(const E in t){const _=Number(E),a=r.e[E];a&&("string"==typeof a?n[a]=!0:a(e,t[E],_))}const E=e.state&&e.state.cache;if(E)for(const _ in n){(0,r.a[_])(e,t,E)}}function o(e,t){if("number"==typeof(t=t||r.c)){const n=t,E=r.d[n];return E?E(e,n):e.getParameter(n)}const n=Array.isArray(t)?t:Object.keys(t),E={};for(const t of n){const n=r.d[t];E[t]=n?n(e,Number(t)):e.getParameter(Number(t))}return E}function i(e){a(e,r.c)}function A(e,t,n){if(Object(_.f)(t))return n(e);const{nocatch:r=!0}=t;let o;if(Object(E.c)(e),a(e,t),r)o=n(e),Object(E.b)(e);else try{o=n(e)}finally{Object(E.b)(e)}return o}},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",function(){return a}),n.d(t,"a",function(){return o});var E=n(2),_={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":Object(E.a)(r))&&r},a=_.window||_.self||_.global,o=_.process||{};console}).call(this,n(10),n(8))},function(e,t){var n,r,E=e.exports={};function _(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===_||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:_}catch(e){n=_}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var i,A=[],R=!1,T=-1;function c(){R&&i&&(R=!1,i.length?A=i.concat(A):T=-1,A.length&&u())}function u(){if(!R){var e=o(c);R=!0;for(var t=A.length;t;){for(i=A,A=[];++T<t;)i&&i[T].run();T=-1,t=A.length}i=null,R=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function N(){}E.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];A.push(new s(e,t)),1!==A.length||R||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={},E.on=N,E.addListener=N,E.once=N,E.off=N,E.removeListener=N,E.removeAllListeners=N,E.emit=N,E.prependListener=N,E.prependOnceListener=N,E.listeners=function(e){return[]},E.binding=function(e){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(e){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(0),E=n(1);const _=e=>Object(E.h)(e)?void 0:0,a={[r.a.READ_BUFFER]:e=>Object(E.h)(e)?void 0:r.a.COLOR_ATTACHMENT0,35723:e=>Object(E.h)(e)?void 0:4352,[r.a.RASTERIZER_DISCARD]:_,[r.a.SAMPLES]:_,36795:(e,t)=>{const n=Object(E.h)(e)?e.getExtension("EXT_disjoint_timer_query_webgl2"):e.getExtension("EXT_disjoint_timer_query");return n&&n.GPU_DISJOINT_EXT?t(n.GPU_DISJOINT_EXT):0},37445:(e,t)=>{const n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_VENDOR_WEBGL||r.a.VENDOR)},37446:(e,t)=>{const n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_RENDERER_WEBGL||r.a.RENDERER)},34047:(e,t)=>{const n=e.luma.extensions.EXT_texture_filter_anisotropic;return n?t(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},[r.a.MAX_3D_TEXTURE_SIZE]:_,[r.a.MAX_ARRAY_TEXTURE_LAYERS]:_,[r.a.MAX_CLIENT_WAIT_TIMEOUT_WEBGL]:_,[r.a.MAX_COLOR_ATTACHMENTS]:(e,t)=>{if(!Object(E.h)(e)){const n=e.getExtension("WEBGL_draw_buffers");return n?t(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}},[r.a.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS]:_,[r.a.MAX_COMBINED_UNIFORM_BLOCKS]:_,[r.a.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS]:_,[r.a.MAX_DRAW_BUFFERS]:e=>{if(!Object(E.h)(e)){const t=e.getExtension("WEBGL_draw_buffers");return t?t.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]:_,[r.a.MAX_FRAGMENT_UNIFORM_BLOCKS]:_,[r.a.MAX_FRAGMENT_UNIFORM_COMPONENTS]:_,[r.a.MAX_SAMPLES]:_,[r.a.MAX_SERVER_WAIT_TIMEOUT]:_,[r.a.MAX_TEXTURE_LOD_BIAS]:_,[r.a.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS]:_,[r.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS]:_,[r.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS]:_,[r.a.MAX_UNIFORM_BLOCK_SIZE]:_,[r.a.MAX_UNIFORM_BUFFER_BINDINGS]:_,[r.a.MAX_VARYING_COMPONENTS]:_,[r.a.MAX_VERTEX_OUTPUT_COMPONENTS]:_,[r.a.MAX_VERTEX_UNIFORM_BLOCKS]:_,[r.a.MAX_VERTEX_UNIFORM_COMPONENTS]:_,[r.a.MIN_PROGRAM_TEXEL_OFFSET]:_,[r.a.MAX_PROGRAM_TEXEL_OFFSET]:_,[r.a.UNIFORM_BUFFER_OFFSET_ALIGNMENT]:_};n.d(t,"b",function(){return o}),n.d(t,"a",function(){return i});const o={OES_vertex_array_object:{meta:{suffix:"OES"},createVertexArray:()=>{Object(E.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(E.a)(0===t,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},WEBGL_draw_buffers:{meta:{suffix:"WEBGL"},drawBuffers:()=>{Object(E.a)(!1)}},EXT_disjoint_timer_query:{meta:{suffix:"EXT"},createQuery:()=>{Object(E.a)(!1)},deleteQuery:()=>{Object(E.a)(!1)},beginQuery:()=>{Object(E.a)(!1)},endQuery:()=>{},getQuery(e,t){return this.getQueryObject(e,t)},getQueryParameter(e,t){return this.getQueryObject(e,t)},getQueryObject:()=>{}}},i={readBuffer:(e,t,n)=>{Object(E.h)(e)&&t(n)},getVertexAttrib:(e,t,n,_)=>{const{webgl2:a,ext:o}=function(e,t){return{webgl2:Object(E.h)(e),ext:e.getExtension(t)}}(e,"ANGLE_instanced_arrays");let i;switch(_){case r.a.VERTEX_ATTRIB_ARRAY_INTEGER:i=!!a&&void 0;break;case r.a.VERTEX_ATTRIB_ARRAY_DIVISOR:i=a||o?void 0:0}return void 0!==i?i:t(n,_)},getProgramParameter:(e,t,n,_)=>{if(!Object(E.h)(e))switch(_){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 t(n,_)},getInternalformatParameter:(e,t,n,_,a)=>{if(!Object(E.h)(e))switch(a){case r.a.SAMPLES:return new Int32Array([0])}return e.getInternalformatParameter(n,_,a)},getTexParameter(e,t,n,E){switch(E){case r.a.TEXTURE_MAX_ANISOTROPY_EXT:const{extensions:t}=e.luma,n=t.EXT_texture_filter_anisotropic;E=n&&n.TEXTURE_MAX_ANISOTROPY_EXT||r.a.TEXTURE_MAX_ANISOTROPY_EXT}return t(n,E)},getParameter:function(e,t,n){const r=a[n],E="function"==typeof r?r(e,t,n):r;return void 0!==E?E:t(n)},hint:(e,t,n,r)=>t(n,r)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",function(){return E})},function(e,t){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 r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";(function(e){var r=n(11);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){if("undefined"!=typeof window&&"object"===(0,E.default)(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===(0,E.default)(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":(0,E.default)(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=t||n;if(r&&r.indexOf("Electron")>=0)return!0;return!1};var E=r(n(14))}).call(this,n(8))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return a});var r=n(19),E=n(1),_=n(9);function a(e){return e.luma=e.luma||{},e.luma.polyfilled||(Object(r.a)(e),function(e){e.luma.extensions={};const t=e.getSupportedExtensions()||[];for(const n of t)e.luma[n]=e.getExtension(n)}(e),function(e,t){for(const n of Object.getOwnPropertyNames(t))"overrides"!==n&&o(e,{extension:n,target:e.luma,target2:e})}(e,_.b),function(e,{target:t,target2:n}){Object.keys(_.a).forEach(r=>{if("function"==typeof _.a[r]){const E=e[r]?e[r].bind(e):()=>{},a=_.a[r].bind(null,e,E);t[r]=a,n[r]=a}})}(e,{target:e.luma,target2:e}),e.luma.polyfilled=!0),e}function o(e,{extension:t,target:n,target2:r}){const a=_.b[t];Object(E.a)(a);const{meta:o={}}=a,{suffix:i=""}=o,A=e.getExtension(t);for(const t of Object.keys(a)){const E=`${t}${i}`;let _=null;"meta"===t||"function"==typeof e[t]||(A&&"function"==typeof A[E]?_=(...e)=>A[E](...e):"function"==typeof a[t]&&(_=a[t].bind(n))),_&&(n[t]=_,r[t]=_)}}(void 0!==e?e:window).polyfillContext=a}).call(this,n(10))},function(e,t,n){"use strict";(function(e,r){var E=n(11);Object.defineProperty(t,"__esModule",{value:!0}),t.console=t.process=t.document=t.global=t.window=t.self=void 0;var _=E(n(14)),a={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":(0,_.default)(r))&&r},o=a.self||a.window||a.global;t.self=o;var i=a.window||a.self||a.global;t.window=i;var A=a.global||a.self||a.window;t.global=A;var R=a.document||{};t.document=R;var T=a.process||{};t.process=T;var c=console;t.console=c}).call(this,n(10),n(8))},function(e,t,n){"use strict";(function(e){var r=n(11);Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.isBrowserMainThread=function(){return a()&&"undefined"!=typeof document};var E=r(n(14)),_=r(n(15));function a(){return!("object"===(void 0===e?"undefined":(0,E.default)(e))&&"[object process]"===String(e)&&!e.browser)||(0,_.default)()}}).call(this,n(8))},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(3);const E={};function _(e,t){var n;E[e]=!0,void 0!==t&&(n=t,r.global.console&&r.global.console.error&&r.global.console.error(n))}const a=function e(t){const n=t.gl;this.ext=t,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(t.maxVertexAttribs);for(let t=0;t<this.attribs.length;t++){const r=new e.VertexAttrib(n);this.attribs[t]=r}this.maxAttrib=0};(a.VertexAttrib=function(e){this.enabled=!1,this.buffer=null,this.size=4,this.type=e.FLOAT,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()}).prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};const o=function(e){const t=this;this.gl=e,function(e){const t=e.getError;e.getError=function(){let n;do{(n=t.apply(e))!==e.NO_ERROR&&(E[n]=!0)}while(n!==e.NO_ERROR);for(n in E)if(E[n])return delete E[n],parseInt(n,10);return e.NO_ERROR}}(e);const n=this.original={getParameter:e.getParameter,enableVertexAttribArray:e.enableVertexAttribArray,disableVertexAttribArray:e.disableVertexAttribArray,bindBuffer:e.bindBuffer,getVertexAttrib:e.getVertexAttrib,vertexAttribPointer:e.vertexAttribPointer};e.getParameter=function(e){return e===t.VERTEX_ARRAY_BINDING_OES?t.currentVertexArrayObject===t.defaultVertexArrayObject?null:t.currentVertexArrayObject:n.getParameter.apply(this,arguments)},e.enableVertexAttribArray=function(e){const r=t.currentVertexArrayObject;return r.maxAttrib=Math.max(r.maxAttrib,e),r.attribs[e].enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},e.disableVertexAttribArray=function(e){const r=t.currentVertexArrayObject;return r.maxAttrib=Math.max(r.maxAttrib,e),r.attribs[e].enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},e.bindBuffer=function(r,E){switch(r){case e.ARRAY_BUFFER:t.currentArrayBuffer=E;break;case e.ELEMENT_ARRAY_BUFFER:t.currentVertexArrayObject.elementArrayBuffer=E}return n.bindBuffer.apply(this,arguments)},e.getVertexAttrib=function(r,E){const _=t.currentVertexArrayObject.attribs[r];switch(E){case e.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:return _.buffer;case e.VERTEX_ATTRIB_ARRAY_ENABLED:return _.enabled;case e.VERTEX_ATTRIB_ARRAY_SIZE:return _.size;case e.VERTEX_ATTRIB_ARRAY_STRIDE:return _.stride;case e.VERTEX_ATTRIB_ARRAY_TYPE:return _.type;case e.VERTEX_ATTRIB_ARRAY_NORMALIZED:return _.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},e.vertexAttribPointer=function(e,r,E,_,a,o){const i=t.currentVertexArrayObject;i.maxAttrib=Math.max(i.maxAttrib,e);const A=i.attribs[e];return A.buffer=t.currentArrayBuffer,A.size=r,A.type=E,A.normalized=_,A.stride=a,A.offset=o,A.recache(),n.vertexAttribPointer.apply(this,arguments)},e.instrumentExtension&&e.instrumentExtension(this,"OES_vertex_array_object"),e.canvas&&e.canvas.addEventListener("webglcontextrestored",()=>{!function(e){r.global.console&&r.global.console.log&&r.global.console.log(e)}("OESVertexArrayObject emulation library context restored"),t.reset_()},!0),this.reset_()};function i(e){if("function"==typeof e.createVertexArray)return;const t=e.getSupportedExtensions;e.getSupportedExtensions=function(){const e=t.call(this)||[];return e.indexOf("OES_vertex_array_object")<0&&e.push("OES_vertex_array_object"),e};const n=e.getExtension;e.getExtension=function(t){const r=n.call(this,t);return r||("OES_vertex_array_object"!==t?null:(e.__OESVertexArrayObject||(this.__OESVertexArrayObject=new o(this)),this.__OESVertexArrayObject))}}o.prototype.VERTEX_ARRAY_BINDING_OES=34229,o.prototype.reset_=function(){if(void 0!==this.vertexArrayObjects)for(let e=0;e<this.vertexArrayObjects.length;++e)this.vertexArrayObjects.isAlive=!1;const e=this.gl;this.maxVertexAttribs=e.getParameter(e.MAX_VERTEX_ATTRIBS),this.defaultVertexArrayObject=new a(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)},o.prototype.createVertexArrayOES=function(){const e=new a(this);return this.vertexArrayObjects.push(e),e},o.prototype.deleteVertexArrayOES=function(e){e.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(e),1),this.currentVertexArrayObject===e&&this.bindVertexArrayOES(null)},o.prototype.isVertexArrayOES=function(e){return!!(e&&e instanceof a&&e.hasBeenBound&&e.ext===this)},o.prototype.bindVertexArrayOES=function(e){const t=this.gl;if(e&&!e.isAlive)return void _(t.INVALID_OPERATION,"bindVertexArrayOES: attempt to bind deleted arrayObject");const n=this.original,r=this.currentVertexArrayObject;this.currentVertexArrayObject=e||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;const E=this.currentVertexArrayObject;if(r===E)return;r&&E.elementArrayBuffer===r.elementArrayBuffer||n.bindBuffer.call(t,t.ELEMENT_ARRAY_BUFFER,E.elementArrayBuffer);let a=this.currentArrayBuffer;const o=Math.max(r?r.maxAttrib:0,E.maxAttrib);for(let e=0;e<=o;e++){const _=E.attribs[e],o=r?r.attribs[e]:null;if(r&&_.enabled===o.enabled||(_.enabled?n.enableVertexAttribArray.call(t,e):n.disableVertexAttribArray.call(t,e)),_.enabled){let E=!1;r&&_.buffer===o.buffer||(a!==_.buffer&&(n.bindBuffer.call(t,t.ARRAY_BUFFER,_.buffer),a=_.buffer),E=!0),(E||_.cached!==o.cached)&&n.vertexAttribPointer.call(t,e,_.size,_.type,_.normalized,_.stride,_.offset)}}this.currentArrayBuffer!==a&&n.bindBuffer.call(t,t.ARRAY_BUFFER,this.currentArrayBuffer)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var r=n(2),E=n(21);function _(){return!("object"===(void 0===e?"undefined":Object(r.a)(e))&&"[object process]"===String(e)&&!e.browser)||Object(E.a)()}}).call(this,n(8))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return E});var r=n(2);function E(t){if("undefined"!=typeof window&&"object"===Object(r.a)(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===Object(r.a)(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":Object(r.a)(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,E=t||n;return!!(E&&E.indexOf("Electron")>=0)}}).call(this,n(8))},function(e,t,n){(function(t){const r=n(27),E="undefined"==typeof window?t:window;E.loaders=E.luma||{},e.exports=Object.assign(E.luma,r)}).call(this,n(10))},function(e,t,n){"use strict";var r=n(11),E=n(24);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"self",{enumerable:!0,get:function(){return _.self}}),Object.defineProperty(t,"window",{enumerable:!0,get:function(){return _.window}}),Object.defineProperty(t,"global",{enumerable:!0,get:function(){return _.global}}),Object.defineProperty(t,"document",{enumerable:!0,get:function(){return _.document}}),Object.defineProperty(t,"process",{enumerable:!0,get:function(){return _.process}}),Object.defineProperty(t,"console",{enumerable:!0,get:function(){return _.console}}),Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"isBrowserMainThread",{enumerable:!0,get:function(){return a.isBrowserMainThread}}),Object.defineProperty(t,"getBrowser",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"isMobile",{enumerable:!0,get:function(){return o.isMobile}}),Object.defineProperty(t,"isElectron",{enumerable:!0,get:function(){return i.default}});var _=n(17),a=E(n(18)),o=E(n(25)),i=r(n(15))},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}},function(e,t,n){"use strict";var r=n(11);Object.defineProperty(t,"__esModule",{value:!0}),t.isMobile=function(){return void 0!==E.window.orientation},t.default=function(e){if(!e&&!(0,_.default)())return"Node";if((0,a.default)(e))return"Electron";var t="undefined"!=typeof navigator?navigator:{},n=e||t.userAgent||"";if(n.indexOf("Edge")>-1)return"Edge";var r=-1!==n.indexOf("MSIE "),o=-1!==n.indexOf("Trident/");if(r||o)return"IE";if(E.window.chrome)return"Chrome";if(E.window.safari)return"Safari";if(E.window.mozInnerScreenX)return"Firefox";return"Unknown"};var E=n(17),_=r(n(18)),a=r(n(15))},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(16),E=n(6),_=n(5),a=n(0),o=n(3),i=n(1);const A=Object(o.isBrowser)(),R=A&&"undefined"!=typeof document,T={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function c(e={}){Object(i.a)(A,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"),e=Object.assign({},T,e);const{width:t,height:n}=e;function r(t){if(e.throwOnError)throw new Error(t);return console.error(t),null}let E;e.onError=r;const{canvas:_}=e;return(E=function(e,t){const{onError:n}=t,r=e=>n(`WebGL context: ${e.statusMessage||"error"}`);e.addEventListener("webglcontextcreationerror",r,!1);const{webgl1:E=!0,webgl2:_=!0}=t;let a=null;_&&(a=(a=a||e.getContext("webgl2",t))||e.getContext("experimental-webgl2",t));E&&(a=(a=a||e.getContext("webgl",t))||e.getContext("experimental-webgl",t));if(e.removeEventListener("webglcontextcreationerror",r,!1),!a)return n(`Failed to create ${_&&!E?"WebGL2":"WebGL"} context`);return a}(function({canvas:e,width:t=800,height:n=600,onError:r}){let E;if("string"==typeof e){const t=R&&"complete"===document.readyState;t||r(`createGLContext called on canvas '${e}' before page was loaded`),E=document.getElementById(e)}else e?E=e:((E=document.createElement("canvas")).id="lumagl-canvas",E.style.width=Number.isFinite(t)?`${t}px`:"100%",E.style.height=Number.isFinite(n)?`${n}px`:"100%",document.body.insertBefore(E,document.body.firstChild));return E}({canvas:_,width:t,height:n,onError:r}),e))?(function(e){const t=Object(i.h)(e)?"WebGL2":"WebGL1",n=s(e),r=n?`(${n.vendor},${n.renderer})`:"",E=e.debug?" debug":"";i.i.info(1,`${t}${E} context ${r}`)()}(E=u(E,e)),E):null}function u(e,t={}){if(!e||e._instrumented)return e;e._version=e._version||function(e){if("undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext)return 2;return 1}(e),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{},t=Object.assign({},T,t);const{manageState:n,debug:r}=t;return n&&Object(_.a)(e,{copyState:!1,log:(...e)=>i.i.log(1,...e)()}),A&&r&&(o.global.makeDebugContext?(e=o.global.makeDebugContext(e,t),i.i.level=Math.max(i.i.level,1)):i.i.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),e._instrumented=!0,e}function s(e){const t=e.getParameter(a.a.VENDOR),n=e.getParameter(a.a.RENDERER),r=e.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&e.getParameter(r.UNMASKED_VENDOR_WEBGL||a.a.VENDOR)||t,renderer:r&&e.getParameter(r.UNMASKED_RENDERER_WEBGL||a.a.RENDERER)||n,vendorMasked:t,rendererMasked:n,version:e.getParameter(a.a.VERSION),shadingLanguageVersion:e.getParameter(a.a.SHADING_LANGUAGE_VERSION)}}function N(e,t={}){if(e.canvas){return void function(e,t,n){let r="width"in n?n.width:e.canvas.clientWidth,E="height"in n?n.height:e.canvas.clientHeight;r&&E||(i.i.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,r=e.canvas.width||1,E=e.canvas.height||1);e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};const _=e.luma.canvasSizeInfo;if(_.clientWidth!==r||_.clientHeight!==E||_.devicePixelRatio!==t){let n=t;const _=Math.floor(r*n),a=Math.floor(E*n);e.canvas.width=_,e.canvas.height=a,e.drawingBufferWidth===_&&e.drawingBufferHeight===a||(i.i.warn("Device pixel ratio clamped")(),n=Math.min(e.drawingBufferWidth/r,e.drawingBufferHeight/E),e.canvas.width=Math.floor(r*n),e.canvas.height=Math.floor(E*n)),Object.assign(e.luma.canvasSizeInfo,{clientWidth:r,clientHeight:E,devicePixelRatio:t})}}(e,Object(i.e)(t.useDevicePixels),t)}const n=e.getExtension("STACKGL_resize_drawingbuffer");n&&"width"in t&&"height"in t&&n.resize(t.width,t.height)}n.d(t,"polyfillContext",function(){return r.a}),n.d(t,"getParameters",function(){return E.a}),n.d(t,"setParameters",function(){return E.c}),n.d(t,"resetParameters",function(){return E.b}),n.d(t,"withParameters",function(){return E.d}),n.d(t,"trackContextState",function(){return _.a}),n.d(t,"pushContextState",function(){return _.c}),n.d(t,"popContextState",function(){return _.b}),n.d(t,"createGLContext",function(){return c}),n.d(t,"resizeGLContext",function(){return N}),n.d(t,"instrumentGLContext",function(){return u}),n.d(t,"getContextDebugInfo",function(){return s}),n.d(t,"log",function(){return i.i}),n.d(t,"cssToDeviceRatio",function(){return i.c}),n.d(t,"cssToDevicePixels",function(){return i.b}),n.d(t,"isWebGL",function(){return i.g}),n.d(t,"isWebGL2",function(){return i.h})}])}); |
@@ -41,3 +41,3 @@ "use strict"; | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
(0, _utils.assert)(isBrowser, "createGLContext on available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"); | ||
(0, _utils.assert)(isBrowser, "createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"); | ||
options = Object.assign({}, CONTEXT_DEFAULTS, options); | ||
@@ -44,0 +44,0 @@ var _options = options, |
@@ -20,3 +20,3 @@ import { global, isBrowser as getIsBrowser } from 'probe.gl/env'; | ||
export function createGLContext(options = {}) { | ||
assert(isBrowser, "createGLContext on available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"); | ||
assert(isBrowser, "createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"); | ||
options = Object.assign({}, CONTEXT_DEFAULTS, options); | ||
@@ -23,0 +23,0 @@ const { |
@@ -21,3 +21,3 @@ import { global, isBrowser as getIsBrowser } from 'probe.gl/env'; | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
assert(isBrowser, "createGLContext on available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"); | ||
assert(isBrowser, "createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"); | ||
options = Object.assign({}, CONTEXT_DEFAULTS, options); | ||
@@ -24,0 +24,0 @@ var _options = options, |
{ | ||
"name": "@luma.gl/gltools", | ||
"version": "8.3.1", | ||
"version": "8.4.0-alpha.1", | ||
"description": "WebGL2 API Polyfills for WebGL1 WebGLRenderingContext", | ||
@@ -32,6 +32,6 @@ "license": "MIT", | ||
"@babel/runtime": "^7.0.0", | ||
"@luma.gl/constants": "8.3.1", | ||
"@luma.gl/constants": "8.4.0-alpha.1", | ||
"probe.gl": "^3.2.1" | ||
}, | ||
"gitHead": "07c443a9de1c2fdd81808c986603a4dd396ecc9b" | ||
"gitHead": "18d75a2f4dedc3d6984fc99b1b1a98ed5b1c2287" | ||
} |
@@ -41,3 +41,3 @@ /* eslint-disable quotes */ | ||
isBrowser, | ||
"createGLContext on available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils" | ||
"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils" | ||
); | ||
@@ -44,0 +44,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
945952
2
+ Added@luma.gl/constants@8.4.0-alpha.1(transitive)
- Removed@luma.gl/constants@8.3.1(transitive)