@mapbox-vue3/env-layers
Version:
Mapbox Vue3 Component Library Env Layers
2 lines • 1.55 MB
JavaScript
(function(po,yn){typeof exports=="object"&&typeof module<"u"?yn(exports,require("vue"),require("@mapbox-vue3/core")):typeof define=="function"&&define.amd?define(["exports","vue","@mapbox-vue3/core"],yn):(po=typeof globalThis<"u"?globalThis:po||self,yn(po.MapboxVue3EnvLayers={},po.Vue,po.MapboxVue3Core))})(this,function(po,yn,If){"use strict";function TE(n,t){for(var i=0;i<t.length;i++){const o=t[i];if(typeof o!="string"&&!Array.isArray(o)){for(const l in o)if(l!=="default"&&!(l in n)){const p=Object.getOwnPropertyDescriptor(o,l);p&&Object.defineProperty(n,l,p.get?p:{enumerable:!0,get:()=>o[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}const bf=(n,t)=>(n.install=i=>{for(const o of[n,...Object.values({})])i.component(o.name,o)},n),Qt={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 zu(n){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(n)}function ME(n,t){if(zu(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,t||"default");if(zu(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}function SE(n){var t=ME(n,"string");return zu(t)=="symbol"?t:t+""}function Z(n,t,i){return(t=SE(t))in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function dy(n){if(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron)return!0;const i=typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent;return!!(i&&i.indexOf("Electron")>=0)}function ea(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process.browser)||dy()}const Cf={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document,process:typeof process=="object"&&process},wf=Cf.window||Cf.self||Cf.global,Qu=Cf.process||{},gy=typeof __VERSION__<"u"?__VERSION__:"untranspiled source";ea();const kd=globalThis;function Ay(n){if(!ea())return"Node";if(dy())return"Electron";const i=(typeof navigator<"u"?navigator:{}).userAgent||"";if(i.indexOf("Edge")>-1)return"Edge";const o=i.indexOf("MSIE ")!==-1,l=i.indexOf("Trident/")!==-1;return o||l?"IE":kd.chrome?"Chrome":kd.safari?"Safari":kd.mozInnerScreenX?"Firefox":"Unknown"}function BE(n){try{const t=window[n],i="__storage_test__";return t.setItem(i,i),t.removeItem(i),t}catch{return null}}class RE{constructor(t,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"sessionStorage";Z(this,"storage",void 0),Z(this,"id",void 0),Z(this,"config",void 0),this.storage=BE(o),this.id=t,this.config=i,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){if(Object.assign(this.config,t),this.storage){const i=JSON.stringify(this.config);this.storage.setItem(this.id,i)}}_loadConfiguration(){let t={};if(this.storage){const i=this.storage.getItem(this.id);t=i?JSON.parse(i):{}}return Object.assign(this.config,t),this}}function PE(n){let t;return n<10?t="".concat(n.toFixed(2),"ms"):n<100?t="".concat(n.toFixed(1),"ms"):n<1e3?t="".concat(n.toFixed(0),"ms"):t="".concat((n/1e3).toFixed(2),"s"),t}function DE(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8;const i=Math.max(t-n.length,0);return"".concat(" ".repeat(i)).concat(n)}function zd(n,t,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:600;const l=n.src.replace(/\(/g,"%28").replace(/\)/g,"%29");n.width>o&&(i=Math.min(i,o/n.width));const p=n.width*i,a=n.height*i,E=["font-size:1px;","padding:".concat(Math.floor(a/2),"px ").concat(Math.floor(p/2),"px;"),"line-height:".concat(a,"px;"),"background:url(".concat(l,");"),"background-size:".concat(p,"px ").concat(a,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),E]}let Tf;(function(n){n[n.BLACK=30]="BLACK",n[n.RED=31]="RED",n[n.GREEN=32]="GREEN",n[n.YELLOW=33]="YELLOW",n[n.BLUE=34]="BLUE",n[n.MAGENTA=35]="MAGENTA",n[n.CYAN=36]="CYAN",n[n.WHITE=37]="WHITE",n[n.BRIGHT_BLACK=90]="BRIGHT_BLACK",n[n.BRIGHT_RED=91]="BRIGHT_RED",n[n.BRIGHT_GREEN=92]="BRIGHT_GREEN",n[n.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",n[n.BRIGHT_BLUE=94]="BRIGHT_BLUE",n[n.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",n[n.BRIGHT_CYAN=96]="BRIGHT_CYAN",n[n.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(Tf||(Tf={}));function my(n){return typeof n=="string"?Tf[n.toUpperCase()]||Tf.WHITE:n}function LE(n,t,i){return!ea&&typeof n=="string"&&(t&&(t=my(t),n="\x1B[".concat(t,"m").concat(n,"\x1B[39m")),i&&(t=my(i),n="\x1B[".concat(i+10,"m").concat(n,"\x1B[49m"))),n}function FE(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["constructor"];const i=Object.getPrototypeOf(n),o=Object.getOwnPropertyNames(i);for(const l of o)typeof n[l]=="function"&&(t.find(p=>l===p)||(n[l]=n[l].bind(n)))}function Mf(n,t){if(!n)throw new Error(t||"Assertion failed")}function Cc(){let n;if(ea&&"performance"in wf){var t,i;n=wf==null||(t=wf.performance)===null||t===void 0||(i=t.now)===null||i===void 0?void 0:i.call(t)}else if("hrtime"in Qu){var o;const l=Qu==null||(o=Qu.hrtime)===null||o===void 0?void 0:o.call(Qu);n=l[0]*1e3+l[1]/1e6}else n=Date.now();return n}const wc={debug:ea&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},NE={enabled:!0,level:0};function No(){}const yy={},_y={once:!0};class Uu{constructor(){let{id:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{id:""};Z(this,"id",void 0),Z(this,"VERSION",gy),Z(this,"_startTs",Cc()),Z(this,"_deltaTs",Cc()),Z(this,"_storage",void 0),Z(this,"userData",{}),Z(this,"LOG_THROTTLE_TIMEOUT",0),this.id=t,this.userData={},this._storage=new RE("__probe-".concat(this.id,"__"),NE),this.timeStamp("".concat(this.id," started")),FE(this),Object.seal(this)}set level(t){this.setLevel(t)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((Cc()-this._startTs).toPrecision(10))}getDelta(){return Number((Cc()-this._deltaTs).toPrecision(10))}set priority(t){this.level=t}get priority(){return this.level}getPriority(){return this.level}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this._storage.setConfiguration({enabled:t}),this}setLevel(t){return this._storage.setConfiguration({level:t}),this}get(t){return this._storage.config[t]}set(t,i){this._storage.setConfiguration({[t]:i})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(t,i){Mf(t,i)}warn(t){return this._getLogFunction(0,t,wc.warn,arguments,_y)}error(t){return this._getLogFunction(0,t,wc.error,arguments)}deprecated(t,i){return this.warn("`".concat(t,"` is deprecated and will be removed in a later version. Use `").concat(i,"` instead"))}removed(t,i){return this.error("`".concat(t,"` has been removed. Use `").concat(i,"` instead"))}probe(t,i){return this._getLogFunction(t,i,wc.log,arguments,{time:!0,once:!0})}log(t,i){return this._getLogFunction(t,i,wc.debug,arguments)}info(t,i){return this._getLogFunction(t,i,console.info,arguments)}once(t,i){for(var o=arguments.length,l=new Array(o>2?o-2:0),p=2;p<o;p++)l[p-2]=arguments[p];return this._getLogFunction(t,i,wc.debug||wc.info,arguments,_y)}table(t,i,o){return i?this._getLogFunction(t,i,console.table||No,o&&[o],{tag:QE(i)}):No}image(t){let{logLevel:i,priority:o,image:l,message:p="",scale:a=1}=t;return this._shouldLog(i||o)?ea?zE({image:l,message:p,scale:a}):kE():No}time(t,i){return this._getLogFunction(t,i,console.time?console.time:console.info)}timeEnd(t,i){return this._getLogFunction(t,i,console.timeEnd?console.timeEnd:console.info)}timeStamp(t,i){return this._getLogFunction(t,i,console.timeStamp||No)}group(t,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{collapsed:!1};const l=xy({logLevel:t,message:i,opts:o}),{collapsed:p}=o;return l.method=(p?console.groupCollapsed:console.group)||console.info,this._getLogFunction(l)}groupCollapsed(t,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.group(t,i,Object.assign({},o,{collapsed:!0}))}groupEnd(t){return this._getLogFunction(t,"",console.groupEnd||No)}withGroup(t,i,o){this.group(t,i)();try{o()}finally{this.groupEnd(t)()}}trace(){console.trace&&console.trace()}_shouldLog(t){return this.isEnabled()&&this.getLevel()>=vy(t)}_getLogFunction(t,i,o,l,p){if(this._shouldLog(t)){p=xy({logLevel:t,message:i,args:l,opts:p}),o=o||p.method,Mf(o),p.total=this.getTotal(),p.delta=this.getDelta(),this._deltaTs=Cc();const a=p.tag||p.message;if(p.once)if(!yy[a])yy[a]=Cc();else return No;return i=OE(this.id,p.message,p),o.bind(console,i,...p.args)}return No}}Z(Uu,"VERSION",gy);function vy(n){if(!n)return 0;let t;switch(typeof n){case"number":t=n;break;case"object":t=n.logLevel||n.priority||0;break;default:return 0}return Mf(Number.isFinite(t)&&t>=0),t}function xy(n){const{logLevel:t,message:i}=n;n.logLevel=vy(t);const o=n.args?Array.from(n.args):[];for(;o.length&&o.shift()!==i;);switch(typeof t){case"string":case"function":i!==void 0&&o.unshift(i),n.message=t;break;case"object":Object.assign(n,t);break}typeof n.message=="function"&&(n.message=n.message());const l=typeof n.message;return Mf(l==="string"||l==="object"),Object.assign(n,{args:o},n.opts)}function OE(n,t,i){if(typeof t=="string"){const o=i.time?DE(PE(i.total)):"";t=i.time?"".concat(n,": ").concat(o," ").concat(t):"".concat(n,": ").concat(t),t=LE(t,i.color,i.background)}return t}function kE(n){return console.warn("removed"),No}function zE(n){let{image:t,message:i="",scale:o=1}=n;if(typeof t=="string"){const p=new Image;return p.onload=()=>{const a=zd(p,i,o);console.log(...a)},p.src=t,No}const l=t.nodeName||"";if(l.toLowerCase()==="img")return console.log(...zd(t,i,o)),No;if(l.toLowerCase()==="canvas"){const p=new Image;return p.onload=()=>console.log(...zd(p,i,o)),p.src=t.toDataURL(),No}return No}function QE(n){for(const t in n)for(const i in n[t])return i||"untitled";return"empty"}const Ee=new Uu({id:"luma.gl"});function Lr(n,t){if(!n)throw new Error(t||"luma.gl: assertion failed.")}const UE="Invalid WebGLRenderingContext",GE="Requires WebGL2";function Sf(n){return typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext||typeof WebGL2RenderingContext<"u"&&n instanceof WebGL2RenderingContext?!0:!!(n&&Number.isFinite(n._version))}function ri(n){return typeof WebGL2RenderingContext<"u"&&n instanceof WebGL2RenderingContext?!0:!!(n&&n._version===2)}function VE(n){return ri(n)?n:null}function Bf(n){return Lr(Sf(n),UE),n}function Fr(n){return Lr(ri(n),GE),n}const Gu={};function jE(n){globalThis.console&&globalThis.console.error&&globalThis.console.error(n)}function HE(n){globalThis.console&&globalThis.console.log&&globalThis.console.log(n)}function KE(n,t){Gu[n]=!0,jE(t)}function YE(n){const t=n.getError;n.getError=function(){let o;do o=t.apply(n),o!==0&&(Gu[o]=!0);while(o!==0);for(o in Gu)if(Gu[o])return delete Gu[o],parseInt(o,10);return 0}}const Vu=function n(t){const i=t.gl;this.ext=t,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(t.maxVertexAttribs);for(let o=0;o<this.attribs.length;o++){const l=new n.VertexAttrib(i);this.attribs[o]=l}this.maxAttrib=0};Vu.VertexAttrib=function(t){this.enabled=!1,this.buffer=null,this.size=4,this.type=5126,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()},Vu.VertexAttrib.prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};const Bl=function(t){const i=this;this.gl=t,YE(t);const o=this.original={getParameter:t.getParameter,enableVertexAttribArray:t.enableVertexAttribArray,disableVertexAttribArray:t.disableVertexAttribArray,bindBuffer:t.bindBuffer,getVertexAttrib:t.getVertexAttrib,vertexAttribPointer:t.vertexAttribPointer};t.getParameter=function(p){return p===i.VERTEX_ARRAY_BINDING_OES?i.currentVertexArrayObject===i.defaultVertexArrayObject?null:i.currentVertexArrayObject:o.getParameter.apply(this,arguments)},t.enableVertexAttribArray=function(p){const a=i.currentVertexArrayObject;a.maxAttrib=Math.max(a.maxAttrib,p);const E=a.attribs[p];return E.enabled=!0,o.enableVertexAttribArray.apply(this,arguments)},t.disableVertexAttribArray=function(p){const a=i.currentVertexArrayObject;a.maxAttrib=Math.max(a.maxAttrib,p);const E=a.attribs[p];return E.enabled=!1,o.disableVertexAttribArray.apply(this,arguments)},t.bindBuffer=function(p,a){switch(p){case 34962:i.currentArrayBuffer=a;break;case 34963:i.currentVertexArrayObject.elementArrayBuffer=a;break}return o.bindBuffer.apply(this,arguments)},t.getVertexAttrib=function(p,a){const I=i.currentVertexArrayObject.attribs[p];switch(a){case 34975:return I.buffer;case 34338:return I.enabled;case 34339:return I.size;case 34340:return I.stride;case 34341:return I.type;case 34922:return I.normalized;default:return o.getVertexAttrib.apply(this,arguments)}},t.vertexAttribPointer=function(p,a,E,I,M,P){const O=i.currentVertexArrayObject;O.maxAttrib=Math.max(O.maxAttrib,p);const Q=O.attribs[p];return Q.buffer=i.currentArrayBuffer,Q.size=a,Q.type=E,Q.normalized=I,Q.stride=M,Q.offset=P,Q.recache(),o.vertexAttribPointer.apply(this,arguments)},t.instrumentExtension&&t.instrumentExtension(this,"OES_vertex_array_object"),t.canvas&&t.canvas.addEventListener("webglcontextrestored",()=>{HE("OESVertexArrayObject emulation library context restored"),i.reset_()},!0),this.reset_()};Bl.prototype.VERTEX_ARRAY_BINDING_OES=34229,Bl.prototype.reset_=function(){if(this.vertexArrayObjects!==void 0)for(let o=0;o<this.vertexArrayObjects.length;++o)this.vertexArrayObjects.isAlive=!1;const i=this.gl;this.maxVertexAttribs=i.getParameter(34921),this.defaultVertexArrayObject=new Vu(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)},Bl.prototype.createVertexArrayOES=function(){const t=new Vu(this);return this.vertexArrayObjects.push(t),t},Bl.prototype.deleteVertexArrayOES=function(t){t.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(t),1),this.currentVertexArrayObject===t&&this.bindVertexArrayOES(null)},Bl.prototype.isVertexArrayOES=function(t){return!!(t&&t instanceof Vu&&t.hasBeenBound&&t.ext===this)},Bl.prototype.bindVertexArrayOES=function(t){const i=this.gl;if(t&&!t.isAlive){KE(1282,"bindVertexArrayOES: attempt to bind deleted arrayObject");return}const o=this.original,l=this.currentVertexArrayObject;this.currentVertexArrayObject=t||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;const p=this.currentVertexArrayObject;if(l===p)return;(!l||p.elementArrayBuffer!==l.elementArrayBuffer)&&o.bindBuffer.call(i,34963,p.elementArrayBuffer);let a=this.currentArrayBuffer;const E=Math.max(l?l.maxAttrib:0,p.maxAttrib);for(let I=0;I<=E;I++){const M=p.attribs[I],P=l?l.attribs[I]:null;if((!l||M.enabled!==P.enabled)&&(M.enabled?o.enableVertexAttribArray.call(i,I):o.disableVertexAttribArray.call(i,I)),M.enabled){let O=!1;(!l||M.buffer!==P.buffer)&&(a!==M.buffer&&(o.bindBuffer.call(i,34962,M.buffer),a=M.buffer),O=!0),(O||M.cached!==P.cached)&&o.vertexAttribPointer.call(i,I,M.size,M.type,M.normalized,M.stride,M.offset)}}this.currentArrayBuffer!==a&&o.bindBuffer.call(i,34962,this.currentArrayBuffer)};function XE(n){if(typeof n.createVertexArray=="function")return;const t=n.getSupportedExtensions;n.getSupportedExtensions=function(){const l=t.call(this)||[];return l.indexOf("OES_vertex_array_object")<0&&l.push("OES_vertex_array_object"),l};const i=n.getExtension;n.getExtension=function(l){const p=i.call(this,l);return p||(l!=="OES_vertex_array_object"?null:(n.__OESVertexArrayObject||(this.__OESVertexArrayObject=new Bl(this)),this.__OESVertexArrayObject))}}const Ey="OES_element_index",Iy="WEBGL_draw_buffers",qE="EXT_disjoint_timer_query",WE="EXT_disjoint_timer_query_webgl2",ZE="EXT_texture_filter_anisotropic",by="WEBGL_debug_renderer_info",JE=35723,$E=4352,tI=36795,eI=34047,iI=37445,nI=37446,Hi=n=>ri(n)?void 0:0,rI={3074:n=>ri(n)?void 0:36064,[JE]:n=>ri(n)?void 0:$E,35977:Hi,32937:Hi,[tI]:(n,t)=>{const i=ri(n)?n.getExtension(WE):n.getExtension(qE);return i&&i.GPU_DISJOINT_EXT?t(i.GPU_DISJOINT_EXT):0},[iI]:(n,t)=>{const i=n.getExtension(by);return t(i&&i.UNMASKED_VENDOR_WEBGL||7936)},[nI]:(n,t)=>{const i=n.getExtension(by);return t(i&&i.UNMASKED_RENDERER_WEBGL||7937)},[eI]:(n,t)=>{const i=n.luma.extensions[ZE];return i?t(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},32883:Hi,35071:Hi,37447:Hi,36063:(n,t)=>{if(!ri(n)){const i=n.getExtension(Iy);return i?t(i.MAX_COLOR_ATTACHMENTS_WEBGL):0}},35379:Hi,35374:Hi,35377:Hi,34852:n=>{if(!ri(n)){const t=n.getExtension(Iy);return t?t.MAX_DRAW_BUFFERS_WEBGL:0}},36203:n=>n.getExtension(Ey)?2147483647:65535,33001:n=>n.getExtension(Ey)?16777216:65535,33e3:n=>16777216,37157:Hi,35373:Hi,35657:Hi,36183:Hi,37137:Hi,34045:Hi,35978:Hi,35979:Hi,35968:Hi,35376:Hi,35375:Hi,35659:Hi,37154:Hi,35371:Hi,35658:Hi,35076:Hi,35077:Hi,35380:Hi};function oI(n,t,i){const o=rI[i],l=typeof o=="function"?o(n,t,i):o;return l!==void 0?l:t(i)}const sI="OES_vertex_array_object",Cy="ANGLE_instanced_arrays",aI="WEBGL_draw_buffers",lI="EXT_disjoint_timer_query",cI="EXT_texture_filter_anisotropic",uI="VertexArray requires WebGL2 or OES_vertex_array_object extension";function hI(n,t){return{webgl2:ri(n),ext:n.getExtension(t)}}const wy={[sI]:{meta:{suffix:"OES"},createVertexArray:()=>{Lr(!1,uI)},deleteVertexArray:()=>{},bindVertexArray:()=>{},isVertexArray:()=>!1},[Cy]:{meta:{suffix:"ANGLE"},vertexAttribDivisor(n,t){Lr(t===0,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},[aI]:{meta:{suffix:"WEBGL"},drawBuffers:()=>{Lr(!1)}},[lI]:{meta:{suffix:"EXT"},createQuery:()=>{Lr(!1)},deleteQuery:()=>{Lr(!1)},beginQuery:()=>{Lr(!1)},endQuery:()=>{},getQuery(n,t){return this.getQueryObject(n,t)},getQueryParameter(n,t){return this.getQueryObject(n,t)},getQueryObject:()=>{}}},Qd={readBuffer:(n,t,i)=>{ri(n)&&t(i)},getVertexAttrib:(n,t,i,o)=>{const{webgl2:l,ext:p}=hI(n,Cy);let a;switch(o){case 35069:a=l?void 0:!1;break;case 35070:a=!l&&!p?0:void 0;break}return a!==void 0?a:t(i,o)},getProgramParameter:(n,t,i,o)=>{if(!ri(n))switch(o){case 35967:return 35981;case 35971:return 0;case 35382:return 0}return t(i,o)},getInternalformatParameter:(n,t,i,o,l)=>{if(!ri(n))switch(l){case 32937:return new Int32Array([0])}return n.getInternalformatParameter(i,o,l)},getTexParameter(n,t,i,o){switch(o){case 34046:const{extensions:l}=n.luma,p=l[cI];o=p&&p.TEXTURE_MAX_ANISOTROPY_EXT||34046;break}return t(i,o)},getParameter:oI,hint(n,t,i,o){return t(i,o)}};function ju(n){n.luma=n.luma||{};const{luma:t}=n;return t.polyfilled||(XE(n),fI(n),dI(n,wy),pI(n,{target:t,target2:n}),t.polyfilled=!0),n}globalThis.polyfillContext=ju;function fI(n){n.luma.extensions={};const t=n.getSupportedExtensions()||[];for(const i of t)n.luma[i]=n.getExtension(i)}function pI(n,t){let{target:i,target2:o}=t;Object.keys(Qd).forEach(l=>{if(typeof Qd[l]=="function"){const p=n[l]?n[l].bind(n):()=>{},a=Qd[l].bind(null,n,p);i[l]=a,o[l]=a}})}function dI(n,t){for(const i of Object.getOwnPropertyNames(t))i!=="overrides"&&gI(n,{extension:i,target:n.luma,target2:n})}function gI(n,t){let{extension:i,target:o,target2:l}=t;const p=wy[i];Lr(p);const{meta:a={}}=p,{suffix:E=""}=a,I=n.getExtension(i);for(const M of Object.keys(p)){const P="".concat(M).concat(E);let O=null;M==="meta"||typeof n[M]=="function"||(I&&typeof I[P]=="function"?O=function(){return I[P](...arguments)}:typeof p[M]=="function"&&(O=p[M].bind(o))),O&&(o[M]=O,l[M]=O)}}const Ud={3042:!1,32773:new Float32Array([0,0,0,0]),32777:32774,34877:32774,32969:1,32968:0,32971:1,32970:0,3106:new Float32Array([0,0,0,0]),3107:[!0,!0,!0,!0],2884:!1,2885:1029,2929:!1,2931:1,2932:513,2928:new Float32Array([0,1]),2930:!0,3024:!0,36006:null,2886:2305,33170:4352,2849:1,32823:!1,32824:0,10752:0,32938:1,32939:!1,3089:!1,3088:new Int32Array([0,0,1024,1024]),2960:!1,2961:0,2968:4294967295,36005:4294967295,2962:519,2967:0,2963:4294967295,34816:519,36003:0,36004:4294967295,2964:7680,2965:7680,2966:7680,34817:7680,34818:7680,34819:7680,2978:[0,0,1024,1024],3333:4,3317:4,37440:!1,37441:!1,37443:37444,35723:4352,36010:null,35977:!1,3330:0,3332:0,3331:0,3314:0,32878:0,3316:0,3315:0,32877:0},Va=(n,t,i)=>t?n.enable(i):n.disable(i),Ty=(n,t,i)=>n.hint(i,t),go=(n,t,i)=>n.pixelStorei(i,t),AI=(n,t)=>{const i=ri(n)?36009:36160;return n.bindFramebuffer(i,t)},mI=(n,t)=>n.bindFramebuffer(36008,t);function Hu(n){return Array.isArray(n)||ArrayBuffer.isView(n)}const yI={3042:Va,32773:(n,t)=>n.blendColor(...t),32777:"blendEquation",34877:"blendEquation",32969:"blendFunc",32968:"blendFunc",32971:"blendFunc",32970:"blendFunc",3106:(n,t)=>n.clearColor(...t),3107:(n,t)=>n.colorMask(...t),2884:Va,2885:(n,t)=>n.cullFace(t),2929:Va,2931:(n,t)=>n.clearDepth(t),2932:(n,t)=>n.depthFunc(t),2928:(n,t)=>n.depthRange(...t),2930:(n,t)=>n.depthMask(t),3024:Va,35723:Ty,36006:AI,2886:(n,t)=>n.frontFace(t),33170:Ty,2849:(n,t)=>n.lineWidth(t),32823:Va,32824:"polygonOffset",10752:"polygonOffset",35977:Va,32938:"sampleCoverage",32939:"sampleCoverage",3089:Va,3088:(n,t)=>n.scissor(...t),2960:Va,2961:(n,t)=>n.clearStencil(t),2968:(n,t)=>n.stencilMaskSeparate(1028,t),36005:(n,t)=>n.stencilMaskSeparate(1029,t),2962:"stencilFuncFront",2967:"stencilFuncFront",2963:"stencilFuncFront",34816:"stencilFuncBack",36003:"stencilFuncBack",36004:"stencilFuncBack",2964:"stencilOpFront",2965:"stencilOpFront",2966:"stencilOpFront",34817:"stencilOpBack",34818:"stencilOpBack",34819:"stencilOpBack",2978:(n,t)=>n.viewport(...t),3333:go,3317:go,37440:go,37441:go,37443:go,3330:go,3332:go,3331:go,36010:mI,3314:go,32878:go,3316:go,3315:go,32877:go,framebuffer:(n,t)=>{const i=t&&"handle"in t?t.handle:t;return n.bindFramebuffer(36160,i)},blend:(n,t)=>t?n.enable(3042):n.disable(3042),blendColor:(n,t)=>n.blendColor(...t),blendEquation:(n,t)=>{t=Hu(t)?t:[t,t],n.blendEquationSeparate(...t)},blendFunc:(n,t)=>{t=Hu(t)&&t.length===2?[...t,...t]:t,n.blendFuncSeparate(...t)},clearColor:(n,t)=>n.clearColor(...t),clearDepth:(n,t)=>n.clearDepth(t),clearStencil:(n,t)=>n.clearStencil(t),colorMask:(n,t)=>n.colorMask(...t),cull:(n,t)=>t?n.enable(2884):n.disable(2884),cullFace:(n,t)=>n.cullFace(t),depthTest:(n,t)=>t?n.enable(2929):n.disable(2929),depthFunc:(n,t)=>n.depthFunc(t),depthMask:(n,t)=>n.depthMask(t),depthRange:(n,t)=>n.depthRange(...t),dither:(n,t)=>t?n.enable(3024):n.disable(3024),derivativeHint:(n,t)=>{n.hint(35723,t)},frontFace:(n,t)=>n.frontFace(t),mipmapHint:(n,t)=>n.hint(33170,t),lineWidth:(n,t)=>n.lineWidth(t),polygonOffsetFill:(n,t)=>t?n.enable(32823):n.disable(32823),polygonOffset:(n,t)=>n.polygonOffset(...t),sampleCoverage:(n,t)=>n.sampleCoverage(...t),scissorTest:(n,t)=>t?n.enable(3089):n.disable(3089),scissor:(n,t)=>n.scissor(...t),stencilTest:(n,t)=>t?n.enable(2960):n.disable(2960),stencilMask:(n,t)=>{t=Hu(t)?t:[t,t];const[i,o]=t;n.stencilMaskSeparate(1028,i),n.stencilMaskSeparate(1029,o)},stencilFunc:(n,t)=>{t=Hu(t)&&t.length===3?[...t,...t]:t;const[i,o,l,p,a,E]=t;n.stencilFuncSeparate(1028,i,o,l),n.stencilFuncSeparate(1029,p,a,E)},stencilOp:(n,t)=>{t=Hu(t)&&t.length===3?[...t,...t]:t;const[i,o,l,p,a,E]=t;n.stencilOpSeparate(1028,i,o,l),n.stencilOpSeparate(1029,p,a,E)},viewport:(n,t)=>n.viewport(...t)};function _n(n,t,i){return t[n]!==void 0?t[n]:i[n]}const _I={blendEquation:(n,t,i)=>n.blendEquationSeparate(_n(32777,t,i),_n(34877,t,i)),blendFunc:(n,t,i)=>n.blendFuncSeparate(_n(32969,t,i),_n(32968,t,i),_n(32971,t,i),_n(32970,t,i)),polygonOffset:(n,t,i)=>n.polygonOffset(_n(32824,t,i),_n(10752,t,i)),sampleCoverage:(n,t,i)=>n.sampleCoverage(_n(32938,t,i),_n(32939,t,i)),stencilFuncFront:(n,t,i)=>n.stencilFuncSeparate(1028,_n(2962,t,i),_n(2967,t,i),_n(2963,t,i)),stencilFuncBack:(n,t,i)=>n.stencilFuncSeparate(1029,_n(34816,t,i),_n(36003,t,i),_n(36004,t,i)),stencilOpFront:(n,t,i)=>n.stencilOpSeparate(1028,_n(2964,t,i),_n(2965,t,i),_n(2966,t,i)),stencilOpBack:(n,t,i)=>n.stencilOpSeparate(1029,_n(34817,t,i),_n(34818,t,i),_n(34819,t,i))},My={enable:(n,t)=>n({[t]:!0}),disable:(n,t)=>n({[t]:!1}),pixelStorei:(n,t,i)=>n({[t]:i}),hint:(n,t,i)=>n({[t]:i}),bindFramebuffer:(n,t,i)=>{switch(t){case 36160:return n({36006:i,36010:i});case 36009:return n({36006:i});case 36008:return n({36010:i});default:return null}},blendColor:(n,t,i,o,l)=>n({32773:new Float32Array([t,i,o,l])}),blendEquation:(n,t)=>n({32777:t,34877:t}),blendEquationSeparate:(n,t,i)=>n({32777:t,34877:i}),blendFunc:(n,t,i)=>n({32969:t,32968:i,32971:t,32970:i}),blendFuncSeparate:(n,t,i,o,l)=>n({32969:t,32968:i,32971:o,32970:l}),clearColor:(n,t,i,o,l)=>n({3106:new Float32Array([t,i,o,l])}),clearDepth:(n,t)=>n({2931:t}),clearStencil:(n,t)=>n({2961:t}),colorMask:(n,t,i,o,l)=>n({3107:[t,i,o,l]}),cullFace:(n,t)=>n({2885:t}),depthFunc:(n,t)=>n({2932:t}),depthRange:(n,t,i)=>n({2928:new Float32Array([t,i])}),depthMask:(n,t)=>n({2930:t}),frontFace:(n,t)=>n({2886:t}),lineWidth:(n,t)=>n({2849:t}),polygonOffset:(n,t,i)=>n({32824:t,10752:i}),sampleCoverage:(n,t,i)=>n({32938:t,32939:i}),scissor:(n,t,i,o,l)=>n({3088:new Int32Array([t,i,o,l])}),stencilMask:(n,t)=>n({2968:t,36005:t}),stencilMaskSeparate:(n,t,i)=>n({[t===1028?2968:36005]:i}),stencilFunc:(n,t,i,o)=>n({2962:t,2967:i,2963:o,34816:t,36003:i,36004:o}),stencilFuncSeparate:(n,t,i,o,l)=>n({[t===1028?2962:34816]:i,[t===1028?2967:36003]:o,[t===1028?2963:36004]:l}),stencilOp:(n,t,i,o)=>n({2964:t,2965:i,2966:o,34817:t,34818:i,34819:o}),stencilOpSeparate:(n,t,i,o,l)=>n({[t===1028?2964:34817]:i,[t===1028?2965:34818]:o,[t===1028?2966:34819]:l}),viewport:(n,t,i,o,l)=>n({2978:[t,i,o,l]})},Cs=(n,t)=>n.isEnabled(t),Sy={3042:Cs,2884:Cs,2929:Cs,3024:Cs,32823:Cs,32926:Cs,32928:Cs,3089:Cs,2960:Cs,35977:Cs};function By(n){for(const t in n)return!1;return!0}function vI(n,t){if(n===t)return!0;const i=Array.isArray(n)||ArrayBuffer.isView(n),o=Array.isArray(t)||ArrayBuffer.isView(t);if(i&&o&&n.length===t.length){for(let l=0;l<n.length;++l)if(n[l]!==t[l])return!1;return!0}return!1}function Ry(n,t){const i=n[t].bind(n);n[t]=function(){const l=arguments.length<=0?void 0:arguments[0];return l in n.state.cache?n.state.enable?n.state.cache[l]:i(...arguments):i(...arguments)},Object.defineProperty(n[t],"name",{value:"".concat(t,"-from-cache"),configurable:!1})}function xI(n,t,i){const o=n[t].bind(n);n[t]=function(){for(var p=arguments.length,a=new Array(p),E=0;E<p;E++)a[E]=arguments[E];const{valueChanged:I,oldValue:M}=i(n.state._updateCache,...a);return I&&o(...a),M},Object.defineProperty(n[t],"name",{value:"".concat(t,"-to-cache"),configurable:!1})}function EI(n){const t=n.useProgram.bind(n);n.useProgram=function(o){n.state.program!==o&&(t(o),n.state.program=o)}}class II{constructor(t){let{copyState:i=!1,log:o=()=>{}}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.gl=t,this.program=null,this.stateStack=[],this.enable=!0,this.cache=i?CI(t):Object.assign({},Ud),this.log=o,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(){this.stateStack.push({})}pop(){Lr(this.stateStack.length>0);const t=this.stateStack[this.stateStack.length-1];ia(this.gl,t),this.stateStack.pop()}_updateCache(t){let i=!1,o;const l=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const p in t){Lr(p!==void 0);const a=t[p],E=this.cache[p];vI(a,E)||(i=!0,o=E,l&&!(p in l)&&(l[p]=E),this.cache[p]=a)}return{valueChanged:i,oldValue:o}}}function Py(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{enable:i=!0,copyState:o}=t;if(Lr(o!==void 0),!n.state){const{polyfillContext:l}=globalThis;l&&l(n),n.state=new II(n,{copyState:o}),EI(n);for(const p in My){const a=My[p];xI(n,p,a)}Ry(n,"getParameter"),Ry(n,"isEnabled")}return n.state.enable=i,n}function bI(n){n.state||Py(n,{copyState:!1}),n.state.push()}function Dy(n){Lr(n.state),n.state.pop()}function ia(n,t){if(Lr(Sf(n),"setParameters requires a WebGL context"),By(t))return;const i={};for(const l in t){const p=Number(l),a=yI[l];a&&(typeof a=="string"?i[a]=!0:a(n,t[l],p))}const o=n.state&&n.state.cache;if(o)for(const l in i){const p=_I[l];p(n,t,o)}}function CI(n,t){if(t=t||Ud,typeof t=="number"){const l=t,p=Sy[l];return p?p(n,l):n.getParameter(l)}const i=Array.isArray(t)?t:Object.keys(t),o={};for(const l of i){const p=Sy[l];o[l]=p?p(n,Number(l)):n.getParameter(Number(l))}return o}function wI(n){ia(n,Ud)}function Nr(n,t,i){if(By(t))return i(n);const{nocatch:o=!0}=t;bI(n),ia(n,t);let l;if(o)l=i(n),Dy(n);else try{l=i(n)}finally{Dy(n)}return l}function Tc(n){const{luma:t}=n;if(n.canvas&&t){const i=t.canvasSizeInfo,o="clientWidth"in i?i.clientWidth:n.canvas.clientWidth;return o?n.drawingBufferWidth/o:1}return 1}function Gd(n,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const o=Tc(n),l=n.drawingBufferWidth,p=n.drawingBufferHeight;return MI(t,o,l,p,i)}function TI(n){const t=typeof window>"u"?1:window.devicePixelRatio||1;return Number.isFinite(n)?n<=0?1:n:n?t:1}function MI(n,t,i,o,l){const p=Ly(n[0],t,i);let a=Fy(n[1],t,o,l),E=Ly(n[0]+1,t,i);const I=E===i-1?E:E-1;E=Fy(n[1]+1,t,o,l);let M;return l?(E=E===0?E:E+1,M=a,a=E):M=E===o-1?E:E-1,{x:p,y:a,width:Math.max(I-p+1,1),height:Math.max(M-a+1,1)}}function Ly(n,t,i){return Math.min(Math.round(n*t),i-1)}function Fy(n,t,i,o){return o?Math.max(0,i-1-Math.round(n*t)):Math.min(Math.round(n*t),i-1)}const Vd=ea(),SI=Vd&&typeof document<"u",Ny={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function Oy(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lr(Vd,`createGLContext only available in the browser.
Create your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils`),n=Object.assign({},Ny,n);const{width:t,height:i}=n;function o(E){if(n.throwOnError)throw new Error(E);return console.error(E),null}n.onError=o;let l;const{canvas:p}=n,a=DI({canvas:p,width:t,height:i,onError:o});return l=PI(a,n),l?(l=jd(l,n),LI(l),l):null}function jd(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!n||n._instrumented)return n;n._version=n._version||FI(n),n.luma=n.luma||{},n.luma.canvasSizeInfo=n.luma.canvasSizeInfo||{},t=Object.assign({},Ny,t);const{manageState:i,debug:o}=t;return i&&Py(n,{copyState:!1,log:function(){for(var l=arguments.length,p=new Array(l),a=0;a<l;a++)p[a]=arguments[a];return Ee.log(1,...p)()}}),Vd&&o&&(globalThis.makeDebugContext?(n=globalThis.makeDebugContext(n,t),Ee.level=Math.max(Ee.level,1)):Ee.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),n._instrumented=!0,n}function BI(n){const t=n.getParameter(7936),i=n.getParameter(7937),o=n.getExtension("WEBGL_debug_renderer_info"),l=o&&n.getParameter(o.UNMASKED_VENDOR_WEBGL||7936),p=o&&n.getParameter(o.UNMASKED_RENDERER_WEBGL||7937);return{vendor:l||t,renderer:p||i,vendorMasked:t,rendererMasked:i,version:n.getParameter(7938),shadingLanguageVersion:n.getParameter(35724)}}function RI(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n.canvas){const o=TI(t.useDevicePixels);NI(n,o,t);return}const i=n.getExtension("STACKGL_resize_drawingbuffer");i&&"width"in t&&"height"in t&&i.resize(t.width,t.height)}function PI(n,t){const{onError:i}=t;let o=null;const l=I=>o=I.statusMessage||o;n.addEventListener("webglcontextcreationerror",l,!1);const{webgl1:p=!0,webgl2:a=!0}=t;let E=null;return a&&(E=E||n.getContext("webgl2",t),E=E||n.getContext("experimental-webgl2",t)),p&&(E=E||n.getContext("webgl",t),E=E||n.getContext("experimental-webgl",t)),n.removeEventListener("webglcontextcreationerror",l,!1),E?(t.onContextLost&&n.addEventListener("webglcontextlost",t.onContextLost,!1),t.onContextRestored&&n.addEventListener("webglcontextrestored",t.onContextRestored,!1),E):i("Failed to create ".concat(a&&!p?"WebGL2":"WebGL"," context: ").concat(o||"Unknown error"))}function DI(n){let{canvas:t,width:i=800,height:o=600,onError:l}=n,p;return typeof t=="string"?(SI&&document.readyState==="complete"||l("createGLContext called on canvas '".concat(t,"' before page was loaded")),p=document.getElementById(t)):t?p=t:(p=document.createElement("canvas"),p.id="lumagl-canvas",p.style.width=Number.isFinite(i)?"".concat(i,"px"):"100%",p.style.height=Number.isFinite(o)?"".concat(o,"px"):"100%",document.body.insertBefore(p,document.body.firstChild)),p}function LI(n){const t=ri(n)?"WebGL2":"WebGL1",i=BI(n),o=i?"(".concat(i.vendor,",").concat(i.renderer,")"):"",l=n.debug?" debug":"";Ee.info(1,"".concat(t).concat(l," context ").concat(o))()}function FI(n){return typeof WebGL2RenderingContext<"u"&&n instanceof WebGL2RenderingContext?2:1}function NI(n,t,i){let o="width"in i?i.width:n.canvas.clientWidth,l="height"in i?i.height:n.canvas.clientHeight;(!o||!l)&&(Ee.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,o=n.canvas.width||1,l=n.canvas.height||1),n.luma=n.luma||{},n.luma.canvasSizeInfo=n.luma.canvasSizeInfo||{};const p=n.luma.canvasSizeInfo;if(p.clientWidth!==o||p.clientHeight!==l||p.devicePixelRatio!==t){let a=t;const E=Math.floor(o*a),I=Math.floor(l*a);n.canvas.width=E,n.canvas.height=I,(n.drawingBufferWidth!==E||n.drawingBufferHeight!==I)&&(Ee.warn("Device pixel ratio clamped")(),a=Math.min(n.drawingBufferWidth/o,n.drawingBufferHeight/l),n.canvas.width=Math.floor(o*a),n.canvas.height=Math.floor(l*a)),Object.assign(n.luma.canvasSizeInfo,{clientWidth:o,clientHeight:l,devicePixelRatio:t})}}function ky(){let n;if(typeof window<"u"&&window.performance)n=window.performance.now();else if(typeof process<"u"&&process.hrtime){const t=process.hrtime();n=t[0]*1e3+t[1]/1e6}else n=Date.now();return n}class zy{constructor(t,i){Z(this,"name",void 0),Z(this,"type",void 0),Z(this,"sampleSize",1),Z(this,"time",void 0),Z(this,"count",void 0),Z(this,"samples",void 0),Z(this,"lastTiming",void 0),Z(this,"lastSampleTime",void 0),Z(this,"lastSampleCount",void 0),Z(this,"_count",0),Z(this,"_time",0),Z(this,"_samples",0),Z(this,"_startTime",0),Z(this,"_timerPending",!1),this.name=t,this.type=i,this.reset()}setSampleSize(t){return this.sampleSize=t,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(t){return this._count+=t,this._samples++,this._checkSampling(),this}subtractCount(t){return this._count-=t,this._samples++,this._checkSampling(),this}addTime(t){return this._time+=t,this.lastTiming=t,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=ky(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(ky()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,th