13 lines
841 KiB
JavaScript
13 lines
841 KiB
JavaScript
/*!
|
||
*
|
||
* deck.gl.js (https://github.com/SuperMap/deck.gl.git)
|
||
* license: MIT
|
||
*
|
||
* origin: 'https://github.com/uber/deck.gl.git'
|
||
* fork: 'https://github.com/SuperMap/deck.gl.git'
|
||
* branch: 'https://github.com/SuperMap/deck.gl/tree/deck.gl-for-iclient'
|
||
*
|
||
*
|
||
*/
|
||
/*! For license information please see main.js.LICENSE.txt */
|
||
(()=>{var e={138:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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=288)}([function(e,t,n){var r=n(3),i=n(33),o=n(19),a=n(20),s=n(28),u="prototype",c=function(e,t,n){var l,f,d,h,p=e&c.F,v=e&c.G,g=e&c.S,y=e&c.P,_=e&c.B,m=v?r:g?r[t]||(r[t]={}):(r[t]||{})[u],b=v?i:i[t]||(i[t]={}),E=b[u]||(b[u]={});for(l in v&&(n=t),n)d=((f=!p&&m&&void 0!==m[l])?m:n)[l],h=_&&f?s(d,r):y&&"function"==typeof d?s(Function.call,d):d,m&&a(m,l,d,e&c.U),b[l]!=d&&o(b,l,h),y&&E[l]!=d&&(E[l]=d)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){"use strict";(function(t){function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=n(684),a=Object.prototype.hasOwnProperty,s=Array.prototype.slice,u="foo"===function(){}.name;function c(e){return Object.prototype.toString.call(e)}function l(e){return!i(e)&&"function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var f=e.exports=y,d=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(o.isFunction(e)){if(u)return e.name;var t=e.toString().match(d);return t&&t[1]}}function p(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function v(e){if(u||!o.isFunction(e))return o.inspect(e);var t=h(e);return"[Function"+(t?": "+t:"")+"]"}function g(e,t,n,r,i){throw new f.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function y(e,t){e||g(e,!0,t,"==",f.ok)}function _(e,t,n,a){if(e===t)return!0;if(i(e)&&i(t))return 0===r(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(l(e)&&l(t)&&c(e)===c(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var u=(a=a||{actual:[],expected:[]}).actual.indexOf(e);return-1!==u&&u===a.expected.indexOf(t)||(a.actual.push(e),a.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=m(e),a=m(t);if(i&&!a||!i&&a)return!1;if(i)return _(e=s.call(e),t=s.call(t),n);var u,c,l=w(e),f=w(t);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),c=l.length-1;c>=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(!_(e[u=l[c]],t[u],n,r))return!1;return!0}(e,t,n,a))}return n?e===t:e==t}function m(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function b(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function E(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&g(i,n,"Missing expected exception"+r);var a="string"==typeof r,s=!e&&i&&!n;if((!e&&o.isError(i)&&a&&b(i,n)||s)&&g(i,n,"Got unwanted exception"+r),e&&i&&n&&!b(i,n)||!e&&i)throw i}f.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return p(v(e.actual),128)+" "+e.operator+" "+p(v(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=h(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},o.inherits(f.AssertionError,Error),f.fail=g,f.ok=y,f.equal=function(e,t,n){e!=t&&g(e,t,n,"==",f.equal)},f.notEqual=function(e,t,n){e==t&&g(e,t,n,"!=",f.notEqual)},f.deepEqual=function(e,t,n){_(e,t,!1)||g(e,t,n,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,n){_(e,t,!0)||g(e,t,n,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,n){_(e,t,!1)&&g(e,t,n,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function e(t,n,r){_(t,n,!0)&&g(t,n,r,"notDeepStrictEqual",e)},f.strictEqual=function(e,t,n){e!==t&&g(e,t,n,"===",f.strictEqual)},f.notStrictEqual=function(e,t,n){e===t&&g(e,t,n,"!==",f.notStrictEqual)},f.throws=function(e,t,n){E(!0,e,t,n)},f.doesNotThrow=function(e,t,n){E(!1,e,t,n)},f.ifError=function(e){if(e)throw e};var w=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}}).call(t,n(47))},function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(98)("wks"),i=n(58),o=n(3).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){"use strict";n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return v})),t.a=g,t.b=y,t.j=function(e){d()(g(e),h)},t.g=function(e){d()(y(e),v)},t.c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(_,{width:1,height:1},e)},t.d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e=Object.assign({},_,e),r=t.canvas,s=t.width,u=t.height,l=t.throwOnError,f=t.manageState,d=t.debug;function h(e){if(l)throw new Error(e);return null}var p=void 0;if(c.a){var v=void 0;v=r?"string"==typeof r?n.i(o.d)({id:r}):r:n.i(o.c)({id:"lumagl-canvas",width:s,height:u,onError:h}),p=n.i(o.e)({canvas:v,opts:e})}else p=b({width:s,height:u,opts:e,onError:h});return p?(f&&n.i(i.a)(p,{copyState:!1,log:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.b.log.apply(c.b,[1].concat(t))}}),c.a&&d&&(p=n.i(a.a)(p,{debug:d}),c.b.priority=Math.max(c.b.priority,1)),m(p),p):null},t.e=function(e){},t.f=function(e){u.a.poll(e)};var r=n(38),i=n(164),o=n(60),a=n(269),s=n(165),u=n(166),c=n(8),l=n(106),f=n(1),d=n.n(f),h="Invalid WebGLRenderingContext",p=h,v="Requires WebGL2";function g(e){return Boolean(e&&(e instanceof r.b||34962===e.ARRAY_BUFFER))}function y(e){return Boolean(e&&(e instanceof r.c||32874===e.TEXTURE_BINDING_3D))}var _={webgl2:!0,webgl1:!0,throwOnFailure:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function m(e){var t=y(e)?"WebGL2":"WebGL1",r=n.i(s.d)(e),i=r?"("+r.vendor+","+r.renderer+")":"",o=e.debug?" debug":"";c.b.once(0,""+t+o+" context "+i)}function b(e){var t=e.width,n=e.height,i=e.opts,o=e.onError,a=i.webgl1;return i.webgl2&&!a?o("headless-gl does not support WebGL2"):r.d?l.default.globals.headlessGL?l.default.globals.headlessGL(t,n,i)||o("headlessGL failed to create headless WebGL context"):o("Cannot create headless WebGL context, headlessGL not available"):o("WebGL API is missing. To run luma.gl under Node.js, please \"npm install gl\"\nand import 'luma.gl/headless' before importing 'luma.gl'.")}},function(e,t,n){"use strict";var r=n(262);n.d(t,"a",(function(){return r.a})),n(660);var i=n(661);n.d(t,"d",(function(){return i.a})),n.d(t,"e",(function(){return i.b})),n.d(t,"f",(function(){return i.c}));var o=n(263);n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return o.b}));var a=n(163);n.d(t,"h",(function(){return a.c})),n.d(t,"g",(function(){return a.d}))},function(e,t,n){e.exports=!n(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(2),i=n(207),o=n(37),a=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(36),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"experimental",(function(){return ue}));var r=n(25);n.d(t,"GL",(function(){return r.a})),n.d(t,"glGet",(function(){return r.b})),n.d(t,"glKey",(function(){return r.c}));var i=n(60);n.d(t,"trackContextCreation",(function(){return i.a})),n.d(t,"trackContextState",(function(){return i.b}));var o=n(7);n.d(t,"isWebGL",(function(){return o.a})),n.d(t,"isWebGL2",(function(){return o.b})),n.d(t,"setContextDefaults",(function(){return o.c})),n.d(t,"createGLContext",(function(){return o.d})),n.d(t,"deleteGLContext",(function(){return o.e})),n.d(t,"pollContext",(function(){return o.f}));var a=n(68);n.d(t,"resetParameters",(function(){return a.a})),n.d(t,"getParameter",(function(){return a.b})),n.d(t,"getParameters",(function(){return a.c})),n.d(t,"setParameter",(function(){return a.d})),n.d(t,"setParameters",(function(){return a.e})),n.d(t,"withParameters",(function(){return a.f})),n.d(t,"getModifiedParameters",(function(){return a.g}));var s=n(165);n.d(t,"getContextInfo",(function(){return s.a})),n.d(t,"getGLContextInfo",(function(){return s.b})),n.d(t,"getContextLimits",(function(){return s.c})),n.d(t,"glGetDebugInfo",(function(){return s.d}));var u=n(108);n.d(t,"FEATURES",(function(){return u.a})),n.d(t,"hasFeature",(function(){return u.b})),n.d(t,"hasFeatures",(function(){return u.c})),n.d(t,"getFeatures",(function(){return u.d}));var c=n(269);n.d(t,"makeDebugContext",(function(){return c.a}));var l=n(267);n.d(t,"installParameterDefinitions",(function(){return l.a}));var f=n(67);n.d(t,"Buffer",(function(){return f.a}));var d=n(111);n.d(t,"Shader",(function(){return d.a})),n.d(t,"VertexShader",(function(){return d.b})),n.d(t,"FragmentShader",(function(){return d.c}));var h=n(109);n.d(t,"Program",(function(){return h.a}));var p=n(69);n.d(t,"Framebuffer",(function(){return p.a}));var v=n(110);n.d(t,"Renderbuffer",(function(){return v.a}));var g=n(167);n.d(t,"Texture2D",(function(){return g.a}));var y=n(275);n.d(t,"TextureCube",(function(){return y.a}));var _=n(270);n.d(t,"draw",(function(){return _.a}));var m=n(107);n.d(t,"clear",(function(){return m.a})),n.d(t,"clearBuffer",(function(){return m.b}));var b=n(271);n.d(t,"FenceSync",(function(){return b.a}));var E=n(273);n.d(t,"Query",(function(){return E.a}));var w=n(274);n.d(t,"Sampler",(function(){return w.a}));var P=n(668);n.d(t,"Texture3D",(function(){return P.a}));var S=n(667);n.d(t,"Texture2DArray",(function(){return S.a}));var T=n(276);n.d(t,"TransformFeedback",(function(){return T.a}));var A=n(169);n.d(t,"VertexArray",(function(){return A.a}));var x=n(669);n.d(t,"UniformBufferLayout",(function(){return x.a}));var O=n(104);n.d(t,"Model",(function(){return O.a}));var R=n(249);n.d(t,"AnimationLoop",(function(){return R.a}));var C=n(626);n.d(t,"pickModels",(function(){return C.a}));var M=n(627);n.d(t,"encodePickingColor",(function(){return M.a})),n.d(t,"decodePickingColor",(function(){return M.b})),n.d(t,"getNullPickingColor",(function(){return M.c}));var k=n(641);n.d(t,"addEvents",(function(){return k.a}));var L=n(45);n.d(t,"Geometry",(function(){return L.a}));var I=n(251);n.d(t,"ConeGeometry",(function(){return I.a}));var N=n(252);n.d(t,"CubeGeometry",(function(){return N.a}));var F=n(253);n.d(t,"CylinderGeometry",(function(){return F.a}));var j=n(254);n.d(t,"IcoSphereGeometry",(function(){return j.a}));var D=n(255);n.d(t,"PlaneGeometry",(function(){return D.a}));var B=n(256);n.d(t,"SphereGeometry",(function(){return B.a}));var U=n(105);n.d(t,"TruncatedConeGeometry",(function(){return U.a}));var G=n(633);n.d(t,"Cone",(function(){return G.a}));var V=n(634);n.d(t,"Cube",(function(){return V.a}));var z=n(635);n.d(t,"Cylinder",(function(){return z.a}));var W=n(636);n.d(t,"IcoSphere",(function(){return W.a}));var X=n(637);n.d(t,"Plane",(function(){return X.a}));var H=n(638);n.d(t,"Sphere",(function(){return H.a}));var Y=n(639);n.d(t,"TruncatedCone",(function(){return Y.a}));var K=n(632);n.d(t,"ClipSpaceQuad",(function(){return K.a}));var Z=n(630);n.n(Z),n.o(Z,"setPathPrefix")&&n.d(t,"setPathPrefix",(function(){return Z.setPathPrefix})),n.o(Z,"loadFile")&&n.d(t,"loadFile",(function(){return Z.loadFile})),n.o(Z,"loadImage")&&n.d(t,"loadImage",(function(){return Z.loadImage})),n.o(Z,"loadFiles")&&n.d(t,"loadFiles",(function(){return Z.loadFiles})),n.o(Z,"loadImages")&&n.d(t,"loadImages",(function(){return Z.loadImages})),n.o(Z,"loadTextures")&&n.d(t,"loadTextures",(function(){return Z.loadTextures})),n.o(Z,"loadProgram")&&n.d(t,"loadProgram",(function(){return Z.loadProgram})),n.o(Z,"loadModel")&&n.d(t,"loadModel",(function(){return Z.loadModel})),n.o(Z,"parseModel")&&n.d(t,"parseModel",(function(){return Z.parseModel}));var q=n(259);n.d(t,"ShaderCache",(function(){return q.a}));var Q=n(258);n.d(t,"assembleShaders",(function(){return Q.a}));var J=n(162);n.d(t,"registerShaderModules",(function(){return J.a})),n.d(t,"setDefaultShaderModules",(function(){return J.b}));var $=n(646);n.d(t,"fp32",(function(){return $.a}));var ee=n(650);n.d(t,"fp64",(function(){return ee.a}));var te=n(260);n.d(t,"project",(function(){return te.a}));var ne=n(654);n.d(t,"lighting",(function(){return ne.a}));var re=n(645);n.d(t,"dirlight",(function(){return re.a}));var ie=n(656);n.d(t,"picking",(function(){return ie.a}));var oe=n(644);n.d(t,"diffuse",(function(){return oe.a}));var ae=n(16);n.d(t,"radians",(function(){return ae.radians})),n.d(t,"degrees",(function(){return ae.degrees})),n.d(t,"Vector2",(function(){return ae.Vector2})),n.d(t,"Vector3",(function(){return ae.Vector3})),n.d(t,"Vector4",(function(){return ae.Vector4})),n.d(t,"Matrix4",(function(){return ae.Matrix4})),n.d(t,"Quaternion",(function(){return ae.Quaternion}));var se=n(272);n.d(t,"readPixels",(function(){return se.a})),n.d(t,"FramebufferObject",(function(){return p.a})),n(106);var ue={clearBuffer:m.b}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.experimental=t.lighting=t.project64=t.project=t.OrthographicViewport=t.PerspectiveViewport=t.WebMercatorViewport=t.Viewport=t.CompositeLayer=t.Layer=t.AttributeManager=t.LayerManager=t.COORDINATE_SYSTEM=void 0;var r=n(70);Object.defineProperty(t,"COORDINATE_SYSTEM",{enumerable:!0,get:function(){return r.COORDINATE_SYSTEM}});var i=n(184);Object.defineProperty(t,"LayerManager",{enumerable:!0,get:function(){return G(i).default}});var o=n(182);Object.defineProperty(t,"AttributeManager",{enumerable:!0,get:function(){return G(o).default}});var a=n(123);Object.defineProperty(t,"Layer",{enumerable:!0,get:function(){return G(a).default}});var s=n(337);Object.defineProperty(t,"CompositeLayer",{enumerable:!0,get:function(){return G(s).default}});var u=n(42);Object.defineProperty(t,"Viewport",{enumerable:!0,get:function(){return G(u).default}});var c=n(86);Object.defineProperty(t,"WebMercatorViewport",{enumerable:!0,get:function(){return G(c).default}});var l=n(355);Object.defineProperty(t,"PerspectiveViewport",{enumerable:!0,get:function(){return G(l).default}});var f=n(354);Object.defineProperty(t,"OrthographicViewport",{enumerable:!0,get:function(){return G(f).default}});var d=n(83);Object.defineProperty(t,"project",{enumerable:!0,get:function(){return G(d).default}});var h=n(192);Object.defineProperty(t,"project64",{enumerable:!0,get:function(){return G(h).default}});var p=n(191);Object.defineProperty(t,"lighting",{enumerable:!0,get:function(){return G(p).default}}),n(338),n(190);var v=G(n(333)),g=G(n(179)),y=G(n(82)),_=G(n(121)),m=G(n(178)),b=G(n(353)),E=G(n(356)),w=G(n(85)),P=G(n(341)),S=G(n(188)),T=G(n(189)),A=G(n(181)),x=G(n(122)),O=n(186),R=G(O),C=G(n(125)),M=G(n(346)),k=n(84),L=G(n(17)),I=n(349),N=n(194),F=G(n(347)),j=n(348),D=n(352),B=n(126),U=n(195);function G(e){return e&&e.__esModule?e:{default:e}}t.experimental={ViewportControls:_.default,FirstPersonState:v.default,OrbitState:g.default,MapState:y.default,Controller:_.default,MapController:m.default,FirstPersonViewport:b.default,ThirdPersonViewport:E.default,OrbitViewport:w.default,DeckGLJS:P.default,MapControllerJS:S.default,OrbitControllerJS:T.default,EffectManager:A.default,Effect:x.default,TRANSITION_EVENTS:O.TRANSITION_EVENTS,LinearInterpolator:C.default,ViewportFlyToInterpolator:M.default,TransitionManager:R.default,extractViewportFrom:k.extractViewportFrom,BinSorter:F.default,linearScale:D.linearScale,getLinearScale:D.getLinearScale,quantizeScale:D.quantizeScale,getQuantizeScale:D.getQuantizeScale,clamp:D.clamp,defaultColorRange:j.defaultColorRange,log:L.default,get:I.get,count:N.count,flatten:B.flatten,countVertices:B.countVertices,flattenVertices:B.flattenVertices,fillArray:B.fillArray,enable64bitSupport:U.enable64bitSupport,fp64ify:U.fp64ify,fp64LowPart:U.fp64LowPart}},function(e,t,n){var r=n(34);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"experimental",(function(){return f}));var r=n(280);n.d(t,"Vector2",(function(){return r.a}));var i=n(113);n.d(t,"Vector3",(function(){return i.a}));var o=n(281);n.d(t,"Vector4",(function(){return o.a}));var a=n(278);n.d(t,"Matrix4",(function(){return a.a}));var s=n(279);n.d(t,"Quaternion",(function(){return s.a}));var u=n(31);n.d(t,"config",(function(){return u.a})),n.d(t,"checkNumber",(function(){return u.g})),n.d(t,"configure",(function(){return u.h})),n.d(t,"formatValue",(function(){return u.b})),n.d(t,"isArray",(function(){return u.i})),n.d(t,"clone",(function(){return u.j})),n.d(t,"radians",(function(){return u.d})),n.d(t,"degrees",(function(){return u.f})),n.d(t,"sin",(function(){return u.k})),n.d(t,"cos",(function(){return u.l})),n.d(t,"tan",(function(){return u.m})),n.d(t,"asin",(function(){return u.n})),n.d(t,"acos",(function(){return u.o})),n.d(t,"atan",(function(){return u.p})),n.d(t,"clamp",(function(){return u.e})),n.d(t,"equals",(function(){return u.c}));var c=n(670),l=n(671),f={Euler:c.a,SphericalCoordinates:l.a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i="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},o=(r=n(1))&&r.__esModule?r:{default:r};function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var s={};function u(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var s,l;(0,o.default)(Number.isFinite(e),"log priority must be a number"),e<=u.priority&&(r=c.apply(void 0,[t].concat(a(r))),console.debug?(s=console).debug.apply(s,a(r)):(l=console).info.apply(l,a(r)))}function c(e){"function"==typeof e&&(e=e());for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"string"==typeof e?n.unshift("deck.gl "+e):(n.unshift(e),n.unshift("deck.gl")),n}function l(e){return e&&e.length>0&&"object"===i(e[0])&&null!==e[0]&&"AssertionError"===e[0].name&&(e=Array.prototype.slice.call(e)).unshift("assert("+e[0].message+")"),e}u.priority=0,u.log=u,u.once=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o;!s[t]&&e<=u.priority&&(r=l(r),(o=console).error.apply(o,a(c.apply(void 0,[t].concat(a(r))))),s[t]=!0)},u.time=function(e,t){(0,o.default)(Number.isFinite(e),"log priority must be a number"),e<=u.priority&&(console.time?console.time(t):console.info(t))},u.timeEnd=function(e,t){(0,o.default)(Number.isFinite(e),"log priority must be a number"),e<=u.priority&&(console.timeEnd?console.timeEnd(t):console.info(t))},u.warn=function(e){if(!s[e]){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).warn.apply(t,["deck.gl: "+e].concat(r)),s[e]=!0}},u.error=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).error.apply(t,["deck.gl: "+e].concat(r))},u.deprecated=function(e,t){u.warn("`"+e+"` is deprecated and will be removed in a later version. Use `"+t+"` instead")},u.removed=function(e,t){u.error("`"+e+"` is no longer supported. Use `"+t+"` instead, check our upgrade-guide.md for more details")},u.group=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.collapsed,i=void 0!==r&&r;e<=u.priority&&(i?console.groupCollapsed("luma.gl: "+t):console.group("luma.gl: "+t))},u.groupEnd=function(e,t){e<=u.priority&&console.groupEnd("luma.gl: "+t)},t.default=u},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(10),i=n(54);e.exports=n(9)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(3),i=n(19),o=n(18),a=n(58)("src"),s="toString",u=Function[s],c=(""+u).split(s);n(33).inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[a]||u.call(this)}))},function(e,t,n){var r=n(0),i=n(4),o=n(34),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t,n){var r=n(73),i=n(54),o=n(24),a=n(37),s=n(18),u=n(207),c=Object.getOwnPropertyDescriptor;t.f=n(9)?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(18),i=n(14),o=n(144)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(72),i=n(34);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";t.b=function(e){return n.i(i.a)(r.a,e)},t.c=function(e){return n.i(i.b)(r.a,e)};var r=n(46),i=n(662);n.d(t,"d",(function(){return r.a})),t.a=r.a},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!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:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.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];c.push(new p(e,t)),1!==c.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(15);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){"use strict";var r=n(106),i=n(7),o=n(25),a=n(8),s=n(1),u=n.n(s),c=n(60),l=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d="Resource subclass must define virtual methods",h=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),n.i(i.j)(t);var o=r.id,s=r.userData,u=void 0===s?{}:s;this.gl=t,this.ext=n.i(c.f)(t),this.id=o||n.i(a.d)(this.constructor.name),this.userData=u,this.opts=r,this._handle=r.handle,void 0===this._handle&&(this._handle=this._createHandle()),this._addStats()}return l(e,[{key:"toString",value:function(){return this.constructor.name+"("+this.id+")"}},{key:"delete",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.deleteChildren,n=void 0!==t&&t,r=this._handle&&this._deleteHandle(this._handle);return this._handle=null,r&&n&&r.filter(Boolean).forEach((function(e){e.delete()})),this}},{key:"unbind",value:function(){this.bind(null)}},{key:"getParameter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=n.i(o.b)(e),u()(e);var r=this.constructor.PARAMETERS||{},a=r[e];if(a){var s=n.i(i.b)(this.gl),c=(!("webgl2"in a)||s)&&(!("extension"in a)||this.gl.getExtension(a.extension));if(!c){var l=a.webgl1,f="webgl2"in a?a.webgl2:a.webgl1,d=s?f:l;return d}}return this._getParameter(e,t)}},{key:"getParameters",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},r=t.parameters,a=t.keys,s=this.constructor.PARAMETERS||{},u=n.i(i.b)(this.gl),c={},l=r||Object.keys(s),f=!0,d=!1,h=void 0;try{for(var p,v=l[Symbol.iterator]();!(f=(p=v.next()).done);f=!0){var g=p.value,y=s[g],_=y&&(!("webgl2"in y)||u)&&(!("extension"in y)||this.gl.getExtension(y.extension));if(_){var m=a?n.i(o.c)(g):g;c[m]=this.getParameter(g,e),a&&"GLenum"===y.type&&(c[m]=n.i(o.c)(c[m]))}}}catch(e){d=!0,h=e}finally{try{!f&&v.return&&v.return()}finally{if(d)throw h}}return c}},{key:"setParameter",value:function(e,t){e=n.i(o.b)(e),u()(e);var r=(this.constructor.PARAMETERS||{})[e];if(r){var a=n.i(i.b)(this.gl);if("webgl2"in r&&!a||"extension"in r&&!this.gl.getExtension(r.extension))throw new Error("Parameter not available on this platform");"GLenum"===r.type&&(t=n.i(o.b)(t))}return this._setParameter(e,t),this}},{key:"setParameters",value:function(e){for(var t in e)this.setParameter(t,e[t]);return this}},{key:"initialize",value:function(e){}},{key:"_createHandle",value:function(){throw new Error(d)}},{key:"_deleteHandle",value:function(){throw new Error(d)}},{key:"_getOptsFromHandle",value:function(){throw new Error(d)}},{key:"_getParameter",value:function(e,t){throw new Error(d)}},{key:"_setParameter",value:function(e,t){throw new Error(d)}},{key:"_context",value:function(){return this.gl.luma=this.gl.luma||{},this.gl.luma}},{key:"_addStats",value:function(){var e=this.constructor.name,t=r.default.stats;t.resourceCount=t.resourceCount||0,t.resourceMap=t.resourceMap||{},t.resourceCount++,t.resourceMap[e]=t.resourceMap[e]||{count:0},t.resourceMap[e].count++}},{key:"handle",get:function(){return this._handle}}]),e}();t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),t.h=function(e){"epsilon"in e&&(r.EPSILON=e.epsilon),"debug"in e&&(r.debug=e.debug)},t.g=function(e){if(!Number.isFinite(e))throw new Error("Invalid number "+e);return e},t.b=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=t.precision,o=void 0===n?r.precision||4:n;return e=i(e),parseFloat(e.toPrecision(o))},t.i=o,t.j=a,t.d=function(e){return s(e,(function(e){return e/180*Math.PI}))},t.f=function(e){return s(e,(function(e){return 180*e/Math.PI}))},t.k=function(e){return s(e,(function(e){return Math.sin(e)}))},t.l=function(e){return s(e,(function(e){return Math.cos(e)}))},t.m=function(e){return s(e,(function(e){return Math.tan(e)}))},t.n=function(e){return s(e,(function(e){return Math.asin(e)}))},t.o=function(e){return s(e,(function(e){return Math.acos(e)}))},t.p=function(e){return s(e,(function(e){return Math.atan(e)}))},t.e=function(e,t,n){return s(e,(function(e){return Math.max(t,Math.min(n,e))}))},t.c=function e(t,n){var i=Math.abs;if(Array.isArray(t)&&Array.isArray(n)){if(t===n)return!0;if(t.length!==n.length)return!1;for(var o=0;o<t.length;++o)if(!e(t[o],n[o]))return!1;return!0}return i(t-n)<=r.EPSILON*Math.max(1,i(t),i(n))};var r={EPSILON:1e-12,debug:!0,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function i(e){return Math.round(e/r.EPSILON)*r.EPSILON}function o(e){return Array.isArray(e)||ArrayBuffer.isView(e)&&void 0!==e.length}function a(e){return e.clone?e.clone():Array(e)}function s(e,t){if(o(e)){for(var n=a(e),r=0;r<n.length;++r)n[r]=t(n[r],r,n);return n}return t(e)}},function(e,t,n){var r=n(28),i=n(72),o=n(14),a=n(11),s=n(129);e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,f=6==e,d=5==e||f,h=t||s;return function(t,s,p){for(var v,g,y=o(t),_=i(y),m=r(s,p,3),b=a(_.length),E=0,w=n?h(t,b):u?h(t,0):void 0;b>E;E++)if((d||E in _)&&(g=m(v=_[E],E,y),e))if(n)w[E]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return E;case 2:w.push(v)}else if(l)return!1;return f?-1:c||l?l:w}}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(0),i=n(33),o=n(4);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(5);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r=n(268);n.d(t,"b",(function(){return r.a})),n.d(t,"e",(function(){return r.d})),n.d(t,"c",(function(){return r.b})),n.d(t,"d",(function(){return r.c})),n(60);var i=n(46);n.d(t,"f",(function(){return i.a})),t.a=i.a},function(e,t,n){var r=n(228),i=n(0),o=n(98)("metadata"),a=o.store||(o.store=new(n(231))),s=function(e,t,n){var i=a.get(e);if(!i){if(!n)return;a.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o};e.exports={store:a,map:s,has:function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){s(n,r,!0).set(e,t)},keys:function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){i(i.S,"Reflect",e)}}},function(e,t,n){"use strict";if(n(9)){var r=n(50),i=n(3),o=n(4),a=n(0),s=n(100),u=n(150),c=n(28),l=n(48),f=n(54),d=n(19),h=n(55),p=n(36),v=n(11),g=n(226),y=n(57),_=n(37),m=n(18),b=n(71),E=n(5),w=n(14),P=n(136),S=n(51),T=n(23),A=n(52).f,x=n(153),O=n(58),R=n(6),C=n(32),M=n(87),k=n(99),L=n(154),I=n(63),N=n(93),F=n(56),j=n(128),D=n(199),B=n(10),U=n(22),G=B.f,V=U.f,z=i.RangeError,W=i.TypeError,X=i.Uint8Array,H="ArrayBuffer",Y="Shared"+H,K="BYTES_PER_ELEMENT",Z="prototype",q=Array[Z],Q=u.ArrayBuffer,J=u.DataView,$=C(0),ee=C(2),te=C(3),ne=C(4),re=C(5),ie=C(6),oe=M(!0),ae=M(!1),se=L.values,ue=L.keys,ce=L.entries,le=q.lastIndexOf,fe=q.reduce,de=q.reduceRight,he=q.join,pe=q.sort,ve=q.slice,ge=q.toString,ye=q.toLocaleString,_e=R("iterator"),me=R("toStringTag"),be=O("typed_constructor"),Ee=O("def_constructor"),we=s.CONSTR,Pe=s.TYPED,Se=s.VIEW,Te="Wrong length!",Ae=C(1,(function(e,t){return Me(k(e,e[Ee]),t)})),xe=o((function(){return 1===new X(new Uint16Array([1]).buffer)[0]})),Oe=!!X&&!!X[Z].set&&o((function(){new X(1).set({})})),Re=function(e,t){var n=p(e);if(n<0||n%t)throw z("Wrong offset!");return n},Ce=function(e){if(E(e)&&Pe in e)return e;throw W(e+" is not a typed array!")},Me=function(e,t){if(!E(e)||!(be in e))throw W("It is not a typed array constructor!");return new e(t)},ke=function(e,t){return Le(k(e,e[Ee]),t)},Le=function(e,t){for(var n=0,r=t.length,i=Me(e,r);r>n;)i[n]=t[n++];return i},Ie=function(e,t,n){G(e,t,{get:function(){return this._d[n]}})},Ne=function(e){var t,n,r,i,o,a,s=w(e),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,d=x(s);if(null!=d&&!P(d)){for(a=d.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),t=0,n=v(s.length),i=Me(this,n);n>t;t++)i[t]=f?l(s[t],t):s[t];return i},Fe=function(){for(var e=0,t=arguments.length,n=Me(this,t);t>e;)n[e]=arguments[e++];return n},je=!!X&&o((function(){ye.call(new X(1))})),De=function(){return ye.apply(je?ve.call(Ce(this)):Ce(this),arguments)},Be={copyWithin:function(e,t){return D.call(Ce(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(Ce(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return j.apply(Ce(this),arguments)},filter:function(e){return ke(this,ee(Ce(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(Ce(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Ce(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){$(Ce(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Ce(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Ce(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return he.apply(Ce(this),arguments)},lastIndexOf:function(e){return le.apply(Ce(this),arguments)},map:function(e){return Ae(Ce(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return fe.apply(Ce(this),arguments)},reduceRight:function(e){return de.apply(Ce(this),arguments)},reverse:function(){for(var e,t=this,n=Ce(t).length,r=Math.floor(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return te(Ce(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return pe.call(Ce(this),e)},subarray:function(e,t){var n=Ce(this),r=n.length,i=y(e,r);return new(k(n,n[Ee]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===t?r:y(t,r))-i))}},Ue=function(e,t){return ke(this,ve.call(Ce(this),e,t))},Ge=function(e){Ce(this);var t=Re(arguments[1],1),n=this.length,r=w(e),i=v(r.length),o=0;if(i+t>n)throw z(Te);for(;o<i;)this[t+o]=r[o++]},Ve={entries:function(){return ce.call(Ce(this))},keys:function(){return ue.call(Ce(this))},values:function(){return se.call(Ce(this))}},ze=function(e,t){return E(e)&&e[Pe]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},We=function(e,t){return ze(e,t=_(t,!0))?f(2,e[t]):V(e,t)},Xe=function(e,t,n){return!(ze(e,t=_(t,!0))&&E(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?G(e,t,n):(e[t]=n.value,e)};we||(U.f=We,B.f=Xe),a(a.S+a.F*!we,"Object",{getOwnPropertyDescriptor:We,defineProperty:Xe}),o((function(){ge.call({})}))&&(ge=ye=function(){return he.call(this)});var He=h({},Be);h(He,Ve),d(He,_e,Ve.values),h(He,{slice:Ue,set:Ge,constructor:function(){},toString:ge,toLocaleString:De}),Ie(He,"buffer","b"),Ie(He,"byteOffset","o"),Ie(He,"byteLength","l"),Ie(He,"length","e"),G(He,me,{get:function(){return this[Pe]}}),e.exports=function(e,t,n,u){var c=e+((u=!!u)?"Clamped":"")+"Array",f="get"+e,h="set"+e,p=i[c],y=p||{},_=p&&T(p),m=!p||!s.ABV,w={},P=p&&p[Z],x=function(e,n){G(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[f](n*t+r.o,xe)}(this,n)},set:function(e){return function(e,n,r){var i=e._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[h](n*t+i.o,r,xe)}(this,n,e)},enumerable:!0})};m?(p=n((function(e,n,r,i){l(e,p,c,"_d");var o,a,s,u,f=0,h=0;if(E(n)){if(!(n instanceof Q||(u=b(n))==H||u==Y))return Pe in n?Le(p,n):Ne.call(p,n);o=n,h=Re(r,t);var y=n.byteLength;if(void 0===i){if(y%t)throw z(Te);if((a=y-h)<0)throw z(Te)}else if((a=v(i)*t)+h>y)throw z(Te);s=a/t}else s=g(n),o=new Q(a=s*t);for(d(e,"_d",{b:o,o:h,l:a,e:s,v:new J(o)});f<s;)x(e,f++)})),P=p[Z]=S(He),d(P,"constructor",p)):o((function(){p(1)}))&&o((function(){new p(-1)}))&&N((function(e){new p,new p(null),new p(1.5),new p(e)}),!0)||(p=n((function(e,n,r,i){var o;return l(e,p,c),E(n)?n instanceof Q||(o=b(n))==H||o==Y?void 0!==i?new y(n,Re(r,t),i):void 0!==r?new y(n,Re(r,t)):new y(n):Pe in n?Le(p,n):Ne.call(p,n):new y(g(n))})),$(_!==Function.prototype?A(y).concat(A(_)):A(y),(function(e){e in p||d(p,e,y[e])})),p[Z]=P,r||(P.constructor=p));var O=P[_e],R=!!O&&("values"==O.name||null==O.name),C=Ve.values;d(p,be,!0),d(P,Pe,c),d(P,Se,!0),d(P,Ee,p),(u?new p(1)[me]==c:me in P)||G(P,me,{get:function(){return c}}),w[c]=p,a(a.G+a.W+a.F*(p!=y),w),a(a.S,c,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*o((function(){y.of.call(p,1)})),c,{from:Ne,of:Fe}),K in P||d(P,K,t),a(a.P,c,Be),F(c),a(a.P+a.F*Oe,c,{set:Ge}),a(a.P+a.F*!R,c,Ve),r||P.toString==ge||(P.toString=ge),a(a.P+a.F*o((function(){new p(1).slice()})),c,{slice:Ue}),a(a.P+a.F*(o((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!o((function(){P.toLocaleString.call([1,2])}))),c,{toLocaleString:De}),I[c]=R?O:C,r||R||d(P,_e,C)}}else e.exports=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(45);n.d(t,"Geometry",(function(){return r.a}));var i=n(251);n.d(t,"ConeGeometry",(function(){return i.a}));var o=n(252);n.d(t,"CubeGeometry",(function(){return o.a}));var a=n(253);n.d(t,"CylinderGeometry",(function(){return a.a}));var s=n(254);n.d(t,"IcoSphereGeometry",(function(){return s.a}));var u=n(255);n.d(t,"PlaneGeometry",(function(){return u.a}));var c=n(256);n.d(t,"SphereGeometry",(function(){return c.a}));var l=n(105);n.d(t,"TruncatedConeGeometry",(function(){return l.a}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=v(n(17)),a=n(127),s=n(16),u=v(n(77)),c=v(n(78)),l=v(n(75)),f=v(n(156)),d=v(n(76)),h=n(79),p=v(n(1));function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=[0,0,0],_=(0,a.createMat4)(),m={pixelsPerMeter:[1,1,1],metersPerPixel:[1,1,1],pixelsPerDegree:[1,1,1],degreesPerPixel:[1,1,1]},b=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g(this,e);var n=t.id,r=void 0===n?null:n,i=t.x,o=void 0===i?0:i,a=t.y,u=void 0===a?0:a,c=t.width,l=void 0===c?1:c,f=t.height,v=void 0===f?1:f,b=t.viewMatrix,E=void 0===b?_:b,w=t.projectionMatrix,P=void 0===w?null:w,S=t.fovy,T=void 0===S?75:S,A=t.near,x=void 0===A?.1:A,O=t.far,R=void 0===O?1e3:O,C=t.longitude,M=void 0===C?null:C,k=t.latitude,L=void 0===k?null:k,I=t.zoom,N=void 0===I?null:I,F=t.position,j=void 0===F?null:F,D=t.modelMatrix,B=void 0===D?null:D,U=t.distanceScales,G=void 0===U?null:U;if(this.isGeographicCoordinateSystem=t.isGeographicCoordinateSystem,this.id=r||this.constructor.displayName||"viewport",this.isGeospatial=Number.isFinite(L)&&Number.isFinite(M),this.x=o,this.y=u,this.width=l||1,this.height=v||1,this.zoom=N,Number.isFinite(this.zoom)||(this.zoom=this.isGeospatial?(0,h.getMeterZoom)({latitude:L}):0),this.scale=Math.pow(2,this.zoom),this.distanceScales=this.isGeospatial?(0,h.getDistanceScales)({latitude:L,longitude:M,scale:this.scale,isGeographicCoordinateSystem:this.isGeographicCoordinateSystem}):G||m,this.focalDistance=t.focalDistance||1,this.distanceScales.metersPerPixel=new s.Vector3(this.distanceScales.metersPerPixel),this.distanceScales.pixelsPerMeter=new s.Vector3(this.distanceScales.pixelsPerMeter),this.position=y,this.meterOffset=y,j&&(this.position=j,this.modelMatrix=B,this.meterOffset=B?B.transformVector(j):j),this.viewMatrixUncentered=E,this.isGeospatial?(this.center=(0,h.getWorldPosition)({longitude:M,latitude:L,scale:this.scale,distanceScales:this.distanceScales,meterOffset:this.meterOffset}),this.viewMatrix=(new s.Matrix4).multiplyRight(this.viewMatrixUncentered).scale([1,-1,1]).translate(new s.Vector3(this.center||y).negate())):(this.center=j,this.viewMatrix=E),P)this.projectionMatrix=P;else{(0,p.default)(Number.isFinite(T));var V=Math.PI/180,z=T*V,W=this.width/this.height;this.projectionMatrix=(0,d.default)([],z,W,x,R)}this._initMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this),this.getMatrices=this.getMatrices.bind(this)}return i(e,[{key:"equals",value:function(t){return t instanceof e&&t.width===this.width&&t.height===this.height&&(0,s.equals)(t.projectionMatrix,this.projectionMatrix)&&(0,s.equals)(t.viewMatrix,this.viewMatrix)}},{key:"project",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,i=void 0===n||n,o=r(e,3),a=o[0],s=o[1],u=o[2],c=void 0===u?0:u,l=this.projectFlat([a,s]),f=r(l,2),d=f[0],p=f[1],v=(0,h.worldToPixels)([d,p,c],this.pixelProjectionMatrix),g=r(v,2),y=g[0],_=g[1],m=i?_:this.height-_;return 2===e.length?[y,m]:[y,m,v[2]]}},{key:"unproject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,i=void 0===n||n,o=t.targetZ,a=r(e,3),s=a[0],u=a[1],c=a[2],l=i?u:this.height-u,f=(0,h.pixelsToWorld)([s,l,c],this.pixelUnprojectionMatrix,o),d=this.unprojectFlat(f),p=r(d,2),v=p[0],g=p[1];return Number.isFinite(c)?[v,g,f[2]]:Number.isFinite(o)?[v,g,o]:[v,g]}},{key:"projectFlat",value:function(e){var t=r(e,2);return t[0],t[1],arguments.length>1&&void 0!==arguments[1]||this.scale,this._projectFlat.apply(this,arguments)}},{key:"unprojectFlat",value:function(e){return arguments.length>1&&void 0!==arguments[1]||this.scale,this._unprojectFlat.apply(this,arguments)}},{key:"_projectFlat",value:function(e){return arguments.length>1&&void 0!==arguments[1]||this.scale,e}},{key:"_unprojectFlat",value:function(e){return arguments.length>1&&void 0!==arguments[1]||this.scale,e}},{key:"getMercatorParams",value:function(){var e=this._addMetersToLngLat([this.longitude||0,this.latitude||0],this.meterOffset);return{longitude:e[0],latitude:e[1]}}},{key:"isMapSynched",value:function(){return!1}},{key:"getDistanceScales",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(0,h.getDistanceScales)({longitude:e[0],latitude:e[1],scale:this.scale,highPrecision:!0}):this.distanceScales}},{key:"getMatrices",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.modelMatrix,n=void 0===t?null:t,r=this.viewProjectionMatrix,i=this.pixelProjectionMatrix,o=this.pixelUnprojectionMatrix;n&&(r=(0,l.default)([],this.viewProjectionMatrix,n),i=(0,l.default)([],this.pixelProjectionMatrix,n),o=(0,f.default)([],i));var a=Object.assign({modelViewProjectionMatrix:r,viewProjectionMatrix:this.viewProjectionMatrix,viewMatrix:this.viewMatrix,projectionMatrix:this.projectionMatrix,pixelProjectionMatrix:i,pixelUnprojectionMatrix:o,width:this.width,height:this.height,scale:this.scale});return a}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"getCameraDirection",value:function(){return this.cameraDirection}},{key:"getCameraUp",value:function(){return this.cameraUp}},{key:"_addMetersToLngLat",value:function(e,t){var n=r(e,3),i=n[0],o=n[1],a=n[2],s=void 0===a?0:a,u=this._metersToLngLatDelta(t),c=r(u,3),l=c[0],f=c[1],d=c[2],h=void 0===d?0:d;return 2===e.length?[i+l,o+f]:[i+l,o+f,s+h]}},{key:"_metersToLngLatDelta",value:function(e){var t=r(e,3),n=t[0],i=t[1],o=t[2],a=void 0===o?0:o;(0,p.default)(Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(a),"Illegal argument to Viewport");var s=this.distanceScales,u=s.pixelsPerMeter,c=s.degreesPerPixel,l=n*u[0]*c[0],f=i*u[1]*c[1];return 2===e.length?[l,f]:[l,f,a]}},{key:"_initMatrices",value:function(){var e=(0,a.createMat4)();(0,l.default)(e,e,this.projectionMatrix),(0,l.default)(e,e,this.viewMatrix),this.viewProjectionMatrix=e,this.viewMatrixInverse=(0,f.default)([],this.viewMatrix)||this.viewMatrix;var t=(0,a.extractCameraVectors)({viewMatrix:this.viewMatrix,viewMatrixInverse:this.viewMatrixInverse}),n=t.eye,r=t.direction,i=t.up;this.cameraPosition=n,this.cameraDirection=r,this.cameraUp=i;var s=(0,a.createMat4)();(0,u.default)(s,s,[this.width/2,-this.height/2,1]),(0,c.default)(s,s,[1,-1,0]),(0,l.default)(s,s,this.viewProjectionMatrix),this.pixelProjectionMatrix=s,this.pixelUnprojectionMatrix=(0,f.default)((0,a.createMat4)(),this.pixelProjectionMatrix),this.pixelUnprojectionMatrix||o.default.warn("Pixel project matrix not invertible")}}]),e}();t.default=b,b.displayName="Viewport"},function(e,t,n){var r=n(6)("unscopables"),i=Array.prototype;null==i[r]&&n(19)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var r=n(58)("meta"),i=n(5),o=n(18),a=n(10).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(4)((function(){return u(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&u(e)&&!o(e,r)&&l(e),e}}},function(e,t,n){"use strict";t.b=c;var r=n(8),i=n(1),o=n.n(i),a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6};function c(e){var t="string"==typeof e?u[e]||u.TRIANGLES:e;return o()(t>=0&&t<=u.TRIANGLE_FAN,"Illegal drawMode"),t}var l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e);var i=t.id,o=t.drawMode,a=void 0===o?u.TRIANGLES:o,l=t.vertexCount,f=void 0===l?void 0:l,d=t.attributes;this.id=i||n.i(r.d)(this.constructor.name),this.drawMode=c(a),this.vertexCount=f,this.attributes={},this.needsRedraw=!0,this.userData={},Object.seal(this),d&&this.setAttributes(d)}return a(e,[{key:"setNeedsRedraw",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.needsRedraw=e,this}},{key:"getNeedsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.clearRedrawFlags,n=void 0!==t&&t,r=!1;return r=r||this.needsRedraw,this.needsRedraw=this.needsRedraw&&!n,r}},{key:"setVertexCount",value:function(e){this.vertexCount=e}},{key:"getVertexCount",value:function(){return void 0!==this.vertexCount?this.vertexCount:this.attributes.indices?this.attributes.indices.value.length:this.attributes.vertices?this.attributes.vertices.value.length/3:!!this.attributes.positions&&this.attributes.positions.value.length/3}},{key:"hasAttribute",value:function(e){return Boolean(this.attributes[e])}},{key:"getAttribute",value:function(e){var t=this.attributes[e];return o()(t),t.value}},{key:"getArray",value:function(e){var t=this.attributes[e];return o()(t),t.value}},{key:"getAttributes",value:function(){return this.attributes}},{key:"setAttributes",value:function(e){for(var t in e){var n=e[t];n=ArrayBuffer.isView(n)?{value:n}:n,o()(ArrayBuffer.isView(n.value),this._print(t)+": must be typed array or object with value as typed array"),this._autoDetectAttribute(t,n),this.attributes[t]=Object.assign({},n,{instanced:n.instanced||0})}return this.setNeedsRedraw(),this}},{key:"_autoDetectAttribute",value:function(e,t){var n=void 0;switch(e){case"indices":n=n||"indices";break;case"texCoords":case"texCoord1":case"texCoord2":case"texCoord3":n="uvs";break;case"vertices":case"positions":case"normals":case"pickingColors":n="vectors"}switch(n){case"vectors":t.size=t.size||3;break;case"uvs":t.size=t.size||2;break;case"indices":t.size=t.size||1,t.isIndexed=t.isIndexed||!0,o()(t.value instanceof Uint16Array||t.value instanceof Uint32Array,'attribute array for "indices" must be of integer type')}o()(t.size,"attribute "+e+" needs size")}},{key:"_print",value:function(e){return"Geometry "+this.id+" attribute "+e}}]),e}();t.a=l},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,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){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(28),i=n(210),o=n(136),a=n(2),s=n(11),u=n(153),c={},l={};(t=e.exports=function(e,t,n,f,d){var h,p,v,g,y=d?function(){return e}:u(e),_=r(n,f,t?2:1),m=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(h=s(e.length);h>m;m++)if((g=t?_(a(p=e[m])[0],p[1]):_(e[m]))===c||g===l)return g}else for(v=y.call(e);!(p=v.next()).done;)if((g=i(v,_,p.value,t))===c||g===l)return g}).BREAK=c,t.RETURN=l},function(e,t){e.exports=!1},function(e,t,n){var r=n(2),i=n(216),o=n(132),a=n(144)("IE_PROTO"),s=function(){},u="prototype",c=function(){var e,t=n(131)("iframe"),r=o.length;for(t.style.display="none",n(134).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[u][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(218),i=n(132).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(218),i=n(132);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(20);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(3),i=n(10),o=n(9),a=n(6)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(36),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(249);n.d(t,"AnimationLoop",(function(){return r.a})),n.d(t,"requestAnimationFrame",(function(){return r.b})),n.d(t,"cancelAnimationFrame",(function(){return r.c}));var i=n(104);n.d(t,"Model",(function(){return i.a}))},function(e,t,n){"use strict";var r=n(663);n.d(t,"g",(function(){return r.c})),n.d(t,"c",(function(){return r.a})),n.d(t,"d",(function(){return r.b})),n.d(t,"h",(function(){return r.d}));var i=n(664);n.d(t,"a",(function(){return i.a})),n.d(t,"e",(function(){return i.b}));var o=n(265);n.d(t,"f",(function(){return o.a}));var a=n(164);n.d(t,"b",(function(){return a.a}));var s=n(665);n.d(t,"j",(function(){return s.a}));var u=n(264);n.d(t,"i",(function(){return u.a})),n(46)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25);n.d(t,"GL",(function(){return r.d})),n.d(t,"default",(function(){return r.d}));var i=n(268);n.d(t,"Image",(function(){return i.e})),n.d(t,"WebGLRenderingContext",(function(){return i.a})),n.d(t,"WebGLProgram",(function(){return i.f})),n.d(t,"WebGLShader",(function(){return i.g})),n.d(t,"WebGLBuffer",(function(){return i.d})),n.d(t,"WebGLFramebuffer",(function(){return i.h})),n.d(t,"WebGLRenderbuffer",(function(){return i.i})),n.d(t,"WebGLTexture",(function(){return i.j})),n.d(t,"WebGLUniformLocation",(function(){return i.k})),n.d(t,"WebGLActiveInfo",(function(){return i.l})),n.d(t,"WebGLShaderPrecisionFormat",(function(){return i.m})),n.d(t,"WebGL2RenderingContext",(function(){return i.b})),n.d(t,"webGLTypesAvailable",(function(){return i.c}));var o=n(7);n.d(t,"isWebGL",(function(){return o.a})),n.d(t,"isWebGL2",(function(){return o.b})),n.d(t,"createGLContext",(function(){return o.d})),n.d(t,"deleteGLContext",(function(){return o.e}));var a=n(68);n.d(t,"withParameters",(function(){return a.f})),n.d(t,"resetParameters",(function(){return a.a}));var s=n(165);n.d(t,"getContextInfo",(function(){return s.a}));var u=n(67);n.d(t,"Buffer",(function(){return u.a}));var c=n(111);n.d(t,"Shader",(function(){return c.a})),n.d(t,"VertexShader",(function(){return c.b})),n.d(t,"FragmentShader",(function(){return c.c}));var l=n(109);n.d(t,"Program",(function(){return l.a}));var f=n(69);n.d(t,"Framebuffer",(function(){return f.a}));var d=n(110);n.d(t,"Renderbuffer",(function(){return d.a}));var h=n(167);n.d(t,"Texture2D",(function(){return h.a}));var p=n(275);n.d(t,"TextureCube",(function(){return p.a}));var v=n(270);n.d(t,"draw",(function(){return v.a}));var g=n(107);n.d(t,"clear",(function(){return g.a}));var y=n(272);n.d(t,"readPixels",(function(){return y.a}));var _=n(168);n.d(t,"parseUniformName",(function(){return _.a})),n.d(t,"getUniformSetter",(function(){return _.b})),n.d(t,"checkUniformValues",(function(){return _.c}));var m=n(169);n.d(t,"VertexArray",(function(){return m.a}))},function(e,t,n){"use strict";var r,i=n(25),o=n(38),a=n(7),s=n(68),u=n(30),c=n(67),l=n(8),f=n(1),d=n.n(f),h=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=[i.a.LINEAR,i.a.NEAREST],g=(p(r={},i.a.RGB,{dataFormat:i.a.RGB,types:[i.a.UNSIGNED_BYTE,i.a.UNSIGNED_SHORT_5_6_5]}),p(r,i.a.RGBA,{dataFormat:i.a.RGBA,types:[i.a.UNSIGNED_BYTE,i.a.UNSIGNED_SHORT_4_4_4_4,i.a.UNSIGNED_SHORT_5_5_5_1]}),p(r,i.a.ALPHA,{dataFormat:i.a.ALPHA,types:[i.a.UNSIGNED_BYTE]}),p(r,i.a.LUMINANCE,{dataFormat:i.a.LUMINANCE,types:[i.a.UNSIGNED_BYTE]}),p(r,i.a.LUMINANCE_ALPHA,{dataFormat:i.a.LUMINANCE_ALPHA,types:[i.a.UNSIGNED_BYTE]}),r);function y(e,t){d()(n.i(a.a)(e),a.h);var r=g[t];if(!r)return!1;if(void 0===r.gl1&&void 0===r.gl2)return!0;var i=n.i(a.b)(e)&&r.gl2||r.gl1;return"string"==typeof i?e.getExtension(i):i}function _(e,t){var n=g[t];switch(n&&n.types[0]){case i.a.FLOAT:return e.getExtension("OES_texture_float_linear");case i.a.HALF_FLOAT:return e.getExtension("OES_texture_half_float_linear");default:return!0}}var m=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=r.id,o=void 0===i?n.i(l.d)("texture"):i,a=r.handle,s=r.target,u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,{id:o,handle:a}));return u.target=s,u.hasFloatTexture=e.getExtension("OES_texture_float"),u.textureUnit=void 0,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),h(t,null,[{key:"isSupported",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.format,i=t.linearFiltering;d()(n.i(a.a)(e),a.h);var o=!0;return r&&(o=(o=o&&y(e,r))&&(!i||_(e,r))),o}}]),h(t,[{key:"toString",value:function(){return"Texture("+this.id+","+this.width+"x"+this.height+")"}},{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.pixels,r=void 0===n?null:n,o=e.format,a=void 0===o?i.a.RGBA:o,s=e.type,u=void 0===s?i.a.UNSIGNED_BYTE:s,c=e.border,f=void 0===c?0:c,d=e.recreate,h=void 0!==d&&d,v=e.parameters,g=void 0===v?{}:v,y=e.pixelStore,_=void 0===y?{}:y,m=e.unpackFlipY,b=void 0===m||m,E=e.mipmaps,w=void 0===E||E;t||(t=r);var P=e.width,S=e.height,T=e.dataFormat,A=this._deduceParameters({format:a,type:u,dataFormat:T,compressed:!1,data:t,width:P,height:S});P=A.width,S=A.height,T=A.dataFormat,this.width=P,this.height=S,this.format=a,this.type=u,this.dataFormat=T,this.border=f,this.mipmaps=w;var x=p({},i.a.UNPACK_FLIP_Y_WEBGL,b),O=Object.assign({},x,_);this._isNPOT()&&(l.b.warn("texture: "+this+" is Non-Power-Of-Two, disabling mipmaping"),w=!1,this._updateForNPOT(g)),this.setImageData({data:t,width:P,height:S,format:a,type:u,dataFormat:T,border:f,mipmaps:w,parameters:O}),w&&this.generateMipmap(),this.setParameters(g),h&&(this.data=t)}},{key:"resize",value:function(e){var t=e.width,n=e.height;return t!==this.width||n!==this.height?this.initialize({width:t,height:n,format:this.format,type:this.type,dataFormat:this.dataFormat,border:this.border,mipmaps:!1}):this}},{key:"generateMipmap",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.gl.bindTexture(this.target,this.handle),n.i(s.f)(this.gl,t,(function(){e.gl.generateMipmap(e.target)})),this.gl.bindTexture(this.target,null),this}},{key:"setImageData",value:function(e){var t=this,r=e.target,o=void 0===r?this.target:r,u=e.pixels,c=void 0===u?null:u,l=e.data,f=void 0===l?null:l,h=e.width,p=e.height,v=e.level,g=void 0===v?0:v,y=e.format,_=void 0===y?i.a.RGBA:y,m=e.type,b=e.dataFormat,E=e.offset,w=void 0===E?0:E,P=e.border,S=void 0===P?0:P,T=e.compressed,A=void 0!==T&&T,x=e.parameters,O=void 0===x?{}:x;f||(f=c);var R=this._deduceParameters({format:_,type:m,dataFormat:b,compressed:A,data:f,width:h,height:p});m=R.type,b=R.dataFormat,A=R.compressed,h=R.width,p=R.height;var C=this.gl;C.bindTexture(this.target,this.handle);var M,k=this._getDataType({data:f,compressed:A});f=k.data,M=k.dataType,n.i(s.f)(this.gl,O,(function(){switch(M){case"null":C.texImage2D(o,g,_,h,p,S,b,m,f);break;case"typed-array":C.texImage2D(o,g,_,h,p,S,b,m,f,w);break;case"buffer":d()(n.i(a.b)(C),a.i),C.bindBuffer(i.a.PIXEL_UNPACK_BUFFER,f.handle||f),C.texImage2D(o,g,_,h,p,S,_,m,w);break;case"browser-object":C.texImage2D(o,g,_,_,m,f);break;case"compressed":C.compressedTexImage2D(t.target,g,_,h,p,S,f);break;default:d()(!1,"Unknown image data type")}}))}},{key:"setSubImageData",value:function(e){var t=this,r=e.target,u=void 0===r?this.target:r,l=e.pixels,f=void 0===l?null:l,h=e.data,p=void 0===h?null:h,v=e.x,g=void 0===v?0:v,y=e.y,_=void 0===y?0:y,m=e.width,b=e.height,E=e.level,w=void 0===E?0:E,P=e.format,S=void 0===P?i.a.RGBA:P,T=e.type,A=e.dataFormat,x=e.compressed,O=void 0!==x&&x,R=e.offset,C=void 0===R?0:R,M=e.border,k=void 0===M?0:M,L=e.parameters,I=void 0===L?{}:L,N=this._deduceParameters({format:S,type:T,dataFormat:A,compressed:O,data:p,width:m,height:b});if(T=N.type,A=N.dataFormat,O=N.compressed,m=N.width,b=N.height,p||(p=f),p&&p.data){var F=p;p=F.data,m=F.shape[0],b=F.shape[1]}p instanceof c.a&&(p=p.handle),this.gl.bindTexture(this.target,this.handle),n.i(s.f)(this.gl,I,(function(){O?t.gl.compressedTexSubImage2D(u,w,g,_,m,b,S,p):null===p?t.gl.texSubImage2D(u,w,S,m,b,k,A,T,null):ArrayBuffer.isView(p)?t.gl.texSubImage2D(u,w,g,_,m,b,S,T,p,C):p instanceof o.e?(d()(n.i(a.b)(t.gl),a.i),t.gl.bindBuffer(i.a.PIXEL_UNPACK_BUFFER,p),t.gl.texSubImage2D(u,w,S,m,b,k,S,T,C),t.gl.bindBuffer(i.a.GL_PIXEL_UNPACK_BUFFER,null)):t.gl.texSubImage2D(u,w,g,_,S,T,p)})),this.gl.bindTexture(this.target,null)}},{key:"copyFramebuffer",value:function(e){var t=(void 0===e.target&&this.target,e.framebuffer),n=(e.offset,e.x),r=void 0===n?0:n,o=e.y,a=void 0===o?0:o,s=e.width,u=e.height,c=e.level,l=void 0===c?0:c,f=e.internalFormat,d=void 0===f?i.a.RGBA:f,h=e.border,p=void 0===h?0:h;t&&t.bind(),this.bind(),this.gl.copyTexImage2D(this.target,l,d,r,a,s,u,p),this.unbind(),t&&t.unbind()}},{key:"getActiveUnit",value:function(){return this.gl.getParameter(i.a.ACTIVE_TEXTURE)-i.a.TEXTURE0}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit;if(void 0===e)throw new Error("Texture.bind: must specify texture unit");return this.textureUnit=e,this.gl.activeTexture(i.a.TEXTURE0+e),this.gl.bindTexture(this.target,this.handle),e}},{key:"unbind",value:function(){if(void 0===this.textureUnit)throw new Error("Texture.unbind: texture unit not specified");return this.gl.activeTexture(i.a.TEXTURE0+this.textureUnit),this.gl.bindTexture(this.target,null),this.textureUnit}},{key:"_getDataType",value:function(e){var t=e.data,n=e.compressed;return void 0!==n&&n?{data:t,dataType:"compressed"}:null===t?{data:t,dataType:"null"}:ArrayBuffer.isView(t)?{data:t,dataType:"typed-array"}:t instanceof c.a?{data:t.handle,dataType:"buffer"}:t instanceof o.e?{data:t,dataType:"buffer"}:{data:t,dataType:"browser-object"}}},{key:"setImage3D",value:function(e){var t=e.level,n=void 0===t?0:t,r=e.internalformat,o=void 0===r?i.a.RGBA:r,a=e.width,s=e.height,u=e.depth,l=void 0===u?1:u,f=e.border,d=void 0===f?0:f,h=e.format,p=e.type,v=void 0===p?i.a.UNSIGNED_BYTE:p,g=e.offset,y=void 0===g?0:g,_=e.pixels;return ArrayBuffer.isView(_)?(this.gl.texImage3D(this.target,n,o,a,s,l,d,h,v,_),this):(_ instanceof c.a&&(this.gl.bindBuffer(i.a.PIXEL_UNPACK_BUFFER,_.handle),this.gl.texImage3D(this.target,n,o,a,s,l,d,h,v,y)),this)}},{key:"_deduceParameters",value:function(e){var t=e.format,n=e.data,r=e.width,i=e.height,o=e.dataFormat,a=e.type,s=e.compressed,u=g[t];o=o||u&&u.dataFormat,a=a||u&&u.types[0],s=s||u&&u.compressed;var c=this._deduceImageSize({data:n,width:r,height:i});return{dataFormat:o,type:a,compressed:s,width:r=c.width,height:i=c.height,format:t,data:n}}},{key:"_deduceImageSize",value:function(e){var t,n=e.data,r=e.width,i=e.height;return t="undefined"!=typeof ImageData&&n instanceof ImageData?{width:n.width,height:n.height}:"undefined"!=typeof HTMLImageElement&&n instanceof HTMLImageElement?{width:n.naturalWidth,height:n.naturalHeight}:"undefined"!=typeof HTMLCanvasElement&&n instanceof HTMLCanvasElement?{width:n.width,height:n.height}:"undefined"!=typeof HTMLVideoElement&&n instanceof HTMLVideoElement?{width:n.videoWidth,height:n.videoHeight}:n?{width:r,height:i}:{width:r>=0?r:1,height:i>=0?i:1},d()(t,"Could not deduced texture size"),d()(void 0===r||t.width===r,"Deduced texture width does not match supplied width"),d()(void 0===i||t.height===i,"Deduced texture height does not match supplied height"),t}},{key:"_createHandle",value:function(){return this.gl.createTexture()}},{key:"_deleteHandle",value:function(){this.gl.deleteTexture(this.handle)}},{key:"_getParameter",value:function(e){switch(e){case i.a.TEXTURE_WIDTH:return this.width;case i.a.TEXTURE_HEIGHT:return this.height;default:this.gl.bindTexture(this.target,this.handle);var t=this.gl.getTexParameter(this.target,e);return this.gl.bindTexture(this.target,null),t}}},{key:"_setParameter",value:function(e,t){switch(this.gl.bindTexture(this.target,this.handle),t=this._getNPOTParam(e,t),e){case i.a.TEXTURE_MIN_LOD:case i.a.TEXTURE_MAX_LOD:this.gl.texParameterf(this.handle,e,t);break;case i.a.TEXTURE_WIDTH:case i.a.TEXTURE_HEIGHT:throw new Error("Cannot set emulated parameter");default:this.gl.texParameteri(this.target,e,t)}return this.gl.bindTexture(this.target,null),this}},{key:"_isNPOT",value:function(){return!(n.i(a.b)(this.gl)||n.i(l.e)(this.width)&&n.i(l.e)(this.height))}},{key:"_updateForNPOT",value:function(e){void 0===e[this.gl.TEXTURE_MIN_FILTER]&&(l.b.warn("texture: "+this+" is Non-Power-Of-Two, forcing TEXTURE_MIN_FILTER to LINEAR"),e[this.gl.TEXTURE_MIN_FILTER]=this.gl.LINEAR),void 0===e[this.gl.TEXTURE_WRAP_S]&&(l.b.warn("texture: "+this+" is Non-Power-Of-Two, forcing TEXTURE_WRAP_S to CLAMP_TO_EDGE"),e[this.gl.TEXTURE_WRAP_S]=this.gl.CLAMP_TO_EDGE),void 0===e[this.gl.TEXTURE_WRAP_T]&&(l.b.warn("texture: "+this+" is Non-Power-Of-Two, forcing TEXTURE_WRAP_T to CLAMP_TO_EDGE"),e[this.gl.TEXTURE_WRAP_T]=this.gl.CLAMP_TO_EDGE)}},{key:"_getNPOTParam",value:function(e,t){if(this._isNPOT())switch(e){case i.a.TEXTURE_MIN_FILTER:-1===v.indexOf(t)&&(l.b.warn("texture: "+this+" is Non-Power-Of-Two, forcing TEXTURE_MIN_FILTER to LINEAR"),t=i.a.LINEAR);break;case i.a.TEXTURE_WRAP_S:case i.a.TEXTURE_WRAP_T:t!==i.a.CLAMP_TO_EDGE&&(l.b.warn("texture: "+this+" is Non-Power-Of-Two, "+n.i(i.c)(e)+" to CLAMP_TO_EDGE"),t=i.a.CLAMP_TO_EDGE)}return t}}]),t}(u.a);t.a=m},function(e,t){e.exports={}},function(e,t,n){var r=n(10).f,i=n(18),o=n(6)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(0),i=n(34),o=n(4),a=n(148),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(e,t,n){var i={},s=o((function(){return!!a[e]()||"
"!="
"[e]()})),u=i[e]=s?t(f):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},f=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=l},function(e,t,n){var r=n(5);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(38),i=n(7),o=n(163),a=n(30),s=n(1),u=n.n(s),c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d="Illegal or missing parameter to Buffer",h=36662,p=36663,v=35982,g=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,r=t.size,i=void 0===r?1:r,o=t.offset,a=void 0===o?0:o,s=t.stride,u=void 0===s?0:s,c=t.normalized,l=void 0!==c&&c,d=t.integer,h=void 0!==d&&d,p=t.instanced,v=void 0===p?0:p;f(this,e),this.type=n,this.size=i,this.offset=a,this.stride=u,this.normalized=l,this.integer=h,this.instanced=v},y=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,t);var i=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.target=n.target||(i.gl.webgl2?h:r.a.ARRAY_BUFFER),i.index=null,i.setData(n),Object.seal(i),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),c(t,[{key:"setDataLayout",value:function(e){var t=e.layout,n=e.type,r=e.size,i=void 0===r?1:r,o=e.offset,a=void 0===o?0:o,s=e.stride,u=void 0===s?0:s,c=e.normalized,l=void 0!==c&&c,f=e.integer,d=void 0!==f&&f,h=e.instanced,p=void 0===h?0:h;return this.layout=t||new g({type:n||this.type,size:i,offset:a,stride:u,normalized:l,integer:d,instanced:p}),this}},{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,i=e.bytes,a=e.usage,s=void 0===a?r.a.STATIC_DRAW:a,c=(e.layout,e.type),l=(e.size,e.offset,e.stride,e.normalized,e.integer,e.instanced,arguments[0]);t?(c=c||n.i(o.b)(t),i=t.byteLength,u()(c,d)):(c=c||r.a.FLOAT,i&&0!==i||(i=0,t=new Float32Array(0))),this.bytes=i,this.bytesUsed=i,this.data=t,this.type=c,this.usage=s,this.setDataLayout(Object.assign(l));var f=this.gl.webgl2?p:this.target;return this.gl.bindBuffer(f,this.handle),this.gl.bufferData(f,t||i,s),this.gl.bindBuffer(f,null),this}},{key:"setData",value:function(e){return this.initialize(e)}},{key:"subData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,r=e.offset,o=void 0===r?0:r,a=e.srcOffset,s=void 0===a?0:a,c=e.length;u()(t,d);var l=this.gl.webgl2?p:this.target;return this.gl.bindBuffer(l,this.handle),0!==s||void 0!==c?(n.i(i.g)(this.gl),this.gl.bufferSubData(this.target,o,t,s,c||0)):this.gl.bufferSubData(l,o,t),this.gl.bindBuffer(l,null),this}},{key:"copyData",value:function(e){var t=e.sourceBuffer,r=e.readOffset,o=void 0===r?0:r,a=e.writeOffset,s=void 0===a?0:a,u=e.size;return n.i(i.g)(this.gl),this.gl.bindBuffer(h,t.handle),this.gl.bindBuffer(p,this.handle),this.gl.copyBufferSubData(h,p,o,s,u),this.gl.bindBuffer(h,null),this.gl.bindBuffer(p,null),this}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dstData,r=void 0===t?null:t,a=e.srcByteOffset,s=void 0===a?0:a,c=e.dstOffset,l=void 0===c?0:c,f=e.length,d=void 0===f?0:f;n.i(i.g)(this.gl);var p=n.i(o.a)(this.type,{clamped:!1}),v=this._getAvailableElementCount(s),g=void 0,y=void 0,_=l;r?g=(y=r.length)-_:y=_+(g=Math.min(v,d||v));var m=Math.min(v,g);return d=d||m,u()(d<=m,"Invalid srcByteOffset, dstOffset and length combination"),r=r||new p(y),this.gl.bindBuffer(h,this.handle),this.gl.getBufferSubData(h,s,r,l,d),this.gl.bindBuffer(h,null),r}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,o=void 0===t?this.target:t,a=e.index,s=void 0===a?this.index:a,c=e.offset,l=void 0===c?0:c,f=e.size,h=o===r.a.UNIFORM_BUFFER||o===v?void 0!==f?"ranged":" indexed":"non-indexed";switch(h){case"non-indexed":this.gl.bindBuffer(o,this.handle);break;case"indexed":n.i(i.g)(this.gl),u()(0===l,d),this.gl.bindBufferBase(o,s,this.handle);break;case"ranged":n.i(i.g)(this.gl),this.gl.bindBufferRange(o,s,this.handle,l,f);break;default:throw new Error(d)}return this}},{key:"unbind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=void 0===t?this.target:t,i=e.index,o=void 0===i?this.index:i,a=n===r.a.UNIFORM_BUFFER||n===v;return a?this.gl.bindBufferBase(n,o,null):this.gl.bindBuffer(n,null),this}},{key:"getIndexedParameter",value:function(e,t){var n=this.gl.webgl2?h:this.target;return this.gl.bindBuffer(n,t),this.gl.getIndexedParameter(e,t)}},{key:"_createHandle",value:function(){return this.gl.createBuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteBuffer(this.handle)}},{key:"_getParameter",value:function(e){this.gl.bindBuffer(this.target,this.handle);var t=this.gl.getBufferParameter(this.target,e);return this.gl.bindBuffer(this.target,null),t}},{key:"_getAvailableElementCount",value:function(e){var t=n.i(o.a)(this.type,{clamped:!1});return this.bytes/t.BYTES_PER_ELEMENT-e/t.BYTES_PER_ELEMENT}}]),t}(a.a);t.a=y},function(e,t,n){"use strict";t.e=h,t.f=function(e,t,r){if(n.i(s.f)(t))return r(e);var o=t.nocatch,u=void 0===o||o;a()(!t.frameBuffer),n.i(i.b)(e),h(e,t);var c=void 0;if(u)c=r(e),n.i(i.c)(e);else try{c=r(e)}finally{n.i(i.c)(e)}return c};var r=n(46),i=n(164),o=n(1),a=n.n(o),s=n(8),u=n(266);n.d(t,"b",(function(){return u.d})),n.d(t,"c",(function(){return u.a})),n.d(t,"d",(function(){return u.e})),n.d(t,"a",(function(){return u.f})),n.d(t,"g",(function(){return u.g}));var c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var f={framebuffer:function(e,t){var n=t&&t.handle?t.handle:t;return e.bindFramebuffer(r.a.FRAMEBUFFER,n)},blend:function(e,t){return t?e.enable(r.a.BLEND):e.disable(r.a.BLEND)},blendColor:function(e,t){return e.blendColor.apply(e,l(t))},blendEquation:function(e,t){t=d(t)?t:[t,t],e.blendEquationSeparate.apply(e,l(t))},blendFunc:function(e,t){t=d(t)&&2===t.length?[].concat(l(t),l(t)):t,e.blendFuncSeparate.apply(e,l(t))},clearColor:function(e,t){return e.clearColor.apply(e,l(t))},clearDepth:function(e,t){return e.clearDepth(t)},clearStencil:function(e,t){return e.clearStencil(t)},colorMask:function(e,t){return e.colorMask.apply(e,l(t))},cull:function(e,t){return t?e.enable(r.a.CULL_FACE):e.disable(r.a.CULL_FACE)},cullFace:function(e,t){return e.cullFace(t)},depthTest:function(e,t){return t?e.enable(r.a.DEPTH_TEST):e.disable(r.a.DEPTH_TEST)},depthFunc:function(e,t){return e.depthFunc(t)},depthMask:function(e,t){return e.depthMask(t)},depthRange:function(e,t){return e.depthRange.apply(e,l(t))},dither:function(e,t){return t?e.enable(r.a.DITHER):e.disable(r.a.DITHER)},derivativeHint:function(e,t){e.hint(r.a.FRAGMENT_SHADER_DERIVATIVE_HINT,t)},frontFace:function(e,t){return e.frontFace(t)},mipmapHint:function(e,t){return e.hint(r.a.GENERATE_MIPMAP_HINT,t)},lineWidth:function(e,t){return e.lineWidth(t)},polygonOffsetFill:function(e,t){return t?e.enable(r.a.POLYGON_OFFSET_FILL):e.disable(r.a.POLYGON_OFFSET_FILL)},polygonOffset:function(e,t){return e.polygonOffset.apply(e,l(t))},sampleCoverage:function(e,t){return e.sampleCoverage.apply(e,l(t))},scissorTest:function(e,t){return t?e.enable(r.a.SCISSOR_TEST):e.disable(r.a.SCISSOR_TEST)},scissor:function(e,t){return e.scissor.apply(e,l(t))},stencilTest:function(e,t){return t?e.enable(r.a.STENCIL_TEST):e.disable(r.a.STENCIL_TEST)},stencilMask:function(e,t){t=d(t)?t:[t,t];var n=c(t,2),i=n[0],o=n[1];e.stencilMaskSeparate(r.a.FRONT,i),e.stencilMaskSeparate(r.a.BACK,o)},stencilFunc:function(e,t){t=d(t)&&3===t.length?[].concat(l(t),l(t)):t;var n=c(t,6),i=n[0],o=n[1],a=n[2],s=n[3],u=n[4],f=n[5];e.stencilFuncSeparate(r.a.FRONT,i,o,a),e.stencilFuncSeparate(r.a.BACK,s,u,f)},stencilOp:function(e,t){t=d(t)&&3===t.length?[].concat(l(t),l(t)):t;var n=c(t,6),i=n[0],o=n[1],a=n[2],s=n[3],u=n[4],f=n[5];e.stencilOpSeparate(r.a.FRONT,i,o,a),e.stencilOpSeparate(r.a.BACK,s,u,f)},viewport:function(e,t){return e.viewport.apply(e,l(t))}};function d(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function h(e,t){for(var r in n.i(u.c)(e,t),t){var i=f[r];i&&i(e,t[r],r)}}},function(e,t,n){"use strict";var r=n(38),i=n(7),o=n(108),a=n(107),s=n(30),u=n(167),c=n(110),l=n(163),f=n(8),d=n(1),h=n.n(d),p=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},v=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=36160,b=36009,E=36064,w=36161,P=3553,S="Multiple render targets not supported",T=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y(this,t);var r=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.width=null,r.height=null,r.attachments={},r.readBuffer=E,r.drawBuffers=[E],r.initialize(n),Object.seal(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),v(t,[{key:"MAX_COLOR_ATTACHMENTS",get:function(){return this.gl.getParameter(this.gl.MAX_COLOR_ATTACHMENTS)}},{key:"MAX_DRAW_BUFFERS",get:function(){return this.gl.getParameter(this.gl.MAX_DRAW_BUFFERS)}}],[{key:"isSupported",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.colorBufferFloat,o=t.colorBufferHalfFloat;return r&&e.getExtension(n.i(i.b)(e)?"EXT_color_buffer_float":"WEBGL_color_buffer_float"),o&&e.getExtension(n.i(i.b)(e)?"EXT_color_buffer_float":"EXT_color_buffer_half_float")}},{key:"getDefaultFramebuffer",value:function(e){return e.luma=e.luma||{},e.luma.defaultFramebuffer||(e.luma.defaultFramebuffer=new t(e,{handle:null,attachments:{}})),e.luma.defaultFramebuffer}}]),v(t,[{key:"initialize",value:function(e){var t=e.width,n=void 0===t?1:t,r=e.height,i=void 0===r?1:r,o=e.attachments,a=void 0===o?null:o,s=e.color,u=void 0===s||s,c=e.depth,l=void 0===c||c,f=e.stencil,d=void 0!==f&&f,p=e.check,v=void 0===p||p,g=e.readBuffer,y=e.drawBuffers;if(h()(n>=0&&i>=0,"Width and height need to be integers"),this.width=n,this.height=i,a)for(var _ in a){var m=a[_];(Array.isArray(m)?m[0]:m).resize({width:n,height:i})}else a=this._createDefaultAttachments({color:u,depth:l,stencil:d,width:n,height:i});this.update({clearAttachments:!0,attachments:a,readBuffer:g,drawBuffers:y}),a&&v&&this.checkStatus()}},{key:"update",value:function(e){var t=e.attachments,n=void 0===t?{}:t,r=e.readBuffer,i=e.drawBuffers,o=e.clearAttachments,a=void 0!==o&&o;this.attach(n,{clearAttachments:a});var s=this.gl,u=s.bindFramebuffer(m,this.handle);return r&&this._setReadBuffer(r),i&&this._setDrawBuffers(i),s.bindFramebuffer(m,u),this}},{key:"resize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height;if(null===this.handle)return h()(void 0===t&&void 0===n),this.width=this.gl.drawingBufferWidth,this.height=this.gl.drawingBufferHeight,this;for(var r in void 0===t&&(t=this.gl.drawingBufferWidth),void 0===n&&(n=this.gl.drawingBufferHeight),t!==this.width&&n!==this.height&&f.b.log(2,"Resizing framebuffer "+this.id+" to "+t+"x"+n),this.attachments)this.attachments[r].resize({width:t,height:n});return this.width=t,this.height=n,this}},{key:"attach",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clearAttachments,i=void 0!==r&&r,o={};i&&Object.keys(this.attachments).forEach((function(e){o[e]=null})),Object.assign(o,e);var a=this.gl.bindFramebuffer(m,this.handle);for(var s in o){h()("undefined"!==s,"Misspelled framebuffer binding point?");var u=o[s],l=u;if(l)if(l instanceof c.a)this._attachRenderbuffer({attachment:s,renderbuffer:l});else if(Array.isArray(u)){var f=p(u,3),d=f[0],v=f[1],g=void 0===v?0:v,y=f[2],_=void 0===y?0:y;l=d,this._attachTexture({attachment:s,texture:d,layer:g,level:_})}else this._attachTexture({attachment:s,texture:l,layer:0,level:0});else this._unattach({attachment:s});l&&l.resize({width:this.width,height:this.height})}this.gl.bindFramebuffer(m,a),Object.assign(this.attachments,e),Object.keys(this.attachments).filter((function(e){return!t.attachments[e]})).forEach((function(e){delete t.attachments[e]}))}},{key:"checkStatus",value:function(){var e=this.gl,t=e.bindFramebuffer(m,this.handle),n=e.checkFramebufferStatus(m);if(e.bindFramebuffer(m,t),n!==e.FRAMEBUFFER_COMPLETE)throw new Error(A(n));return this}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.color,r=e.depth,i=e.stencil,o=e.drawBuffers,s=void 0===o?[]:o,u=this.gl.bindFramebuffer(m,this.handle);return(t||r||i)&&n.i(a.a)(this.gl,{color:t,depth:r,stencil:i}),s.forEach((function(e,t){n.i(a.b)({drawBuffer:t,value:e})})),this.gl.bindFramebuffer(m,u),this}},{key:"readPixels",value:function(e){var t=e.x,i=void 0===t?0:t,o=e.y,a=void 0===o?0:o,s=e.width,u=void 0===s?this.width:s,c=e.height,f=void 0===c?this.height:c,d=e.format,h=void 0===d?r.a.RGBA:d,p=e.type,v=e.pixelArray,g=void 0===v?null:v,y=e.attachment,_=void 0===y?E:y,b=this.gl;if(_===r.a.COLOR_ATTACHMENT0&&null===this.handle&&(_=r.a.FRONT),!g){p=p||b.UNSIGNED_BYTE;var w=n.i(l.a)(p,{clamped:!1}),P=function(e){switch(e){case r.a.ALPHA:return 1;case r.a.RGB:return 3;case r.a.RGBA:return 4;default:throw new Error("Unknown format")}}(h);g=g||new w(u*f*P)}p=p||n.i(l.b)(g);var S=this.gl.bindFramebuffer(m,this.handle);return this.gl.readPixels(i,a,u,f,h,p,g),this.gl.bindFramebuffer(m,S),g}},{key:"copyToDataUrl",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attachment,r=void 0===t?E:t,i=e.maxHeight,o=void 0===i?Number.MAX_SAFE_INTEGER:i,a=this.readPixels({attachment:r}),s=this.width,u=this.height;u>o;){var c=n.i(f.g)({data:a,width:s,height:u});a=c.data,s=c.width,u=c.height}n.i(f.h)({data:a,width:s,height:u});var l=document.createElement("canvas");l.width=s,l.height=u;var d=l.getContext("2d"),h=d.createImageData(s,u);return h.data.set(a),d.putImageData(h,0,0),l.toDataURL()}},{key:"copyToImage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.image,n=void 0===t?null:t,r=e.attachment,i=void 0===r?E:r,o=e.maxHeight,a=(void 0===o&&Number.MAX_SAFE_INTEGER,this.readDataUrl({attachment:i}));return(n=n||new Image).src=a,n}},{key:"copyToTexture",value:function(e){var t=e.texture,n=e.target,r=e.xoffset,i=void 0===r?0:r,o=e.yoffset,a=void 0===o?0:o,s=e.zoffset,u=void 0===s?0:s,c=e.mipmapLevel,l=void 0===c?0:c,f=e.attachment,d=void 0===f?E:f,h=e.x,p=void 0===h?0:h,v=e.y,g=void 0===v?0:v,y=e.width,_=e.height,b=this.gl,w=b.bindFramebuffer(m,this.handle),S=b.readBuffer(d);switch(y=Number.isFinite(y)?y:t.width,_=Number.isFinite(_)?_:t.height,t.target){case P:case 34067:b.copyTexSubImage2D(n||t.target,l,i,a,p,g,y,_);break;case 35866:case 32879:b.copyTexSubImage3D(n||t.target,l,i,a,u,p,g,y,_)}return b.readBuffer(S),b.bindFramebuffer(m,w),t}},{key:"blit",value:function(e){var t=e.srcFramebuffer,o=e.attachment,a=void 0===o?E:o,s=e.srcX0,u=void 0===s?0:s,c=e.srcY0,l=void 0===c?0:c,f=e.srcX1,d=e.srcY1,p=e.dstX0,v=void 0===p?0:p,g=e.dstY0,y=void 0===g?0:g,_=e.dstX1,m=e.dstY1,w=e.color,P=void 0===w||w,S=e.depth,T=void 0!==S&&S,A=e.stencil,x=void 0!==A&&A,O=e.mask,R=void 0===O?0:O,C=e.filter,M=void 0===C?r.a.NEAREST:C,k=this.gl;h()(n.i(i.b)(k),i.i),t.handle||a!==E||(a=r.a.FRONT),P&&(R|=16384),T&&(R|=256),x&&(R|=1024),h()(R),f=void 0===f?t.width:f,d=void 0===d?t.height:d,_=void 0===_?this.width:_,m=void 0===m?this.height:m;var L=k.bindFramebuffer(36008,this.handle),I=k.bindFramebuffer(b,t.handle),N=k.readBuffer(a);return k.blitFramebuffer(u,l,f,d,v,y,_,m,R,M),k.readBuffer(N),k.bindFramebuffer(b,I),k.bindFramebuffer(36008,L),this}},{key:"invalidate",value:function(e){var t=e.attachments,r=void 0===t?[]:t,o=e.x,a=void 0===o?0:o,s=e.y,u=void 0===s?0:s,c=e.width,l=e.height,f=this.gl;h()(n.i(i.b)(f,i.i));var d=f.bindFramebuffer(b,this.handle);return 0===a&&0===u&&void 0===c&&void 0===l?f.invalidateFramebuffer(b,r):f.invalidateFramebuffer(b,r,a,u,c,l),f.bindFramebuffer(b,d),this}},{key:"getAttachmentParameter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attachment,n=void 0===t?E:t,r=e.pname,i=this._getAttachmentParameterFallback(r);return null===i&&(this.gl.bindTexture(m,this.handle),i=this.gl.getFramebufferAttachmentParameter(m,n,r),this.gl.bindTexture(m,null)),i}},{key:"getAttachmentParameters",value:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.ATTACHMENT_PARAMETERS||{},t={};for(var n in e)t[n]=this.getAttachmentParameter(n);return this}},{key:"show",value:function(){return"undefined"!=typeof window&&window.open(this.copyToDataUrl(),"luma-debug-texture"),this}},{key:"log",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.priority,n=void 0===t?0:t,r=e.message,i=void 0===r?"":r;if(n>f.b.priority||"undefined"==typeof window)return this;i=i||"Framebuffer "+this.id;var o=this.copyToDataUrl({maxHeight:100});return f.b.image({priority:n,message:i,image:o},i),this}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=void 0===t?m:t;return this.gl.bindFramebuffer(n,this.handle),this}},{key:"unbind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=void 0===t?m:t;return this.gl.bindFramebuffer(n,null),this}},{key:"_createDefaultAttachments",value:function(e){var t,n=e.color,i=e.depth,o=(e.stencil,e.width),a=e.height,s=null;return n&&((s=s||{})[36064]=new u.a(this.gl,{pixels:null,format:r.a.RGBA,type:r.a.UNSIGNED_BYTE,width:o,height:a,mipmaps:!1,parameters:(t={},g(t,r.a.TEXTURE_MIN_FILTER,r.a.NEAREST),g(t,r.a.TEXTURE_MAG_FILTER,r.a.NEAREST),g(t,r.a.TEXTURE_WRAP_S,r.a.CLAMP_TO_EDGE),g(t,r.a.TEXTURE_WRAP_T,r.a.CLAMP_TO_EDGE),t)})),i&&((s=s||{})[36096]=new c.a(this.gl,{format:r.a.DEPTH_COMPONENT16,width:o,height:a})),s}},{key:"_unattach",value:function(e){var t=e.attachment;this.gl.bindRenderbuffer(w,this.handle),this.gl.framebufferRenderbuffer(m,t,w,null),delete this.attachments[t]}},{key:"_attachRenderbuffer",value:function(e){var t=e.attachment,n=void 0===t?E:t,r=e.renderbuffer;this.gl.framebufferRenderbuffer(m,n,w,r.handle),this.attachments[n]=r}},{key:"_attachTexture",value:function(e){var t=e.attachment,n=void 0===t?E:t,r=e.texture,i=e.layer,o=e.level,a=this.gl;switch(a.bindTexture(r.target,r.handle),r.target){case 35866:case 32879:a.framebufferTextureLayer(m,n,r.target,o,i);break;case 34067:var s=function(e){return e<34069?e+34069:e}(i);a.framebufferTexture2D(m,n,s,r.handle,o);break;case P:a.framebufferTexture2D(m,n,P,r.handle,o);break;default:h()(!1,"Illegal texture type")}a.bindTexture(r.target,null),this.attachments[n]=r}},{key:"_setReadBuffer",value:function(e,t){n.i(i.b)(e)?e.readBuffer(t):h()(t===E||t===r.a.BACK,S),this.readBuffer=t}},{key:"_setDrawBuffers",value:function(e,t){if(n.i(i.b)(e))e.drawBuffers(t);else{var o=e.getExtension("WEBGL_draw_buffers");o?o.drawBuffersWEBGL(t):h()(1===t.length&&(t[0]===E||t[0]===r.a.BACK),S)}this.drawBuffers=t}},{key:"_getAttachmentParameterFallback",value:function(e){var t=n.i(o.d)(this.gl);switch(e){case r.a.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:return t.webgl2?null:0;case r.a.FRAMEBUFFER_ATTACHMENT_RED_SIZE:case r.a.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:case r.a.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:case r.a.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:case r.a.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:case r.a.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:return t.webgl2?null:8;case r.a.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:return t.webgl2?null:r.a.UNSIGNED_INT;case r.a.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:return t.webgl2||t.EXT_sRGB?null:r.a.LINEAR;default:return null}}},{key:"_createHandle",value:function(){return this.gl.createFramebuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteFramebuffer(this.handle)}},{key:"color",get:function(){return this.attachments[36064]||null}},{key:"texture",get:function(){return this.attachments[36064]||null}},{key:"depth",get:function(){return this.attachments[36096]||null}},{key:"stencil",get:function(){return this.attachments[36128]||null}}]),t}(s.a);function A(e){return(T.STATUS||{})[e]||"Framebuffer error "+e}t.a=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COORDINATE_SYSTEM={LNGLAT:1,METER_OFFSETS:2,METERS:2,LNGLAT_OFFSETS:3,IDENTITY:0},t.LIFECYCLE={NO_STATE:"Awaiting state",MATCHED:"Matched. State transferred from previous layer",INITIALIZED:"Intialized",AWAITING_GC:"Discarded. Awaiting garbage collection",AWAITING_FINALIZATION:"No longer matched. Awaiting garbage collection",FINALIZED:"Finalized! Awaiting garbage collection"}},function(e,t,n){var r=n(27),i=n(6)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(27);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t){e.exports=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=t[9],h=t[10],p=t[11],v=t[12],g=t[13],y=t[14],_=t[15],m=n[0],b=n[1],E=n[2],w=n[3];return e[0]=m*r+b*s+E*f+w*v,e[1]=m*i+b*u+E*d+w*g,e[2]=m*o+b*c+E*h+w*y,e[3]=m*a+b*l+E*p+w*_,m=n[4],b=n[5],E=n[6],w=n[7],e[4]=m*r+b*s+E*f+w*v,e[5]=m*i+b*u+E*d+w*g,e[6]=m*o+b*c+E*h+w*y,e[7]=m*a+b*l+E*p+w*_,m=n[8],b=n[9],E=n[10],w=n[11],e[8]=m*r+b*s+E*f+w*v,e[9]=m*i+b*u+E*d+w*g,e[10]=m*o+b*c+E*h+w*y,e[11]=m*a+b*l+E*p+w*_,m=n[12],b=n[13],E=n[14],w=n[15],e[12]=m*r+b*s+E*f+w*v,e[13]=m*i+b*u+E*d+w*g,e[14]=m*o+b*c+E*h+w*y,e[15]=m*a+b*l+E*p+w*_,e}},function(e,t){e.exports=function(e,t,n,r,i){var o=1/Math.tan(t/2),a=1/(r-i);return e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+r)*a,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*r*a,e[15]=0,e}},function(e,t){e.exports=function(e,t,n){var r=n[0],i=n[1],o=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},function(e,t){e.exports=function(e,t,n){var r,i,o,a,s,u,c,l,f,d,h,p,v=n[0],g=n[1],y=n[2];return t===e?(e[12]=t[0]*v+t[4]*g+t[8]*y+t[12],e[13]=t[1]*v+t[5]*g+t[9]*y+t[13],e[14]=t[2]*v+t[6]*g+t[10]*y+t[14],e[15]=t[3]*v+t[7]*g+t[11]*y+t[15]):(r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=t[9],h=t[10],p=t[11],e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=u,e[6]=c,e[7]=l,e[8]=f,e[9]=d,e[10]=h,e[11]=p,e[12]=r*v+s*g+f*y+t[12],e[13]=i*v+u*g+d*y+t[13],e[14]=o*v+c*g+h*y+t[14],e[15]=a*v+l*g+p*y+t[15]),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(81);n.d(t,"default",(function(){return r.a})),n.d(t,"WebMercatorViewport",(function(){return r.a}));var i=n(285);n.d(t,"fitBounds",(function(){return i.a}));var o=n(686);n.d(t,"normalizeViewportProps",(function(){return o.a}));var a=n(685);n.d(t,"flyToViewport",(function(){return a.a}));var s=n(80);n.d(t,"lngLatToWorld",(function(){return s.a})),n.d(t,"worldToLngLat",(function(){return s.b})),n.d(t,"worldToPixels",(function(){return s.c})),n.d(t,"pixelsToWorld",(function(){return s.d})),n.d(t,"getMeterZoom",(function(){return s.e})),n.d(t,"getDistanceScales",(function(){return s.f})),n.d(t,"getWorldPosition",(function(){return s.g})),n.d(t,"getViewMatrix",(function(){return s.h})),n.d(t,"getProjectionMatrix",(function(){return s.i})),n.d(t,"PerspectiveMercatorViewport",(function(){return r.a})),n.d(t,"getUncenteredViewMatrix",(function(){return s.h})),n.d(t,"projectFlat",(function(){return s.a})),n.d(t,"unprojectFlat",(function(){return s.b}))},function(e,t,n){"use strict";t.j=T,t.k=A,t.a=x,t.b=function(e,t,n){var r,i=m(e,2),o=i[0],a=i[1],s=o/(t*=512)*(2*b)-b;return r=!0===n?b-2*a*b/t:2*(Math.atan(Math.exp(b-a/t*(2*b)))-E),[s*P,r*P]},t.e=function(e){var t=e.latitude;_()(Number.isFinite(t));var n=Math.cos(t*w);return A(S*n)-8},t.f=O,t.g=function(e){var t=e.longitude,n=e.latitude,i=e.zoom,o=e.scale,a=e.meterOffset,s=e.distanceScales,u=void 0===s?null:s,c=x([t,n],o=void 0!==o?o:T(i),!!u&&u.isGeographicCoordinateSystem),l=new r.Vector3(c[0],c[1],0);if(a){u=u||O({latitude:n,longitude:t,scale:o});var f=new r.Vector3(a).scale(u.pixelsPerMeter).scale([1,-1,1]);l.add(f)}return l},t.h=function(e){var t=e.height,o=e.pitch,a=e.bearing,s=e.altitude,c=e.center,f=void 0===c?null:c,h=e.flipY,v=void 0!==h&&h,g=n.i(i.a)();return l()(g,g,[0,0,-s]),u()(g,g,[1,1,1/t]),d()(g,g,-o*w),p()(g,g,a*w),v&&u()(g,g,[1,-1,1]),f&&l()(g,g,new r.Vector3(f).negate()),g},t.i=function(e){var t=e.width,n=e.height,r=e.pitch,i=e.altitude,o=e.farZMultiplier,s=void 0===o?10:o,u=function(e){var t=e.altitude,n=e.pitch*w,r=Math.atan(.5/t),i=Math.sin(r)*t/Math.sin(Math.PI/2-n-r);return{farZ:Math.cos(Math.PI/2-n)*i+t,nearZ:.1}}({altitude:i,pitch:r}),c=u.nearZ,l=u.farZ,f=function(e){var t=e.height,n=e.altitude;return 2*Math.atan(t/2/n)}({height:n,altitude:i});return a()([],f,t/n,c,l*s)},t.c=function(e,t){var r=m(e,3),o=r[0],a=r[1],s=r[2],u=void 0===s?0:s;return _()(Number.isFinite(o)&&Number.isFinite(a)&&Number.isFinite(u)),n.i(i.b)(t,[o,a,u,1])},t.d=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=m(e,3),a=o[0],s=o[1],u=o[2];if(_()(Number.isFinite(a)&&Number.isFinite(s)),Number.isFinite(u)){var c=n.i(i.b)(t,[a,s,u,1]);return c}var l=n.i(i.b)(t,[a,s,0,1]),f=n.i(i.b)(t,[a,s,1,1]),d=l[2],h=f[2],p=d===h?0:((r||0)-d)/(h-d);return g()([],l,f,p)};var r=n(16),i=n(118),o=n(76),a=n.n(o),s=n(77),u=n.n(s),c=n(78),l=n.n(c),f=n(157),d=n.n(f),h=n(158),p=n.n(h),v=n(238),g=n.n(v),y=n(1),_=n.n(y),m=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},b=Math.PI,E=b/4,w=b/180,P=180/b,S=4003e4;function T(e){return Math.pow(2,e)}function A(e){return Math.log2(e)}function x(e,t,n){var r=m(e,2),i=r[0],o=r[1]*w;return[(t*=512)*(i*w+b)/(2*b),!0===n?t*(b-o)/(2*b):t*(b-Math.log(Math.tan(E+.5*o)))/(2*b)]}function O(e){var t=e.latitude,n=e.longitude,r=e.zoom,i=e.scale,o=e.highPrecision,a=e.isGeographicCoordinateSystem,s=void 0!==o&&o;i=void 0!==i?i:T(r),_()(Number.isFinite(t)&&Number.isFinite(n)&&Number.isFinite(i));var u={},c=512*i,l=Math.cos(t*w),f=c/360,d=f/l,h=c/S/l;if(u.pixelsPerMeter=[h,h,h],u.metersPerPixel=[1/h,1/h,1/h],u.pixelsPerDegree=[f,d,h],u.degreesPerPixel=[1/f,1/d,1/h],s){var p=w*Math.tan(t*w)/l,v=f*p/2,g=c/S*p,y=g/d*h;u.pixelsPerDegree2=[0,v,g],u.pixelsPerMeter2=[y,0,y]}return u.isGeographicCoordinateSystem=a,u}},function(e,t,n){"use strict";var r=n(687),i=n(80),o=n(285),a=n(159),s=n.n(a),u=n(160),c=n.n(u),l=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width,o=e.height,a=e.latitude,s=void 0===a?0:a,u=e.longitude,c=void 0===u?0:u,l=e.zoom,h=void 0===l?0:l,p=e.pitch,v=void 0===p?0:p,g=e.bearing,y=void 0===g?0:g,_=e.altitude,m=void 0===_?1.5:_,b=e.isGeographicCoordinateSystem,E=void 0===_ref$farZMultiplier?10:_ref$farZMultiplier;_ref$farZMultiplier=e.farZMultiplier,E=void 0===_ref$farZMultiplier?10:_ref$farZMultiplier,f(this,t),r=r||1,o=o||1;var w=n.i(i.j)(h);m=Math.max(.75,m);var P=n.i(i.g)({longitude:c,latitude:s,scale:w}),S=n.i(i.i)({width:r,height:o,pitch:v,bearing:y,altitude:m,farZMultiplier:E}),T=n.i(i.h)({height:o,center:P,pitch:v,bearing:y,altitude:m,flipY:!0}),A=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{width:r,height:o,viewMatrix:T,projectionMatrix:S,isGeographicCoordinateSystem:b}));return A.latitude=s,A.longitude=c,A.zoom=h,A.pitch=v,A.bearing=y,A.altitude=m,A.scale=w,A.center=P,Object.freeze(A),A}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"projectFlat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return n.i(i.a)(e,t)}},{key:"unprojectFlat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return n.i(i.b)(e,t)}},{key:"getMapCenterByLngLatPosition",value:function(e){var t=e.lngLat,r=e.pos,o=n.i(i.d)(r,this.pixelUnprojectionMatrix),a=n.i(i.a)(t,this.scale),u=s()([],a,c()([],o)),l=s()([],this.center,u);return n.i(i.b)(l,this.scale)}},{key:"getLocationAtPoint",value:function(e){var t=e.lngLat,n=e.pos;return this.getMapCenterByLngLatPosition({lngLat:t,pos:n})}},{key:"fitBounds",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.width,a=this.height,s=n.i(o.a)(Object.assign({width:i,height:a,bounds:e},r)),u=s.longitude,c=s.latitude,l=s.zoom;return new t({width:i,height:a,longitude:u,latitude:c,zoom:l})}}]),t}(r.a);t.a=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAPBOX_LIMITS=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(180)),a=n(79),s=c(a),u=c(n(1));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=t.MAPBOX_LIMITS={minZoom:0,maxZoom:20,minPitch:0,maxPitch:60};function h(e,t,n){return e<t?t:e>n?n:e}var p=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,r=e.height,i=e.latitude,o=e.longitude,a=e.zoom,s=e.bearing,c=void 0===s?0:s,h=e.pitch,p=void 0===h?0:h,v=e.altitude,g=void 0===v?1.5:v,y=e.maxZoom,_=void 0===y?d.maxZoom:y,m=e.minZoom,b=void 0===m?d.minZoom:m,E=e.maxPitch,w=void 0===E?d.maxPitch:E,P=e.minPitch,S=void 0===P?d.minPitch:P,T=e.startPanLngLat,A=e.startZoomLngLat,x=e.startBearing,O=e.startPitch,R=e.startZoom;l(this,t),(0,u.default)(Number.isFinite(o),"`longitude` must be supplied"),(0,u.default)(Number.isFinite(i),"`latitude` must be supplied"),(0,u.default)(Number.isFinite(a),"`zoom` must be supplied");var C=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{width:n,height:r,latitude:i,longitude:o,zoom:a,bearing:c,pitch:p,altitude:g,maxZoom:_,minZoom:b,maxPitch:w,minPitch:S}));return C._interactiveState={startPanLngLat:T,startZoomLngLat:A,startBearing:x,startPitch:O,startZoom:R},C}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getInteractiveState",value:function(){return this._interactiveState}},{key:"panStart",value:function(e){var t=e.pos;return this._getUpdatedState({startPanLngLat:this._unproject(t)})}},{key:"pan",value:function(e){var t=e.pos,n=e.startPos,i=this._interactiveState.startPanLngLat||this._unproject(n);if(!i)return this;var o=this._calculateNewLngLat({startPanLngLat:i,pos:t}),a=r(o,2),s=a[0],u=a[1];return this._getUpdatedState({longitude:s,latitude:u})}},{key:"panEnd",value:function(){return this._getUpdatedState({startPanLngLat:null})}},{key:"rotateStart",value:function(e){return e.pos,this._getUpdatedState({startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}},{key:"rotate",value:function(e){var t=e.deltaScaleX,n=void 0===t?0:t,r=e.deltaScaleY,i=void 0===r?0:r,o=this._interactiveState,a=o.startBearing,s=o.startPitch;if(!Number.isFinite(a)||!Number.isFinite(s))return this;var u=this._calculateNewPitchAndBearing({deltaScaleX:n,deltaScaleY:i,startBearing:a,startPitch:s}),c=u.pitch,l=u.bearing;return this._getUpdatedState({bearing:l,pitch:c})}},{key:"rotateEnd",value:function(){return this._getUpdatedState({startBearing:null,startPitch:null})}},{key:"zoomStart",value:function(e){var t=e.pos;return this._getUpdatedState({startZoomLngLat:this._unproject(t),startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(e){var t=e.pos,n=e.startPos,i=e.scale;(0,u.default)(i>0,"`scale` must be a positive number");var o=this._interactiveState,a=o.startZoom,c=o.startZoomLngLat;Number.isFinite(a)||(a=this._viewportProps.zoom,c=this._unproject(n)||this._unproject(t)),(0,u.default)(c,"`startZoomLngLat` prop is required for zoom behavior to calculate where to position the map.");var l=this._calculateNewZoom({scale:i,startZoom:a}),f=new s.default(Object.assign({},this._viewportProps,{zoom:l})).getLocationAtPoint({lngLat:c,pos:t}),d=r(f,2),h=d[0],p=d[1];return this._getUpdatedState({zoom:l,longitude:h,latitude:p})}},{key:"zoomEnd",value:function(){return this._getUpdatedState({startZoomLngLat:null,startZoom:null})}},{key:"zoomIn",value:function(){return this._zoomFromCenter(2)}},{key:"zoomOut",value:function(){return this._zoomFromCenter(.5)}},{key:"moveLeft",value:function(){return this._panFromCenter([100,0])}},{key:"moveRight",value:function(){return this._panFromCenter([-100,0])}},{key:"moveUp",value:function(){return this._panFromCenter([0,100])}},{key:"moveDown",value:function(){return this._panFromCenter([0,-100])}},{key:"rotateLeft",value:function(){return this._getUpdatedState({bearing:this._viewportProps.bearing-15})}},{key:"rotateRight",value:function(){return this._getUpdatedState({bearing:this._viewportProps.bearing+15})}},{key:"rotateUp",value:function(){return this._getUpdatedState({pitch:this._viewportProps.pitch+10})}},{key:"rotateDown",value:function(){return this._getUpdatedState({pitch:this._viewportProps.pitch-10})}},{key:"_zoomFromCenter",value:function(e){var t=this._viewportProps,n=t.width,r=t.height;return this.zoom({pos:[n/2,r/2],scale:e})}},{key:"_panFromCenter",value:function(e){var t=this._viewportProps,n=t.width,r=t.height;return this.pan({startPos:[n/2,r/2],pos:[n/2+e[0],r/2+e[1]]})}},{key:"_getUpdatedState",value:function(e){return new t(Object.assign({},this._viewportProps,this._interactiveState,e))}},{key:"_applyConstraints",value:function(e){var t=e.maxZoom,n=e.minZoom,r=e.zoom;e.zoom=h(r,n,t);var i=e.maxPitch,o=e.minPitch,s=e.pitch;return e.pitch=h(s,o,i),Object.assign(e,(0,a.normalizeViewportProps)(e)),e}},{key:"_unproject",value:function(e){var t=new s.default(this._viewportProps);return e&&t.unproject(e)}},{key:"_calculateNewLngLat",value:function(e){var t=e.startPanLngLat,n=e.pos;return new s.default(this._viewportProps).getMapCenterByLngLatPosition({lngLat:t,pos:n})}},{key:"_calculateNewZoom",value:function(e){var t=e.scale,n=e.startZoom,r=this._viewportProps,i=r.maxZoom,o=r.minZoom;return h(n+Math.log2(t),o,i)}},{key:"_calculateNewPitchAndBearing",value:function(e){var t=e.deltaScaleX,n=e.deltaScaleY,r=e.startBearing,i=e.startPitch;n=h(n,-1,1);var o=this._viewportProps,a=o.minPitch,s=o.maxPitch,u=i;return n>0?u=i+n*(s-i):n<0&&(u=i-n*(a-i)),{pitch:u,bearing:r+180*t}}}]),t}(o.default);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=s(n(344)),o=s(n(334)),a=n(345);function s(e){return e&&e.__esModule?e:{default:e}}var u={};t.default={name:"project",dependencies:[r.fp32],vs:""+i.default+o.default,getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return e.viewport?(0,a.getUniformsFromViewport)(e):{}},deprecations:[{type:"uniform vec3",old:"selectedPickingColor",new:"luma.gl's picking module"},{type:"uniform float",old:"renderPickingBuffer",new:"luma.gl's picking module"},{type:"uniform float",old:"pickingEnabled",new:"luma.gl's picking module"},{type:"uniform float",old:"projectionMode",new:"project_uCoordinateSystem"},{type:"uniform vec4",old:"projectionCenter",new:"project_uCenter"},{type:"uniform vec2",old:"projectionOrigin"},{type:"uniform mat4",old:"modelMatrix",new:"project_uModelMatrix"},{type:"uniform mat4",old:"viewMatrix"},{type:"uniform mat4",old:"projectionMatrix",new:"project_uViewProjectionMatrix"},{type:"uniform vec3",old:"projectionPixelsPerUnit",new:"project_uPixelsPerUnit"},{type:"uniform float",old:"projectionScale",new:"project_uScale"},{type:"uniform vec2",old:"viewportSize",new:"project_uViewportSize"},{type:"uniform float",old:"devicePixelRatio",new:"project_uDevicePixelRatio"},{type:"uniform vec3",old:"cameraPos",new:"project_uCameraPosition"},{type:"function",old:"scale",new:"project_scale",deprecated:1},{type:"function",old:"preproject",new:"project_position",deprecated:1},{type:"function",old:"project",new:"project_to_clipspace",deprecated:1}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lerp=function e(t,n,r){return Array.isArray(t)?t.map((function(t,i){return e(t,n[i],r)})):r*n+(1-r)*t},t.isValid=a,t.getEndValueByShortestPath=function(e,t,n){return s(e)&&Math.abs(n-t)>180&&(n=n<0?n+360:n-360),n},t.extractViewportFrom=function(e){var t={};return i.forEach((function(n){var i=e[n];a(i)&&(t[n]=i,s(n)&&(t[n]=(0,r.mod)(i+180,360)-180))})),t};var r=n(127),i=["width","height","longitude","latitude","zoom","bearing","pitch","position"],o={longitude:1,bearing:1};function a(e){return Number.isFinite(e)||Array.isArray(e)}function s(e){return o[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=v(n(42)),a=n(127),s=v(n(75)),u=v(n(102)),c=v(n(77)),l=v(n(76)),f=v(n(78)),d=v(n(157)),h=v(n(235)),p=v(n(158));function v(e){return e&&e.__esModule?e:{default:e}}function g(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var y=Math.PI/180,_=function(e){function t(e){var n=e.id,r=void 0===n?"orbit-viewport":n,i=e.width,o=e.height,v=e.distance,g=e.rotationX,_=void 0===g?0:g,m=e.rotationOrbit,b=void 0===m?0:m,E=e.orbitAxis,w=void 0===E?"Z":E,P=e.lookAt,S=void 0===P?[0,0,0]:P,T=e.up,A=void 0===T?[0,1,0]:T,x=e.fov,O=void 0===x?75:x,R=e.near,C=void 0===R?1:R,M=e.far,k=void 0===M?100:M,L=e.zoom,I=void 0===L?1:L;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var N=(0,d.default)([],(0,a.createMat4)(),-_/180*Math.PI);"Z"===w?(0,p.default)(N,N,-b/180*Math.PI):(0,h.default)(N,N,-b/180*Math.PI);var F=(0,a.createMat4)();(0,c.default)(F,F,[I,I,I]),(0,f.default)(F,F,[-S[0],-S[1],-S[2]]);var j=(0,u.default)([],[0,0,v],[0,0,0],A),D=O*y,B=i/o,U=(0,l.default)([],D,B,C,k),G=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{id:r,viewMatrix:(0,s.default)(j,j,(0,s.default)(N,N,F)),projectionMatrix:U,width:i,height:o}));return G.width=i,G.height=o,G.distance=v,G.rotationX=_,G.rotationOrbit=b,G.orbitAxis=w,G.lookAt=S,G.up=A,G.fov=O,G.near=C,G.far=k,G.zoom=I,G}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"project",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,i=void 0!==n&&n,o=(0,a.transformVector)(this.pixelProjectionMatrix,[].concat(g(e),[1])),s=r(o,3),u=s[0],c=s[1],l=s[2],f=i?this.height-c:c;return[u,f,l]}},{key:"unproject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,i=void 0!==n&&n,o=r(e,3),s=o[0],u=o[1],c=o[2],l=i?this.height-u:u;return(0,a.transformVector)(this.pixelUnprojectionMatrix,[s,l,c,1])}},{key:"fitBounds",value:function(e){var n=this.width,r=this.height,i=this.rotationX,o=this.rotationOrbit,a=this.orbitAxis,s=this.lookAt;return new t({width:n,height:r,rotationX:i,rotationOrbit:o,orbitAxis:a,up:this.up,fov:this.fov,near:this.near,far:this.far,zoom:this.zoom,lookAt:s,distance:Math.max(e[0],e[1],e[2])/2})}}]),t}(o.default);t.default=_,_.displayName="OrbitViewport"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(42)),a=n(79),s=l(n(159)),u=l(n(160)),c=l(n(1));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h="Illegal argument to WebMercatorViewport",p=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,t);var n=e.latitude,r=void 0===n?0:n,i=e.longitude,o=void 0===i?0:i,s=e.zoom,u=void 0===s?11:s,c=e.pitch,l=void 0===c?0:c,h=e.bearing,p=void 0===h?0:h,v=e.farZMultiplier,g=void 0===v?10:v,y=e.width,_=e.height,m=e.altitude,b=e.isGeographicCoordinateSystem,E=void 0===m?1.5:m;y=y||1,_=_||1,E=Math.max(.75,E);var w=(0,a.getProjectionMatrix)({width:y,height:_,pitch:l,altitude:E,farZMultiplier:g}),P=(0,a.getViewMatrix)({height:_,pitch:l,bearing:p,altitude:E}),S=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign({},e,{position:e.position&&[e.position[0],e.position[1],0],width:y,height:_,viewMatrix:P,longitude:o,latitude:r,zoom:u,projectionMatrix:w,isGeographicCoordinateSystem:b,focalDistance:1})));return S.latitude=r,S.longitude=o,S.zoom=u,S.pitch=l,S.bearing=p,S.altitude=E,S.metersToLngLatDelta=S.metersToLngLatDelta.bind(S),S.lngLatDeltaToMeters=S.lngLatDeltaToMeters.bind(S),S.addMetersToLngLat=S.addMetersToLngLat.bind(S),Object.freeze(S),S}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"_projectFlat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return(0,a.lngLatToWorld)(e,t,this.isGeographicCoordinateSystem)}},{key:"_unprojectFlat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return(0,a.worldToLngLat)(e,t,this.isGeographicCoordinateSystem)}},{key:"metersToLngLatDelta",value:function(e){var t=r(e,3),n=t[0],i=t[1],o=t[2],a=void 0===o?0:o;(0,c.default)(Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(a),h);var s=this.distanceScales,u=s.pixelsPerMeter,l=s.degreesPerPixel,f=n*u[0]*l[0],d=i*u[1]*l[1];return 2===e.length?[f,d]:[f,d,a]}},{key:"lngLatDeltaToMeters",value:function(e){var t=r(e,3),n=t[0],i=t[1],o=t[2],a=void 0===o?0:o;(0,c.default)(Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(a),h);var s=this.distanceScales,u=s.pixelsPerDegree,l=s.metersPerPixel,f=n*u[0]*l[0],d=i*u[1]*l[1];return 2===e.length?[f,d]:[f,d,a]}},{key:"addMetersToLngLat",value:function(e,t){var n=r(e,3),i=n[0],o=n[1],a=n[2],s=void 0===a?0:a,u=this.metersToLngLatDelta(t),c=r(u,3),l=c[0],f=c[1],d=c[2],h=void 0===d?0:d;return 2===e.length?[i+l,o+f]:[i+l,o+f,s+h]}},{key:"getMapCenterByLngLatPosition",value:function(e){var t=e.lngLat,n=e.pos,r=(0,a.pixelsToWorld)(n,this.pixelUnprojectionMatrix),i=(0,a.lngLatToWorld)(t,this.scale),o=(0,s.default)([],i,(0,u.default)([],r)),c=(0,s.default)([],this.center,o);return(0,a.worldToLngLat)(c,this.scale,this.isGeographicCoordinateSystem)}},{key:"getLocationAtPoint",value:function(e){var t=e.lngLat,n=e.pos;return this.getMapCenterByLngLatPosition({lngLat:t,pos:n})}},{key:"fitBounds",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,i=this.height,o=(0,a.fitBounds)(Object.assign({width:r,height:i,bounds:e},n)),s=o.longitude,u=o.latitude,c=o.zoom;return new t({width:r,height:i,longitude:s,latitude:u,zoom:c})}},{key:"isMapSynched",value:function(){var e=this.pitch,t=this.zoom;return e<=60.000001&&t<=40.000001}}]),t}(o.default);t.default=p,p.displayName="WebMercatorViewport"},function(e,t,n){var r=n(24),i=n(11),o=n(57);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(20),a=n(55),s=n(44),u=n(49),c=n(48),l=n(5),f=n(4),d=n(93),h=n(64),p=n(135);e.exports=function(e,t,n,v,g,y){var _=r[e],m=_,b=g?"set":"add",E=m&&m.prototype,w={},P=function(e){var t=E[e];o(E,e,"delete"==e||"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof m&&(y||E.forEach&&!f((function(){(new m).entries().next()})))){var S=new m,T=S[b](y?{}:-0,1)!=S,A=f((function(){S.has(1)})),x=d((function(e){new m(e)})),O=!y&&f((function(){for(var e=new m,t=5;t--;)e[b](t,t);return!e.has(-0)}));x||((m=t((function(t,n){c(t,m,e);var r=p(new _,t,m);return null!=n&&u(n,g,r[b],r),r}))).prototype=E,E.constructor=m),(A||O)&&(P("delete"),P("has"),g&&P("get")),(O||T)&&P(b),y&&E.clear&&delete E.clear}else m=v.getConstructor(t,e,g,b),a(m.prototype,n),s.NEED=!0;return h(m,e),w[e]=m,i(i.G+i.W+i.F*(m!=_),w),y||v.setStrong(m,e,g),m}},function(e,t,n){"use strict";var r=n(19),i=n(20),o=n(4),a=n(34),s=n(6);e.exports=function(e,t,n){var u=s(e),c=n(a,u,""[e]),l=c[0],f=c[1];o((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)}))&&(i(String.prototype,e,l),r(RegExp.prototype,u,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},function(e,t,n){"use strict";var r=n(2);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(27);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(5),i=n(27),o=n(6)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(6)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){"use strict";e.exports=n(50)||!n(4)((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete n(3)[e]}))},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(0),i=n(15),o=n(28),a=n(49);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,u=arguments[1];return i(this),(t=void 0!==u)&&i(u),null==e?new this:(n=[],t?(r=0,s=o(u,arguments[2],2),a(e,!1,(function(e){n.push(s(e,r++))}))):a(e,!1,n.push,n),new this(n))}})}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){var r=n(3),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(2),i=n(15),o=n(6)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){for(var r,i=n(3),o=n(19),a=n(58),s=a("typed_array"),u=a("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[d[f++]])?(o(r.prototype,s,!0),o(r.prototype,u,!0)):l=!1;e.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},function(e,t,n){"use strict";(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,i,o,a,s,u){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,i,o,a,s,u],f=0;(c=new Error(t.replace(/%s/g,(function(){return l[f++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}}).call(t,n(26))},function(e,t,n){var r=n(572);e.exports=function(e,t,n,i){var o,a,s,u,c,l,f,d,h,p,v=t[0],g=t[1],y=t[2],_=i[0],m=i[1],b=i[2],E=n[0],w=n[1],P=n[2];return Math.abs(v-E)<1e-6&&Math.abs(g-w)<1e-6&&Math.abs(y-P)<1e-6?r(e):(f=v-E,d=g-w,h=y-P,o=m*(h*=p=1/Math.sqrt(f*f+d*d+h*h))-b*(d*=p),a=b*(f*=p)-_*h,s=_*d-m*f,(p=Math.sqrt(o*o+a*a+s*s))?(o*=p=1/p,a*=p,s*=p):(o=0,a=0,s=0),u=d*s-h*a,c=h*o-f*s,l=f*a-d*o,(p=Math.sqrt(u*u+c*c+l*l))?(u*=p=1/p,c*=p,l*=p):(u=0,c=0,l=0),e[0]=o,e[1]=u,e[2]=f,e[3]=0,e[4]=a,e[5]=c,e[6]=d,e[7]=0,e[8]=s,e[9]=l,e[10]=h,e[11]=0,e[12]=-(o*v+a*g+s*y),e[13]=-(u*v+c*g+l*y),e[14]=-(f*v+d*g+h*y),e[15]=1,e)}},function(e,t){e.exports=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,e[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,e[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,e[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,e}},function(e,t,n){"use strict";var r=n(61),i=n(168),o=n(45),a=n(250),s=n(8),u=n(657),c=n(642),l=n(628),f=n(273),d=n(1),h=n.n(d),p=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y='Warning: Model constructor: parameter "instanced" renamed to "isInstanced".\nThis will become a hard error in a future version of luma.gl.',_="Model needs drawMode and vertexCount",m=["renderPickingBuffer","pickingEnabled"],b=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i));return h()(n.i(r.isWebGL)(e)),o.gl=e,o.init(i),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),p(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.vs,i=void 0===t?null:t,a=e.fs,s=void 0===a?null:a,u=e.modules,c=void 0===u?null:u,l=e.defines,d=void 0===l?{}:l,p=e.moduleSettings,v=void 0===p?{}:p,g=e.defaultUniforms,m=e.program,b=void 0===m?null:m,E=e.shaderCache,w=void 0===E?null:E,P=e.isInstanced,S=void 0!==P&&P,T=e.instanced,A=e.vertexCount,x=void 0===A?void 0:A,O=e.instanceCount,R=void 0===O?0:O,C=e.drawMode,M=e.uniforms,k=void 0===M?{}:M,L=e.attributes,I=void 0===L?{}:L,N=e.geometry,F=void 0===N?null:N,j=e.pickable,D=void 0===j||j,B=e.pick,U=void 0===B?null:B,G=(e.render,e.onBeforeRender),V=void 0===G?function(){}:G,z=e.onAfterRender,W=void 0===z?function(){}:z,X=e.varyings,H=void 0===X?null:X,Y=e.bufferMode,K=void 0===Y?r.GL.SEPARATE_ATTRIBS:Y,Z=e.timerQueryEnabled,q=void 0!==Z&&Z;this._initializeProgram({vs:i,fs:s,modules:c,defines:d,moduleSettings:v,defaultUniforms:g,program:b,shaderCache:w,varyings:H,bufferMode:K}),this.uniforms={},k=Object.assign({},this.program.defaultUniforms,k),this.setUniforms(k),this.setUniforms(this.getModuleUniforms()),this.setUniforms(this.getModuleUniforms(v)),T&&(console.warn(y),S=S||T),this.buffers={},this.samplers={},this.userData={},this.drawParams={},this.dynamic=!1,this.needsRedraw=!0,F&&this.setGeometry(F),this.attributes={},this.setAttributes(I),void 0!==C&&(this.drawMode=n.i(o.b)(C)),void 0!==x&&(this.vertexCount=x),this.isInstanced=S,this.instanceCount=R,this.pickable=Boolean(D),this.pick=U||function(){return!1},this.onBeforeRender=V,this.onAfterRender=W,h()(void 0!==this.drawMode&&Number.isFinite(this.vertexCount),_),this.timerQueryEnabled=q&&f.a.isSupported(this.gl,{timer:!0}),this.timeElapsedQuery=void 0,this.lastQueryReturned=!0,this.stats={accumulatedFrameTime:0,averageFrameTime:0,profileFrameCount:0}}},{key:"delete",value:function(){this.program.delete(),n.i(l.a)(this.id)}},{key:"destroy",value:function(){this.delete()}},{key:"setNeedsRedraw",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.needsRedraw=e,this}},{key:"getNeedsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.clearRedrawFlags,n=void 0!==t&&t,r=!1;return r=r||this.needsRedraw,this.needsRedraw=this.needsRedraw&&!n,r||this.geometry.getNeedsRedraw({clearRedrawFlags:n})}},{key:"setDrawMode",value:function(e){return this.drawMode=n.i(o.b)(e),this}},{key:"getDrawMode",value:function(){return this.drawMode}},{key:"setVertexCount",value:function(e){return h()(Number.isFinite(e)),this.vertexCount=e,this}},{key:"getVertexCount",value:function(){return this.vertexCount}},{key:"setInstanceCount",value:function(e){return h()(Number.isFinite(e)),this.instanceCount=e,this}},{key:"getInstanceCount",value:function(){return this.instanceCount}},{key:"getProgram",value:function(){return this.program}},{key:"setGeometry",value:function(e){return this.geometry=e,this.vertexCount=e.getVertexCount(),this.drawMode=e.drawMode,this._createBuffersFromAttributeDescriptors(this.geometry.getAttributes()),this.setNeedsRedraw(),this}},{key:"getAttributes",value:function(){return this.attributes}},{key:"setAttributes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.i(s.f)(e)||(Object.assign(this.attributes,e),this._createBuffersFromAttributeDescriptors(e),this.setNeedsRedraw()),this}},{key:"getUniforms",value:function(){return this.uniforms}},{key:"setUniforms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!1;for(var o in e)if(!n.i(i.d)(this.uniforms[o],e[o])){t=!0;break}return t&&(n.i(r.checkUniformValues)(e,this.id),Object.assign(this.uniforms,e),this.setNeedsRedraw()),this}},{key:"updateModuleSettings",value:function(e){var t=this.getModuleUniforms(e);return this.setUniforms(t)}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.moduleSettings,n=void 0===t?null:t,r=e.uniforms,i=void 0===r?{}:r,o=e.attributes,a=void 0===o?{}:o,u=e.samplers,c=void 0===u?{}:u,l=e.parameters,f=void 0===l?{}:l,d=e.settings,h=e.framebuffer,p=void 0===h?null:h,v=e.vertexArray,g=void 0===v?null:v,y=e.transformFeedback,_=void 0===y?null:y;return d&&(s.b.deprecated("settings","parameters"),f=d),n&&this.updateModuleSettings(n),p&&(f=Object.assign(f,{framebuffer:p})),this.render(i,a,c,_,f,g),p&&p.log({priority:2,message:"Rendered to "+p.id}),this}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;n.i(l.b)(this);var u=this.addViewUniforms(e);n.i(l.c)(this.id,u),this.setUniforms(u),this.setAttributes(t),Object.assign(this.samplers,r),s.b.group(2,">>> RENDERING MODEL "+this.id,{collapsed:s.b.priority<=2}),this.setProgramState({vertexArray:a}),this._logAttributesAndUniforms(2,u),this.onBeforeRender();var c=this.drawParams;c.isInstanced&&!this.isInstanced&&s.b.warn("Found instanced attributes on non-instanced model");var f=c.isIndexed,d=c.indexType,h=this.isInstanced,p=this.instanceCount;return this._timerQueryStart(),this.program.draw({parameters:o,drawMode:this.getDrawMode(),vertexCount:this.getVertexCount(),vertexArray:a,transformFeedback:i,isIndexed:f,indexType:d,isInstanced:h,instanceCount:p}),this._timerQueryEnd(),this.onAfterRender(),this.unsetProgramState(),this.setNeedsRedraw(!1),s.b.groupEnd(2,">>> RENDERING MODEL "+this.id),this}},{key:"setProgramState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.vertexArray,n=void 0===t?null:t,r=this.program;return r.use(),this.drawParams={},r.setBuffers(this.buffers,{drawParams:this.drawParams}),r.checkAttributeBindings({vertexArray:n}),r.setUniforms(this.uniforms,this.samplers),this}},{key:"unsetProgramState",value:function(){return this.program.unsetBuffers(),this}},{key:"addViewUniforms",value:function(e){var t=e.camera,n=e.viewMatrix,r=e.modelMatrix,i=t?t.getUniforms():{},o=n?this.getCoordinateUniforms(n,r):{};return Object.assign({},e,i,o)}},{key:"_initializeProgram",value:function(e){var t=e.vs,i=e.fs,o=e.modules,a=e.defines,s=(e.moduleSettings,e.defaultUniforms,e.program),l=e.shaderCache,f=e.varyings,d=e.bufferMode;if(this.getModuleUniforms=function(e){},!s){t||(t=u.a.vs),i||(i=u.a.fs);var p=n.i(c.a)(this.gl,{vs:t,fs:i,modules:o,defines:a});t=p.vs,i=p.fs,s=l?l.getProgram(this.gl,{vs:t,fs:i,id:this.id}):new r.Program(this.gl,{vs:t,fs:i,varyings:f,bufferMode:d});var v=p.getUniforms;this.getModuleUniforms=v||function(e){}}this.program=s,h()(this.program instanceof r.Program,"Model needs a program")}},{key:"_checkForDeprecatedUniforms",value:function(e){m.forEach((function(t){t in e&&s.b.deprecated(t,"use picking shader module and Model class updateModuleSettings()")}))}},{key:"_timerQueryStart",value:function(){!0===this.timerQueryEnabled&&(this.timeElapsedQuery||(this.timeElapsedQuery=new f.a(this.gl)),this.lastQueryReturned&&(this.lastQueryReturned=!1,this.timeElapsedQuery.beginTimeElapsedQuery()))}},{key:"_timerQueryEnd",value:function(){if(!0===this.timerQueryEnabled&&(this.timeElapsedQuery.end(),this.timeElapsedQuery.isResultAvailable())){this.lastQueryReturned=!0;var e=this.timeElapsedQuery.getResult();this.stats.lastFrameTime=e,this.stats.accumulatedFrameTime+=e,this.stats.profileFrameCount++,this.stats.averageFrameTime=this.stats.accumulatedFrameTime/this.stats.profileFrameCount,s.b.log(2,"GPU time "+this.program.id+": "+this.stats.lastFrameTime+"ms average "+this.stats.averageFrameTime+"ms accumulated: "+this.stats.accumulatedFrameTime+"ms count: "+this.stats.profileFrameCount)}}},{key:"_createBuffersFromAttributeDescriptors",value:function(e){var t=this.program.gl;for(var n in e){var i=e[n];i instanceof r.Buffer?this.buffers[n]=i:i.isGeneric?this.buffers[n]=i.value:(this.buffers[n]=this.buffers[n]||new r.Buffer(t,{target:i.isIndexed?r.GL.ELEMENT_ARRAY_BUFFER:r.GL.ARRAY_BUFFER}),this.buffers[n].setData({data:i.value}).setDataLayout(i))}return this}},{key:"_logAttributesAndUniforms",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s.b.priority>=e){var r=this._getAttributesTable({header:this.id+" attributes",program:this.program,attributes:Object.assign({},this.geometry.attributes,this.attributes)});s.b.table(e,r);var o=n.i(i.e)({header:this.id+" uniforms",program:this.program,uniforms:Object.assign({},this.uniforms,t)}),a=o.table,u=o.unusedTable,c=o.unusedCount;s.b.table(e,a),s.b.log(e,(c||"No")+" unused uniforms ",u)}else{var f=n.i(i.e)({header:this.id+" uniforms",program:this.program,uniforms:Object.assign({},this.uniforms,t),undefinedOnly:!0}),d=f.table,h=f.count;h>0&&s.b.table(e,d)}n.i(l.d)(this,t)}},{key:"_getAttributesTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attributes,n=e.header,r=void 0===n?"Attributes":n,i=(e.instanced,e.program);h()(i);var o=i._attributeLocations,a={};for(var s in o){var u=t[s],c=o[s];a[s]=this._getAttributeEntry(u,c,r)}for(var l in t){var f=t[l];a[l]||(a[l]=this._getAttributeEntry(f,null,r))}return a}},{key:"_getAttributeEntry",value:function(e,t,i){var o=function(e){return Math.round(10*e)/10},a="NOT PROVIDED",u=0,c="N/A",l="N/A",f="N/A",d="N/A";if(e&&null===t&&(t=e.isIndexed?"ELEMENT_ARRAY_BUFFER":"NOT USED"),e instanceof r.Buffer){var h=e;a=h.layout.type,u=h.layout.instanced,c=h.layout.size,l=o(h.data.length/h.layout.size),f=h.data.length*h.data.BYTES_PER_ELEMENT}else e&&(a=e.value.constructor.name,u=e.instanced,c=e.size,l=o(e.value.length/e.size),f=e.value.length*e.value.BYTES_PER_ELEMENT,d=e.value);var p=-1!==(a=String(a).replace("Array","")).indexOf("nt");return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({"Inst/Verts/Comps/Bytes/Type/Loc":(u?"I ":"P ")+" "+l+" (x"+c+"="+f+" "+a+") loc="+t},i,n.i(s.c)(d,{size:c,isInteger:p}))}},{key:"isPickable",value:function(){return this.pickable}},{key:"setPickable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.pickable=Boolean(e),this}},{key:"getGeometry",value:function(){return this.geometry}},{key:"varyingMap",get:function(){return this.program.varyingMap}}]),t}(a.a);t.a=b},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t);for(var n=e.bottomRadius,o=void 0===n?0:n,a=e.topRadius,s=void 0===a?0:a,u=e.height,c=void 0===u?1:u,l=e.nradial,f=void 0===l?10:l,d=e.nvertical,h=void 0===d?10:d,p=e.topCap,v=void 0!==p&&p,g=e.bottomCap,y=void 0!==g&&g,_=(v?2:0)+(y?2:0),m=(f+1)*(h+1+_),b=Math.atan2(o-s,c),E=Math.sin,w=Math.cos,P=Math.PI,S=w(b),T=E(b),A=v?-2:0,x=h+(y?2:0),O=f+1,R=new Float32Array(3*m),C=new Float32Array(3*m),M=new Float32Array(2*m),k=new Uint16Array(f*(h+_)*6),L=0,I=0,N=A;N<=x;N++){var F=N/h,j=c*F,D=void 0;N<0?(j=0,F=1,D=o):N>h?(j=c,F=1,D=s):D=o+N/h*(s-o),-2!==N&&N!==h+2||(D=0,F=0),j-=c/2;for(var B=0;B<O;B++){var U=E(B*P*2/f),G=w(B*P*2/f);R[L+0]=U*D,R[L+1]=j,R[L+2]=G*D,C[L+0]=N<0||N>h?0:U*S,C[L+1]=N<0?-1:N>h?1:T,C[L+2]=N<0||N>h?0:G*S,M[I+0]=B/f,M[I+1]=F,I+=2,L+=3}}for(var V=0;V<h+_;V++)for(var z=0;z<f;z++){var W=6*(V*f+z);k[W+0]=O*(V+0)+0+z,k[W+1]=O*(V+0)+1+z,k[W+2]=O*(V+1)+1+z,k[W+3]=O*(V+0)+0+z,k[W+4]=O*(V+1)+1+z,k[W+5]=O*(V+1)+0+z}return i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign({},e,{attributes:{positions:R,normals:C,texCoords:M,indices:k}})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n(45).a);t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(262),i=n(261),o=n(263);n.d(t,"global",(function(){return i.b}));var a="5.1.4";if(i.b.luma&&i.b.luma.VERSION!==a)throw new Error("luma.gl - multiple VERSIONs detected: "+i.b.luma.VERSION+" vs "+a);i.b.luma||(r.a&&console.log("luma.gl 5.1.4 - set luma.log.priority=1 (or higher) to trace rendering"),i.b.luma=i.b.luma||{VERSION:a,version:a,log:o.a,stats:{},globals:{headlessGL:null,headlessTypes:null,modules:{},nodeIO:{}}}),t.default=i.b.luma},function(e,t,n){"use strict";t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.framebuffer,o=void 0===r?null:r,s=t.color,u=void 0===s?null:s,c=t.depth,l=void 0===c?null:c,f=t.stencil,h=void 0===f?null:f,p={};o&&(p.framebuffer=o);var v=0;u&&(v|=16384,!0!==u&&(p.clearColor=u)),l&&(v|=256,!0!==l&&(p.clearDepth=l)),h&&(v|=1024,!0!==l&&(p.clearStencil=l)),a()(0!==v,d),n.i(i.f)(e,p,(function(){e.clear(v)}))},t.b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.framebuffer,h=void 0===o?null:o,p=t.buffer,v=void 0===p?u:p,g=t.drawBuffer,y=void 0===g?0:g,_=t.value,m=void 0===_?[0,0,0,0]:_;a()(n.i(r.b)(e),r.i),n.i(i.f)(e,{framebuffer:h},(function(){switch(v){case u:switch(m.constructor){case Int32Array:e.clearBufferiv(v,y,m);break;case Uint32Array:e.clearBufferuiv(v,y,m);break;case Float32Array:default:e.clearBufferfv(v,y,m)}break;case c:e.clearBufferfv(c,0,[m]);break;case l:e.clearBufferiv(l,0,[m]);break;case f:var t=s(m,2),n=t[0],r=t[1];e.clearBufferfi(f,0,n,r);break;default:a()(!1,d)}}))};var r=n(7),i=n(68),o=n(1),a=n.n(o),s=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=6144,c=6145,l=6146,f=34041,d="clear: bad arguments"},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),t.b=function(e,t){return c(e,t)},t.c=c,t.d=function(e){if(e.luma=e.luma||{},!e.luma.caps)for(var t in e.luma.caps={},e.luma.caps.webgl2=n.i(r.b)(e),a)e.luma.caps[t]=u(e,t);return e.luma.caps};var r=n(7),i=n(1),o=n.n(i),a={VERTEX_ARRAY_OBJECT:["OES_vertex_array_object",!0],TIMER_QUERY:["EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2"],INSTANCED_RENDERING:["ANGLE_instanced_arrays",!0],MULTIPLE_RENDER_TARGETS:["WEBGL_draw_buffers",!0],ELEMENT_INDEX_UINT32:["OES_element_index_uint",!0],BLEND_EQUATION_MINMAX:["EXT_blend_minmax",!0],COLOR_ENCODING_SRGB:["EXT_sRGB",!0],TEXTURE_DEPTH:["WEBGL_depth_texture",!0],TEXTURE_FLOAT:["OES_texture_float",!0],TEXTURE_HALF_FLOAT:["OES_texture_half_float",!0],TEXTURE_FILTER_LINEAR_FLOAT:["OES_texture_float_linear"],TEXTURE_FILTER_LINEAR_HALF_FLOAT:["OES_texture_half_float_linear"],TEXTURE_FILTER_ANISOTROPIC:["EXT_texture_filter_anisotropic"],COLOR_ATTACHMENT_RGBA32F:["WEBGL_color_buffer_float","EXT_color_buffer_float"],COLOR_ATTACHMENT_FLOAT:[!1,"EXT_color_buffer_float"],COLOR_ATTACHMENT_HALF_FLOAT:[!1,"EXT_color_buffer_half_float"],GLSL_FRAG_DATA:["WEBGL_draw_buffers",!0],GLSL_FRAG_DEPTH:["EXT_frag_depth",!0],GLSL_DERIVATIVES:["OES_standard_derivatives",!0],GLSL_TEXTURE_LOD:["EXT_shader_texture_lod",!0]},s={};function u(e,t){var i=a[t];o()(i,t);var s=n.i(r.b)(e)&&i[1]||i[0],u="string"==typeof s?Boolean(e.getExtension(s)):s;return o()(!1===u||!0===u),u}function c(e,t){return(t=Array.isArray(t)?t:[t]).every((function(t){return u(e,t)}))}Object.keys(a).forEach((function(e){s[e]=e}))},function(e,t,n){"use strict";var r=n(38),i=n(7),o=n(68),a=n(169),s=n(30),u=n(62),c=n(69),l=n(276),f=n(168),d=n(111),h=n(67),p=n(8),v=n(1),g=n.n(v),y=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var b=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.initialize(n),r.vertexAttributes=a.a.getDefaultArray(e),Object.seal(r),r._setId(n.id),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),y(t,[{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.vs,o=e.fs,a=e.defaultUniforms,s=e.varyings,u=e.bufferMode,c=void 0===u?r.a.SEPARATE_ATTRIBS:u;return this.vs="string"==typeof t?new d.b(this.gl,t):t,this.fs="string"==typeof o?new d.c(this.gl,o):o,g()(this.vs instanceof d.b,"Program: bad vertex shader"),g()(this.fs instanceof d.c,"Program: bad fragment shader"),this.defaultUniforms=a,s?(n.i(i.g)(this.gl),this.varyings=s,this.gl.transformFeedbackVaryings(this.handle,s,c),this.varyingMap=E(s,c)):this.varyingMap={},this._compileAndLink(),this}},{key:"checkAttributeBindings",value:function(e){var t=e.vertexArray,n=t?t.filledLocations:this.vertexAttributes.filledLocations;for(var r in this._attributeToLocationMap){var i=this._attributeToLocationMap[r];n[i]||this._warnedLocations[i]||(p.b.warn("Program "+this.id+": Attribute "+i+":"+r+" not supplied"),this._warnedLocations[i]=!0)}return this}},{key:"reset",value:function(){this.unsetBuffers()}},{key:"use",value:function(){return this.gl.useProgram(this.handle),this}},{key:"draw",value:function(e){var t=this,s=e.drawMode,u=void 0===s?r.a.TRIANGLES:s,c=e.vertexCount,f=e.offset,d=void 0===f?0:f,h=e.start,p=e.end,v=e.isIndexed,g=void 0!==v&&v,y=e.indexType,_=void 0===y?r.a.UNSIGNED_SHORT:y,m=e.isInstanced,b=void 0!==m&&m,E=e.instanceCount,w=void 0===E?0:E,P=e.vertexArray,S=void 0===P?null:P,T=e.transformFeedback,A=void 0===T?null:T,x=e.uniforms,O=void 0===x?{}:x,R=e.samplers,C=void 0===R?{}:R,M=e.parameters,k=void 0===M?{}:M;return(S=S||a.a.getDefaultArray(this.gl)).bind((function(){if(t.gl.useProgram(t.handle),A){var e=n.i(l.b)({drawMode:u});A.begin(e)}t.setUniforms(O,C),n.i(o.f)(t.gl,k,(function(){g&&b?t.ext.drawElementsInstanced(u,c,_,d,w):g&&n.i(i.b)(t.gl)&&!isNaN(h)&&!isNaN(p)?t.gl.drawElementsRange(u,h,p,c,_,d):g?t.gl.drawElements(u,c,_,d):b?t.ext.drawArraysInstanced(u,d,c,w):t.gl.drawArrays(u,d,c)})),A&&A.end()})),this}},{key:"setBuffers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clear,r=void 0===n||n,i=t.drawParams,o=void 0===i?{}:i;r&&this.vertexAttributes.clearBindings(),o.isInstanced=!1,o.isIndexed=!1,o.indexType=null;for(var a=this._sortBuffersByLocation(e),s=a.locations,u=a.elements,c=0;c<s.length;++c){var l=s[c],f=e[l];if(f)if(f instanceof h.a){var d=f.layout.instanced?1:0;this.vertexAttributes.setBuffer({location:c,buffer:f}),this.vertexAttributes.setDivisor(c,d),o.isInstanced=f.layout.instanced>0,this.vertexAttributes.enable(c)}else this.vertexAttributes.setGeneric({location:c,array:f}),this.vertexAttributes.disable(c,!0);else this.vertexAttributes.disable(c)}if(u){var p=e[u];p.bind(),o.isIndexed=!0,o.indexType=p.layout.type}return this}},{key:"unsetBuffers",value:function(){for(var e=this._attributeCount,t=1;t<e;++t)this.vertexAttributes.disable(t);return this.gl.bindBuffer(r.a.ELEMENT_ARRAY_BUFFER,null),this}},{key:"setUniforms",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e){var r=e[n],i=this._uniformSetters[n],o=t[n];if(i)if(r instanceof c.a&&(r=r.texture),r instanceof u.a){void 0===i.textureIndex&&(i.textureIndex=this._textureIndexCounter++);var a=r,s=i.textureIndex;a.bind(s),o&&o.bind(s),i(s)}else i(r)}return this}},{key:"getAttributeCount",value:function(){return this._getParameter(r.a.ACTIVE_ATTRIBUTES)}},{key:"getAttributeLocation",value:function(e){return this.gl.getAttribLocation(this.handle,e)}},{key:"getAttributeInfo",value:function(e){return this.gl.getActiveAttrib(this.handle,e)}},{key:"getUniformCount",value:function(){return this._getParameter(r.a.ACTIVE_UNIFORMS)}},{key:"getUniformInfo",value:function(e){return this.gl.getActiveUniform(this.handle,e)}},{key:"getUniformLocation",value:function(e){return this.gl.getUniformLocation(this.handle,e)}},{key:"getUniformValue",value:function(e){return this.gl.getUniform(this.handle,e)}},{key:"getVarying",value:function(e,t){return this.gl.getTransformFeedbackVarying(e,t)}},{key:"getFragDataLocation",value:function(e){return n.i(i.g)(this.gl),this.gl.getFragDataLocation(this.handle,e)}},{key:"getAttachedShaders",value:function(){return this.gl.getAttachedShaders(this.handle)}},{key:"_compileAndLink",value:function(){var e=this.gl;if(e.attachShader(this.handle,this.vs.handle),e.attachShader(this.handle,this.fs.handle),p.b.time(3,"linkProgram for "+this._getName()),e.linkProgram(this.handle),p.b.timeEnd(3,"linkProgram for "+this._getName()),(e.debug||p.b.priority>0)&&(e.validateProgram(this.handle),!e.getProgramParameter(this.handle,e.LINK_STATUS)))throw new Error("Error linking "+e.getProgramInfoLog(this.handle));this._queryAttributeLocations(),this._queryUniformLocations()}},{key:"_sortBuffersByLocation",value:function(e){var t=null,i=[];if(n.i(p.f)(e))return{locations:i,elements:t};for(var o in i=new Array(this._attributeCount),e){var a=e[o],s=this._attributeToLocationMap[o];if(void 0===s){if(a.target===r.a.ELEMENT_ARRAY_BUFFER&&t)throw new Error(this._print(o)+" duplicate GL.ELEMENT_ARRAY_BUFFER");a.target===r.a.ELEMENT_ARRAY_BUFFER?t=o:this._warnedLocations[s]||(p.b.log(2,this._print(o)+" not used"),this._warnedLocations[s]=!0)}else{if(a.target===r.a.ELEMENT_ARRAY_BUFFER)throw new Error(this._print(o)+":"+s+" has both location and type gl.ELEMENT_ARRAY_BUFFER");i[s]=o}}return{locations:i,elements:t}}},{key:"_areAllAttributesEnabled",value:function(){for(var e=this._attributeCount,t=0;t<e;++t)if(!this.vertexAttributes.isEnabled(t))return!1;return!0}},{key:"_print",value:function(e){return"Program "+this.id+": Attribute "+e}},{key:"_createHandle",value:function(){return this.gl.createProgram()}},{key:"_deleteHandle",value:function(){this.gl.deleteProgram(this.handle)}},{key:"_getName",value:function(){var e=this.vs.getName()||this.fs.getName();return(e=e.replace(/shader/i,""))?e+"-program":"program"}},{key:"_getOptionsFromHandle",value:function(e){var t=this.gl.getAttachedShaders(e),n={},i=!0,o=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;switch(this.gl.getShaderParameter(this.handle,r.a.SHADER_TYPE)){case r.a.VERTEX_SHADER:n.vs=new d.b({handle:c});break;case r.a.FRAGMENT_SHADER:n.fs=new d.c({handle:c})}}}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return n}},{key:"_getParameter",value:function(e){return this.gl.getProgramParameter(this.handle,e)}},{key:"_queryAttributeLocations",value:function(){this._attributeToLocationMap={},this._attributeCount=this.getAttributeCount();for(var e=0;e<this._attributeCount;e++){var t=this.getAttributeInfo(e).name;this._attributeToLocationMap[t]=this.getAttributeLocation(t)}this._warnedLocations={}}},{key:"_queryUniformLocations",value:function(){var e=this.gl;this._uniformSetters={},this._uniformCount=this.getUniformCount();for(var t=0;t<this._uniformCount;t++){var r=this.getUniformInfo(t),i=n.i(f.a)(r.name),o=this.getUniformLocation(i.name);this._uniformSetters[i.name]=n.i(f.b)(e,o,r,i.isArray)}this._textureIndexCounter=0}},{key:"_setId",value:function(e){if(!e){var t=this._getName();this.id=n.i(p.d)(t)}}}]),t}(s.a);function E(e,t){var n={},i=0;g()(t===r.a.SEPARATE_ATTRIBS||t===r.a.INTERLEAVED_ATTRIBS);var o=t===r.a.SEPARATE_ATTRIBS?1:0,a=!0,s=!1,u=void 0;try{for(var c,l=e[Symbol.iterator]();!(a=(c=l.next()).done);a=!0)n[c.value]=i,i+=o}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}return n}t.a=b},function(e,t,n){"use strict";var r,i=n(25),o=n(7),a=n(30),s=n(1),u=n.n(s),c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=36161,p="EXT_color_buffer_float",v=(d(r={},i.a.DEPTH_COMPONENT16,{}),d(r,i.a.DEPTH_COMPONENT24,{gl2:!0}),d(r,i.a.DEPTH_COMPONENT32F,{gl2:!0}),d(r,i.a.STENCIL_INDEX8,{}),d(r,i.a.DEPTH_STENCIL,{}),d(r,i.a.DEPTH24_STENCIL8,{gl2:!0}),d(r,i.a.DEPTH32F_STENCIL8,{gl2:!0}),d(r,i.a.RGBA4,{}),d(r,i.a.RGB565,{}),d(r,i.a.RGB5_A1,{}),d(r,i.a.R8,{gl2:!0}),d(r,i.a.R8UI,{gl2:!0}),d(r,i.a.R8I,{gl2:!0}),d(r,i.a.R16UI,{gl2:!0}),d(r,i.a.R16I,{gl2:!0}),d(r,i.a.R32UI,{gl2:!0}),d(r,i.a.R32I,{gl2:!0}),d(r,i.a.RG8,{gl2:!0}),d(r,i.a.RG8UI,{gl2:!0}),d(r,i.a.RG8I,{gl2:!0}),d(r,i.a.RG16UI,{gl2:!0}),d(r,i.a.RG16I,{gl2:!0}),d(r,i.a.RG32UI,{gl2:!0}),d(r,i.a.RG32I,{gl2:!0}),d(r,i.a.RGB8,{gl2:!0}),d(r,i.a.RGBA8,{gl2:!0}),d(r,i.a.RGB10_A2,{gl2:!0}),d(r,i.a.RGBA8UI,{gl2:!0}),d(r,i.a.RGBA8I,{gl2:!0}),d(r,i.a.RGB10_A2UI,{gl2:!0}),d(r,i.a.RGBA16UI,{gl2:!0}),d(r,i.a.RGBA16I,{gl2:!0}),d(r,i.a.RGBA32I,{gl2:!0}),d(r,i.a.RGBA32UI,{gl2:!0}),d(r,i.a.R16F,{gl2:p}),d(r,i.a.RG16F,{gl2:p}),d(r,i.a.RGBA16F,{gl2:p}),d(r,i.a.R32F,{gl2:p}),d(r,i.a.RG32F,{gl2:p}),d(r,i.a.RGBA32F,{gl2:p}),d(r,i.a.R11F_G11F_B10F,{gl2:p}),r);function g(e,t,r){var i=r[t];if(!i)return!1;var a=n.i(o.b)(e)&&i.gl2||i.gl1;return"string"==typeof a?e.getExtension(a):a}var y=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,t);var r=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.initialize(n),Object.seal(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),c(t,null,[{key:"isSupported",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.format;return!n||g(e,n,v)}},{key:"getSamplesForFormat",value:function(e,t){var n=t.format;return e.getInternalformatParameter(h,n,32937)}}]),c(t,[{key:"initialize",value:function(e){var t=e.format,r=e.width,i=void 0===r?1:r,a=e.height,s=void 0===a?1:a,c=e.samples,l=void 0===c?0:c;return u()(t,"Needs format"),this.gl.bindRenderbuffer(h,this.handle),0!==l&&n.i(o.b)(this.gl)?this.gl.renderbufferStorageMultisample(h,l,t,i,s):this.gl.renderbufferStorage(h,t,i,s),this.format=t,this.width=i,this.height=s,this.samples=l,this}},{key:"resize",value:function(e){var t=e.width,n=e.height;return t!==this.width||n!==this.height?this.initialize({width:t,height:n,format:this.format,samples:this.samples}):this}},{key:"_createHandle",value:function(){return this.gl.createRenderbuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteRenderbuffer(this.handle)}},{key:"_syncHandle",value:function(e){this.format=this.getParameter(36164),this.width=this.getParameter(36162),this.height=this.getParameter(36163),this.samples=this.getParameter(36011)}},{key:"_getParameter",value:function(e){return this.gl.bindRenderbuffer(h,this.handle),this.gl.getRenderbufferParameter(h,e)}}]),t}(a.a);t.a=y},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return y}));var r=n(60),i=n(7),o=n(30),a=n(8),s=n(1),u=n.n(s),c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=35632,p=35633,v=function(e){function t(e,o,s){l(this,t),n.i(i.j)(e),u()("string"==typeof o,"Shader: GLSL source code must be a JavaScript string");var c=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,{id:n.i(r.i)(o)||n.i(a.d)(t.getTypeName(s))}));return c.shaderType=s,c.source=o,c.opts.source=o,c.initialize(c.opts),c}return d(t,e),c(t,null,[{key:"getTypeName",value:function(e){switch(e){case p:return"vertex-shader";case h:return"fragment-shader";default:return u()(!1),"unknown"}}}]),c(t,[{key:"initialize",value:function(e){var t=e.source,i=n.i(r.i)(t);i&&(this.id=n.i(a.d)(i)),this._compile(t),this.opts.source=t}},{key:"getParameter",value:function(e){return this.gl.getShaderParameter(this.handle,e)}},{key:"toString",value:function(){return this.getTypeName(this.shaderType)+":"+this.id}},{key:"getName",value:function(){return n.i(r.i)(this.opts.source)||"unnamed-shader"}},{key:"getSource",value:function(){return this.gl.getShaderSource(this.handle)}},{key:"getTranslatedSource",value:function(){var e=this.gl.getExtension("WEBGL_debug_shaders");return e?e.getTranslatedShaderSource(this.handle):"No translated source available. WEBGL_debug_shaders not implemented"}},{key:"_compile",value:function(){if(this.gl.shaderSource(this.handle,this.source),this.gl.compileShader(this.handle),!this.getParameter(35713)){var e=this.gl.getShaderInfoLog(this.handle),t=n.i(r.j)(e,this.source,this.shaderType),i=t.shaderName,o=t.errors,s=t.warnings;throw a.b.error("GLSL compilation errors in "+i+"\n"+o),a.b.warn("GLSL compilation warnings in "+i+"\n"+s),new Error("GLSL compilation errors in "+i)}}},{key:"_deleteHandle",value:function(){this.gl.deleteShader(this.handle)}},{key:"_getOptsFromHandle",value:function(){return{type:this.getParameter(35663),source:this.getSource()}}}]),t}(o.a),g=function(e){function t(e,n){return l(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,p))}return d(t,e),c(t,[{key:"_createHandle",value:function(){return this.gl.createShader(p)}}]),t}(v),y=function(e){function t(e,n){return l(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,h))}return d(t,e),c(t,[{key:"_createHandle",value:function(){return this.gl.createShader(h)}}]),t}(v)},function(e,t,n){"use strict";var r=n(31),i=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"clone",value:function(){var e=(new(0,this.constructor)).copy(this);return e.check(),e}},{key:"copy",value:function(e){for(var t=0;t<this.ELEMENTS;++t)this[t]=e[t];return this.check()}},{key:"set",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0;r<this.ELEMENTS;++r)this[r]=t[r]||0;return this.check()}},{key:"fromArray",value:function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=0;n<this.ELEMENTS;++n)this[n]=e[n+t];return this.check()}},{key:"toString",value:function(){return this.formatString(r.a)}},{key:"formatString",value:function(e){for(var t="",i=0;i<this.ELEMENTS;++i)t+=(0<i?", ":"")+n.i(r.b)(this[i],e);return(e.printTypes?this.constructor.name:"")+"["+t+"]"}},{key:"toArray",value:function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=0;n<this.ELEMENTS;++n)e[t+n]=this[n];return e}},{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"equals",value:function(e){if(!e||this.length!==e.length)return!1;for(var t=0;t<this.ELEMENTS;++t)if(!n.i(r.c)(this[t],e[t]))return!1;return!0}},{key:"exactEquals",value:function(e){if(!e||this.length!==e.length)return!1;for(var t=0;t<this.ELEMENTS;++t)if(this[t]!==e[t])return!1;return!0}},{key:"negate",value:function(){for(var e=0;e<this.ELEMENTS;++e)this[e]=-this[e];return this.check()}},{key:"inverse",value:function(){for(var e=0;e<this.ELEMENTS;++e)this[e]=1/this[e];return this.check()}},{key:"lerp",value:function(e,t){for(var n,r=0;r<this.ELEMENTS;++r)n=this[r],this[r]=n+t*(e[0]-n);return this.check()}},{key:"validate",value:function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this,t=e&&e.length===this.ELEMENTS,n=0;n<this.ELEMENTS;++n)t=t&&Number.isFinite(e[n]);return t}},{key:"check",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this;if(r.a.debug&&!this.validate(e))throw new Error("Invalid "+this.constructor.name);return this}}]),t}(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Array));t.a=s},function(e,t,n){"use strict";t.b=function(e){var t=Number.isFinite;return 3===e.length&&t(e[0])&&t(e[1])&&t(e[2])};var r=n(170),i=n(31),o=n(613),a=n.n(o),s=n(604),u=n.n(s),c=n(603),l=n.n(c),f=n(614),d=n.n(f),h=n(607),p=n.n(h),v=n(605),g=n.n(v),y=n(611),_=n.n(y),m=n(612),b=n.n(m),E=n(239),w=n.n(E),P=n(608),S=n.n(P),T=n(609),A=n.n(T),x=n(610),O=n.n(x),R=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var k=[0,0,0],L=function(e){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;C(this,t);var i=M(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return Array.isArray(e)&&1===arguments.length?i.copy(e):i.set(e,n,r),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),R(t,[{key:"set",value:function(e,t,n){return a()(this,e,t,n),this.check()}},{key:"angle",value:function(e){return u()(this,e)}},{key:"add",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,l()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check()}},{key:"subtract",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,d()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check()}},{key:"multiply",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,p()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check()}},{key:"scale",value:function(e){return Number.isFinite(e)?_()(this,this,e):p()(this,this,e),this.check()}},{key:"cross",value:function(e){return w()(this,this,e),this.check()}},{key:"rotateX",value:function(e){var t=e.radians,n=e.origin,r=void 0===n?k:n;return S()(this,this,r,t),this.check()}},{key:"rotateY",value:function(e){var t=e.radians,n=e.origin,r=void 0===n?k:n;return A()(this,this,r,t),this.check()}},{key:"rotateZ",value:function(e){var t=e.radians,n=e.origin,r=void 0===n?k:n;return O()(this,this,r,t),this.check()}},{key:"operation",value:function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,[this,this].concat(n)),this.check()}},{key:"divide",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,g()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check()}},{key:"scaleAndAdd",value:function(e,t){return b()(this,this,e,t),this.check()}},{key:"ELEMENTS",get:function(){return 3}},{key:"x",get:function(){return this[0]},set:function(e){return this[0]=n.i(i.g)(e)}},{key:"y",get:function(){return this[1]},set:function(e){return this[1]=n.i(i.g)(e)}},{key:"z",get:function(){return this[2]},set:function(e){return this[2]=n.i(i.g)(e)}}]),t}(r.a);t.a=L},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return l}));var r=n(283),i=r.b?[[r.b.Rotate,{enable:!1}],[r.b.Pinch,{enable:!1}],[r.b.Swipe,{enable:!1}],[r.b.Pan,{threshold:0,enable:!1}],[r.b.Press,{enable:!1}],[r.b.Tap,{event:"doubletap",taps:2,enable:!1}],[r.b.Tap,{enable:!1}]]:null,o={rotate:["pinch"]},a={doubletap:["tap"]},s={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},u={KEY_EVENTS:["keydown","keyup"],MOUSE_EVENTS:["mousedown","mousemove","mouseup","mouseleave"],WHEEL_EVENTS:["wheel","mousewheel","DOMMouseScroll"]},c={tap:"tap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},l={click:"tap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseleave:"pointerleave"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(672);n.d(t,"EventManager",(function(){return r.a}))},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(679)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(678)()}).call(t,n(26))},function(e,t,n){"use strict";(function(t){"production"===t.env.NODE_ENV?e.exports=n(681):e.exports=n(680)}).call(t,n(26))},function(e,t,n){"use strict";t.a=function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},t.b=function(e,t){var n=a()([],t,e);return i()(n,n,1/n[3]),n},t.d=function(e,t){var n=e%t;return n<0?t+n:n},t.c=function(e,t,n){return n*t+(1-n)*e};var r=n(161),i=n.n(r),o=n(103),a=n.n(o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(13),a=n(12),s=l(n(316)),u=l(n(315)),c=l(n(314));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=o.experimental.fp64LowPart,p=o.experimental.enable64bitSupport,v=[0,0,0,255],g={widthScale:1,widthMinPixels:0,widthMaxPixels:Number.MAX_SAFE_INTEGER,rounded:!1,miterLimit:4,fp64:!1,dashJustified:!1,getPath:function(e){return e.path},getColor:function(e){return e.color||v},getWidth:function(e){return e.width||1},getDashArray:null},y=function(e){var t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]},_=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getShaders",value:function(){return p(this.props)?{vs:u.default,fs:c.default,modules:["project64","picking"]}:{vs:s.default,fs:c.default,modules:["picking"]}}},{key:"initializeState",value:function(){this.getAttributeManager().addInstanced({instanceStartPositions:{size:3,update:this.calculateStartPositions},instanceEndPositions:{size:3,update:this.calculateEndPositions},instanceLeftDeltas:{size:3,update:this.calculateLeftDeltas},instanceRightDeltas:{size:3,update:this.calculateRightDeltas},instanceStrokeWidths:{size:1,accessor:"getWidth",update:this.calculateStrokeWidths},instanceDashArrays:{size:2,accessor:"getDashArray",update:this.calculateDashArrays},instanceColors:{size:4,type:a.GL.UNSIGNED_BYTE,accessor:"getColor",update:this.calculateColors},instancePickingColors:{size:3,type:a.GL.UNSIGNED_BYTE,update:this.calculatePickingColors}})}},{key:"updateAttribute",value:function(e){var t=e.props,n=e.oldProps;if(e.changeFlags,t.fp64!==n.fp64){var r=this.getAttributeManager();r.invalidateAll(),t.fp64&&t.coordinateSystem===o.COORDINATE_SYSTEM.LNGLAT?r.addInstanced({instanceStartEndPositions64xyLow:{size:4,update:this.calculateInstanceStartEndPositions64xyLow}}):r.remove(["instanceStartEndPositions64xyLow"])}}},{key:"updateState",value:function(e){var n=e.oldProps,r=e.props,o=e.changeFlags;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateState",this).call(this,{props:r,oldProps:n,changeFlags:o});var a=this.props.getPath,s=this.getAttributeManager();if(r.fp64!==n.fp64){var u=this.context.gl;this.setState({model:this._getModel(u)})}if(this.updateAttribute({props:r,oldProps:n,changeFlags:o}),o.dataChanged||o.updateTriggersChanged&&(o.updateTriggersChanged.all||o.updateTriggersChanged.getPath)){var c=r.data.map(a),l=c.reduce((function(e,t){return e+t.length-1}),0);this.setState({paths:c,numInstances:l}),s.invalidateAll()}}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props,r=n.rounded,i=n.miterLimit,o=n.widthScale,a=n.widthMinPixels,s=n.widthMaxPixels,u=n.dashJustified;this.state.model.render(Object.assign({},t,{jointType:Number(r),alignMode:Number(u),widthScale:o,miterLimit:i,widthMinPixels:a,widthMaxPixels:s}))}},{key:"_getModel",value:function(e){return new a.Model(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new a.Geometry({drawMode:a.GL.TRIANGLES,attributes:{indices:new Uint16Array([0,2,1,1,2,4,1,4,3,3,4,5]),positions:new Float32Array([0,0,1,0,-1,0,0,1,0,1,-1,0,1,1,0,1,0,1])}}),isInstanced:!0,shaderCache:this.context.shaderCache}))}},{key:"calculateStartPositions",value:function(e){var t=this.state.paths,n=e.value,r=0;t.forEach((function(e){for(var t=e.length-1,i=0;i<t;i++){var o=e[i];n[r++]=o[0],n[r++]=o[1],n[r++]=o[2]||0}}))}},{key:"calculateEndPositions",value:function(e){var t=this.state.paths,n=e.value,r=0;t.forEach((function(e){for(var t=1;t<e.length;t++){var i=e[t];n[r++]=i[0],n[r++]=i[1],n[r++]=i[2]||0}}))}},{key:"calculateInstanceStartEndPositions64xyLow",value:function(e){var t=this.state.paths,n=e.value,r=0;t.forEach((function(e){for(var t=e.length-1,i=0;i<t;i++){var o=e[i],a=e[i+1];n[r++]=h(o[0]),n[r++]=h(o[1]),n[r++]=h(a[0]),n[r++]=h(a[1])}}))}},{key:"calculateLeftDeltas",value:function(e){var t=this.state.paths,n=e.value,r=0;t.forEach((function(e){for(var t=e.length-1,i=y(e)?e[e.length-2]:e[0],o=0;o<t;o++){var a=e[o];n[r++]=a[0]-i[0],n[r++]=a[1]-i[1],n[r++]=a[2]-i[2]||0,i=a}}))}},{key:"calculateRightDeltas",value:function(e){var t=this.state.paths,n=e.value,r=0;t.forEach((function(e){for(var t=1;t<e.length;t++){var i=e[t],o=e[t+1];o||(o=y(e)?e[1]:i),n[r++]=o[0]-i[0],n[r++]=o[1]-i[1],n[r++]=o[2]-i[2]||0}}))}},{key:"calculateStrokeWidths",value:function(e){var t=this.props,n=t.data,r=t.getWidth,i=this.state.paths,o=e.value,a=0;i.forEach((function(e,t){for(var i=r(n[t],t),s=1;s<e.length;s++)o[a++]=i}))}},{key:"calculateDashArrays",value:function(e){var t=this.props,n=t.data,r=t.getDashArray;if(r){var i=this.state.paths,o=e.value,a=0;i.forEach((function(e,t){for(var i=r(n[t],t),s=1;s<e.length;s++)o[a++]=i[0],o[a++]=i[1]}))}}},{key:"calculateColors",value:function(e){var t=this.props,n=t.data,r=t.getColor,i=this.state.paths,o=e.value,a=0;i.forEach((function(e,t){var i=r(n[t],t);isNaN(i[3])&&(i[3]=255);for(var s=1;s<e.length;s++)o[a++]=i[0],o[a++]=i[1],o[a++]=i[2],o[a++]=i[3]}))}},{key:"calculatePickingColors",value:function(e){var t=this,n=this.state.paths,r=e.value,i=0;n.forEach((function(e,n){for(var o=t.encodePickingColor(n),a=1;a<e.length;a++)r[i++]=o[0],r[i++]=o[1],r[i++]=o[2]}))}}]),t}(o.Layer);t.default=_,_.layerName="PathLayer",_.defaultProps=g},function(e,t,n){"use strict";function r(e){return e.length>=1&&e[0].length>=2&&Number.isFinite(e[0][0])}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.dimensions,r(e)?[e]:e}Object.defineProperty(t,"__esModule",{value:!0}),t.isSimple=r,t.normalize=i,t.getVertexCount=function(e){return r(e)?e.length:e.reduce((function(e,t){return e+t.length}),0)},t.getTriangleCount=function(e){var t=0,n=!0,r=!0,o=!1,a=void 0;try{for(var s,u=i(e)[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value.length;t+=n?c>=3?c-2:0:c+1,n=!1}}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return t},t.forEachVertex=function(e,t){if(r(e))e.forEach(t);else{var n=0;e.forEach((function(r){r.forEach((function(r,i,o){return t(r,n,e)})),n++}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(82)),o=u(n(125)),a=n(186),s=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l={transitionDuration:0},f={transitionDuration:300,transitionEasing:function(e){return e},transitionInterpolator:new o.default,transitionInterruption:a.TRANSITION_EVENTS.BREAK},d=["wheel"],h=["panstart","panmove","panend"],p=["pinchstart","pinchmove","pinchend"],v=["doubletap"],g=["keydown"],y=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),(0,s.default)(t),this.ViewportState=t,this.viewportState=null,this.viewportStateProps=null,this.eventManager=null,this._events=null,this._state={isDragging:!1},this.events=[],this.handleEvent=this.handleEvent.bind(this),this.setOptions(n),this.constructor===e&&Object.seal(this)}return r(e,[{key:"handleEvent",value:function(e){var t=this.ViewportState;switch(this.viewportState=new t(Object.assign({},this.viewportStateProps,this._state)),e.type){case"panstart":return this._onPanStart(e);case"panmove":return this._onPan(e);case"panend":return this._onPanEnd(e);case"pinchstart":return this._onPinchStart(e);case"pinchmove":return this._onPinch(e);case"pinchend":return this._onPinchEnd(e);case"doubletap":return this._onDoubleTap(e);case"wheel":return this._onWheel(e);case"keydown":return this._onKeyDown(e);default:return!1}}},{key:"getCenter",value:function(e){var t=e.offsetCenter;return[t.x,t.y]}},{key:"isFunctionKeyPressed",value:function(e){var t=e.srcEvent;return Boolean(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}},{key:"isDragging",value:function(){return this._state.isDragging}},{key:"setOptions",value:function(e){var t=e.onViewportChange,n=e.onStateChange,r=void 0===n?this.onStateChange:n,i=e.eventManager,o=void 0===i?this.eventManager:i,a=e.scrollZoom,s=void 0===a||a,u=e.dragPan,c=void 0===u||u,l=e.dragRotate,f=void 0===l||l,y=e.doubleClickZoom,_=void 0===y||y,m=e.touchZoom,b=void 0===m||m,E=e.touchRotate,w=void 0!==E&&E,P=e.keyboard,S=void 0===P||P;this.onViewportChange=t,this.onStateChange=r,this.viewportStateProps=e,this.eventManager!==o&&(this.eventManager=o,this._events={},this.toggleEvents(this.events,!0));var T=Boolean(this.onViewportChange);this.toggleEvents(d,T&&s),this.toggleEvents(h,T&&(c||f)),this.toggleEvents(p,T&&(b||w)),this.toggleEvents(v,T&&_),this.toggleEvents(g,T&&S),this.scrollZoom=s,this.dragPan=c,this.dragRotate=f,this.doubleClickZoom=_,this.touchZoom=b,this.touchRotate=w,this.keyboard=S}},{key:"toggleEvents",value:function(e,t){var n=this;this.eventManager&&e.forEach((function(e){n._events[e]!==t&&(n._events[e]=t,t?n.eventManager.on(e,n.handleEvent):n.eventManager.off(e,n.handleEvent))}))}},{key:"setState",value:function(e){Object.assign(this._state,e),this.onStateChange&&this.onStateChange(this._state)}},{key:"updateViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.viewportState.getViewportProps(),i=Object.assign({},e.getViewportProps(),t);if(this.onViewportChange&&Object.keys(i).some((function(e){return r[e]!==i[e]}))){var o=this.viewportState.getViewport?this.viewportState.getViewport():null;this.onViewportChange(i,o)}this.setState(Object.assign({},e.getInteractiveState(),n))}},{key:"_onPanStart",value:function(e){var t=this.getCenter(e),n=this.viewportState.panStart({pos:t}).rotateStart({pos:t});return this.updateViewport(n,l,{isDragging:!0})}},{key:"_onPan",value:function(e){return this.isFunctionKeyPressed(e)||e.rightButton?this._onPanRotate(e):this._onPanMove(e)}},{key:"_onPanEnd",value:function(e){var t=this.viewportState.panEnd().rotateEnd();return this.updateViewport(t,null,{isDragging:!1})}},{key:"_onPanMove",value:function(e){if(!this.dragPan)return!1;var t=this.getCenter(e),n=this.viewportState.pan({pos:t});return this.updateViewport(n,l,{isDragging:!0})}},{key:"_onPanRotate",value:function(e){return!!this.dragRotate&&(this.viewportState instanceof i.default?this._onPanRotateMap(e):this._onPanRotateStandard(e))}},{key:"_onPanRotateStandard",value:function(e){var t=e.deltaX,n=e.deltaY,r=this.viewportState.getViewportProps(),i=t/r.width,o=n/r.height,a=this.viewportState.rotate({deltaScaleX:i,deltaScaleY:o});return this.updateViewport(a,l,{isDragging:!0})}},{key:"_onPanRotateMap",value:function(e){var t=e.deltaX,n=e.deltaY,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(this.getCenter(e),2)[1],i=r-n,o=this.viewportState.getViewportProps(),a=o.width,s=o.height,u=t/a,c=0;n>0?Math.abs(s-i)>5&&(c=n/(i-s)*1.2):n<0&&i>5&&(c=1-r/i),c=Math.min(1,Math.max(-1,c));var f=this.viewportState.rotate({deltaScaleX:u,deltaScaleY:c});return this.updateViewport(f,l,{isDragging:!0})}},{key:"_onWheel",value:function(e){if(!this.scrollZoom)return!1;var t=this.getCenter(e),n=e.delta,r=2/(1+Math.exp(-Math.abs(.01*n)));n<0&&0!==r&&(r=1/r);var i=this.viewportState.zoom({pos:t,scale:r});return this.updateViewport(i,l)}},{key:"_onPinchStart",value:function(e){var t=this.getCenter(e),n=this.viewportState.zoomStart({pos:t}).rotateStart({pos:t});return this._state.startPinchRotation=e.rotation,this.updateViewport(n,l,{isDragging:!0})}},{key:"_onPinch",value:function(e){if(!this.touchZoom&&!this.touchRotate)return!1;var t=this.viewportState;if(this.touchZoom){var n=e.scale,r=this.getCenter(e);t=t.zoom({pos:r,scale:n})}if(this.touchRotate){var i=e.rotation,o=this._state.startPinchRotation;t=t.rotate({deltaScaleX:-(i-o)/180})}return this.updateViewport(t,l,{isDragging:!0})}},{key:"_onPinchEnd",value:function(e){var t=this.viewportState.zoomEnd().rotateEnd();return this._state.startPinchRotation=0,this.updateViewport(t,null,{isDragging:!1})}},{key:"_onDoubleTap",value:function(e){if(!this.doubleClickZoom)return!1;var t=this.getCenter(e),n=this.isFunctionKeyPressed(e),r=this.viewportState.zoom({pos:t,scale:n?.5:2});return this.updateViewport(r,f)}},{key:"_onKeyDown",value:function(e){if(!this.keyboard)return!1;var t=this.isFunctionKeyPressed(e),n=this.viewportState,r=void 0;switch(e.srcEvent.keyCode){case 189:r=t?n.zoomOut().zoomOut():n.zoomOut();break;case 187:r=t?n.zoomIn().zoomIn():n.zoomIn();break;case 37:r=t?n.rotateLeft():n.moveLeft();break;case 39:r=t?n.rotateRight():n.moveRight();break;case 38:r=t?n.rotateUp():n.moveUp();break;case 40:r=t?n.rotateDown():n.moveDown();break;default:return!1}return this.updateViewport(r,f)}}]),e}();t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=0,o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id="effect",this.count=i++,this.visible=!0,this.priority=0,this.needsRedraw=!1}return r(e,[{key:"initialize",value:function(e){e.gl,e.layerManager}},{key:"finalize",value:function(e){e.gl,e.layerManager}},{key:"preDraw",value:function(e){e.gl,e.layerManager}},{key:"draw",value:function(e){e.gl,e.layerManager}},{key:"setNeedsRedraw",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.needsRedraw=e}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(70),o=p(n(182)),a=p(n(185)),s=n(194),u=p(n(17)),c=n(340),l=n(187),f=n(124),d=n(12),h=p(n(1));function p(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var g=Object.freeze({}),y=function(){},_={dataComparator:null,updateTriggers:{},numInstances:void 0,visible:!0,pickable:!1,opacity:.8,onHover:y,onClick:y,coordinateSystem:i.COORDINATE_SYSTEM.LNGLAT,coordinateOrigin:[0,0,0],parameters:{},uniforms:{},framebuffer:null,animation:null,getPolygonOffset:function(e){return[0,100*-e.layerIndex]},highlightedObjectIndex:null,autoHighlight:!1,highlightColor:[0,0,128,128]},m=0,b=function(){function e(){v(this,e),this.props=c.createProps.apply(this,arguments),this.id=this.props.id,this.oldProps=g,this.count=m++,this.lifecycle=i.LIFECYCLE.NO_STATE,this.state=null,this.context=null,this.parentLayer=null,this.internalState=null,Object.seal(this)}return r(e,[{key:"clone",value:function(e){return new this.constructor(Object.assign({},this.props,e))}},{key:"toString",value:function(){return(this.constructor.layerName||this.constructor.name)+"({id: '"+this.props.id+"'})"}},{key:"setState",value:function(e){Object.assign(this.state,e),this.state.needsRedraw=!0}},{key:"setNeedsRedraw",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.state&&(this.state.needsRedraw=e)}},{key:"getNeedsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.clearRedrawFlags,n=void 0!==t&&t;return this._getNeedsRedraw(n)}},{key:"getModels",value:function(){return this.state.models||(this.state.model?[this.state.model]:[])}},{key:"needsUpdate",value:function(){return this.shouldUpdateState(this._getUpdateParams())}},{key:"isPickable",value:function(){return this.props.pickable&&this.props.visible}},{key:"getAttributeManager",value:function(){return this.state&&this.state.attributeManager}},{key:"getFirstObject",value:function(){var e=this.props.data,t=!0,n=!1,r=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)return i.value}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return null}},{key:"project",value:function(e){var t=this.context.viewport;return(0,h.default)(Array.isArray(e),"Layer.project needs [lng,lat]"),t.project(e)}},{key:"unproject",value:function(e){var t=this.context.viewport;return(0,h.default)(Array.isArray(e),"Layer.unproject needs [x,y]"),t.unproject(e)}},{key:"projectFlat",value:function(e){var t=this.context.viewport;return(0,h.default)(Array.isArray(e),"Layer.project needs [lng,lat]"),t.projectFlat(e)}},{key:"unprojectFlat",value:function(e){var t=this.context.viewport;return(0,h.default)(Array.isArray(e),"Layer.unproject needs [x,y]"),t.unprojectFlat(e)}},{key:"screenToDevicePixels",value:function(e){return u.default.deprecated("screenToDevicePixels","DeckGL prop useDevicePixels for conversion"),e*("undefined"!=typeof window?window.devicePixelRatio:1)}},{key:"nullPickingColor",value:function(){return[0,0,0]}},{key:"encodePickingColor",value:function(e){return(0,h.default)(0==(e+1>>24&255),"index out of picking color range"),[e+1&255,e+1>>8&255,e+1>>8>>8&255]}},{key:"decodePickingColor",value:function(e){(0,h.default)(e instanceof Uint8Array);var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,3);return t[0]+256*t[1]+65536*t[2]-1}},{key:"initializeState",value:function(){throw new Error("Layer "+this+" has not defined initializeState")}},{key:"shouldUpdateState",value:function(e){return e.oldProps,e.props,e.oldContext,e.context,e.changeFlags.propsOrDataChanged}},{key:"updateState",value:function(e){e.oldProps,e.props,e.oldContext,e.context;var t=e.changeFlags,n=this.getAttributeManager();t.dataChanged&&n&&n.invalidateAll()}},{key:"finalizeState",value:function(){}},{key:"updateTransition",value:function(){var e=this.state,t=e.model,n=e.attributeManager,r=n&&n.updateTransition();t&&r&&t.setAttributes(n.getChangedAttributes({transition:!0}))}},{key:"draw",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=this.getModels()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.draw(e)}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}},{key:"getPickingInfo",value:function(e){var t=e.info,n=(e.mode,t.index);return n>=0&&Array.isArray(this.props.data)&&(t.object=this.props.data[n]),t}},{key:"invalidateAttribute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.getAttributeManager();n&&("all"===e?(u.default.log(1,"updateTriggers invalidating all attributes: "+t),n.invalidateAll()):(u.default.log(1,"updateTriggers invalidating attribute "+e+": "+t),n.invalidate(e)))}},{key:"updateAttributes",value:function(e){var t=this.getAttributeManager();if(t){var n=this.getNumInstances(e);t.update({data:e.data,numInstances:n,props:e,transitions:e.transitions,buffers:e,context:this,ignoreUnknownAttributes:!0});var r=this.state.model;if(r){var i=t.getChangedAttributes({clearChangedFlags:!0});r.setAttributes(i)}}}},{key:"calculateInstancePickingColors",value:function(e,t){for(var n=t.numInstances,r=e.value,i=e.size,o=0;o<n;o++){var a=this.encodePickingColor(o);r[o*i+0]=a[0],r[o*i+1]=a[1],r[o*i+2]=a[2]}}},{key:"getNumInstances",value:function(e){if(e=e||this.props,this.state&&void 0!==this.state.numInstances)return this.state.numInstances;if(void 0!==e.numInstances)return e.numInstances;var t=e.data;return(0,s.count)(t)}},{key:"_initialize",value:function(){(0,h.default)(0===arguments.length),(0,h.default)(this.context.gl),(0,h.default)(!this.state);var e=new o.default(this.context.gl,{id:this.props.id});e.addInstanced({instancePickingColors:{type:d.GL.UNSIGNED_BYTE,size:3,update:this.calculateInstancePickingColors}}),this.internalState={subLayers:null,stats:new a.default({id:"draw"})},this.state={attributeManager:e,model:null,needsRedraw:!0},this.initializeState(this.context),this.setChangeFlags({dataChanged:!0,propsChanged:!0,viewportChanged:!0}),this._updateState(this._getUpdateParams()),this.isComposite&&this._renderLayers(!0);var t=this.state.model;t&&(t.id=this.props.id,t.program.id=this.props.id+"-program",t.geometry.id=this.props.id+"-geometry",t.setAttributes(e.getAttributes())),this.isComposite&&this._renderLayers(),this.clearChangeFlags()}},{key:"_update",value:function(){(0,h.default)(0===arguments.length);var e=this.needsUpdate(),t=this._getUpdateParams();e&&this._updateState(t),this.isComposite&&this._renderLayers(e),this.clearChangeFlags(),this.oldProps=g}},{key:"_updateState",value:function(e){this.updateState(e),this.updateAttributes(this.props),this._updateBaseUniforms(),this._updateModuleSettings(),this.state.model&&this.state.model.setInstanceCount(this.getNumInstances())}},{key:"_finalize",value:function(){(0,h.default)(0===arguments.length),this.finalizeState(this.context),(0,f.removeLayerInSeer)(this.id)}},{key:"drawLayer",value:function(e){var t=this,n=e.moduleParameters,r=void 0===n?null:n,i=e.uniforms,o=void 0===i?{}:i,a=e.parameters,s=void 0===a?{}:a;if(o.picking_uActive||this.updateTransition(),r){var u=!0,c=!1,l=void 0;try{for(var f,h=this.getModels()[Symbol.iterator]();!(u=(f=h.next()).done);u=!0)f.value.updateModuleSettings(r)}catch(e){c=!0,l=e}finally{try{!u&&h.return&&h.return()}finally{if(c)throw l}}}var p=this.props.getPolygonOffset,v=p&&p(o)||[0,0];s.polygonOffset=v,(0,d.withParameters)(this.context.gl,s,(function(){t.draw({moduleParameters:r,uniforms:o,parameters:s,context:t.context})}))}},{key:"pickLayer",value:function(e){return this.getPickingInfo(e)}},{key:"getChangeFlags",value:function(){return this.internalState.changeFlags}},{key:"setChangeFlags",value:function(e){var t=this;this.internalState.changeFlags=this.internalState.changeFlags||{};var n=this.internalState.changeFlags;e.dataChanged&&!n.dataChanged&&(n.dataChanged=e.dataChanged,u.default.log(2,(function(){return"dataChanged: "+e.dataChanged+" in "+t.id}))),e.updateTriggersChanged&&!n.updateTriggersChanged&&(n.updateTriggersChanged=n.updateTriggersChanged&&e.updateTriggersChanged?Object.assign({},e.updateTriggersChanged,n.updateTriggersChanged):e.updateTriggersChanged||n.updateTriggersChanged,u.default.log(2,(function(){return"updateTriggersChanged: "+Object.keys(e.updateTriggersChanged).join(", ")+" in "+t.id}))),e.propsChanged&&!n.propsChanged&&(n.propsChanged=e.propsChanged,u.default.log(2,(function(){return"propsChanged: "+e.propsChanged+" in "+t.id}))),e.viewportChanged&&!n.viewportChanged&&(n.viewportChanged=e.viewportChanged,u.default.log(3,(function(){return"viewportChanged: "+e.viewportChanged+" in "+t.id})));var r=e.dataChanged||e.updateTriggersChanged||e.propsChanged;n.propsOrDataChanged=n.propsOrDataChanged||r,n.somethingChanged=n.somethingChanged||r||e.viewportChanged}},{key:"clearChangeFlags",value:function(){this.internalState.changeFlags={dataChanged:!1,propsChanged:!1,updateTriggersChanged:!1,viewportChanged:!1,propsOrDataChanged:!1,somethingChanged:!1}}},{key:"printChangeFlags",value:function(){var e=this.internalState.changeFlags;return(e.dataChanged?"data ":"")+(e.propsChanged?"props ":"")+(e.updateTriggersChanged?"triggers ":"")+(e.viewportChanged?"viewport":"")}},{key:"diffProps",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.oldProps,n=(0,l.diffProps)(e,t);if(n.updateTriggersChanged)for(var r in n.updateTriggersChanged)n.updateTriggersChanged[r]&&this._activeUpdateTrigger(r);return this.setChangeFlags(n)}},{key:"_getUpdateParams",value:function(){return{props:this.props,oldProps:this.oldProps,context:this.context,oldContext:this.oldContext||{},changeFlags:this.internalState.changeFlags}}},{key:"_getNeedsRedraw",value:function(e){if(!this.state)return!1;var t=!1;t=t||this.state.needsRedraw&&this.id,this.state.needsRedraw=this.state.needsRedraw&&!e;var n=this.getAttributeManager(),r=n&&n.getNeedsRedraw({clearRedrawFlags:e});t=t||r;var i=!0,o=!1,a=void 0;try{for(var s,u=this.getModels()[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value,l=c.getNeedsRedraw({clearRedrawFlags:e});l&&"string"!=typeof l&&(l="model "+c.id),t=t||l}}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return t}},{key:"_transferState",value:function(e){var t=e.state,n=e.internalState,r=e.props;(0,h.default)(t&&n),t.layer=this,this.state=t,this.internalState=n,this.oldProps=r;var i=!0,o=!1,a=void 0;try{for(var s,u=this.getModels()[Symbol.iterator]();!(i=(s=u.next()).done);i=!0)s.value.userData.layer=this}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}this.diffProps()}},{key:"_activeUpdateTrigger",value:function(e){this.invalidateAttribute(e)}},{key:"_checkRequiredProp",value:function(e,t){var n=this.props[e];if(void 0===n)throw new Error("Property "+e+" undefined in layer "+this);if(t&&!t(n))throw new Error("Bad property "+e+" in layer "+this)}},{key:"_updateBaseUniforms",value:function(){var e={opacity:Math.pow(this.props.opacity,1/2.2),ONE:1},t=!0,n=!1,r=void 0;try{for(var i,o=this.getModels()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.setUniforms(e)}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}this.state.needsRedraw=!0}},{key:"_updateModuleSettings",value:function(){var e={pickingHighlightColor:this.props.highlightColor},t=!0,n=!1,r=void 0;try{for(var i,o=this.getModels()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.updateModuleSettings(e)}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}},{key:"setUniforms",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=this.getModels()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.setUniforms(e)}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}this.state.needsRedraw=!0,u.default.deprecated("layer.setUniforms","model.setUniforms")}},{key:"stats",get:function(){return this.internalState.stats}}]),e}();t.default=b,b.layerName="Layer",b.defaultProps=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeLayerInSeer=t.updateLayerInSeer=t.initLayerInSeer=t.seerInitListener=t.layerEditListener=t.applyPropOverrides=t.setPropOverrides=void 0;var r,i=(r=n(173))&&r.__esModule?r:{default:r},o=function e(t,n,r){t&&(n.length>1?e(t[n[0]],n.slice(1),r):t[n[0]]=r)},a=new Map;t.setPropOverrides=function(e,t,n){i.default.isReady()&&(a.has(e)||a.set(e,new Map),a.get(e).set(t,n))},t.applyPropOverrides=function(e){if(i.default.isReady()&&e.id){var t=a.get(e.id);t&&t.forEach((function(t,n){o(e,n,t),"data"===n[0]&&(e.data=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.data)))}))}},t.layerEditListener=function(e){i.default.isReady()&&i.default.listenFor("deck.gl",e)},t.seerInitListener=function(e){i.default.isReady()&&i.default.listenFor("init",e)},t.initLayerInSeer=function(e){if(i.default.isReady()&&e){var t=[e.constructor.layerName];i.default.listItem("deck.gl",e.id,{badges:t,links:e.state&&e.state.model?["luma.gl:"+e.state.model.id]:void 0,parent:e.parentLayer?e.parentLayer.id:void 0})}},t.updateLayerInSeer=function(e){if(i.default.isReady()&&!i.default.throttle("deck.gl:"+e.id,1e3)){var t=function(e){var t=[{path:"objects.props",data:e.props}],n=[e.constructor.layerName];if(e.state){if(e.state.attributeManager){var r=e.state.attributeManager.getAttributes();t.push({path:"objects.attributes",data:r}),n.push(e.state.attributeManager.stats.getTimeString())}if(e.state.model){e.state.model.timerQueryEnabled=!0;var i=e.state.model.stats.lastFrameTime;i&&n.push((1e3*i).toFixed(0)+"μs")}}return t.push({path:"badges",data:n}),t}(e);i.default.multiUpdate("deck.gl",e.id,t)}},t.removeLayerInSeer=function(e){i.default.isReady()&&e&&i.default.deleteItem("deck.gl",e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(193)),o=n(84),a=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=["longitude","latitude","zoom","bearing","pitch"],f=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.propNames=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"initializeProps",value:function(e,t){var n={},r={},i=!0,s=!1,u=void 0;try{for(var c,l=this.propNames[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var f=c.value,d=e[f],h=t[f];(0,a.default)((0,o.isValid)(d)&&(0,o.isValid)(h),f+" must be supplied for transition"),n[f]=d,r[f]=(0,o.getEndValueByShortestPath)(f,d,h)}}catch(e){s=!0,u=e}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return{start:n,end:r}}},{key:"interpolateProps",value:function(e,t,n){var r={},i=!0,a=!1,s=void 0;try{for(var u,c=this.propNames[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;r[l]=(0,o.lerp)(e[l],t[l],n)}}catch(e){a=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(a)throw s}}return r}}]),t}(i.default);t.default=f},function(e,t,n){"use strict";function r(e,t,n,i){for(var o=-1;++o<e.length;){var a=e[o];Array.isArray(a)?r(a,t,n,i):t(a)&&i.push(n(a))}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.filter,i=void 0===n?function(){return!0}:n,o=t.map,a=void 0===o?function(e){return e}:o,s=t.result,u=void 0===s?[]:s;return Array.isArray(e)?r(e,i,a,u):i(e)?[a(e)]:[]},t.countVertices=function e(t){for(var n=0,r=-1;++r<t.length;){var i=t[r];Array.isArray(i)||ArrayBuffer.isView(i)?n+=e(i):n++}return n},t.flattenVertices=function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.result,i=void 0===r?[]:r,o=n.dimensions,a=void 0===o?3:o,s=-1,u=0;++s<t.length;){var c=t[s];Array.isArray(c)||ArrayBuffer.isView(c)?e(c,{result:i,dimensions:a}):u<a&&(i.push(c),u++)}return u>0&&u<a&&i.push(0),i},t.fillArray=function(e){for(var t=e.target,n=e.source,r=e.start,i=void 0===r?0:r,o=e.count,a=void 0===o?1:o,s=n.length,u=a*s,c=0,l=i;c<s;c++)t[l++]=n[c];for(;c<u;)c<u-c?(t.copyWithin(i+c,i,i+c),c*=2):(t.copyWithin(i+c,i,i+u-c),c=u);return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformVector=function(e,t){if(!e)return null;var n=(0,i.default)([0,0,0,0],t,e),o=1/n[3];return(0,r.default)(n,n,[o,o,o,o]),n},t.createMat4=function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},t.extractCameraVectors=function(e){var t=e.viewMatrix,n=e.viewMatrixInverse;return{eye:[n[12],n[13],n[14]],direction:[t[2],t[6],t[10]],up:[t[1],t[5],t[9]]}},t.mod=function(e,t){(0,o.default)(Number.isFinite(e)&&Number.isFinite(t));var n=e%t;return n<0?t+n:n};var r=a(n(246)),i=a(n(103)),o=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";var r=n(14),i=n(57),o=n(11);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)t[s++]=e;return t}},function(e,t,n){var r=n(368);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){"use strict";var r=n(10),i=n(54);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(5),i=n(3).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(6)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(3).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(5),i=n(143).set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t,n){var r=n(63),i=n(6)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(51),i=n(54),o=n(64),a={};n(19)(a,n(6)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(50),i=n(0),o=n(20),a=n(19),s=n(18),u=n(63),c=n(137),l=n(64),f=n(23),d=n(6)("iterator"),h=!([].keys&&"next"in[].keys()),p="keys",v="values",g=function(){return this};e.exports=function(e,t,n,y,_,m,b){c(n,t,y);var E,w,P,S=function(e){if(!h&&e in O)return O[e];switch(e){case p:case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",A=_==v,x=!1,O=e.prototype,R=O[d]||O["@@iterator"]||_&&O[_],C=!h&&R||S(_),M=_?A?S("entries"):C:void 0,k="Array"==t&&O.entries||R;if(k&&(P=f(k.call(new e)))!==Object.prototype&&P.next&&(l(P,T,!0),r||s(P,d)||a(P,d,g)),A&&R&&R.name!==v&&(x=!0,C=function(){return R.call(this)}),r&&!b||!h&&!x&&O[d]||a(O,d,C),u[t]=C,u[T]=g,_)if(E={values:A?C:S(v),keys:m?C:S(p),entries:M},b)for(w in E)w in O||o(O,w,E[w]);else i(i.P+i.F*(h||x),t,E);return E}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){var r=n(3),i=n(149).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(27)(a);e.exports=function(){var e,t,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve();n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){"use strict";var r=n(15);function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},function(e,t,n){var r=n(5),i=n(2),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(28)(Function.call,n(22).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var r=n(98)("keys"),i=n(58);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(36),i=n(34);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){var r=n(92),i=n(34);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){"use strict";var r=n(36),i=n(34);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var r,i,o,a=n(28),s=n(208),u=n(134),c=n(131),l=n(3),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,g=0,y={},_="onreadystatechange",m=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},b=function(e){m.call(e.data)};d&&h||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},h=function(e){delete y[e]},"process"==n(27)(f)?r=function(e){f.nextTick(a(m,e,1))}:v&&v.now?r=function(e){v.now(a(m,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r=_ in c("script")?function(e){u.appendChild(c("script"))[_]=function(){u.removeChild(this),m.call(e)}}:function(e){setTimeout(a(m,e,1),0)}),e.exports={set:d,clear:h}},function(e,t,n){"use strict";var r=n(3),i=n(9),o=n(50),a=n(100),s=n(19),u=n(55),c=n(4),l=n(48),f=n(36),d=n(11),h=n(226),p=n(52).f,v=n(10).f,g=n(128),y=n(64),_="ArrayBuffer",m="DataView",b="prototype",E="Wrong index!",w=r[_],P=r[m],S=r.Math,T=r.RangeError,A=r.Infinity,x=w,O=S.abs,R=S.pow,C=S.floor,M=S.log,k=S.LN2,L="buffer",I="byteLength",N="byteOffset",F=i?"_b":L,j=i?"_l":I,D=i?"_o":N;function B(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,u=(1<<s)-1,c=u>>1,l=23===t?R(2,-24)-R(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=O(e))!=e||e===A?(i=e!=e?1:0,r=u):(r=C(M(e)/k),e*(o=R(2,-r))<1&&(r--,o*=2),(e+=r+c>=1?l/o:l*R(2,1-c))*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(e*o-1)*R(2,t),r+=c):(i=e*R(2,c-1)*R(2,t),r=0));t>=8;a[f++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*d,a}function U(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,c=e[u--],l=127&c;for(c>>=7;s>0;l=256*l+e[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;r=256*r+e[u],u--,s-=8);if(0===l)l=1-a;else{if(l===o)return r?NaN:c?-A:A;r+=R(2,t),l-=a}return(c?-1:1)*r*R(2,l-t)}function G(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function V(e){return[255&e]}function z(e){return[255&e,e>>8&255]}function W(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function X(e){return B(e,52,8)}function H(e){return B(e,23,4)}function Y(e,t,n){v(e[b],t,{get:function(){return this[n]}})}function K(e,t,n,r){var i=h(+n);if(i+t>e[j])throw T(E);var o=e[F]._b,a=i+e[D],s=o.slice(a,a+t);return r?s:s.reverse()}function Z(e,t,n,r,i,o){var a=h(+n);if(a+t>e[j])throw T(E);for(var s=e[F]._b,u=a+e[D],c=r(+i),l=0;l<t;l++)s[u+l]=c[o?l:t-l-1]}if(a.ABV){if(!c((function(){w(1)}))||!c((function(){new w(-1)}))||c((function(){return new w,new w(1.5),new w(NaN),w.name!=_}))){for(var q,Q=(w=function(e){return l(this,w),new x(h(e))})[b]=x[b],J=p(x),$=0;J.length>$;)(q=J[$++])in w||s(w,q,x[q]);o||(Q.constructor=w)}var ee=new P(new w(2)),te=P[b].setInt8;ee.setInt8(0,2147483648),ee.setInt8(1,2147483649),!ee.getInt8(0)&&ee.getInt8(1)||u(P[b],{setInt8:function(e,t){te.call(this,e,t<<24>>24)},setUint8:function(e,t){te.call(this,e,t<<24>>24)}},!0)}else w=function(e){l(this,w,_);var t=h(e);this._b=g.call(new Array(t),0),this[j]=t},P=function(e,t,n){l(this,P,m),l(e,w,m);var r=e[j],i=f(t);if(i<0||i>r)throw T("Wrong offset!");if(i+(n=void 0===n?r-i:d(n))>r)throw T("Wrong length!");this[F]=e,this[D]=i,this[j]=n},i&&(Y(w,I,"_l"),Y(P,L,"_b"),Y(P,I,"_l"),Y(P,N,"_o")),u(P[b],{getInt8:function(e){return K(this,1,e)[0]<<24>>24},getUint8:function(e){return K(this,1,e)[0]},getInt16:function(e){var t=K(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=K(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return G(K(this,4,e,arguments[1]))},getUint32:function(e){return G(K(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return U(K(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return U(K(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){Z(this,1,e,V,t)},setUint8:function(e,t){Z(this,1,e,V,t)},setInt16:function(e,t){Z(this,2,e,z,t,arguments[2])},setUint16:function(e,t){Z(this,2,e,z,t,arguments[2])},setInt32:function(e,t){Z(this,4,e,W,t,arguments[2])},setUint32:function(e,t){Z(this,4,e,W,t,arguments[2])},setFloat32:function(e,t){Z(this,4,e,H,t,arguments[2])},setFloat64:function(e,t){Z(this,8,e,X,t,arguments[2])}});y(w,_),y(P,m),s(P[b],a.VIEW,!0),t[_]=w,t[m]=P},function(e,t,n){var r=n(3).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(3),i=n(33),o=n(50),a=n(227),s=n(10).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(71),i=n(6)("iterator"),o=n(63);e.exports=n(33).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=n(43),i=n(211),o=n(63),a=n(24);e.exports=n(138)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";(function(t){var r=n(74);if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(26))},function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],l=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],g=t[14],y=t[15],_=n*s-r*a,m=n*u-i*a,b=n*c-o*a,E=r*u-i*s,w=r*c-o*s,P=i*c-o*u,S=l*v-f*p,T=l*g-d*p,A=l*y-h*p,x=f*g-d*v,O=f*y-h*v,R=d*y-h*g,C=_*R-m*O+b*x+E*A-w*T+P*S;return C?(C=1/C,e[0]=(s*R-u*O+c*x)*C,e[1]=(i*O-r*R-o*x)*C,e[2]=(v*P-g*w+y*E)*C,e[3]=(d*w-f*P-h*E)*C,e[4]=(u*A-a*R-c*T)*C,e[5]=(n*R-i*A+o*T)*C,e[6]=(g*b-p*P-y*m)*C,e[7]=(l*P-d*b+h*m)*C,e[8]=(a*O-s*A+c*S)*C,e[9]=(r*A-n*O-o*S)*C,e[10]=(p*w-v*b+y*_)*C,e[11]=(f*b-l*w-h*_)*C,e[12]=(s*T-a*x-u*S)*C,e[13]=(n*x-r*T+i*S)*C,e[14]=(v*m-p*E-g*_)*C,e[15]=(l*E-f*m+d*_)*C,e):null}},function(e,t){e.exports=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],f=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*i+c*r,e[5]=a*i+l*r,e[6]=s*i+f*r,e[7]=u*i+d*r,e[8]=c*i-o*r,e[9]=l*i-a*r,e[10]=f*i-s*r,e[11]=d*i-u*r,e}},function(e,t){e.exports=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],u=t[3],c=t[4],l=t[5],f=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i+c*r,e[1]=a*i+l*r,e[2]=s*i+f*r,e[3]=u*i+d*r,e[4]=c*i-o*r,e[5]=l*i-a*r,e[6]=f*i-s*r,e[7]=d*i-u*r,e}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}},function(e,t){e.exports=function(e,t){return e[0]=-t[0],e[1]=-t[1],e}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}},function(e,t,n){"use strict";t.a=s,t.b=function(e){a=e},t.c=u,t.d=function(e){var t=e.map((function(e){return"string"!=typeof e?(s([e],{ignoreMultipleRegistrations:!0}),e.name):e}));return function(e){e=e.concat(a);var t={};return c({modules:e,level:0,result:t}),Object.keys(t).sort((function(e,n){return t[n]-t[e]}))}(t)};var r=n(1),i=n.n(r),o={},a=[];function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ignoreMultipleRegistrations,r=void 0!==n&&n,i=!0,o=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;l(c,{ignoreMultipleRegistrations:r})}}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}}function u(e){if("string"!=typeof e){var t=e;return i()("string"==typeof t.name),l(t,{ignoreMultipleRegistrations:!0}),t}var n=o[e];return n||i()(!1,"Unknown shader module "+e),n}function c(e){var t=e.modules,n=e.level,r=e.result;if(n>=5)throw new Error("Possible loop in shader dependency graph");var i=!0,o=!1,a=void 0;try{for(var s,l=t[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var f=u(s.value);(void 0===r[f.name]||r[f.name]<n)&&(r[f.name]=n)}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}var d=!0,h=!1,p=void 0;try{for(var v,g=t[Symbol.iterator]();!(d=(v=g.next()).done);d=!0){var y=u(v.value);y.dependencies&&c({modules:y.dependencies,level:n+1,result:r})}}catch(e){h=!0,p=e}finally{try{!d&&g.return&&g.return()}finally{if(h)throw p}}return r}function l(e,t){var n=t.ignoreMultipleRegistrations,r=void 0!==n&&n;if(i()(e.name,"shader module has no name"),!r&&o[e.name])throw new Error("shader module "+e.name+" already registered");o[e.name]=e,e.dependencies=e.dependencies||[],e.deprecations=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.forEach((function(e){"function"===e.type?e.regex=new RegExp("\\b"+e.old+"\\("):e.regex=new RegExp(e.type+" "+e.old+";")})),e}(e.deprecations)}},function(e,t,n){"use strict";t.b=function(e){switch(ArrayBuffer.isView(e)?e.constructor:e){case Float32Array:return c;case Uint16Array:return a;case Uint32Array:return u;case Uint8Array:case Uint8ClampedArray:return i;case Int8Array:return r;case Int16Array:return o;case Int32Array:return s;default:throw new Error("Failed to deduce GL constant from typed array")}},t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clamped,l=void 0===n||n;switch(e){case c:return Float32Array;case a:case 33635:case 32819:case 32820:return Uint16Array;case u:return Uint32Array;case i:return l?Uint8ClampedArray:Uint8Array;case r:return Int8Array;case o:return Int16Array;case s:return Int32Array;default:throw new Error("Failed to deduce typed array type from GL constant")}},t.c=function(e){var t=e.data,n=e.width,r=e.height,i=e.bytesPerPixel,o=void 0===i?4:i,a=e.temp,s=n*o;a=a||new Uint8Array(s);for(var u=0;u<r/2;++u){var c=u*s,l=(r-u-1)*s;a.set(t.subarray(c,c+s)),t.copyWithin(c,l,l+s),t.set(a,l)}},t.d=function(e){for(var t=e.data,n=e.width,r=e.height,i=Math.round(n/2),o=Math.round(r/2),a=new Uint8Array(i*o*4),s=0;s<o;s++)for(var u=0;u<i;u++)for(var c=0;c<4;c++)a[4*(s*i+u)+c]=t[4*(2*s*n+2*u)+c];return{data:a,width:i,height:o}};var r=5120,i=5121,o=5122,a=5123,s=5124,u=5125,c=5126},function(e,t,n){"use strict";t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.enable,i=void 0===r||r,a=t.copyState;if(s()(void 0!==a),!e.state){for(var u in n.i(o.a)(e),e.state=new v(e,{copyState:a,enable:i}),d){var c=d[u];p(e,u,c)}h(e,"getParameter"),h(e,"isEnabled")}return e.state.enable=i,e},t.b=function(e){s()(e.state),e.state.push()},t.c=function(e){s()(e.state),e.state.pop()};var r=n(46),i=n(266),o=n(265),a=n(1),s=n.n(a),u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e,t){var n=Array.isArray(e)||ArrayBuffer.isView(e),r=Array.isArray(t)||ArrayBuffer.isView(t);if(n&&r&&e.length===t.length){for(var i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}return e===t},d={enable:function(e,t){return e(l({},t,!0))},disable:function(e,t){return e(l({},t,!1))},pixelStorei:function(e,t,n){return e(l({},t,n))},hint:function(e,t,n){return e(l({},t,n))},bindFramebuffer:function(e,t,n){var i;switch(t){case r.a.FRAMEBUFFER:return e((l(i={},r.a.DRAW_FRAMEBUFFER_BINDING,n),l(i,r.a.READ_FRAMEBUFFER_BINDING,n),i));case r.a.DRAW_FRAMEBUFFER:return e(l({},r.a.DRAW_FRAMEBUFFER_BINDING,n));case r.a.READ_FRAMEBUFFER:return e(l({},r.a.READ_FRAMEBUFFER_BINDING,n));default:return null}},blendColor:function(e,t,n,i,o){return e(l({},r.a.BLEND_COLOR,new Float32Array([t,n,i,o])))},blendEquation:function(e,t){var n;return e((l(n={},r.a.BLEND_EQUATION_RGB,t),l(n,r.a.BLEND_EQUATION_ALPHA,t),n))},blendEquationSeparate:function(e,t,n){var i;return e((l(i={},r.a.BLEND_EQUATION_RGB,t),l(i,r.a.BLEND_EQUATION_ALPHA,n),i))},blendFunc:function(e,t,n){var i;return e((l(i={},r.a.BLEND_SRC_RGB,t),l(i,r.a.BLEND_DST_RGB,n),l(i,r.a.BLEND_SRC_ALPHA,t),l(i,r.a.BLEND_DST_ALPHA,n),i))},blendFuncSeparate:function(e,t,n,i,o){var a;return e((l(a={},r.a.BLEND_SRC_RGB,t),l(a,r.a.BLEND_DST_RGB,n),l(a,r.a.BLEND_SRC_ALPHA,i),l(a,r.a.BLEND_DST_ALPHA,o),a))},clearColor:function(e,t,n,i,o){return e(l({},r.a.COLOR_CLEAR_VALUE,new Float32Array([t,n,i,o])))},clearDepth:function(e,t){return e(l({},r.a.DEPTH_CLEAR_VALUE,t))},clearStencil:function(e,t){return e(l({},r.a.STENCIL_CLEAR_VALUE,t))},colorMask:function(e,t,n,i,o){return e(l({},r.a.COLOR_WRITEMASK,[t,n,i,o]))},cullFace:function(e,t){return e(l({},r.a.CULL_FACE_MODE,t))},depthFunc:function(e,t){return e(l({},r.a.DEPTH_FUNC,t))},depthRange:function(e,t,n){return e(l({},r.a.DEPTH_RANGE,new Float32Array([t,n])))},depthMask:function(e,t){return e(l({},r.a.DEPTH_WRITEMASK,t))},frontFace:function(e,t){return e(l({},r.a.FRONT_FACE,t))},lineWidth:function(e,t){return e(l({},r.a.LINE_WIDTH,t))},polygonOffset:function(e,t,n){var i;return e((l(i={},r.a.POLYGON_OFFSET_FACTOR,t),l(i,r.a.POLYGON_OFFSET_UNITS,n),i))},sampleCoverage:function(e,t,n){var i;return e((l(i={},r.a.SAMPLE_COVERAGE_VALUE,t),l(i,r.a.SAMPLE_COVERAGE_INVERT,n),i))},scissor:function(e,t,n,i,o){return e(l({},r.a.SCISSOR_BOX,new Int32Array([t,n,i,o])))},stencilMask:function(e,t){var n;return e((l(n={},r.a.STENCIL_WRITEMASK,t),l(n,r.a.STENCIL_BACK_WRITEMASK,t),n))},stencilMaskSeparate:function(e,t,n){return e(l({},t===r.a.FRONT?r.a.STENCIL_WRITEMASK:r.a.STENCIL_BACK_WRITEMASK,n))},stencilFunc:function(e,t,n,i){var o;return e((l(o={},r.a.STENCIL_FUNC,t),l(o,r.a.STENCIL_REF,n),l(o,r.a.STENCIL_VALUE_MASK,i),l(o,r.a.STENCIL_BACK_FUNC,t),l(o,r.a.STENCIL_BACK_REF,n),l(o,r.a.STENCIL_BACK_VALUE_MASK,i),o))},stencilFuncSeparate:function(e,t,n,i,o){var a;return e((l(a={},t===r.a.FRONT?r.a.STENCIL_FUNC:r.a.STENCIL_BACK_FUNC,n),l(a,t===r.a.FRONT?r.a.STENCIL_REF:r.a.STENCIL_BACK_REF,i),l(a,t===r.a.FRONT?r.a.STENCIL_VALUE_MASK:r.a.STENCIL_BACK_VALUE_MASK,o),a))},stencilOp:function(e,t,n,i){var o;return e((l(o={},r.a.STENCIL_FAIL,t),l(o,r.a.STENCIL_PASS_DEPTH_FAIL,n),l(o,r.a.STENCIL_PASS_DEPTH_PASS,i),l(o,r.a.STENCIL_BACK_FAIL,t),l(o,r.a.STENCIL_BACK_PASS_DEPTH_FAIL,n),l(o,r.a.STENCIL_BACK_PASS_DEPTH_PASS,i),o))},stencilOpSeparate:function(e,t,n,i,o){var a;return e((l(a={},t===r.a.FRONT?r.a.STENCIL_FAIL:r.a.STENCIL_BACK_FAIL,n),l(a,t===r.a.FRONT?r.a.STENCIL_PASS_DEPTH_FAIL:r.a.STENCIL_BACK_PASS_DEPTH_FAIL,i),l(a,t===r.a.FRONT?r.a.STENCIL_PASS_DEPTH_PASS:r.a.STENCIL_BACK_PASS_DEPTH_PASS,o),a))},viewport:function(e,t,n,i,o){return e(l({},r.a.VIEWPORT,new Int32Array([t,n,i,o])))}};function h(e,t){var n=e[t].bind(e);e[t]=function(){var t=arguments.length<=0?void 0:arguments[0];return t in e.state.cache||(e.state.cache[t]=n.apply(void 0,arguments)),e.state.enable?e.state.cache[t]:n.apply(void 0,arguments)},Object.defineProperty(e[t],"name",{value:t+"-from-cache",configurable:!1})}function p(e,t,n){var r=e[t].bind(e);e[t]=function(){for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];var s,u=n.apply(void 0,[e.state._updateCache].concat(o)),c=u.valueChanged,l=u.oldValue;return c&&((s=e.state).log.apply(s,["gl."+t].concat(o)),r.apply(void 0,o)),l},Object.defineProperty(e[t],"name",{value:t+"-to-cache",configurable:!1})}var v=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.copyState,a=void 0!==o&&o,s=r.log,u=void 0===s?function(){}:s;c(this,e),this.gl=t,this.stateStack=[],this.enable=!0,this.cache=a?n.i(i.a)(t):Object.assign({},i.b),this.log=u,this._updateCache=this._updateCache.bind(this),Object.seal(this)}return u(e,[{key:"push",value:function(){this.stateStack.push({})}},{key:"pop",value:function(){s()(this.stateStack.length>0);var e=this.stateStack[this.stateStack.length-1];n.i(i.c)(this.gl,e,this.cache),this.stateStack.pop()}},{key:"_updateCache",value:function(e){var t=!1,n=void 0,r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(var i in e)s()(void 0!==i),f(e[i],this.cache[i])||(t=!0,n=this.cache[i],r&&!(i in r)&&(r[i]=this.cache[i]),this.cache[i]=e[i]);return{valueChanged:t,oldValue:n}}}]),e}()},function(e,t,n){"use strict";t.c=u,t.b=c,t.a=function(e){var t=u(e),n=c(e);return{vendor:n[37445]||n[i.a.VENDOR],renderer:n[37446]||n[i.a.RENDERER],version:n[i.a.VERSION],shadingLanguageVersion:n[i.a.SHADING_LANGUAGE_VERSION],info:n,limits:t,webgl1MinLimits:e.luma.webgl1MinLimits,webgl2MinLimits:e.luma.webgl2MinLimits}},t.d=function(e){return function(e){var t=e.getParameter(i.a.VENDOR),n=e.getParameter(i.a.RENDERER),r=e.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&e.getParameter(r.UNMASKED_VENDOR_WEBGL||i.a.VENDOR)||t,renderer:r&&e.getParameter(r.UNMASKED_RENDERER_WEBGL||i.a.RENDERER)||n,vendorMasked:t,rendererMasked:n,version:e.getParameter(i.a.VERSION),shadingLanguageVersion:e.getParameter(i.a.SHADING_LANGUAGE_VERSION)}}(e)};var r,i=n(25),o=n(7);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=(a(r={},i.a.ALIASED_LINE_WIDTH_RANGE,{gl1:new Float32Array([1,1])}),a(r,i.a.ALIASED_POINT_SIZE_RANGE,{gl1:new Float32Array([1,1])}),a(r,i.a.MAX_TEXTURE_SIZE,{gl1:64,gl2:2048}),a(r,i.a.MAX_CUBE_MAP_TEXTURE_SIZE,{gl1:16}),a(r,i.a.MAX_TEXTURE_IMAGE_UNITS,{gl1:8}),a(r,i.a.MAX_COMBINED_TEXTURE_IMAGE_UNITS,{gl1:8}),a(r,i.a.MAX_VERTEX_TEXTURE_IMAGE_UNITS,{gl1:0}),a(r,i.a.MAX_RENDERBUFFER_SIZE,{gl1:1}),a(r,i.a.MAX_VARYING_VECTORS,{gl1:8}),a(r,i.a.MAX_VERTEX_ATTRIBS,{gl1:8}),a(r,i.a.MAX_VERTEX_UNIFORM_VECTORS,{gl1:128}),a(r,i.a.MAX_FRAGMENT_UNIFORM_VECTORS,{gl1:16}),a(r,i.a.MAX_VIEWPORT_DIMS,{gl1:new Int32Array([0,0])}),a(r,i.a.MAX_3D_TEXTURE_SIZE,{gl1:0,gl2:256}),a(r,i.a.MAX_ARRAY_TEXTURE_LAYERS,{gl1:0,gl2:256}),a(r,i.a.MAX_CLIENT_WAIT_TIMEOUT_WEBGL,{gl1:0,gl2:0}),a(r,i.a.MAX_COLOR_ATTACHMENTS,{gl1:0,gl2:4}),a(r,i.a.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS,{gl1:0,gl2:0}),a(r,i.a.MAX_COMBINED_UNIFORM_BLOCKS,{gl1:0,gl2:0}),a(r,i.a.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS,{gl1:0,gl2:0}),a(r,i.a.MAX_DRAW_BUFFERS,{gl1:0,gl2:4}),a(r,i.a.MAX_ELEMENT_INDEX,{gl1:0,gl2:0}),a(r,i.a.MAX_ELEMENTS_INDICES,{gl1:0,gl2:0}),a(r,i.a.MAX_ELEMENTS_VERTICES,{gl1:0,gl2:0}),a(r,i.a.MAX_FRAGMENT_INPUT_COMPONENTS,{gl1:0,gl2:0}),a(r,i.a.MAX_FRAGMENT_UNIFORM_BLOCKS,{gl1:0,gl2:0}),a(r,i.a.MAX_FRAGMENT_UNIFORM_COMPONENTS,{gl1:0,gl2:0}),a(r,i.a.MAX_SAMPLES,{gl1:0,gl2:0}),a(r,i.a.MAX_SERVER_WAIT_TIMEOUT,{gl1:0,gl2:0}),a(r,i.a.MAX_TEXTURE_LOD_BIAS,{gl1:0,gl2:0}),a(r,i.a.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS,{gl1:0,gl2:0}),a(r,i.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS,{gl1:0,gl2:0}),a(r,i.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS,{gl1:0,gl2:0}),a(r,i.a.MAX_UNIFORM_BLOCK_SIZE,{gl1:0,gl2:0}),a(r,i.a.MAX_UNIFORM_BUFFER_BINDINGS,{gl1:0,gl2:0}),a(r,i.a.MAX_VARYING_COMPONENTS,{gl1:0,gl2:0}),a(r,i.a.MAX_VERTEX_OUTPUT_COMPONENTS,{gl1:0,gl2:0}),a(r,i.a.MAX_VERTEX_UNIFORM_BLOCKS,{gl1:0,gl2:0}),a(r,i.a.MAX_VERTEX_UNIFORM_COMPONENTS,{gl1:0,gl2:0}),a(r,i.a.MIN_PROGRAM_TEXEL_OFFSET,{gl1:0,gl2:-8,negative:!0}),a(r,i.a.MAX_PROGRAM_TEXEL_OFFSET,{gl1:0,gl2:7}),a(r,i.a.UNIFORM_BUFFER_OFFSET_ALIGNMENT,{gl1:0,gl2:0}),r);function u(e){if(e.luma=e.luma||{},!e.luma.limits){e.luma.limits={},e.luma.webgl1MinLimits={},e.luma.webgl2MinLimits={};var t=n.i(o.b)(e);for(var r in s){var i=s[r],a=i.gl1,u="gl2"in i?i.gl2:i.gl1,c=t?u:a,l="gl2"in i&&!t||"extension"in i&&!e.getExtension(i.extension)?c:e.getParameter(r);e.luma.limits[r]=l,e.luma.webgl1MinLimits[r]=a,e.luma.webgl2MinLimits[r]=u}}return e.luma.limits}function c(e){if(e.luma=e.luma||{},!e.luma.info){var t,n=e.getExtension("WEBGL_debug_renderer_info");e.luma.info=(a(t={},i.a.VENDOR,e.getParameter(i.a.VENDOR)),a(t,i.a.RENDERER,e.getParameter(i.a.RENDERER)),a(t,i.a.UNMASKED_VENDOR_WEBGL,e.getParameter(n&&n.UNMASKED_VENDOR_WEBGL||i.a.VENDOR)),a(t,i.a.UNMASKED_RENDERER_WEBGL,e.getParameter(n&&n.UNMASKED_RENDERER_WEBGL||i.a.RENDERER)),a(t,i.a.VERSION,e.getParameter(i.a.VERSION)),a(t,i.a.SHADING_LANGUAGE_VERSION,e.getParameter(i.a.SHADING_LANGUAGE_VERSION)),t)}return e.luma.info}},function(e,t,n){"use strict";var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){return e},o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pendingQueries=new Set,this.invalidQueryType=null,this.invalidErrorMessage="",this.checkInvalid=function(){return!1}}return r(e,[{key:"poll",value:function(e){this.cancelInvalidQueries(e);var t=!0,n=!1,r=void 0;try{for(var i,o=this.pendingQueries.values()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(a.isResultAvailable()){var s=a.getResult();this.resolveQuery(a,s)}}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}},{key:"setInvalidator",value:function(e){var t=e.queryType,n=e.errorMessage,r=e.checkInvalid;this.invalidQueryType=t,this.invalidErrorMessage=n,this.checkInvalid=r}},{key:"beginQuery",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;this.cancelInvalidQueries(e.gl),this.cancelQuery(e);var r={};return e.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),Object.assign(e.promise,r),this.pendingQueries.add(e),e.promise.then(t).catch(n)}},{key:"resolveQuery",value:function(e,t){this.pendingQueries.delete(e),e.promise.resolve(t)}},{key:"rejectQuery",value:function(e,t){this.pendingQueries.delete(e),e.promise&&e.promise.reject(new Error(t))}},{key:"deleteQuery",value:function(e){return this.rejectQuery(e,"Query was deleted before result was available")}},{key:"cancelQuery",value:function(e){return this.rejectQuery(e,"Query was canceled before result was available")}},{key:"invalidateQuery",value:function(e){e instanceof this.invalidQueryType&&this.rejectQuery(e,this.invalidErrorMessage)}},{key:"cancelInvalidQueries",value:function(e){if(this.checkInvalid(e)){var t=!0,n=!1,r=void 0;try{for(var i,o=this.pendingQueries.values()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.invalidateQuery(a)}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}}}]),e}();t.a=new o},function(e,t,n){"use strict";var r=n(38),i=n(7),o=n(62),a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,t),n.i(i.j)(e);var o=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},r,{target:e.TEXTURE_2D})));return o.initialize(r),Object.seal(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,null,[{key:"isSupported",value:function(e,t){return o.a.isSupported(e,t)}}]),a(t,[{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit,t=this.gl;if(void 0===e)throw new Error("Texture.bind: must specify texture unit");return this.textureUnit=e,t.activeTexture(t.TEXTURE0+e),t.bindTexture(this.target,this.handle),e}},{key:"unbind",value:function(){var e=this.gl;if(void 0===this.textureUnit)throw new Error("Texture.unbind: texture unit not specified");return e.activeTexture(e.TEXTURE0+this.textureUnit),e.bindTexture(this.target,null),this.textureUnit}},{key:"getActiveUnit",value:function(){return this.gl.getParameter(r.f.ACTIVE_TEXTURE)-r.f.TEXTURE0}}]),t}(o.a);t.a=c},function(e,t,n){"use strict";t.a=function(e){var t=e.match(/([^\[]*)(\[[0-9]+\])?/);if(!t||t.length<2)throw new Error("Failed to parse GLSL uniform name "+e);return{name:t[1],length:t[2]||1,isArray:Boolean(t[2])}},t.b=function(e,t,n){var r=l[n.type];if(!r)throw new Error("Unknown GLSL uniform type "+n.type);return r.bind(null,e,t)},t.c=function(e,t){for(var n in e){var r=e[n];if(!_(r))throw t=t?t+" ":"",console.error(t+" Bad uniform "+n,r),new Error(t+" Bad uniform "+n)}return!0},t.e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.header,r=void 0===t?"Uniforms":t,i=e.program,o=e.uniforms,s=e.undefinedOnly,l=void 0!==s&&s;u()(i);var f=".*_.*",d=".*Matrix",h=i._uniformSetters,p={},v=Object.keys(h).sort(),g=0,y=!0,_=!1,b=void 0;try{for(var E,w=v[Symbol.iterator]();!(y=(E=w.next()).done);y=!0){var P=E.value;P.match(f)||P.match(d)||m({table:p,header:r,uniforms:o,uniformName:P,undefinedOnly:l})&&g++}}catch(e){_=!0,b=e}finally{try{!y&&w.return&&w.return()}finally{if(_)throw b}}var S=!0,T=!1,A=void 0;try{for(var x,O=v[Symbol.iterator]();!(S=(x=O.next()).done);S=!0){var R=x.value;R.match(d)&&m({table:p,header:r,uniforms:o,uniformName:R,undefinedOnly:l})&&g++}}catch(e){T=!0,A=e}finally{try{!S&&O.return&&O.return()}finally{if(T)throw A}}var C=!0,M=!1,k=void 0;try{for(var L,I=v[Symbol.iterator]();!(C=(L=I.next()).done);C=!0){var N=L.value;p[N]||m({table:p,header:r,uniforms:o,uniformName:N,undefinedOnly:l})&&g++}}catch(e){M=!0,k=e}finally{try{!C&&I.return&&I.return()}finally{if(M)throw k}}var F=0,j={};if(!l)for(var D in o){var B=o[D];p[D]||(F++,j[D]=c({Type:"NOT USED: "+B},r,n.i(a.c)(B)))}return{table:p,count:g,unusedTable:j,unusedCount:F}},t.d=function(e,t){if(Array.isArray(e)||ArrayBuffer.isView(e)){if(!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}return e===t};var r,i=n(69),o=n(62),a=n(8),s=n(1),u=n.n(s);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=(c(r={},5126,(function(e,t,n){return e.uniform1f(t,n)})),c(r,35664,(function(e,t,n){return e.uniform2fv(t,v(n,2))})),c(r,35665,(function(e,t,n){return e.uniform3fv(t,v(n,3))})),c(r,35666,(function(e,t,n){return e.uniform4fv(t,v(n,4))})),c(r,5124,(function(e,t,n){return e.uniform1i(t,n)})),c(r,35667,(function(e,t,n){return e.uniform2iv(t,g(n,2))})),c(r,35668,(function(e,t,n){return e.uniform3iv(t,g(n,3))})),c(r,35669,(function(e,t,n){return e.uniform4iv(t,g(n,4))})),c(r,35670,(function(e,t,n){return e.uniform1i(t,n)})),c(r,35671,(function(e,t,n){return e.uniform2iv(t,g(n,2))})),c(r,35672,(function(e,t,n){return e.uniform3iv(t,g(n,3))})),c(r,35673,(function(e,t,n){return e.uniform4iv(t,g(n,4))})),c(r,35674,(function(e,t,n){return e.uniformMatrix2fv(t,!1,v(n,4))})),c(r,35675,(function(e,t,n){return e.uniformMatrix3fv(t,!1,v(n,9))})),c(r,35676,(function(e,t,n){return e.uniformMatrix4fv(t,!1,v(n,16))})),c(r,35678,(function(e,t,n){return e.uniform1i(t,n)})),c(r,35680,(function(e,t,n){return e.uniform1i(t,n)})),c(r,5125,(function(e,t,n){return e.uniform1ui(t,n)})),c(r,36294,(function(e,t,n){return e.uniform2uiv(t,y(n,2))})),c(r,36295,(function(e,t,n){return e.uniform3uiv(t,y(n,3))})),c(r,36296,(function(e,t,n){return e.uniform4uiv(t,y(n,4))})),c(r,35685,(function(e,t,n){return e.uniformMatrix2x3fv(t,!1,v(n,6))})),c(r,35686,(function(e,t,n){return e.uniformMatrix2x4fv(t,!1,v(n,8))})),c(r,35687,(function(e,t,n){return e.uniformMatrix3x2fv(t,!1,v(n,6))})),c(r,35688,(function(e,t,n){return e.uniformMatrix3x4fv(t,!1,v(n,12))})),c(r,35689,(function(e,t,n){return e.uniformMatrix4x2fv(t,!1,v(n,8))})),c(r,35690,(function(e,t,n){return e.uniformMatrix4x3fv(t,!1,v(n,12))})),c(r,35679,(function(e,t,n){return e.uniform1i(t,n)})),c(r,35682,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36289,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36292,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36293,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36298,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36299,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36300,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36303,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36306,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36307,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36308,(function(e,t,n){return e.uniform1i(t,n)})),c(r,36311,(function(e,t,n){return e.uniform1i(t,n)})),r),f={},d={},h={};function p(e,t,n,r){var i=e.length;if(i%t&&a.b.warn("Uniform size should be multiples of "+t,e),e instanceof n)return e;var o=r[i];o||(o=new n(i),r[i]=o);for(var s=0;s<i;s++)o[s]=e[s];return o}function v(e,t){return p(e,t,Float32Array,f)}function g(e,t){return p(e,t,Int32Array,d)}function y(e,t){return p(e,t,Uint32Array,h)}function _(e){return Array.isArray(e)?e.length>0&&e.every((function(e){return isFinite(e)})):ArrayBuffer.isView(e)?e.length>0:!!isFinite(e)||e instanceof o.a||e instanceof i.a&&Boolean(e.texture)}function m(e){var t=e.table,r=e.header,i=e.uniforms,o=e.uniformName,s=e.undefinedOnly,u=i[o],l=function(e){return null!=e}(u);return!(s&&l||(t[o]=c({Type:l?u:"NOT PROVIDED"},r,l?n.i(a.c)(u):"N/A"),0))}},function(e,t,n){"use strict";var r=n(25),i=n(7),o=n(30),a=n(1),s=n.n(a),u=n(8),c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=34963,h=[34338,34339,34340,34341,34922,34373,34975,35069,35070],p=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,t);var r=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.elements=null,r.buffers={},r.locations={},r.names={},r.drawParameters={},r._bound=!1,r._filledLocations={},Object.seal(r),r.initialize(n),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),c(t,[{key:"MAX_ATTRIBUTES",get:function(){return this.gl.getParameter(this.gl.MAX_VERTEX_ATTRIBS)}}],[{key:"isSupported",value:function(e){return n.i(i.b)(e)||e.getExtension("OES_vertex_array_object")}},{key:"getDefaultArray",value:function(e){return e.luma=e.luma||{},e.luma.defaultVertexArray||(e.luma.defaultVertexArray=new t(e,{handle:null})),e.luma.defaultVertexArray}},{key:"getMaxAttributes",value:function(e){return e.getParameter(e.MAX_VERTEX_ATTRIBS)}}]),c(t,[{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buffers,n=void 0===t?{}:t,r=e.elements,i=void 0===r?null:r,o=e.locations,a=void 0===o?{}:o;this.setLocations(a),this.setBuffers(n,{clear:!0}),this.setElements(i)}},{key:"setLocations",value:function(e){this.locations=e,this.names={}}},{key:"setElements",value:function(e){return s()(!e||e.target===d,"elements must be GL.ELEMENT_ARRAY_BUFFER"),this.ext.bindVertexArray(this.handle),this.gl.bindBuffer(d,e&&e.handle),this.ext.bindVertexArray(null),this.elements=e,this}},{key:"_getBufferAndLayout",value:function(e){var t=void 0,n=void 0;return e.handle?(t=e,n=e.layout):(t=e.buffer,n=Object.assign({},t.layout,e.layout||{},e)),{buffer:t,layout:n}}},{key:"setBuffers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clear,r=void 0===n||n;r&&this.clearBindings();var i=this._getLocations(e),o=i.locations,a=i.elements;for(var s in this.ext.bindVertexArray(this.handle),o){var u=o[s];if(u){var c=this._getBufferAndLayout(u),l=c.buffer,f=c.layout;this.setBuffer({location:s,buffer:l,layout:f}),this.setDivisor(s,f.instanced?1:0),this.enable(s)}else this.disable(s)}this.buffers=e,this.ext.bindVertexArray(null),a&&this.setElements(a)}},{key:"enable",value:function(e){var t=this;this.bind((function(){t.gl.enableVertexAttribArray(e)}))}},{key:"clearBindings",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.disableZero,r=void 0!==n&&n;this.bind((function(){for(var t in e._filledLocations)e._filledLocations[t]&&(t>0||r)&&e.gl.disableVertexAttribArray(t);e._filledLocations={}}))}},{key:"disable",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(e>0||n)&&this.bind((function(){t.gl.disableVertexAttribArray(e)}))}},{key:"setDivisor",value:function(e,t){var n=this;this.bind((function(){n.ext.vertexAttribDivisor(e,t)}))}},{key:"setBuffer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.location,r=e.buffer,o=e.target,a=e.layout,u=this.gl;o=void 0!==o?o:r.target,a=void 0!==a?a:r.layout,s()(o,"setBuffer needs target"),s()(a,"setBuffer called on uninitialized buffer"),this._filledLocations[t]=!0,this.bind((function(){r.bind({target:u.ARRAY_BUFFER});var e=a,o=e.size,c=e.type,l=e.normalized,f=e.stride,d=e.offset;a.integer?(s()(n.i(i.b)(u)),u.vertexAttribIPointer(t,o,c,f,d)):u.vertexAttribPointer(t,o,c,l,f,d)}))}},{key:"setGeneric",value:function(e){var t=e.location,n=e.array;switch(this._filledLocations[t]=!0,n.constructor){case Float32Array:this._setGenericFloatArray(t,n);break;case Int32Array:this._setGenericIntArray(t,n);break;case Uint32Array:this._setGenericUintArray(t,n);break;default:this.setGenericValues.apply(this,[t].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n)))}}},{key:"_setGenericFloatArray",value:function(e,t){var n=this.gl;switch(t.length){case 1:n.vertexAttrib1fv(e,t);break;case 2:n.vertexAttrib2fv(e,t);break;case 3:n.vertexAttrib3fv(e,t);break;case 4:n.vertexAttrib4fv(e,t);break;default:s()(!1)}}},{key:"_setGenericIntArray",value:function(e,t){var r=this.gl;switch(s()(n.i(i.b)(r)),t.length){case 1:r.vertexAttribI1iv(e,t);break;case 2:r.vertexAttribI2iv(e,t);break;case 3:r.vertexAttribI3iv(e,t);break;case 4:r.vertexAttribI4iv(e,t);break;default:s()(!1)}}},{key:"_setGenericUintArray",value:function(e,t){var r=this.gl;switch(s()(n.i(i.b)(r)),t.length){case 1:r.vertexAttribI1uiv(e,t);break;case 2:r.vertexAttribI2uiv(e,t);break;case 3:r.vertexAttribI3uiv(e,t);break;case 4:r.vertexAttribI4uiv(e,t);break;default:s()(!1)}}},{key:"setGenericValues",value:function(e,t,n,r,i){var o=this.gl;switch(arguments.length-1){case 1:o.vertexAttrib1f(e,t);break;case 2:o.vertexAttrib2f(e,t,n);break;case 3:o.vertexAttrib3f(e,t,n,r);break;case 4:o.vertexAttrib4f(e,t,n,r,i);break;default:s()(!1)}}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.handle;if("function"!=typeof e)return this.bindVertexArray(e),this;var t=void 0;return this._bound?t=e():(this.ext.bindVertexArray(this.handle),this._bound=!0,t=e(),this.ext.bindVertexArray(null),this._bound=!1),t}},{key:"_deduceDrawParameters",value:function(){var e=!1,t=!1,n=null;return this.elements&&(t=!0,n=this.elements.layout.type),this.buffers.forEach((function(t){t.layout.instanced>0&&(e=!0)})),{isInstanced:e,isIndexed:t,indexType:n}}},{key:"_getLocations",value:function(e){var t=null,n={};for(var r in e){var i=e[r];i&&i.target===d&&(s()(!t,"Duplicate GL.ELEMENT_ARRAY_BUFFER"),t=i);var o=Number(r);Number.isFinite(o)||(o=this.locations[r]),s()(Number.isFinite(o)),s()(!n[o],"Duplicate attribute for binding point "+o),n[o]=i}return{locations:n,elements:t}}},{key:"_sortBuffersByLocation",value:function(e){var t=null,n=new Array(this._attributeCount).fill(null);for(var r in e){var i=e[r];i.target===d?(s()(!t,"Duplicate GL.ELEMENT_ARRAY_BUFFER"),t=i):this._warn[r]||(u.b.warn(2,this._print(r)+" not used"),this._warn[r]=!0);var o=Number(r);Number.isFinite(o)||(o=this.locations[r]),n[o]=r,s()(null===n[o],"Duplicate attribute for binding point "+o),n[o]=o}return{locations:n,elements:t}}},{key:"_createHandle",value:function(){return this.ext.createVertexArray()}},{key:"_deleteHandle",value:function(e){return this.ext.deleteVertexArray(e),[this.elements]}},{key:"_getParameter",value:function(e,t){var n=t.location;s()(Number.isFinite(n)),this.ext.bindVertexArray(this.handle);var r;return r=34373===e?this.gl.getVertexAttribOffset(n,e):this.ext.getVertexAttrib(n,e),this.ext.bindVertexArray(null),r}},{key:"_getData",value:function(){var e=this;return new Array(this.MAX_ATTRIBUTES).fill(0).map((function(t,i){var o={};return h.forEach((function(t){o[n.i(r.c)(t)]=e.getParameter(t,{location:i})})),o}))}},{key:"_bind",value:function(e){this.ext.bindVertexArray(e)}},{key:"filledLocations",get:function(){return this._filledLocations}}]),t}(o.a);t.a=p},function(e,t,n){"use strict";var r=n(112),i=n(31),o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var r=Math.sqrt;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"len",value:function(){return r(this.lengthSquared())}},{key:"magnitude",value:function(){return r(this.lengthSquared())}},{key:"lengthSquared",value:function(){for(var e=0,t=0;t<this.ELEMENTS;++t)e+=this[t]*this[t];return e}},{key:"distance",value:function(e){return r(this.distanceSquared(e))}},{key:"distanceSquared",value:function(e){for(var t,r=0,o=0;o<this.ELEMENTS;++o)r+=(t=this[o]-e[o])*t;return n.i(i.g)(r)}},{key:"dot",value:function(e){for(var t=0,r=0;r<this.ELEMENTS;++r)t+=this[r]*e[r];return n.i(i.g)(t)}},{key:"normalize",value:function(){var e=this.magnitude();if(0!==e)for(var t=0;t<this.ELEMENTS;++t)this[t]/=e;return this.check()}}]),t}(r.a);t.a=u},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},i="undefined"!=typeof window&&window.addEventListener,o=new Map,a=function(){return i&&window.__SEER_INITIALIZED__},s=function(e,t){var n=o.get(e),r=Date.now();return!!(n&&r-n<t)||(o.set(e,r),!1)},u=function(e){return function(t,n){if(!n||"object"!==(void 0===n?"undefined":r(n))||!e.has(n))return e.add(n),Object.prototype.toString.call(n).slice(8,-1).includes("Array")?Array.prototype.slice.call(n,0,20):n}},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i&&a()){var n=new Set,r=JSON.stringify(t,u(n));try{window.postMessage({type:e,payload:r,source:"seer-agent"},"*")}catch(e){if(s("seer-log",2e3))return;console.log(e)}}},l=new Map,f=function(e){if(e&&e.data&&"seer-core"===e.data.source){var t=e.data,n=t.type,r=t.payload,i=l.get(n);i&&i.forEach((function(e){return e(r)}))}},d=function(){i&&!window.__SEER_LISTENER__&&(window.addEventListener("message",f),window.__SEER_LISTENER__=!0)};t.default={send:c,throttle:s,isReady:a,list:function(e,t){return c("LIST",{key:e,data:t})},listItem:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c("LIST_ITEM",{key:e,itemKey:t,data:n})},updateItem:function(e,t,n,r){return c("UPDATE_ITEM",{key:e,itemKey:t,path:n,data:r})},multiUpdate:function(e,t,n){return c("MULTI_UPDATE_ITEM",{key:e,itemKey:t,array:n})},deleteItem:function(e,t){return c("DELETE_ITEM",{key:e,itemKey:t})},addLog:function(e,t,n){return c("ADD_LOG",{key:e,itemKey:t,msg:n})},listeners:l,listenFor:function(e,t){if(i){if(!e||!t)throw new Error("Please provide a type and callback");l.has(e)||l.set(e,[]),window.__SEER_LISTENER__||d(),l.get(e).push(t)}},removeListener:function(e){l.forEach((function(t,n){l.set(n,t.filter((function(t){return t!==e})))}))},init:d,clean:function(){i&&window.__SEER_LISTENER__&&(window.removeEventListener("message",f),delete window.__SEER_LISTENER__)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(13),a=n(12),s=l(n(297)),u=l(n(296)),c=l(n(295));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=o.experimental.fp64LowPart,p=o.experimental.enable64bitSupport,v=[255,0,255,255],g=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getShaders",value:function(){var e=this.context.shaderCache;return p(this.props)?{vs:u.default,fs:c.default,modules:["project64","lighting","picking"],shaderCache:e}:{vs:s.default,fs:c.default,modules:["lighting","picking"],shaderCache:e}}},{key:"initializeState",value:function(){this.getAttributeManager().addInstanced({instancePositions:{size:4,transition:!0,accessor:["getPosition","getElevation"],update:this.calculateInstancePositions},instanceColors:{size:4,type:a.GL.UNSIGNED_BYTE,transition:!0,accessor:"getColor",update:this.calculateInstanceColors}})}},{key:"updateAttribute",value:function(e){var t=e.props,n=e.oldProps;if(e.changeFlags,t.fp64!==n.fp64){var r=this.getAttributeManager();r.invalidateAll(),t.fp64&&t.coordinateSystem===o.COORDINATE_SYSTEM.LNGLAT?r.addInstanced({instancePositions64xyLow:{size:2,accessor:"getPosition",update:this.calculateInstancePositions64xyLow}}):r.remove(["instancePositions64xyLow"])}}},{key:"updateState",value:function(e){var n=e.props,r=e.oldProps,o=e.changeFlags;if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateState",this).call(this,{props:n,oldProps:r,changeFlags:o}),n.fp64!==r.fp64){var a=this.context.gl;this.setState({model:this._getModel(a)})}this.updateAttribute({props:n,oldProps:r,changeFlags:o}),this.updateUniforms()}},{key:"_getModel",value:function(e){return new a.Model(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new a.CubeGeometry,isInstanced:!0,shaderCache:this.context.shaderCache}))}},{key:"updateUniforms",value:function(){var e=this.props,t=e.opacity,n=e.extruded,r=e.elevationScale,i=e.coverage,o=e.lightSettings;this.state.model.setUniforms(Object.assign({},{extruded:n,elevationScale:r,opacity:t,coverage:i},o))}},{key:"draw",value:function(e){var n=e.uniforms,r=this.context.viewport.getDistanceScales().pixelsPerMeter;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"draw",this).call(this,{uniforms:Object.assign({cellSize:this.props.cellSize*r[0]},n)})}},{key:"calculateInstancePositions",value:function(e){var t=this.props,n=t.data,r=t.getPosition,i=t.getElevation,o=e.value,a=e.size,s=0,u=!0,c=!1,l=void 0;try{for(var f,d=n[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var h=f.value,p=r(h),v=i(h)||0;o[s+0]=p[0],o[s+1]=p[1],o[s+2]=0,o[s+3]=v,s+=a}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}}},{key:"calculateInstancePositions64xyLow",value:function(e){var t=this.props,n=t.data,r=t.getPosition,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=h(f[0]),i[o++]=h(f[1])}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstanceColors",value:function(e){var t=this.props,n=t.data,r=t.getColor,i=e.value,o=e.size,a=0,s=!0,u=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=r(l.value)||v;i[a+0]=d[0],i[a+1]=d[1],i[a+2]=d[2],i[a+3]=Number.isFinite(d[3])?d[3]:v[3],a+=o}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}}]),t}(o.Layer);t.default=g,g.layerName="GridCellLayer",g.defaultProps={cellSize:1e3,coverage:1,elevationScale:1,extruded:!0,fp64:!1,getPosition:function(e){return e.position},getElevation:function(e){return e.elevation},getColor:function(e){return e.color},lightSettings:{lightsPosition:[-122.45,37.65,8e3,-122.45,37.2,1e3],ambientRatio:.4,diffuseRatio:.6,specularRatio:.8,lightsStrength:[1,0,.8,0],numberOfLights:2}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(13),s=n(12),u=f(n(302)),c=f(n(301)),l=f(n(300));function f(e){return e&&e.__esModule?e:{default:e}}var d=a.experimental.log,h=a.experimental.fp64LowPart,p=a.experimental.enable64bitSupport,v=[255,0,255,255],g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=!1;return e.hexagonVertices||e.radius&&Number.isFinite(e.angle)?e.hexagonVertices&&(!Array.isArray(e.hexagonVertices)||e.hexagonVertices.length<6)&&(d.once(0,"HexagonCellLayer: hexagonVertices needs to be an array of 6 points"),n=!0):(d.once(0,"HexagonCellLayer: Either hexagonVertices or radius and angle are needed to calculate primitive hexagon."),n=!0),n&&(d.once(0,"Now using 1000 meter as default radius, 0 as default angle"),e.radius=1e3,e.angle=0),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"getShaders",value:function(){return p(this.props)?{vs:c.default,fs:l.default,modules:["project64","lighting","picking"]}:{vs:u.default,fs:l.default,modules:["lighting","picking"]}}},{key:"initializeState",value:function(){this.getAttributeManager().addInstanced({instancePositions:{size:3,transition:!0,accessor:["getCentroid","getElevation"],update:this.calculateInstancePositions},instanceColors:{size:4,type:s.GL.UNSIGNED_BYTE,transition:!0,accessor:"getColor",update:this.calculateInstanceColors}})}},{key:"updateAttribute",value:function(e){var t=e.props,n=e.oldProps;if(e.changeFlags,t.fp64!==n.fp64){var r=this.getAttributeManager();r.invalidateAll(),t.fp64&&t.coordinateSystem===a.COORDINATE_SYSTEM.LNGLAT?r.addInstanced({instancePositions64xyLow:{size:2,accessor:"getCentroid",update:this.calculateInstancePositions64xyLow}}):r.remove(["instancePositions64xyLow"])}}},{key:"updateState",value:function(e){var n=e.props,r=e.oldProps,i=e.changeFlags;if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateState",this).call(this,{props:n,oldProps:r,changeFlags:i}),n.fp64!==r.fp64){var a=this.context.gl;this.setState({model:this._getModel(a)})}this.updateAttribute({props:n,oldProps:r,changeFlags:i}),this.updateUniforms()}},{key:"updateRadiusAngle",value:function(){var e=void 0,t=void 0,n=this.props.hexagonVertices;if(Array.isArray(n)&&n.length>=6){var r=this.props.hexagonVertices,i=r[0],o=r[3],a=this.projectFlat(i),s=this.projectFlat(o),u=a[0]-s[0],c=a[1]-s[1],l=Math.sqrt(u*u+c*c);e=Math.acos(u/l)*-Math.sign(c)+Math.PI/2,t=l/2}else if(this.props.radius&&Number.isFinite(this.props.angle)){var f=this.context.viewport.getDistanceScales().pixelsPerMeter;e=this.props.angle,t=this.props.radius*f[0]}return{angle:e,radius:t}}},{key:"getCylinderGeometry",value:function(e){return new s.CylinderGeometry({radius:e,topRadius:e,bottomRadius:e,topCap:!0,bottomCap:!0,height:1,nradial:6,nvertical:1})}},{key:"updateUniforms",value:function(){var e=this.props,t=e.opacity,n=e.elevationScale,r=e.extruded,i=e.coverage,o=e.lightSettings;this.state.model.setUniforms(Object.assign({},{extruded:r,opacity:t,coverage:i,elevationScale:n},o))}},{key:"_getModel",value:function(e){return new s.Model(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:this.getCylinderGeometry(1),isInstanced:!0,shaderCache:this.context.shaderCache}))}},{key:"draw",value:function(e){var n=e.uniforms;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"draw",this).call(this,{uniforms:Object.assign(this.updateRadiusAngle(),n)})}},{key:"calculateInstancePositions",value:function(e){var t=this.props,n=t.data,i=t.getCentroid,o=t.getElevation,a=e.value,s=e.size,u=0,c=!0,l=!1,f=void 0;try{for(var d,h=n[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var p=d.value,v=i(p),g=r(v,2),y=g[0],_=g[1],m=o(p);a[u+0]=y,a[u+1]=_,a[u+2]=m||0,u+=s}}catch(e){l=!0,f=e}finally{try{!c&&h.return&&h.return()}finally{if(l)throw f}}}},{key:"calculateInstancePositions64xyLow",value:function(e){var t=this.props,n=t.data,r=t.getCentroid,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=h(f[0]),i[o++]=h(f[1])}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstanceColors",value:function(e){var t=this.props,n=t.data,r=t.getColor,i=e.value,o=e.size,a=0,s=!0,u=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=r(l.value)||v;i[a+0]=d[0],i[a+1]=d[1],i[a+2]=d[2],i[a+3]=Number.isFinite(d[3])?d[3]:v[3],a+=o}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}}]),t}(a.Layer);t.default=g,g.layerName="HexagonCellLayer",g.defaultProps={hexagonVertices:null,radius:null,angle:null,coverage:1,elevationScale:1,extruded:!0,fp64:!1,getCentroid:function(e){return e.centroid},getColor:function(e){return e.color},getElevation:function(e){return e.elevation},lightSettings:{lightsPosition:[-122.45,37.75,8e3,-122,38,5e3],ambientRatio:.4,diffuseRatio:.6,specularRatio:.8,lightsStrength:[1.2,0,.8,0],numberOfLights:2}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(13),a=n(12),s=l(n(324)),u=l(n(323)),c=l(n(322));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=o.experimental.fp64LowPart,p=o.experimental.enable64bitSupport,v=[0,0,0,255],g={radiusScale:1,radiusMinPixels:0,radiusMaxPixels:Number.MAX_SAFE_INTEGER,strokeWidth:1,outline:!1,fp64:!1,getPosition:function(e){return e.position},getRadius:function(e){return e.radius||1},getColor:function(e){return e.color||v}},y=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getShaders",value:function(e){var t=this.context.shaderCache;return p(this.props)?{vs:u.default,fs:c.default,modules:["project64","picking"],shaderCache:t}:{vs:s.default,fs:c.default,modules:["picking"],shaderCache:t}}},{key:"initializeState",value:function(){this.state.attributeManager.addInstanced({instancePositions:{size:3,transition:!0,accessor:"getPosition",update:this.calculateInstancePositions},instanceRadius:{size:1,transition:!0,accessor:"getRadius",defaultValue:1,update:this.calculateInstanceRadius},instanceColors:{size:4,transition:!0,type:a.GL.UNSIGNED_BYTE,accessor:"getColor",update:this.calculateInstanceColors}})}},{key:"updateAttribute",value:function(e){var t=e.props,n=e.oldProps;if(e.changeFlags,t.fp64!==n.fp64){var r=this.getAttributeManager();r.invalidateAll(),t.fp64&&t.coordinateSystem===o.COORDINATE_SYSTEM.LNGLAT?r.addInstanced({instancePositions64xyLow:{size:2,accessor:"getPosition",update:this.calculateInstancePositions64xyLow}}):r.remove(["instancePositions64xyLow"])}}},{key:"updateState",value:function(e){var n=e.props,r=e.oldProps,o=e.changeFlags;if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateState",this).call(this,{props:n,oldProps:r,changeFlags:o}),n.fp64!==r.fp64){var a=this.context.gl;this.setState({model:this._getModel(a)})}this.updateAttribute({props:n,oldProps:r,changeFlags:o})}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props,r=n.radiusScale,i=n.radiusMinPixels,o=n.radiusMaxPixels,a=n.outline,s=n.strokeWidth;this.state.model.render(Object.assign({},t,{outline:a?1:0,strokeWidth:s,radiusScale:r,radiusMinPixels:i,radiusMaxPixels:o}))}},{key:"_getModel",value:function(e){return new a.Model(e,Object.assign(this.getShaders(),{id:this.props.id,geometry:new a.Geometry({drawMode:a.GL.TRIANGLE_FAN,attributes:{positions:new Float32Array([-1,-1,0,-1,1,0,1,1,0,1,-1,0])}}),isInstanced:!0,shaderCache:this.context.shaderCache}))}},{key:"calculateInstancePositions",value:function(e){var t=this.props,n=t.data,r=t.getPosition,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=f[0],i[o++]=f[1],i[o++]=f[2]||0}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstancePositions64xyLow",value:function(e){var t=this.props,n=t.data,r=t.getPosition,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=h(f[0]),i[o++]=h(f[1])}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstanceRadius",value:function(e){var t=this.props,n=t.data,r=t.getRadius,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=isNaN(f)?1:f}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstanceColors",value:function(e){var t=this.props,n=t.data,r=t.getColor,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value)||v;i[o++]=f[0],i[o++]=f[1],i[o++]=f[2],i[o++]=isNaN(f[3])?255:f[3]}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}}]),t}(o.Layer);t.default=y,y.layerName="ScatterplotLayer",y.defaultProps=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(13),a=n(12),s=n(187),u=n(329),c=n(328),l=h(n(332)),f=h(n(331)),d=h(n(330));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=o.experimental.enable64bitSupport,y=o.experimental.get,_={extruded:!1,wireframe:!1,fp64:!1,elevationScale:1,getPolygon:function(e){return y(e,"polygon")||y(e,"geometry.coordinates")},getElevation:function(e){return y(e,"elevation")||y(e,"properties.height")||0},getColor:function(e){return y(e,"color")||y(e,"properties.color")},lightSettings:{lightsPosition:[-122.45,37.75,8e3,-122,38,5e3],ambientRatio:.05,diffuseRatio:.6,specularRatio:.8,lightsStrength:[2,0,0,0],numberOfLights:2}},m=function(e){function t(){return p(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getShaders",value:function(){return g(this.props)?{vs:f.default,fs:d.default,modules:["project64","lighting","picking"]}:{vs:l.default,fs:d.default,modules:["lighting","picking"]}}},{key:"initializeState",value:function(){var e=this.context.gl;this.setState({numInstances:0,IndexType:e.getExtension("OES_element_index_uint")?Uint32Array:Uint16Array});var t=!0;this.getAttributeManager().add({indices:{size:1,isIndexed:!0,update:this.calculateIndices,noAlloc:t},positions:{size:3,accessor:"getElevation",update:this.calculatePositions,noAlloc:t},normals:{size:3,update:this.calculateNormals,noAlloc:t},colors:{size:4,type:a.GL.UNSIGNED_BYTE,accessor:"getColor",update:this.calculateColors,noAlloc:t},pickingColors:{size:3,type:a.GL.UNSIGNED_BYTE,update:this.calculatePickingColors,noAlloc:t}})}},{key:"updateAttribute",value:function(e){var t=e.props,n=e.oldProps;if(e.changeFlags,t.fp64!==n.fp64){var r=this.getAttributeManager();r.invalidateAll(),t.fp64&&t.coordinateSystem===o.COORDINATE_SYSTEM.LNGLAT?r.add({positions64xyLow:{size:2,update:this.calculatePositionsLow}}):r.remove(["positions64xyLow"])}}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props,r=n.extruded,i=n.lightSettings,o=n.elevationScale;this.state.model.render(Object.assign({},t,{extruded:r?1:0,elevationScale:o},i))}},{key:"updateState",value:function(e){var n=e.props,r=e.oldProps,o=e.changeFlags;if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateState",this).call(this,{props:n,oldProps:r,changeFlags:o}),this.updateGeometry({props:n,oldProps:r,changeFlags:o})){var a=this.context.gl;this.setState({model:this._getModel(a)})}this.updateAttribute({props:n,oldProps:r,changeFlags:o})}},{key:"updateGeometry",value:function(e){var t=this,n=e.props,r=e.oldProps,i=e.changeFlags,o=n.extruded!==r.extruded||n.wireframe!==r.wireframe||n.fp64!==r.fp64||i.updateTriggersChanged&&(i.updateTriggersChanged.all||i.updateTriggersChanged.getPolygon),a=i.updateTriggersChanged&&(0,s.compareProps)({oldProps:r.updateTriggers.getElevation||{},newProps:n.updateTriggers.getElevation||{},triggerName:"getElevation"});if(i.dataChanged||o||a){var l=n.getPolygon,f=n.extruded,d=n.wireframe,h=n.getElevation,p=n.data.map(l);this.setState({polygonTesselator:f?new c.PolygonTesselatorExtruded({polygons:p,wireframe:d,getHeight:function(e){return h(t.props.data[e])},fp64:this.props.fp64}):new u.PolygonTesselator({polygons:p,fp64:this.props.fp64})}),this.state.attributeManager.invalidateAll()}return o}},{key:"_getModel",value:function(e){return new a.Model(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new a.Geometry({drawMode:this.props.wireframe?a.GL.LINES:a.GL.TRIANGLES,attributes:{}}),vertexCount:0,isIndexed:!0,shaderCache:this.context.shaderCache}))}},{key:"calculateIndices",value:function(e){e.value=this.state.polygonTesselator.indices(),e.target=a.GL.ELEMENT_ARRAY_BUFFER,this.state.model.setVertexCount(e.value.length/e.size)}},{key:"calculatePositions",value:function(e){e.value=this.state.polygonTesselator.positions().positions}},{key:"calculatePositionsLow",value:function(e){e.value=this.state.polygonTesselator.positions().positions64xyLow}},{key:"calculateNormals",value:function(e){e.value=this.state.polygonTesselator.normals()}},{key:"calculateColors",value:function(e){var t=this;e.value=this.state.polygonTesselator.colors({getColor:function(e){return t.props.getColor(t.props.data[e])}})}},{key:"calculatePickingColors",value:function(e){e.value=this.state.polygonTesselator.pickingColors()}}]),t}(o.Layer);t.default=m,m.layerName="SolidPolygonLayer",m.defaultProps=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(121)),o=a(n(82));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o.default,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"_onPan",value:function(e){return this.isFunctionKeyPressed(e)?this._onPanRotate(e):this._onPanMove(e)}}]),t}(i.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(85)),o=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}var s={lookAt:[0,0,0],rotationX:0,rotationOrbit:0,fov:50,near:1,far:100,translationX:0,translationY:0,zoom:1},u=0,c=1/0;function l(e,t,n){return e<t?t:e>n?n:e}function f(e,t){return Number.isFinite(e)?e:t}var d=function(){function e(t){var n=t.width,r=t.height,i=t.distance,a=t.rotationX,l=t.rotationOrbit,d=t.orbitAxis,h=t.bounds,p=t.lookAt,v=t.fov,g=t.near,y=t.far,_=t.translationX,m=t.translationY,b=t.zoom,E=t.minZoom,w=t.maxZoom,P=t.startPanViewport,S=t.startPanPos,T=t.isPanning,A=t.startRotateViewport,x=t.isRotating,O=t.startZoomViewport,R=t.startZoomPos;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,o.default)(Number.isFinite(n),"`width` must be supplied"),(0,o.default)(Number.isFinite(r),"`height` must be supplied"),(0,o.default)(Number.isFinite(i),"`distance` must be supplied"),this._viewportProps=this._applyConstraints({width:n,height:r,distance:i,rotationX:f(a,s.rotationX),rotationOrbit:f(l,s.rotationOrbit),orbitAxis:d,bounds:h,lookAt:p||s.lookAt,fov:f(v,s.fov),near:f(g,s.near),far:f(y,s.far),translationX:f(_,s.translationX),translationY:f(m,s.translationY),zoom:f(b,s.zoom),minZoom:f(E,u),maxZoom:f(w,c)}),this._interactiveState={startPanViewport:P,startPanPos:S,isPanning:T,startRotateViewport:A,isRotating:x,startZoomViewport:O,startZoomPos:R}}return r(e,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getInteractiveState",value:function(){return this._interactiveState}},{key:"panStart",value:function(e){var t=e.pos,n=new i.default(this._viewportProps);return this._getUpdatedOrbitState({startPanPos:t,startPanViewport:n})}},{key:"pan",value:function(e){var t=e.pos,n=e.startPos;if(this._interactiveState.isRotating)return this._getUpdatedOrbitState();var r=this._interactiveState.startPanPos||n;(0,o.default)(r,"`startPanPos` props is required");var a=this._interactiveState.startPanViewport||new i.default(this._viewportProps),s=t[0]-r[0],u=t[1]-r[1],c=a.project(a.lookAt),l=a.unproject([c[0]-s,c[1]-u,c[2]]);return this._getUpdatedOrbitState({lookAt:l,isPanning:!0})}},{key:"panEnd",value:function(){return this._getUpdatedOrbitState({startPanViewport:null,startPanPos:null,isPanning:null})}},{key:"rotateStart",value:function(e){e.pos;var t=new i.default(this._viewportProps);return this._getUpdatedOrbitState({startRotateViewport:t})}},{key:"rotate",value:function(e){var t=e.deltaScaleX,n=e.deltaScaleY;if(this._interactiveState.isPanning)return this._getUpdatedOrbitState();var r=this._interactiveState.startRotateViewport||{},i=r.rotationX,o=r.rotationOrbit;i=f(i,this._viewportProps.rotationX),o=f(o,this._viewportProps.rotationOrbit);var a=l(i-180*n,-89.999,89.999),s=(o-180*t)%360;return this._getUpdatedOrbitState({rotationX:a,rotationOrbit:s,isRotating:!0})}},{key:"rotateEnd",value:function(){return this._getUpdatedOrbitState({startRotateViewport:null,isRotating:null})}},{key:"zoomStart",value:function(e){var t=e.pos,n=new i.default(this._viewportProps);return this._getUpdatedOrbitState({startZoomViewport:n,startZoomPos:t})}},{key:"zoom",value:function(e){var t=e.pos,n=e.startPos,r=e.scale,o=this._viewportProps,a=o.zoom,s=o.minZoom,u=o.maxZoom,c=o.width,f=o.height,d=this._interactiveState.startZoomPos||n||t,h=this._interactiveState.startZoomViewport||new i.default(this._viewportProps),p=l(a*r,s,u),v=t[0]-d[0],g=t[1]-d[1],y=d[0]-c/2,_=f/2-d[1],m=h.project(h.lookAt),b=m[0]-y+y*p/a+v,E=m[1]+_-_*p/a-g,w=h.unproject([b,E,m[2]]);return this._getUpdatedOrbitState({lookAt:w,zoom:p})}},{key:"zoomEnd",value:function(){return this._getUpdatedOrbitState({startZoomPos:null})}},{key:"_getUpdatedOrbitState",value:function(t){return new e(Object.assign({},this._viewportProps,this._interactiveState,t))}},{key:"_applyConstraints",value:function(e){var t=e.maxZoom,n=e.minZoom,r=e.zoom;return e.zoom=r>t?t:r,e.zoom=r<n?n:r,e}}]),e}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(16),a=(r=n(1))&&r.__esModule?r:{default:r},s=o.experimental.SphericalCoordinates,u={position:[0,0,0],lookAt:[0,0,0],up:[0,0,1],rotationX:0,rotationY:0,fov:50,near:1,far:100},c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t.width,r=t.height,i=t.position,s=void 0===i?u.position:i;(0,a.default)(Number.isFinite(n),"`width` must be supplied"),(0,a.default)(Number.isFinite(r),"`height` must be supplied"),this._viewportProps=this._applyConstraints(Object.assign({},t,{position:new o.Vector3(s)}))}return i(e,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getDirection",value:function(){return new s({bearing:this._viewportProps.bearing,pitch:this._viewportProps.pitch}).toVector3().normalize()}},{key:"getDirectionFromBearing",value:function(e){return new s({bearing:e,pitch:90}).toVector3().normalize()}},{key:"_applyConstraints",value:function(e){return e}}]),e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){var n=t.gl,r=t.layerManager;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.gl=n,this.layerManager=r,this._effects=[]}return r(e,[{key:"addEffect",value:function(e){this._effects.push(e),this._sortEffects(),e.initialize({gl:this.gl,layerManager:this.layerManager})}},{key:"removeEffect",value:function(e){var t=this._effects.indexOf(e);return t>=0&&(e.finalize({gl:this.gl,layerManager:this.layerManager}),this._effects.splice(t,1),!0)}},{key:"preDraw",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this._effects[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var o=r.value;o.needsRedraw&&o.preDraw({gl:this.gl,layerManager:this.layerManager})}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}},{key:"draw",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this._effects[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var o=r.value;o.needsRedraw&&o.draw({gl:this.gl,layerManager:this.layerManager})}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}},{key:"_sortEffects",value:function(){this._effects.sort((function(e,t){return e.priority>t.priority?-1:e.priority<t.priority?1:e.count-t.count}))}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.glArrayFromType=d;var i=c(n(185)),o=c(n(17)),a=n(12),s=c(n(1)),u=c(n(335));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(){}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clamped,r=void 0===n||n;switch(e){case a.GL.FLOAT:return Float32Array;case a.GL.UNSIGNED_SHORT:case a.GL.UNSIGNED_SHORT_5_6_5:case a.GL.UNSIGNED_SHORT_4_4_4_4:case a.GL.UNSIGNED_SHORT_5_5_5_1:return Uint16Array;case a.GL.UNSIGNED_INT:return Uint32Array;case a.GL.UNSIGNED_BYTE:return r?Uint8ClampedArray:Uint8Array;case a.GL.BYTE:return Int8Array;case a.GL.SHORT:return Int16Array;case a.GL.INT:return Int32Array;default:throw new Error("Failed to deduce type from array")}}var h={savedMessages:null,timeStart:null,onLog:function(e){var t=e.level,n=e.message;o.default.log(t,n)},onUpdateStart:function(e){e.level,e.id,e.numInstances,h.savedMessages=[],h.timeStart=new Date},onUpdate:function(e){e.level;var t=e.message;h.savedMessages&&h.savedMessages.push(t)},onUpdateEnd:function(e){var t=e.level,n=e.id,r=e.numInstances,i=Math.round(new Date-h.timeStart)+"ms";o.default.group(t,"Updated attributes for "+r+" instances in "+n+" in "+i,{collapsed:!0});var a=!0,s=!1,u=void 0;try{for(var c,l=h.savedMessages[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;o.default.log(t,f)}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}o.default.groupEnd(t,"Updated attributes for "+r+" instances in "+n+" in "+i),h.savedMessages=null}},p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.id,o=void 0===r?"attribute-manager":r;l(this,e),this.id=o,this.gl=t,this.attributes={},this.updateTriggers={},this.accessors={},this.allocedInstances=-1,this.needsRedraw=!0,this.userData={},this.stats=new i.default({id:"attr"}),this.attributeTransitionManger=new u.default(t,{id:o+"-transitions"}),Object.seal(this)}return r(e,null,[{key:"setDefaultLogFunctions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onLog,n=e.onUpdateStart,r=e.onUpdate,i=e.onUpdateEnd;void 0!==t&&(h.onLog=t||f),void 0!==n&&(h.onUpdateStart=n||f),void 0!==r&&(h.onUpdate=r||f),void 0!==i&&(h.onUpdateEnd=i||f)}}]),r(e,[{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._add(e,t)}},{key:"remove",value:function(e){for(var t=0;t<e.length;t++){var n=e[t];void 0!==this.attributes[n]&&delete this.attributes[n]}}},{key:"invalidate",value:function(e){var t=this._invalidateTrigger(e);h.onLog({level:2,message:"invalidated attributes "+t+" ("+e+") for "+this.id,id:this.identifier})}},{key:"invalidateAll",value:function(){for(var e in this.attributes)this.attributes[e].needsUpdate=!0;h.onLog({level:2,message:"invalidated all attributes for "+this.id,id:this.identifier})}},{key:"_invalidateTrigger",value:function(e){var t=this.attributes,n=this.updateTriggers[e];if(n)n.forEach((function(e){var n=t[e];n&&(n.needsUpdate=!0)}));else{var r="invalidating non-existent trigger "+e+" for "+this.id+"\n";r+="Valid triggers: "+Object.keys(t).join(", "),o.default.warn(r,n)}return n}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.numInstances,r=e.transitions,i=e.props,o=void 0===i?{}:i,a=e.buffers,s=void 0===a?{}:a,u=e.context,c=void 0===u?{}:u,l=e.ignoreUnknownAttributes,f=void 0!==l&&l;this._checkExternalBuffers({buffers:s,ignoreUnknownAttributes:f}),this._setExternalBuffers(s),this._analyzeBuffers({numInstances:n})&&(h.onUpdateStart({level:1,id:this.id,numInstances:n}),this.stats.timeStart(),this._updateBuffers({numInstances:n,data:t,props:o,context:c}),this.stats.timeEnd(),h.onUpdateEnd({level:1,id:this.id,numInstances:n})),this.attributeTransitionManger.update(this.attributes,r)}},{key:"getAttributes",value:function(){return this.attributes}},{key:"getChangedAttributes",value:function(e){var t=e.transition,n=void 0!==t&&t,r=e.clearChangedFlags,i=void 0!==r&&r,o=this.attributes,a=this.attributeTransitionManger;if(n)return a.getAttributes();var s={};for(var u in o){var c=o[u];c.changed&&(c.changed=c.changed&&!i,a.hasAttribute(u)||(s[u]=c))}return s}},{key:"getNeedsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.clearRedrawFlags,n=void 0!==t&&t,r=this.needsRedraw;return this.needsRedraw=this.needsRedraw&&!n,r&&this.id}},{key:"setNeedsRedraw",value:function(){return this.needsRedraw=!0,this}},{key:"addInstanced",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._add(e,t,{instanced:1})}},{key:"getAccessors",value:function(){return this.updateTriggers}},{key:"_add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};for(var i in e){i in t&&(e[i]=Object.assign({},e[i],t[i]));var o=e[i],a=o.isGeneric||!1,s=o.isIndexed||o.elements,u=o.elements?1:o.size,c=o.value||null,l=Object.assign({target:void 0,userData:{}},o,{isExternalBuffer:!1,needsAlloc:!1,needsUpdate:!1,changed:!1,isGeneric:a,isIndexed:s,size:u,value:c},n);Object.seal(l),this._validateAttributeDefinition(i,l),r[i]=l}Object.assign(this.attributes,r),this._mapUpdateTriggersToAttributes()}},{key:"_mapUpdateTriggersToAttributes",value:function(){var e=this,t={},n=function(n){var r=e.attributes[n].accessor;t[n]=[n],"string"==typeof r&&(r=[r]),Array.isArray(r)&&r.forEach((function(e){t[e]||(t[e]=[]),t[e].push(n)}))};for(var r in this.attributes)n(r);this.updateTriggers=t}},{key:"_validateAttributeDefinition",value:function(e,t){if((0,s.default)(t.size>=1&&t.size<=4,"Attribute definition for "+e+" invalid size"),!t.noAlloc&&"function"!=typeof t.update&&"string"!=typeof t.accessor)throw new Error("Attribute "+e+" missing update or accessor")}},{key:"_checkExternalBuffers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buffers,n=void 0===t?{}:t,r=e.ignoreUnknownAttributes,i=void 0!==r&&r,o=this.attributes;for(var a in n){var s=o[a];if(!s&&!i)throw new Error("Unknown attribute prop "+a)}}},{key:"_setExternalBuffers",value:function(e){var t=this.attributes,n=this.numInstances;for(var r in t){var i=t[r],o=e[r];if(i.isExternalBuffer=!1,o){var s=d(i.type||a.GL.FLOAT);if(!(o instanceof s))throw new Error("Attribute "+r+" must be of type "+s.name);if(i.auto&&o.length<=n*i.size)throw new Error("Attribute prop array must match length and size");i.isExternalBuffer=!0,i.needsUpdate=!1,i.value!==o&&(i.value=o,i.changed=!0,this.needsRedraw=!0)}}}},{key:"_analyzeBuffers",value:function(e){var t=e.numInstances,n=this.attributes;(0,s.default)(void 0!==t,"numInstances not defined");var r=!1;for(var i in n){var o=n[i];o.isExternalBuffer||((null===o.value||o.value.length/o.size<t)&&(o.update||o.accessor)&&(o.needsAlloc=!0,r=!0),o.needsUpdate&&(r=!0))}return r}},{key:"_updateBuffers",value:function(e){var t=e.numInstances,n=e.data,r=e.props,i=e.context,o=this.attributes,s=Math.max(t,1);for(var u in o){var c=o[u];if(c.needsAlloc){var l=d(c.type||a.GL.FLOAT);c.value=new l(c.size*s),h.onUpdate({level:2,message:u+" allocated "+s,id:this.id}),c.needsAlloc=!1,c.needsUpdate=!0}}for(var f in o){var p=o[f];p.needsUpdate&&this._updateBuffer({attribute:p,attributeName:f,numInstances:t,data:n,props:r,context:i})}this.allocedInstances=s}},{key:"_updateBuffer",value:function(e){var t=e.attribute,n=e.attributeName,r=e.numInstances,i=e.data,o=e.props,a=e.context,s=t.update,u=t.accessor,c=new Date;s?(s.call(a,t,{data:i,props:o,numInstances:r}),this._checkAttributeArray(t,n)):u?(this._updateBufferViaStandardAccessor({attribute:t,data:i,props:o}),this._checkAttributeArray(t,n)):h.onUpdate({level:2,message:n+" missing update function",id:this.id});var l=Math.round(new Date-c)+"ms";h.onUpdate({level:2,message:n+" updated "+r+" "+l,id:this.id}),t.needsUpdate=!1,t.changed=!0,this.needsRedraw=!0}},{key:"_updateBufferViaStandardAccessor",value:function(e){var t=e.attribute,n=e.data,r=e.props,i=t.accessor,o=t.value,a=t.size,u=r[i];(0,s.default)("function"==typeof u,'accessor "'+i+'" is not a function');var c=t.defaultValue,l=void 0===c?[0,0,0,0]:c;l=Array.isArray(l)?l:[l];var f=0,d=!0,h=!1,p=void 0;try{for(var v,g=n[Symbol.iterator]();!(d=(v=g.next()).done);d=!0){var y=u(v.value);switch(y=Array.isArray(y)?y:[y],a){case 4:o[f+3]=Number.isFinite(y[3])?y[3]:l[3];case 3:o[f+2]=Number.isFinite(y[2])?y[2]:l[2];case 2:o[f+1]=Number.isFinite(y[1])?y[1]:l[1];case 1:o[f+0]=Number.isFinite(y[0])?y[0]:l[0]}f+=a}}catch(e){h=!0,p=e}finally{try{!d&&g.return&&g.return()}finally{if(h)throw p}}}},{key:"_checkAttributeArray",value:function(e,t){var n=e.value;if(n&&n.length>=4&&!(Number.isFinite(n[0])&&Number.isFinite(n[1])&&Number.isFinite(n[2])&&Number.isFinite(n[3])))throw new Error("Illegal attribute generated for "+t)}},{key:"updateTransition",value:function(){var e=this.attributeTransitionManger.setCurrentTime(Date.now());return this.needsRedraw=this.needsRedraw||e,e}}]),e}();t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPixelRatio=void 0,t.drawLayers=c,t.drawPickingBuffer=function(e,t){var n=t.layers,i=t.viewports,o=t.onViewportActive,a=t.useDevicePixels,s=t.pickingFBO,u=t.deviceRect,l=u.x,f=u.y,d=u.width,h=u.height,p=t.layerFilter,v=void 0===p?null:p,g=t.redrawReason,y=void 0===g?"":g;return(0,r.withParameters)(e,{framebuffer:s,scissorTest:!0,scissor:[l,f,d,h],clearColor:[0,0,0,0]},(function(){c(e,{layers:n,viewports:i,onViewportActive:o,useDevicePixels:a,drawPickingColors:!0,layerFilter:v,pass:"picking",redrawReason:y,parameters:{blend:!0,blendFunc:[e.ONE,e.ZERO,e.CONSTANT_ALPHA,e.ZERO],blendEquation:e.FUNC_ADD,blendColor:[0,0,0,0]}})}))};var r=n(12),i=a(n(17)),o=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}var s=0,u=t.getPixelRatio=function(e){var t=e.useDevicePixels;return(0,o.default)("boolean"==typeof t,"Invalid useDevicePixels"),t&&"undefined"!=typeof window?window.devicePixelRatio:1};function c(e,t){var n=t.layers,o=t.viewports,a=t.onViewportActive,c=t.useDevicePixels,l=t.drawPickingColors,f=void 0!==l&&l,d=t.deviceRect,h=void 0===d?null:d,p=t.parameters,v=void 0===p?{}:p,g=t.layerFilter,y=void 0===g?null:g,_=t.pass,m=void 0===_?"draw":_,b=t.redrawReason,E=void 0===b?"":b;!function(e,t){var n=e.drawingBufferWidth,i=e.drawingBufferHeight;(0,r.withParameters)(e,{viewport:[0,0,n,i]},(function(){e.clear(r.GL.COLOR_BUFFER_BIT|r.GL.DEPTH_BUFFER_BIT)}))}(e),o.forEach((function(t,o){var l=function(e){return e.viewport?e.viewport:e}(t);a(l),function(e,t){var n=t.layers,o=t.viewport,a=t.drawPickingColors,c=void 0!==a&&a,l=t.parameters,f=void 0===l?{}:l,d=t.layerFilter,h=t.pass,p=void 0===h?"draw":h,v=t.redrawReason,g=void 0===v?"":v,y=u({useDevicePixels:t.useDevicePixels}),_=function(e,t){var n=t.viewport,r=t.pixelRatio,i=e.canvas?e.canvas.clientHeight:100,o=n;return[o.x*r,(i-o.y-o.height)*r,o.width*r,o.height*r]}(e,{viewport:o,pixelRatio:y}),m={totalCount:n.length,visibleCount:0,compositeCount:0,pickableCount:0};(0,r.setParameters)(e,f||{}),n.forEach((function(t,n){var r=t.props.visible;c&&(r=r&&t.props.pickable),r&&d&&(r=d({layer:t,viewport:o,isPicking:c})),r&&t.props.pickable&&m.pickableCount++,t.isComposite&&m.compositeCount++,r&&(t.isComposite||m.visibleCount++,function(e){var t=e.layer,n=e.layerIndex,r=e.drawPickingColors,i=e.glViewport,o=e.parameters,a=Object.assign({},t.props,{viewport:t.context.viewport,pickingActive:r?1:0}),s=Object.assign({},t.context.uniforms,{layerIndex:n}),u=Object.assign({},t.props.parameters||{},o);Object.assign(u,{viewport:i}),r?Object.assign(u,{blendColor:[0,0,0,(n+1)/255]}):Object.assign(a,function(e){return Number.isInteger(e.props.highlightedObjectIndex)?{pickingSelectedColor:e.props.highlightedObjectIndex>=0?e.encodePickingColor(e.props.highlightedObjectIndex):null}:null}(t)),t.drawLayer({moduleParameters:a,uniforms:s,parameters:u})}({gl:e,layer:t,layerIndex:n,drawPickingColors:c,glViewport:_,parameters:f}))})),s++,function(e){var t=e.renderStats,n=e.pass,r=e.redrawReason;if(i.default.priority>=2){var o=t.totalCount,a=t.visibleCount,u=t.compositeCount,c=t.pickableCount,l=o-u-a,f="";f+="RENDER #"+s+" "+a+" (of "+o+" layers) to "+n+" because "+r+" ",i.default.priority>2&&(f+="("+l+" hidden, "+u+" composite "+c+" unpickable)"),i.default.log(2,f)}}({renderStats:m,pass:p,redrawReason:g})}(e,{layers:n,viewport:l,useDevicePixels:c,drawPickingColors:f,deviceRect:h,parameters:v,layerFilter:y,pass:m,redrawReason:E})}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=g(n(1)),o=n(12),a=g(n(173)),s=g(n(123)),u=n(183),c=n(339),l=n(70),f=g(n(42)),d=g(n(86)),h=g(n(17)),p=n(126),v=n(124);function g(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _={uniforms:{},viewports:[],viewport:null,layerFilter:null,viewportChanged:!0,pickingFBO:null,useDevicePixels:!0,lastPickedInfo:{index:-1,layerId:null}},m=function(e){return e instanceof s.default?""+e:e?"invalid":"null"},b=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.eventManager,i=n.isGeographicCoordinateSystem;y(this,e),this.lastRenderedLayers=[],this.prevLayers=[],this.layers=[],this.oldContext={},this.context=Object.assign({},_,{gl:t,shaderCache:new o.ShaderCache({gl:t,_cachePrograms:!0})}),this.width=100,this.height=100,this.viewDescriptors=[],this.viewDescriptorsChanged=!0,this.viewports=[],this._needsRedraw="Initial render",this._pickingRadius=0,this._eventManager=null,this._onLayerClick=null,this._onLayerHover=null,this._onClick=this._onClick.bind(this),this._onPointerMove=this._onPointerMove.bind(this),this._onPointerLeave=this._onPointerLeave.bind(this),this._pickAndCallback=this._pickAndCallback.bind(this),this._initSeer=this._initSeer.bind(this),this._editSeer=this._editSeer.bind(this),(0,v.seerInitListener)(this._initSeer),(0,v.layerEditListener)(this._editSeer),Object.seal(this),r&&this._initEventHandling(r),this.setViewports([new d.default({width:1,height:1,latitude:0,longitude:0,zoom:1,isGeographicCoordinateSystem:i})])}return r(e,[{key:"finalize",value:function(){a.default.removeListener(this._initSeer),a.default.removeListener(this._editSeer)}},{key:"needsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.clearRedrawFlags,n=void 0===t||t;return this._checkIfNeedsRedraw(n)}},{key:"setNeedsRedraw",value:function(e){this._needsRedraw=this._needsRedraw||e}},{key:"getLayers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layerIds,n=void 0===t?null:t;return n?this.layers.filter((function(e){return n.find((function(t){return 0===e.id.indexOf(t)}))})):this.layers}},{key:"getViewports",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height;return(t!==this.width||n!==this.height||this.viewDescriptorsChanged)&&(this._rebuildViewportsFromViews({viewDescriptors:this.viewDescriptors,width:t,height:n}),this.width=t,this.height=n),this.viewports}},{key:"setParameters",value:function(e){"eventManager"in e&&this._initEventHandling(e.eventManager),("pickingRadius"in e||"onLayerClick"in e||"onLayerHover"in e)&&this._setEventHandlingParameters(e),"layers"in e&&this.setLayers(e.layers),"viewports"in e&&this.setViewports(e.viewports),"layerFilter"in e&&(this.context.layerFilter=e.layerFilter,this.context.layerFilter!==e.layerFilter&&this.setNeedsRedraw("layerFilter changed")),"drawPickingColors"in e&&this.context.drawPickingColors!==e.drawPickingColors&&this.setNeedsRedraw("drawPickingColors changed"),Object.assign(this.context,e)}},{key:"setViewports",value:function(e){var t=(0,p.flatten)(e,{filter:Boolean}).map((function(e){return e instanceof f.default?{viewport:e}:e}));this.viewDescriptorsChanged=this.viewDescriptorsChanged||this._diffViews(t,this.viewDescriptors),this.viewDescriptorsChanged&&(this.viewDescriptors=t,this._rebuildViewportsFromViews({viewDescriptors:this.viewDescriptors}),this.viewDescriptorsChanged=!1)}},{key:"setLayers",value:function(e){if((0,i.default)(this.context.viewport,"LayerManager.updateLayers: viewport not set"),e===this.lastRenderedLayers)return h.default.log(3,"Ignoring layer update due to layer array not changed"),this;this.lastRenderedLayers=e,e=(0,p.flatten)(e,{filter:Boolean});var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.context=this.context}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}this.prevLayers=this.layers;var s=this._updateLayers({oldLayers:this.prevLayers,newLayers:e}),u=s.error,c=s.generatedLayers;if(this.layers=c,u)throw u;return this}},{key:"drawLayers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pass,n=void 0===t?"render to screen":t,r=e.redrawReason,i=void 0===r?"unknown reason":r,o=this.context,a=o.gl,s=o.useDevicePixels,c=o.drawPickingColors;(0,u.drawLayers)(a,{layers:this.layers,viewports:this.getViewports(),onViewportActive:this._activateViewport.bind(this),useDevicePixels:s,drawPickingColors:c,pass:n,layerFilter:this.context.layerFilter,redrawReason:i})}},{key:"pickObject",value:function(e){var t=e.x,n=e.y,r=e.mode,i=e.radius,o=void 0===i?0:i,a=e.layerIds,s=e.layerFilter,u=this.context,l=u.gl,f=u.useDevicePixels,d=this.getLayers({layerIds:a});return(0,c.pickObject)(l,{x:t,y:n,radius:o,layers:d,mode:r,layerFilter:s,viewports:this.getViewports(),onViewportActive:this._activateViewport.bind(this),pickingFBO:this._getPickingBuffer(),lastPickedInfo:this.context.lastPickedInfo,useDevicePixels:f})}},{key:"pickObjects",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.layerIds,a=e.layerFilter,s=this.context,u=s.gl,l=s.useDevicePixels,f=this.getLayers({layerIds:o});return(0,c.pickVisibleObjects)(u,{x:t,y:n,width:r,height:i,layers:f,layerFilter:a,mode:"pickObjects",viewport:this.context.viewport,viewports:this.getViewports(),onViewportActive:this._activateViewport.bind(this),pickingFBO:this._getPickingBuffer(),useDevicePixels:l})}},{key:"updateLayers",value:function(e){var t=e.newLayers;h.default.deprecated("updateLayers","setLayers"),this.setLayers(t)}},{key:"setViewport",value:function(e){return h.default.deprecated("setViewport","setViewports"),this.setViewports([e]),this}},{key:"_checkIfNeedsRedraw",value:function(e){var t=this._needsRedraw;e&&(this._needsRedraw=!1);var n=!0,r=!1,i=void 0;try{for(var o,a=this.layers[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value.getNeedsRedraw({clearRedrawFlags:e});t=t||s}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t}},{key:"_rebuildViewportsFromViews",value:function(e){var t=this,n=e.viewDescriptors,r=e.width,o=e.height,a=n.map((function(e){return e.viewport instanceof f.default?e.viewport:t._makeViewportFromViewDescriptor({viewDescriptor:e,width:r,height:o})}));this.setNeedsRedraw("Viewport(s) changed");var s=a[0];(0,i.default)(s instanceof f.default,"Invalid viewport"),this.context.viewports=a,this._activateViewport(s),this.viewports=a,this.viewDescriptorsChanged=!1}},{key:"_makeViewportFromViewDescriptor",value:function(e){var t=e.viewDescriptor,n=(e.width,e.height,t.type),r=t.viewState,i=this._getViewDimensions({viewDescriptor:t});return new n(Object.assign({},t,i,r))}},{key:"_diffViews",value:function(e,t){var n=this;return e.length!==t.length||e.some((function(r,i){return n._diffView(e[i],t[i])}))}},{key:"_diffView",value:function(e,t){return e.viewport?!t.viewport||!e.viewport.equals(t.viewport):e!==t}},{key:"_getViewDimensions",value:function(e){var t=e.viewDescriptor,n=(e.width,e.height,function(e,t){return e});return{x:n(t.x),y:n(t.y),width:n(t.width),height:n(t.height)}}},{key:"_initEventHandling",value:function(e){this._eventManager=e,this._eventManager.on({click:this._onClick,pointermove:this._onPointerMove,pointerleave:this._onPointerLeave})}},{key:"_setEventHandlingParameters",value:function(e){var t=e.pickingRadius,n=e.onLayerClick,r=e.onLayerHover;isNaN(t)||(this._pickingRadius=t),void 0!==n&&(this._onLayerClick=n),void 0!==r&&(this._onLayerHover=r),this._validateEventHandling()}},{key:"_activateViewport",value:function(e){if(Object.assign(this.oldContext,this.context),this.context.viewport=e,this.context.viewportChanged=!0,this.context.uniforms={},(0,h.default)(4,e),this.context.viewportChanged){var t=!0,n=!1,r=void 0;try{for(var o,a=this.layers[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var s=o.value;s.setChangeFlags({viewportChanged:"Viewport changed"}),this._updateLayer(s)}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}}return(0,i.default)(this.context.viewport,"LayerManager: viewport not set"),this}},{key:"_getPickingBuffer",value:function(){var e=this.context.gl;return this.context.pickingFBO=this.context.pickingFBO||new o.Framebuffer(e),this.context.pickingFBO.resize({width:e.canvas.width,height:e.canvas.height}),this.context.pickingFBO}},{key:"_updateLayers",value:function(e){var t=e.oldLayers,n=e.newLayers,r={},i=!0,o=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;r[c.id]?h.default.warn("Multiple old layers with same id "+m(c)):r[c.id]=c}}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}var l=[],f=this._updateSublayersRecursively({newLayers:n,oldLayerMap:r,generatedLayers:l}),d=this._finalizeOldLayers(r);return{error:f||d,generatedLayers:l}}},{key:"_updateSublayersRecursively",value:function(e){var t=e.newLayers,n=e.oldLayerMap,r=e.generatedLayers,i=null,o=!0,a=!1,s=void 0;try{for(var u,c=t[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;l.context=this.context;var f=n[l.id];null===f&&h.default.warn("Multiple new layers with same id "+m(l)),n[l.id]=null;var d=null;try{f?(this._transferLayerState(f,l),this._updateLayer(l),(0,v.updateLayerInSeer)(l)):(this._initializeLayer(l),(0,v.initLayerInSeer)(l)),r.push(l),d=l.isComposite&&l.getSubLayers()}catch(e){h.default.warn("error during matching of "+m(l),e),i=i||e}d&&this._updateSublayersRecursively({newLayers:d,oldLayerMap:n,generatedLayers:r})}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}},{key:"_finalizeOldLayers",value:function(e){var t=null;for(var n in e){var r=e[n];r&&(t=t||this._finalizeLayer(r))}return t}},{key:"_initializeLayer",value:function(e){(0,i.default)(!e.state),(0,h.default)(2,"initializing "+m(e));var t=null;try{e._initialize(),e.lifecycle=l.LIFECYCLE.INITIALIZED}catch(n){h.default.warn("error while initializing "+m(e)+"\n",n),t=t||n}(0,i.default)(e.state),e.state.layer=e;var n=!0,r=!1,o=void 0;try{for(var a,s=e.getModels()[Symbol.iterator]();!(n=(a=s.next()).done);n=!0)a.value.userData.layer=e}catch(e){r=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return t}},{key:"_transferLayerState",value:function(e,t){t!==e?((0,h.default)(4,"matched "+m(t),e,"->",t),t.lifecycle=l.LIFECYCLE.MATCHED,e.lifecycle=l.LIFECYCLE.AWAITING_GC,t._transferState(e)):(h.default.log(4,"Matching layer is unchanged "+t.id),t.lifecycle=l.LIFECYCLE.MATCHED,t.oldProps=t.props)}},{key:"_updateLayer",value:function(e){h.default.log(4,"updating "+e+" because: "+e.printChangeFlags());var t=null;try{e._update()}catch(n){h.default.warn("error during update of "+m(e),n),t=n}return t}},{key:"_finalizeLayer",value:function(e){(0,i.default)(e.state),(0,i.default)(e.lifecycle!==l.LIFECYCLE.AWAITING_FINALIZATION),e.lifecycle=l.LIFECYCLE.AWAITING_FINALIZATION;var t=null;this.setNeedsRedraw("finalized "+m(e));try{e._finalize()}catch(n){h.default.warn("error during finalization of "+m(e),n),t=n}return e.lifecycle=l.LIFECYCLE.FINALIZED,(0,h.default)(2,"finalizing "+m(e)),t}},{key:"_validateEventHandling",value:function(){(this.onLayerClick||this.onLayerHover)&&this.layers.length&&!this.layers.some((function(e){return e.props.pickable}))&&h.default.warn("You have supplied a top-level input event handler (e.g. `onLayerClick`), but none of your layers have set the `pickable` flag.")}},{key:"_onClick",value:function(e){e.offsetCenter&&this._pickAndCallback({callback:this._onLayerClick,event:e,mode:"click"})}},{key:"_onPointerMove",value:function(e){e.leftButton||e.rightButton||this._pickAndCallback({callback:this._onLayerHover,event:e,mode:"hover"})}},{key:"_onPointerLeave",value:function(e){this.pickObject({x:-1,y:-1,radius:this._pickingRadius,mode:"hover"})}},{key:"_pickAndCallback",value:function(e){var t=e.event.offsetCenter,n=this._pickingRadius,r=this.pickObject({x:t.x,y:t.y,radius:n,mode:e.mode});if(e.callback){var i=r.find((function(e){return e.index>=0}))||null;e.callback(i,r,e.event.srcEvent)}}},{key:"_initSeer",value:function(){this.layers.forEach((function(e){(0,v.initLayerInSeer)(e),(0,v.updateLayerInSeer)(e)}))}},{key:"_editSeer",value:function(e){if("edit"===e.type&&"props"===e.valuePath[0]){(0,v.setPropOverrides)(e.itemKey,e.valuePath.slice(1),e.value);var t=this.layers.map((function(e){return new e.constructor(e.props)}));this.updateLayers({newLayers:t})}}}]),e}();t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.formatTime=o,t.leftPad=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;e.length<t;)e=" "+e;return e};var i=function(){function e(t){var n=t.id;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=n,this.time=0,this.total=0,this.average=0,this.count=0,this._time=0}return r(e,[{key:"timeStart",value:function(){this._time=this.timestampMs()}},{key:"timeEnd",value:function(){this.time=this.timestampMs()-this._time,this.total+=this.time,this.count++,this.average=this.total/this.count}},{key:"timestampMs",value:function(){return"undefined"!=typeof window&&window.performance?window.performance.now():Date.now()}},{key:"getTimeString",value:function(){return this.id+":"+o(this.time)+"("+this.count+")"}}]),e}();function o(e){return e<10?e.toFixed(2)+"ms":e<100?e.toFixed(1)+"ms":e<1e3?e.toFixed(0)+"ms":(e/1e3).toFixed(2)+"s"}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TRANSITION_EVENTS=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(125)),o=n(84),a=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){},c=t.TRANSITION_EVENTS={BREAK:1,SNAP_TO_END:2,IGNORE:3},l={transitionDuration:0,transitionEasing:function(e){return e},transitionInterpolator:new i.default,transitionInterruption:c.BREAK,onTransitionStart:u,onTransitionInterrupt:u,onTransitionEnd:u},f={animation:null,propsInTransition:null,startProps:null,endProps:null},d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=t,this.state=f,this._onTransitionFrame=this._onTransitionFrame.bind(this)}return r(e,[{key:"getViewportInTransition",value:function(){return this.state.propsInTransition}},{key:"processViewportChange",value:function(e){var t=!1,n=this.props;if(this.props=e,this._shouldIgnoreViewportChange(n,e))return t;var r=this._isTransitionInProgress();if(this._isTransitionEnabled(e)){var i=Object.assign({},n,this.state.interruption===c.SNAP_TO_END?this.state.endProps:this.state.propsInTransition||n);r&&n.onTransitionInterrupt(),e.onTransitionStart(),this._triggerTransition(i,e),t=!0}else r&&(n.onTransitionInterrupt(),this._endTransition());return t}},{key:"_isTransitionInProgress",value:function(){return this.state.propsInTransition}},{key:"_isTransitionEnabled",value:function(e){return e.transitionDuration>0&&e.transitionInterpolator}},{key:"_isUpdateDueToCurrentTransition",value:function(e){return!!this.state.propsInTransition&&this.state.interpolator.arePropsEqual(e,this.state.propsInTransition)}},{key:"_shouldIgnoreViewportChange",value:function(e,t){return this._isTransitionInProgress()?this.state.interruption===c.IGNORE||this._isUpdateDueToCurrentTransition(t):!this._isTransitionEnabled(t)||t.transitionInterpolator.arePropsEqual(e,t)}},{key:"_triggerTransition",value:function(e,t){(0,a.default)(this._isTransitionEnabled(t),"Transition is not enabled"),cancelAnimationFrame(this.state.animation);var n=t.transitionInterpolator.initializeProps(e,t);this.state={duration:t.transitionDuration,easing:t.transitionEasing,interpolator:t.transitionInterpolator,interruption:t.transitionInterruption,startTime:Date.now(),startProps:n.start,endProps:n.end,animation:null,propsInTransition:{}},this._onTransitionFrame()}},{key:"_onTransitionFrame",value:function(){this.state.animation=requestAnimationFrame(this._onTransitionFrame),this._updateViewport()}},{key:"_endTransition",value:function(){cancelAnimationFrame(this.state.animation),this.state=f}},{key:"_updateViewport",value:function(){var e=Date.now(),t=this.state,n=t.startTime,r=t.duration,i=t.easing,a=t.interpolator,s=t.startProps,u=t.endProps,c=!1,l=(e-n)/r;l>=1&&(l=1,c=!0),l=i(l);var f=a.interpolateProps(s,u,l);this.state.propsInTransition=(0,o.extractViewportFrom)(Object.assign({},this.props,f)),this.props.onViewportChange&&this.props.onViewportChange(this.state.propsInTransition,{inTransition:!0}),c&&(this._endTransition(),this.props.onTransitionEnd())}}]),e}();t.default=d,d.defaultProps=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.diffProps=function(e,t){var n=a({newProps:e,oldProps:t,ignoreProps:{data:null,updateTriggers:null}}),r=function(e,t){if(null===t)return"oldProps is null, initial diff";var n=e.dataComparator;if(n){if(!n(e.data,t.data))return"Data comparator detected a change"}else if(e.data!==t.data)return"A new data container was supplied";return null}(e,t),i=!1;return r||(i=function(e,t){if(null===t)return"oldProps is null, initial diff";if("all"in e.updateTriggers&&s(t,e,"all"))return{all:!0};var n={},r=!1;for(var i in e.updateTriggers)"all"!==i&&s(t,e,i)&&(n[i]=!0,r=n);return r}(e,t)),{dataChanged:r,propsChanged:n,updateTriggersChanged:i}},t.compareProps=a;var i,o=(i=n(1))&&i.__esModule?i:{default:i};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.newProps,n=e.oldProps,i=e.ignoreProps,a=void 0===i?{}:i,s=e.shallowCompareProps,u=void 0===s?{}:s,c=e.triggerName,l=void 0===c?"props":c;if((0,o.default)(void 0!==n&&void 0!==t,"compareProps args"),n===t)return null;if("object"!==(void 0===t?"undefined":r(t))||null===t)return l+" changed shallowly";if("object"!==(void 0===n?"undefined":r(n))||null===n)return l+" changed shallowly";for(var f in n)if(!(f in a)){if(!(f in t))return l+"."+f+" dropped: "+n[f]+" -> undefined";var d=t[f]&&n[f]&&t[f].equals;if(d&&!d.call(t[f],n[f]))return l+"."+f+" changed deeply: "+n[f]+" -> "+t[f];if(f in u){var h=r(t[f]);"function"===h&&"function"==typeof n[f]&&(d=!0)}if(!d&&n[f]!==t[f])return l+"."+f+" changed shallowly: "+n[f]+" -> "+t[f]}for(var p in t)if(!(p in a)&&!(p in n))return l+"."+p+" added: undefined -> "+t[p];return null}function s(e,t,n){var r=e.updateTriggers[n]||{};return a({oldProps:t.updateTriggers[n]||{},newProps:r,triggerName:n})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(116)),o=n(115),a=u(n(178)),s=n(82);function u(e){return e&&e.__esModule?e:{default:e}}var c="-webkit-",l={GRABBING:c+"grabbing",GRAB:c+"grab",POINTER:"pointer"},f={width:i.default.number.isRequired,height:i.default.number.isRequired,longitude:i.default.number.isRequired,latitude:i.default.number.isRequired,zoom:i.default.number.isRequired,bearing:i.default.number,pitch:i.default.number,altitude:i.default.number,maxZoom:i.default.number,minZoom:i.default.number,maxPitch:i.default.number,minPitch:i.default.number,onViewportChange:i.default.func,scrollZoom:i.default.bool,dragPan:i.default.bool,dragRotate:i.default.bool,doubleClickZoom:i.default.bool,touchZoomRotate:i.default.bool,getCursor:i.default.func,controls:i.default.shape({events:i.default.arrayOf(i.default.string),handleEvent:i.default.func})},d=Object.assign({},s.MAPBOX_LIMITS,{onViewportChange:null,scrollZoom:!0,dragPan:!0,dragRotate:!0,doubleClickZoom:!0,touchZoomRotate:!0,getCursor:function(e){return e.isDragging?l.GRABBING:l.GRAB}}),h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=Object.assign({},d,t),this.props=t,this.state={isDragging:!1},this.canvas=t.canvas;var n=new o.EventManager(this.canvas);this._eventManager=n,this._controls=this.props.controls||new a.default,this._controls.setOptions(Object.assign({},this.props,{onStateChange:this._onInteractiveStateChange.bind(this),eventManager:n}))}return r(e,[{key:"setProps",value:function(e){e=Object.assign({},this.props,e),this.props=e,this._controls.setOptions(e)}},{key:"finalize",value:function(){this._eventManager.destroy()}},{key:"_onInteractiveStateChange",value:function(e){var t=e.isDragging,n=void 0!==t&&t;if(n!==this.state.isDragging){this.state.isDragging=n;var r=this.props.getCursor;this.canvas.style.cursor=r(this.state)}}}]),e}();t.default=h,h.displayName="MapController",h.propTypes=f,h.defaultProps=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(116)),o=c(n(85)),a=c(n(179)),s=c(n(121)),u=n(115);function c(e){return e&&e.__esModule?e:{default:e}}var l="-webkit-",f={GRABBING:l+"grabbing",GRAB:l+"grab",POINTER:"pointer"},d={lookAt:i.default.arrayOf(i.default.number),distance:i.default.number,rotationX:i.default.number,rotationY:i.default.number,translationX:i.default.number,translationY:i.default.number,zoom:i.default.number,minZoom:i.default.number,maxZoom:i.default.number,fov:i.default.number,near:i.default.number,far:i.default.number,width:i.default.number.isRequired,height:i.default.number.isRequired,bounds:i.default.object,onViewportChange:i.default.func.isRequired,getCursor:i.default.func,orbitControls:i.default.object},h={lookAt:[0,0,0],rotationX:0,rotationY:0,translationX:0,translationY:0,distance:10,zoom:1,minZoom:0,maxZoom:1/0,fov:50,near:1,far:1e3,getCursor:function(e){return e.isDragging?f.GRABBING:f.GRAB}},p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=Object.assign({},h,t),this.props=t,this.state={isDragging:!1},this.canvas=t.canvas;var n=new u.EventManager(this.canvas);this._eventManager=n,this._controls=t.orbitControls||new s.default(a.default),this._controls.setOptions(Object.assign({},this.props,{onStateChange:this._onInteractiveStateChange.bind(this),eventManager:n}))}return r(e,null,[{key:"getViewport",value:function(e){return new o.default(e)}}]),r(e,[{key:"setProps",value:function(e){e=Object.assign({},this.props,e),this.props=e,this._controls.setOptions(e)}},{key:"finalize",value:function(){this._eventManager.destroy()}},{key:"_onInteractiveStateChange",value:function(e){var t=e.isDragging,n=void 0!==t&&t;if(n!==this.state.isDragging){this.state.isDragging=n;var r=this.props.getCursor;this.canvas.style.cursor=r(this.state)}}}]),e}();t.default=p,p.displayName="OrbitController",p.propTypes=d,p.defaultProps=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lighting=t.project64=t.project=t.picking=t.fp64=t.fp32=void 0,t.initializeShaderModules=u;var r=n(12),i=s(n(83)),o=s(n(192)),a=s(n(191));function s(e){return e&&e.__esModule?e:{default:e}}function u(){(0,r.registerShaderModules)([r.fp32,r.fp64,i.default,o.default,a.default,r.picking]),(0,r.setDefaultShaderModules)([i.default])}u(),t.fp32=r.fp32,t.fp64=r.fp64,t.picking=r.picking,t.project=i.default,t.project64=o.default,t.lighting=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(342)),i=o(n(83));function o(e){return e&&e.__esModule?e:{default:e}}t.default={name:"lighting",dependencies:[i.default],vs:r.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=u(n(83)),o=n(195),a=u(n(196)),s=u(n(343));function u(e){return e&&e.__esModule?e:{default:e}}t.default={name:"project64",dependencies:[i.default,r.fp64],vs:s.default,getUniforms:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.project_uViewProjectionMatrix,n=e.project_uScale;return t&&n?c({project_uViewProjectionMatrix:t,project_uScale:n}):{}},deprecations:[{type:"uniform vec2",old:"projectionFP64[16]",new:"project_uViewProjectionMatrixFP64"},{type:"uniform vec2",old:"projectionScaleFP64",new:"project64_uScale"}]};var c=(0,a.default)((function(e){var t=e.project_uViewProjectionMatrix,n=e.project_uScale,r=(0,o.fp64ifyMatrix4)(t);return{project_uViewProjectionMatrixFP64:r,project64_uViewProjectionMatrix:r,project64_uScale:(0,o.fp64ify)(n)}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(16),a=(r=n(1))&&r.__esModule?r:{default:r},s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return i(e,[{key:"arePropsEqual",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,s=(this.propNames||[])[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;if(!(0,o.equals)(e[u],t[u]))return!1}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return!0}},{key:"initializeProps",value:function(e,t){return{start:e,end:t}}},{key:"interpolateProps",value:function(e,t,n){(0,a.default)(!1,"interpolateProps is not implemented")}}]),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.count=function(e){if(null===(t=e)||"object"!==(void 0===t?"undefined":r(t)))throw new Error("count(): argument not an object");var t;if("function"==typeof e.count)return e.count();if(Number.isFinite(e.size))return e.size;if(Number.isFinite(e.length))return e.length;if(function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&e.constructor===Object}(e))return Object.keys(e).length;throw new Error("count(): argument not a container")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fp64ify=a,t.fp64ifyMatrix4=function(e){for(var t=new Float32Array(32),n=0;n<4;++n)for(var r=0;r<4;++r){var i=4*n+r;a(e[4*r+n],t,2*i)}return t},t.fp64LowPart=function(e){return e-Math.fround(e)},t.enable64bitSupport=function(e){if(e.fp64){if(e.coordinateSystem===o.COORDINATE_SYSTEM.LNGLAT)return!0;i.default.once(0,"64-bit mode only works with coordinateSystem set to\n COORDINATE_SYSTEM.LNGLAT. Rendering in 32-bit mode instead")}return!1};var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(70);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.fround(e),i=e-Math.fround(e);return t[n]=r,t[n+1]=i,t}},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(Array.isArray(e)){var n=e.length;if(!t||t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={},n=void 0;return function(i){for(var o in i)if(!r(i[o],t[o])){n=e(i),t=i;break}return n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=Object.getPrototypeOf(e),n=Object.getOwnPropertyNames(t),i=!0,o=!1,a=void 0;try{for(var s,u=function(){var t=s.value;"function"==typeof e[t]&&(r.find((function(e){return t===e}))||(e[t]=e[t].bind(e)))},c=n[Symbol.iterator]();!(i=(s=c.next()).done);i=!0)u()}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}};var r=["constructor","render","componentWillMount","componentDidMount","componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","componentDidUpdate","componentWillUnmount"]},function(e,t,n){var r=n(27);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){"use strict";var r=n(14),i=n(57),o=n(11);e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),u=i(t,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:i(c,a))-u,a-s),f=1;for(u<s&&s<u+l&&(f=-1,u+=l-1,s+=l-1);l-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(e,t,n){var r=n(49);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){var r=n(15),i=n(14),o=n(72),a=n(11);e.exports=function(e,t,n,s,u){r(t);var c=i(e),l=o(c),f=a(c.length),d=u?f-1:0,h=u?-1:1;if(n<2)for(;;){if(d in l){s=l[d],d+=h;break}if(d+=h,u?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:f>d;d+=h)d in l&&(s=t(s,l[d],d,c));return s}},function(e,t,n){"use strict";var r=n(15),i=n(5),o=n(208),a=[].slice,s={},u=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?u(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){"use strict";var r=n(10).f,i=n(51),o=n(55),a=n(28),s=n(48),u=n(49),c=n(138),l=n(211),f=n(56),d=n(9),h=n(44).fastKey,p=n(66),v=d?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){s(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,null!=r&&u(r,n,e[c],e)}));return o(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var n=p(this,t),r=g(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(e){p(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(p(this,t),e)}}),d&&r(l.prototype,"size",{get:function(){return p(this,t)[v]}}),l},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?l(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){var r=n(71),i=n(200);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){"use strict";var r=n(55),i=n(44).getWeak,o=n(2),a=n(5),s=n(48),u=n(49),c=n(32),l=n(18),f=n(66),d=c(5),h=c(6),p=0,v=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},y=function(e,t){return d(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=h(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=r&&u(r,n,e[o],e)}));return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=i(e);return!0===n?v(f(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=i(e);return!0===n?v(f(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=i(o(t),!0);return!0===r?v(e).set(t,n):r[e._i]=n,e},ufstore:v}},function(e,t,n){"use strict";var r=n(91),i=n(5),o=n(11),a=n(28),s=n(6)("isConcatSpreadable");e.exports=function e(t,n,u,c,l,f,d,h){for(var p,v,g=l,y=0,_=!!d&&a(d,h,3);y<c;){if(y in u){if(p=_?_(u[y],y,n):u[y],v=!1,i(p)&&(v=void 0!==(v=p[s])?!!v:r(p)),v&&f>0)g=e(t,n,p,o(p.length),g,f-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}y++}return g}},function(e,t,n){e.exports=!n(9)&&!n(4)((function(){return 7!=Object.defineProperty(n(131)("div"),"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(5),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(2);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(140),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),c=r(e);return i<u?c*(i/u/a+1/o-1/o)*u*a:(n=(t=(1+a/o)*i)-(t-i))>s||n!=n?c*(1/0):c*n}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},function(e,t,n){"use strict";var r=n(53),i=n(95),o=n(73),a=n(14),s=n(72),u=Object.assign;e.exports=!u||n(4)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){for(var n=a(e),u=arguments.length,c=1,l=i.f,f=o.f;u>c;)for(var d,h=s(arguments[c++]),p=l?r(h).concat(l(h)):r(h),v=p.length,g=0;v>g;)f.call(h,d=p[g++])&&(n[d]=h[d]);return n}:u},function(e,t,n){var r=n(10),i=n(2),o=n(53);e.exports=n(9)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(24),i=n(52).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(18),i=n(24),o=n(87)(!1),a=n(144)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(53),i=n(24),o=n(73).f;e.exports=function(e){return function(t){for(var n,a=i(t),s=r(a),u=s.length,c=0,l=[];u>c;)o.call(a,n=s[c++])&&l.push(e?[n,a[n]]:a[n]);return l}}},function(e,t,n){var r=n(52),i=n(95),o=n(2),a=n(3).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(3).parseFloat,i=n(65).trim;e.exports=1/r(n(148)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(3).parseInt,i=n(65).trim,o=n(148),a=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(2),i=n(5),o=n(142);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(11),i=n(147),o=n(34);e.exports=function(e,t,n,a){var s=String(o(e)),u=s.length,c=void 0===n?" ":String(n),l=r(t);if(l<=u||""==c)return s;var f=l-u,d=i.call(c,Math.ceil(f/c.length));return d.length>f&&(d=d.slice(0,f)),a?d+s:s+d}},function(e,t,n){var r=n(36),i=n(11);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){t.f=n(6)},function(e,t,n){"use strict";var r=n(203),i=n(66),o="Map";e.exports=n(88)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},function(e,t,n){n(9)&&"g"!=/./g.flags&&n(10).f(RegExp.prototype,"flags",{configurable:!0,get:n(90)})},function(e,t,n){"use strict";var r=n(203),i=n(66);e.exports=n(88)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,i=n(32)(0),o=n(20),a=n(44),s=n(215),u=n(205),c=n(5),l=n(4),f=n(66),d="WeakMap",h=a.getWeak,p=Object.isExtensible,v=u.ufstore,g={},y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(e){if(c(e)){var t=h(e);return!0===t?v(f(this,d)).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,d),e,t)}},m=e.exports=n(88)(d,y,_,u,!0,!0);l((function(){return 7!=(new m).set((Object.freeze||Object)(g),7).get(g)}))&&(s((r=u.getConstructor(y,d)).prototype,_),a.NEED=!0,i(["delete","has","get","set"],(function(e){var t=m.prototype,n=t[e];o(t,e,(function(t,i){if(c(t)&&!p(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)}))})))},function(e,t,n){"use strict";function r(e,t,n){n=n||2;var r,s,u,c,l,h,v,g=t&&t.length,y=g?t[0]*n:e.length,_=i(e,0,y,n,!0),m=[];if(!_)return m;if(g&&(_=function(e,t,n,r){var a,s,u,c=[];for(a=0,s=t.length;a<s;a++)(u=i(e,t[a]*r,a<s-1?t[a+1]*r:e.length,r,!1))===u.next&&(u.steiner=!0),c.push(p(u));for(c.sort(f),a=0;a<c.length;a++)d(c[a],n),n=o(n,n.next);return n}(e,t,_,n)),e.length>80*n){r=u=e[0],s=c=e[1];for(var b=n;b<y;b+=n)(l=e[b])<r&&(r=l),(h=e[b+1])<s&&(s=h),l>u&&(u=l),h>c&&(c=h);v=0!==(v=Math.max(u-r,c-s))?1/v:0}return a(_,m,n,r,s,v),m}function i(e,t,n,r,i){var o,a;if(i===T(e,t,n,r)>0)for(o=t;o<n;o+=r)a=w(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=w(o,e[o],e[o+1],a);return a&&_(a,a.next)&&(P(a),a=a.next),a}function o(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!_(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{if(P(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function a(e,t,n,r,i,f,d){if(e){!d&&f&&function(e,t,n,r){var i=e;do{null===i.z&&(i.z=h(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,u,c=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t<c&&(s++,r=r.nextZ);t++);for(u=c;s>0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(e,r,i,f);for(var p,v,g=e;e.prev!==e.next;)if(p=e.prev,v=e.next,f?u(e,r,i,f):s(e))t.push(p.i/n),t.push(e.i/n),t.push(v.i/n),P(e),e=v.next,g=v.next;else if((e=v)===g){d?1===d?a(e=c(e,t,n),t,n,r,i,f,2):2===d&&l(e,t,n,r,i,f):a(o(e),t,n,r,i,f,1);break}}}function s(e){var t=e.prev,n=e,r=e.next;if(y(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(v(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&y(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function u(e,t,n,r){var i=e.prev,o=e,a=e.next;if(y(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,u=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,c=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,l=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,f=h(s,u,t,n,r),d=h(c,l,t,n,r),p=e.prevZ,g=e.nextZ;p&&p.z>=f&&g&&g.z<=d;){if(p!==e.prev&&p!==e.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,g!==e.prev&&g!==e.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,g.x,g.y)&&y(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;p&&p.z>=f;){if(p!==e.prev&&p!==e.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;g&&g.z<=d;){if(g!==e.prev&&g!==e.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,g.x,g.y)&&y(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function c(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!_(i,o)&&m(i,r,r.next,o)&&b(i,o)&&b(o,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(o.i/n),P(r),P(r.next),r=e=o),r=r.next}while(r!==e);return r}function l(e,t,n,r,i,s){var u=e;do{for(var c=u.next.next;c!==u.prev;){if(u.i!==c.i&&g(u,c)){var l=E(u,c);return u=o(u,u.next),l=o(l,l.next),a(u,t,n,r,i,s),void a(l,t,n,r,i,s)}c=c.next}u=u.next}while(u!==e)}function f(e,t){return e.x-t.x}function d(e,t){if(t=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(i===a)return n.prev;var u,c=n,l=n.x,f=n.y,d=1/0;for(r=n.next;r!==c;)i>=r.x&&r.x>=l&&i!==r.x&&v(o<f?i:a,o,l,f,o<f?a:i,o,r.x,r.y)&&((u=Math.abs(o-r.y)/(i-r.x))<d||u===d&&r.x>n.x)&&b(r,e)&&(n=r,d=u),r=r.next;return n}(e,t),t){var n=E(t,e);o(n,n.next)}}function h(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function p(e){var t=e,n=e;do{t.x<n.x&&(n=t),t=t.next}while(t!==e);return n}function v(e,t,n,r,i,o,a,s){return(i-a)*(t-s)-(e-a)*(o-s)>=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function g(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&m(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&b(e,t)&&b(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)}function y(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function _(e,t){return e.x===t.x&&e.y===t.y}function m(e,t,n,r){return!!(_(e,t)&&_(n,r)||_(e,r)&&_(n,t))||y(e,t,n)>0!=y(e,t,r)>0&&y(n,r,e)>0!=y(n,r,t)>0}function b(e,t){return y(e.prev,e,e.next)<0?y(e,t,e.next)>=0&&y(e,e.prev,t)>=0:y(e,t,e.prev)<0||y(e,e.next,t)<0}function E(e,t){var n=new S(e.i,e.x,e.y),r=new S(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function w(e,t,n,r){var i=new S(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function P(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function S(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function T(e,t,n,r){for(var i=0,o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}e.exports=r,e.exports.default=r,r.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,a=Math.abs(T(e,0,o,n));if(i)for(var s=0,u=t.length;s<u;s++){var c=t[s]*n,l=s<u-1?t[s+1]*n:e.length;a-=Math.abs(T(e,c,l,n))}var f=0;for(s=0;s<r.length;s+=3){var d=r[s]*n,h=r[s+1]*n,p=r[s+2]*n;f+=Math.abs((e[d]-e[p])*(e[h+1]-e[d+1])-(e[d]-e[h])*(e[p+1]-e[d+1]))}return 0===a&&0===f?0:Math.abs((f-a)/a)},r.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)n.vertices.push(e[i][o][a]);i>0&&(r+=e[i-1].length,n.holes.push(r))}return n}},function(e,t,n){"use strict";(function(t){var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(26))},function(e,t){e.exports=function(e,t,n,r,i,o,a){var s=1/(t-n),u=1/(r-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*u,e[14]=(a+o)*c,e[15]=1,e}},function(e,t){e.exports=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],u=t[3],c=t[8],l=t[9],f=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i-c*r,e[1]=a*i-l*r,e[2]=s*i-f*r,e[3]=u*i-d*r,e[8]=o*r+c*i,e[9]=a*r+l*i,e[10]=s*r+f*i,e[11]=u*r+d*i,e}},function(e,t,n){e.exports=n(247)},function(e,t){e.exports=function(e,t,n){n*=.5;var r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}},function(e,t){e.exports=function(e,t,n,r){var i=t[0],o=t[1];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e}},function(e,t){e.exports=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[0],s=n[1],u=n[2];return e[0]=i*u-o*s,e[1]=o*a-r*u,e[2]=r*s-i*a,e}},function(e,t){e.exports=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}},function(e,t){e.exports=function(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}},function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],i=t[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}},function(e,t){e.exports=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}},function(e,t){e.exports=function(e,t,n,r){var i=t[0],o=t[1],a=t[2],s=t[3];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=a+r*(n[2]-a),e[3]=s+r*(n[3]-s),e}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}},function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a),e[0]=n*a,e[1]=r*a,e[2]=i*a,e[3]=o*a),e}},function(e,t){e.exports=function(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}},function(e,t,n){"use strict";t.b=c,t.c=l;var r=n(8),i=n(60),o=n(61),a="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},s=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){return r.a?window.requestAnimationFrame(e):setTimeout(e,1e3/60)}function l(e){return r.a?window.cancelAnimationFrame(e):clearTimeout(e)}var f={preserveDrawingBuffer:!0},d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e);var i=t.onCreateContext,a=void 0===i?function(e){return n.i(o.createGLContext)(e)}:i,s=t.onInitialize,c=void 0===s?function(){}:s,l=t.onRender,f=void 0===l?function(){}:l,d=t.onFinalize,h=void 0===d?function(){}:d,p=t.gl,v=void 0===p?null:p,g=t.glOptions,y=void 0===g?{}:g,_=t.width,m=void 0===_?null:_,b=t.height,E=void 0===b?null:b,w=t.createFramebuffer,P=void 0!==w&&w,S=t.autoResizeViewport,T=void 0===S||S,A=t.autoResizeDrawingBuffer,x=void 0===A||A,O=t.useDevicePixels,R=void 0===O||O,C=t.isGeographicCoordinateSystem,M=void 0!==C&&C;return this.isGeographicCoordinateSystem=M,"useDevicePixelRatio"in t&&(r.b.deprecated("useDevicePixelRatio","useDevicePixels"),R=t.useDevicePixelRatio),this._onCreateContext=a,this.start=this.start.bind(this),this.stop=this.stop.bind(this),this._renderFrame=this._renderFrame.bind(this),this.glOptions=y,this._createFramebuffer=P,this._onInitialize=c,this._onRender=f,this._onFinalize=h,this.width=m,this.height=E,this.gl=v,this.setProps({autoResizeViewport:T,autoResizeDrawingBuffer:x,useDevicePixels:R}),this}return s(e,[{key:"setNeedsRedraw",value:function(e){return this.needsRedraw=this.needsRedraw||e,this}},{key:"setProps",value:function(e){return"autoResizeViewport"in e&&(this.autoResizeViewport=e.autoResizeViewport),"autoResizeDrawingBuffer"in e&&(this.autoResizeDrawingBuffer=e.autoResizeDrawingBuffer),"useDevicePixels"in e&&(this.useDevicePixels=e.useDevicePixels),this}},{key:"start",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._stopped=!1,this._animationFrameId||(this._startPromise=n.i(i.g)().then((function(){return e._stopped?null:(e._createWebGLContext(t),e._initializeCallbackData(),e._updateCallbackData(),e._resizeCanvasDrawingBuffer(),e._resizeViewport(),e._onInitialize(e._callbackData))})).then((function(t){e._stopped||(e._addCallbackData(t||{}),!1===t||e._animationFrameId||(e._animationFrameId=c(e._renderFrame)))}))),this}},{key:"stop",value:function(){return this._animationFrameId&&(this._finalizeCallbackData(),l(this._animationFrameId),this._animationFrameId=null,this._stopped=!0),this}},{key:"setViewParameters",value:function(e){var t=e.autoResizeDrawingBuffer,n=void 0===t||t,i=e.autoResizeCanvas,o=void 0===i||i,a=e.autoResizeViewport,s=void 0===a||a,u=e.useDevicePixels,c=void 0===u||u,l=e.useDevicePixelRatio,f=void 0===l?null:l;return r.b.deprecated("AnimationLoop.setViewParameters","AnimationLoop.setProps"),this.autoResizeViewport=s,this.autoResizeCanvas=o,this.autoResizeDrawingBuffer=n,this.useDevicePixels=c,null!==f&&(r.b.deprecated("useDevicePixelRatio","useDevicePixels"),this.useDevicePixels=f),this}},{key:"_setupFrame",value:function(){this._onSetupFrame?this._onSetupFrame(this._callbackData):(this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._resizeFramebuffer())}},{key:"_renderFrame",value:function(){this._setupFrame(),this._updateCallbackData(),this._onRender(this._callbackData),this._callbackData.tick++,this._stopped||(this._animationFrameId=c(this._renderFrame))}},{key:"_initializeCallbackData",value:function(){this._callbackData={gl:this.gl,canvas:this.gl.canvas,framebuffer:this.framebuffer,stop:this.stop,tick:0,tock:0,isGeographicCoordinateSystem:this.isGeographicCoordinateSystem,useDevicePixels:this.useDevicePixels}}},{key:"_updateCallbackData",value:function(){var e=this.gl.canvas;this._callbackData.width=e.width,this._callbackData.height=e.height,this._callbackData.aspect=e.width/e.height}},{key:"_finalizeCallbackData",value:function(){this._onFinalize(this._callbackData)}},{key:"_addCallbackData",value:function(e){"object"===(void 0===e?"undefined":a(e))&&null!==e&&(this._callbackData=Object.assign({},this._callbackData,e))}},{key:"_createWebGLContext",value:function(e){if((e=Object.assign({},e,f,this.glOptions)).gl?this.gl=e.gl:this.gl=this._onCreateContext(e),!n.i(o.isWebGL)(this.gl))throw new Error("AnimationLoop.onCreateContext - illegal context returned");this._createFramebuffer&&(this.framebuffer=new o.Framebuffer(this.gl)),n.i(o.resetParameters)(this.gl)}},{key:"_resizeViewport",value:function(){this.autoResizeViewport&&this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height)}},{key:"_resizeFramebuffer",value:function(){this.framebuffer&&this.framebuffer.resize({width:this.gl.canvas.width,height:this.gl.canvas.height})}},{key:"_resizeCanvasDrawingBuffer",value:function(){this.autoResizeDrawingBuffer&&n.i(i.h)(this.gl.canvas,{useDevicePixels:this.useDevicePixels})}}]),e}();t.a=d},function(e,t,n){"use strict";var r=n(8),i=n(16),o=n(1),a=n.n(o),s=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(){function e(t){var o=t.id;t.display,function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.position=new i.Vector3,this.rotation=new i.Vector3,this.scale=new i.Vector3(1,1,1),this.matrix=new i.Matrix4,this.id=o||n.i(r.d)(this.constructor.name),this.display=!0,this.userData={}}return s(e,[{key:"setPosition",value:function(e){return a()(3===e.length,"setPosition requires vector argument"),this.position=e,this}},{key:"setRotation",value:function(e){return a()(3===e.length,"setRotation requires vector argument"),this.rotation=e,this}},{key:"setScale",value:function(e){return a()(3===e.length,"setScale requires vector argument"),this.scale=e,this}},{key:"setMatrixComponents",value:function(e){var t=e.position,n=e.rotation,r=e.scale,i=e.update,o=void 0===i||i;return t&&this.setPosition(t),n&&this.setRotation(n),r&&this.setScale(r),o&&this.updateMatrix(),this}},{key:"updateMatrix",value:function(){var e=this.position,t=this.rotation,n=this.scale;return this.matrix.identity(),this.matrix.translate(e),this.matrix.rotateXYZ(t),this.matrix.scale(n),this}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.position,n=e.rotation,r=e.scale;return t&&this.setPosition(t),n&&this.setRotation(n),r&&this.setScale(r),this.updateMatrix(),this}},{key:"getCoordinateUniforms",value:function(e,t){a()(e),t=t||this.matrix;var n=new i.Matrix4(e).multiplyRight(t),r=n.invert(),o=r.transpose();return{viewMatrix:e,modelMatrix:t,objectMatrix:t,worldMatrix:n,worldInverseMatrix:r,worldInverseTransposeMatrix:o}}},{key:"transform",value:function(){if(this.parent){var e=this.parent;this.endPosition.set(this.position.add(e.endPosition)),this.endRotation.set(this.rotation.add(e.endRotation)),this.endScale.set(this.scale.add(e.endScale))}else this.endPosition.set(this.position),this.endRotation.set(this.rotation),this.endScale.set(this.scale);for(var t=this.children,n=0;n<t.length;++n)t[n].transform();return this}}]),e}();t.a=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t);var n=e.radius,o=void 0===n?1:n,a=e.cap,s=void 0===a||a;return i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign({},e,{topRadius:0,topCap:Boolean(s),bottomCap:Boolean(s),bottomRadius:o})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n(105).a);t.a=o},function(e,t,n){"use strict";var r=n(45),i=n(8);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var r=e.id,s=void 0===r?n.i(i.d)("cube-geometry"):r;return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign({},e,{id:s,attributes:d()})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.a);t.a=s;var u=new Uint16Array([0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]),c=new Float32Array([-1,-1,1,1,-1,1,1,1,1,-1,1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1]),l=new Float32Array([0,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0]),f=new Float32Array([0,0,1,0,1,1,0,1,1,0,1,1,0,1,0,0,0,1,0,0,1,0,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,0,1]);function d(){return{indices:new Uint16Array(u),positions:new Float32Array(c),normals:new Float32Array(l),texCoords:new Float32Array(f)}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t);var n=e.radius,o=void 0===n?1:n;return i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign({},e,{bottomRadius:o,topRadius:o})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n(105).a);t.a=o},function(e,t,n){"use strict";var r=n(45),i=n(16);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=[-1,0,0,0,1,0,0,0,-1,0,0,1,0,-1,0,1,0,0],u=[3,4,5,3,5,1,3,1,0,3,0,4,4,0,2,4,2,5,2,0,1,5,2,1],c=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var n=e.iterations,r=void 0===n?0:n,c=Math.PI,l=2*c,f=[].concat(s),d=[].concat(u);f.push(),d.push();for(var h,p=(h={},function(e,t){var n=((e*=3)<(t*=3)?e:t)+"|"+(e>t?e:t);if(n in h)return h[n];var r=f[e],i=f[e+1],o=f[e+2],a=(r+f[t])/2,s=(i+f[t+1])/2,u=(o+f[t+2])/2,c=Math.sqrt(a*a+s*s+u*u);return a/=c,s/=c,u/=c,f.push(a,s,u),h[n]=f.length/3-1}),v=0;v<r;v++){for(var g=[],y=0;y<d.length;y+=3){var _=p(d[y+0],d[y+1]),m=p(d[y+1],d[y+2]),b=p(d[y+2],d[y+0]);g.push(b,d[y+0],_,_,d[y+1],m,m,d[y+2],b,_,m,b)}d=g}for(var E=new Array(3*d.length),w=new Array(2*d.length),P=d.length,S=P-3;S>=0;S-=3){var T=d[S+0],A=d[S+1],x=d[S+2],O=3*T,R=3*A,C=3*x,M=2*T,k=2*A,L=2*x,I=f[O+0],N=f[O+1],F=f[O+2],j=Math.acos(F/Math.sqrt(I*I+N*N+F*F)),D=Math.atan2(N,I)+c,B=j/c,U=1-D/l,G=f[R+0],V=f[R+1],z=f[R+2],W=Math.acos(z/Math.sqrt(G*G+V*V+z*z)),X=Math.atan2(V,G)+c,H=W/c,Y=1-X/l,K=f[C+0],Z=f[C+1],q=f[C+2],Q=Math.acos(q/Math.sqrt(K*K+Z*Z+q*q)),J=Math.atan2(Z,K)+c,$=Q/c,ee=1-J/l,te=[K-G,Z-V,q-z],ne=[I-G,N-V,F-z],re=new i.Vector3(te).cross(ne).normalize(),ie=void 0;(0===U||0===Y||0===ee)&&(0===U||U>.5)&&(0===Y||Y>.5)&&(0===ee||ee>.5)&&(f.push(f[O+0],f[O+1],f[O+2]),ie=f.length/3-1,d.push(ie),w[2*ie+0]=1,w[2*ie+1]=B,E[3*ie+0]=re.x,E[3*ie+1]=re.y,E[3*ie+2]=re.z,f.push(f[R+0],f[R+1],f[R+2]),ie=f.length/3-1,d.push(ie),w[2*ie+0]=1,w[2*ie+1]=H,E[3*ie+0]=re.x,E[3*ie+1]=re.y,E[3*ie+2]=re.z,f.push(f[C+0],f[C+1],f[C+2]),ie=f.length/3-1,d.push(ie),w[2*ie+0]=1,w[2*ie+1]=$,E[3*ie+0]=re.x,E[3*ie+1]=re.y,E[3*ie+2]=re.z),E[O+0]=E[R+0]=E[C+0]=re.x,E[O+1]=E[R+1]=E[C+1]=re.y,E[O+2]=E[R+2]=E[C+2]=re.z,w[M+0]=U,w[M+1]=B,w[k+0]=Y,w[k+1]=H,w[L+0]=ee,w[L+1]=$}return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign({},e,{attributes:{positions:new Float32Array(f),normals:new Float32Array(E),texCoords:new Float32Array(w),indices:new Uint16Array(d)}})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.a);t.a=c},function(e,t,n){"use strict";var r=n(45),i=n(8);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var r=e.type,s=void 0===r?"x,y":r,u=e.offset,c=void 0===u?0:u,l=e.flipCull,f=void 0!==l&&l,d=e.unpack,h=void 0!==d&&d,p=e.id,v=void 0===p?n.i(i.d)("plane-geometry"):p,g=s.split(","),y=e[g[0]+"len"],_=e[g[1]+"len"],m=e["n"+g[0]]||1,b=e["n"+g[1]]||1,E=(m+1)*(b+1),w=new Float32Array(3*E),P=new Float32Array(3*E),S=new Float32Array(2*E);f&&(y=-y);for(var T=0,A=0,x=0;x<=b;x++)for(var O=0;O<=m;O++){var R=O/m,C=x/b;switch(S[T+0]=f?1-R:R,S[T+1]=C,s){case"x,y":w[A+0]=y*R-.5*y,w[A+1]=_*C-.5*_,w[A+2]=c,P[A+0]=0,P[A+1]=0,P[A+2]=f?1:-1;break;case"x,z":w[A+0]=y*R-.5*y,w[A+1]=c,w[A+2]=_*C-.5*_,P[A+0]=0,P[A+1]=f?1:-1,P[A+2]=0;break;case"y,z":w[A+0]=c,w[A+1]=y*R-.5*y,w[A+2]=_*C-.5*_,P[A+0]=f?1:-1,P[A+1]=0,P[A+2]=0}T+=2,A+=3}for(var M=m+1,k=new Uint16Array(m*b*6),L=0;L<b;L++)for(var I=0;I<m;I++){var N=6*(L*m+I);k[N+0]=(L+0)*M+I,k[N+1]=(L+1)*M+I,k[N+2]=(L+0)*M+I+1,k[N+3]=(L+1)*M+I,k[N+4]=(L+1)*M+I+1,k[N+5]=(L+0)*M+I+1}if(h){for(var F=new Float32Array(3*k.length),j=new Float32Array(3*k.length),D=new Float32Array(2*k.length),B=0;B<k.length;++B){var U=k[B];F[3*B+0]=w[3*U+0],F[3*B+1]=w[3*U+1],F[3*B+2]=w[3*U+2],j[3*B+0]=P[3*U+0],j[3*B+1]=P[3*U+1],j[3*B+2]=P[3*U+2],D[2*B+0]=S[2*U+0],D[2*B+1]=S[2*U+1]}w=F,P=j,S=D,k=void 0}var G={positions:w,normals:P,texCoords:S};return k&&(G.indices=k),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign({},e,{attributes:G,id:v})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.a);t.a=s},function(e,t,n){"use strict";var r=n(45),i=n(8);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var r=e.nlat,s=void 0===r?10:r,c=e.nlong,l=void 0===c?10:c,f=e.radius,d=void 0===f?1:f,h=e.id,p=void 0===h?n.i(i.d)("sphere-geometry"):h;return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign({},e,{id:p,attributes:u(s,l,d)})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.a);function u(e,t,n){var r=Math.PI-0,i=2*Math.PI-0,o=(e+1)*(t+1);if("number"==typeof n){var a=n;n=function(e,t,n,r,i){return a}}for(var s=new Float32Array(3*o),u=new Float32Array(3*o),c=new Float32Array(2*o),l=new Uint16Array(e*t*6),f=0;f<=e;f++)for(var d=0;d<=t;d++){var h=d/t,p=f/e,v=d+f*(t+1),g=2*v,y=3*v,_=i*h,m=r*p,b=Math.sin(_),E=Math.cos(_),w=Math.sin(m),P=E*w,S=Math.cos(m),T=b*w,A=n(P,S,T,h,p);s[y+0]=A*P,s[y+1]=A*S,s[y+2]=A*T,u[y+0]=P,u[y+1]=S,u[y+2]=T,c[g+0]=h,c[g+1]=p}for(var x=e+1,O=0;O<e;O++)for(var R=0;R<t;R++){var C=6*(O*t+R);l[C+0]=R*x+O,l[C+1]=R*x+O+1,l[C+2]=(R+1)*x+O,l[C+3]=(R+1)*x+O,l[C+4]=R*x+O+1,l[C+5]=(R+1)*x+O+1}return{positions:s,indices:l,normals:u,texCoords:c}}t.a=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPathPrefix=function(e){i=e},t.loadFile=function(e,t){return"string"==typeof e||t||(e=(t=e).url),t.url=i?i+e:e,(0,r.requestFile)(t)},t.loadImage=function(e,t){return e=i?i+e:e,new Promise((function(n,r){try{var i=new Image;i.onload=function(){return n(i)},i.onerror=function(){return r(new Error("Could not load image "+e+"."))},i.crossOrigin=t&&t.crossOrigin||"anonymous",i.src=e}catch(e){r(e)}}))};var r=n(629),i=""},function(e,t,n){"use strict";t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.vs,i=t.fs,a=n.i(o.d)(t.modules||[]);return{gl:e,vs:_(e,Object.assign({},t,{source:r,type:d,modules:a})),fs:_(e,Object.assign({},t,{source:i,type:h,modules:a})),getUniforms:m(a),modules:b(a)}};var r,i,o=n(162),a=n(643),s=n(655),u=n(1),c=n.n(u),l=n(8);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d="vs",h="fs",p=(f(r={},d,"vertex"),f(r,h,"fragment"),r),v=(f(i={},d,s.a),f(i,h,s.b),i);function g(e,t){n.i(o.c)(e).deprecations.forEach((function(e){e.regex.test(t)&&(e.deprecated?l.b.deprecated(e.old,e.new):l.b.removed(e.old,e.new))}))}function y(e,t){var r=n.i(o.c)(e),i=void 0;switch(t){case d:i=r.vs||r.vertexShader;break;case h:i=r.fs||r.fragmentShader;break;default:c()(!1)}return"string"!=typeof i?"":"#define MODULE_"+e.toUpperCase()+"\n"+i+"// END MODULE_"+e+"\n\n"}function _(e,t){var r=t.id,i=t.source,o=t.type,s=t.modules,u=void 0===s?[]:s,l=t.defines,f=void 0===l?{}:l;c()("string"==typeof i,"shader source must be a string");var d=i.split("\n"),_="",m=i;0===d[0].indexOf("#version ")&&(_=d[0],m=d.slice(1).join("\n"));var b=function(e){var t=e.id,n=e.type;return t&&"string"==typeof t&&-1===e.source.indexOf("SHADER_NAME")?"\n#define SHADER_NAME "+t+"_"+p[n]+"\n\n":""}({id:r,source:i,type:o})+"\n"+n.i(a.a)(e)+"\n"+n.i(a.b)(e)+"\n"+function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=0,n="";for(var r in e)0===t&&(n+="\n// APPLICATION DEFINES\n"),t++,n+="#define "+r.toUpperCase()+" "+e[r]+"\n";return 0===t&&(n+="\n"),n}(f)+"\n"+(o===h?"#ifdef GL_ES\nprecision highp float;\n#endif\n\n":"")+"\n",E=!1,w=!0,P=!1,S=void 0;try{for(var T,A=u[Symbol.iterator]();!(w=(T=A.next()).done);w=!0){var x=T.value;"inject"===x?E=!0:(g(x,m),b+=y(x,o))}}catch(e){P=!0,S=e}finally{try{!w&&A.return&&A.return()}finally{if(P)throw S}}return b=_+b+m,E&&b.replace("}s*$",v),b}function m(e){return function(t){var r={},i=!0,a=!1,s=void 0;try{for(var u,c=e[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value,f=n.i(o.c)(l),d=f.getUniforms?f.getUniforms(t,r):{};Object.assign(r,d)}}catch(e){a=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(a)throw s}}return r}}function b(e){var t={},r=!0,i=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value,l=n.i(o.c)(c);t[c]=l}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}return t}},function(e,t,n){"use strict";var r=n(111),i=n(109),o=n(1),a=n.n(o),s=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.gl,r=t._cachePrograms,i=void 0!==r&&r;u(this,e),a()(n),this.gl=n,this.vertexShaders={},this.fragmentShaders={},this.programs={},this._cachePrograms=i}return s(e,[{key:"delete",value:function(){return this}},{key:"getVertexShader",value:function(e,t){a()("string"==typeof t),a()(this._compareContexts(e,this.gl));var n=this.vertexShaders[t];return n||(n=new r.b(e,t),this.vertexShaders[t]=n),n}},{key:"getFragmentShader",value:function(e,t){a()("string"==typeof t),a()(this._compareContexts(e,this.gl));var n=this.fragmentShaders[t];return n||(n=new r.c(e,t),this.fragmentShaders[t]=n),n}},{key:"getProgram",value:function(e,t){a()(this._compareContexts(e,this.gl)),a()("string"==typeof t.vs),a()("string"==typeof t.fs),a()("string"==typeof t.id);var n=this._getProgramKey(t),r=this.programs[n];return r?(this._resetProgram(r),r):(r=this._createNewProgram(e,t),this._cachePrograms&&this._checkProgramProp(r)&&(this.programs[n]=r),r)}},{key:"_getProgramKey",value:function(e){return e.id+"-"+e.vs+"-"+e.fs}},{key:"_checkProgramProp",value:function(e){return!e.varyings}},{key:"_createNewProgram",value:function(e,t){var n=t.vs,r=t.fs,o=this.getVertexShader(e,n),a=this.getFragmentShader(e,r);return new i.a(this.gl,Object.assign({},t,{vs:o,fs:a}))}},{key:"_resetProgram",value:function(e,t){e.reset()}},{key:"_compareContexts",value:function(e,t){return(e.gl||e)===(t.gl||t)}}]),e}();t.a=c},function(e,t,n){"use strict";var r=n(16),i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],o={modelMatrix:i,viewMatrix:i,projectionMatrix:i,cameraPositionWorld:[0,0,0]},a="varying vec4 project_vPositionWorld;\nvarying vec3 project_vNormalWorld;\n\nvec4 project_getPosition_World() {\n return project_vPositionWorld;\n}\n\nvec3 project_getNormal_World() {\n return project_vNormalWorld;\n}\n",s=a+"\n\n// Unprefixed uniforms\nuniform mat4 modelMatrix;\nuniform mat4 viewMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewProjectionMatrix;\nuniform vec3 cameraPositionWorld;\n\nstruct World {\n vec3 position;\n vec3 normal;\n};\n\nWorld world;\n\nvoid project_setPosition(vec4 position) {\n project_vPositionWorld = position;\n}\n\nvoid project_setNormal(vec3 normal) {\n project_vNormalWorld = normal;\n}\n\nvoid project_setPositionAndNormal_World(vec3 position, vec3 normal) {\n world.position = position;\n world.normal = normal;\n}\n\nvoid project_setPositionAndNormal_Model(vec3 position, vec3 normal) {\n world.position = (modelMatrix * vec4(position, 1.)).xyz;\n world.normal = mat3(modelMatrix) * normal;\n}\n\nvec4 project_model_to_clipspace(vec4 position) {\n return viewProjectionMatrix * modelMatrix * position;\n}\n\nvec4 project_model_to_clipspace(vec3 position) {\n return viewProjectionMatrix * modelMatrix * vec4(position, 1.);\n}\n\nvec4 project_world_to_clipspace(vec3 position) {\n return viewProjectionMatrix * vec4(position, 1.);\n}\n\nvec4 project_view_to_clipspace(vec3 position) {\n return projectionMatrix * vec4(position, 1.);\n}\n\nvec4 project_to_clipspace(vec3 position) {\n return viewProjectionMatrix * vec4(position, 1.);\n}\n",u="\n"+a;t.a={name:"project",getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t={};return void 0!==e.modelMatrix&&(t.modelMatrix=e.modelMatrix),void 0!==e.viewMatrix&&(t.viewMatrix=e.viewMatrix),void 0!==e.projectionMatrix&&(t.projectionMatrix=e.projectionMatrix),void 0!==e.cameraPositionWorld&&(t.cameraPositionWorld=e.cameraPositionWorld),void 0===e.projectionMatrix&&void 0===e.viewMatrix||(t.viewProjectionMatrix=new r.Matrix4(e.projectionMatrix).multiplyRight(e.viewMatrix)),t},vs:s,fs:u}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="undefined"!=typeof window?window:e,i=void 0!==e?e:window;"undefined"!=typeof document&&document}).call(t,n(47))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var 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},i=!("object"===(void 0===e?"undefined":r(e))&&"[object process]"===String(e)&&!e.browser)}).call(t,n(26))},function(e,t,n){"use strict";t.b=s,console.debug=console.debug||console.log;var r={},i={priority:0,table:function(e,t){e<=i.priority&&t&&console.table(t)},log:function(e,t){if(e<=i.priority){for(var n,r=arguments.length,o=Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];(n=console).debug.apply(n,["luma.gl: "+t].concat(o))}},info:function(e,t){if(e<=i.priority){for(var n,r=arguments.length,o=Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];(n=console).log.apply(n,["luma.gl: "+t].concat(o))}},once:function(e,t){if(!r[t]){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];i.log.apply(i,[e,t].concat(o)),r[t]=!0}},warn:function(e){if(!r[e]){for(var t,n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(t=console).warn.apply(t,["luma.gl: "+e].concat(i)),r[e]=!0}},error:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).error.apply(t,["luma.gl: "+e].concat(r))},image:function(e){var t=e.priority,n=e.image,r=e.message,a=void 0===r?"":r,s=e.scale,u=void 0===s?1:s;if(!(t>i.priority)&&"undefined"!=typeof window){if("string"==typeof n){var c=new Image;c.onload=o.bind(null,c,a,u),c.src=n}var l=n.nodeName||"";if("img"===l.toLowerCase()&&o(n,a,u),"canvas"===l.toLowerCase()){var f=new Image;f.onload=o.bind(null,f,a,u),f.src=n.toDataURL()}}},deprecated:function(e,t){i.warn("`"+e+"` is deprecated and will be removed in a later version. Use `"+t+"` instead")},removed:function(e,t){i.error("`"+e+"` is no longer supported. Use `"+t+"` instead, check our Upgrade Guide for more details")},group:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.collapsed,o=void 0!==r&&r;e<=i.priority&&(o?console.groupCollapsed("luma.gl: "+t):console.group("luma.gl: "+t))},groupEnd:function(e,t){e<=i.priority&&console.groupEnd("luma.gl: "+t)},time:function(e,t){e<=i.priority&&(console.time?console.time(t):console.info(t))},timeEnd:function(e,t){e<=i.priority&&(console.timeEnd?console.timeEnd(t):console.info(t))}};function o(e,t,n){var r=e.width*n,i=e.height*n,o=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");console.log(t+" %c+",["font-size:1px;","padding:"+Math.floor(i/2)+"px "+Math.floor(r/2)+"px;","line-height:"+i+"px;","background:url("+o+");","background-size:"+r+"px "+i+"px;","color:transparent;"].join(""))}function a(e,t){for(var n=t.maxElts,r=void 0===n?16:n,i=t.size,o=void 0===i?1:i,a="[",u=0;u<e.length&&u<r;++u)u>0&&(a+=","+(u%o==0?" ":"")),a+=s(e[u],t);return a+(e.length>r?"...":"]")}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=1e-16,r=t.isInteger,i=void 0!==r&&r;if(Array.isArray(e)||ArrayBuffer.isView(e))return a(e,t);if(!Number.isFinite(e))return String(e);if(Math.abs(e)<n)return i?"0":"0.";if(i)return e.toFixed(0);if(Math.abs(e)>100&&Math.abs(e)<1e4)return e.toFixed(0);var o=e.toPrecision(2),s=o.indexOf(".0");return s===o.length-2?o.slice(0,-1):o}t.a=i},function(e,t,n){"use strict";t.a=function(e){var t=e.match(/#define[\s*]SHADER_NAME[\s*]([A-Za-z0-9_-]+)[\s*]/);return t?t[1]:"unnamed"},t.b=function(e){switch(e){case 35632:return"fragment";case 35633:return"vertex";default:return"unknown type"}}},function(e,t,n){"use strict";t.a=function(e){if(e.luma=e.luma||{},function(e){e.luma.extensions={};var t=e.getSupportedExtensions(),n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;e.luma[s]=e.getExtension(s)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}(e),!e.luma.polyfilled){for(var t in l)"overrides"!==t&&f(e,{extension:t,target:e.luma,target2:e});!function(e,t){var n=t.target,r=t.target2,i=l.OVERRIDES;Object.keys(i).forEach((function(t){if("function"==typeof i[t]){var o=e[t]?e[t].bind(e):function(){},a=i[t].bind(null,e,o);n[t]=a,r[t]=a}}))}(e,{target:e.luma,target2:e}),e.luma.polyfilled=!0}return e};var r,i=n(1),o=n.n(i),a=n(666);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u="ANGLE_instanced_arrays";function c(e){return e&&32874===e.TEXTURE_BINDING_3D}var l=(s(r={},"OES_vertex_array_object",{meta:{suffix:"OES"},createVertexArray:function(){o()(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:function(){},bindVertexArray:function(){},isVertexArray:function(){return!1}}),s(r,u,{meta:{suffix:"ANGLE"},vertexAttribDivisor:function(e,t){o()(0===t,"WebGL instanced rendering not supported")},drawElementsInstanced:function(){},drawArraysInstanced:function(){}}),s(r,"WEBGL_draw_buffers",{meta:{suffix:"WEBGL"},drawBuffers:function(){o()(!1)}}),s(r,"EXT_disjoint_timer_query",{meta:{suffix:"EXT"},createQuery:function(){o()(!1)},deleteQuery:function(){o()(!1)},beginQuery:function(){o()(!1)},endQuery:function(){},getQuery:function(e,t){return this.getQueryObject(e,t)},getQueryParameter:function(e,t){return this.getQueryObject(e,t)},queryCounter:function(){},getQueryObject:function(){}}),s(r,"EXT_disjoint_timer_query_webgl2",{meta:{suffix:"EXT"},queryCounter:null}),s(r,"OVERRIDES",{readBuffer:function(e,t,n){c(e)&&t(n)},getVertexAttrib:function(e,t,n,r){var i=function(e,t){return{webgl2:c(e),ext:e.getExtension(t)}}(e,u),o=i.webgl2,a=i.ext,s=void 0;switch(r){case 35069:s=!!o&&void 0;break;case 35070:s=o||a?void 0:0}return void 0!==s?s:t(n,r)},getProgramParameter:function(e,t,n,r){if(!c(e))switch(r){case 35967:return 35981;case 35971:case 35382:return 0}return t(n,r)},getInternalformatParameter:function(e,t,n,r,i){return c(e)||32937!==i?e.getInternalformatParameter(n,r,i):new Int32Array([0])},getTexParameter:function(e,t,n,r){if(34046===r){var i=e.luma.extensions.EXT_texture_filter_anisotropic;r=i&&i.TEXTURE_MAX_ANISOTROPY_EXT||34046}return t(n,r)},getParameter:a.a,hint:function(e,t,n,r){return t(n,r)}}),r);function f(e,t){var n=t.extension,r=t.target,i=t.target2,a=l[n];o()(a);var s=a.meta,u=(void 0===s?{}:s).suffix,c=void 0===u?"":u,f=e.getExtension(n);Object.keys(a).forEach((function(t){var n=""+t+c,o=null;"meta"===t||"function"==typeof e[t]||(f&&"function"==typeof f[n]?o=function(){return f[n].apply(f,arguments)}:"function"==typeof a[t]&&(o=a[t].bind(r))),o&&(r[t]=o,i[t]=o)}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),t.e=function(e,t,n){var r=m[t],i=r?r(e,Number(t)):e.getParameter(Number(t)),o=g[t];return c()("function"==typeof o),o(e,n,Number(t)),i},t.c=E,t.d=w,t.a=P,t.f=function(e){E(e,Object.assign({},d,{}))},t.g=function(e){var t=P(d),n={};for(var r in d)b(t[r],d[r])||(n[r]=t[r]);return n};var r,i,o,a=n(46),s=n(7),u=n(1),c=n.n(u);function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=(f(r={},a.a.BLEND,!1),f(r,a.a.BLEND_COLOR,new Float32Array([0,0,0,0])),f(r,a.a.BLEND_EQUATION_RGB,a.a.FUNC_ADD),f(r,a.a.BLEND_EQUATION_ALPHA,a.a.FUNC_ADD),f(r,a.a.BLEND_SRC_RGB,a.a.ONE),f(r,a.a.BLEND_DST_RGB,a.a.ZERO),f(r,a.a.BLEND_SRC_ALPHA,a.a.ONE),f(r,a.a.BLEND_DST_ALPHA,a.a.ZERO),f(r,a.a.COLOR_CLEAR_VALUE,new Float32Array([0,0,0,0])),f(r,a.a.COLOR_WRITEMASK,[!0,!0,!0,!0]),f(r,a.a.CULL_FACE,!1),f(r,a.a.CULL_FACE_MODE,a.a.BACK),f(r,a.a.DEPTH_TEST,!1),f(r,a.a.DEPTH_CLEAR_VALUE,1),f(r,a.a.DEPTH_FUNC,a.a.LESS),f(r,a.a.DEPTH_RANGE,new Float32Array([0,1])),f(r,a.a.DEPTH_WRITEMASK,!0),f(r,a.a.DITHER,!0),f(r,a.a.FRAMEBUFFER_BINDING,null),f(r,a.a.FRONT_FACE,a.a.CCW),f(r,a.a.GENERATE_MIPMAP_HINT,a.a.DONT_CARE),f(r,a.a.LINE_WIDTH,1),f(r,a.a.POLYGON_OFFSET_FILL,!1),f(r,a.a.POLYGON_OFFSET_FACTOR,0),f(r,a.a.POLYGON_OFFSET_UNITS,0),f(r,a.a.SAMPLE_COVERAGE_VALUE,1),f(r,a.a.SAMPLE_COVERAGE_INVERT,!1),f(r,a.a.SCISSOR_TEST,!1),f(r,a.a.SCISSOR_BOX,new Int32Array([0,0,1024,1024])),f(r,a.a.STENCIL_TEST,!1),f(r,a.a.STENCIL_CLEAR_VALUE,0),f(r,a.a.STENCIL_WRITEMASK,4294967295),f(r,a.a.STENCIL_BACK_WRITEMASK,4294967295),f(r,a.a.STENCIL_FUNC,a.a.ALWAYS),f(r,a.a.STENCIL_REF,0),f(r,a.a.STENCIL_VALUE_MASK,4294967295),f(r,a.a.STENCIL_BACK_FUNC,a.a.ALWAYS),f(r,a.a.STENCIL_BACK_REF,0),f(r,a.a.STENCIL_BACK_VALUE_MASK,4294967295),f(r,a.a.STENCIL_FAIL,a.a.KEEP),f(r,a.a.STENCIL_PASS_DEPTH_FAIL,a.a.KEEP),f(r,a.a.STENCIL_PASS_DEPTH_PASS,a.a.KEEP),f(r,a.a.STENCIL_BACK_FAIL,a.a.KEEP),f(r,a.a.STENCIL_BACK_PASS_DEPTH_FAIL,a.a.KEEP),f(r,a.a.STENCIL_BACK_PASS_DEPTH_PASS,a.a.KEEP),f(r,a.a.VIEWPORT,new Int32Array([0,0,1024,1024])),f(r,a.a.PACK_ALIGNMENT,4),f(r,a.a.UNPACK_ALIGNMENT,4),f(r,a.a.UNPACK_FLIP_Y_WEBGL,!1),f(r,a.a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),f(r,a.a.UNPACK_COLORSPACE_CONVERSION_WEBGL,a.a.BROWSER_DEFAULT_WEBGL),f(r,a.a.FRAGMENT_SHADER_DERIVATIVE_HINT,a.a.DONT_CARE),f(r,a.a.READ_FRAMEBUFFER_BINDING,null),f(r,a.a.RASTERIZER_DISCARD,!1),f(r,a.a.PACK_ROW_LENGTH,0),f(r,a.a.PACK_SKIP_PIXELS,0),f(r,a.a.PACK_SKIP_ROWS,0),f(r,a.a.UNPACK_ROW_LENGTH,0),f(r,a.a.UNPACK_IMAGE_HEIGHT,0),f(r,a.a.UNPACK_SKIP_PIXELS,0),f(r,a.a.UNPACK_SKIP_ROWS,0),f(r,a.a.UNPACK_SKIP_IMAGES,0),r),h=function(e,t,n){return t?e.enable(n):e.disable(n)},p=function(e,t,n){return e.hint(n,t)},v=function(e,t,n){return e.pixelStorei(n,t)},g=(f(i={},a.a.BLEND,h),f(i,a.a.BLEND_COLOR,(function(e,t){return e.blendColor.apply(e,l(t))})),f(i,a.a.BLEND_EQUATION_RGB,"blendEquation"),f(i,a.a.BLEND_EQUATION_ALPHA,"blendEquation"),f(i,a.a.BLEND_SRC_RGB,"blendFunc"),f(i,a.a.BLEND_DST_RGB,"blendFunc"),f(i,a.a.BLEND_SRC_ALPHA,"blendFunc"),f(i,a.a.BLEND_DST_ALPHA,"blendFunc"),f(i,a.a.COLOR_CLEAR_VALUE,(function(e,t){return e.clearColor.apply(e,l(t))})),f(i,a.a.COLOR_WRITEMASK,(function(e,t){return e.colorMask.apply(e,l(t))})),f(i,a.a.CULL_FACE,h),f(i,a.a.CULL_FACE_MODE,(function(e,t){return e.cullFace(t)})),f(i,a.a.DEPTH_TEST,h),f(i,a.a.DEPTH_CLEAR_VALUE,(function(e,t){return e.clearDepth(t)})),f(i,a.a.DEPTH_FUNC,(function(e,t){return e.depthFunc(t)})),f(i,a.a.DEPTH_RANGE,(function(e,t){return e.depthRange.apply(e,l(t))})),f(i,a.a.DEPTH_WRITEMASK,(function(e,t){return e.depthMask(t)})),f(i,a.a.DITHER,h),f(i,a.a.FRAGMENT_SHADER_DERIVATIVE_HINT,p),f(i,a.a.FRAMEBUFFER_BINDING,(function(e,t){var r=n.i(s.b)(e)?a.a.DRAW_FRAMEBUFFER:a.a.FRAMEBUFFER;return e.bindFramebuffer(r,t)})),f(i,a.a.FRONT_FACE,(function(e,t){return e.frontFace(t)})),f(i,a.a.GENERATE_MIPMAP_HINT,p),f(i,a.a.LINE_WIDTH,(function(e,t){return e.lineWidth(t)})),f(i,a.a.POLYGON_OFFSET_FILL,h),f(i,a.a.POLYGON_OFFSET_FACTOR,"polygonOffset"),f(i,a.a.POLYGON_OFFSET_UNITS,"polygonOffset"),f(i,a.a.RASTERIZER_DISCARD,h),f(i,a.a.SAMPLE_COVERAGE_VALUE,"sampleCoverage"),f(i,a.a.SAMPLE_COVERAGE_INVERT,"sampleCoverage"),f(i,a.a.SCISSOR_TEST,h),f(i,a.a.SCISSOR_BOX,(function(e,t){return e.scissor.apply(e,l(t))})),f(i,a.a.STENCIL_TEST,h),f(i,a.a.STENCIL_CLEAR_VALUE,(function(e,t){return e.clearStencil(t)})),f(i,a.a.STENCIL_WRITEMASK,(function(e,t){return e.stencilMaskSeparate(a.a.FRONT,t)})),f(i,a.a.STENCIL_BACK_WRITEMASK,(function(e,t){return e.stencilMaskSeparate(a.a.BACK,t)})),f(i,a.a.STENCIL_FUNC,"stencilFuncFront"),f(i,a.a.STENCIL_REF,"stencilFuncFront"),f(i,a.a.STENCIL_VALUE_MASK,"stencilFuncFront"),f(i,a.a.STENCIL_BACK_FUNC,"stencilFuncBack"),f(i,a.a.STENCIL_BACK_REF,"stencilFuncBack"),f(i,a.a.STENCIL_BACK_VALUE_MASK,"stencilFuncBack"),f(i,a.a.STENCIL_FAIL,"stencilOpFront"),f(i,a.a.STENCIL_PASS_DEPTH_FAIL,"stencilOpFront"),f(i,a.a.STENCIL_PASS_DEPTH_PASS,"stencilOpFront"),f(i,a.a.STENCIL_BACK_FAIL,"stencilOpBack"),f(i,a.a.STENCIL_BACK_PASS_DEPTH_FAIL,"stencilOpBack"),f(i,a.a.STENCIL_BACK_PASS_DEPTH_PASS,"stencilOpBack"),f(i,a.a.VIEWPORT,(function(e,t){return e.viewport.apply(e,l(t))})),f(i,a.a.PACK_ALIGNMENT,v),f(i,a.a.UNPACK_ALIGNMENT,v),f(i,a.a.UNPACK_FLIP_Y_WEBGL,v),f(i,a.a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,v),f(i,a.a.UNPACK_COLORSPACE_CONVERSION_WEBGL,v),f(i,a.a.PACK_ROW_LENGTH,v),f(i,a.a.PACK_SKIP_PIXELS,v),f(i,a.a.PACK_SKIP_ROWS,v),f(i,a.a.READ_FRAMEBUFFER_BINDING,(function(e,t){return e.bindFramebuffer(a.a.READ_FRAMEBUFFER,t)})),f(i,a.a.UNPACK_ROW_LENGTH,v),f(i,a.a.UNPACK_IMAGE_HEIGHT,v),f(i,a.a.UNPACK_SKIP_PIXELS,v),f(i,a.a.UNPACK_SKIP_ROWS,v),f(i,a.a.UNPACK_SKIP_IMAGES,v),i),y={blendEquation:function(e,t){return e.blendEquationSeparate(t[a.a.BLEND_EQUATION_RGB],t[a.a.BLEND_EQUATION_ALPHA])},blendFunc:function(e,t){return e.blendFuncSeparate(t[a.a.BLEND_SRC_RGB],t[a.a.BLEND_DST_RGB],t[a.a.BLEND_SRC_ALPHA],t[a.a.BLEND_DST_ALPHA])},polygonOffset:function(e,t){return e.polygonOffset(t[a.a.POLYGON_OFFSET_FACTOR],t[a.a.POLYGON_OFFSET_UNITS])},sampleCoverage:function(e,t){return e.sampleCoverage(t[a.a.SAMPLE_COVERAGE_VALUE],t[a.a.SAMPLE_COVERAGE_INVERT])},stencilFuncFront:function(e,t){return e.stencilFuncSeparate(a.a.FRONT,t[a.a.STENCIL_FUNC],t[a.a.STENCIL_REF],t[a.a.STENCIL_VALUE_MASK])},stencilFuncBack:function(e,t){return e.stencilFuncSeparate(a.a.BACK,t[a.a.STENCIL_BACK_FUNC],t[a.a.STENCIL_BACK_REF],t[a.a.STENCIL_BACK_VALUE_MASK])},stencilOpFront:function(e,t){return e.stencilOpSeparate(a.a.FRONT,t[a.a.STENCIL_FAIL],t[a.a.STENCIL_PASS_DEPTH_FAIL],t[a.a.STENCIL_PASS_DEPTH_PASS])},stencilOpBack:function(e,t){return e.stencilOpSeparate(a.a.BACK,t[a.a.STENCIL_BACK_FAIL],t[a.a.STENCIL_BACK_PASS_DEPTH_FAIL],t[a.a.STENCIL_BACK_PASS_DEPTH_PASS])}},_=function(e,t){return e.isEnabled(t)},m=(f(o={},a.a.BLEND,_),f(o,a.a.CULL_FACE,_),f(o,a.a.DEPTH_TEST,_),f(o,a.a.DITHER,_),f(o,a.a.POLYGON_OFFSET_FILL,_),f(o,a.a.SAMPLE_ALPHA_TO_COVERAGE,_),f(o,a.a.SAMPLE_COVERAGE,_),f(o,a.a.SCISSOR_TEST,_),f(o,a.a.STENCIL_TEST,_),f(o,a.a.RASTERIZER_DISCARD,_),o),b=function(e,t){if(e===t)return!0;var n=Array.isArray(e)||ArrayBuffer.isView(e),r=Array.isArray(t)||ArrayBuffer.isView(t);if(n&&r&&e.length===t.length){for(var i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}return!1};function E(e,t){var n={};for(var r in t){var i=g[r];i&&("string"==typeof i?n[i]=!0:i(e,t[r],Number(r)))}var o=e.state&&e.state.cache;if(o){var a=Object.assign({},o,t);for(var s in n)(0,y[s])(e,a)}}function w(e,t){var n=m[t];return n?n(e,Number(t)):e.getParameter(Number(t))}function P(e,t){t=t||d;var n=Array.isArray(t)?t:Object.keys(t),r={},i=!0,o=!1,a=void 0;try{for(var s,u=n[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;r[c]=w(e,c)}}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return r}},function(e,t,n){"use strict";t.a=function(){l.a.PARAMETERS=_,f.a.PARAMETERS=m,d.a.ATTACHMENT_PARAMETERS=b,d.a.STATUS=E,h.a.PARAMETERS=w,p.a.PARAMETERS=P,v.a.PARAMETERS=S,g.a.PARAMETERS=T};var r,i,o,a,s,u,c=n(46),l=n(67),f=n(271),d=n(69),h=n(109),p=n(110),v=n(274),g=n(62);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=(y(r={},c.a.BUFFER_SIZE,{webgl1:0}),y(r,c.a.BUFFER_USAGE,{webgl1:0}),r),m=[c.a.OBJECT_TYPE,c.a.SYNC_STATUS,c.a.SYNC_CONDITION,c.a.SYNC_FLAGS],b=[c.a.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,c.a.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,c.a.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE,c.a.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL,c.a.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING,c.a.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER,c.a.FRAMEBUFFER_ATTACHMENT_RED_SIZE,c.a.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE,c.a.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE,c.a.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE,c.a.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE,c.a.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE,c.a.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE],E=(y(i={},c.a.FRAMEBUFFER_COMPLETE,"Success. Framebuffer is correctly set up"),y(i,c.a.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,"Framebuffer attachment types mismatched or some attachment point not attachment complete"),y(i,c.a.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT,"Framebuffer has no attachment"),y(i,c.a.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,"Framebuffer attachments do not have the same size"),y(i,c.a.FRAMEBUFFER_UNSUPPORTED,"Framebuffer attachment format not supported or depth and stencil attachments are not same"),y(i,c.a.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE,"Framebuffer attachement SAMPLES differs among renderbuffers, or are mixed with textures"),i),w=(y(o={},c.a.DELETE_STATUS,{webgl1:0}),y(o,c.a.LINK_STATUS,{webgl1:0}),y(o,c.a.VALIDATE_STATUS,{webgl1:0}),y(o,c.a.ATTACHED_SHADERS,{webgl1:0}),y(o,c.a.ACTIVE_ATTRIBUTES,{webgl1:0}),y(o,c.a.ACTIVE_UNIFORMS,{webgl1:0}),y(o,c.a.TRANSFORM_FEEDBACK_BUFFER_MODE,{webgl2:0}),y(o,c.a.TRANSFORM_FEEDBACK_VARYINGS,{webgl2:0}),y(o,c.a.ACTIVE_UNIFORM_BLOCKS,{webgl2:0}),o),P=(y(a={},c.a.RENDERBUFFER_WIDTH,{webgl1:0}),y(a,c.a.RENDERBUFFER_HEIGHT,{webgl1:0}),y(a,c.a.RENDERBUFFER_INTERNAL_FORMAT,{type:"GLenum",webgl1:c.a.RGBA4}),y(a,c.a.RENDERBUFFER_GREEN_SIZE,{webgl1:0}),y(a,c.a.RENDERBUFFER_BLUE_SIZE,{webgl1:0}),y(a,c.a.RENDERBUFFER_RED_SIZE,{webgl1:0}),y(a,c.a.RENDERBUFFER_ALPHA_SIZE,{webgl1:0}),y(a,c.a.RENDERBUFFER_DEPTH_SIZE,{webgl1:0}),y(a,c.a.RENDERBUFFER_STENCIL_SIZE,{webgl1:0}),y(a,c.a.RENDERBUFFER_SAMPLES,{webgl2:1}),a),S=(y(s={},c.a.TEXTURE_MAG_FILTER,{webgl2:!0}),y(s,c.a.TEXTURE_MIN_FILTER,{webgl2:!0}),y(s,c.a.TEXTURE_WRAP_S,{webgl2:!0}),y(s,c.a.TEXTURE_WRAP_T,{webgl2:!0}),y(s,c.a.TEXTURE_WRAP_R,{webgl2:!0}),y(s,c.a.TEXTURE_BASE_LEVEL,{webgl2:!0}),y(s,c.a.TEXTURE_MAX_LEVEL,{webgl2:!0}),y(s,c.a.TEXTURE_COMPARE_FUNC,{webgl2:!0}),y(s,c.a.TEXTURE_COMPARE_MODE,{webgl2:!0}),y(s,c.a.TEXTURE_MIN_LOD,{webgl2:!0}),y(s,c.a.TEXTURE_MAX_LOD,{webgl2:!0}),s),T=(y(u={},c.a.TEXTURE_MAG_FILTER,{type:"GLenum",webgl1:c.a.LINEAR}),y(u,c.a.TEXTURE_MIN_FILTER,{type:"GLenum",webgl1:c.a.NEAREST_MIPMAP_LINEAR}),y(u,c.a.TEXTURE_WRAP_S,{type:"GLenum",webgl1:c.a.REPEAT}),y(u,c.a.TEXTURE_WRAP_T,{type:"GLenum",webgl1:c.a.REPEAT}),y(u,c.a.TEXTURE_WRAP_R,{type:"GLenum",webgl2:c.a.REPEAT}),y(u,c.a.TEXTURE_BASE_LEVEL,{webgl2:0}),y(u,c.a.TEXTURE_MAX_LEVEL,{webgl2:1e3}),y(u,c.a.TEXTURE_COMPARE_FUNC,{type:"GLenum",webgl2:c.a.LEQUAL}),y(u,c.a.TEXTURE_COMPARE_MODE,{type:"GLenum",webgl2:c.a.NONE}),y(u,c.a.TEXTURE_MIN_LOD,{webgl2:-1e3}),y(u,c.a.TEXTURE_MAX_LOD,{webgl2:1e3}),y(u,c.a.TEXTURE_WIDTH,{webgl1:0}),y(u,c.a.TEXTURE_HEIGHT,{webgl1:0}),u)},function(e,t,n){"use strict";n.d(t,"c",(function(){return x})),n.d(t,"e",(function(){return R})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"h",(function(){return g})),n.d(t,"i",(function(){return _})),n.d(t,"j",(function(){return b})),n.d(t,"k",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"m",(function(){return A})),n.d(t,"b",(function(){return O}));var r=n(106);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function e(){i(this,e)},a=r.default.globals.headlessTypes||r.global,s=a.WebGLRenderingContext,u=void 0===s?o:s,c=a.WebGLProgram,l=void 0===c?o:c,f=a.WebGLShader,d=void 0===f?o:f,h=a.WebGLBuffer,p=void 0===h?o:h,v=a.WebGLFramebuffer,g=void 0===v?o:v,y=a.WebGLRenderbuffer,_=void 0===y?o:y,m=a.WebGLTexture,b=void 0===m?o:m,E=a.WebGLUniformLocation,w=void 0===E?o:E,P=a.WebGLActiveInfo,S=void 0===P?o:P,T=a.WebGLShaderPrecisionFormat,A=void 0===T?o:T,x=u!==o&&l!==o&&d!==o&&p!==o&&g!==o&&_!==o&&b!==o&&w!==o&&S!==o&&A!==o,O=r.global.WebGL2RenderingContext||function e(){i(this,e)},R=r.global.Image||function e(){i(this,e)}},function(e,t,n){"use strict";t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.debug;return null===e?null:n?c(e):u(e)};var r=n(688),i=n.n(r),o=n(8),a=n(267);function s(e){return e.luma=e.luma||{},e.luma}function u(e){if(null===e)return null;var t=s(e);return t.realContext?t.realContext:e}function c(e){if(null===e)return null;var t=s(e);if(t.realContext)return e;if(t.debugContext)return t.debugContext;var n=i.a.makeDebugContext(e,f,d);return Object.assign(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}.prototype,n),t.debugContext=n,n.debug=!0,n.gl=e,n}function l(e,t){var n=i.a.glFunctionArgsToString(e,t);return"gl."+e+"("+(n=n.slice(0,100)+(n.length>100?"...":""))+")"}function f(e,t,n){if(!o.b.nothrow){var r=i.a.glEnumToString(e),a=i.a.glFunctionArgsToString(t,n);throw new Error(r+" in gl."+t+"("+a+")")}}function d(e,t){if(o.b.debug){var n=void 0;o.b.priority>=4&&(n=l(e,t),o.b.info(4,""+n)),o.b.break&&(n=n||l(e,t),o.b.break&&o.b.break.every((function(e){return-1!==n.indexOf(e)})));var r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0)if(void 0===s.value)throw n=n||l(e,t),new Error("Undefined argument: "+n)}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}}}n.i(a.a)()},function(e,t,n){"use strict";t.a=function(e,t){var o=t.drawMode,a=void 0===o?r.a.TRIANGLES:o,s=t.vertexCount,u=t.offset,c=void 0===u?0:u,l=t.isIndexed,f=void 0!==l&&l,d=t.indexType,h=void 0===d?r.a.UNSIGNED_SHORT:d,p=t.isInstanced,v=void 0!==p&&p,g=t.instanceCount,y=void 0===g?0:g;if(n.i(i.j)(e),e.getExtension("ANGLE_instanced_arrays"),v){var _=isWebGL2(e),m=e.getExtension("ANGLE_instanced_arrays"),b=_?e:m,E=_?"":"ANGLE",w="drawArraysInstanced"+E;f?b["drawElementsInstanced"+E](a,s,h,c,y):b[w](a,c,s,y)}else f?e.drawElements(a,s,h,c):e.drawArrays(a,c,s)};var r=n(25),i=n(7),o=n(1);n.n(o)},function(e,t,n){"use strict";var r=n(38),i=n(7),o=n(30),a=n(166),s=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n.i(i.g)(e);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return o.promise=null,Object.seal(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"wait",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.flags,n=void 0===t?0:t,i=e.timeout,o=void 0===i?r.a.TIMEOUT_IGNORED:i;return this.gl.waitSync(this.handle,n,o),this}},{key:"clientWait",value:function(e){var t=e.flags,n=void 0===t?r.a.SYNC_FLUSH_COMMANDS_BIT:t,i=e.timeout,o=this.gl.clientWaitSync(this.handle,n,i);switch(o){case r.a.ALREADY_SIGNALED:case r.a.TIMEOUT_EXPIRED:case r.a.CONDITION_SATISFIED:case r.a.WAIT_FAILED:}return o}},{key:"cancel",value:function(){a.a.cancelQuery(this)}},{key:"isSignaled",value:function(){return this.getParameter(r.a.SYNC_STATUS)===r.a.SIGNALED}},{key:"isResultAvailable",value:function(){return this.isSignaled()}},{key:"getResult",value:function(){return this.isSignaled()}},{key:"getParameter",value:function(e){return this.gl.getSyncParameter(this.handle,e)}},{key:"_createHandle",value:function(){return this.gl.fenceSync(r.a.SYNC_GPU_COMMANDS_COMPLETE,0)}},{key:"_deleteHandle",value:function(){a.a.deleteQuery(this),this.gl.deleteSync(this.handle)}}]),t}(o.a);t.a=u},function(e,t,n){"use strict";t.a=function(e,t){var o=t.x,a=t.y,s=t.width,u=void 0===s?1:s,c=t.height,l=void 0===c?1:c,f=t.data,d=t.dataOffset,h=void 0===d?0:d,p=t.type,v=void 0===p?r.a.UNSIGNED_BYTE:p,g=t.sourceHeight,y=t.format,_=void 0===y?r.a.RGBA:y;return f=f||new Uint8Array(4*u*l),a=g?g-a:a,h?(n.i(i.g)(e),e.readPixels(o,a,u,l,_,v,f,h)):e.readPixels(o,a,u,l,_,v,f),f};var r=n(38),i=n(7),o=n(1);n.n(o)},function(e,t,n){"use strict";var r=n(30),i=n(166),o=n(108),a=n(7),s=n(60),u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){return e},d=36392,h=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),i=n.onComplete,o=void 0===i?f:i,a=n.onError,s=void 0===a?f:a;return r.target=null,r.onComplete=o,r.onError=s,r.promise=null,Object.seal(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,null,[{key:"isSupported",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.queries,i=void 0!==r&&r,u=t.timers,c=void 0!==u&&u,l=t.timestamps,f=void 0!==l&&l,h=n.i(a.b)(e),p=n.i(o.c)(e,o.a.TIMER_QUERY),v=h||p;if(i&&(v=v&&h),c&&(v=v&&p),f){n.i(s.f)(e);var g=e.getQuery(d,34916);v=v&&g>0}return v}}]),u(t,[{key:"beginTimeElapsedQuery",value:function(){return this.begin(35007)}},{key:"beginOcclusionQuery",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.conservative,n=void 0!==t&&t;return this.begin(n?36202:35887)}},{key:"beginTransformFeedbackQuery",value:function(){return this.begin(35976)}},{key:"getTimestamp",value:function(){i.a.beginQuery(this,this.onComplete,this.onError);try{this.gl.queryCounter(this.handle,d)}catch(e){i.a.rejectQuery(this,'Timer queries require "EXT_disjoint_timer_query" extension')}return this}},{key:"begin",value:function(e){i.a.beginQuery(this,this.onComplete,this.onError),this.target=e;try{this.gl.beginQuery(this.target,this.handle)}catch(e){i.a.rejectQuery(this,"Query not supported")}return this}},{key:"end",value:function(){return this.target&&(this.ext.endQuery(this.target),this.target=null),this}},{key:"cancel",value:function(){return this.end(),i.a.cancelQuery(this),this}},{key:"isResultAvailable",value:function(){return this.gl.getQueryParameter(this.handle,34919)}},{key:"getResult",value:function(){var e=this.gl.getQueryParameter(this.handle,34918);return Number.isFinite(e)?e/1e6:0}},{key:"_createHandle",value:function(){return t.isSupported(this.gl)?this.gl.createQuery():null}},{key:"_deleteHandle",value:function(){i.a.deleteQuery(this),this.gl.deleteQuery(this.handle)}}],[{key:"poll",value:function(e){i.a.poll(e)}}]),t}(r.a);t.a=h,i.a.setInvalidator({queryType:h,errorMessage:"Disjoint GPU operation invalidated timer queries",checkInvalid:function(e){return e.getParameter(36795)}})},function(e,t,n){"use strict";var r=n(38),i=n(7),o=n(30),a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n.i(i.g)(e);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return Object.seal(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,null,[{key:"isSupported",value:function(e){return n.i(i.b)(e)}},{key:"isHandle",value:function(e){return this.gl.isSampler(this.handle)}}]),a(t,[{key:"bind",value:function(e){return this.gl.bindSampler(e,this.handle),this}},{key:"unbind",value:function(e){return this.gl.bindSampler(e,null),this}},{key:"_createHandle",value:function(){return this.gl.createSampler()}},{key:"_deleteHandle",value:function(){this.gl.deleteSampler(this.handle)}},{key:"_getParameter",value:function(e){return this.gl.getSamplerParameter(this.handle,e)}},{key:"_setParameter",value:function(e,t){switch(e){case r.a.TEXTURE_MIN_LOD:case r.a.TEXTURE_MAX_LOD:this.gl.samplerParameterf(this.handle,e,t);break;default:this.gl.samplerParameteri(this.handle,e,t)}return this}}]),t}(o.a);t.a=s},function(e,t,n){"use strict";var r=n(25),i=n(62),o=n(1),a=n.n(o),s=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=[r.d.TEXTURE_CUBE_MAP_POSITIVE_X,r.d.TEXTURE_CUBE_MAP_NEGATIVE_X,r.d.TEXTURE_CUBE_MAP_POSITIVE_Y,r.d.TEXTURE_CUBE_MAP_NEGATIVE_Y,r.d.TEXTURE_CUBE_MAP_POSITIVE_Z,r.d.TEXTURE_CUBE_MAP_NEGATIVE_Z],f=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,t);var i=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},n,{target:r.d.TEXTURE_CUBE_MAP})));return i.initialize(n),Object.seal(i),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,n=void 0===t?r.d.RGBA:t,i=e.mipmaps,o=void 0===i||i,s=e.width,u=void 0===s?1:s,c=e.height,l=void 0===c?1:c,f=e.type,d=void 0===f?r.d.UNSIGNED_BYTE:f,h=e.dataFormat,p=this._deduceParameters({format:n,type:d,dataFormat:h});d=p.type,h=p.dataFormat;var v=this._deduceImageSize({data:e[r.d.TEXTURE_CUBE_MAP_POSITIVE_X],width:u,height:l});u=v.width,l=v.height,a()(u===l),this.setCubeMapImageData(e),o&&this.generateMipmap(e),this.opts=e}},{key:"subImage",value:function(e){var t=e.face,n=e.data,r=e.x,i=void 0===r?0:r,o=e.y,a=void 0===o?0:o,s=e.mipmapLevel,u=void 0===s?0:s;return this._subImage({target:t,data:n,x:i,y:a,mipmapLevel:u})}},{key:"setCubeMapImageData",value:function(e){var t=e.width,n=e.height,i=e.pixels,o=e.data,a=e.border,s=void 0===a?0:a,u=e.format,c=void 0===u?r.d.RGBA:u,f=e.type,d=void 0===f?r.d.UNSIGNED_BYTE:f,h=(e.generateMipmap,this.gl);if(i=i||o,this.bind(),this.width||this.height){var p=!0,v=!1,g=void 0;try{for(var y,_=l[Symbol.iterator]();!(p=(y=_.next()).done);p=!0){var m=y.value;h.texImage2D(m,0,c,t,n,s,c,d,i[m])}}catch(e){v=!0,g=e}finally{try{!p&&_.return&&_.return()}finally{if(v)throw g}}}else{var b=!0,E=!1,w=void 0;try{for(var P,S=l[Symbol.iterator]();!(b=(P=S.next()).done);b=!0){var T=P.value;h.texImage2D(T,0,c,c,d,i[T])}}catch(e){E=!0,w=e}finally{try{!b&&S.return&&S.return()}finally{if(E)throw w}}}}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.index;return void 0!==t&&this.gl.activeTexture(r.d.TEXTURE0+t),this.gl.bindTexture(r.d.TEXTURE_CUBE_MAP,this.handle),t}},{key:"unbind",value:function(){return this.gl.bindTexture(r.d.TEXTURE_CUBE_MAP,null),this}}]),t}(i.a);t.a=f,f.FACES=l},function(e,t,n){"use strict";t.b=function(e){switch(e.drawMode){case r.a.POINTS:return r.a.POINTS;case r.a.LINES:case r.a.LINE_STRIP:case r.a.LINE_LOOP:return r.a.LINES;case r.a.TRIANGLES:case r.a.TRIANGLE_STRIP:case r.a.TRIANGLE_FAN:return r.a.TRIANGLES;default:return s()(!1),0}};var r=n(25),i=n(30),o=n(7),a=n(1),s=n.n(a),u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=35982,d=36386,h=function(e){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,t),n.i(o.g)(e);var i=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.buffers={},Object.seal(i),i.initialize(r),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,null,[{key:"isSupported",value:function(e){return n.i(o.b)(e)}},{key:"isHandle",value:function(e){return this.gl.isTransformFeedback(this.handle)}}]),u(t,[{key:"initialize",value:function(e){var t=e.buffers,n=void 0===t?{}:t,r=e.varyingMap,i=void 0===r?{}:r;this.bindBuffers(n,{clear:!0,varyingMap:i})}},{key:"bindBuffers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clear,r=void 0!==n&&n,i=t.varyingMap,o=void 0===i?{}:i;for(var a in r&&(this._unbindBuffers(),this.buffers={}),e){var u=e[a],c=Number.isFinite(Number(a))?Number(a):o[a];s()(Number.isFinite(c)),this.buffers[c]=u}}},{key:"begin",value:function(e){return this._bindBuffers(),this.gl.bindTransformFeedback(d,this.handle),this.gl.beginTransformFeedback(e),this}},{key:"pause",value:function(){return this.gl.bindTransformFeedback(d,this.handle),this.gl.pauseTransformFeedback(),this.gl.bindTransformFeedback(d,null),this._unbindBuffers(),this}},{key:"resume",value:function(){return this._bindBuffers(),this.gl.bindTransformFeedback(d,this.handle),this.gl.resumeTransformFeedback(),this}},{key:"end",value:function(){return this.gl.bindTransformFeedback(d,this.handle),this.gl.endTransformFeedback(),this.gl.bindTransformFeedback(d,null),this._unbindBuffers(),this}},{key:"bindBuffer",value:function(e){var t=e.index,n=e.buffer,r=e.offset,i=void 0===r?0:r,o=e.size;return n.unbind(),this.gl.bindTransformFeedback(d,this.handle),void 0===o?this.gl.bindBufferBase(f,t,n.handle):this.gl.bindBufferRange(f,t,n.handle,i,o),this}},{key:"unbindBuffer",value:function(e){var t=e.index;return this.gl.bindTransformFeedback(d,this.handle),this.gl.bindBufferBase(f,t,null),this}},{key:"_bindBuffers",value:function(){for(var e in this.buffers)this.bindBuffer({buffer:this.buffers[e],index:Number(e)})}},{key:"_unbindBuffers",value:function(){for(var e in this.buffers)this.unbindBuffer({buffer:this.buffers[e],index:Number(e)})}},{key:"_createHandle",value:function(){return this.gl.createTransformFeedback()}},{key:"_deleteHandle",value:function(){this.gl.deleteTransformFeedback(this.handle)}}]),t}(i.a);t.a=h},function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Assertion failed. "+t)}},function(e,t,n){"use strict";var r=n(112),i=n(31),o=n(280),a=n(113),s=n(281),u=n(277),c=n(569),l=n.n(c),f=n(570),d=n.n(f),h=n(571),p=n.n(h),v=n(102),g=n.n(v),y=n(234),_=n.n(y),m=n(76),b=n.n(m),E=n(574),w=n.n(E),P=n(156),S=n.n(P),T=n(75),A=n.n(T),x=n(157),O=n.n(x),R=n(235),C=n.n(R),M=n(158),k=n.n(M),L=n(573),I=n.n(L),N=n(77),F=n.n(N),j=n(78),D=n.n(j),B=n(602),U=n.n(B),G=n(615),V=n.n(G),z=n(103),W=n.n(z),X=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function H(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var K=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],Z=[0,0,0,0],q=function(e){function t(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];H(this,t);var i=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return Array.isArray(n[0])&&1===arguments.length?i.copy(n[0]):i.identity(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),X(t,[{key:"setRowMajor",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:0,s=7<arguments.length&&void 0!==arguments[7]?arguments[7]:0,u=8<arguments.length&&void 0!==arguments[8]?arguments[8]:0,c=9<arguments.length&&void 0!==arguments[9]?arguments[9]:0,l=10<arguments.length&&void 0!==arguments[10]?arguments[10]:1,f=11<arguments.length&&void 0!==arguments[11]?arguments[11]:0,d=12<arguments.length&&void 0!==arguments[12]?arguments[12]:0,h=13<arguments.length&&void 0!==arguments[13]?arguments[13]:0,p=14<arguments.length&&void 0!==arguments[14]?arguments[14]:0,v=15<arguments.length&&void 0!==arguments[15]?arguments[15]:1;return this.set(e,i,u,d,t,o,c,h,n,a,l,p,r,s,f,v)}},{key:"setColumnMajor",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:0,s=7<arguments.length&&void 0!==arguments[7]?arguments[7]:0,u=8<arguments.length&&void 0!==arguments[8]?arguments[8]:0,c=9<arguments.length&&void 0!==arguments[9]?arguments[9]:0,l=10<arguments.length&&void 0!==arguments[10]?arguments[10]:1,f=11<arguments.length&&void 0!==arguments[11]?arguments[11]:0,d=12<arguments.length&&void 0!==arguments[12]?arguments[12]:0,h=13<arguments.length&&void 0!==arguments[13]?arguments[13]:0,p=14<arguments.length&&void 0!==arguments[14]?arguments[14]:0,v=15<arguments.length&&void 0!==arguments[15]?arguments[15]:1;return this.set(e,t,n,r,i,o,a,s,u,c,l,f,d,h,p,v)}},{key:"set",value:function(e,t,n,r,i,o,a,s,u,c,l,f,d,h,p,v){return this[0]=e,this[1]=t,this[2]=n,this[3]=r,this[4]=i,this[5]=o,this[6]=a,this[7]=s,this[8]=u,this[9]=c,this[10]=l,this[11]=f,this[12]=d,this[13]=h,this[14]=p,this[15]=v,this.check(),this}},{key:"determinant",value:function(){return l()(this)}},{key:"identity",value:function(){for(var e=0;e<K.length;++e)this[e]=K[e];return this.check(),this}},{key:"fromQuaternion",value:function(e){return d()(this,e),this.check(),this}},{key:"frustum",value:function(e){var t=e.left,n=e.right,r=e.bottom,i=e.top,o=e.near,a=e.far;return p()(this,t,n,r,i,o,a),this.check(),this}},{key:"lookAt",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.eye,n=e.center,r=void 0===n?[0,0,0]:n,i=e.up,o=void 0===i?[0,1,0]:i;return g()(this,t,r,o),this.check(),this}},{key:"ortho",value:function(e){var t=e.left,n=e.right,r=e.bottom,i=e.top,o=e.near,a=void 0===o?.1:o,s=e.far,u=void 0===s?500:s;return _()(this,t,n,r,i,a,u),this.check(),this}},{key:"perspective",value:function(){var e=Math.PI,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t.fov,r=void 0===n?45*e/180:n,i=t.aspect,o=void 0===i?1:i,a=t.near,s=void 0===a?.1:a,u=t.far,c=void 0===u?500:u;if(r>2*e)throw Error("radians");return b()(this,r,o,s,c),this.check(),this}},{key:"transpose",value:function(){return w()(this,this),this.check(),this}},{key:"invert",value:function(){return S()(this,this),this.check(),this}},{key:"multiplyLeft",value:function(e){return A()(this,e,this),this.check(),this}},{key:"multiplyRight",value:function(e){return A()(this,this,e),this.check(),this}},{key:"rotateX",value:function(e){return O()(this,this,e),this.check(),this}},{key:"rotateY",value:function(e){return C()(this,this,e),this.check(),this}},{key:"rotateZ",value:function(e){return k()(this,this,e),this.check(),this}},{key:"rotateXYZ",value:function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,3),n=t[0],r=t[1],i=t[2];return this.rotateX(n).rotateY(r).rotateZ(i)}},{key:"rotateAxis",value:function(e,t){return I()(this,this,e,t),this.check(),this}},{key:"scale",value:function(e){return F()(this,this,e),this.check(),this}},{key:"translate",value:function(e){return D()(this,this,e),this.check(),this}},{key:"transformVector2",value:function(e,t){return t=t||new o.a,U()(t,e,this),n.i(u.a)(n.i(o.b)(t)),t}},{key:"transformVector3",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new a.a;return t=t||new a.a,V()(t,e,this),n.i(u.a)(n.i(a.b)(t)),t}},{key:"transformVector4",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new s.a;return t=t||new s.a,W()(t,e,this),n.i(u.a)(n.i(s.b)(t)),t}},{key:"transformVector",value:function(e,t){switch(e.length){case 2:return this.transformVector2(e,t);case 3:return this.transformVector3(e,t);case 4:return this.transformVector4(e,t);default:throw new Error("Illegal vector")}}},{key:"transformDirection",value:function(e,t){switch(e.length){case 2:W()(Z,[e[0],e[1],0,0],this),(t=t||new o.a)[0]=Z[0],t[1]=Z[1];break;case 3:W()(Z,[e[0],e[1],e[2],0],this),(t=t||new a.a)[0]=Z[0],t[1]=Z[1],t[2]=Z[2];break;case 4:n.i(u.a)(0===e[3]),t=t||new s.a,W()(t,e,this);break;default:throw new Error("Illegal vector")}return t}},{key:"transformPoint",value:function(e,t){switch(e.length){case 2:t=t||new o.a,W()(t,[e[0],e[1],0,1],this),t.length=2,n.i(u.a)(n.i(o.b)(t));break;case 3:t=t||new a.a,W()(t,[e[0],e[1],e[2],1],this),t.length=3,n.i(u.a)(n.i(a.b)(t));break;case 4:n.i(u.a)(0!==e[3]),t=t||new s.a,W()(t,e,this),n.i(u.a)(n.i(s.b)(t));break;default:throw new Error("Illegal vector")}return t}},{key:"ELEMENTS",get:function(){return 16}},{key:"m00",get:function(){return this[0]},set:function(e){return this[0]=n.i(i.g)(e)}},{key:"m01",get:function(){return this[4]},set:function(e){return this[4]=n.i(i.g)(e)}},{key:"m02",get:function(){return this[8]},set:function(e){return this[8]=n.i(i.g)(e)}},{key:"m03",get:function(){return this[12]},set:function(e){return this[12]=n.i(i.g)(e)}},{key:"m10",get:function(){return this[1]},set:function(e){return this[1]=n.i(i.g)(e)}},{key:"m11",get:function(){return this[5]},set:function(e){return this[5]=n.i(i.g)(e)}},{key:"m12",get:function(){return this[9]},set:function(e){return this[9]=n.i(i.g)(e)}},{key:"m13",get:function(){return this[13]},set:function(e){return this[13]=n.i(i.g)(e)}},{key:"m20",get:function(){return this[2]},set:function(e){return this[2]=n.i(i.g)(e)}},{key:"m21",get:function(){return this[6]},set:function(e){return this[6]=n.i(i.g)(e)}},{key:"m22",get:function(){return this[10]},set:function(e){return this[10]=n.i(i.g)(e)}},{key:"m23",get:function(){return this[14]},set:function(e){return this[14]=n.i(i.g)(e)}},{key:"m30",get:function(){return this[3]},set:function(e){return this[3]=n.i(i.g)(e)}},{key:"m31",get:function(){return this[7]},set:function(e){return this[7]=n.i(i.g)(e)}},{key:"m32",get:function(){return this[11]},set:function(e){return this[11]=n.i(i.g)(e)}},{key:"m33",get:function(){return this[15]},set:function(e){return this[15]=n.i(i.g)(e)}}]),t}(r.a);t.a=q},function(e,t,n){"use strict";var r=n(112),i=n(31),o=n(579),a=n.n(o),s=n(580),u=n.n(s),c=n(582),l=n.n(c),f=n(592),d=n.n(f),h=n(578),p=n.n(h),v=n(588),g=n.n(v),y=n(575),_=n.n(y),m=n(576),b=n.n(m),E=n(577),w=n.n(E),P=n(581),S=n.n(P),T=n(583),A=n.n(T),x=n(584),O=n.n(x),R=n(236),C=n.n(R),M=n(585),k=n.n(M),L=n(586),I=n.n(L),N=n(587),F=n.n(N),j=n(589),D=n.n(j),B=n(590),U=n.n(B),G=n(237),V=n.n(G),z=n(591),W=n.n(z),X=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function H(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var K=[0,0,0,1],Z=function(e){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1;H(this,t);var o=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return Array.isArray(e)&&1===arguments.length?o.copy(e):o.set(e,n,r,i),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),X(t,[{key:"fromMatrix3",value:function(e){return a()(this,e),this.check(),this}},{key:"fromValues",value:function(e,t,n,r){return this.set(e,t,n,r)}},{key:"identity",value:function(){return u()(this),this.check(),this}},{key:"length",value:function(){return l()(this)}},{key:"squaredLength",value:function(){return d()(this)}},{key:"dot",value:function(e,t){if(void 0!==t)throw new Error("Quaternion.dot only takes one argument");return p()(this,e)}},{key:"rotationTo",value:function(e,t){return g()(this,e,t),this.check(),this}},{key:"add",value:function(e,t){if(void 0!==t)throw new Error("Quaternion.add only takes one argument");return _()(this,e),this.check(),this}},{key:"calculateW",value:function(){return b()(this,this),this.check(),this}},{key:"conjugate",value:function(){return w()(this,this),this.check(),this}},{key:"invert",value:function(){return S()(this,this),this.check(),this}},{key:"lerp",value:function(e,t,n){return A()(this,e,t,n),this.check(),this}},{key:"multiply",value:function(e,t){if(void 0!==t)throw new Error("Quaternion.multiply only takes one argument");return O()(this,this,t),this.check(),this}},{key:"normalize",value:function(){return C()(this,this),this.check(),this}},{key:"rotateX",value:function(e){return k()(this,this,e),this.check(),this}},{key:"rotateY",value:function(e){return I()(this,this,e),this.check(),this}},{key:"rotateZ",value:function(e){return F()(this,this,e),this.check(),this}},{key:"scale",value:function(e){return D()(this,this,e),this.check(),this}},{key:"set",value:function(e,t,n,r){return U()(this,e,t,n,r),this.check(),this}},{key:"setAxisAngle",value:function(e,t){return V()(this,e,t),this.check(),this}},{key:"slerp",value:function(e){var t=e.start,n=void 0===t?K:t,r=e.target,i=e.ratio;return W()(this,n,r,i),this.check(),this}},{key:"ELEMENTS",get:function(){return 4}},{key:"x",get:function(){return this[0]},set:function(e){return this[0]=n.i(i.g)(e)}},{key:"y",get:function(){return this[1]},set:function(e){return this[1]=n.i(i.g)(e)}},{key:"z",get:function(){return this[2]},set:function(e){return this[2]=n.i(i.g)(e)}},{key:"w",get:function(){return this[3]},set:function(e){return this[3]=n.i(i.g)(e)}}]),t}(r.a);t.a=Z},function(e,t,n){"use strict";t.b=function(e){var t=Number.isFinite;return 2===e.length&&t(e[0])&&t(e[1])};var r=n(170),i=n(31),o=n(600),a=n.n(o),s=n(159),u=n.n(s),c=n(601),l=n.n(c),f=n(596),d=n.n(f),h=n(594),p=n.n(h),v=n(598),g=n.n(v),y=n(599),_=n.n(y),m=n(160),b=n.n(m),E=n(597),w=n.n(E),P=n(595),S=n.n(P),T=n(593),A=n.n(T),x=n(238),O=n.n(x),R=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var k=function(e){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;C(this,t);var r=M(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return Array.isArray(e)&&1===arguments.length?r.copy(e):r.set(e,n),r}var r=Math.atan2;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),R(t,[{key:"set",value:function(e,t){return a()(this,e,t),this.check(),this}},{key:"add",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,c=t[Symbol.iterator]();!(r=(a=c.next()).done);r=!0)s=a.value,u()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw o}}return this}},{key:"subtract",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,l()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check(),this}},{key:"multiply",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,d()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check(),this}},{key:"divide",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,p()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check(),this}},{key:"scale",value:function(e){return Number.isFinite(e)&&g()(this,this,e),this.check(),this}},{key:"scaleAndAdd",value:function(e,t){return _()(this,this,e,t),this.check(),this}},{key:"negate",value:function(){return b()(this,this),this.check(),this}},{key:"normalize",value:function(){return w()(this,this),this.check(),this}},{key:"dot",value:function(e){return S()(this,e)}},{key:"cross",value:function(e){return A()(this,this,e),this.check(),this}},{key:"lerp",value:function(e,t){return O()(this,this,e,t),this.check(),this}},{key:"horizontalAngle",value:function(){return r(this.y,this.x)}},{key:"verticalAngle",value:function(){return r(this.x,this.y)}},{key:"operation",value:function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,[this,this].concat(n)),this.check(),this}},{key:"ELEMENTS",get:function(){return 2}},{key:"x",get:function(){return this[0]},set:function(e){return this[0]=n.i(i.g)(e)}},{key:"y",get:function(){return this[1]},set:function(e){return this[1]=n.i(i.g)(e)}}]),t}(r.a);t.a=k},function(e,t,n){"use strict";t.b=function(e){var t=Number.isFinite;return 4===e.length&&t(e[0])&&t(e[1])&&t(e[2])&&t(e[3])};var r=n(170),i=n(31),o=n(248),a=n.n(o),s=n(616),u=n.n(s),c=n(243),l=n.n(c),f=n(623),d=n.n(f),h=n(246),p=n.n(h),v=n(617),g=n.n(v),y=n(161),_=n.n(y),m=n(621),b=n.n(m),E=n(620),w=n.n(E),P=n(618),S=n.n(P),T=n(247),A=n.n(T),x=n(244),O=n.n(x),R=n(245),C=n.n(R),M=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var I=function(e){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;k(this,t);var o=L(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return Array.isArray(e)&&1===arguments.length?o.copy(e):o.set(e,n,r,i),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),M(t,[{key:"set",value:function(e,t,n,r){return a()(this,e,t,n,r),this.check(),this}},{key:"distance",value:function(e){return u()(e)}},{key:"add",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,l()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check(),this}},{key:"subtract",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,d()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check(),this}},{key:"multiply",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,p()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check(),this}},{key:"divide",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)s=a.value,g()(this,this,s)}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return this.check(),this}},{key:"scale",value:function(e){return _()(this,this,e),this.check(),this}},{key:"scaleAndAdd",value:function(e,t){return b()(this,this,e,t),this.check(),this}},{key:"negate",value:function(){return w()(this,this),this.check(),this}},{key:"inverse",value:function(){return S()(this,this),this.check(),this}},{key:"normalize",value:function(){return A()(this,this),this.check(),this}},{key:"dot",value:function(e){return O()(this,e)}},{key:"lerp",value:function(e,t){return C()(this,this,e,t),this.check(),this}},{key:"ELEMENTS",get:function(){return 4}},{key:"x",get:function(){return this[0]},set:function(e){return this[0]=n.i(i.g)(e)}},{key:"y",get:function(){return this[1]},set:function(e){return this[1]=n.i(i.g)(e)}},{key:"z",get:function(){return this[2]},set:function(e){return this[2]=n.i(i.g)(e)}},{key:"w",get:function(){return this[3]},set:function(e){return this[3]=n.i(i.g)(e)}}]),t}(r.a);t.a=I},function(e,t,n){(function(t,n){var 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},i="object"!==(void 0===t?"undefined":r(t))||"[object process]"!==String(t)||t.browser,o="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"";e.exports={window:"undefined"!=typeof window?window:n,global:void 0!==n?n:window,document:"undefined"!=typeof document?document:{},isBrowser:i,userAgent:o}}).call(t,n(26),n(47))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(282),i=(n.n(r),n(677)),o=void 0;r.isBrowser&&(o=n(624)),o&&(n.i(i.a)(o.PointerEventInput),n.i(i.b)(o.MouseInput));var a=o?o.Manager:function(e){var t={},n=function(){return t};return t.get=function(){return null},t.set=n,t.on=n,t.off=n,t.destroy=n,t.emit=n,t};t.b=o},function(e,t,n){"use strict";(function(t){if("production"!==t.env.NODE_ENV)var r=n(101),i=n(155),o=n(172),a={};e.exports=function(e,n,s,u,c){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var f;try{r("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",u||"React class",s,l,typeof e[l]),f=e[l](n,l,u,s,null,o)}catch(e){f=e}if(i(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",s,l,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=c?c():"";i(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"")}}}}).call(t,n(26))},function(e,t,n){"use strict";t.a=function(e){var t=e.width,n=e.height,o=e.bounds,a=e.padding,s=void 0===a?0:a,u=e.offset,c=void 0===u?[0,0]:u,l=i(o,2),f=i(l[0],2),d=f[0],h=f[1],p=i(l[1],2),v=p[0],g=p[1],y=new r.a({width:t,height:n,longitude:0,latitude:0,zoom:0}),_=y.project([d,g]),m=y.project([v,h]),b=[Math.abs(m[0]-_[0]),Math.abs(m[1]-_[1])],E=[(m[0]+_[0])/2,(m[1]+_[1])/2],w=(t-2*s-2*Math.abs(c[0]))/b[0],P=(n-2*s-2*Math.abs(c[1]))/b[1],S=y.unproject(E),T=y.zoom+Math.log2(Math.abs(Math.min(w,P)));return{longitude:S[0],latitude:S[1],zoom:T}};var r=n(81),i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.experimental=t.DeckGL=t.default=t.GeoJsonLayer=t.PolygonLayer=t.PathLayer=t.HexagonCellLayer=t.HexagonLayer=t.GridCellLayer=t.GridLayer=t.ScreenGridLayer=t.ScatterplotLayer=t.PointCloudLayer=t.LineLayer=t.IconLayer=t.ArcLayer=t.lighting=t.project64=t.project=t.OrthographicViewport=t.PerspectiveViewport=t.WebMercatorViewport=t.Viewport=t.CompositeLayer=t.Layer=t.AttributeManager=t.LayerManager=t.COORDINATE_SYSTEM=void 0;var r=n(13);Object.defineProperty(t,"COORDINATE_SYSTEM",{enumerable:!0,get:function(){return r.COORDINATE_SYSTEM}}),Object.defineProperty(t,"LayerManager",{enumerable:!0,get:function(){return r.LayerManager}}),Object.defineProperty(t,"AttributeManager",{enumerable:!0,get:function(){return r.AttributeManager}}),Object.defineProperty(t,"Layer",{enumerable:!0,get:function(){return r.Layer}}),Object.defineProperty(t,"CompositeLayer",{enumerable:!0,get:function(){return r.CompositeLayer}}),Object.defineProperty(t,"Viewport",{enumerable:!0,get:function(){return r.Viewport}}),Object.defineProperty(t,"WebMercatorViewport",{enumerable:!0,get:function(){return r.WebMercatorViewport}}),Object.defineProperty(t,"PerspectiveViewport",{enumerable:!0,get:function(){return r.PerspectiveViewport}}),Object.defineProperty(t,"OrthographicViewport",{enumerable:!0,get:function(){return r.OrthographicViewport}}),Object.defineProperty(t,"project",{enumerable:!0,get:function(){return r.project}}),Object.defineProperty(t,"project64",{enumerable:!0,get:function(){return r.project64}}),Object.defineProperty(t,"lighting",{enumerable:!0,get:function(){return r.lighting}});var i=n(309);Object.defineProperty(t,"ArcLayer",{enumerable:!0,get:function(){return i.ArcLayer}}),Object.defineProperty(t,"IconLayer",{enumerable:!0,get:function(){return i.IconLayer}}),Object.defineProperty(t,"LineLayer",{enumerable:!0,get:function(){return i.LineLayer}}),Object.defineProperty(t,"PointCloudLayer",{enumerable:!0,get:function(){return i.PointCloudLayer}}),Object.defineProperty(t,"ScatterplotLayer",{enumerable:!0,get:function(){return i.ScatterplotLayer}}),Object.defineProperty(t,"ScreenGridLayer",{enumerable:!0,get:function(){return i.ScreenGridLayer}}),Object.defineProperty(t,"GridLayer",{enumerable:!0,get:function(){return i.GridLayer}}),Object.defineProperty(t,"GridCellLayer",{enumerable:!0,get:function(){return i.GridCellLayer}}),Object.defineProperty(t,"HexagonLayer",{enumerable:!0,get:function(){return i.HexagonLayer}}),Object.defineProperty(t,"HexagonCellLayer",{enumerable:!0,get:function(){return i.HexagonCellLayer}}),Object.defineProperty(t,"PathLayer",{enumerable:!0,get:function(){return i.PathLayer}}),Object.defineProperty(t,"PolygonLayer",{enumerable:!0,get:function(){return i.PolygonLayer}}),Object.defineProperty(t,"GeoJsonLayer",{enumerable:!0,get:function(){return i.GeoJsonLayer}});var o=n(362);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s(o).default}}),Object.defineProperty(t,"DeckGL",{enumerable:!0,get:function(){return o.DeckGL}});var a=s(n(359));function s(e){return e&&e.__esModule?e:{default:e}}var u={},c=r.experimental.ViewState,l=r.experimental.FirstPersonState,f=r.experimental.OrbitState,d=r.experimental.MapState,h=r.experimental.Controller,p=r.experimental.FirstPersonController,v=r.experimental.FirstPersonViewport,g=r.experimental.OrbitViewport,y=r.experimental.ThirdPersonViewport,_=r.experimental.TRANSITION_EVENTS,m=r.experimental.LinearInterpolator,b=r.experimental.ViewportFlyToInterpolator,E=r.experimental.DeckGLJS,w=r.experimental.MapControllerJS,P=r.experimental.EffectManager,S=r.experimental.Effect;Object.assign(u,{ViewState:c,FirstPersonState:l,OrbitState:f,MapState:d,Controller:h,FirstPersonController:p,FirstPersonViewport:v,OrbitViewport:g,ThirdPersonViewport:y,TRANSITION_EVENTS:_,LinearInterpolator:m,ViewportFlyToInterpolator:b,DeckGLJS:E,MapControllerJS:w,EffectManager:P,Effect:S});var T=r.experimental.TransitionManager,A=r.experimental.extractViewportFrom,x=r.experimental.BinSorter,O=r.experimental.linearScale,R=r.experimental.getLinearScale,C=r.experimental.quantizeScale,M=r.experimental.getQuantizeScale,k=r.experimental.clamp,L=r.experimental.defaultColorRange,I=r.experimental.log,N=r.experimental.get,F=r.experimental.count,j=r.experimental.flatten,D=r.experimental.countVertices,B=r.experimental.flattenVertices,U=r.experimental.fillArray,G=r.experimental.enable64bitSupport,V=r.experimental.fp64ify,z=r.experimental.fp64LowPart;Object.assign(u,{TransitionManager:T,extractViewportFrom:A,BinSorter:x,linearScale:O,getLinearScale:R,quantizeScale:C,getQuantizeScale:M,clamp:k,defaultColorRange:L,log:I,get:N,count:F,flatten:j,countVertices:D,flattenVertices:B,fillArray:U,enable64bitSupport:G,fp64ify:V,fp64LowPart:z}),Object.assign(u,{ReflectionEffect:a.default}),Object.assign(u,{MapController:o.MapController,OrbitController:o.OrbitController,ViewportController:o.ViewportController}),t.experimental=u},function(e,t,n){"use strict";(function(e){if(n(566),n(366),n(367),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");function t(e,t,n){e[t]||Object.defineProperty(e,t,{writable:!0,configurable:!0,value:n})}e._babelPolyfill=!0,t(String.prototype,"padLeft","".padStart),t(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach((function(e){[][e]&&t(Array,e,Function.call.bind([][e]))}))}).call(t,n(47))},function(e,t,n){"use strict";n(287);var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(286));"undefined"!=typeof window&&(window.DeckGL=r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME arc-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME arc-layer-vertex-shader-64\n\nattribute vec3 positions;\nattribute vec4 instanceSourceColors;\nattribute vec4 instanceTargetColors;\n\nattribute vec4 instancePositions;\nattribute vec4 instancePositions64Low;\n\nattribute vec3 instancePickingColors;\n\nuniform float numSegments;\nuniform float strokeWidth;\nuniform float opacity;\n\nvarying vec4 vColor;\n\nvec2 paraboloid_fp64(vec2 source[2], vec2 target[2], float ratio) {\n\n vec2 x[2];\n vec2_mix_fp64(source, target, ratio, x);\n vec2 center[2];\n vec2_mix_fp64(source, target, 0.5, center);\n\n vec2 dSourceCenter = vec2_distance_fp64(source, center);\n vec2 dXCenter = vec2_distance_fp64(x, center);\n return mul_fp64(sum_fp64(dSourceCenter, dXCenter), sub_fp64(dSourceCenter, dXCenter));\n}\n\n// offset vector by strokeWidth pixels\n// offset_direction is -1 (left) or 1 (right)\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n vec2 offset_screenspace = dir_screenspace * offset_direction * strokeWidth / 2.0;\n vec2 offset_clipspace = project_pixel_to_clipspace(offset_screenspace).xy;\n\n return offset_clipspace;\n}\n\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (numSegments - 1.0));\n}\n\nvoid get_pos_fp64(vec2 source[2], vec2 target[2], float segmentRatio, out vec2 position[4]) {\n\n vec2 vertex_height = paraboloid_fp64(source, target, segmentRatio);\n\n vec2 position_temp[2];\n\n vec2_mix_fp64(source, target, segmentRatio, position_temp);\n\n position[0] = position_temp[0];\n position[1] = position_temp[1];\n\n if (vertex_height.x < 0.0 || (vertex_height.x == 0.0 && vertex_height.y <= 0.0)) {\n vertex_height = vec2(0.0, 0.0);\n }\n\n position[2] = sqrt_fp64(vertex_height);\n position[3] = vec2(1.0, 0.0);\n}\n\nvoid main(void) {\n vec4 instanceSourcePositions64 = vec4(instancePositions.x,\n instancePositions64Low.x, instancePositions.y, instancePositions64Low.y);\n vec4 instanceTargetPositions64 = vec4(instancePositions.z,\n instancePositions64Low.z, instancePositions.w, instancePositions64Low.w);\n\n vec2 projected_source_coord[2];\n vec2 projected_target_coord[2];\n\n project_position_fp64(instanceSourcePositions64, projected_source_coord);\n project_position_fp64(instanceTargetPositions64, projected_target_coord);\n\n float segmentIndex = positions.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n\n // if it's the first point, use next - current as direction\n // otherwise use current - prev\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir);\n\n vec2 curr_pos_modelspace[4];\n\n get_pos_fp64(projected_source_coord, projected_target_coord, segmentRatio,\n curr_pos_modelspace);\n\n vec2 next_pos_modelspace[4];\n\n get_pos_fp64(projected_source_coord, projected_target_coord, nextSegmentRatio,\n next_pos_modelspace);\n\n vec4 curr_pos_clipspace = project_to_clipspace_fp64(curr_pos_modelspace);\n vec4 next_pos_clipspace = project_to_clipspace_fp64(next_pos_modelspace);\n\n vec2 offset = getExtrusionOffset(next_pos_clipspace.xy - curr_pos_clipspace.xy, positions.y);\n\n gl_Position = curr_pos_clipspace + vec4(offset, 0.0, 0.0);\n\n vec4 color = mix(instanceSourceColors, instanceTargetColors, segmentRatio) / 255.;\n vColor = vec4(color.rgb, color.a * opacity);\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME arc-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec4 instanceSourceColors;\nattribute vec4 instanceTargetColors;\nattribute vec4 instancePositions;\nattribute vec3 instancePickingColors;\n\nuniform float numSegments;\nuniform float strokeWidth;\nuniform float opacity;\n\nvarying vec4 vColor;\n\nfloat paraboloid(vec2 source, vec2 target, float ratio) {\n\n vec2 x = mix(source, target, ratio);\n vec2 center = mix(source, target, 0.5);\n\n float dSourceCenter = distance(source, center);\n float dXCenter = distance(x, center);\n return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter);\n}\n\n// offset vector by strokeWidth pixels\n// offset_direction is -1 (left) or 1 (right)\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n vec2 offset_screenspace = dir_screenspace * offset_direction * strokeWidth / 2.0;\n vec2 offset_clipspace = project_pixel_to_clipspace(offset_screenspace).xy;\n\n return offset_clipspace;\n}\n\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (numSegments - 1.0));\n}\n\nvec3 getPos(vec2 source, vec2 target, float segmentRatio) {\n float vertex_height = paraboloid(source, target, segmentRatio);\n\n return vec3(\n mix(source, target, segmentRatio),\n sqrt(max(0.0, vertex_height))\n );\n}\n\nvoid main(void) {\n vec2 source = project_position(instancePositions.xy);\n vec2 target = project_position(instancePositions.zw);\n\n float segmentIndex = positions.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n // if it's the first point, use next - current as direction\n // otherwise use current - prev\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir);\n\n vec3 currPos = getPos(source, target, segmentRatio);\n vec3 nextPos = getPos(source, target, nextSegmentRatio);\n vec4 curr = project_to_clipspace(vec4(currPos, 1.0));\n vec4 next = project_to_clipspace(vec4(nextPos, 1.0));\n\n // extrude\n vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, positions.y);\n gl_Position = curr + vec4(offset, 0.0, 0.0);\n\n vec4 color = mix(instanceSourceColors, instanceTargetColors, segmentRatio) / 255.;\n vColor = vec4(color.rgb, color.a * opacity);\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(13),a=n(12),s=l(n(291)),u=l(n(290)),c=l(n(289));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=o.experimental.fp64LowPart,p=o.experimental.enable64bitSupport,v=[0,0,0,255],g={strokeWidth:1,fp64:!1,getSourcePosition:function(e){return e.sourcePosition},getTargetPosition:function(e){return e.targetPosition},getSourceColor:function(e){return e.color||v},getTargetColor:function(e){return e.color||v}},y=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getShaders",value:function(){return p(this.props)?{vs:u.default,fs:c.default,modules:["project64","picking"]}:{vs:s.default,fs:c.default,modules:["picking"]}}},{key:"initializeState",value:function(){this.getAttributeManager().addInstanced({instancePositions:{size:4,transition:!0,accessor:["getSourcePosition","getTargetPosition"],update:this.calculateInstancePositions},instanceSourceColors:{size:4,type:a.GL.UNSIGNED_BYTE,transition:!0,accessor:"getSourceColor",update:this.calculateInstanceSourceColors},instanceTargetColors:{size:4,type:a.GL.UNSIGNED_BYTE,transition:!0,accessor:"getTargetColor",update:this.calculateInstanceTargetColors}})}},{key:"updateAttribute",value:function(e){var t=e.props,n=e.oldProps;if(e.changeFlags,t.fp64!==n.fp64){var r=this.getAttributeManager();r.invalidateAll(),t.fp64&&t.coordinateSystem===o.COORDINATE_SYSTEM.LNGLAT?r.addInstanced({instancePositions64Low:{size:4,accessor:["getSourcePosition","getTargetPosition"],update:this.calculateInstancePositions64Low}}):r.remove(["instancePositions64Low"])}}},{key:"updateState",value:function(e){var n=e.props,r=e.oldProps,o=e.changeFlags;if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateState",this).call(this,{props:n,oldProps:r,changeFlags:o}),n.fp64!==r.fp64){var a=this.context.gl;this.setState({model:this._getModel(a)})}this.updateAttribute({props:n,oldProps:r,changeFlags:o})}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props.strokeWidth;this.state.model.render(Object.assign({},t,{strokeWidth:n}))}},{key:"_getModel",value:function(e){for(var t=[],n=0;n<50;n++)t=t.concat([n,-1,0,n,1,0]);var r=new a.Model(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new a.Geometry({drawMode:a.GL.TRIANGLE_STRIP,attributes:{positions:new Float32Array(t)}}),isInstanced:!0,shaderCache:this.context.shaderCache}));return r.setUniforms({numSegments:50}),r}},{key:"calculateInstancePositions",value:function(e){var t=this.props,n=t.data,r=t.getSourcePosition,i=t.getTargetPosition,o=e.value,a=e.size,s=0,u=!0,c=!1,l=void 0;try{for(var f,d=n[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var h=f.value,p=r(h),v=i(h);o[s+0]=p[0],o[s+1]=p[1],o[s+2]=v[0],o[s+3]=v[1],s+=a}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}}},{key:"calculateInstancePositions64Low",value:function(e){var t=this.props,n=t.data,r=t.getSourcePosition,i=t.getTargetPosition,o=e.value,a=e.size,s=0,u=!0,c=!1,l=void 0;try{for(var f,d=n[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var p=f.value,v=r(p),g=i(p);o[s+0]=h(v[0]),o[s+1]=h(v[1]),o[s+2]=h(g[0]),o[s+3]=h(g[1]),s+=a}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}}},{key:"calculateInstanceSourceColors",value:function(e){var t=this.props,n=t.data,r=t.getSourceColor,i=e.value,o=e.size,a=0,s=!0,u=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=r(l.value);i[a+0]=d[0],i[a+1]=d[1],i[a+2]=d[2],i[a+3]=isNaN(d[3])?255:d[3],a+=o}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}},{key:"calculateInstanceTargetColors",value:function(e){var t=this.props,n=t.data,r=t.getTargetColor,i=e.value,o=e.size,a=0,s=!0,u=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=r(l.value);i[a+0]=d[0],i[a+1]=d[1],i[a+2]=d[2],i[a+3]=isNaN(d[3])?255:d[3],a+=o}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}}]),t}(o.Layer);t.default=y,y.layerName="ArcLayer",y.defaultProps=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(13),o=c(n(176)),a=c(n(119)),s=c(n(177)),u=n(294);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=i.experimental.get,h=[0,0,0,255],p=[0,0,0,255],v={stroked:!0,filled:!0,extruded:!1,wireframe:!1,lineWidthScale:1,lineWidthMinPixels:0,lineWidthMaxPixels:Number.MAX_SAFE_INTEGER,lineJointRounded:!1,lineMiterLimit:4,elevationScale:1,pointRadiusScale:1,pointRadiusMinPixels:0,pointRadiusMaxPixels:Number.MAX_SAFE_INTEGER,fp64:!1,getLineColor:function(e){return d(e,"properties.lineColor")||h},getFillColor:function(e){return d(e,"properties.fillColor")||p},getRadius:function(e){return d(e,"properties.radius")||d(e,"properties.size")||1},getLineWidth:function(e){return d(e,"properties.lineWidth")||1},getElevation:function(e){return d(e,"properties.elevation")||1e3},subLayers:{PointLayer:o.default,LineLayer:a.default,PolygonLayer:s.default},lightSettings:{lightsPosition:[-122.45,37.75,8e3,-122,38,5e3],ambientRatio:.05,diffuseRatio:.6,specularRatio:.8,lightsStrength:[2,0,0,0],numberOfLights:2}},g=function(e){return e.geometry.coordinates},y=function(e){function t(){return l(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"initializeState",value:function(){this.state={features:{}}}},{key:"updateState",value:function(e){if(e.oldProps,e.props,e.changeFlags.dataChanged){var t=this.props.data,n=(0,u.getGeojsonFeatures)(t);this.state.features=(0,u.separateGeojsonFeatures)(n)}}},{key:"getPickingInfo",value:function(e){var t=e.info;return Object.assign(t,{object:t.object&&t.object.feature||t.object})}},{key:"renderLayers",value:function(){var e=this.state.features,t=e.pointFeatures,n=e.lineFeatures,r=e.polygonFeatures,i=e.polygonOutlineFeatures,o=this.props,a=o.stroked,s=o.filled,u=o.extruded,c=o.wireframe,l=o.subLayers,f=o.lightSettings,d=this.props,h=d.lineWidthScale,p=d.lineWidthMinPixels,v=d.lineWidthMaxPixels,y=d.lineJointRounded,_=d.lineMiterLimit,m=d.pointRadiusScale,b=d.pointRadiusMinPixels,E=d.pointRadiusMaxPixels,w=d.elevationScale,P=d.fp64,S=this.props,T=S.getLineColor,A=S.getFillColor,x=S.getRadius,O=S.getLineWidth,R=S.getElevation,C=S.updateTriggers,M=t&&t.length>0,k=n&&n.length>0,L=i&&i.length>0,I=r&&r.length>0,N=s&&I&&new l.PolygonLayer(this.getSubLayerProps({id:"polygon-fill",updateTriggers:{getElevation:C.getElevation,getColor:C.getFillColor}}),{data:r,fp64:P,extruded:u,elevationScale:w,wireframe:!1,lightSettings:f,getPolygon:g,getElevation:R,getColor:A});return[!u&&N,c&&u&&I&&new l.PolygonLayer(this.getSubLayerProps({id:"polygon-wireframe",updateTriggers:{getElevation:C.getElevation,getColor:C.getLineColor}}),{data:r,fp64:P,extruded:u,elevationScale:w,wireframe:!0,getPolygon:g,getElevation:R,getColor:T}),!u&&a&&L&&new l.LineLayer(this.getSubLayerProps({id:"polygon-outline",updateTriggers:{getColor:C.getLineColor,getWidth:C.getLineWidth}}),{data:i,fp64:P,widthScale:h,widthMinPixels:p,widthMaxPixels:v,rounded:y,miterLimit:_,getPath:g,getColor:T,getWidth:O}),k&&new l.LineLayer(this.getSubLayerProps({id:"line-paths",updateTriggers:{getColor:C.getLineColor,getWidth:C.getLineWidth}}),{data:n,fp64:P,widthScale:h,widthMinPixels:p,widthMaxPixels:v,rounded:y,miterLimit:_,getPath:g,getColor:T,getWidth:O}),M&&new l.PointLayer(this.getSubLayerProps({id:"points",updateTriggers:{getColor:C.getFillColor,getRadius:C.getRadius}}),{data:t,fp64:P,radiusScale:m,radiusMinPixels:b,radiusMaxPixels:E,getPosition:g,getColor:A,getRadius:x}),u&&N]}}]),t}(i.CompositeLayer);t.default=y,y.layerName="GeoJsonLayer",y.defaultProps=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGeojsonFeatures=function(e){if(Array.isArray(e))return e;switch((0,i.default)(e.type,"GeoJSON does not have type"),e.type){case"GeometryCollection":return(0,i.default)(Array.isArray(e.geometries),"GeoJSON does not have geometries array"),e.geometries.map((function(e){return{geometry:e}}));case"Feature":return[e];case"FeatureCollection":return(0,i.default)(Array.isArray(e.features),"GeoJSON does not have features array"),e.features;default:return[{geometry:e}]}},t.separateGeojsonFeatures=function(e){var t=[],n=[],r=[],a=[];return e.forEach((function(e){(0,i.default)(e&&e.geometry,"GeoJSON does not have geometry");var s=e.geometry,u=s.type,c=s.coordinates,l=e.properties;switch(function(e,t){var n=o[e];for((0,i.default)(n,"Unknown GeoJSON type "+e);t&&--n>0;)t=t[0];(0,i.default)(t&&Number.isFinite(t[0]),e+" coordinates are malformed")}(u,c),u){case"Point":t.push(e);break;case"MultiPoint":c.forEach((function(n){t.push({geometry:{coordinates:n},properties:l,feature:e})}));break;case"LineString":n.push(e);break;case"MultiLineString":c.forEach((function(t){n.push({geometry:{coordinates:t},properties:l,feature:e})}));break;case"Polygon":r.push(e),c.forEach((function(t){a.push({geometry:{coordinates:t},properties:l,feature:e})}));break;case"MultiPolygon":c.forEach((function(t){r.push({geometry:{coordinates:t},properties:l,feature:e}),t.forEach((function(t){a.push({geometry:{coordinates:t},properties:l,feature:e})}))}))}})),{pointFeatures:t,lineFeatures:n,polygonFeatures:r,polygonOutlineFeatures:a}};var r,i=(r=n(1))&&r.__esModule?r:{default:r},o={Point:1,MultiPoint:2,LineString:2,MultiLineString:3,Polygon:3,MultiPolygon:4}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME grid-cell-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME grid-cell-layer-vertex-shader-64\n\nattribute vec3 positions;\nattribute vec3 normals;\n\nattribute vec4 instancePositions;\nattribute vec2 instancePositions64xyLow;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\n// Custom uniforms\nuniform float extruded;\nuniform float cellSize;\nuniform float coverage;\nuniform float opacity;\nuniform float elevationScale;\n\n// A magic number to scale elevation so that 1 unit approximate to 1 meter\n#define ELEVATION_SCALE 0.8\n\n// Result\nvarying vec4 vColor;\n\nvoid main(void) {\n vec4 instancePositions64xy = vec4(\n instancePositions.x,\n instancePositions64xyLow.x,\n instancePositions.y,\n instancePositions64xyLow.y);\n\n vec2 projected_coord_xy[2];\n project_position_fp64(instancePositions64xy, projected_coord_xy);\n\n // if ahpha == 0.0 or z < 0.0, do not render element\n float noRender = float(instanceColors.a == 0.0 || instancePositions.w < 0.0);\n float finalCellSize = cellSize * mix(1.0, 0.0, noRender);\n\n projected_coord_xy[0] = sum_fp64(projected_coord_xy[0],\n vec2((positions.x * coverage + 1.0) * finalCellSize / 2.0, 0.0));\n projected_coord_xy[1] = sum_fp64(projected_coord_xy[1],\n vec2((positions.y * coverage - 1.0) * finalCellSize / 2.0, 0.0));\n\n float elevation = 0.0;\n\n if (extruded > 0.5) {\n elevation = project_scale(instancePositions.w * (positions.z + 1.0) *\n ELEVATION_SCALE * elevationScale) + 1.0;\n }\n\n vec2 vertex_pos_modelspace[4];\n vertex_pos_modelspace[0] = projected_coord_xy[0];\n vertex_pos_modelspace[1] = projected_coord_xy[1];\n vertex_pos_modelspace[2] = vec2(elevation, 0.0);\n vertex_pos_modelspace[3] = vec2(1.0, 0.0);\n\n vec4 position_worldspace = vec4(\n vertex_pos_modelspace[0].x, vertex_pos_modelspace[1].x,\n vertex_pos_modelspace[2].x, vertex_pos_modelspace[3].x);\n\n gl_Position = project_to_clipspace_fp64(vertex_pos_modelspace);\n\n float lightWeight = 1.0;\n\n if (extruded > 0.5) {\n lightWeight = getLightWeight(\n position_worldspace.xyz, // the w component is always 1.0\n normals\n );\n }\n\n vec3 lightWeightedColor = lightWeight * instanceColors.rgb;\n vec4 color = vec4(lightWeightedColor, instanceColors.a * opacity) / 255.0;\n vColor = color;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME grid-cell-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 normals;\n\nattribute vec4 instancePositions;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\n// Custom uniforms\nuniform float extruded;\nuniform float cellSize;\nuniform float coverage;\nuniform float opacity;\nuniform float elevationScale;\n\n// A magic number to scale elevation so that 1 unit approximate to 1 meter\n#define ELEVATION_SCALE 0.8\n\n// Result\nvarying vec4 vColor;\n\nvoid main(void) {\n\n vec2 topLeftPos = project_position(instancePositions.xy);\n\n // if ahpha == 0.0 or z < 0.0, do not render element\n float noRender = float(instanceColors.a == 0.0 || instancePositions.w < 0.0);\n float finalCellSize = cellSize * mix(1.0, 0.0, noRender);\n\n // cube gemoetry vertics are between -1 to 1, scale and transform it to between 0, 1\n vec2 pos = topLeftPos + vec2(\n (positions.x * coverage + 1.0) / 2.0 * finalCellSize,\n (positions.y * coverage - 1.0) / 2.0 * finalCellSize);\n\n float elevation = 0.0;\n\n if (extruded > 0.5) {\n elevation = project_scale(instancePositions.w * (positions.z + 1.0) *\n ELEVATION_SCALE * elevationScale);\n }\n\n // extrude positions\n vec3 extrudedPosition = vec3(pos.xy, elevation + 1.0);\n vec4 position_worldspace = vec4(extrudedPosition, 1.0);\n gl_Position = project_to_clipspace(position_worldspace);\n\n float lightWeight = 1.0;\n\n if (extruded > 0.5) {\n lightWeight = getLightWeight(\n position_worldspace.xyz, // the w component is always 1.0\n normals\n );\n }\n\n vec3 lightWeightedColor = lightWeight * instanceColors.rgb;\n vec4 color = vec4(lightWeightedColor, instanceColors.a * opacity) / 255.0;\n vColor = color;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointToDensityGridData=function(e,t,n){var r=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=arguments[2],r=1/0,o=-1/0,a=void 0,s=0;s<e.length;s++)a=n(e[s])[1],Number.isFinite(a)&&(r=a<r?a:r,o=a>o?a:o);var u=i(t,(r+o)/2);if(u.xOffset<=0||u.yOffset<=0)return{gridHash:{},gridOffset:u};var c=e.reduce((function(e,t){var r=n(t)[1],i=n(t)[0];if(!Number.isFinite(r)||!Number.isFinite(i))return e;var o=Math.floor((r+90)/u.yOffset)+"-"+Math.floor((i+180)/u.xOffset);return e[o]=e[o]||{count:0,points:[]},e[o].count+=1,e[o].points.push(t),e}),{});return{gridHash:c,gridOffset:u}}(e,t,n),o=r.gridHash,a=r.gridOffset,s=function(e,t){return Object.keys(e).reduce((function(n,r,i){var o=r.split("-"),a=parseInt(o[0],10),s=parseInt(o[1],10);return n.push(Object.assign({index:i,position:[t.xOffset*s-180,t.yOffset*a-90]},e[r])),n}),[])}(o,a);return{gridOffset:a,layerData:s}};var r=6378e3;function i(e,t){var n;return{yOffset:e/r*(180/Math.PI),xOffset:(n=t,e/r*(180/Math.PI)/Math.cos(n*Math.PI/180))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(13),s=(r=n(174))&&r.__esModule?r:{default:r},u=n(298);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=a.experimental.BinSorter,d=a.experimental.defaultColorRange,h=a.experimental.getQuantizeScale,p=a.experimental.getLinearScale;function v(){}var g={colorDomain:null,colorRange:d,getColorValue:function(e){return e.length},lowerPercentile:0,upperPercentile:100,onSetColorDomain:v,elevationDomain:null,elevationRange:[0,1e3],getElevationValue:function(e){return e.length},elevationLowerPercentile:0,elevationUpperPercentile:100,elevationScale:1,onSetElevationDomain:v,cellSize:1e3,coverage:1,getPosition:function(e){return e.position},extruded:!1,fp64:!1,lightSettings:{lightsPosition:[-122.45,37.75,8e3,-122,38,5e3],ambientRatio:.05,diffuseRatio:.6,specularRatio:.8,lightsStrength:[2,0,0,0],numberOfLights:2}},y=function(e){function t(){return c(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"initializeState",value:function(){this.state={layerData:[],sortedColorBins:null,sortedElevationBins:null,colorValueDomain:null,elevationValueDomain:null,colorScaleFunc:v,elevationScaleFunc:v,dimensionUpdaters:this.getDimensionUpdaters()}}},{key:"updateState",value:function(e){var t=this,n=e.oldProps,r=e.props,i=e.changeFlags,o=this.getDimensionChanges(n,r);i.dataChanged||this.needsReProjectPoints(n,r)?this.getLayerData():o&&o.forEach((function(e){return"function"==typeof e&&e.apply(t)}))}},{key:"needsReProjectPoints",value:function(e,t){return e.cellSize!==t.cellSize}},{key:"getDimensionUpdaters",value:function(){return{getColor:[{id:"value",triggers:["getColorValue"],updater:this.getSortedColorBins},{id:"domain",triggers:["lowerPercentile","upperPercentile"],updater:this.getColorValueDomain},{id:"scaleFunc",triggers:["colorDomain","colorRange"],updater:this.getColorScale}],getElevation:[{id:"value",triggers:["getElevationValue"],updater:this.getSortedElevationBins},{id:"domain",triggers:["elevationLowerPercentile","elevationUpperPercentile"],updater:this.getElevationValueDomain},{id:"scaleFunc",triggers:["elevationDomain","elevationRange"],updater:this.getElevationScale}]}}},{key:"getDimensionChanges",value:function(e,t){var n=this.state.dimensionUpdaters,r=[];for(var i in n){var o=n[i].find((function(n){return n.triggers.some((function(n){return e[n]!==t[n]}))}));o&&r.push(o.updater)}return r.length?r:null}},{key:"getPickingInfo",value:function(e){var t=e.info,n=this.state,r=n.sortedColorBins,i=n.sortedElevationBins,o=null;if(t.picked&&t.index>-1){var a=this.state.layerData[t.index],s=r.binMap[a.index]&&r.binMap[a.index].value,u=i.binMap[a.index]&&i.binMap[a.index].value;o=Object.assign({colorValue:s,elevationValue:u},a)}return Object.assign(t,{picked:Boolean(o),object:o})}},{key:"getUpdateTriggers",value:function(){var e=this,t=this.state.dimensionUpdaters,n={},r=function(r){n[r]={};var i=!0,o=!1,a=void 0;try{for(var s,u=t[r][Symbol.iterator]();!(i=(s=u.next()).done);i=!0)s.value.triggers.forEach((function(t){n[r][t]=e.props[t]}))}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}};for(var i in t)r(i);return n}},{key:"getLayerData",value:function(){var e=this.props,t=e.data,n=e.cellSize,r=e.getPosition,i=(0,u.pointToDensityGridData)(t,n,r).layerData;this.setState({layerData:i}),this.getSortedBins()}},{key:"getValueDomain",value:function(){this.getColorValueDomain(),this.getElevationValueDomain()}},{key:"getSortedBins",value:function(){this.getSortedColorBins(),this.getSortedElevationBins()}},{key:"getSortedColorBins",value:function(){var e=this.props.getColorValue,t=new f(this.state.layerData||[],e);this.setState({sortedColorBins:t}),this.getColorValueDomain()}},{key:"getSortedElevationBins",value:function(){var e=this.props.getElevationValue,t=new f(this.state.layerData||[],e);this.setState({sortedElevationBins:t}),this.getElevationValueDomain()}},{key:"getColorValueDomain",value:function(){var e=this.props,t=e.lowerPercentile,n=e.upperPercentile,r=e.onSetColorDomain;this.state.colorValueDomain=this.state.sortedColorBins.getValueRange([t,n]),"function"==typeof r&&r(this.state.colorValueDomain),this.getColorScale()}},{key:"getElevationValueDomain",value:function(){var e=this.props,t=e.elevationLowerPercentile,n=e.elevationUpperPercentile,r=e.onSetElevationDomain;this.state.elevationValueDomain=this.state.sortedElevationBins.getValueRange([t,n]),"function"==typeof r&&r(this.state.elevationValueDomain),this.getElevationScale()}},{key:"getColorScale",value:function(){var e=this.props.colorRange,t=this.props.colorDomain||this.state.colorValueDomain;this.state.colorScaleFunc=h(t,e)}},{key:"getElevationScale",value:function(){var e=this.props.elevationRange,t=this.props.elevationDomain||this.state.elevationValueDomain;this.state.elevationScaleFunc=p(t,e)}},{key:"_onGetSublayerColor",value:function(e){var t=this.state,n=t.sortedColorBins,r=t.colorScaleFunc,i=t.colorValueDomain,o=n.binMap[e.index]&&n.binMap[e.index].value,a=this.props.colorDomain||i,s=o>=a[0]&&o<=a[a.length-1]?r(o):[0,0,0,0];return s[3]=Number.isFinite(s[3])?s[3]:255,s}},{key:"_onGetSublayerElevation",value:function(e){var t=this.state,n=t.sortedElevationBins,r=t.elevationScaleFunc,i=t.elevationValueDomain,o=n.binMap[e.index]&&n.binMap[e.index].value,a=this.props.elevationDomain||i;return o>=a[0]&&o<=a[a.length-1]?r(o):-1}},{key:"getSubLayerProps",value:function(){var e=this.props,n=e.elevationScale,r=e.fp64,i=e.extruded,a=e.cellSize,s=e.coverage,u=e.lightSettings;return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getSubLayerProps",this).call(this,{id:"grid-cell",data:this.state.layerData,fp64:r,cellSize:a,coverage:s,lightSettings:u,elevationScale:n,extruded:i,getColor:this._onGetSublayerColor.bind(this),getElevation:this._onGetSublayerElevation.bind(this),updateTriggers:this.getUpdateTriggers()})}},{key:"getSubLayerClass",value:function(){return s.default}},{key:"renderLayers",value:function(){return new(this.getSubLayerClass())(this.getSubLayerProps())}}]),t}(a.CompositeLayer);t.default=y,y.layerName="GridLayer",y.defaultProps=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME hexagon-cell-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME hexagon-cell-layer-vertex-shader-64\n\nattribute vec3 positions;\nattribute vec3 normals;\n\nattribute vec3 instancePositions;\nattribute vec2 instancePositions64xyLow;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\n// Custom uniforms\nuniform float opacity;\nuniform float radius;\nuniform float angle;\nuniform float extruded;\nuniform float coverage;\nuniform float elevationScale;\n\n// Result\nvarying vec4 vColor;\n\n// A magic number to scale elevation so that 1 unit approximate to 1 meter.\n#define ELEVATION_SCALE 0.8\n\nvoid main(void) {\n\n // rotate primitive position and normal\n mat2 rotationMatrix = mat2(cos(angle), -sin(angle), sin(angle), cos(angle));\n\n vec2 rPos = rotationMatrix * positions.xz;\n vec2 rNorm = rotationMatrix * normals.xz; // the hexagon cells has y axis as the vertical axis\n\n vec3 rotatedPositions = vec3(rPos.x, positions.y, rPos.y);\n vec3 rotatedNormals = vec3(rNorm.x, rNorm.y, normals.y);\n\n // calculate elevation, if 3d not enabled set to 0\n // cylindar gemoetry height are between -0.5 to 0.5, transform it to between 0, 1\n float elevation = 0.0;\n\n if (extruded > 0.5) {\n elevation = project_scale(instancePositions.z * (positions.y + 0.5) *\n ELEVATION_SCALE * elevationScale);\n }\n\n // if alpha == 0.0 or z < 0.0, do not render element\n float noRender = float(instanceColors.a == 0.0 || instancePositions.z < 0.0);\n float dotRadius = radius * mix(coverage, 0.0, noRender);\n\n // project center of hexagon\n\n vec4 instancePositions64xy = vec4(\n instancePositions.x, instancePositions64xyLow.x,\n instancePositions.y, instancePositions64xyLow.y);\n\n vec2 projected_coord_xy[2];\n project_position_fp64(instancePositions64xy, projected_coord_xy);\n\n vec2 vertex_pos_localspace[4];\n vec4_fp64(vec4(rotatedPositions.xz * dotRadius, 0.0, 1.0), vertex_pos_localspace);\n\n vec2 vertex_pos_modelspace[4];\n vertex_pos_modelspace[0] = sum_fp64(vertex_pos_localspace[0], projected_coord_xy[0]);\n vertex_pos_modelspace[1] = sum_fp64(vertex_pos_localspace[1], projected_coord_xy[1]);\n vertex_pos_modelspace[2] = sum_fp64(vertex_pos_localspace[2], vec2(elevation, 0.0));\n vertex_pos_modelspace[3] = vec2(1.0, 0.0);\n\n vec4 position_worldspace = vec4(\n vertex_pos_modelspace[0].x, vertex_pos_modelspace[1].x,\n vertex_pos_modelspace[2].x, vertex_pos_modelspace[3].x);\n\n gl_Position = project_to_clipspace_fp64(vertex_pos_modelspace);\n\n // Light calculations\n // Worldspace is the linear space after Mercator projection\n\n vec3 normals_worldspace = rotatedNormals;\n\n float lightWeight = 1.0;\n\n if (extruded > 0.5) {\n lightWeight = getLightWeight(\n position_worldspace.xyz, // the w component is always 1.0\n normals_worldspace\n );\n }\n\n vec3 lightWeightedColor = lightWeight * instanceColors.rgb;\n\n // Color: Either opacity-multiplied instance color, or picking color\n vColor = vec4(lightWeightedColor, opacity * instanceColors.a) / 255.0;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="\n#define SHADER_NAME hexagon-cell-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 normals;\n\nattribute vec3 instancePositions;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\n// Custom uniforms\nuniform float opacity;\nuniform float radius;\nuniform float angle;\nuniform float extruded;\nuniform float coverage;\nuniform float elevationScale;\n\n// Result\nvarying vec4 vColor;\n\n// A magic number to scale elevation so that 1 unit approximate to 1 meter.\n#define ELEVATION_SCALE 0.8\n\nvoid main(void) {\n\n // rotate primitive position and normal\n mat2 rotationMatrix = mat2(cos(angle), -sin(angle), sin(angle), cos(angle));\n\n vec2 rPos = rotationMatrix * positions.xz;\n vec2 rNorm = rotationMatrix * normals.xz; // the hexagon cells has y axis as the vertical axis\n\n vec3 rotatedPositions = vec3(rPos.x, positions.y, rPos.y);\n vec3 rotatedNormals = vec3(rNorm.x, rNorm.y, normals.y);\n\n // calculate elevation, if 3d not enabled set to 0\n // cylindar gemoetry height are between -0.5 to 0.5, transform it to between 0, 1\n float elevation = 0.0;\n\n if (extruded > 0.5) {\n elevation = project_scale(instancePositions.z * (positions.y + 0.5) *\n ELEVATION_SCALE * elevationScale);\n }\n\n // if ahpha == 0.0 or z < 0.0, do not render element\n float noRender = float(instanceColors.a == 0.0 || instancePositions.z < 0.0);\n float dotRadius = radius * mix(coverage, 0.0, noRender);\n\n // project center of hexagon\n vec4 centroidPosition = vec4(project_position(instancePositions.xy), elevation, 0.0);\n\n vec4 position_worldspace = centroidPosition + vec4(vec2(rotatedPositions.xz * dotRadius), 0., 1.);\n\n gl_Position = project_to_clipspace(position_worldspace);\n\n // Light calculations\n // Worldspace is the linear space after Mercator projection\n\n vec3 normals_worldspace = rotatedNormals;\n\n float lightWeight = 1.0;\n\n if (extruded > 0.5) {\n lightWeight = getLightWeight(\n position_worldspace.xyz, // the w component is always 1.0\n normals_worldspace\n );\n }\n\n vec3 lightWeightedColor = lightWeight * instanceColors.rgb;\n\n // opacity-multiplied instance color\n vColor = vec4(lightWeightedColor, opacity * instanceColors.a) / 255.0;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointToHexbin=function(e,t){var n=e.data,o=e.radius,a=e.getPosition,s=i(o,t),u=n.map((function(e){return Object.assign({screenCoord:t.projectFlat(a(e))},e)}));return{hexagons:(0,r.hexbin)().radius(s).x((function(e){return e.screenCoord[0]})).y((function(e){return e.screenCoord[1]}))(u).map((function(e,n){return{centroid:t.unprojectFlat([e.x,e.y]),points:e,index:n}}))}},t.getRadiusInPixel=i;var r=n(567);function i(e,t){return e*t.getDistanceScales().pixelsPerMeter[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(13),s=(r=n(175))&&r.__esModule?r:{default:r},u=n(303),c=a.experimental.log,l=a.experimental.BinSorter,f=a.experimental.getQuantizeScale,d=a.experimental.getLinearScale;function h(){}var p={colorDomain:null,colorRange:a.experimental.defaultColorRange,getColorValue:function(e){return e.length},lowerPercentile:0,upperPercentile:100,onSetColorDomain:h,elevationDomain:null,elevationRange:[0,1e3],getElevationValue:function(e){return e.length},elevationLowerPercentile:0,elevationUpperPercentile:100,elevationScale:1,onSetElevationDomain:h,radius:1e3,coverage:1,extruded:!1,hexagonAggregator:u.pointToHexbin,getPosition:function(e){return e.position},fp64:!1,lightSettings:{lightsPosition:[-122.45,37.75,8e3,-122,38,5e3],ambientRatio:.05,diffuseRatio:.6,specularRatio:.8,lightsStrength:[2,0,0,0],numberOfLights:2}},v=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.hexagonAggregator||e.radius||(c.once(0,"HexagonLayer: Default hexagonAggregator requires radius prop to be set, Now using 1000 meter as default"),e.radius=p.radius),Number.isFinite(e.upperPercentile)&&(e.upperPercentile>100||e.upperPercentile<0)&&(c.once(0,"HexagonLayer: upperPercentile should be between 0 and 100. Assign to 100 by default"),e.upperPercentile=p.upperPercentile),Number.isFinite(e.lowerPercentile)&&(e.lowerPercentile>100||e.lowerPercentile<0)&&(c.once(0,"HexagonLayer: lowerPercentile should be between 0 and 100. Assign to 0 by default"),e.lowerPercentile=p.upperPercentile),e.lowerPercentile>=e.upperPercentile&&(c.once(0,"HexagonLayer: lowerPercentile should not be bigger than upperPercentile. Assign to 0 by default"),e.lowerPercentile=p.lowerPercentile),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"initializeState",value:function(){this.state={hexagons:[],hexagonVertices:null,sortedColorBins:null,sortedElevationBins:null,colorValueDomain:null,elevationValueDomain:null,colorScaleFunc:h,elevationScaleFunc:h,dimensionUpdaters:this.getDimensionUpdaters()}}},{key:"updateState",value:function(e){var t=this,n=e.oldProps,r=e.props,i=e.changeFlags,o=this.getDimensionChanges(n,r);i.dataChanged||this.needsReProjectPoints(n,r)?this.getHexagons():o&&o.forEach((function(e){return"function"==typeof e&&e.apply(t)}))}},{key:"needsReProjectPoints",value:function(e,t){return e.radius!==t.radius||e.hexagonAggregator!==t.hexagonAggregator}},{key:"getDimensionUpdaters",value:function(){return{getColor:[{id:"value",triggers:["getColorValue"],updater:this.getSortedColorBins},{id:"domain",triggers:["lowerPercentile","upperPercentile"],updater:this.getColorValueDomain},{id:"scaleFunc",triggers:["colorDomain","colorRange"],updater:this.getColorScale}],getElevation:[{id:"value",triggers:["getElevationValue"],updater:this.getSortedElevationBins},{id:"domain",triggers:["elevationLowerPercentile","elevationUpperPercentile"],updater:this.getElevationValueDomain},{id:"scaleFunc",triggers:["elevationDomain","elevationRange"],updater:this.getElevationScale}]}}},{key:"getDimensionChanges",value:function(e,t){var n=this.state.dimensionUpdaters,r=[];for(var i in n){var o=n[i].find((function(n){return n.triggers.some((function(n){return e[n]!==t[n]}))}));o&&r.push(o.updater)}return r.length?r:null}},{key:"getHexagons",value:function(){var e=this.props.hexagonAggregator,t=this.context.viewport,n=e(this.props,t),r=n.hexagons,i=n.hexagonVertices;this.setState({hexagons:r,hexagonVertices:i}),this.getSortedBins()}},{key:"getPickingInfo",value:function(e){var t=e.info,n=this.state,r=n.sortedColorBins,i=n.sortedElevationBins,o=null;if(t.picked&&t.index>-1){var a=this.state.hexagons[t.index],s=r.binMap[a.index]&&r.binMap[a.index].value,u=i.binMap[a.index]&&i.binMap[a.index].value;o=Object.assign({colorValue:s,elevationValue:u},a)}return Object.assign(t,{picked:Boolean(o),object:o})}},{key:"getUpdateTriggers",value:function(){var e=this,t=this.state.dimensionUpdaters,n={},r=function(r){n[r]={};var i=!0,o=!1,a=void 0;try{for(var s,u=t[r][Symbol.iterator]();!(i=(s=u.next()).done);i=!0)s.value.triggers.forEach((function(t){n[r][t]=e.props[t]}))}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}};for(var i in t)r(i);return n}},{key:"getValueDomain",value:function(){this.getColorValueDomain(),this.getElevationValueDomain()}},{key:"getSortedBins",value:function(){this.getSortedColorBins(),this.getSortedElevationBins()}},{key:"getSortedColorBins",value:function(){var e=this.props.getColorValue,t=new l(this.state.hexagons||[],e);this.setState({sortedColorBins:t}),this.getColorValueDomain()}},{key:"getSortedElevationBins",value:function(){var e=this.props.getElevationValue,t=new l(this.state.hexagons||[],e);this.setState({sortedElevationBins:t}),this.getElevationValueDomain()}},{key:"getColorValueDomain",value:function(){var e=this.props,t=e.lowerPercentile,n=e.upperPercentile,r=e.onSetColorDomain;this.state.colorValueDomain=this.state.sortedColorBins.getValueRange([t,n]),"function"==typeof r&&r(this.state.colorValueDomain),this.getColorScale()}},{key:"getElevationValueDomain",value:function(){var e=this.props,t=e.elevationLowerPercentile,n=e.elevationUpperPercentile,r=e.onSetElevationDomain;this.state.elevationValueDomain=this.state.sortedElevationBins.getValueRange([t,n]),"function"==typeof r&&r(this.state.elevationValueDomain),this.getElevationScale()}},{key:"getColorScale",value:function(){var e=this.props.colorRange,t=this.props.colorDomain||this.state.colorValueDomain;this.state.colorScaleFunc=f(t,e)}},{key:"getElevationScale",value:function(){var e=this.props.elevationRange,t=this.props.elevationDomain||this.state.elevationValueDomain;this.state.elevationScaleFunc=d(t,e)}},{key:"_onGetSublayerColor",value:function(e){var t=this.state,n=t.sortedColorBins,r=t.colorScaleFunc,i=t.colorValueDomain,o=n.binMap[e.index]&&n.binMap[e.index].value,a=this.props.colorDomain||i,s=o>=a[0]&&o<=a[a.length-1]?r(o):[0,0,0,0];return s[3]=Number.isFinite(s[3])?s[3]:255,s}},{key:"_onGetSublayerElevation",value:function(e){var t=this.state,n=t.sortedElevationBins,r=t.elevationScaleFunc,i=t.elevationValueDomain,o=n.binMap[e.index]&&n.binMap[e.index].value,a=this.props.elevationDomain||i;return o>=a[0]&&o<=a[a.length-1]?r(o):-1}},{key:"getSubLayerProps",value:function(){var e=this.props,n=e.radius,r=e.elevationScale,i=e.extruded,a=e.coverage,s=e.lightSettings,u=e.fp64;return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getSubLayerProps",this).call(this,{id:"hexagon-cell",data:this.state.hexagons,fp64:u,hexagonVertices:this.state.hexagonVertices,radius:n,elevationScale:r,angle:Math.PI,extruded:i,coverage:a,lightSettings:s,getColor:this._onGetSublayerColor.bind(this),getElevation:this._onGetSublayerElevation.bind(this),updateTriggers:this.getUpdateTriggers()})}},{key:"getSubLayerClass",value:function(){return s.default}},{key:"renderLayers",value:function(){return new(this.getSubLayerClass())(this.getSubLayerProps())}}]),t}(a.CompositeLayer);t.default=v,v.layerName="HexagonLayer",v.defaultProps=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME icon-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform float opacity;\nuniform sampler2D iconsTexture;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\n\nconst float MIN_ALPHA = 0.05;\n\nvoid main(void) {\n vec4 texColor = texture2D(iconsTexture, vTextureCoords);\n\n // if colorMode == 0, use pixel color from the texture\n // if colorMode == 1 or rendering picking buffer, use texture as transparency mask\n vec3 color = mix(texColor.rgb, vColor.rgb, vColorMode);\n float a = texColor.a * opacity * mix(1.0, vColor.a, vColorMode);\n\n if (a < MIN_ALPHA) {\n discard;\n }\n\n gl_FragColor = vec4(color, a);\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default='#define SHADER_NAME icon-layer-vertex-shader-64\n\nattribute vec2 positions;\n\nattribute vec3 instancePositions;\nattribute vec2 instancePositions64xyLow;\nattribute float instanceSizes;\nattribute float instanceAngles;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute vec4 instanceIconFrames;\nattribute float instanceColorModes;\nattribute vec2 instanceOffsets;\n\nuniform float sizeScale;\nuniform vec2 iconsTextureDim;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\n\nvec2 rotate_by_angle(vec2 vertex, float angle) {\n float angle_radian = angle * PI / 180.0;\n float cos_angle = cos(angle_radian);\n float sin_angle = sin(angle_radian);\n mat2 rotationMatrix = mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\n return rotationMatrix * vertex;\n}\n\nvoid main(void) {\n vec2 iconSize = instanceIconFrames.zw;\n // scale icon height to match instanceSize\n float instanceScale = iconSize.y == 0.0 ? 0.0 : instanceSizes / iconSize.y;\n\n // scale and rotate vertex in "pixel" value and convert back to fraction in clipspace\n vec2 pixelOffset = positions / 2.0 * iconSize + instanceOffsets;\n pixelOffset = rotate_by_angle(pixelOffset, instanceAngles) * sizeScale * instanceScale;\n pixelOffset.y *= -1.0;\n\n vec4 instancePositions64xy = vec4(\n instancePositions.x, instancePositions64xyLow.x,\n instancePositions.y, instancePositions64xyLow.y);\n\n vec2 projected_coord_xy[2];\n project_position_fp64(instancePositions64xy, projected_coord_xy);\n\n vec2 vertex_pos_modelspace[4];\n vertex_pos_modelspace[0] = projected_coord_xy[0];\n vertex_pos_modelspace[1] = projected_coord_xy[1];\n vertex_pos_modelspace[2] = vec2(project_scale(instancePositions.z), 0.0);\n vertex_pos_modelspace[3] = vec2(1.0, 0.0);\n\n gl_Position = project_to_clipspace_fp64(vertex_pos_modelspace);\n gl_Position += project_pixel_to_clipspace(pixelOffset);\n\n vTextureCoords = mix(\n instanceIconFrames.xy,\n instanceIconFrames.xy + iconSize,\n (positions.xy + 1.0) / 2.0\n ) / iconsTextureDim;\n\n vTextureCoords.y = 1.0 - vTextureCoords.y;\n\n vColor = instanceColors / 255.;\n\n vColorMode = instanceColorModes;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default='#define SHADER_NAME icon-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute vec3 instancePositions;\nattribute float instanceSizes;\nattribute float instanceAngles;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute vec4 instanceIconFrames;\nattribute float instanceColorModes;\nattribute vec2 instanceOffsets;\n\nuniform float sizeScale;\nuniform vec2 iconsTextureDim;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\n\nvec2 rotate_by_angle(vec2 vertex, float angle) {\n float angle_radian = angle * PI / 180.0;\n float cos_angle = cos(angle_radian);\n float sin_angle = sin(angle_radian);\n mat2 rotationMatrix = mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\n return rotationMatrix * vertex;\n}\n\nvoid main(void) {\n vec2 iconSize = instanceIconFrames.zw;\n // scale icon height to match instanceSize\n float instanceScale = iconSize.y == 0.0 ? 0.0 : instanceSizes / iconSize.y;\n\n // scale and rotate vertex in "pixel" value and convert back to fraction in clipspace\n vec2 pixelOffset = positions / 2.0 * iconSize + instanceOffsets;\n pixelOffset = rotate_by_angle(pixelOffset, instanceAngles) * sizeScale * instanceScale;\n pixelOffset.y *= -1.0;\n\n vec3 center = project_position(instancePositions);\n gl_Position = project_to_clipspace(vec4(center, 1.0));\n gl_Position += project_pixel_to_clipspace(pixelOffset);\n\n vTextureCoords = mix(\n instanceIconFrames.xy,\n instanceIconFrames.xy + iconSize,\n (positions.xy + 1.0) / 2.0\n ) / iconsTextureDim;\n\n vTextureCoords.y = 1.0 - vTextureCoords.y;\n\n vColor = instanceColors / 255.;\n\n vColorMode = instanceColorModes;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(13),a=n(12),s=l(n(307)),u=l(n(306)),c=l(n(305));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=o.experimental.fp64LowPart,v=o.experimental.enable64bitSupport,g=[0,0,0,255],y=a.GL.LINEAR_MIPMAP_LINEAR,_=a.GL.LINEAR,m={iconAtlas:null,iconMapping:{},sizeScale:1,fp64:!1,getPosition:function(e){return e.position},getIcon:function(e){return e.icon},getColor:function(e){return e.color||g},getSize:function(e){return e.size||1},getAngle:function(e){return e.angle||0}},b=function(e){function t(){return d(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getShaders",value:function(){return v(this.props)?{vs:u.default,fs:c.default,modules:["project64","picking"]}:{vs:s.default,fs:c.default,modules:["picking"]}}},{key:"initializeState",value:function(){this.getAttributeManager().addInstanced({instancePositions:{size:3,transition:!0,accessor:"getPosition",update:this.calculateInstancePositions},instanceSizes:{size:1,transition:!0,accessor:"getSize",update:this.calculateInstanceSizes},instanceOffsets:{size:2,accessor:"getIcon",update:this.calculateInstanceOffsets},instanceIconFrames:{size:4,accessor:"getIcon",update:this.calculateInstanceIconFrames},instanceColorModes:{size:1,type:a.GL.UNSIGNED_BYTE,accessor:"getIcon",update:this.calculateInstanceColorMode},instanceColors:{size:4,type:a.GL.UNSIGNED_BYTE,transition:!0,accessor:"getColor",update:this.calculateInstanceColors},instanceAngles:{size:1,transition:!0,accessor:"getAngle",update:this.calculateInstanceAngles}})}},{key:"updateAttribute",value:function(e){var t=e.props,n=e.oldProps;if(e.changeFlags,t.fp64!==n.fp64){var r=this.getAttributeManager();r.invalidateAll(),t.fp64&&t.coordinateSystem===o.COORDINATE_SYSTEM.LNGLAT?r.addInstanced({instancePositions64xyLow:{size:2,accessor:"getPosition",update:this.calculateInstancePositions64xyLow}}):r.remove(["instancePositions64xyLow"])}}},{key:"updateState",value:function(e){var n=this,r=e.oldProps,o=e.props,s=e.changeFlags;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateState",this).call(this,{props:o,oldProps:r,changeFlags:s});var u,c=o.iconAtlas,l=o.iconMapping;if(r.iconMapping!==l){var d=this.getAttributeManager();d.invalidate("instanceOffsets"),d.invalidate("instanceIconFrames"),d.invalidate("instanceColorModes")}if(r.iconAtlas!==c&&(c instanceof a.Texture2D?(c.setParameters((f(u={},a.GL.TEXTURE_MIN_FILTER,y),f(u,a.GL.TEXTURE_MAG_FILTER,_),u)),this.setState({iconsTexture:c})):"string"==typeof c&&(0,a.loadTextures)(this.context.gl,{urls:[c]}).then((function(e){var t,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,1)[0];r.setParameters((f(t={},a.GL.TEXTURE_MIN_FILTER,y),f(t,a.GL.TEXTURE_MAG_FILTER,_),t)),n.setState({iconsTexture:r})}))),o.fp64!==r.fp64){var h=this.context.gl;this.setState({model:this._getModel(h)})}this.updateAttribute({props:o,oldProps:r,changeFlags:s})}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props.sizeScale,r=this.state.iconsTexture;r&&this.state.model.render(Object.assign({},t,{iconsTexture:r,iconsTextureDim:[r.width,r.height],sizeScale:n}))}},{key:"_getModel",value:function(e){return new a.Model(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new a.Geometry({drawMode:a.GL.TRIANGLE_FAN,attributes:{positions:new Float32Array([-1,-1,0,-1,1,0,1,1,0,1,-1,0])}}),isInstanced:!0,shaderCache:this.context.shaderCache}))}},{key:"calculateInstancePositions",value:function(e){var t=this.props,n=t.data,r=t.getPosition,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=f[0],i[o++]=f[1],i[o++]=f[2]||0}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstancePositions64xyLow",value:function(e){var t=this.props,n=t.data,r=t.getPosition,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=p(f[0]),i[o++]=p(f[1])}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstanceSizes",value:function(e){var t=this.props,n=t.data,r=t.getSize,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;i[o++]=r(f)}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstanceAngles",value:function(e){var t=this.props,n=t.data,r=t.getAngle,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;i[o++]=r(f)}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstanceColors",value:function(e){var t=this.props,n=t.data,r=t.getColor,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=f[0],i[o++]=f[1],i[o++]=f[2],i[o++]=isNaN(f[3])?255:f[3]}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstanceOffsets",value:function(e){var t=this.props,n=t.data,r=t.iconMapping,i=t.getIcon,o=e.value,a=0,s=!0,u=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=r[i(l.value)]||{};o[a++]=d.width/2-d.anchorX||0,o[a++]=d.height/2-d.anchorY||0}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}},{key:"calculateInstanceColorMode",value:function(e){var t=this.props,n=t.data,r=t.iconMapping,i=t.getIcon,o=e.value,a=0,s=!0,u=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=i(l.value),h=r[d]&&r[d].mask;o[a++]=h?1:0}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}},{key:"calculateInstanceIconFrames",value:function(e){var t=this.props,n=t.data,r=t.iconMapping,i=t.getIcon,o=e.value,a=0,s=!0,u=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=r[i(l.value)]||{};o[a++]=d.x||0,o[a++]=d.y||0,o[a++]=d.width||0,o[a++]=d.height||0}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}}]),t}(o.Layer);t.default=b,b.layerName="IconLayer",b.defaultProps=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(292);Object.defineProperty(t,"ArcLayer",{enumerable:!0,get:function(){return g(r).default}});var i=n(308);Object.defineProperty(t,"IconLayer",{enumerable:!0,get:function(){return g(i).default}});var o=n(313);Object.defineProperty(t,"LineLayer",{enumerable:!0,get:function(){return g(o).default}});var a=n(320);Object.defineProperty(t,"PointCloudLayer",{enumerable:!0,get:function(){return g(a).default}});var s=n(176);Object.defineProperty(t,"ScatterplotLayer",{enumerable:!0,get:function(){return g(s).default}});var u=n(327);Object.defineProperty(t,"ScreenGridLayer",{enumerable:!0,get:function(){return g(u).default}});var c=n(299);Object.defineProperty(t,"GridLayer",{enumerable:!0,get:function(){return g(c).default}});var l=n(174);Object.defineProperty(t,"GridCellLayer",{enumerable:!0,get:function(){return g(l).default}});var f=n(304);Object.defineProperty(t,"HexagonLayer",{enumerable:!0,get:function(){return g(f).default}});var d=n(175);Object.defineProperty(t,"HexagonCellLayer",{enumerable:!0,get:function(){return g(d).default}});var h=n(119);Object.defineProperty(t,"PathLayer",{enumerable:!0,get:function(){return g(h).default}});var p=n(321);Object.defineProperty(t,"PolygonLayer",{enumerable:!0,get:function(){return g(p).default}});var v=n(293);function g(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"GeoJsonLayer",{enumerable:!0,get:function(){return g(v).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME line-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME line-layer-vertex-shader-64\n\nattribute vec3 positions;\nattribute vec3 instanceSourcePositions;\nattribute vec3 instanceTargetPositions;\nattribute vec4 instanceSourceTargetPositions64xyLow;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float strokeWidth;\nuniform float opacity;\n\nvarying vec4 vColor;\n\n// offset vector by strokeWidth pixels\n// offset_direction is -1 (left) or 1 (right)\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n vec2 offset_screenspace = dir_screenspace * offset_direction * strokeWidth / 2.0;\n vec2 offset_clipspace = project_pixel_to_clipspace(offset_screenspace).xy;\n\n return offset_clipspace;\n}\n\nvoid main(void) {\n // Position\n vec4 instanceSourcePositions64 = vec4(\n instanceSourcePositions.x, instanceSourceTargetPositions64xyLow.x,\n instanceSourcePositions.y, instanceSourceTargetPositions64xyLow.y);\n\n vec4 instanceTargetPositions64 = vec4(\n instanceTargetPositions.x, instanceSourceTargetPositions64xyLow.z,\n instanceTargetPositions.y, instanceSourceTargetPositions64xyLow.w);\n\n vec2 projected_source_coord[2];\n vec2 projected_target_coord[2];\n\n project_position_fp64(instanceSourcePositions64, projected_source_coord);\n project_position_fp64(instanceTargetPositions64, projected_target_coord);\n\n vec2 source_pos_modelspace[4];\n source_pos_modelspace[0] = projected_source_coord[0];\n source_pos_modelspace[1] = projected_source_coord[1];\n source_pos_modelspace[2] = vec2(project_scale(instanceSourcePositions.z), 0.0);\n source_pos_modelspace[3] = vec2(1.0, 0.0);\n\n vec4 source_pos_clipspace = project_to_clipspace_fp64(source_pos_modelspace);\n\n vec2 target_pos_modelspace[4];\n target_pos_modelspace[0] = projected_target_coord[0];\n target_pos_modelspace[1] = projected_target_coord[1];\n target_pos_modelspace[2] = vec2(project_scale(instanceTargetPositions.z), 0.0);\n target_pos_modelspace[3] = vec2(1.0, 0.0);\n\n vec4 target_pos_clipspace = project_to_clipspace_fp64(target_pos_modelspace);\n\n float segmentIndex = positions.x;\n vec4 p = mix(source_pos_clipspace, target_pos_clipspace, segmentIndex);\n\n vec2 offset = getExtrusionOffset(target_pos_clipspace.xy - source_pos_clipspace.xy, positions.y);\n\n gl_Position = p + vec4(offset, 0.0, 0.0);\n\n // Color\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity) / 255.;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME line-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 instanceSourcePositions;\nattribute vec3 instanceTargetPositions;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float strokeWidth;\nuniform float opacity;\n\nvarying vec4 vColor;\n\n// offset vector by strokeWidth pixels\n// offset_direction is -1 (left) or 1 (right)\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n vec2 offset_screenspace = dir_screenspace * offset_direction * strokeWidth / 2.0;\n vec2 offset_clipspace = project_pixel_to_clipspace(offset_screenspace).xy;\n\n return offset_clipspace;\n}\n\nvoid main(void) {\n // Position\n vec3 sourcePos = project_position(instanceSourcePositions);\n vec3 targetPos = project_position(instanceTargetPositions);\n vec4 source = project_to_clipspace(vec4(sourcePos, 1.0));\n vec4 target = project_to_clipspace(vec4(targetPos, 1.0));\n\n // linear interpolation of source & target to pick right coord\n float segmentIndex = positions.x;\n vec4 p = mix(source, target, segmentIndex);\n\n // extrude\n vec2 offset = getExtrusionOffset(target.xy - source.xy, positions.y);\n gl_Position = p + vec4(offset, 0.0, 0.0);\n\n // Color\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity) / 255.;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(13),a=n(12),s=l(n(312)),u=l(n(311)),c=l(n(310));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=o.experimental.fp64LowPart,p=o.experimental.enable64bitSupport,v=[0,0,0,255],g={strokeWidth:1,fp64:!1,getSourcePosition:function(e){return e.sourcePosition},getTargetPosition:function(e){return e.targetPosition},getColor:function(e){return e.color||v}},y=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getShaders",value:function(){return p(this.props)?{vs:u.default,fs:c.default,modules:["project64","picking"]}:{vs:s.default,fs:c.default,modules:["picking"]}}},{key:"initializeState",value:function(){this.getAttributeManager().addInstanced({instanceSourcePositions:{size:3,transition:!0,accessor:"getSourcePosition",update:this.calculateInstanceSourcePositions},instanceTargetPositions:{size:3,transition:!0,accessor:"getTargetPosition",update:this.calculateInstanceTargetPositions},instanceColors:{size:4,type:a.GL.UNSIGNED_BYTE,transition:!0,accessor:"getColor",update:this.calculateInstanceColors}})}},{key:"updateAttribute",value:function(e){var t=e.props,n=e.oldProps;if(e.changeFlags,t.fp64!==n.fp64){var r=this.getAttributeManager();r.invalidateAll(),t.fp64&&t.coordinateSystem===o.COORDINATE_SYSTEM.LNGLAT?r.addInstanced({instanceSourceTargetPositions64xyLow:{size:4,accessor:["getSourcePosition","getTargetPosition"],update:this.calculateInstanceSourceTargetPositions64xyLow}}):r.remove(["instanceSourceTargetPositions64xyLow"])}}},{key:"updateState",value:function(e){var n=e.props,r=e.oldProps,o=e.changeFlags;if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateState",this).call(this,{props:n,oldProps:r,changeFlags:o}),n.fp64!==r.fp64){var a=this.context.gl;this.setState({model:this._getModel(a)})}this.updateAttribute({props:n,oldProps:r,changeFlags:o})}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props.strokeWidth;this.state.model.render(Object.assign({},t,{strokeWidth:n}))}},{key:"_getModel",value:function(e){return new a.Model(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new a.Geometry({drawMode:a.GL.TRIANGLE_STRIP,attributes:{positions:new Float32Array([0,-1,0,0,1,0,1,-1,0,1,1,0])}}),isInstanced:!0,shaderCache:this.context.shaderCache}))}},{key:"calculateInstanceSourcePositions",value:function(e){var t=this.props,n=t.data,r=t.getSourcePosition,i=e.value,o=e.size,a=0,s=!0,u=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=r(l.value);i[a+0]=d[0],i[a+1]=d[1],i[a+2]=isNaN(d[2])?0:d[2],a+=o}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}},{key:"calculateInstanceTargetPositions",value:function(e){var t=this.props,n=t.data,r=t.getTargetPosition,i=e.value,o=e.size,a=0,s=!0,u=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=r(l.value);i[a+0]=d[0],i[a+1]=d[1],i[a+2]=isNaN(d[2])?0:d[2],a+=o}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}},{key:"calculateInstanceSourceTargetPositions64xyLow",value:function(e){var t=this.props,n=t.data,r=t.getSourcePosition,i=t.getTargetPosition,o=e.value,a=e.size,s=0,u=!0,c=!1,l=void 0;try{for(var f,d=n[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var p=f.value,v=r(p),g=i(p);o[s+0]=h(v[0]),o[s+1]=h(v[1]),o[s+2]=h(g[0]),o[s+3]=h(g[1]),s+=a}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}}},{key:"calculateInstanceColors",value:function(e){var t=this.props,n=t.data,r=t.getColor,i=e.value,o=e.size,a=0,s=!0,u=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=r(l.value);i[a+0]=d[0],i[a+1]=d[1],i[a+2]=d[2],i[a+3]=isNaN(d[3])?255:d[3],a+=o}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}}]),t}(o.Layer);t.default=y,y.layerName="LineLayer",y.defaultProps=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME path-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform float jointType;\nuniform float miterLimit;\nuniform float alignMode;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vDashArray;\nvarying float vPathPosition;\nvarying float vPathLength;\n\n// mod doesn't work correctly for negative numbers\nfloat mod2(float a, float b) {\n return a - floor(a / b) * b;\n}\n\nfloat round(float x) {\n return floor(x + 0.5);\n}\n\n// if given position is in the gap part of the dashed line\n// dashArray.x: solid stroke length, relative to width\n// dashArray.y: gap length, relative to width\n// alignMode:\n// 0 - no adjustment\n// o---- ---- ---- ---- o---- -o---- ---- o\n// 1 - stretch to fit, draw half dash at each end for nicer joints\n// o-- ---- ---- ---- --o-- --o-- ---- --o\nbool dash_isFragInGap() {\n float solidLength = vDashArray.x;\n float gapLength = vDashArray.y;\n\n float unitLength = solidLength + gapLength;\n\n if (unitLength == 0.0) {\n return false;\n }\n\n unitLength = mix(\n unitLength,\n vPathLength / round(vPathLength / unitLength),\n alignMode\n );\n\n float offset = alignMode * solidLength / 2.0;\n\n return gapLength > 0.0 &&\n vPathPosition >= 0.0 &&\n vPathPosition <= vPathLength &&\n mod2(vPathPosition + offset, unitLength) > solidLength;\n}\n\nvoid main(void) {\n // if joint is rounded, test distance from the corner\n if (jointType > 0.0 && vMiterLength > 0.0 && length(vCornerOffset) > 1.0) {\n // Enable to debug joints\n // gl_FragColor = vec4(0., 1., 0., 1.);\n // return;\n discard;\n }\n if (jointType == 0.0 && vMiterLength > miterLimit) {\n // Enable to debug joints\n // gl_FragColor = vec4(0., 0., 1., 1.);\n // return;\n discard;\n }\n if (vColor.a == 0.0 || dash_isFragInGap()) {\n // Enable to debug joints\n // gl_FragColor = vec4(0., 1., 1., 1.);\n // return;\n discard;\n }\n gl_FragColor = vColor;\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="\n#define SHADER_NAME path-layer-vertex-shader\n\nattribute vec3 positions;\n\nattribute vec3 instanceStartPositions;\nattribute vec3 instanceEndPositions;\nattribute vec4 instanceStartEndPositions64xyLow;\nattribute vec3 instanceLeftDeltas;\nattribute vec3 instanceRightDeltas;\nattribute float instanceStrokeWidths;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute vec2 instanceDashArrays;\n\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float jointType;\nuniform float miterLimit;\n\nuniform float opacity;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vDashArray;\nvarying float vPathPosition;\nvarying float vPathLength;\n\nconst float EPSILON = 0.001;\nconst float PIXEL_EPSILON = 0.1;\n\nfloat flipIfTrue(bool flag) {\n return -(float(flag) * 2. - 1.);\n}\n\nvec3 lineJoin(vec2 prevPoint64[2], vec2 currPoint64[2], vec2 nextPoint64[2]) {\n\n float width = clamp(project_scale(instanceStrokeWidths * widthScale),\n widthMinPixels, widthMaxPixels) / 2.0;\n\n vec2 deltaA64[2];\n vec2 deltaB64[2];\n\n vec2_sub_fp64(currPoint64, prevPoint64, deltaA64);\n vec2_sub_fp64(nextPoint64, currPoint64, deltaB64);\n\n vec2 lengthA64 = vec2_length_fp64(deltaA64);\n vec2 lengthB64 = vec2_length_fp64(deltaB64);\n\n vec2 deltaA = vec2(deltaA64[0].x, deltaA64[1].x);\n vec2 deltaB = vec2(deltaB64[0].x, deltaB64[1].x);\n\n float lenA = lengthA64.x;\n float lenB = lengthB64.x;\n\n vec2 offsetVec;\n float offsetScale;\n float offsetDirection;\n\n // when two points are closer than PIXEL_EPSILON in pixels,\n // assume they are the same point to avoid precision issue\n lenA = lenA > PIXEL_EPSILON ? lenA : 0.0;\n lenB = lenB > PIXEL_EPSILON ? lenB : 0.0;\n vec2 dirA = lenA > 0. ? deltaA / lenA : vec2(0.0, 0.0);\n vec2 dirB = lenB > 0. ? deltaB / lenB : vec2(0.0, 0.0);\n\n vec2 perpA = vec2(-dirA.y, dirA.x);\n vec2 perpB = vec2(-dirB.y, dirB.x);\n\n // tangent of the corner\n vec2 tangent = vec2(dirA + dirB);\n tangent = length(tangent) > 0. ? normalize(tangent) : perpA;\n // direction of the corner\n vec2 miterVec = vec2(-tangent.y, tangent.x);\n // width offset from current position\n vec2 perp = mix(perpB, perpA, positions.x);\n float L = mix(lenB, lenA, positions.x);\n\n // cap super sharp angles\n float sinHalfA = abs(dot(miterVec, perp));\n float cosHalfA = abs(dot(dirA, miterVec));\n bool turnsRight = dirA.x * dirB.y > dirA.y * dirB.x;\n\n // relative position to the corner:\n // -1: inside (smaller side of the angle)\n // 0: center\n // 1: outside (bigger side of the angle)\n float cornerPosition = mix(\n flipIfTrue(turnsRight == (positions.y > 0.0)),\n 0.0,\n positions.z\n );\n\n offsetScale = 1.0 / max(sinHalfA, EPSILON);\n\n // do not bevel if line segment is too short\n cornerPosition *= float(cornerPosition <= 0.0 || sinHalfA < min(lenA, lenB) / width * cosHalfA);\n // trim if inside corner extends further than the line segment\n offsetScale = mix(\n offsetScale,\n min(offsetScale, L / width / max(cosHalfA, EPSILON)),\n float(cornerPosition < 0.0)\n );\n\n vMiterLength = mix(\n offsetScale * cornerPosition,\n mix(offsetScale, 0.0, cornerPosition),\n step(0.0, cornerPosition)\n ) - sinHalfA * jointType;\n offsetDirection = mix(\n positions.y,\n mix(\n flipIfTrue(turnsRight),\n positions.y * flipIfTrue(turnsRight == (positions.x == 1.)),\n cornerPosition\n ),\n step(0.0, cornerPosition)\n );\n offsetVec = mix(miterVec, -tangent, step(0.5, cornerPosition));\n offsetScale = mix(offsetScale, 1.0 / max(cosHalfA, 0.001), step(0.5, cornerPosition));\n\n // special treatment for start cap and end cap\n // using a small number as the limit for determining if the lenA or lenB is 0\n float isStartCap = step(lenA, 1.0e-5);\n float isEndCap = step(lenB, 1.0e-5);\n float isCap = max(isStartCap, isEndCap);\n\n // 0: center, 1: side\n cornerPosition = isCap * (1.0 - positions.z);\n\n // start of path: use next - curr\n offsetVec = mix(offsetVec, mix(dirB, perpB, cornerPosition), isStartCap);\n // end of path: use curr - prev\n offsetVec = mix(offsetVec, mix(dirA, perpA, cornerPosition), isEndCap);\n\n // extend out a triangle to envelope the round cap\n offsetScale = mix(\n offsetScale,\n mix(4.0 * jointType, 1.0, cornerPosition),\n isCap\n );\n vMiterLength = mix(vMiterLength, 1.0 - cornerPosition, isCap);\n\n offsetDirection = mix(\n offsetDirection,\n mix(flipIfTrue(isStartCap > 0.), positions.y, cornerPosition),\n isCap\n );\n\n vCornerOffset = offsetVec * offsetDirection * offsetScale;\n\n // Generate variables for dash calculation\n vDashArray = instanceDashArrays;\n vPathLength = L / width;\n float isEnd = positions.x;\n vec2 offsetFromStartOfPath = mix(vCornerOffset, vCornerOffset + deltaA / width, isEnd);\n vec2 dir = mix(dirB, dirA, isEnd);\n vPathPosition = dot(offsetFromStartOfPath, dir);\n\n return vec3(vCornerOffset * width, 0.0);\n}\n\nvoid main() {\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity) / 255.;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n\n float isEnd = positions.x;\n\n // Calculate current position\n vec3 currPosition = mix(instanceStartPositions, instanceEndPositions, isEnd);\n currPosition = project_position(currPosition);\n\n // Calculate current position 64bit\n\n vec2 instanceStartPositions64[2];\n instanceStartPositions64[0] = vec2(instanceStartPositions.x, instanceStartEndPositions64xyLow.x);\n instanceStartPositions64[1] = vec2(instanceStartPositions.y, instanceStartEndPositions64xyLow.y);\n\n vec2 instanceEndPositions64[2];\n instanceEndPositions64[0] = vec2(instanceEndPositions.x, instanceStartEndPositions64xyLow.z);\n instanceEndPositions64[1] = vec2(instanceEndPositions.y, instanceStartEndPositions64xyLow.w);\n\n vec2 tempCurrPosition64[2];\n vec2_mix_fp64(instanceStartPositions64, instanceEndPositions64, isEnd, tempCurrPosition64);\n\n vec4 currPosition64 = vec4(tempCurrPosition64[0].xy, tempCurrPosition64[1].xy);\n\n vec2 projected_curr_position[2];\n project_position_fp64(currPosition64, projected_curr_position);\n float projected_curr_position_z = project_scale(currPosition.z);\n\n // Calculate previous position\n\n vec3 prevPosition = mix(-instanceLeftDeltas, vec3(0.0), isEnd);\n\n // Calculate prev position 64bit\n\n vec2 tempPrevPosition64[2];\n tempPrevPosition64[0] = sum_fp64(vec2(prevPosition.x, 0.0), instanceStartPositions64[0]);\n tempPrevPosition64[1] = sum_fp64(vec2(prevPosition.y, 0.0), instanceStartPositions64[1]);\n\n vec4 prevPosition64 = vec4(tempPrevPosition64[0].xy, tempPrevPosition64[1].xy);\n\n vec2 projected_prev_position[2];\n project_position_fp64(prevPosition64, projected_prev_position);\n\n // Calculate next positions\n vec3 nextPosition = mix(vec3(0.0), instanceRightDeltas, isEnd);\n\n // Calculate next position 64bit\n\n vec2 tempNextPosition64[2];\n tempNextPosition64[0] = sum_fp64(vec2(nextPosition.x, 0.0), instanceEndPositions64[0]);\n tempNextPosition64[1] = sum_fp64(vec2(nextPosition.y, 0.0), instanceEndPositions64[1]);\n\n vec4 nextPosition64 = vec4(tempNextPosition64[0].xy, tempNextPosition64[1].xy);\n\n vec2 projected_next_position[2];\n project_position_fp64(nextPosition64, projected_next_position);\n\n vec3 pos = lineJoin(projected_prev_position, projected_curr_position, projected_next_position);\n vec2 vertex_pos_modelspace[4];\n\n vertex_pos_modelspace[0] = sum_fp64(vec2(pos.x, 0.0), projected_curr_position[0]);\n vertex_pos_modelspace[1] = sum_fp64(vec2(pos.y, 0.0), projected_curr_position[1]);\n vertex_pos_modelspace[2] = vec2(pos.z + projected_curr_position_z, 0.0);\n vertex_pos_modelspace[3] = vec2(1.0, 0.0);\n\n gl_Position = project_to_clipspace_fp64(vertex_pos_modelspace);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME path-layer-vertex-shader-64\n\nattribute vec3 positions;\n\nattribute vec3 instanceStartPositions;\nattribute vec3 instanceEndPositions;\nattribute vec3 instanceLeftDeltas;\nattribute vec3 instanceRightDeltas;\nattribute float instanceStrokeWidths;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute vec2 instanceDashArrays;\n\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float jointType;\nuniform float miterLimit;\n\nuniform float opacity;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vDashArray;\nvarying float vPathPosition;\nvarying float vPathLength;\n\nconst float EPSILON = 0.001;\nconst float PIXEL_EPSILON = 0.1;\n\nfloat flipIfTrue(bool flag) {\n return -(float(flag) * 2. - 1.);\n}\n\n// calculate line join positions\nvec3 lineJoin(\n vec3 prevPoint, vec3 currPoint, vec3 nextPoint,\n float relativePosition, bool isEnd, bool isJoint,\n float width\n) {\n vec2 deltaA = currPoint.xy - prevPoint.xy;\n vec2 deltaB = nextPoint.xy - currPoint.xy;\n\n float lenA = length(deltaA);\n float lenB = length(deltaB);\n\n // when two points are closer than PIXEL_EPSILON in pixels,\n // assume they are the same point to avoid precision issue\n lenA = lenA > PIXEL_EPSILON ? lenA : 0.0;\n lenB = lenB > PIXEL_EPSILON ? lenB : 0.0;\n\n vec2 dirA = lenA > 0. ? normalize(deltaA) : vec2(0.0, 0.0);\n vec2 dirB = lenB > 0. ? normalize(deltaB) : vec2(0.0, 0.0);\n\n vec2 perpA = vec2(-dirA.y, dirA.x);\n vec2 perpB = vec2(-dirB.y, dirB.x);\n\n // tangent of the corner\n vec2 tangent = vec2(dirA + dirB);\n tangent = length(tangent) > 0. ? normalize(tangent) : perpA;\n // direction of the corner\n vec2 miterVec = vec2(-tangent.y, tangent.x);\n // width offset from current position\n vec2 perp = isEnd ? perpA : perpB;\n float L = isEnd ? lenA : lenB;\n\n // cap super sharp angles\n float sinHalfA = abs(dot(miterVec, perp));\n float cosHalfA = abs(dot(dirA, miterVec));\n\n bool turnsRight = dirA.x * dirB.y > dirA.y * dirB.x;\n\n float offsetScale = 1.0 / max(sinHalfA, EPSILON);\n\n float cornerPosition = isJoint ?\n 0.0 :\n flipIfTrue(turnsRight == (relativePosition > 0.0));\n\n // do not bevel if line segment is too short\n cornerPosition *=\n float(cornerPosition <= 0.0 || sinHalfA < min(lenA, lenB) / width * cosHalfA);\n\n // trim if inside corner extends further than the line segment\n if (cornerPosition < 0.0) {\n offsetScale = min(offsetScale, L / width / max(cosHalfA, EPSILON));\n }\n\n vMiterLength = cornerPosition >= 0.0 ?\n mix(offsetScale, 0.0, cornerPosition) :\n offsetScale * cornerPosition;\n vMiterLength -= sinHalfA * jointType;\n\n float offsetDirection = mix(\n positions.y,\n mix(\n flipIfTrue(turnsRight),\n positions.y * flipIfTrue(turnsRight == (positions.x == 1.)),\n cornerPosition\n ),\n step(0.0, cornerPosition)\n );\n\n vec2 offsetVec = mix(miterVec, -tangent, step(0.5, cornerPosition));\n offsetScale = mix(offsetScale, 1.0 / max(cosHalfA, 0.001), step(0.5, cornerPosition));\n\n // special treatment for start cap and end cap\n // TODO - This has an issue. len is always positive because it is length.\n // Step returns zero if -lenA<0, so practically this is a comparison of\n // lenA with zero, with lots of problems because of the -lenA. Can we use EPSILON?\n bool isStartCap = step(0.0, -lenA) > 0.5;\n bool isEndCap = step(0.0, -lenB) > 0.5;\n bool isCap = isStartCap || isEndCap;\n\n // 0: center, 1: side\n cornerPosition = isCap ? (1.0 - positions.z) : 0.;\n\n // start of path: use next - curr\n if (isStartCap) {\n offsetVec = mix(dirB, perpB, cornerPosition);\n }\n\n // end of path: use curr - prev\n if (isEndCap) {\n offsetVec = mix(dirA, perpA, cornerPosition);\n }\n\n // extend out a triangle to envelope the round cap\n if (isCap) {\n offsetScale = mix(4.0 * jointType, 1.0, cornerPosition);\n vMiterLength = 1.0 - cornerPosition;\n offsetDirection = mix(flipIfTrue(isStartCap), positions.y, cornerPosition);\n }\n\n vCornerOffset = offsetVec * offsetDirection * offsetScale;\n\n // Generate variables for dash calculation\n vDashArray = instanceDashArrays;\n vPathLength = L / width;\n // vec2 offsetFromStartOfPath = isEnd ? vCornerOffset + deltaA / width : vCornerOffset;\n vec2 offsetFromStartOfPath = vCornerOffset;\n if (isEnd) {\n offsetFromStartOfPath += deltaA / width;\n }\n vec2 dir = isEnd ? dirA : dirB;\n vPathPosition = dot(offsetFromStartOfPath, dir);\n\n return currPoint + vec3(vCornerOffset * width, 0.0);\n}\n\n// calculate line join positions\n// extract params from attributes and uniforms\nvec3 lineJoin(vec3 prevPoint, vec3 currPoint, vec3 nextPoint) {\n\n // relative position to the corner:\n // -1: inside (smaller side of the angle)\n // 0: center\n // 1: outside (bigger side of the angle)\n\n float relativePosition = positions.y;\n bool isEnd = positions.x > EPSILON;\n bool isJoint = positions.z > EPSILON;\n\n float width = clamp(project_scale(instanceStrokeWidths * widthScale),\n widthMinPixels, widthMaxPixels) / 2.0;\n\n return lineJoin(\n prevPoint, currPoint, nextPoint,\n relativePosition, isEnd, isJoint,\n width\n );\n}\n\nvoid main() {\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity) / 255.;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n\n float isEnd = positions.x;\n\n vec3 prevPosition = mix(-instanceLeftDeltas, vec3(0.0), isEnd) + instanceStartPositions;\n prevPosition = project_position(prevPosition);\n\n vec3 currPosition = mix(instanceStartPositions, instanceEndPositions, isEnd);\n currPosition = project_position(currPosition);\n\n vec3 nextPosition = mix(vec3(0.0), instanceRightDeltas, isEnd) + instanceEndPositions;\n nextPosition = project_position(nextPosition);\n\n vec3 pos = lineJoin(prevPosition, currPosition, nextPosition);\n\n gl_Position = project_to_clipspace(vec4(pos, 1.0));\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME point-cloud-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n\n float distToCenter = length(unitPosition);\n\n if (distToCenter > 1.0) {\n discard;\n }\n\n gl_FragColor = vColor;\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME point-cloud-layer-vertex-shader-64\n\nattribute vec3 positions;\n\nattribute vec3 instancePositions;\nattribute vec2 instancePositions64xyLow;\nattribute vec3 instanceNormals;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusPixels;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n // position on the containing square in [-1, 1] space\n unitPosition = positions.xy;\n\n vec4 instancePositions64xy = vec4(\n instancePositions.x, instancePositions64xyLow.x,\n instancePositions.y, instancePositions64xyLow.y);\n\n vec2 projected_coord_xy[2];\n project_position_fp64(instancePositions64xy, projected_coord_xy);\n\n vec2 vertex_pos_modelspace[4];\n vertex_pos_modelspace[0] = projected_coord_xy[0];\n vertex_pos_modelspace[1] = projected_coord_xy[1];\n vertex_pos_modelspace[2] = vec2(project_scale(instancePositions.z), 0.0);\n vertex_pos_modelspace[3] = vec2(1.0, 0.0);\n\n gl_Position = project_to_clipspace_fp64(vertex_pos_modelspace);\n gl_Position += project_pixel_to_clipspace(positions.xy * radiusPixels);\n\n vec4 position_worldspace = vec4(\n projected_coord_xy[0].x, projected_coord_xy[1].x,\n project_scale(instancePositions.z), 1.0);\n\n // Apply lighting\n float lightWeight = getLightWeight(position_worldspace.xyz, // the w component is always 1.0\n instanceNormals);\n\n // Apply opacity to instance color, or return instance picking color\n vColor = vec4(lightWeight * instanceColors.rgb, instanceColors.a * opacity) / 255.;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME point-cloud-layer-vertex-shader\n\nattribute vec3 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instanceNormals;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusPixels;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n // position on the containing square in [-1, 1] space\n unitPosition = positions.xy;\n\n // Find the center of the point and add the current vertex\n vec4 position_worldspace = vec4(project_position(instancePositions), 1.0);\n gl_Position = project_to_clipspace(position_worldspace) ;\n gl_Position += project_pixel_to_clipspace(positions.xy * radiusPixels);\n\n // Apply lighting\n float lightWeight = getLightWeight(position_worldspace.xyz, // the w component is always 1.0\n instanceNormals);\n\n // Apply opacity to instance color, or return instance picking color\n vColor = vec4(lightWeight * instanceColors.rgb, instanceColors.a * opacity) / 255.;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(13),a=n(12),s=l(n(319)),u=l(n(318)),c=l(n(317));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=o.experimental.fp64LowPart,p=o.experimental.enable64bitSupport,v=[0,0,0,255],g={radiusPixels:10,fp64:!1,getPosition:function(e){return e.position},getNormal:function(e){return e.normal},getColor:function(e){return e.color||v},lightSettings:{lightsPosition:[0,0,5e3,-1e3,1e3,8e3,5e3,-5e3,1e3],ambientRatio:.2,diffuseRatio:.6,specularRatio:.8,lightsStrength:[1,0,.8,0,.4,0],numberOfLights:3}},y=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getShaders",value:function(e){var t=this.context.shaderCache;return p(this.props)?{vs:u.default,fs:c.default,modules:["project64","lighting","picking"],shaderCache:t}:{vs:s.default,fs:c.default,modules:["lighting","picking"],shaderCache:t}}},{key:"initializeState",value:function(){this.state.attributeManager.addInstanced({instancePositions:{size:3,transition:!0,accessor:"getPosition",update:this.calculateInstancePositions},instanceNormals:{size:3,transition:!0,accessor:"getNormal",defaultValue:1,update:this.calculateInstanceNormals},instanceColors:{size:4,type:a.GL.UNSIGNED_BYTE,transition:!0,accessor:"getColor",update:this.calculateInstanceColors}})}},{key:"updateAttribute",value:function(e){var t=e.props,n=e.oldProps;if(e.changeFlags,t.fp64!==n.fp64){var r=this.getAttributeManager();r.invalidateAll(),t.fp64&&t.coordinateSystem===o.COORDINATE_SYSTEM.LNGLAT?r.addInstanced({instancePositions64xyLow:{size:2,accessor:"getPosition",update:this.calculateInstancePositions64xyLow}}):r.remove(["instancePositions64xyLow"])}}},{key:"updateState",value:function(e){var n=e.props,r=e.oldProps,o=e.changeFlags;if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateState",this).call(this,{props:n,oldProps:r,changeFlags:o}),n.fp64!==r.fp64){var a=this.context.gl;this.setState({model:this._getModel(a)})}this.updateAttribute({props:n,oldProps:r,changeFlags:o})}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props,r=n.radiusPixels,i=n.lightSettings;this.state.model.render(Object.assign({},t,{radiusPixels:r},i))}},{key:"_getModel",value:function(e){for(var t=[],n=0;n<3;n++){var r=n/3*Math.PI*2;t.push(2*Math.cos(r),2*Math.sin(r),0)}return new a.Model(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new a.Geometry({drawMode:a.GL.TRIANGLES,attributes:{positions:new Float32Array(t)}}),isInstanced:!0,shaderCache:this.context.shaderCache}))}},{key:"calculateInstancePositions",value:function(e){var t=this.props,n=t.data,r=t.getPosition,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=f[0],i[o++]=f[1],i[o++]=f[2]||0}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstancePositions64xyLow",value:function(e){var t=this.props,n=t.data,r=t.getPosition,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=h(f[0]),i[o++]=h(f[1])}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstanceNormals",value:function(e){var t=this.props,n=t.data,r=t.getNormal,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=f[0],i[o++]=f[1],i[o++]=f[2]}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}},{key:"calculateInstanceColors",value:function(e){var t=this.props,n=t.data,r=t.getColor,i=e.value,o=0,a=!0,s=!1,u=void 0;try{for(var c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=r(c.value);i[o++]=f[0],i[o++]=f[1],i[o++]=f[2],i[o++]=isNaN(f[3])?255:f[3]}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}}]),t}(o.Layer);t.default=y,y.layerName="PointCloudLayer",y.defaultProps=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(13),o=u(n(177)),a=u(n(119)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(120));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=i.experimental.get,d=[0,0,0,255],h=[0,0,0,255],p={stroked:!0,filled:!0,extruded:!1,elevationScale:1,wireframe:!1,lineWidthScale:1,lineWidthMinPixels:0,lineWidthMaxPixels:Number.MAX_SAFE_INTEGER,lineJointRounded:!1,lineMiterLimit:4,lineDashJustified:!1,fp64:!1,getPolygon:function(e){return f(e,"polygon")},getFillColor:function(e){return f(e,"fillColor")||h},getLineColor:function(e){return f(e,"lineColor")||d},getLineWidth:function(e){return f(e,"lineWidth")||1},getLineDashArray:null,getElevation:function(e){return f(e,"elevation")||1e3},lightSettings:{lightsPosition:[-122.45,37.75,8e3,-122,38,5e3],ambientRatio:.05,diffuseRatio:.6,specularRatio:.8,lightsStrength:[2,0,0,0],numberOfLights:2}},v=function(e){function t(){return c(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"initializeState",value:function(){this.state={paths:[]}}},{key:"updateState",value:function(e){var t=this,n=(e.oldProps,e.props,e.changeFlags);if(n.dataChanged||n.updateTriggersChanged&&(n.updateTriggersChanged.all||n.updateTriggersChanged.getPolygon)){var r=this.props,i=r.data,o=r.getPolygon;this.state.paths=[],i.forEach((function(e){s.normalize(o(e)).forEach((function(n){return t.state.paths.push({path:n,object:e})}))}))}}},{key:"getPickingInfo",value:function(e){var t=e.info;return Object.assign(t,{object:t.object&&t.object.object||t.object})}},{key:"renderLayers",value:function(){var e=this.props,t=e.data,n=e.stroked,r=e.filled,i=e.extruded,s=e.wireframe,u=e.elevationScale,c=this.props,l=c.lineWidthScale,f=c.lineWidthMinPixels,d=c.lineWidthMaxPixels,h=c.lineJointRounded,p=c.lineMiterLimit,v=c.lineDashJustified,g=c.fp64,y=this.props,_=y.getFillColor,m=y.getLineColor,b=y.getLineWidth,E=y.getLineDashArray,w=y.getElevation,P=y.getPolygon,S=y.updateTriggers,T=y.lightSettings,A=this.state.paths,x=t&&t.length>0,O=r&&x&&new o.default(this.getSubLayerProps({id:"fill",updateTriggers:{getElevation:S.getElevation,getColor:S.getFillColor}}),{data:t,extruded:i,elevationScale:u,fp64:g,wireframe:!1,getPolygon:P,getElevation:w,getColor:_,lightSettings:T});return[!i&&O,i&&s&&x&&new o.default(this.getSubLayerProps({id:"wireframe",updateTriggers:{getElevation:S.getElevation,getColor:S.getLineColor}}),{data:t,fp64:g,extruded:!0,elevationScale:u,wireframe:!0,getPolygon:P,getElevation:w,getColor:m}),!i&&n&&x&&new a.default(this.getSubLayerProps({id:"stroke",updateTriggers:{getWidth:S.getLineWidth,getColor:S.getLineColor,getDashArray:S.getLineDashArray}}),{data:A,fp64:g,widthScale:l,widthMinPixels:f,widthMaxPixels:d,rounded:h,miterLimit:p,dashJustified:v,getPath:function(e){return e.path},getColor:function(e){return m(e.object)},getWidth:function(e){return b(e.object)},getDashArray:E&&function(e){return E(e.object)}}),i&&O]}}]),t}(i.CompositeLayer);t.default=v,v.layerName="PolygonLayer",v.defaultProps=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME scatterplot-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\n\nvoid main(void) {\n\n float distToCenter = length(unitPosition);\n\n if (distToCenter > 1.0 || distToCenter < innerUnitRadius) {\n discard;\n }\n gl_FragColor = vColor;\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME scatterplot-layer-vertex-shader-64\n\nattribute vec3 positions;\n\nattribute vec3 instancePositions;\nattribute vec2 instancePositions64xyLow;\nattribute float instanceRadius;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\n// Only one-dimensional arrays may be declared in GLSL ES 1.0. specs p.24\nuniform float opacity;\nuniform float radiusScale;\nuniform float radiusMinPixels;\nuniform float radiusMaxPixels;\nuniform float outline;\nuniform float strokeWidth;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\n\nvoid main(void) {\n // Multiply out radius and clamp to limits\n float outerRadiusPixels = clamp(\n project_scale(radiusScale * instanceRadius),\n radiusMinPixels, radiusMaxPixels\n );\n\n // outline is centered at the radius\n // outer radius needs to offset by half stroke width\n outerRadiusPixels += outline * strokeWidth / 2.0;\n\n // position on the containing square in [-1, 1] space\n unitPosition = positions.xy;\n // 0 - solid circle, 1 - stroke with lineWidth=0\n innerUnitRadius = outline * (1.0 - strokeWidth / outerRadiusPixels);\n\n vec4 instancePositions64xy = vec4(\n instancePositions.x, instancePositions64xyLow.x,\n instancePositions.y, instancePositions64xyLow.y);\n\n vec2 projected_coord_xy[2];\n project_position_fp64(instancePositions64xy, projected_coord_xy);\n\n vec2 vertex_pos_localspace[4];\n vec4_fp64(vec4(positions * outerRadiusPixels, 0.0), vertex_pos_localspace);\n\n vec2 vertex_pos_modelspace[4];\n vertex_pos_modelspace[0] = sum_fp64(vertex_pos_localspace[0], projected_coord_xy[0]);\n vertex_pos_modelspace[1] = sum_fp64(vertex_pos_localspace[1], projected_coord_xy[1]);\n vertex_pos_modelspace[2] = sum_fp64(vertex_pos_localspace[2],\n vec2(project_scale(instancePositions.z), 0.0));\n vertex_pos_modelspace[3] = vec2(1.0, 0.0);\n\n gl_Position = project_to_clipspace_fp64(vertex_pos_modelspace);\n\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity) / 255.;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME scatterplot-layer-vertex-shader\n\nattribute vec3 positions;\n\nattribute vec3 instancePositions;\nattribute float instanceRadius;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusScale;\nuniform float radiusMinPixels;\nuniform float radiusMaxPixels;\nuniform float outline;\nuniform float strokeWidth;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\n\nvoid main(void) {\n // Multiply out radius and clamp to limits\n float outerRadiusPixels = clamp(\n project_scale(radiusScale * instanceRadius),\n radiusMinPixels, radiusMaxPixels\n );\n // outline is centered at the radius\n // outer radius needs to offset by half stroke width\n outerRadiusPixels += outline * strokeWidth / 2.0;\n\n // position on the containing square in [-1, 1] space\n unitPosition = positions.xy;\n // 0 - solid circle, 1 - stroke with lineWidth=0\n innerUnitRadius = outline * (1.0 - strokeWidth / outerRadiusPixels);\n\n // Find the center of the point and add the current vertex\n vec3 center = project_position(instancePositions);\n vec3 vertex = positions * outerRadiusPixels;\n gl_Position = project_to_clipspace(vec4(center + vertex, 1.0));\n\n // Apply opacity to instance color, or return instance picking color\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity) / 255.;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME screen-grid-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME screen-grid-layer-vertex-shader\n\nattribute vec3 vertices;\nattribute vec3 instancePositions;\nattribute float instanceCount;\nattribute vec3 instancePickingColors;\n\nuniform float maxCount;\nuniform float opacity;\nuniform vec4 minColor;\nuniform vec4 maxColor;\nuniform vec3 cellScale;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n vec4 color = mix(minColor, maxColor, instanceCount / maxCount) / 255.;\n\n vColor = vec4(color.rgb, color.a * opacity);\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n\n gl_Position = vec4(instancePositions + vertices * cellScale, 1.);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(13),a=n(12),s=c(n(326)),u=c(n(325));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){return l(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getShaders",value:function(){return{vs:s.default,fs:u.default,modules:["picking"]}}},{key:"initializeState",value:function(){var e=this.getAttributeManager(),t=this.context.gl;e.addInstanced({instancePositions:{size:3,update:this.calculateInstancePositions},instanceCount:{size:1,accessor:["getPosition","getWeight"],update:this.calculateInstanceCount}}),this.setState({model:this._getModel(t)})}},{key:"shouldUpdateState",value:function(e){return e.changeFlags.somethingChanged}},{key:"updateState",value:function(e){var n=e.oldProps,r=e.props,o=e.changeFlags;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateState",this).call(this,{props:r,oldProps:n,changeFlags:o}),(r.cellSizePixels!==n.cellSizePixels||o.viewportChanged)&&this.updateCell()}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props,r=n.minColor,i=n.maxColor,o=n.parameters,a=void 0===o?{}:o,s=this.state,u=s.model,c=s.cellScale,l=s.maxCount;t=Object.assign({},t,{minColor:r,maxColor:i,cellScale:c,maxCount:l}),u.draw({uniforms:t,parameters:Object.assign({depthTest:!1,depthMask:!1},a)})}},{key:"_getModel",value:function(e){return new a.Model(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new a.Geometry({drawMode:a.GL.TRIANGLE_FAN,attributes:{vertices:new Float32Array([0,0,0,1,0,0,1,1,0,0,1,0])}}),isInstanced:!0,shaderCache:this.context.shaderCache}))}},{key:"updateCell",value:function(){var e=this.context.viewport,t=e.width,n=e.height,r=this.props.cellSizePixels,i=new Float32Array([(r-2)/t*2,-(r-2)/n*2,1]),o=Math.ceil(t/r),a=Math.ceil(n/r);this.setState({cellScale:i,numCol:o,numRow:a,numInstances:o*a}),this.getAttributeManager().invalidateAll()}},{key:"calculateInstancePositions",value:function(e,t){for(var n=t.numInstances,r=this.context.viewport,i=r.width,o=r.height,a=this.props.cellSizePixels,s=this.state.numCol,u=e.value,c=e.size,l=0;l<n;l++){var f=l%s,d=Math.floor(l/s);u[l*c+0]=f*a/i*2-1,u[l*c+1]=1-d*a/o*2,u[l*c+2]=0}}},{key:"calculateInstanceCount",value:function(e){var t=this.props,n=t.data,r=t.cellSizePixels,i=t.getPosition,o=t.getWeight,a=this.state,s=a.numCol,u=a.numRow,c=e.value,l=0;c.fill(0);var f=!0,d=!1,h=void 0;try{for(var p,v=n[Symbol.iterator]();!(f=(p=v.next()).done);f=!0){var g=p.value,y=this.project(i(g)),_=Math.floor(y[0]/r),m=Math.floor(y[1]/r);if(_>=0&&_<s&&m>=0&&m<u){var b=_+m*s;c[b]+=o(g),c[b]>l&&(l=c[b])}}}catch(e){d=!0,h=e}finally{try{!f&&v.return&&v.return()}finally{if(d)throw h}}this.setState({maxCount:l})}}]),t}(o.Layer);t.default=d,d.layerName="ScreenGridLayer",d.defaultProps={cellSizePixels:100,minColor:[0,0,0,255],maxColor:[0,255,0,255],getPosition:function(e){return e.position},getWeight:function(e){return 1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PolygonTesselatorExtruded=void 0;var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(120)),a=n(13),s=(r=n(232))&&r.__esModule?r:{default:r},u=a.experimental.fp64LowPart,c=a.experimental.fillArray;function l(e,t){for(var n=t.length,r=e.length,i=0;i<n;i++)e[r++]=t[i];return e}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t>1?e.forEach((function(e){return f(e,t-1,n)})):l(n,e),n}var d=[0,0,0,255];function h(e){var t=e.groupedVertices,n=e.wireframe,r=void 0!==n&&n,i=r?2:5,a=[];t.reduce((function(e,t){return a.push(e),e+o.getVertexCount(t)*i}),0);var u=t.map((function(e,t){return r?function(e,t){var n=o.getVertexCount(e),r=[];return e.forEach((function(e){r.push(t);for(var i=e.length,o=1;o<i-1;o++)r.push(o+t,o+t);r.push(t);for(var a=0;a<i-1;a++)r.push(a+t,a+n+t);t+=i})),r}(e,a[t]):function(e,t){var n=o.getVertexCount(e),r=null,i=e.length-1;if(i){r=[];for(var a=0,u=0;u<i;u++)a+=e[u].length,r[u]=a}var c=(0,s.default)(f(e,3),r,3).map((function(e){return e+t}));return e.forEach((function(e){for(var r=e.length,i=0;i<r-1;i++)_(c,t+i,n);t+=r})),c}(e,a[t])}));return new Uint32Array(f(u,2))}function p(e,t){var n=void 0;if(t){var r=e.length/3;n=new Float32Array(2*r);for(var i=0;i<r;i++)n[2*i+0]=u(e[3*i+0]),n[2*i+1]=u(e[3*i+1])}return{positions:e,positions64xyLow:n}}function v(e){var t=e.groupedVertices,n=e.pointCount,r=e.wireframe,i=[0,0,1],a=r?2:5,s=new Float32Array(3*n*a),u=0;return r?c({target:s,source:i,count:n*a}):(t.map((function(e,t){var n=o.getVertexCount(e);c({target:s,source:i,start:u,count:n}),u+=3*n;var r=[],a=[];e.forEach((function(e){var t=function(e){var t,n,r=[],i=null,o=!0,a=!1,s=void 0;try{for(var u,c=e[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var f=u.value;i&&l(r,(n=f,[(t=i)[1]-n[1],n[0]-t[0],0])),i=f}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return r}(e),n=t.slice(0,3);l(r,t),l(r,n),l(a,n),l(a,t)})),c({target:s,start:u,count:2,source:r.concat(a)}),u+=3*n*4})),s)}function g(e){var t=e.groupedVertices,n=e.pointCount,r=e.getColor,i=e.wireframe,a=void 0!==i&&i?2:5,s=new Uint8ClampedArray(4*n*a),u=0;return t.forEach((function(e,t){var n=r(t);n[3]=Number.isFinite(n[3])?n[3]:255;var i=o.getVertexCount(e);c({target:s,source:n,start:u,count:i*a}),u+=n.length*i*a})),s}function y(e){var t=e.groupedVertices,n=e.pointCount,r=e.wireframe,i=void 0!==r&&r?2:5,a=new Uint8ClampedArray(3*n*i),s=0;return t.forEach((function(e,t){var n,r=o.getVertexCount(e),u=[(n=t)+1&255,n+1>>8&255,n+1>>8>>8&255];c({target:a,source:u,start:s,count:r*i}),s+=u.length*r*i})),a}function _(e,t,n){e.push(t+n,t+3*n,t+2*n+1,t+2*n+1,t+3*n,t+4*n+1)}t.PolygonTesselatorExtruded=function(){function e(t){var n=t.polygons,r=t.getHeight,i=void 0===r?function(e){return 1e3}:r,a=(t.getColor,t.wireframe),s=void 0!==a&&a,u=t.fp64,l=void 0!==u&&u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fp64=l;var d=n=n.map((function(e,t){var n=i(t)||0;return o.normalize(e).map((function(e){return e.map((function(e){return[e[0],e[1],n]}))}))}));this.groupedVertices=n;var g=function(e){return e.reduce((function(e,t){return e+o.getVertexCount(t)}),0)}(n);this.pointCount=g,this.wireframe=s,this.attributes={};var _=function(e){var t=e.groupedVertices,n=e.wireframe,r=void 0!==n&&n,i=r?2:5,o=new Float32Array(3*e.pointCount*i),a=0;return t.forEach((function(e){for(var t=f(e,3),n=t.slice(0),s=t.length-1;s>0;)n[s]=0,s-=3;var u=t.length;r?(c({target:o,source:t,start:a}),c({target:o,source:n,start:a+u})):(c({target:o,source:t,start:a,count:3}),c({target:o,source:n,start:a+3*u,count:2})),a+=u*i})),o}({groupedVertices:d,pointCount:g,wireframe:s});Object.assign(this.attributes,{positions:p(_,this.fp64),indices:h({groupedVertices:d,wireframe:s}),normals:v({groupedVertices:d,pointCount:g,wireframe:s}),pickingColors:y({groupedVertices:d,pointCount:g,wireframe:s})})}return i(e,[{key:"indices",value:function(){return this.attributes.indices}},{key:"positions",value:function(){return this.attributes.positions}},{key:"normals",value:function(){return this.attributes.normals}},{key:"colors",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getColor,n=void 0===t?function(e){return d}:t,r=this.groupedVertices,i=this.pointCount,o=this.wireframe;return g({groupedVertices:r,pointCount:i,wireframe:o,getColor:n})}},{key:"pickingColors",value:function(){return this.attributes.pickingColors}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PolygonTesselator=void 0;var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(120)),a=(r=n(232))&&r.__esModule?r:{default:r},s=n(13),u=s.experimental.fp64LowPart,c=s.experimental.flattenVertices,l=s.experimental.fillArray,f=[0,0,0,255];function d(e){var t=e.polygons,n=e.pointCount,r=e.getColor,i=new Uint8ClampedArray(4*n),a=0;return t.forEach((function(e,t){var n=r(t);n[3]=Number.isFinite(n[3])?n[3]:255;var s=o.getVertexCount(e);l({target:i,source:n,start:a,count:s}),a+=n.length*s})),i}t.PolygonTesselator=function(){function e(t){var n=t.polygons,r=t.fp64,i=void 0!==r&&r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.polygons=n.map((function(e){return o.normalize(e)})),this.pointCount=function(e){return e.reduce((function(e,t){return e+o.getVertexCount(t)}),0)}(this.polygons),this.fp64=i}return i(e,[{key:"indices",value:function(){return function(e){var t=e.polygons,n=e.IndexType,r=void 0===n?Uint32Array:n,i=3*function(e){return e.reduce((function(e,t){return e+o.getTriangleCount(t)}),0)}(t),s=function(e){var t=new Array(e.length+1);t[0]=0;var n=0;return e.forEach((function(e,r){n+=o.getVertexCount(e),t[r+1]=n})),t}(t);if(r===Uint16Array&&i>65535)throw new Error("Vertex count exceeds browser's limit");var u=new r(i),l=0;return t.forEach((function(e,t){var n,r,i,o=!0,f=!1,d=void 0;try{for(var h,p=(n=e,void 0,void 0,r=function(e){var t=null;if(e.length>1){var n=0;t=[],e.forEach((function(e){n+=e.length,t.push(n)})),t.pop()}return t}(n),i=c(n),(0,a.default)(i,r,3))[Symbol.iterator]();!(o=(h=p.next()).done);o=!0){var v=h.value;u[l++]=v+s[t]}}catch(e){f=!0,d=e}finally{try{!o&&p.return&&p.return()}finally{if(f)throw d}}})),u}({polygons:this.polygons,indexCount:this.indexCount})}},{key:"positions",value:function(){return function(e){var t=e.polygons,n=e.pointCount,r=e.fp64,i=new Float32Array(3*n),a=void 0;r&&(a=new Float32Array(2*n));var s=0,c=0,l=!0,f=!1,d=void 0;try{for(var h,p=t[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var v=h.value;o.forEachVertex(v,(function(e){var t=e[0],n=e[1],o=e[2]||0;i[s++]=t,i[s++]=n,i[s++]=o,r&&(a[c++]=u(t),a[c++]=u(n))}))}}catch(e){f=!0,d=e}finally{try{!l&&p.return&&p.return()}finally{if(f)throw d}}return{positions:i,positions64xyLow:a}}({polygons:this.polygons,pointCount:this.pointCount,fp64:this.fp64})}},{key:"normals",value:function(){return e={polygons:this.polygons,pointCount:this.pointCount},new Float32Array(3*e.pointCount);var e}},{key:"colors",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getColor,n=void 0===t?function(e){return f}:t,r=this.polygons,i=this.pointCount;return d({polygons:r,pointCount:i,getColor:n})}},{key:"pickingColors",value:function(){return e={polygons:this.polygons,pointCount:this.pointCount},t=e.polygons,n=new Uint8ClampedArray(3*e.pointCount),r=0,t.forEach((function(e,t){var i,a=[((i=t)+1)%256,Math.floor((i+1)/256)%256,Math.floor((i+1)/256/256)%256],s=o.getVertexCount(e);l({target:n,source:a,start:r,count:s}),r+=a.length*s})),n;var e,t,n,r}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME solid-polygon-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME solid-polygon-layer-vertex-shader-64\n\nattribute vec3 positions;\nattribute vec2 positions64xyLow;\nattribute vec3 normals;\nattribute vec4 colors;\nattribute vec3 pickingColors;\n\nuniform float extruded;\nuniform float elevationScale;\nuniform float opacity;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n vec4 positions64xy = vec4(positions.x, positions64xyLow.x, positions.y, positions64xyLow.y);\n\n vec2 projected_coord_xy[2];\n project_position_fp64(positions64xy, projected_coord_xy);\n\n vec2 vertex_pos_modelspace[4];\n vertex_pos_modelspace[0] = projected_coord_xy[0];\n vertex_pos_modelspace[1] = projected_coord_xy[1];\n vertex_pos_modelspace[2] = vec2(project_scale(positions.z * elevationScale), 0.0);\n vertex_pos_modelspace[3] = vec2(1.0, 0.0);\n\n gl_Position = project_to_clipspace_fp64(vertex_pos_modelspace);\n\n vec4 position_worldspace = vec4(\n vertex_pos_modelspace[0].x, vertex_pos_modelspace[1].x,\n vertex_pos_modelspace[2].x, vertex_pos_modelspace[3].x);\n\n float lightWeight = 1.0;\n\n if (extruded > 0.5) {\n lightWeight = getLightWeight(\n position_worldspace.xyz, // the w component is always 1.0\n project_normal(normals)\n );\n }\n\n vec3 lightWeightedColor = lightWeight * colors.rgb;\n vColor = vec4(lightWeightedColor, colors.a * opacity) / 255.0;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(pickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME solid-polygon-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 normals;\nattribute vec4 colors;\nattribute vec3 pickingColors;\n\nuniform float extruded;\nuniform float elevationScale;\nuniform float opacity;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n \n vec4 position_worldspace = vec4(project_position(\n vec3(positions.x, positions.y, positions.z * elevationScale)),\n 1.0\n );\n gl_Position = project_to_clipspace(position_worldspace);\n\n float lightWeight = 1.0;\n \n if (extruded > 0.5) {\n // Here, the input parameters should be\n // position_worldspace.xyz / position_worldspace.w.\n // However, this calculation generates all zeros on\n // MacBook Pro with Intel Iris Pro GPUs for unclear reasons.\n // (see https://github.com/uber/deck.gl/issues/559)\n // Since the w component is always 1.0 in our shaders,\n // we decided to just provide xyz component of position_worldspace\n // to the getLightWeight() function\n lightWeight = getLightWeight(\n position_worldspace.xyz,\n project_normal(normals)\n );\n }\n\n vec3 lightWeightedColor = lightWeight * colors.rgb;\n vColor = vec4(lightWeightedColor, colors.a * opacity) / 255.0;\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(pickingColors);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(180)),o=n(16),a=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return Number.isFinite(e)?e:t}var c=function(e){function t(e){var n=e.width,r=e.height,i=e.position,o=e.bearing,a=e.pitch,s=e.longitude,u=e.latitude,c=e.zoom,l=(e.syncBearing,e.bounds,e.startPanEventPosition),f=e.startPanPosition,d=e.startRotateCenter,h=e.startRotateViewport,p=e.startZoomPos,v=e.startZoom;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{width:n,height:r,position:i,bearing:o,pitch:a,longitude:s,latitude:u,zoom:c}));return g._interactiveState={startPanEventPosition:l,startPanPosition:f,startRotateCenter:d,startRotateViewport:h,startZoomPos:p,startZoom:v},g}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getInteractiveState",value:function(){return this._interactiveState}},{key:"panStart",value:function(e){var t=e.pos,n=this._viewportProps,r=n.translationX,i=n.translationY;return this._getUpdatedState({startPanPosition:[r,i],startPanEventPosition:t})}},{key:"pan",value:function(e){var t=e.pos,n=e.startPos,r=this._interactiveState.startPanEventPosition||n;(0,a.default)(r,"`startPanEventPosition` props is required");var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(this._interactiveState.startPanPosition||[],2),o=i[0],s=i[1];o=u(o,this._viewportProps.translationX),s=u(s,this._viewportProps.translationY);var c=t[0]-r[0],l=t[1]-r[1];return this._getUpdatedState({translationX:o+c,translationY:s-l})}},{key:"panEnd",value:function(){return this._getUpdatedState({startPanPosition:null,startPanPos:null})}},{key:"rotateStart",value:function(e){return e.pos,this._getUpdatedState({startRotateCenter:this._viewportProps.position,startRotateViewport:this._viewportProps})}},{key:"rotate",value:function(e){var t=e.deltaScaleX,n=e.deltaScaleY,r=this._viewportProps,i=r.bearing,o=r.pitch;return this._getUpdatedState({bearing:i+10*t,pitch:o-10*n})}},{key:"rotateEnd",value:function(){return this._getUpdatedState({startRotateCenter:null,startRotateViewport:null})}},{key:"zoomStart",value:function(e){var t=e.pos;return this._getUpdatedState({startZoomPos:t,startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(e){var t,n,r,i=e.pos,o=e.startPos,a=e.scale,s=this._viewportProps,u=s.zoom,c=s.minZoom,l=s.maxZoom,f=(s.width,s.height,s.translationX,s.translationY,this._interactiveState.startZoomPos||o||i),d=(r=l,(t=u*a)<(n=c)?n:t>r?r:t);return i[0],f[0],i[1],f[1],f[0],f[1],d/u<1?this.moveBackward():this.moveForward()}},{key:"zoomEnd",value:function(){return this._getUpdatedState({startZoomPos:null,startZoom:null})}},{key:"moveLeft",value:function(){var e=this._viewportProps.bearing-2;return this._getUpdatedState({bearing:e})}},{key:"moveRight",value:function(){var e=this._viewportProps.bearing+2;return this._getUpdatedState({bearing:e})}},{key:"moveForward",value:function(){var e=this._viewportProps.position,t=this.getDirection(),n=new o.Vector3(t).normalize().scale(1);return this._getUpdatedState({position:new o.Vector3(e).add(n)})}},{key:"moveBackward",value:function(){var e=this._viewportProps.position,t=this.getDirection(),n=new o.Vector3(t).normalize().scale(-1);return this._getUpdatedState({position:new o.Vector3(e).add(n)})}},{key:"moveUp",value:function(){var e=this._viewportProps.position;return this._getUpdatedState({position:new o.Vector3(e).add([0,0,1])})}},{key:"moveDown",value:function(){var e=this._viewportProps.position,t=e[2]>=1?[0,0,-1]:[0,0,0];return this._getUpdatedState({position:new o.Vector3(e).add(t)})}},{key:"zoomIn",value:function(){return this._getUpdatedState({zoom:this._viewportProps.zoom+.2})}},{key:"zoomOut",value:function(){return this._getUpdatedState({zoom:this._viewportProps.zoom-.2})}},{key:"_getUpdatedState",value:function(e){return new t(Object.assign({},this._viewportProps,this._interactiveState,e))}}]),t}(i.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="float scale(float position) {\n return project_scale(position);\n}\n\nvec2 scale(vec2 position) {\n return project_scale(position);\n}\n\nvec3 scale(vec3 position) {\n return project_scale(position);\n}\n\nvec4 scale(vec4 position) {\n return project_scale(position);\n}\n\nvec2 preproject(vec2 position) {\n return project_position(position);\n}\n\nvec3 preproject(vec3 position) {\n return project_position(position);\n}\n\nvec4 preproject(vec4 position) {\n return project_position(position);\n}\n\nvec4 project(vec4 position) {\n return project_to_clipspace(position);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(12),o=u(n(336)),a=u(n(17)),s=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){},l=function(){function e(t,n){var r=n.id;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=r,this.gl=t,this.isSupported=i.TransformFeedback.isSupported(t),this.attributeTransitions={},this.needsRedraw=!1,this.model=null,this.isSupported?this.transformFeedback=new i.TransformFeedback(t):a.default.warn(0,"WebGL2 not supported by this browser. Transition animation is disabled.")}return r(e,[{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.opts=t,this.isSupported){var n=!1,r=this.attributeTransitions,i={};for(var o in e){var a=this._updateAttribute(o,e[o]);a&&(r[o]||(r[o]=a,n=!0),i[o]=a)}for(var s in r){var u=e[s];u&&u.transition||(delete r[s],n=!0)}n?this._createModel():this.model&&this.model.setTransitions(i)}}},{key:"hasAttribute",value:function(e){return e in this.attributeTransitions}},{key:"getAttributes",value:function(){var e={};for(var t in this.attributeTransitions){var n=this.attributeTransitions[t];n.buffer&&(e[t]=n.buffer)}return e}},{key:"setCurrentTime",value:function(e){if(!this.model)return!1;var t={},n={},r=this.needsRedraw;for(var i in this.needsRedraw=!1,this.attributeTransitions){var o=this.attributeTransitions[i];n[o.bufferIndex]=o.buffer;var a=1;1===o.state&&(o.startTime=e,o.state=2,o.onStart(o)),2===o.state&&((a=(e-o.startTime)/o.duration)>=1&&(a=1,o.state=3,o.onEnd(o)),r=!0),t[o.name+"Time"]=o.easing(a)}return r&&this._runTransformFeedback({uniforms:t,buffers:n}),r}},{key:"_updateAttribute",value:function(e,t){var n=this._getTransitionSettings(t);if(n){var r=void 0,i=this.attributeTransitions[e];if(i?r=t.changed:(i={name:e,attribute:t},r=!0),r)return this._triggerTransition(i,n),i}return null}},{key:"_runTransformFeedback",value:function(e){var t,n,r=e.uniforms,o=e.buffers,a=this.model,s=this.transformFeedback;s.bindBuffers(o,{}),a.draw({uniforms:r,transformFeedback:s,parameters:(t={},n=i.GL.RASTERIZER_DISCARD,!0,n in t?Object.defineProperty(t,n,{value:true,enumerable:!0,configurable:!0,writable:!0}):t[n]=true,t)})}},{key:"_createModel",value:function(){this.model&&this.model.destroy(),this.model=new o.default(this.gl,{id:this.id,transitions:this.attributeTransitions})}},{key:"_getCurrentAttributeState",value:function(e){var t=e.attribute,n=e.buffer,r=t.value,i=t.type,o=t.size;if(n){var a=new Float32Array(r);return n.getData({dstData:a}),r instanceof Float32Array||(a=new r.constructor(a)),{size:o,type:i,value:a}}return{size:o,type:i,value:r}}},{key:"_getTransitionSettings",value:function(e){var t=this.opts,n=e.transition,r=e.accessor;return n?Array.isArray(r)?r.map((function(e){return t[e]})).find(Boolean):t[r]:null}},{key:"_normalizeTransitionSettings",value:function(e){return Number.isFinite(e)&&(e={duration:e}),(0,s.default)(e&&e.duration>0),{duration:e.duration,easing:e.easing||function(e){return e},onStart:e.onStart||c,onEnd:e.onEnd||c,onInterrupt:e.onInterrupt||c}}},{key:"_triggerTransition",value:function(e,t){this.needsRedraw=!0;var n=e.attribute,r=e.buffer,o=n.value,a=n.size,s=this._normalizeTransitionSettings(t),u=!r||e.bufferSize<o.length,c=this._getCurrentAttributeState(e),l=new i.Buffer(this.gl,{size:a,data:o});u&&(r&&r.delete(),e.buffer=new i.Buffer(this.gl,{size:a,instanced:n.instanced,data:new Float32Array(o.length),usage:i.GL.DYNAMIC_COPY}),e.bufferSize=o.length),Object.assign(e,s),e.fromState=c,e.toState=l,2===e.state&&e.onInterrupt(e),e.state=1}}]),e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(12);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={1:"float",2:"vec2",3:"vec3",4:"vec4"},s=function(e){function t(e,n){var r=n.id,o=n.transitions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({id:r,geometry:new i.Geometry({id:r,drawMode:i.GL.POINTS}),vertexCount:0,isIndexed:!0},function(e){var t=[],n=[],r=[],i=[],o=[];for(var s in e){var u=e[s],c=a[u.attribute.size];c&&(u.bufferIndex=t.length,t.push(s),n.push("attribute "+c+" "+s+"From;"),n.push("attribute "+c+" "+s+"To;"),r.push("uniform float "+s+"Time;"),i.push("varying "+c+" "+s+";"),o.push(s+" = mix("+s+"From, "+s+"To,\n "+s+"Time);"))}return{vs:"\n#define SHADER_NAME feedback-vertex-shader\n"+n.join("\n")+"\n"+r.join("\n")+"\n"+i.join("\n")+"\n\nvoid main(void) {\n "+o.join("\n")+"\n gl_Position = vec4(0.0);\n}\n",fs:"#define SHADER_NAME feedback-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\n"+i.join("\n")+"\n\nvoid main(void) {\n gl_FragColor = vec4(0.0);\n}\n",varyings:t}}(o))));return s.setTransitions(o),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"setTransitions",value:function(e){for(var t in e){var n,r=e[t],i=r.fromState,a=r.toState,s=r.attribute;this.setAttributes((o(n={},t+"From",i),o(n,t+"To",a),n)),this.setVertexCount(s.value.length/s.size)}}}]),t}(i.Model);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(123)),o=s(n(17)),a=n(126);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getSubLayers",value:function(){return this.internalState.subLayers||[]}},{key:"initializeState",value:function(){}},{key:"getPickingInfo",value:function(e){return e.info}},{key:"renderLayers",value:function(){return null}},{key:"getSubLayerProps",value:function(e){var t=this.props,n={opacity:t.opacity,pickable:t.pickable,visible:t.visible,parameters:t.parameters,getPolygonOffset:t.getPolygonOffset,highlightedObjectIndex:t.highlightedObjectIndex,autoHighlight:t.autoHighlight,highlightColor:t.highlightColor,coordinateSystem:t.coordinateSystem,coordinateOrigin:t.coordinateOrigin,modelMatrix:t.modelMatrix};return e&&Object.assign(n,e,{id:this.props.id+"-"+e.id,updateTriggers:Object.assign({all:this.props.updateTriggers.all},e.updateTriggers)}),n}},{key:"_renderLayers",value:function(){var e=this.internalState.subLayers;e&&!this.needsUpdate()?o.default.log(3,"Composite layer reused subLayers "+this,this.internalState.subLayers):(e=this.renderLayers(),e=(0,a.flatten)(e,{filter:Boolean}),this.internalState.subLayers=e,o.default.log(2,"Composite layer rendered new subLayers "+this,e));var t=!0,n=!1,r=void 0;try{for(var i,s=e[Symbol.iterator]();!(t=(i=s.next()).done);t=!0)i.value.parentLayer=this}catch(e){n=!0,r=e}finally{try{!t&&s.return&&s.return()}finally{if(n)throw r}}}},{key:"isComposite",get:function(){return!0}}]),t}(i.default);t.default=u,u.layerName="CompositeLayer"},function(e,t,n){"use strict";var r,i=n(350),o=(r=n(17))&&r.__esModule?r:{default:r},a="5.1.3";if(i.global.deck&&i.global.deck.VERSION!==a)throw new Error("deck.gl - multiple versions detected: "+i.global.deck.VERSION+" vs "+a);i.global.deck||(console.log("deck.gl 5.1.3 - set deck.log.priority=1 (or higher) to trace attribute updates"),i.global.deck=i.global.deck||{VERSION:a,version:a,log:o.default}),console.table||(console.table=function(){}),n(190)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pickObject=function(e,t){var n=t.layers,i=t.viewports,o=t.x,a=t.y,f=t.radius,d=t.layerFilter,h=t.mode,p=t.onViewportActive,v=t.pickingFBO,g=t.lastPickedInfo,y=t.useDevicePixels,_=(0,r.getPixelRatio)({useDevicePixels:y}),m=Math.round(o*_),b=Math.round(e.canvas.height-a*_),E=Math.round(f*_),w=function(e){var t=e.deviceX,n=e.deviceY,r=e.deviceRadius,i=e.deviceWidth,o=e.deviceHeight;if(!(t>=0&&n>=0&&t<i&&n<o))return null;var a=Math.max(0,t-r),s=Math.max(0,n-r);return{x:a,y:s,width:Math.min(i,t+r)-a+1,height:Math.min(o,n+r)-s+1}}({deviceX:m,deviceY:b,deviceRadius:E,deviceWidth:v.width,deviceHeight:v.height}),P=w&&u(e,{layers:n,viewports:i,onViewportActive:p,useDevicePixels:y,pickingFBO:v,deviceRect:w,layerFilter:d,redrawReason:h});return function(e){var t=e.pickInfo,n=e.lastPickedInfo,r=e.mode,i=e.layers,o=e.viewports,a=e.x,s=e.y,u=e.deviceX,c=e.deviceY,f=e.pixelRatio,d=t.pickedColor,h=t.pickedLayer,p=t.pickedObjectIndex,v=h?[h]:[];if("hover"===r){var g=n.index,y=n.layerId,_=h&&h.props.id;if(_!==y||p!==g){if(_!==y){var m=i.find((function(e){return e.props.id===y}));m&&v.unshift(m)}n.layerId=_,n.index=p}}var b={color:null,layer:null,index:-1,picked:!1,x:a,y:s,pixel:[a,s],lngLat:{viewports:o}.viewports[0].unproject([a,s]),devicePixel:[u,c],pixelRatio:f},E=new Map;v.forEach((function(e){var t=Object.assign({},b);e===h&&(t.color=d,t.index=p,t.picked=!0),(t=l({layer:e,info:t,mode:r}))&&E.set(t.layer.id,t);var n={pickingSelectedColor:e.props.autoHighlight&&h===e?d:null},i=!0,o=!1,a=void 0;try{for(var s,u=e.getModels()[Symbol.iterator]();!(i=(s=u.next()).done);i=!0)s.value.updateModuleSettings(n)}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}}));var w=function(e,t){var n=[];return e.forEach((function(e){var r=!1;switch(t){case"click":r=e.layer.props.onClick(e);break;case"hover":r=e.layer.props.onHover(e);break;case"query":break;default:throw new Error("unknown pick type")}r||n.push(e)})),n}(E,r);return w}({pickInfo:P&&c(0,{pickedColors:P,layers:n,deviceX:m,deviceY:b,deviceRadius:E,deviceRect:w})||s,lastPickedInfo:g,mode:h,layers:n,viewports:i,x:o,y:a,deviceX:m,deviceY:b,pixelRatio:_})},t.pickVisibleObjects=function(e,t){var n=t.layers,o=t.viewports,a=t.x,s=t.y,c=t.width,f=t.height,d=t.mode,h=t.layerFilter,p=t.onViewportActive,v=t.pickingFBO,g=t.useDevicePixels,y=(0,r.getPixelRatio)({useDevicePixels:g}),_=Math.round(a*y),m=Math.round(e.canvas.height-s*y),b=Math.round((a+c)*y),E=Math.round(e.canvas.height-(s+f)*y),w=function(e,t){var n=t.pickedColors,r=t.layers,o=new Map;if(n)for(var a=0;a<n.length;a+=4){var s=n[a+3]-1;if(s>=0){var u=n.slice(a,a+4),c=u.join(",");if(!o.has(c)){var l=r[s];l?o.set(c,{pickedColor:u,pickedLayer:l,pickedObjectIndex:l.decodePickingColor(u)}):i.default.error("Picked non-existent layer. Is picking buffer corrupt?")}}}return Array.from(o.values())}(0,{pickedColors:u(e,{layers:n,viewports:o,onViewportActive:p,pickingFBO:v,useDevicePixels:g,deviceRect:{x:_,y:E,width:b-_,height:m-E},layerFilter:h,redrawReason:d}),layers:n}),P=new Map;return w.forEach((function(e){var t={color:e.pickedColor,layer:null,index:e.pickedObjectIndex,picked:!0,x:a,y:s,width:c,height:f,pixelRatio:y};t=l({layer:e.pickedLayer,info:t,mode:d}),P.has(t.object)||P.set(t.object,t)})),Array.from(P.values())},t.getClosestFromPickingBuffer=c;var r=n(183),i=a(n(17)),o=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}var s={pickedColor:null,pickedLayer:null,pickedObjectIndex:-1};function u(e,t){var n=t.layers,i=t.viewports,a=t.onViewportActive,s=t.useDevicePixels,u=t.pickingFBO,c=t.deviceRect,l=t.layerFilter,f=t.redrawReason;if((0,o.default)(c),(0,o.default)(Number.isFinite(c.width)&&c.width>0,"`width` must be > 0"),(0,o.default)(Number.isFinite(c.height)&&c.height>0,"`height` must be > 0"),n.filter((function(e){return e.isPickable()})).length<1)return null;(0,r.drawPickingBuffer)(e,{layers:n,viewports:i,onViewportActive:a,useDevicePixels:s,pickingFBO:u,deviceRect:c,layerFilter:l,redrawReason:f});var d=c.x,h=c.y,p=c.width,v=c.height,g=new Uint8Array(p*v*4);return u.readPixels({x:d,y:h,width:p,height:v,pixelArray:g}),g}function c(e,t){var n=t.pickedColors,r=t.layers,a=t.deviceX,u=t.deviceY,c=t.deviceRadius,l=t.deviceRect;(0,o.default)(n);for(var f=l.x,d=l.y,h=l.width,p=l.height,v=c*c,g=-1,y=0,_=0;_<p;_++){var m=_+d-u,b=m*m;if(b>v)y+=4*h;else for(var E=0;E<h;E++){if(n[y+3]-1>=0){var w=E+f-a,P=w*w+b;P<=v&&(v=P,g=y)}y+=4}}if(g>=0){var S=n[g+3]-1,T=n.slice(g,g+4),A=r[S];if(A){var x=A.decodePickingColor(T);return{pickedColor:T,pickedLayer:A,pickedObjectIndex:x}}i.default.error("Picked non-existent layer. Is picking buffer corrupt?")}return s}function l(e){for(var t=e.layer,n=e.info,r=e.mode;t&&n;){var i=n.layer||t;n.layer=t,n=t.pickLayer({info:n,mode:r,sourceLayer:i}),t=t.parentLayer}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_ARRAY=void 0,t.createProps=function(){for(var e=this,t=c(e.constructor),n=t.defaultProps,r=Object.create(n,{_layer:{enumerable:!1,value:e},_asyncProps:{enumerable:!1,value:{}}}),o=0;o<arguments.length;++o)Object.assign(r,arguments[o]);return r.data=r.data||a,(0,i.applyPropOverrides)(r),Object.freeze(r),r};var r,i=n(124),o=(r=n(17))&&r.__esModule?r:{default:r},a=t.EMPTY_ARRAY=Object.freeze([]);function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]}function u(e){var t=s(e,"layerName");return t||o.default.once(0,e.name+".layerName not specified"),t||e.name}function c(e){var t=s(e,"_props");if(t)return t;var n=e.prototype;if(!n)return{defaultProps:{}};var r=Object.getPrototypeOf(e),i=n&&c(r)||null,o=s(e,"defaultProps")||{},a=Object.create(null);return Object.assign(a,i&&i.defaultProps,o),function(e,t){var n={};delete e.id,Object.assign(n,{id:{configurable:!1,writable:!0,value:u(t)}}),Object.defineProperties(e,n)}(a,e),e._props={defaultProps:a},e._props}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n(184)),o=f(n(181)),a=f(n(122)),s=f(n(86)),u=n(115),c=n(12),l=f(n(116));function f(e){return e&&e.__esModule?e:{default:e}}function d(){}var h={id:l.default.string,width:l.default.number.isRequired,height:l.default.number.isRequired,layers:l.default.array,viewports:l.default.array,effects:l.default.arrayOf(l.default.instanceOf(a.default)),layerFilter:l.default.func,glOptions:l.default.object,gl:l.default.object,pickingRadius:l.default.number,onWebGLInitialized:l.default.func,onBeforeRender:l.default.func,onAfterRender:l.default.func,onLayerClick:l.default.func,onLayerHover:l.default.func,useDevicePixels:l.default.bool,debug:l.default.bool,drawPickingColors:l.default.bool},p={id:"deckgl-overlay",pickingRadius:0,layerFilter:null,glOptions:{},gl:null,layers:[],effects:[],onWebGLInitialized:d,onBeforeRender:d,onAfterRender:d,onLayerClick:null,onLayerHover:null,useDevicePixels:!0,debug:!1,drawPickingColors:!1},v=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=Object.assign({},p,t),this.state={},this.needsRedraw=!0,this.layerManager=null,this.effectManager=null,this.viewports=[],this._onRendererInitialized=this._onRendererInitialized.bind(this),this._onRenderFrame=this._onRenderFrame.bind(this),this.canvas=this._createCanvas(t);var r=t,i=r.width,o=r.height,a=r.gl,s=r.glOptions,u=r.debug,l=r.isGeographicCoordinateSystem,f=r.useDevicePixels;this.animationLoop=new c.AnimationLoop({width:i,height:o,useDevicePixels:f,isGeographicCoordinateSystem:l,onCreateContext:function(e){return a||(0,c.createGLContext)(Object.assign({},s,{canvas:n.canvas,debug:u}))},onInitialize:this._onRendererInitialized,onRender:this._onRenderFrame,onBeforeRender:t.onBeforeRender,onAfterRender:t.onAfterRender}),this.animationLoop.start(),this.setProps(t)}return r(e,[{key:"setProps",value:function(e){if(e=Object.assign({},this.props,e),this.props=e,this.layerManager){var t=e,n=t.layers,r=t.pickingRadius,i=t.onLayerClick,o=t.onLayerHover,a=t.useDevicePixels,u=t.drawPickingColors,c=t.layerFilter,l=e.viewports||e.viewport;if(!l){var f=e,d=f.width,h=f.height,p=f.latitude,v=f.longitude,g=f.zoom,y=f.pitch,_=f.bearing;l=[new s.default({width:d,height:h,latitude:p,longitude:v,zoom:g,pitch:y,bearing:_,isGeographicCoordinateSystem:e.isGeographicCoordinateSystem})]}this.layerManager.setParameters({layers:n,viewports:l,useDevicePixels:a,drawPickingColors:u,layerFilter:c,pickingRadius:r,onLayerClick:i,onLayerHover:o}),this.animationLoop.setViewParameters({useDevicePixels:a})}}},{key:"finalize",value:function(){this.animationLoop.stop(),this.animationLoop=null,this.layerManager&&(this.layerManager.finalize(),this.layerManager=null)}},{key:"pickObject",value:function(e){var t=e.x,n=e.y,r=e.radius,i=void 0===r?0:r,o=e.layerIds,a=void 0===o?null:o,s=this.layerManager.pickObject({x:t,y:n,radius:i,layerIds:a,mode:"query"});return s.length?s[0]:null}},{key:"pickObjects",value:function(e){var t=e.x,n=e.y,r=e.width,i=void 0===r?1:r,o=e.height,a=void 0===o?1:o,s=e.layerIds,u=void 0===s?null:s;return this.layerManager.pickObjects({x:t,y:n,width:i,height:a,layerIds:u})}},{key:"getViewports",value:function(){return this.layerManager?this.layerManager.getViewports():[]}},{key:"_createCanvas",value:function(e){if(e.canvas)return e.canvas;var t=e.id,n=e.width,r=e.height,i=e.style,o=document.createElement("canvas");return o.id=t,o.width=n,o.height=r,o.style=i,(e.parent||document.body).appendChild(o),o}},{key:"_onRendererInitialized",value:function(e){var t=e.gl,n=e.canvas;(0,c.setParameters)(t,{blend:!0,blendFunc:[c.GL.SRC_ALPHA,c.GL.ONE_MINUS_SRC_ALPHA,c.GL.ONE,c.GL.ONE_MINUS_SRC_ALPHA],polygonOffsetFill:!0,depthTest:!0,depthFunc:c.GL.LEQUAL}),this.props.onWebGLInitialized(t),this.layerManager=new i.default(t,{eventManager:new u.EventManager(n),isGeographicCoordinateSystem:e.isGeographicCoordinateSystem}),this.effectManager=new o.default({gl:t,layerManager:this.layerManager});var r=!0,a=!1,s=void 0;try{for(var l,f=this.props.effects[Symbol.iterator]();!(r=(l=f.next()).done);r=!0){var d=l.value;this.effectManager.addEffect(d)}}catch(e){a=!0,s=e}finally{try{!r&&f.return&&f.return()}finally{if(a)throw s}}this.setProps(this.props)}},{key:"_onRenderFrame",value:function(e){var t=e.gl,n=this.layerManager.needsRedraw({clearRedrawFlags:!0});n&&(this.props.onBeforeRender({gl:t}),this.layerManager.drawLayers({pass:"screen",redrawReason:n,drawPickingColors:this.props.drawPickingColors}),this.props.onAfterRender({gl:t}))}}]),e}();t.default=v,v.propTypes=h,v.defaultProps=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define NUM_OF_LIGHTS 2\n\n// TODO these should be using lighting_ prefix\nuniform vec3 lightsPosition[16];\nuniform vec2 lightsStrength[16];\nuniform float ambientRatio;\nuniform float diffuseRatio;\nuniform float specularRatio;\n\nfloat lighting_getLightWeight(vec3 position_worldspace_vec3, vec3 normals_worldspace) {\n float lightWeight = 0.0;\n\n vec3 normals_worldspace_vec3 = normals_worldspace.xyz;\n\n vec3 camera_pos_worldspace = project_uCameraPosition;\n vec3 view_direction = normalize(camera_pos_worldspace - position_worldspace_vec3);\n\n for (int i = 0; i < NUM_OF_LIGHTS; i++) {\n vec3 light_position_worldspace = project_position(lightsPosition[i]);\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace_vec3);\n\n vec3 halfway_direction = normalize(light_direction + view_direction);\n float lambertian = dot(light_direction, normals_worldspace_vec3);\n float specular = 0.0;\n if (lambertian > 0.0) {\n float specular_angle = max(dot(normals_worldspace_vec3, halfway_direction), 0.0);\n specular = pow(specular_angle, 32.0);\n }\n lambertian = max(lambertian, 0.0);\n lightWeight += (ambientRatio + lambertian * diffuseRatio + specular * specularRatio) *\n lightsStrength[i].x;\n\n }\n\n return lightWeight;\n}\n\n// DEPRECATED - Backwards compatibility\n\nfloat getLightWeight(vec3 position_worldspace_vec3, vec3 normals_worldspace) {\n return lighting_getLightWeight(position_worldspace_vec3, normals_worldspace);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="\nconst vec2 WORLD_SCALE_FP64 = vec2(81.4873275756836, 0.0000032873668232014097);\n\nuniform vec2 project64_uScale;\nuniform vec2 project_uViewProjectionMatrixFP64[16];\n\n// longitude: lnglat_fp64.xy; latitude: lnglat_fp64.zw\nvoid mercatorProject_fp64(vec4 lnglat_fp64, out vec2 out_val[2]) {\n\n#if defined(NVIDIA_FP64_WORKAROUND)\n out_val[0] = sum_fp64(radians_fp64(lnglat_fp64.xy), PI_FP64 * ONE);\n#else\n out_val[0] = sum_fp64(radians_fp64(lnglat_fp64.xy), PI_FP64);\n#endif\n out_val[1] = sub_fp64(PI_FP64,\n log_fp64(tan_fp64(sum_fp64(PI_4_FP64, radians_fp64(lnglat_fp64.zw) / 2.0))));\n return;\n}\n\nvoid project_position_fp64(vec4 position_fp64, out vec2 out_val[2]) {\n vec2 pos_fp64[2];\n mercatorProject_fp64(position_fp64, pos_fp64);\n vec2 x_fp64 = mul_fp64(pos_fp64[0], project64_uScale);\n vec2 y_fp64 = mul_fp64(pos_fp64[1], project64_uScale);\n out_val[0] = mul_fp64(x_fp64, WORLD_SCALE_FP64);\n out_val[1] = mul_fp64(y_fp64, WORLD_SCALE_FP64);\n\n return;\n}\n\nvec4 project_to_clipspace_fp64(vec2 vertex_pos_modelspace[4]) {\n vec2 vertex_pos_clipspace[4];\n mat4_vec4_mul_fp64(project_uViewProjectionMatrixFP64, vertex_pos_modelspace,\n vertex_pos_clipspace);\n return vec4(\n vertex_pos_clipspace[0].x,\n vertex_pos_clipspace[1].x,\n vertex_pos_clipspace[2].x,\n vertex_pos_clipspace[3].x\n );\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default='// EXTERNAL CONSTANTS: these must match JavaScript constants in "src/core/lib/constants.js"\nconst float COORDINATE_SYSTEM_IDENTITY = 0.;\nconst float COORDINATE_SYSTEM_LNG_LAT = 1.;\nconst float COORDINATE_SYSTEM_METER_OFFSETS = 2.;\nconst float COORDINATE_SYSTEM_LNGLAT_OFFSETS = 3.;\n\nuniform float project_uCoordinateSystem;\nuniform float project_uScale;\nuniform vec3 project_uPixelsPerMeter;\nuniform vec3 project_uPixelsPerDegree;\nuniform vec3 project_uPixelsPerUnit;\nuniform vec3 project_uPixelsPerUnit2;\nuniform vec4 project_uCenter;\nuniform mat4 project_uModelMatrix;\nuniform mat4 project_uViewProjectionMatrix;\nuniform vec2 project_uViewportSize;\nuniform float project_uDevicePixelRatio;\nuniform float project_uFocalDistance;\nuniform vec3 project_uCameraPosition;\n\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / (PI * 2.0);\n\n//\n// Scaling offsets - scales meters to "pixels"\n// Note the scalar version of project_scale is for scaling the z component only\n//\nfloat project_scale(float meters) {\n return meters * project_uPixelsPerMeter.z;\n}\n\nvec2 project_scale(vec2 meters) {\n return meters * project_uPixelsPerMeter.xy;\n}\n\nvec3 project_scale(vec3 meters) {\n return meters * project_uPixelsPerMeter;\n}\n\nvec4 project_scale(vec4 meters) {\n return vec4(meters.xyz * project_uPixelsPerMeter, meters.w);\n}\n\n//\n// Projecting normal - transform deltas from current coordinate system to\n// normals in the worldspace\n//\nvec3 project_normal(vec3 vector) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNG_LAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSETS) {\n return normalize(vector * project_uPixelsPerDegree);\n }\n return normalize(vector * project_uPixelsPerMeter);\n}\n\nvec4 project_offset_(vec4 offset) {\n vec3 pixelsPerUnit = project_uPixelsPerUnit + project_uPixelsPerUnit2 * offset.y;\n return vec4(offset.xyz * pixelsPerUnit, offset.w);\n}\n\n//\n// Projecting positions - non-linear projection: lnglats => unit tile [0-1, 0-1]\n//\nvec2 project_mercator_(vec2 lnglat) {\n return vec2(\n radians(lnglat.x) + PI,\n PI - log(tan_fp32(PI * 0.25 + radians(lnglat.y) * 0.5))\n );\n}\n\n//\n// Projects lnglats (or meter offsets, depending on mode) to pixels\n//\nvec4 project_position(vec4 position) {\n // TODO - why not simply subtract center and fall through?\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNG_LAT) {\n return project_uModelMatrix * vec4(\n project_mercator_(position.xy) * WORLD_SCALE * project_uScale,\n project_scale(position.z),\n position.w\n );\n }\n\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSETS) {\n return project_offset_(position);\n }\n\n // METER_OFFSETS or IDENTITY\n // Apply model matrix\n vec4 position_modelspace = project_uModelMatrix * position;\n return project_offset_(position_modelspace);\n}\n\nvec3 project_position(vec3 position) {\n vec4 projected_position = project_position(vec4(position, 1.0));\n return projected_position.xyz;\n}\n\nvec2 project_position(vec2 position) {\n vec4 projected_position = project_position(vec4(position, 0.0, 1.0));\n return projected_position.xy;\n}\n\n//\n// Projects from "world" coordinates to clip space.\n// Uses project_uViewProjectionMatrix\n//\nvec4 project_to_clipspace(vec4 position) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_METER_OFFSETS ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSETS) {\n // Needs to be divided with project_uPixelsPerMeter\n position.w *= project_uPixelsPerMeter.z;\n }\n return project_uViewProjectionMatrix * position + project_uCenter;\n}\n\n// Returns a clip space offset that corresponds to a given number of **non-device** pixels\nvec4 project_pixel_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / project_uViewportSize * project_uDevicePixelRatio;\n return vec4(offset * project_uFocalDistance, 0.0, 0.0);\n}\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniformsFromViewport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.viewport,n=e.modelMatrix,r=void 0===n?null:n,i=e.coordinateSystem,u=void 0===i?s.COORDINATE_SYSTEM.LNGLAT:i,c=e.coordinateOrigin,l=void 0===c?v:c,f=e.projectionMode,d=e.positionOrigin;return(0,a.default)(t),void 0!==f&&o.default.removed("projectionMode","coordinateSystem"),void 0!==d&&o.default.removed("positionOrigin","coordinateOrigin"),Object.assign({project_uModelMatrix:r||h},g({viewport:t,coordinateSystem:u,coordinateOrigin:l}))};var r=l(n(75)),i=l(n(103)),o=l(n(17)),a=l(n(1)),s=n(70),u=l(n(196)),c=n(79);function l(e){return e&&e.__esModule?e:{default:e}}var f=[0,0,0,0],d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],p=[0,0,0],v=[0,0,0],g=(0,u.default)((function(e){var t=e.viewport,n=e.coordinateSystem,o=e.coordinateOrigin,u=function(e){var t=e.viewport,n=e.coordinateSystem,o=e.coordinateOrigin,a=e.coordinateZoom,u=t.viewMatrixUncentered,l=t.viewMatrix,h=t.projectionMatrix,p=t.viewProjectionMatrix,v=void 0;switch(n){case s.COORDINATE_SYSTEM.IDENTITY:case s.COORDINATE_SYSTEM.LNGLAT:v=f;break;case s.COORDINATE_SYSTEM.LNGLAT_OFFSETS:case s.COORDINATE_SYSTEM.METER_OFFSETS:var g=(0,c.lngLatToWorld)(o,Math.pow(2,a));v=(0,i.default)([],[g[0],g[1],0,1],p),l=u||l,p=(0,r.default)([],h,l),p=(0,r.default)([],p,d);break;default:throw new Error("Unknown projection mode")}return{viewMatrix:l,viewProjectionMatrix:p,projectionCenter:v,cameraPos:t.cameraPosition}}({coordinateSystem:n,coordinateOrigin:o,coordinateZoom:t.zoom,viewport:t}),l=u.projectionCenter,h=u.viewProjectionMatrix,v=u.cameraPos;(0,a.default)(h,"Viewport missing modelViewProjectionMatrix");var g=t.getDistanceScales(),y="undefined"!=typeof window&&window.devicePixelRatio||1,_={project_uCoordinateSystem:n,project_uCenter:l,project_uViewportSize:[t.width*y,t.height*y],project_uDevicePixelRatio:y,project_uFocalDistance:t.focalDistance||1,project_uPixelsPerMeter:g.pixelsPerMeter,project_uPixelsPerDegree:g.pixelsPerDegree,project_uPixelsPerUnit:g.pixelsPerMeter,project_uPixelsPerUnit2:p,project_uScale:t.scale,project_uViewProjectionMatrix:h,project_uCameraPosition:v};if(n===s.COORDINATE_SYSTEM.METER_OFFSETS){var m=t.getDistanceScales(o);_.project_uPixelsPerUnit=m.pixelsPerMeter,_.project_uPixelsPerUnit2=m.pixelsPerMeter2}if(n===s.COORDINATE_SYSTEM.LNGLAT_OFFSETS){var b=t.getDistanceScales(o);_.project_uPixelsPerUnit=b.pixelsPerDegree,_.project_uPixelsPerUnit2=b.pixelsPerDegree2}return _}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(193)),o=n(84),a=n(79),s=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}var c=["longitude","latitude","zoom","bearing","pitch"],l=["latitude","longitude","zoom","width","height"],f=["bearing","pitch"],d=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.propNames=c,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"initializeProps",value:function(e,t){var n={},r={},i=!0,a=!1,u=void 0;try{for(var c,d=l[Symbol.iterator]();!(i=(c=d.next()).done);i=!0){var h=c.value,p=e[h],v=t[h];(0,s.default)((0,o.isValid)(p)&&(0,o.isValid)(v),h+" must be supplied for transition"),n[h]=p,r[h]=(0,o.getEndValueByShortestPath)(h,p,v)}}catch(e){a=!0,u=e}finally{try{!i&&d.return&&d.return()}finally{if(a)throw u}}var g=!0,y=!1,_=void 0;try{for(var m,b=f[Symbol.iterator]();!(g=(m=b.next()).done);g=!0){var E=m.value,w=e[E]||0,P=t[E]||0;n[E]=w,r[E]=(0,o.getEndValueByShortestPath)(E,w,P)}}catch(e){y=!0,_=e}finally{try{!g&&b.return&&b.return()}finally{if(y)throw _}}return{start:n,end:r}}},{key:"interpolateProps",value:function(e,t,n){var r=(0,a.flyToViewport)(e,t,n),i=!0,s=!1,u=void 0;try{for(var c,l=f[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var d=c.value;r[d]=(0,o.lerp)(e[d],t[d],n)}}catch(e){s=!0,u=e}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return r}}]),t}(i.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(e){return e.length},a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;i(this,e),this.sortedBins=this.getSortedBins(t,n),this.maxCount=this.getMaxCount(),this.binMap=this.getBinMap()}return r(e,[{key:"getSortedBins",value:function(e,t){return e.reduce((function(e,n,r){var i=t(n.points);return null!=i&&e.push({i:Number.isFinite(n.index)?n.index:r,value:i,counts:n.points.length}),e}),[]).sort((function(e,t){return e.value-t.value}))}},{key:"getValueRange",value:function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,2),n=t[0],r=t[1],i=this.sortedBins.length;if(!i)return[0,0];var o=Math.ceil(n/100*(i-1)),a=Math.floor(r/100*(i-1));return[this.sortedBins[o].value,this.sortedBins[a].value]}},{key:"getMaxCount",value:function(){var e=0;return this.sortedBins.forEach((function(t){return e=e>t.counts?e:t.counts})),e}},{key:"getBinMap",value:function(){return this.sortedBins.reduce((function(e,t){return Object.assign(e,(n={},i=t,(r=t.i)in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n));var n,r,i}),{})}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultColorRange=[[255,255,178],[254,217,118],[254,178,76],[253,141,60],[240,59,32],[189,0,38]]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};function i(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))}t.get=function(e,t){var n=function(e){if("string"==typeof e){var t=s[e];return t||(t=e.split("."),s[e]=t),t}return Array.isArray(e)?e:[e]}(t),r=e,o=!0,a=!1,c=void 0;try{for(var l,f=n[Symbol.iterator]();!(o=(l=f.next()).done);o=!0){var d=l.value;if(!i(r))return;r=u(r)(r,d)}}catch(e){a=!0,c=e}finally{try{!o&&f.return&&f.return()}finally{if(a)throw c}}return r};var o=function(e,t){return e[t]},a=function(e,t){return e.get(t)},s={};function u(e){return Object.getPrototypeOf(e).get?a:o}},function(e,t,n){"use strict";(function(t,n){var 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},i="object"!==(void 0===t?"undefined":r(t))||"[object process]"!==String(t)||t.browser;e.exports={window:"undefined"!=typeof window?window:n,global:void 0!==n?n:window,document:"undefined"!=typeof document?document:{},isBrowser:i}}).call(t,n(26),n(47))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inheritsFrom=function(e,t){for(;e;){if(e===t)return!0;e=Object.getPrototypeOf(e)}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.linearScale=function(e,t,n){return(n-e[0])/(e[1]-e[0])*(t[1]-t[0])+t[0]},t.quantizeScale=function(e,t,n){var r=(e[1]-e[0])/t.length,i=Math.floor((n-e[0])/r);return t[Math.max(Math.min(i,t.length-1),0)]},t.getQuantizeScale=function(e,t){return function(n){var r=(e[1]-e[0])/t.length,i=Math.floor((n-e[0])/r),o=Math.max(Math.min(i,t.length-1),0);return t[o]}},t.getLinearScale=function(e,t){return function(n){return(n-e[0])/(e[1]-e[0])*(t[1]-t[0])+t[0]}},t.clamp=function(e,t){var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,2),r=n[0],i=n[1];return Math.min(i,Math.max(r,t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(42))&&r.__esModule?r:{default:r},o=n(16);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=o.experimental.SphericalCoordinates;function c(e){var t=e.bearing,n=e.pitch;return new u({bearing:t,pitch:n}).toVector3().normalize()}var l=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,t);var n=e.modelMatrix,r=void 0===n?null:n,i=e.bearing,u=e.up,l=void 0===u?[0,0,1]:u,f=c({bearing:i,pitch:89}),d=r?r.transformDirection(f):f,h=(new o.Matrix4).lookAt({eye:[0,0,0],center:d,up:l});return s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign({},e,{zoom:null,viewMatrix:h})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);t.default=l,l.displayName="FirstPersonViewport"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(42)),i=a(n(102)),o=a(n(234));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){var n=e.width,r=e.height,a=e.eye,s=void 0===a?[0,0,1]:a,u=e.lookAt,c=void 0===u?[0,0,0]:u,l=e.up,f=void 0===l?[0,1,0]:l,d=e.near,h=void 0===d?1:d,p=e.far,v=void 0===p?100:p,g=e.left,y=e.top,_=e.right,m=void 0===_?null:_,b=e.bottom,E=void 0===b?null:b;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m=Number.isFinite(m)?m:g+n,E=Number.isFinite(E)?E:y+r,function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{viewMatrix:(0,i.default)([],s,c,f),projectionMatrix:(0,o.default)([],g,m,E,y,h,v),width:n,height:r}))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(42)),i=a(n(102)),o=a(n(76));function a(e){return e&&e.__esModule?e:{default:e}}var s=Math.PI/180,u=function(e){function t(e){var n=e.width,r=e.height,a=e.eye,u=e.lookAt,c=void 0===u?[0,0,0]:u,l=e.up,f=void 0===l?[0,1,0]:l,d=e.fovy,h=void 0===d?75:d,p=e.near,v=void 0===p?1:p,g=e.far,y=void 0===g?100:g,_=e.aspect,m=void 0===_?null:_;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var b=h*s;return m=Number.isFinite(m)?m:n/r,function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{viewMatrix:(0,i.default)([],a,c,f),projectionMatrix:(0,o.default)([],b,m,v,y),width:n,height:r}))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(42))&&r.__esModule?r:{default:r},o=n(16),a=o.experimental.SphericalCoordinates,s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r=e.bearing,i=e.pitch,s=e.position,u=e.up,c=50*e.zoom,l=new a({bearing:(n={bearing:r,pitch:i}).bearing,pitch:n.pitch}).toVector3().normalize().scale(-c).multiply(new o.Vector3(1,1,-1)),f=(new o.Matrix4).multiplyRight((new o.Matrix4).lookAt({eye:l,center:s,up:u}));return function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign({},e,{zoom:null,viewMatrix:f})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);t.default=s,s.displayName="ThirdPersonViewport"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default='#define SHADER_NAME reflection-effect-fs\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform sampler2D reflectionTexture;\nuniform int reflectionTextureWidth;\nuniform int reflectionTextureHeight;\n\nuniform float reflectivity;\nuniform float blur;\n\n\nvarying vec2 uv;\n\n#define KERNEL_SIZE 7\n\n/*\n * Samples from tex with a gaussian-shaped patch, centered at uv and\n * with standard deviation sigma. The size of the texture in\n * pixels must be specified by dim\n */\nvec4 sample_gaussian(sampler2D tex, vec2 dim, vec2 uv, float sigma) {\n if (sigma == 0.0) {\n return texture2D(tex, uv);\n }\n\n vec2 delta = 1.0 / dim;\n vec2 top_left = uv - delta * float(KERNEL_SIZE+1) / 2.0;\n\n vec4 color = vec4(0);\n float sum = 0.0;\n for (int i = 0; i < KERNEL_SIZE; ++i) {\n for (int j = 0; j < KERNEL_SIZE; ++j) {\n vec2 uv2 = top_left + vec2(i, j) * delta;\n float d = length((uv2 - uv) * dim);\n float f = exp(-(d*d) / (2.0*sigma * sigma));\n color += f * texture2D(tex, uv2);\n sum += f;\n }\n }\n return color / sum;\n}\n\nvoid main(void) {\n //map blur in [0, 1] to sigma in [0, inf]\n //alpha will determine the "steepness" of our curve.\n //this was picked just to make the scale feel "natural"\n //if our image is 1000 pixels wide, a blur of 0.5 should correspond\n //to a sigma of 1 pixels\n float alpha = 1000.0;\n float sigma = blur / (alpha * (1.0 - blur));\n //let this be our standard deviation in terms of screen-widths.\n //rewrite this in terms of pixels.\n sigma *= float(reflectionTextureWidth);\n\n\n gl_FragColor = sample_gaussian(reflectionTexture, vec2(reflectionTextureWidth,\n reflectionTextureHeight), vec2(uv.x, 1. - uv.y), sigma);\n //because our canvas expects alphas to be pre-multiplied, we multiply by whole\n //color vector by reflectivity, not just the alpha channel\n gl_FragColor *= reflectivity;\n}\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="#define SHADER_NAME reflection-effect-vs\n\nattribute vec3 vertices;\n\nvarying vec2 uv;\n\nvoid main(void) {\n uv = vertices.xy;\n gl_Position = vec4(2. * vertices.xy - vec2(1., 1.), 1., 1.);\n}\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(12),o=c(n(122)),a=c(n(86)),s=c(n(358)),u=c(n(357));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;l(this,t);var r=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.reflectivity=e,r.blur=n,r.framebuffer=null,r.setNeedsRedraw(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getShaders",value:function(){return{vs:s.default,fs:u.default,modules:[],shaderCache:this.context.shaderCache}}},{key:"initialize",value:function(e){var t=e.gl;e.layerManager,this.unitQuad=new i.Model(t,Object.assign({},this.getShaders(),{id:"reflection-effect",geometry:new i.Geometry({drawMode:i.GL.TRIANGLE_FAN,vertices:new Float32Array([0,0,0,1,0,0,1,1,0,0,1,0])})})),this.framebuffer=new i.Framebuffer(t,{depth:!0})}},{key:"preDraw",value:function(e){var t=e.gl,n=e.layerManager,r=n.context.viewport,o="undefined"!=typeof window&&window.devicePixelRatio||1;this.framebuffer.resize({width:o*r.width,height:o*r.height});var s=r.pitch;this.framebuffer.bind(),n.setViewport(new a.default(Object.assign({},r,{pitch:-180-s}))),t.clear(i.GL.COLOR_BUFFER_BIT|i.GL.DEPTH_BUFFER_BIT),n.drawLayers({pass:"reflection"}),n.setViewport(r),this.framebuffer.unbind()}},{key:"draw",value:function(e){e.gl,e.layerManager,this.unitQuad.render({reflectionTexture:this.framebuffer.texture,reflectionTextureWidth:this.framebuffer.width,reflectionTextureHeight:this.framebuffer.height,reflectivity:this.reflectivity,blur:this.blur})}},{key:"finalize",value:function(e){e.gl,e.layerManager}}]),t}(o.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(117),o=c(i),a=c(n(197)),s=n(351),u=n(13);function c(e){return e&&e.__esModule?e:{default:e}}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var f=u.experimental.DeckGLJS,d=u.experimental.log,h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n.children=[],(0,a.default)(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.deck=new f(Object.assign({},this.props,{canvas:this.overlay})),this._updateFromProps(this.props)}},{key:"componentWillReceiveProps",value:function(e){this._updateFromProps(e)}},{key:"componentWillUnmount",value:function(){this.deck.finalize()}},{key:"queryObject",value:function(e){return d.deprecated("queryObject","pickObject"),this.deck.pickObject(e)}},{key:"pickObject",value:function(e){var t=e.x,n=e.y,r=e.radius,i=void 0===r?0:r,o=e.layerIds,a=void 0===o?null:o;return this.deck.pickObject({x:t,y:n,radius:i,layerIds:a})}},{key:"queryVisibleObjects",value:function(e){return d.deprecated("queryVisibleObjects","pickObjects"),this.pickObjects(e)}},{key:"pickObjects",value:function(e){var t=e.x,n=e.y,r=e.width,i=void 0===r?1:r,o=e.height,a=void 0===o?1:o,s=e.layerIds,u=void 0===s?null:s;return this.deck.pickObjects({x:t,y:n,width:i,height:a,layerIds:u})}},{key:"_updateFromProps",value:function(e){var t=this._extractJSXLayers(e.children),n=t.layers,r=t.children;this.deck&&this.deck.setProps(Object.assign({},e,{layers:n?[].concat(l(n),l(e.layers)):e.layers})),this.children=r}},{key:"_extractJSXLayers",value:function(e){var t=[],n=null;return o.default.Children.forEach(e,(function(e){if(e){var r=e.type;if((0,s.inheritsFrom)(r,u.Layer)){var i=new r(e.props);(n=n||[]).push(i)}else t.push(e)}})),{layers:n,children:t}}},{key:"_renderChildrenUnderViewports",value:function(e){var t=this,n=this.deck?this.deck.getViewports():[],r={};return n.forEach((function(e){e.id&&(r[e.id]=e)})),e.map((function(e,n){return e.props.viewportId?t._positionChild({child:e,viewportMap:r,i:n}):e}))}},{key:"_positionChild",value:function(e){var t=e.child,n=e.viewportMap,r=e.i,o=t.props.viewportId,a=o&&n[o];if(!a)return null;var s=a.x,u=a.y,c=a.width,l=a.height,f=Object.assign({},t.props,{width:c,height:l});Object.assign(f,a.getMercatorParams(),{visible:a.isMapSynched()});var d=(0,i.cloneElement)(t,f),h={position:"absolute",left:s,top:u,width:c,height:l},p="viewport-child-"+o+"-"+r;return(0,i.createElement)("div",{key:p,id:p,style:h},d)}},{key:"render",value:function(){var e=this,t=this._renderChildrenUnderViewports(this.children),n=this.props,r=n.id,o=n.width,a=n.height,s=n.style,u=(0,i.createElement)("canvas",{ref:function(t){return e.overlay=t},key:"overlay",id:r,style:Object.assign({},{position:"absolute",left:0,top:0,width:o,height:a},s)});return t.push(u),(0,i.createElement)("div",{id:"deckgl-wrapper"},t)}}]),t}(o.default.Component);t.default=h,h.propTypes=f.propTypes,h.defaultProps=f.defaultProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(117),o=s(n(189)),a=s(n(85));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.controller=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"getViewport",value:function(e){return new a.default(e)}}]),r(t,[{key:"componentDidMount",value:function(){this.controller=new o.default(Object.assign({},this.props,{canvas:this.eventCanvas}))}},{key:"componentWillUpdate",value:function(e){this.controller.setProps(e)}},{key:"componentWillUnmount",value:function(){this.controller.finalize()}},{key:"render",value:function(){var e=this,t=this.props,n={width:t.width,height:t.height,position:"relative"};return(0,i.createElement)("div",{key:"map-controls",ref:function(t){return e.eventCanvas=t},style:n},this.props.children)}}]),t}(i.PureComponent);t.default=u,u.displayName="OrbitController",u.propTypes=o.default.propTypes,u.defaultProps=o.default.defaultProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(360);Object.defineProperty(t,"DeckGL",{enumerable:!0,get:function(){return u(r).default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u(r).default}});var i=n(365);Object.defineProperty(t,"ViewportController",{enumerable:!0,get:function(){return u(i).default}});var o=n(363);Object.defineProperty(t,"MapController",{enumerable:!0,get:function(){return u(o).default}});var a=n(361);Object.defineProperty(t,"OrbitController",{enumerable:!0,get:function(){return u(a).default}});var s=n(197);function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"autobind",{enumerable:!0,get:function(){return u(s).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(117),a=(r=n(188))&&r.__esModule?r:{default:r},s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.controller=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.controller=new a.default(Object.assign({},this.props,{canvas:this.eventCanvas}))}},{key:"componentWillUpdate",value:function(e){this.controller.setProps(e)}},{key:"componentWillUnmount",value:function(){this.controller.finalize()}},{key:"render",value:function(){var e=this,t=this.props,n={width:t.width,height:t.height,position:"relative"};return(0,o.createElement)("div",{key:"map-controls",ref:function(t){return e.eventCanvas=t},style:n},this.props.children)}}]),t}(o.PureComponent);t.default=s,s.displayName="MapController",s.propTypes=a.default.propTypes,s.defaultProps=a.default.defaultProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="-webkit-";t.default={GRABBING:r+"grabbing",GRAB:r+"grab",POINTER:"pointer"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(117),o=c(n(116)),a=n(115),s=n(13),u=c(n(364));function c(e){return e&&e.__esModule?e:{default:e}}var l=s.experimental.ViewportControls,f=s.experimental.TransitionManager,d={viewportState:o.default.func,state:o.default.object,width:o.default.number.isRequired,height:o.default.number.isRequired,longitude:o.default.number.isRequired,latitude:o.default.number.isRequired,zoom:o.default.number.isRequired,bearing:o.default.number,pitch:o.default.number,altitude:o.default.number,position:o.default.array,maxZoom:o.default.number,minZoom:o.default.number,maxPitch:o.default.number,minPitch:o.default.number,onViewportChange:o.default.func,transitionDuration:o.default.number,transitionInterpolator:o.default.object,transitionInterruption:o.default.number,transitionEasing:o.default.func,onTransitionStart:o.default.func,onTransitionInterrupt:o.default.func,onTransitionEnd:o.default.func,scrollZoom:o.default.bool,dragPan:o.default.bool,dragRotate:o.default.bool,doubleClickZoom:o.default.bool,touchZoomRotate:o.default.bool,getCursor:o.default.func,controls:o.default.shape({events:o.default.arrayOf(o.default.string),handleEvent:o.default.func})},h=Object.assign({},f.defaultProps,{onViewportChange:null,scrollZoom:!0,dragPan:!0,dragRotate:!0,doubleClickZoom:!0,touchZoomRotate:!0,getCursor:function(e){return e.isDragging?u.default.GRABBING:u.default.GRAB}}),p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isDragging:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this._eventManager=new a.EventManager(this.eventCanvas),this._controls=this.props.controls||new l(this.props.viewportState),this._controls.setOptions(Object.assign({},this.props,{onStateChange:this._onInteractiveStateChange.bind(this),eventManager:this._eventManager})),this._transitionManger=new f(this.props)}},{key:"shouldComponentUpdate",value:function(e,t){return!this._transitionManger||!this._transitionManger.processViewportChange(e)}},{key:"componentWillUpdate",value:function(e){this._controls&&this._controls.setOptions(e)}},{key:"componentWillUnmount",value:function(){this._eventManager.destroy()}},{key:"_onInteractiveStateChange",value:function(e){var t=e.isDragging,n=void 0!==t&&t;n!==this.state.isDragging&&this.setState({isDragging:n})}},{key:"render",value:function(){var e=this,t=this.props,n={width:t.width,height:t.height,position:"relative",cursor:(0,t.getCursor)(this.state)};return(0,i.createElement)("div",{key:"map-controls",ref:function(t){return e.eventCanvas=t},style:n},this.props.children)}}]),t}(i.Component);t.default=p,p.displayName="ViewportController",p.propTypes=d,p.defaultProps=h},function(e,t,n){(function(t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"==typeof e,l=t.regeneratorRuntime;if(l)c&&(e.exports=l);else{(l=t.regeneratorRuntime=c?e.exports:{}).wrap=b;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={},g={};g[a]=function(){return this};var y=Object.getPrototypeOf,_=y&&y(y(M([])));_&&_!==r&&i.call(_,a)&&(g=_);var m=S.prototype=w.prototype=Object.create(g);P.prototype=m.constructor=S,S.constructor=P,S[u]=P.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===P||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(m),e},l.awrap=function(e){return{__await:e}},T(A.prototype),A.prototype[s]=function(){return this},l.AsyncIterator=A,l.async=function(e,t,n,r){var i=new A(b(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(m),m[u]="Generator",m[a]=function(){return this},m.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=M,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(R),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:M(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(e,t,n,r){var i=t&&t.prototype instanceof w?t:w,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=E(e,t,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function E(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function w(){}function P(){}function S(){}function T(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function A(e){function n(t,r,o,a){var s=E(e[t],e,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(e){n("next",e,o,a)}),(function(e){n("throw",e,o,a)})):Promise.resolve(c).then((function(e){u.value=e,o(u)}),a)}a(s.arg)}var r;"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n)),this._invoke=function(e,t){function i(){return new Promise((function(r,i){n(e,t,r,i)}))}return r=r?r.then(i,i):i()}}function x(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,x(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=E(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function M(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:n,done:!0}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(t,n(47))},function(e,t,n){n(374),e.exports=n(33).RegExp.escape},function(e,t,n){var r=n(5),i=n(91),o=n(6)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(4),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},function(e,t,n){"use strict";var r=n(2),i=n(37),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},function(e,t,n){var r=n(53),i=n(95),o=n(73);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(0),i=n(372)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},function(e,t,n){var r=n(0);r(r.P,"Array",{copyWithin:n(199)}),n(43)("copyWithin")},function(e,t,n){"use strict";var r=n(0),i=n(32)(4);r(r.P+r.F*!n(29)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.P,"Array",{fill:n(128)}),n(43)("fill")},function(e,t,n){"use strict";var r=n(0),i=n(32)(2);r(r.P+r.F*!n(29)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(0),i=n(32)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(43)(o)},function(e,t,n){"use strict";var r=n(0),i=n(32)(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(43)(o)},function(e,t,n){"use strict";var r=n(0),i=n(32)(0),o=n(29)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(28),i=n(0),o=n(14),a=n(210),s=n(136),u=n(11),c=n(130),l=n(153);i(i.S+i.F*!n(93)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,d=o(e),h="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v,y=0,_=l(d);if(g&&(v=r(v,p>2?arguments[2]:void 0,2)),null==_||h==Array&&s(_))for(n=new h(t=u(d.length));t>y;y++)c(n,y,g?v(d[y],y):d[y]);else for(f=_.call(d),n=new h;!(i=f.next()).done;y++)c(n,y,g?a(f,v,[i.value,y],!0):i.value);return n.length=y,n}})},function(e,t,n){"use strict";var r=n(0),i=n(87)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(29)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(91)})},function(e,t,n){"use strict";var r=n(0),i=n(24),o=[].join;r(r.P+r.F*(n(72)!=Object||!n(29)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(0),i=n(24),o=n(36),a=n(11),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(29)(s)),"Array",{lastIndexOf:function(e){if(u)return s.apply(this,arguments)||0;var t=i(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){"use strict";var r=n(0),i=n(32)(1);r(r.P+r.F*!n(29)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(0),i=n(130);r(r.S+r.F*n(4)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(0),i=n(201);r(r.P+r.F*!n(29)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(0),i=n(201);r(r.P+r.F*!n(29)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var r=n(0),i=n(134),o=n(27),a=n(57),s=n(11),u=[].slice;r(r.P+r.F*n(4)((function(){i&&u.call(i)})),"Array",{slice:function(e,t){var n=s(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return u.call(this,e,t);for(var i=a(e,n),c=a(t,n),l=s(c-i),f=new Array(l),d=0;d<l;d++)f[d]="String"==r?this.charAt(i+d):this[i+d];return f}})},function(e,t,n){"use strict";var r=n(0),i=n(32)(3);r(r.P+r.F*!n(29)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(0),i=n(15),o=n(14),a=n(4),s=[].sort,u=[1,2,3];r(r.P+r.F*(a((function(){u.sort(void 0)}))||!a((function(){u.sort(null)}))||!n(29)(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},function(e,t,n){n(56)("Array")},function(e,t,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){var r=n(0),i=n(369);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,n){"use strict";var r=n(0),i=n(14),o=n(37);r(r.P+r.F*n(4)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(6)("toPrimitive"),i=Date.prototype;r in i||n(19)(i,r,n(370))},function(e,t,n){var r=Date.prototype,i="Invalid Date",o="toString",a=r[o],s=r.getTime;new Date(NaN)+""!=i&&n(20)(r,o,(function(){var e=s.call(this);return e==e?a.call(this):i}))},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(202)})},function(e,t,n){"use strict";var r=n(5),i=n(23),o=n(6)("hasInstance"),a=Function.prototype;o in a||n(10).f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(10).f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n(9)&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){var r=n(0),i=n(213),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,n){var r=n(0),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(0),i=n(140);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(0),i=n(139);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,n){var r=n(0);r(r.S,"Math",{fround:n(212)})},function(e,t,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,a=0,s=arguments.length,u=0;a<s;)u<(n=i(arguments[a++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(4)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log1p:n(213)})},function(e,t,n){var r=n(0);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(0);r(r.S,"Math",{sign:n(140)})},function(e,t,n){var r=n(0),i=n(139),o=Math.exp;r(r.S+r.F*n(4)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(0),i=n(139),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(0);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){"use strict";var r=n(3),i=n(18),o=n(27),a=n(135),s=n(37),u=n(4),c=n(52).f,l=n(22).f,f=n(10).f,d=n(65).trim,h="Number",p=r[h],v=p,g=p.prototype,y=o(n(51)(g))==h,_="trim"in String.prototype,m=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,o=(t=_?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,u=t.slice(2),c=0,l=u.length;c<l;c++)if((a=u.charCodeAt(c))<48||a>i)return NaN;return parseInt(u,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(y?u((function(){g.valueOf.call(n)})):o(n)!=h)?a(new v(m(t)),n,p):m(t)};for(var b,E=n(9)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;E.length>w;w++)i(v,b=E[w])&&!i(p,b)&&f(p,b,l(v,b));p.prototype=g,g.constructor=p,n(20)(r,h,p)}},function(e,t,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(0),i=n(3).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(0);r(r.S,"Number",{isInteger:n(209)})},function(e,t,n){var r=n(0);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(0),i=n(209),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(0),i=n(221);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,n){var r=n(0),i=n(222);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,n){"use strict";var r=n(0),i=n(36),o=n(198),a=n(147),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",d=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=u(r/1e7)},h=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=u(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call(f,7-n.length)+n}return t},v=function(e,t,n){return 0===t?n:t%2==1?v(e,t-1,n*e):v(e*e,t/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(4)((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,u=o(this,l),c=i(e),g="",y=f;if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(g="-",u=-u),u>1e-21)if(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*v(2,69,1))-69,n=t<0?u*v(2,-t,1):u/v(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(v(10,r,1),0),r=t-1;r>=23;)h(1<<23),r-=23;h(1<<r),d(1,1),h(2),y=p()}else d(0,n),d(1<<-t,0),y=p()+a.call(f,c);return c>0?g+((s=y.length)<=c?"0."+a.call(f,c-s)+y:y.slice(0,s-c)+"."+y.slice(s-c)):g+y}})},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(198),a=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(215)})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(51)})},function(e,t,n){var r=n(0);r(r.S+r.F*!n(9),"Object",{defineProperties:n(216)})},function(e,t,n){var r=n(0);r(r.S+r.F*!n(9),"Object",{defineProperty:n(10).f})},function(e,t,n){var r=n(5),i=n(44).onFreeze;n(35)("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(24),i=n(22).f;n(35)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},function(e,t,n){n(35)("getOwnPropertyNames",(function(){return n(217).f}))},function(e,t,n){var r=n(14),i=n(23);n(35)("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},function(e,t,n){var r=n(5);n(35)("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},function(e,t,n){var r=n(5);n(35)("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(5);n(35)("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(0);r(r.S,"Object",{is:n(373)})},function(e,t,n){var r=n(14),i=n(53);n(35)("keys",(function(){return function(e){return i(r(e))}}))},function(e,t,n){var r=n(5),i=n(44).onFreeze;n(35)("preventExtensions",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(5),i=n(44).onFreeze;n(35)("seal",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(143).set})},function(e,t,n){"use strict";var r=n(71),i={};i[n(6)("toStringTag")]="z",i+""!="[object z]"&&n(20)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){var r=n(0),i=n(221);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){var r=n(0),i=n(222);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(e,t,n){"use strict";var r,i,o,a,s=n(50),u=n(3),c=n(28),l=n(71),f=n(0),d=n(5),h=n(15),p=n(48),v=n(49),g=n(99),y=n(149).set,_=n(141)(),m=n(142),b=n(223),E=n(224),w="Promise",P=u.TypeError,S=u.process,T=u[w],A="process"==l(S),x=function(){},O=i=m.f,R=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[n(6)("species")]=function(e){e(x,x)};return(A||"function"==typeof PromiseRejectionEvent)&&e.then(x)instanceof t}catch(e){}}(),C=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var n=e._c;_((function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a=i?t.ok:t.fail,s=t.resolve,u=t.reject,c=t.domain;try{a?(i||(2==e._h&&I(e),e._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===t.promise?u(P("Promise-chain cycle")):(o=C(n))?o.call(n,s,u):s(n)):u(r)}catch(e){u(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&k(e)}))}},k=function(e){y.call(u,(function(){var t,n,r,i=e._v,o=L(e);if(o&&(t=b((function(){A?S.emit("unhandledRejection",i,e):(n=u.onunhandledrejection)?n({promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=A||L(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},L=function(e){return 1!==e._h&&0===(e._a||e._c).length},I=function(e){y.call(u,(function(){var t;A?S.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})}))},N=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw P("Promise can't be resolved itself");(t=C(e))?_((function(){var r={_w:n,_d:!1};try{t.call(e,c(F,r,1),c(N,r,1))}catch(e){N.call(r,e)}})):(n._v=e,n._s=1,M(n,!1))}catch(e){N.call({_w:n,_d:!1},e)}}};R||(T=function(e){p(this,T,w,"_h"),h(e),r.call(this);try{e(c(F,this,1),c(N,this,1))}catch(e){N.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(55)(T.prototype,{then:function(e,t){var n=O(g(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=A?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(F,e,1),this.reject=c(N,e,1)},m.f=O=function(e){return e===T||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!R,{Promise:T}),n(64)(T,w),n(56)(w),a=n(33)[w],f(f.S+f.F*!R,w,{reject:function(e){var t=O(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!R),w,{resolve:function(e){return E(s&&this===a?T:this,e)}}),f(f.S+f.F*!(R&&n(93)((function(e){T.all(e).catch(x)}))),w,{all:function(e){var t=this,n=O(t),r=n.resolve,i=n.reject,o=b((function(){var n=[],o=0,a=1;v(e,!1,(function(e){var s=o++,u=!1;n.push(void 0),a++,t.resolve(e).then((function(e){u||(u=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=O(t),r=n.reject,i=b((function(){v(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},function(e,t,n){var r=n(0),i=n(15),o=n(2),a=(n(3).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(4)((function(){a((function(){}))})),"Reflect",{apply:function(e,t,n){var r=i(e),u=o(n);return a?a(r,t,u):s.call(r,t,u)}})},function(e,t,n){var r=n(0),i=n(51),o=n(15),a=n(2),s=n(5),u=n(4),c=n(202),l=(n(3).Reflect||{}).construct,f=u((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),d=!u((function(){l((function(){}))}));r(r.S+r.F*(f||d),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!f)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var u=n.prototype,h=i(s(u)?u:Object.prototype),p=Function.apply.call(e,h,t);return s(p)?p:h}})},function(e,t,n){var r=n(10),i=n(0),o=n(2),a=n(37);i(i.S+i.F*n(4)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(0),i=n(22).f,o=n(2);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(0),i=n(2),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(137)(o,"Object",(function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,n){var r=n(22),i=n(0),o=n(2);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(0),i=n(23),o=n(2);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){var r=n(22),i=n(23),o=n(18),a=n(0),s=n(5),u=n(2);a(a.S,"Reflect",{get:function e(t,n){var a,c,l=arguments.length<3?t:arguments[2];return u(t)===l?t[n]:(a=r.f(t,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=i(t))?e(c,n,l):void 0}})},function(e,t,n){var r=n(0);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(0),i=n(2),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(220)})},function(e,t,n){var r=n(0),i=n(2),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(0),i=n(143);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){var r=n(10),i=n(22),o=n(23),a=n(18),s=n(0),u=n(54),c=n(2),l=n(5);s(s.S,"Reflect",{set:function e(t,n,s){var f,d,h=arguments.length<4?t:arguments[3],p=i.f(c(t),n);if(!p){if(l(d=o(t)))return e(d,n,s,h);p=u(0)}return a(p,"value")?!(!1===p.writable||!l(h)||((f=i.f(h,n)||u(0)).value=s,r.f(h,n,f),0)):void 0!==p.set&&(p.set.call(h,s),!0)}})},function(e,t,n){var r=n(3),i=n(135),o=n(10).f,a=n(52).f,s=n(92),u=n(90),c=r.RegExp,l=c,f=c.prototype,d=/a/g,h=/a/g,p=new c(d)!==d;if(n(9)&&(!p||n(4)((function(){return h[n(6)("match")]=!1,c(d)!=d||c(h)==h||"/a/i"!=c(d,"i")})))){c=function(e,t){var n=this instanceof c,r=s(e),o=void 0===t;return!n&&r&&e.constructor===c&&o?e:i(p?new l(r&&!o?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&o?u.call(e):t),n?this:f,c)};for(var v=function(e){e in c||o(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},g=a(l),y=0;g.length>y;)v(g[y++]);f.constructor=c,c.prototype=f,n(20)(r,"RegExp",c)}n(56)("RegExp")},function(e,t,n){n(89)("match",1,(function(e,t,n){return[function(n){"use strict";var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]}))},function(e,t,n){n(89)("replace",2,(function(e,t,n){return[function(r,i){"use strict";var o=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]}))},function(e,t,n){n(89)("search",1,(function(e,t,n){return[function(n){"use strict";var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]}))},function(e,t,n){n(89)("split",2,(function(e,t,r){"use strict";var i=n(92),o=r,a=[].push,s="split",u="length",c="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[u]||2!="ab"[s](/(?:ab)*/)[u]||4!="."[s](/(.?)(.?)/)[u]||"."[s](/()()/)[u]>1||""[s](/.?/)[u]){var l=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return o.call(n,e,t);var r,s,f,d,h,p=[],v=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,y=void 0===t?4294967295:t>>>0,_=new RegExp(e.source,v+"g");for(l||(r=new RegExp("^"+_.source+"$(?!\\s)",v));(s=_.exec(n))&&!((f=s.index+s[0][u])>g&&(p.push(n.slice(g,s.index)),!l&&s[u]>1&&s[0].replace(r,(function(){for(h=1;h<arguments[u]-2;h++)void 0===arguments[h]&&(s[h]=void 0)})),s[u]>1&&s.index<n[u]&&a.apply(p,s.slice(1)),d=s[0][u],g=f,p[u]>=y));)_[c]===s.index&&_[c]++;return g===n[u]?!d&&_.test("")||p.push(""):p.push(n.slice(g)),p[u]>y?p.slice(0,y):p}}else"0"[s](void 0,0)[u]&&(r=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(n,i){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},r]}))},function(e,t,n){"use strict";n(229);var r=n(2),i=n(90),o=n(9),a="toString",s=/./[a],u=function(e){n(20)(RegExp.prototype,a,e,!0)};n(4)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?u((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):s.name!=a&&u((function(){return s.call(this)}))},function(e,t,n){"use strict";n(21)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},function(e,t,n){"use strict";n(21)("big",(function(e){return function(){return e(this,"big","","")}}))},function(e,t,n){"use strict";n(21)("blink",(function(e){return function(){return e(this,"blink","","")}}))},function(e,t,n){"use strict";n(21)("bold",(function(e){return function(){return e(this,"b","","")}}))},function(e,t,n){"use strict";var r=n(0),i=n(145)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(0),i=n(11),o=n(146),a="endsWith",s=""[a];r(r.P+r.F*n(133)(a),"String",{endsWith:function(e){var t=o(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),u=void 0===n?r:Math.min(i(n),r),c=String(e);return s?s.call(t,c,u):t.slice(u-c.length,u)===c}})},function(e,t,n){"use strict";n(21)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},function(e,t,n){"use strict";n(21)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},function(e,t,n){"use strict";n(21)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},function(e,t,n){var r=n(0),i=n(57),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(0),i=n(146),o="includes";r(r.P+r.F*n(133)(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n(21)("italics",(function(e){return function(){return e(this,"i","","")}}))},function(e,t,n){"use strict";var r=n(145)(!0);n(138)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";n(21)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,n){var r=n(0),i=n(24),o=n(11);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){var r=n(0);r(r.P,"String",{repeat:n(147)})},function(e,t,n){"use strict";n(21)("small",(function(e){return function(){return e(this,"small","","")}}))},function(e,t,n){"use strict";var r=n(0),i=n(11),o=n(146),a="startsWith",s=""[a];r(r.P+r.F*n(133)(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(21)("strike",(function(e){return function(){return e(this,"strike","","")}}))},function(e,t,n){"use strict";n(21)("sub",(function(e){return function(){return e(this,"sub","","")}}))},function(e,t,n){"use strict";n(21)("sup",(function(e){return function(){return e(this,"sup","","")}}))},function(e,t,n){"use strict";n(65)("trim",(function(e){return function(){return e(this,3)}}))},function(e,t,n){"use strict";var r=n(3),i=n(18),o=n(9),a=n(0),s=n(20),u=n(44).KEY,c=n(4),l=n(98),f=n(64),d=n(58),h=n(6),p=n(227),v=n(152),g=n(371),y=n(91),_=n(2),m=n(5),b=n(24),E=n(37),w=n(54),P=n(51),S=n(217),T=n(22),A=n(10),x=n(53),O=T.f,R=A.f,C=S.f,M=r.Symbol,k=r.JSON,L=k&&k.stringify,I="prototype",N=h("_hidden"),F=h("toPrimitive"),j={}.propertyIsEnumerable,D=l("symbol-registry"),B=l("symbols"),U=l("op-symbols"),G=Object[I],V="function"==typeof M,z=r.QObject,W=!z||!z[I]||!z[I].findChild,X=o&&c((function(){return 7!=P(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(G,t);r&&delete G[t],R(e,t,n),r&&e!==G&&R(G,t,r)}:R,H=function(e){var t=B[e]=P(M[I]);return t._k=e,t},Y=V&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},K=function(e,t,n){return e===G&&K(U,t,n),_(e),t=E(t,!0),_(n),i(B,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=P(n,{enumerable:w(0,!1)})):(i(e,N)||R(e,N,w(1,{})),e[N][t]=!0),X(e,t,n)):R(e,t,n)},Z=function(e,t){_(e);for(var n,r=g(t=b(t)),i=0,o=r.length;o>i;)K(e,n=r[i++],t[n]);return e},q=function(e){var t=j.call(this,e=E(e,!0));return!(this===G&&i(B,e)&&!i(U,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,N)&&this[N][e])||t)},Q=function(e,t){if(e=b(e),t=E(t,!0),e!==G||!i(B,t)||i(U,t)){var n=O(e,t);return!n||!i(B,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=C(b(e)),r=[],o=0;n.length>o;)i(B,t=n[o++])||t==N||t==u||r.push(t);return r},$=function(e){for(var t,n=e===G,r=C(n?U:b(e)),o=[],a=0;r.length>a;)!i(B,t=r[a++])||n&&!i(G,t)||o.push(B[t]);return o};V||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(U,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),X(this,e,w(1,n))};return o&&W&&X(G,e,{configurable:!0,set:t}),H(e)},s(M[I],"toString",(function(){return this._k})),T.f=Q,A.f=K,n(52).f=S.f=J,n(73).f=q,n(95).f=$,o&&!n(50)&&s(G,"propertyIsEnumerable",q,!0),p.f=function(e){return H(h(e))}),a(a.G+a.W+a.F*!V,{Symbol:M});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)h(ee[te++]);for(var ne=x(h.store),re=0;ne.length>re;)v(ne[re++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return i(D,e+="")?D[e]:D[e]=M(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,t){return void 0===t?P(e):Z(P(e),t)},defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:$}),k&&a(a.S+a.F*(!V||c((function(){var e=M();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(m(t)||void 0!==e)&&!Y(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,L.apply(k,r)}}),M[I][F]||n(19)(M[I],F,M[I].valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(0),i=n(100),o=n(150),a=n(2),s=n(57),u=n(11),c=n(5),l=n(3).ArrayBuffer,f=n(99),d=o.ArrayBuffer,h=o.DataView,p=i.ABV&&l.isView,v=d.prototype.slice,g=i.VIEW,y="ArrayBuffer";r(r.G+r.W+r.F*(l!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,y,{isView:function(e){return p&&p(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n(4)((function(){return!new d(2).slice(1,void 0).byteLength})),y,{slice:function(e,t){if(void 0!==v&&void 0===t)return v.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(f(this,d))(u(i-r)),c=new h(this),l=new h(o),p=0;r<i;)l.setUint8(p++,c.getUint8(r++));return o}}),n(56)(y)},function(e,t,n){var r=n(0);r(r.G+r.W+r.F*!n(100).ABV,{DataView:n(150).DataView})},function(e,t,n){n(40)("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(40)("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(40)("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(40)("Int32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(40)("Int8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(40)("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(40)("Uint32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(40)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(40)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){"use strict";var r=n(205),i=n(66),o="WeakSet";n(88)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(0),i=n(206),o=n(14),a=n(11),s=n(15),u=n(129);r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return s(e),t=a(r.length),n=u(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n(43)("flatMap")},function(e,t,n){"use strict";var r=n(0),i=n(206),o=n(14),a=n(11),s=n(36),u=n(129);r(r.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=a(t.length),r=u(t,0);return i(r,t,t,n,0,void 0===e?1:s(e)),r}}),n(43)("flatten")},function(e,t,n){"use strict";var r=n(0),i=n(87)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(43)("includes")},function(e,t,n){var r=n(0),i=n(141)(),o=n(3).process,a="process"==n(27)(o);r(r.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,n){var r=n(0),i=n(27);r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,n){var r=n(0);r(r.G,{global:n(3)})},function(e,t,n){n(96)("Map")},function(e,t,n){n(97)("Map")},function(e,t,n){var r=n(0);r(r.P+r.R,"Map",{toJSON:n(204)("Map")})},function(e,t,n){var r=n(0);r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var r=n(0);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var r=n(0),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},function(e,t,n){var r=n(0),i=n(214),o=n(212);r(r.S,"Math",{fscale:function(e,t,n,r,a){return o(i(e,t,n,r,a))}})},function(e,t,n){var r=n(0);r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,n){var r=n(0);r(r.S,"Math",{imulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,a=i&n,s=r>>16,u=i>>16,c=(s*a>>>0)+(o*a>>>16);return s*u+(c>>16)+((o*u>>>0)+(c&n)>>16)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,n){var r=n(0);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var r=n(0),i=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*i}})},function(e,t,n){var r=n(0);r(r.S,"Math",{scale:n(214)})},function(e,t,n){var r=n(0);r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){var r=n(0);r(r.S,"Math",{umulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,a=i&n,s=r>>>16,u=i>>>16,c=(s*a>>>0)+(o*a>>>16);return s*u+(c>>>16)+((o*u>>>0)+(c&n)>>>16)}})},function(e,t,n){"use strict";var r=n(0),i=n(14),o=n(15),a=n(10);n(9)&&r(r.P+n(94),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(0),i=n(14),o=n(15),a=n(10);n(9)&&r(r.P+n(94),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(0),i=n(219)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){var r=n(0),i=n(220),o=n(24),a=n(22),s=n(130);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),u=a.f,c=i(r),l={},f=0;c.length>f;)void 0!==(n=u(r,t=c[f++]))&&s(l,t,n);return l}})},function(e,t,n){"use strict";var r=n(0),i=n(14),o=n(37),a=n(23),s=n(22).f;n(9)&&r(r.P+n(94),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.get}while(n=a(n))}})},function(e,t,n){"use strict";var r=n(0),i=n(14),o=n(37),a=n(23),s=n(22).f;n(9)&&r(r.P+n(94),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.set}while(n=a(n))}})},function(e,t,n){var r=n(0),i=n(219)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(33),a=n(141)(),s=n(6)("observable"),u=n(15),c=n(2),l=n(48),f=n(55),d=n(19),h=n(49),p=h.RETURN,v=function(e){return null==e?void 0:u(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},y=function(e){return void 0===e._o},_=function(e){y(e)||(e._o=void 0,g(e))},m=function(e,t){c(e),this._c=void 0,this._o=e,e=new b(this);try{var n=t(e),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:u(n),this._c=n)}catch(t){return void e.error(t)}y(this)&&g(this)};m.prototype=f({},{unsubscribe:function(){_(this)}});var b=function(e){this._s=e};b.prototype=f({},{next:function(e){var t=this._s;if(!y(t)){var n=t._o;try{var r=v(n.next);if(r)return r.call(n,e)}catch(e){try{_(t)}finally{throw e}}}},error:function(e){var t=this._s;if(y(t))throw e;var n=t._o;t._o=void 0;try{var r=v(n.error);if(!r)throw e;e=r.call(n,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!y(t)){var n=t._o;t._o=void 0;try{var r=v(n.complete);e=r?r.call(n,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var E=function(e){l(this,E,"Observable","_f")._f=u(e)};f(E.prototype,{subscribe:function(e){return new m(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)((function(n,r){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n})}))}}),f(E,{from:function(e){var t="function"==typeof this?this:E,n=v(c(e)[s]);if(n){var r=c(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}return new t((function(t){var n=!1;return a((function(){if(!n){try{if(h(e,!1,(function(e){if(t.next(e),n)return p}))===p)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}})),function(){n=!0}}))},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:E)((function(e){var t=!1;return a((function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}})),function(){t=!0}}))}}),d(E.prototype,s,(function(){return this})),r(r.G,{Observable:E}),n(56)("Observable")},function(e,t,n){"use strict";var r=n(0),i=n(33),o=n(3),a=n(99),s=n(224);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){"use strict";var r=n(0),i=n(142),o=n(223);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var r=n(39),i=n(2),o=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,i(n),o(r))}})},function(e,t,n){var r=n(39),i=n(2),o=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=a(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var u=s.get(t);return u.delete(n),!!u.size||s.delete(t)}})},function(e,t,n){var r=n(230),i=n(200),o=n(39),a=n(2),s=n(23),u=o.keys,c=o.key,l=function(e,t){var n=u(e,t),o=s(e);if(null===o)return n;var a=l(o,t);return a.length?n.length?i(new r(n.concat(a))):a:n};o.exp({getMetadataKeys:function(e){return l(a(e),arguments.length<2?void 0:c(arguments[1]))}})},function(e,t,n){var r=n(39),i=n(2),o=n(23),a=r.has,s=r.get,u=r.key,c=function(e,t,n){if(a(e,t,n))return s(e,t,n);var r=o(t);return null!==r?c(e,r,n):void 0};r.exp({getMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,n){var r=n(39),i=n(2),o=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,n){var r=n(39),i=n(2),o=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(39),i=n(2),o=n(23),a=r.has,s=r.key,u=function(e,t,n){if(a(e,t,n))return!0;var r=o(t);return null!==r&&u(e,r,n)};r.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(39),i=n(2),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(39),i=n(2),o=n(15),a=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?i:o)(n),a(r))}}})},function(e,t,n){n(96)("Set")},function(e,t,n){n(97)("Set")},function(e,t,n){var r=n(0);r(r.P+r.R,"Set",{toJSON:n(204)("Set")})},function(e,t,n){"use strict";var r=n(0),i=n(145)(!0);r(r.P,"String",{at:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(0),i=n(34),o=n(11),a=n(92),s=n(90),u=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n(137)(c,"RegExp String",(function(){var e=this._r.exec(this._s);return{value:e,done:null===e}})),r(r.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in u?String(e.flags):s.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new c(r,t)}})},function(e,t,n){"use strict";var r=n(0),i=n(225),o=n(151);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(0),i=n(225),o=n(151);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){"use strict";n(65)("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},function(e,t,n){"use strict";n(65)("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},function(e,t,n){n(152)("asyncIterator")},function(e,t,n){n(152)("observable")},function(e,t,n){var r=n(0);r(r.S,"System",{global:n(3)})},function(e,t,n){n(96)("WeakMap")},function(e,t,n){n(97)("WeakMap")},function(e,t,n){n(96)("WeakSet")},function(e,t,n){n(97)("WeakSet")},function(e,t,n){for(var r=n(154),i=n(53),o=n(20),a=n(3),s=n(19),u=n(63),c=n(6),l=c("iterator"),f=c("toStringTag"),d=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(h),v=0;v<p.length;v++){var g,y=p[v],_=h[y],m=a[y],b=m&&m.prototype;if(b&&(b[l]||s(b,l,d),b[f]||s(b,f,y),u[y]=d,_))for(g in r)b[g]||o(b,g,r[g],!0)}},function(e,t,n){var r=n(0),i=n(149);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){var r=n(3),i=n(0),o=n(151),a=[].slice,s=/MSIE .\./.test(o),u=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(e,t,n){n(494),n(433),n(435),n(434),n(437),n(439),n(444),n(438),n(436),n(446),n(445),n(441),n(442),n(440),n(432),n(443),n(447),n(448),n(400),n(402),n(401),n(450),n(449),n(420),n(430),n(431),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(481),n(486),n(493),n(484),n(476),n(477),n(482),n(487),n(489),n(472),n(473),n(474),n(475),n(478),n(479),n(480),n(483),n(485),n(488),n(490),n(491),n(492),n(395),n(397),n(396),n(399),n(398),n(384),n(382),n(388),n(385),n(391),n(393),n(381),n(387),n(378),n(392),n(376),n(390),n(389),n(383),n(386),n(375),n(377),n(380),n(379),n(394),n(154),n(466),n(471),n(229),n(467),n(468),n(469),n(470),n(451),n(228),n(230),n(231),n(506),n(495),n(496),n(501),n(504),n(505),n(499),n(502),n(500),n(503),n(497),n(498),n(452),n(453),n(454),n(455),n(456),n(459),n(457),n(458),n(460),n(461),n(462),n(463),n(465),n(464),n(509),n(507),n(508),n(550),n(553),n(552),n(554),n(555),n(551),n(556),n(557),n(531),n(534),n(530),n(528),n(529),n(532),n(533),n(515),n(549),n(514),n(548),n(560),n(562),n(513),n(547),n(559),n(561),n(512),n(558),n(511),n(516),n(517),n(518),n(519),n(520),n(522),n(521),n(523),n(524),n(525),n(527),n(526),n(536),n(537),n(538),n(539),n(541),n(540),n(543),n(542),n(544),n(545),n(546),n(510),n(535),n(565),n(564),n(563),e.exports=n(33)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(568);n.d(t,"hexbin",(function(){return r.a}))},function(e,t,n){"use strict";var r=Math.PI/3,i=[0,r,2*r,3*r,4*r,5*r];function o(e){return e[0]}function a(e){return e[1]}t.a=function(){var e,t,n,s=0,u=0,c=1,l=1,f=o,d=a;function h(e){var r,i={},o=[],a=e.length;for(r=0;r<a;++r)if(!isNaN(u=+f.call(null,s=e[r],r,e))&&!isNaN(c=+d.call(null,s,r,e))){var s,u,c,l=Math.round(c/=n),h=Math.round(u=u/t-(1&l)/2),p=c-l;if(3*Math.abs(p)>1){var v=u-h,g=h+(u<h?-1:1)/2,y=l+(c<l?-1:1),_=u-g,m=c-y;v*v+p*p>_*_+m*m&&(h=g+(1&l?1:-1)/2,l=y)}var b=h+"-"+l,E=i[b];E?E.push(s):(o.push(E=i[b]=[s]),E.x=(h+(1&l)/2)*t,E.y=l*n)}return o}function p(e){var t=0,n=0;return i.map((function(r){var i=Math.sin(r)*e,o=-Math.cos(r)*e,a=i-t,s=o-n;return t=i,n=o,[a,s]}))}return h.hexagon=function(t){return"m"+p(null==t?e:+t).join("l")+"z"},h.centers=function(){for(var r=[],i=Math.round(u/n),o=Math.round(s/t),a=i*n;a<l+e;a+=n,++i)for(var f=o*t+(1&i)*t/2;f<c+t/2;f+=t)r.push([f,a]);return r},h.mesh=function(){var t=p(e).slice(0,4).join("l");return h.centers().map((function(e){return"M"+e+"m"+t})).join("")},h.x=function(e){return arguments.length?(f=e,h):f},h.y=function(e){return arguments.length?(d=e,h):d},h.radius=function(i){return arguments.length?(t=2*(e=+i)*Math.sin(r),n=1.5*e,h):e},h.size=function(e){return arguments.length?(s=u=0,c=+e[0],l=+e[1],h):[c-s,l-u]},h.extent=function(e){return arguments.length?(s=+e[0][0],u=+e[0][1],c=+e[1][0],l=+e[1][1],h):[[s,u],[c,l]]},h.radius(1)}},function(e,t){e.exports=function(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],f=e[10],d=e[11],h=e[12],p=e[13],v=e[14],g=e[15];return(t*a-n*o)*(f*g-d*v)-(t*s-r*o)*(l*g-d*p)+(t*u-i*o)*(l*v-f*p)+(n*s-r*a)*(c*g-d*h)-(n*u-i*a)*(c*v-f*h)+(r*u-i*s)*(c*p-l*h)}},function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n+n,s=r+r,u=i+i,c=n*a,l=r*a,f=r*s,d=i*a,h=i*s,p=i*u,v=o*a,g=o*s,y=o*u;return e[0]=1-f-p,e[1]=l+y,e[2]=d-g,e[3]=0,e[4]=l-y,e[5]=1-c-p,e[6]=h+v,e[7]=0,e[8]=d+g,e[9]=h-v,e[10]=1-c-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},function(e,t){e.exports=function(e,t,n,r,i,o,a){var s=1/(n-t),u=1/(i-r),c=1/(o-a);return e[0]=2*o*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*o*u,e[6]=0,e[7]=0,e[8]=(n+t)*s,e[9]=(i+r)*u,e[10]=(a+o)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*o*2*c,e[15]=0,e}},function(e,t){e.exports=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},function(e,t){e.exports=function(e,t,n,r){var i,o,a,s,u,c,l,f,d,h,p,v,g,y,_,m,b,E,w,P,S,T,A,x,O=r[0],R=r[1],C=r[2],M=Math.sqrt(O*O+R*R+C*C);return Math.abs(M)<1e-6?null:(O*=M=1/M,R*=M,C*=M,i=Math.sin(n),a=1-(o=Math.cos(n)),s=t[0],u=t[1],c=t[2],l=t[3],f=t[4],d=t[5],h=t[6],p=t[7],v=t[8],g=t[9],y=t[10],_=t[11],m=O*O*a+o,b=R*O*a+C*i,E=C*O*a-R*i,w=O*R*a-C*i,P=R*R*a+o,S=C*R*a+O*i,T=O*C*a+R*i,A=R*C*a-O*i,x=C*C*a+o,e[0]=s*m+f*b+v*E,e[1]=u*m+d*b+g*E,e[2]=c*m+h*b+y*E,e[3]=l*m+p*b+_*E,e[4]=s*w+f*P+v*S,e[5]=u*w+d*P+g*S,e[6]=c*w+h*P+y*S,e[7]=l*w+p*P+_*S,e[8]=s*T+f*A+v*x,e[9]=u*T+d*A+g*x,e[10]=c*T+h*A+y*x,e[11]=l*T+p*A+_*x,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}},function(e,t){e.exports=function(e,t){if(e===t){var n=t[1],r=t[2],i=t[3],o=t[6],a=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=o,e[11]=t[14],e[12]=i,e[13]=a,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}},function(e,t,n){e.exports=n(243)},function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],i=t[2];return e[0]=n,e[1]=r,e[2]=i,e[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),e}},function(e,t){e.exports=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}},function(e,t,n){e.exports=n(244)},function(e,t){e.exports=function(e,t){var n,r=t[0]+t[4]+t[8];if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{var i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;n=Math.sqrt(t[3*i+i]-t[3*o+o]-t[3*a+a]+1),e[i]=.5*n,n=.5/n,e[3]=(t[3*o+a]-t[3*a+o])*n,e[o]=(t[3*o+i]+t[3*i+o])*n,e[a]=(t[3*a+i]+t[3*i+a])*n}return e}},function(e,t){e.exports=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}},function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return e[0]=-n*s,e[1]=-r*s,e[2]=-i*s,e[3]=o*s,e}},function(e,t,n){e.exports=n(619)},function(e,t,n){e.exports=n(245)},function(e,t){e.exports=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=n[0],u=n[1],c=n[2],l=n[3];return e[0]=r*l+a*s+i*c-o*u,e[1]=i*l+a*u+o*s-r*c,e[2]=o*l+a*c+r*u-i*s,e[3]=a*l-r*s-i*u-o*c,e}},function(e,t){e.exports=function(e,t,n){n*=.5;var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),u=Math.cos(n);return e[0]=r*u+a*s,e[1]=i*u+o*s,e[2]=o*u-i*s,e[3]=a*u-r*s,e}},function(e,t){e.exports=function(e,t,n){n*=.5;var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),u=Math.cos(n);return e[0]=r*u-o*s,e[1]=i*u+a*s,e[2]=o*u+r*s,e[3]=a*u-i*s,e}},function(e,t){e.exports=function(e,t,n){n*=.5;var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),u=Math.cos(n);return e[0]=r*u+i*s,e[1]=i*u-r*s,e[2]=o*u+a*s,e[3]=a*u-o*s,e}},function(e,t,n){var r=n(240),i=n(239),o=n(241),a=n(242),s=n(236),u=n(237);e.exports=function(e,t,n){var d=r(t,n);return d<-.999999?(i(c,l,t),o(c)<1e-6&&i(c,f,t),a(c,c),u(e,c,Math.PI),e):d>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):(i(c,t,n),e[0]=c[0],e[1]=c[1],e[2]=c[2],e[3]=1+d,s(e,e))};var c=[0,0,0],l=[1,0,0],f=[0,1,0]},function(e,t,n){e.exports=n(161)},function(e,t,n){e.exports=n(248)},function(e,t){e.exports=function(e,t,n,r){var i,o,a,s,u,c=t[0],l=t[1],f=t[2],d=t[3],h=n[0],p=n[1],v=n[2],g=n[3];return(o=c*h+l*p+f*v+d*g)<0&&(o=-o,h=-h,p=-p,v=-v,g=-g),1-o>1e-6?(i=Math.acos(o),a=Math.sin(i),s=Math.sin((1-r)*i)/a,u=Math.sin(r*i)/a):(s=1-r,u=r),e[0]=s*c+u*h,e[1]=s*l+u*p,e[2]=s*f+u*v,e[3]=s*d+u*g,e}},function(e,t,n){e.exports=n(622)},function(e,t){e.exports=function(e,t,n){var r=t[0]*n[1]-t[1]*n[0];return e[0]=e[1]=0,e[2]=r,e}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}},function(e,t){e.exports=function(e,t){return e[0]*t[0]+e[1]*t[1]}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}},function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i),e}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}},function(e,t){e.exports=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}},function(e,t){e.exports=function(e,t,n){return e[0]=t,e[1]=n,e}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}},function(e,t){e.exports=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}},function(e,t,n){e.exports=function(e,t){var n=r(e[0],e[1],e[2]),a=r(t[0],t[1],t[2]);i(n,n),i(a,a);var s=o(n,a);return s>1?0:Math.acos(s)};var r=n(606),i=n(242),o=n(240)},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}},function(e,t){e.exports=function(e,t,n){var r=new Float32Array(3);return r[0]=e,r[1]=t,r[2]=n,r}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}},function(e,t){e.exports=function(e,t,n,r){var i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e}},function(e,t){e.exports=function(e,t,n,r){var i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e}},function(e,t){e.exports=function(e,t,n,r){var i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}},function(e,t){e.exports=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}},function(e,t){e.exports=function(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}},function(e,t){e.exports=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,e[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,e[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,e[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,e}},function(e,t){e.exports=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(n*n+r*r+i*i+o*o)}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}},function(e,t){e.exports=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e}},function(e,t){e.exports=function(e){var t=e[0],n=e[1],r=e[2],i=e[3];return Math.sqrt(t*t+n*n+r*r+i*i)}},function(e,t){e.exports=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e}},function(e,t){e.exports=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e}},function(e,t){e.exports=function(e){var t=e[0],n=e[1],r=e[2],i=e[3];return t*t+n*n+r*r+i*i}},function(e,t){e.exports=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}},function(e,t,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),f=Math.round,d=Math.abs,h=Date.now;function p(e,t,n){return setTimeout(E(e,n),t)}function v(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function y(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}u="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var _=y((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===s)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),m=y((function(e,t){return _(e,t,!0)}),"merge","Use `assign`.");function b(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&u(r,n)}function E(e,t){return function(){return e.apply(t,arguments)}}function w(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}function P(e,t){return e===s?t:e}function S(e,t,n){g(O(t),(function(t){e.addEventListener(t,n,!1)}))}function T(e,t,n){g(O(t),(function(t){e.removeEventListener(t,n,!1)}))}function A(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function x(e,t){return e.indexOf(t)>-1}function O(e){return e.trim().split(/\s+/g)}function R(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function C(e){return Array.prototype.slice.call(e,0)}function M(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];R(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function k(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:t)in e)return r;o++}return s}var L=1;function I(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var N="ontouchstart"in i,F=k(i,"PointerEvent")!==s,j=N&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),D="touch",B="mouse",U=["x","y"],G=["clientX","clientY"];function V(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){w(e.options.enable,[e])&&n.handler(t)},this.init()}function z(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&t&&r-i==0,a=12&t&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=W(t)),i>1&&!n.firstMultiple?n.firstMultiple=W(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,c=t.center=X(r);t.timeStamp=h(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=Z(u,c),t.distance=K(u,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var l,f,p=H(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=d(p.x)>d(p.y)?p.x:p.y,t.scale=a?(l=a.pointers,K((f=r)[0],f[1],G)/K(l[0],l[1],G)):1,t.rotation=a?function(e,t){return Z(t[1],t[0],G)+Z(e[1],e[0],G)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(u>25||a.velocity===s)){var c=t.deltaX-a.deltaX,l=t.deltaY-a.deltaY,f=H(u,c,l);r=f.x,i=f.y,n=d(f.x)>d(f.y)?f.x:f.y,o=Y(c,l),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var v=e.element;A(t.srcEvent.target,v)&&(v=t.srcEvent.target),t.target=v}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function W(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:f(e.pointers[n].clientX),clientY:f(e.pointers[n].clientY)},n++;return{timeStamp:h(),pointers:t,center:X(t),deltaX:e.deltaX,deltaY:e.deltaY}}function X(e){var t=e.length;if(1===t)return{x:f(e[0].clientX),y:f(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:f(n/t),y:f(r/t)}}function H(e,t,n){return{x:t/e||0,y:n/e||0}}function Y(e,t){return e===t?1:d(e)>=d(t)?e<0?2:4:t<0?8:16}function K(e,t,n){n||(n=U);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function Z(e,t,n){n||(n=U);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}V.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(I(this.element),this.evWin,this.domHandler)}};var q={mousedown:1,mousemove:2,mouseup:4},Q="mousedown",J="mousemove mouseup";function $(){this.evEl=Q,this.evWin=J,this.pressed=!1,V.apply(this,arguments)}b($,V,{handler:function(e){var t=q[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:B,srcEvent:e}))}});var ee={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},te={2:D,3:"pen",4:B,5:"kinect"},ne="pointerdown",re="pointermove pointerup pointercancel";function ie(){this.evEl=ne,this.evWin=re,V.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(ne="MSPointerDown",re="MSPointerMove MSPointerUp MSPointerCancel"),b(ie,V,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=ee[r],o=te[e.pointerType]||e.pointerType,a=o==D,s=R(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart",se="touchstart touchmove touchend touchcancel";function ue(){this.evTarget=ae,this.evWin=se,this.started=!1,V.apply(this,arguments)}function ce(e,t){var n=C(e.touches),r=C(e.changedTouches);return 12&t&&(n=M(n.concat(r),"identifier",!0)),[n,r]}b(ue,V,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=ce.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:e})}}});var le={touchstart:1,touchmove:2,touchend:4,touchcancel:8},fe="touchstart touchmove touchend touchcancel";function de(){this.evTarget=fe,this.targetIds={},V.apply(this,arguments)}function he(e,t){var n=C(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=C(e.changedTouches),s=[],u=this.target;if(o=n.filter((function(e){return A(e.target,u)})),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&t&&delete r[a[i].identifier],i++;return s.length?[M(o.concat(s),"identifier",!0),s]:void 0}function pe(){V.apply(this,arguments);var e=E(this.handler,this);this.touch=new de(this.manager,e),this.mouse=new $(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ve(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ge.call(this,t)):12&e&&ge.call(this,t)}function ge(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function ye(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}b(de,V,{handler:function(e){var t=le[e.type],n=he.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:e})}}),b(pe,V,{handler:function(e,t,n){var r=n.pointerType==D,i=n.pointerType==B;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ve.call(this,t,n);else if(i&&ye.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var _e=k(l.style,"touchAction"),me=_e!==s,be="compute",Ee="auto",we="manipulation",Pe="none",Se="pan-x",Te="pan-y",Ae=function(){if(!me)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();function xe(e,t){this.manager=e,this.set(t)}xe.prototype={set:function(e){e==be&&(e=this.compute()),me&&this.manager.element.style&&Ae[e]&&(this.manager.element.style[_e]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return g(this.manager.recognizers,(function(t){w(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(x(e,Pe))return Pe;var t=x(e,Se),n=x(e,Te);return t&&n?Pe:t||n?t?Se:Te:x(e,we)?we:Ee}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=x(r,Pe)&&!Ae[Pe],o=x(r,Te)&&!Ae[Te],a=x(r,Se)&&!Ae[Se];if(i){var s=1===e.pointers.length,u=e.distance<2,c=e.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Oe=32;function Re(e){this.options=u({},this.defaults,e||{}),this.id=L++,this.manager=null,this.options.enable=P(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ce(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Me(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ke(e,t){var n=t.manager;return n?n.get(e):e}function Le(){Re.apply(this,arguments)}function Ie(){Le.apply(this,arguments),this.pX=null,this.pY=null}function Ne(){Le.apply(this,arguments)}function Fe(){Re.apply(this,arguments),this._timer=null,this._input=null}function je(){Le.apply(this,arguments)}function De(){Le.apply(this,arguments)}function Be(){Re.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ue(e,t){return(t=t||{}).recognizers=P(t.recognizers,Ue.defaults.preset),new Ge(e,t)}function Ge(e,t){this.options=u({},Ue.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new(this.options.inputClass||(F?ie:j?de:N?pe:$))(this,z),this.touchAction=new xe(this,this.options.touchAction),Ve(this,!0),g(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Ve(e,t){var n,r=e.element;r.style&&(g(e.options.cssProps,(function(i,o){n=k(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Re.prototype={defaults:{},set:function(e){return u(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(v(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ke(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return v(e,"dropRecognizeWith",this)||(e=ke(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(v(e,"requireFailure",this))return this;var t=this.requireFail;return-1===R(t,e=ke(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(v(e,"dropRequireFailure",this))return this;e=ke(e,this);var t=R(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Ce(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Ce(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Oe},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=u({},e);if(!w(this.options.enable,[this,t]))return this.reset(),void(this.state=Oe);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},b(Le,Re,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:Oe}}),b(Ie,Le,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Te),24&e&&t.push(Se),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Le.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Me(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),b(Ne,Le,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),b(Fe,Re,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ee]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Oe},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),b(je,Le,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),b(De,Le,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Ie.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Me(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),b(Be,Re,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[we]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||K(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Oe},failTimeout:function(){return this._timer=p((function(){this.state=Oe}),this.options.interval,this),Oe},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ue.VERSION="2.0.7",Ue.defaults={domEvents:!1,touchAction:be,enable:!0,inputTarget:null,inputClass:null,preset:[[je,{enable:!1}],[Ne,{enable:!1},["rotate"]],[De,{direction:6}],[Ie,{direction:6},["swipe"]],[Be],[Be,{event:"doubletap",taps:2},["tap"]],[Fe]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Ge.prototype={set:function(e){return u(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Re)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(v(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(v(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=R(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return g(O(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return g(O(e),(function(e){t?n[e]&&n[e].splice(R(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&Ve(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Ue,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Oe,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ge,Input:V,TouchAction:xe,TouchInput:de,MouseInput:$,PointerEventInput:ie,TouchMouseInput:pe,SingleTouchInput:ue,Recognizer:Re,AttrRecognizer:Le,Tap:Be,Pan:Ie,Swipe:De,Pinch:Ne,Rotate:je,Press:Fe,on:S,off:T,each:g,merge:m,extend:_,assign:u,inherit:b,bindFn:E,prefixed:k}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Ue,(r=function(){return Ue}.call(t,n,t,e))===s||(e.exports=r)}(window,document)},function(e,t,n){"use strict";var r=n(250),i=n(16),o=n(1),a=n.n(o),s=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,t);var n=e.children,i=void 0===n?[]:n;i.every((function(e){return a()(e instanceof r.a)}));var o=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.children=i,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"add",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;Array.isArray(c)?this.add.apply(this,u(c)):this.children.push(c)}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return this}},{key:"remove",value:function(e){var t=this.children,n=t.indexOf(e);return n>-1&&t.splice(n,1),this}},{key:"removeAll",value:function(){return this.children=[],this}},{key:"traverse",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.modelMatrix,o=void 0===r?new i.Matrix4:r,a=!0,s=!1,u=void 0;try{for(var c,l=this.children[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value,d=f.matrix;o=o.multiplyRight(d);var h=void 0;if(h=f instanceof t?f.traverse(e,{modelMatrix:o}):e(f,{}))return h}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}return null}},{key:"traverseReverse",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.modelMatrix,o=void 0===r?new i.Matrix4:r,a=this.children.length-1;a>=0;--a){var s=this.children[a],u=s.matrix;o=o.multiplyRight(u);var c=void 0;if(c=s instanceof t?s.traverseReverse(e,{modelMatrix:o}):e(s,{}))return c}return null}}]),t}(r.a);t.a=f},function(e,t,n){"use strict";t.a=function(e,t){var a=t.models,l=t.position,f=t.uniforms,d=void 0===f?{}:f,h=t.parameters,p=void 0===h?{}:h,v=t.settings,g=t.useDevicePixelRatio,y=void 0===g?null:g,_=t.useDevicePixels,m=void 0===_||_,b=t.framebuffer;s()(n.i(r.isWebGL)(e),c),s()(b,c),s()(l,c),null!==y&&(i.b.deprecated("useDevicePixelRatio","useDevicePixels"),m=y);var E=u(l,2),w=E[0],P=E[1];b.resize({width:e.canvas.width,height:e.canvas.height});var S=m&&"undefined"!=typeof window?window.devicePixelRatio:1,T=w*S,A=e.canvas.height-P*S;return new o.a({children:a}).traverseReverse((function(t){if(t.isPickable()){n.i(r.clear)(e,{framebuffer:b,color:!0,depth:!0}),t.setUniforms({picking_uActive:1}),t.draw({uniforms:d,parameters:p,settings:v,framebuffer:b}),t.setUniforms({picking_uActive:0});var i=b.readPixels({x:T,y:A,width:1,height:1,format:e.RGBA,type:e.UNSIGNED_BYTE});if(0!==i[0]||0!==i[1]||0!==i[2])return{model:t,color:i,x:w,y:P,deviceX:T,deviceY:A}}return null}))};var r=n(61),i=n(8),o=n(625),a=n(1),s=n.n(a),u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},c="Illegal argument to pick"},function(e,t,n){"use strict";t.a=function(e){return[e+1&255,e+1>>8&255,e+1>>16&255]},t.b=function(e){var t=r(e,3);return t[0]+256*t[1]+65536*t[2]-1},t.c=function(){return i};var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=new Uint8Array([0,0,0])},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d}));var r=n(173),i=n.n(r),o=n(261),a={},s=function(e){a[e.id]||(a[e.id]=e,i.a.listItem("luma.gl",e.id))},u=function(e,t){if(i.a.isReady()&&!i.a.throttle("luma.gl:"+e.id,1e3)){var n=Object.assign({},e.geometry.attributes,e.attributes),r=Object.assign({},e.uniforms,t);i.a.multiUpdate("luma.gl",e.id,[{path:"objects.uniforms",data:r},{path:"objects.attributes",data:n}])}},c=function(e){delete a[e],i.a.deleteItem("luma.gl",e)},l=function e(t,n,r){t&&(n.length>1?e(t[n[0]],n.slice(1),r):t[n[0]]=r)},f=new Map,d=function(e,t){if(o.a.__SEER_INITIALIZED__&&e){var n=f.get(e);n&&n.forEach((function(e,n){l(t,n,e)}))}};i.a.listenFor("luma.gl",(function(e){var t=a[e.itemKey];if(t&&"edit"===e.type&&"uniforms"===e.valuePath[0]){var n=e.valuePath.slice(1);!function(e,t,n){o.a.__SEER_INITIALIZED__&&(f.has(e)||f.set(e,new Map),f.get(e).set(t,n))}(e.itemKey,n,e.value);var r=t.getUniforms();l(r,n,e.value),t.setUniforms(r)}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(){}t.requestFile=function(e){return new o(e).sendAsync()};var o=function(){function e(t){var n=t.url,r=t.path,o=void 0===r?null:r,a=t.method,s=void 0===a?"GET":a,u=t.asynchronous,c=void 0===u||u,l=t.noCache,f=void 0!==l&&l,d=t.sendAsBinary,h=void 0!==d&&d,p=t.responseType,v=void 0!==p&&p,g=t.onProgress,y=void 0===g?i:g,_=t.onError,m=void 0===_?i:_,b=t.onAbort,E=void 0===b?i:b,w=t.onComplete,P=void 0===w?i:w;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=o?o.join(o,n):n,this.method=s,this.async=c,this.noCache=f,this.sendAsBinary=h,this.responseType=v,this.req=new XMLHttpRequest,this.req.onload=function(e){return P(e)},this.req.onerror=function(e){return m(e)},this.req.onabort=function(e){return E(e)},this.req.onprogress=function(e){e.lengthComputable?y(e,Math.round(e.loaded/e.total*100)):y(e,-1)}}return r(e,[{key:"setRequestHeader",value:function(e,t){return this.req.setRequestHeader(e,t),this}},{key:"sendAsync",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.body||null;return new Promise((function(n,r){try{var i=e.req,o=e.method,a=e.noCache,s=e.sendAsBinary,u=e.responseType,c=a?e.url+(e.url.indexOf("?")>=0?"&":"?")+Date.now():e.url;i.open(o,c,e.async),u&&(i.responseType=u),e.async&&(i.onreadystatechange=function(e){4===i.readyState&&(200===i.status?n(i.responseType?i.response:i.responseText):r(new Error(i.status+": "+c)))}),s?i.sendAsBinary(t):i.send(t),e.async||(200===i.status?n(i.responseType?i.response:i.responseText):r(new Error(i.status+": "+c)))}catch(e){r(e)}}))}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(257);Object.defineProperty(t,"setPathPrefix",{enumerable:!0,get:function(){return r.setPathPrefix}}),Object.defineProperty(t,"loadFile",{enumerable:!0,get:function(){return r.loadFile}}),Object.defineProperty(t,"loadImage",{enumerable:!0,get:function(){return r.loadImage}});var i=n(631);Object.defineProperty(t,"loadFiles",{enumerable:!0,get:function(){return i.loadFiles}}),Object.defineProperty(t,"loadImages",{enumerable:!0,get:function(){return i.loadImages}}),Object.defineProperty(t,"loadTextures",{enumerable:!0,get:function(){return i.loadTextures}}),Object.defineProperty(t,"loadProgram",{enumerable:!0,get:function(){return i.loadProgram}}),Object.defineProperty(t,"loadModel",{enumerable:!0,get:function(){return i.loadModel}}),Object.defineProperty(t,"parseModel",{enumerable:!0,get:function(){return i.parseModel}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.loadTexture=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.urls,i=n.onProgress,a=void 0===i?l:i;return(0,o.default)("string"==typeof t,"loadTexture: url must be string"),d(Object.assign({urls:r,onProgress:a},n)).then((function(t){return t.map((function(t,i){return new s.Texture2D(e,Object.assign({id:r[i]},n,{data:t}))}))}))},t.loadFiles=f,t.loadImages=d,t.loadTextures=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.urls,r=t.onProgress,i=void 0===r?l:r;return(0,o.default)(n.every((function(e){return"string"==typeof e})),"loadTextures: {urls} must be array of strings"),d(Object.assign({urls:n,onProgress:i},t)).then((function(r){return r.map((function(r,i){var o=Array.isArray(t.parameters)?t.parameters[i]:t.parameters;return o=void 0===o?{}:o,new s.Texture2D(e,Object.assign({id:n[i]},o,{data:r}))}))}))},t.loadProgram=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.vs,i=t.fs,o=t.onProgress,a=void 0===o?l:o;return f(Object.assign({urls:[n,i],onProgress:a},t)).then((function(n){var i=r(n,2),o=i[0],a=i[1];return new s.Program(e,Object.assign({vs:o,fs:a},t))}))},t.loadModel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,i=t.onProgress,o=void 0===i?l:i;return f(Object.assign({urls:[n],onProgress:o},t)).then((function(n){var i=r(n,1)[0];return h(e,Object.assign({file:i},t))}))},t.parseModel=h;var i,o=(i=n(1))&&i.__esModule?i:{default:i},a=n(257),s=n(61),u=n(59),c=n(41);function l(){}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.urls,n=e.onProgress,r=void 0===n?l:n;(0,o.default)(t.every((function(e){return"string"==typeof e})),"loadImages: {urls} must be array of strings");var i=0;return Promise.all(t.map((function(n){var o=(0,a.loadFile)(Object.assign({url:n},e));return o.then((function(e){return r({progress:++i/t.length,count:i,total:t.length,url:n})})),o})))}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.urls,n=e.onProgress,r=void 0===n?l:n;(0,o.default)(t.every((function(e){return"string"==typeof e})),"loadImages: {urls} must be array of strings");var i=0;return Promise.all(t.map((function(n){var o=(0,a.loadImage)(n,e);return o.then((function(e){return r({progress:++i/t.length,count:i,total:t.length,url:n})})),o})))}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.file,r=t.program,i=void 0===r?new s.Program(e):r,o="string"==typeof n?p(n):n,a={},l={};for(var f in o){var d=o[f];Array.isArray(d)?a[f]="indices"===f?new Uint16Array(d):new Float32Array(d):l[f]=d}return new u.Model(e,Object.assign({program:i,geometry:new c.Geometry({attributes:a})},l,t))}function p(e){try{return JSON.parse(e)}catch(e){throw new Error("Failed to parse JSON: "+e)}}},function(e,t,n){"use strict";var r=n(59),i=n(41),o=n(61),a=[-1,-1,1,-1,-1,1,1,1],s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=a.map((function(e){return-1===e?0:e})),s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},n,{vs:"attribute vec2 aClipSpacePosition;\nattribute vec2 aTexCoord;\nattribute vec2 aCoordinate;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main(void) {\n gl_Position = vec4(aClipSpacePosition, 0., 1.);\n position = aClipSpacePosition;\n coordinate = aCoordinate;\n uv = aTexCoord;\n}\n",geometry:new i.Geometry({drawMode:o.GL.TRIANGLE_STRIP,vertexCount:4,attributes:{aClipSpacePosition:{size:2,value:new Float32Array(a)},aTexCoord:{size:2,value:new Float32Array(r)},aCoordinate:{size:2,value:new Float32Array(r)}}})})));return s.setVertexCount(4),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.Model);t.a=s},function(e,t,n){"use strict";var r=n(41);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},n,{geometry:new r.ConeGeometry(n)})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n(59).Model);t.a=a},function(e,t,n){"use strict";var r=n(41),i=n(59),o=n(8);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t);var u=i.id,c=void 0===u?n.i(o.d)("cube"):u;return s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},i,{id:c,geometry:new r.CubeGeometry(i)})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.Model);t.a=u},function(e,t,n){"use strict";var r=n(41);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},n,{geometry:new r.CylinderGeometry(n)})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n(104).a);t.a=a},function(e,t,n){"use strict";var r=n(59),i=n(41);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},n,{geometry:new i.IcoSphereGeometry(n)})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.Model);t.a=s},function(e,t,n){"use strict";var r=n(41),i=n(104),o=n(8);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t);var u=i.id,c=void 0===u?n.i(o.d)("plane"):u;return s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},i,{id:c,geometry:new r.PlaneGeometry(i)})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.a);t.a=u},function(e,t,n){"use strict";var r=n(59),i=n(41),o=n(8);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t);var u=r.id,c=void 0===u?n.i(o.d)("sphere"):u;return s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},r,{id:c,geometry:new i.SphereGeometry(r)})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.Model);t.a=u},function(e,t,n){"use strict";var r=n(41);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},n,{geometry:new r.TruncatedConeGeometry(n)})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n(59).Model);t.a=a},function(e,t,n){"use strict";t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t=Object.assign({},u,t)).bind;if(n)for(var r in t)r.match(/^on[a-zA-Z0-9]+$/)&&function(e,r){t[e]=function(){r.apply(n,Array.prototype.slice.call(arguments))}}(r,t[r]);return new s(e,t)};var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(){}function o(e){return!0!==e&&e}function a(e){var t=e.getBoundingClientRect();return{x:t.left,y:t.top,bbox:t}}var s=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scene=n.scene,this.domElem=t,this.pos=a(t),this.opt=this.callbacks=n,this.size={width:t.width||t.offsetWidth,height:t.height||t.offsetHeight},this.attachEvents()}return r(e,[{key:"attachEvents",value:function(){var e=this,t=this.domElem,n=this.opt;if(n.disableContextMenu&&(t.oncontextmenu=function(){return!1}),n.enableMouse){["mouseup","mousedown","mousemove","mouseover","mouseout"].forEach((function(n){t.addEventListener(n,(function(t,r){e[n](e.eventInfo(n,t,r))}),!1)}));var r;r=document.getBoxObjectFor||null!==window.mozInnerScreenX?"DOMMouseScroll":"mousewheel",t.addEventListener(r,(function(t,n){e.mousewheel(e.eventInfo("mousewheel",t,n))}),!1)}n.enableTouch&&["touchstart","touchmove","touchend"].forEach((function(n){t.addEventListener(n,(function(t,r){e[n](e.eventInfo(n,t,r))}),!1)})),n.enableKeyboard&&["keydown","keyup"].forEach((function(t){document.addEventListener(t,(function(n,r){e[t](e.eventInfo(t,n,r))}),!1)}))}},{key:"eventInfo",value:function(e,t,n){for(var r=this.domElem,i=this.scene,o=this.opt,s=this.getSize(),u=o.relative,l=o.centerOrigin,f=o.cachePosition&&this.pos||a(r),d=function(e,t){return t=t||window,e||t.event}(t,n),h=function(e,t){t=t||window,e=e||t.event;var n=t.document;if(n=n.documentElement||n.body,e.touches&&e.touches.length){for(var r=[],i=e.touches.length,o=void 0,a=0;a<i;++a)o=e.touches[a],r.push({x:o.pageX||o.clientX+n.scrollLeft,y:o.pageY||o.clientY+n.scrollTop});return r}return[{x:e.pageX||e.clientX+n.scrollLeft,y:e.pageY||e.clientY+n.scrollTop}]}(t,n),p=h[0].x,v=h[0].y,g={},y=void 0,_=void 0,m=0,b=h.length;m<b;++m)y=h[m].x,_=h[m].y,u&&(y-=f.x,_-=f.y,l&&(y-=s.width/2,_-=s.height/2,_*=-1)),h[m].x=y,h[m].y=_;switch(e){case"mousewheel":g.wheel=function(e){return e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3}(d);break;case"keydown":case"keyup":Object.assign(g,function(e){var t=e.which||e.keyCode,n=function(e){var t=c;for(var n in t)if(t[n]===e)return n;return null}(t),r=t-111;return r>0&&r<13&&(n="f"+r),{code:t,key:n=n||String.fromCharCode(t).toLowerCase(),shift:e.shiftKey,control:e.ctrlKey,alt:e.altKey,meta:e.metaKey}}(d));break;case"mouseup":g.isRightClick=function(e){return 3===e.which||2===e.button}(d)}var E=void 0;return Object.assign(g,{x:h[0].x,y:h[0].y,posArray:h,cache:!1,stop:function(){!function(e){e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1}(d)},getTarget:function(){return E||(E=o.picking&&i.pick(p-f.x,v-f.y)||!0)}}),g.event=d,g}},{key:"getSize",value:function(){if(this.cacheSize)return this.size;var e=this.domElem;return{width:e.width||e.offsetWidth,height:e.height||e.offsetHeight}}},{key:"mouseup",value:function(e){this.moved||(e.isRightClick?this.callbacks.onRightClick(e,this.hovered):this.callbacks.onClick(e,o(this.pressed))),this.pressed&&(this.moved?this.callbacks.onDragEnd(e,o(this.pressed)):this.callbacks.onDragCancel(e,o(this.pressed)),this.pressed=this.moved=!1)}},{key:"mouseout",value:function(e){for(var t=e.relatedTarget,n=this.domElem;t&&t.parentNode;){if(n===t.parentNode)return;t=t.parentNode}this.hovered&&(this.callbacks.onMouseLeave(e,this.hovered),this.hovered=!1),this.pressed&&this.moved&&(this.callbacks.onDragEnd(e),this.pressed=this.moved=!1)}},{key:"mouseover",value:function(e){}},{key:"mousemove",value:function(e){if(this.pressed)return this.moved=!0,void this.callbacks.onDragMove(e,o(this.pressed));if(this.hovered){var t=o(e.getTarget());t&&t.hash===this.hash?this.callbacks.onMouseMove(e,this.hovered):(this.callbacks.onMouseLeave(e,this.hovered),this.hovered=t,this.hash=t,t&&(this.hash=t.hash,this.callbacks.onMouseEnter(e,this.hovered)))}else this.hovered=o(e.getTarget()),this.hash=this.hovered,this.hovered&&(this.hash=this.hovered.hash,this.callbacks.onMouseEnter(e,this.hovered));this.opt.picking||this.callbacks.onMouseMove(e)}},{key:"mousewheel",value:function(e){this.callbacks.onMouseWheel(e)}},{key:"mousedown",value:function(e){this.pressed=e.getTarget(),this.callbacks.onDragStart(e,o(this.pressed))}},{key:"touchstart",value:function(e){this.touched=e.getTarget(),this.touchedLastPosition={x:e.x,y:e.y},this.callbacks.onTouchStart(e,o(this.touched))}},{key:"touchmove",value:function(e){this.touched&&(this.touchMoved=!0,this.callbacks.onTouchMove(e,o(this.touched)))}},{key:"touchend",value:function(e){this.touched&&(this.touchMoved?this.callbacks.onTouchEnd(e,o(this.touched)):(e.x=isNaN(e.x)?this.touchedLastPosition.x:e.x,e.y=isNaN(e.y)?this.touchedLastPosition.y:e.y,this.callbacks.onTap(e,o(this.touched)),this.callbacks.onTouchCancel(e,o(this.touched))),this.touched=this.touchMoved=!1)}},{key:"keydown",value:function(e){this.callbacks.onKeyDown(e)}},{key:"keyup",value:function(e){this.callbacks.onKeyUp(e)}}]),e}();Object.assign(s.prototype,{hovered:!1,pressed:!1,touched:!1,touchedLastPosition:{x:0,y:0},touchMoved:!1,moved:!1});var u={cachePosition:!0,cacheSize:!0,relative:!0,centerOrigin:!0,disableContextMenu:!0,bind:!1,picking:!1,enableTouch:!0,enableMouse:!0,enableKeyboard:!0,onClick:i,onRightClick:i,onDragStart:i,onDragMove:i,onDragEnd:i,onDragCancel:i,onTouchStart:i,onTouchMove:i,onTouchEnd:i,onTouchCancel:i,onTap:i,onMouseMove:i,onMouseEnter:i,onMouseLeave:i,onMouseWheel:i,onKeyDown:i,onKeyUp:i},c={enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,delete:46}},function(e,t,n){"use strict";var r=n(640);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";n(162);var r=n(258);n.d(t,"a",(function(){return r.a})),n(259)},function(e,t,n){"use strict";t.a=function(e){var t="",i=n.i(r.getContextInfo)(e);return o(i,"nvidia")?t+="#define NVIDIA_GPU\n// Nvidia optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n":o(i,"intel")?t+="#define INTEL_GPU\n// Intel optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n":o(i,"amd")?t+="#define AMD_GPU\n":t+="#define DEFAULT_GPU\n// Prevent driver from optimizing away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n",t},t.b=function(e){var t="// Defines for shader portability\n#if (__VERSION__ > 120)\n# define attribute in\n# define varying out\n# define FRAG_DEPTH\n# define DERIVATIVES\n# define DRAW_BUFFERS\n# define TEXTURE_LOD\n#else\n// # define in attribute\n// # define out varying\n#endif // __VERSION\n";return n.i(i.b)(e,i.a.GLSL_FRAG_DEPTH)&&(t+="// FRAG_DEPTH => gl_FragDepth is available\n#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n# define FRAG_DEPTH\n# define gl_FragDepth gl_FragDepthEXT\n#endif\n"),n.i(i.b)(e,i.a.GLSL_DERIVATIVES)&&(t+="// DERIVATIVES => dxdF, dxdY and fwidth are available\n#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives : enable\n# define DERIVATIVES\n#endif\n"),n.i(i.b)(e,i.a.GLSL_FRAG_DATA)&&(t+="// DRAW_BUFFERS => gl_FragData[] is available\n#ifdef GL_EXT_draw_buffers\n#extension GL_EXT_draw_buffers : require\n#define DRAW_BUFFERS\n#endif\n"),n.i(i.b)(e,i.a.GLSL_TEXTURE_LOD)&&(t+="// TEXTURE_LOD => texture2DLod etc are available\n#ifdef GL_EXT_shader_texture_lod\n#extension GL_EXT_shader_texture_lod : enable\n# define TEXTURE_LOD\n#define texture2DLod texture2DLodEXT\n#define texture2DProjLod texture2DProjLodEXT\n#define texture2DProjLod texture2DProjLodEXT\n#define textureCubeLod textureCubeLodEXT\n#define texture2DGrad texture2DGradEXT\n#define texture2DProjGrad texture2DProjGradEXT\n#define texture2DProjGrad texture2DProjGradEXT\n#define textureCubeGrad textureCubeGradEXT\n#endif\n"),t};var r=n(61),i=n(108);function o(e,t){var n=e.vendor,r=e.renderer,i=void 0;switch(t){case"nvidia":i=n.match(/NVIDIA/i)||r.match(/NVIDIA/i);break;case"intel":i=n.match(/INTEL/i)||r.match(/INTEL/i);break;case"amd":i=n.match(/AMD/i)||r.match(/AMD/i)||n.match(/ATI/i)||r.match(/ATI/i);break;default:i=!1}return i}},function(e,t,n){"use strict";var r={diffuseTexture:null,diffuseColor:[.5,.5,.5,1]};t.a={name:"diffuse",getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t={};return void 0!==e.diffuseTexture&&(t.diffuse_uHasTexture=Boolean(e.diffuseTexture),t.diffuse_uTexture=e.diffuseTexture),void 0!==e.diffuseColor&&(t.diffuse_uColor=e.diffuseColor),t},vs:"varying vec2 diffuse_vTexCoord;\n\n/* Set the UV coordinate from attributes */\nvoid diffuse_setTextureCoordinate(vec2 uv) {\n diffuse_vTexCoord = uv;\n}\n",fs:"uniform vec4 diffuse_uColor;\nuniform bool diffuse_uHasTexture;\nuniform sampler2D diffuse_uTexture;\n\nvarying vec2 diffuse_vTexCoord;\n\n// Gets diffuse color of material from uniform\n// If we have a standard (diffuse) texture, set color to texture\n// return (vec4) - rgba\n//\nvec4 diffuse_getColor() {\n vec2 texCoord = diffuse_vTexCoord;\n return diffuse_uHasTexture ?\n texture2D(diffuse_uTexture, vec2(texCoord.s, texCoord.t)) :\n diffuse_uColor;\n}\n\nvec4 diffuse_filterColor(vec4 color) {\n return diffuse_getColor();\n}\n"}},function(e,t,n){"use strict";var r=n(260),i={lightDirection:new Float32Array([1,1,2])};t.a={name:"dirlight",vs:null,fs:"uniform vec3 dirlight_uLightDirection;\n\n/*\n * Returns color attenuated by angle from light source\n */\nvec4 dirlight_filterColor(vec4 color) {\n vec3 normal = project_getNormal_World();\n float d = abs(dot(normalize(normal), normalize(dirlight_uLightDirection)));\n return vec4(color.rgb * d, color.a);\n}\n",getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t={};return e.lightDirection&&(t.dirlight_uLightDirection=e.lightDirection),t},dependencies:[r.a]}},function(e,t,n){"use strict";t.a={name:"fp32",vs:"#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\n\n// All these functions are for substituting tan() function from Intel GPU only\nconst float TWO_PI = 6.2831854820251465;\nconst float PI_2 = 1.5707963705062866;\nconst float PI_16 = 0.1963495463132858;\n\nconst float SIN_TABLE_0 = 0.19509032368659973;\nconst float SIN_TABLE_1 = 0.3826834261417389;\nconst float SIN_TABLE_2 = 0.5555702447891235;\nconst float SIN_TABLE_3 = 0.7071067690849304;\n\nconst float COS_TABLE_0 = 0.9807852506637573;\nconst float COS_TABLE_1 = 0.9238795042037964;\nconst float COS_TABLE_2 = 0.8314695954322815;\nconst float COS_TABLE_3 = 0.7071067690849304;\n\nconst float INVERSE_FACTORIAL_3 = 1.666666716337204e-01; // 1/3!\nconst float INVERSE_FACTORIAL_5 = 8.333333767950535e-03; // 1/5!\nconst float INVERSE_FACTORIAL_7 = 1.9841270113829523e-04; // 1/7!\nconst float INVERSE_FACTORIAL_9 = 2.75573188446287533e-06; // 1/9!\n\nfloat sin_taylor_fp32(float a) {\n float r, s, t, x;\n\n if (a == 0.0) {\n return 0.0;\n }\n\n x = -a * a;\n s = a;\n r = a;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_3;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_5;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_7;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_9;\n s = s + t;\n\n return s;\n}\n\nvoid sincos_taylor_fp32(float a, out float sin_t, out float cos_t) {\n if (a == 0.0) {\n sin_t = 0.0;\n cos_t = 1.0;\n }\n sin_t = sin_taylor_fp32(a);\n cos_t = sqrt(1.0 - sin_t * sin_t);\n}\n\nfloat tan_taylor_fp32(float a) {\n float sin_a;\n float cos_a;\n\n if (a == 0.0) {\n return 0.0;\n }\n\n // 2pi range reduction\n float z = floor(a / TWO_PI);\n float r = a - TWO_PI * z;\n\n float t;\n float q = floor(r / PI_2 + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return 0.0 / 0.0;\n }\n\n t = r - PI_2 * q;\n\n q = floor(t / PI_16 + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return 0.0 / 0.0;\n } else {\n t = t - PI_16 * q;\n }\n\n float u = 0.0;\n float v = 0.0;\n\n float sin_t, cos_t;\n float s, c;\n sincos_taylor_fp32(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0;\n v = SIN_TABLE_0;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1;\n v = SIN_TABLE_1;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2;\n v = SIN_TABLE_2;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3;\n v = SIN_TABLE_3;\n }\n if (k > 0) {\n s = u * sin_t + v * cos_t;\n c = u * cos_t - v * sin_t;\n } else {\n s = u * sin_t - v * cos_t;\n c = u * cos_t + v * sin_t;\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return sin_a / cos_a;\n}\n#endif\n\nfloat tan_fp32(float a) {\n#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\n return tan_taylor_fp32(a);\n#else\n return tan(a);\n#endif\n}\n",fs:null}},function(e,t,n){"use strict";t.a="uniform float ONE;\n\n/*\nAbout LUMA_FP64_CODE_ELIMINATION_WORKAROUND\n\nThe purpose of this workaround is to prevent shader compilers from\noptimizing away necessary arithmetic operations by swapping their sequences\nor transform the equation to some 'equivalent' from.\n\nThe method is to multiply an artifical variable, ONE, which will be known to\nthe compiler to be 1 only at runtime. The whole expression is then represented\nas a polynomial with respective to ONE. In the coefficients of all terms, only one a\nand one b should appear\n\nerr = (a + b) * ONE^6 - a * ONE^5 - (a + b) * ONE^4 + a * ONE^3 - b - (a + b) * ONE^2 + a * ONE\n*/\n\n// Divide float number to high and low floats to extend fraction bits\nvec2 split(float a) {\n const float SPLIT = 4097.0;\n float t = a * SPLIT;\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float a_hi = t * ONE - (t - a);\n float a_lo = a * ONE - a_hi;\n#else\n float a_hi = t - (t - a);\n float a_lo = a - a_hi;\n#endif\n return vec2(a_hi, a_lo);\n}\n\n// Divide float number again when high float uses too many fraction bits\nvec2 split2(vec2 a) {\n vec2 b = split(a.x);\n b.y += a.y;\n return b;\n}\n\n// Special sum operation when a > b\nvec2 quickTwoSum(float a, float b) {\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float sum = (a + b) * ONE;\n float err = b - (sum - a) * ONE;\n#else\n float sum = a + b;\n float err = b - (sum - a);\n#endif\n return vec2(sum, err);\n}\n\n// General sum operation\nvec2 twoSum(float a, float b) {\n float s = (a + b);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float v = (s * ONE - a) * ONE;\n float err = (a - (s - v) * ONE) * ONE * ONE * ONE + (b - v);\n#else\n float v = s - a;\n float err = (a - (s - v)) + (b - v);\n#endif\n return vec2(s, err);\n}\n\nvec2 twoSub(float a, float b) {\n float s = (a - b);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float v = (s * ONE - a) * ONE;\n float err = (a - (s - v) * ONE) * ONE * ONE * ONE - (b + v);\n#else\n float v = s - a;\n float err = (a - (s - v)) - (b + v);\n#endif\n return vec2(s, err);\n}\n\nvec2 twoSqr(float a) {\n float prod = a * a;\n vec2 a_fp64 = split(a);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float err = ((a_fp64.x * a_fp64.x - prod) * ONE + 2.0 * a_fp64.x *\n a_fp64.y * ONE * ONE) + a_fp64.y * a_fp64.y * ONE * ONE * ONE;\n#else\n float err = ((a_fp64.x * a_fp64.x - prod) + 2.0 * a_fp64.x * a_fp64.y) + a_fp64.y * a_fp64.y;\n#endif\n return vec2(prod, err);\n}\n\nvec2 twoProd(float a, float b) {\n float prod = a * b;\n vec2 a_fp64 = split(a);\n vec2 b_fp64 = split(b);\n float err = ((a_fp64.x * b_fp64.x - prod) + a_fp64.x * b_fp64.y +\n a_fp64.y * b_fp64.x) + a_fp64.y * b_fp64.y;\n return vec2(prod, err);\n}\n\nvec2 sum_fp64(vec2 a, vec2 b) {\n vec2 s, t;\n s = twoSum(a.x, b.x);\n t = twoSum(a.y, b.y);\n s.y += t.x;\n s = quickTwoSum(s.x, s.y);\n s.y += t.y;\n s = quickTwoSum(s.x, s.y);\n return s;\n}\n\nvec2 sub_fp64(vec2 a, vec2 b) {\n vec2 s, t;\n s = twoSub(a.x, b.x);\n t = twoSub(a.y, b.y);\n s.y += t.x;\n s = quickTwoSum(s.x, s.y);\n s.y += t.y;\n s = quickTwoSum(s.x, s.y);\n return s;\n}\n\nvec2 mul_fp64(vec2 a, vec2 b) {\n vec2 prod = twoProd(a.x, b.x);\n // y component is for the error\n prod.y += a.x * b.y;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n prod = split2(prod);\n#endif\n prod = quickTwoSum(prod.x, prod.y);\n prod.y += a.y * b.x;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n prod = split2(prod);\n#endif\n prod = quickTwoSum(prod.x, prod.y);\n return prod;\n}\n\nvec2 div_fp64(vec2 a, vec2 b) {\n float xn = 1.0 / b.x;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n vec2 yn = mul_fp64(a, vec2(xn, 0));\n#else\n vec2 yn = a * xn;\n#endif\n float diff = (sub_fp64(a, mul_fp64(b, yn))).x;\n vec2 prod = twoProd(xn, diff);\n return sum_fp64(yn, prod);\n}\n\nvec2 sqrt_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) return vec2(0.0, 0.0);\n if (a.x < 0.0) return vec2(0.0 / 0.0, 0.0 / 0.0);\n\n float x = 1.0 / sqrt(a.x);\n float yn = a.x * x;\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n vec2 yn_sqr = twoSqr(yn) * ONE;\n#else\n vec2 yn_sqr = twoSqr(yn);\n#endif\n float diff = sub_fp64(a, yn_sqr).x;\n vec2 prod = twoProd(x * 0.5, diff);\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n return sum_fp64(split(yn), prod);\n#else\n return sum_fp64(vec2(yn, 0.0), prod);\n#endif\n}\n"},function(e,t,n){"use strict";t.a="const vec2 E_FP64 = vec2(2.7182817459106445e+00, 8.254840366817007e-08);\nconst vec2 LOG2_FP64 = vec2(0.6931471824645996e+00, -1.9046542121259336e-09);\nconst vec2 PI_FP64 = vec2(3.1415927410125732, -8.742278012618954e-8);\nconst vec2 TWO_PI_FP64 = vec2(6.2831854820251465, -1.7484556025237907e-7);\nconst vec2 PI_2_FP64 = vec2(1.5707963705062866, -4.371139006309477e-8);\nconst vec2 PI_4_FP64 = vec2(0.7853981852531433, -2.1855695031547384e-8);\nconst vec2 PI_16_FP64 = vec2(0.19634954631328583, -5.463923757886846e-9);\nconst vec2 PI_16_2_FP64 = vec2(0.39269909262657166, -1.0927847515773692e-8);\nconst vec2 PI_16_3_FP64 = vec2(0.5890486240386963, -1.4906100798128818e-9);\nconst vec2 PI_180_FP64 = vec2(0.01745329238474369, 1.3519960498364902e-10);\n\nconst vec2 SIN_TABLE_0_FP64 = vec2(0.19509032368659973, -1.6704714833615242e-9);\nconst vec2 SIN_TABLE_1_FP64 = vec2(0.3826834261417389, 6.22335089017767e-9);\nconst vec2 SIN_TABLE_2_FP64 = vec2(0.5555702447891235, -1.1769521357507529e-8);\nconst vec2 SIN_TABLE_3_FP64 = vec2(0.7071067690849304, 1.2101617041793133e-8);\n\nconst vec2 COS_TABLE_0_FP64 = vec2(0.9807852506637573, 2.9739473106360492e-8);\nconst vec2 COS_TABLE_1_FP64 = vec2(0.9238795042037964, 2.8307490351764386e-8);\nconst vec2 COS_TABLE_2_FP64 = vec2(0.8314695954322815, 1.6870263741530778e-8);\nconst vec2 COS_TABLE_3_FP64 = vec2(0.7071067690849304, 1.2101617152815436e-8);\n\nconst vec2 INVERSE_FACTORIAL_3_FP64 = vec2(1.666666716337204e-01, -4.967053879312289e-09); // 1/3!\nconst vec2 INVERSE_FACTORIAL_4_FP64 = vec2(4.16666679084301e-02, -1.2417634698280722e-09); // 1/4!\nconst vec2 INVERSE_FACTORIAL_5_FP64 = vec2(8.333333767950535e-03, -4.34617203337595e-10); // 1/5!\nconst vec2 INVERSE_FACTORIAL_6_FP64 = vec2(1.3888889225199819e-03, -3.3631094437103215e-11); // 1/6!\nconst vec2 INVERSE_FACTORIAL_7_FP64 = vec2(1.9841270113829523e-04, -2.725596874933456e-12); // 1/7!\nconst vec2 INVERSE_FACTORIAL_8_FP64 = vec2(2.4801587642286904e-05, -3.406996025904184e-13); // 1/8!\nconst vec2 INVERSE_FACTORIAL_9_FP64 = vec2(2.75573188446287533e-06, 3.7935713937038186e-14); // 1/9!\nconst vec2 INVERSE_FACTORIAL_10_FP64 = vec2(2.755731998149713e-07, -7.575112367869873e-15); // 1/10!\n\nfloat nint(float d) {\n if (d == floor(d)) return d;\n return floor(d + 0.5);\n}\n\nvec2 nint_fp64(vec2 a) {\n float hi = nint(a.x);\n float lo;\n vec2 tmp;\n if (hi == a.x) {\n lo = nint(a.y);\n tmp = quickTwoSum(hi, lo);\n } else {\n lo = 0.0;\n if (abs(hi - a.x) == 0.5 && a.y < 0.0) {\n hi -= 1.0;\n }\n tmp = vec2(hi, lo);\n }\n return tmp;\n}\n\n/* k_power controls how much range reduction we would like to have\nRange reduction uses the following method:\nassume a = k_power * r + m * log(2), k and m being integers.\nSet k_power = 4 (we can choose other k to trade accuracy with performance.\nwe only need to calculate exp(r) and using exp(a) = 2^m * exp(r)^k_power;\n*/\n\nvec2 exp_fp64(vec2 a) {\n // We need to make sure these two numbers match\n // as bit-wise shift is not available in GLSL 1.0\n const int k_power = 4;\n const float k = 16.0;\n\n const float inv_k = 1.0 / k;\n\n if (a.x <= -88.0) return vec2(0.0, 0.0);\n if (a.x >= 88.0) return vec2(1.0 / 0.0, 1.0 / 0.0);\n if (a.x == 0.0 && a.y == 0.0) return vec2(1.0, 0.0);\n if (a.x == 1.0 && a.y == 0.0) return E_FP64;\n\n float m = floor(a.x / LOG2_FP64.x + 0.5);\n vec2 r = sub_fp64(a, mul_fp64(LOG2_FP64, vec2(m, 0.0))) * inv_k;\n vec2 s, t, p;\n\n p = mul_fp64(r, r);\n s = sum_fp64(r, p * 0.5);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_3_FP64);\n\n s = sum_fp64(s, t);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_4_FP64);\n\n s = sum_fp64(s, t);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_5_FP64);\n\n // s = sum_fp64(s, t);\n // p = mul_fp64(p, r);\n // t = mul_fp64(p, INVERSE_FACTORIAL_6_FP64);\n\n // s = sum_fp64(s, t);\n // p = mul_fp64(p, r);\n // t = mul_fp64(p, INVERSE_FACTORIAL_7_FP64);\n\n s = sum_fp64(s, t);\n\n\n // At this point, s = exp(r) - 1; but after following 4 recursions, we will get exp(r) ^ 512 - 1.\n for (int i = 0; i < k_power; i++) {\n s = sum_fp64(s * 2.0, mul_fp64(s, s));\n }\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n s = sum_fp64(s, vec2(ONE, 0.0));\n#else\n s = sum_fp64(s, vec2(1.0, 0.0));\n#endif\n\n return s * pow(2.0, m);\n// return r;\n}\n\nvec2 log_fp64(vec2 a)\n{\n if (a.x == 1.0 && a.y == 0.0) return vec2(0.0, 0.0);\n if (a.x <= 0.0) return vec2(0.0 / 0.0, 0.0 / 0.0);\n vec2 x = vec2(log(a.x), 0.0);\n vec2 s;\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n s = vec2(ONE, 0.0);\n#else\n s = vec2(1.0, 0.0);\n#endif\n\n x = sub_fp64(sum_fp64(x, mul_fp64(a, exp_fp64(-x))), s);\n return x;\n}\n\nvec2 sin_taylor_fp64(vec2 a) {\n vec2 r, s, t, x;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n\n x = -mul_fp64(a, a);\n s = a;\n r = a;\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_3_FP64);\n s = sum_fp64(s, t);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_5_FP64);\n s = sum_fp64(s, t);\n\n /* keep the following commented code in case we need them\n for extra accuracy from the Taylor expansion*/\n\n // r = mul_fp64(r, x);\n // t = mul_fp64(r, INVERSE_FACTORIAL_7_FP64);\n // s = sum_fp64(s, t);\n\n // r = mul_fp64(r, x);\n // t = mul_fp64(r, INVERSE_FACTORIAL_9_FP64);\n // s = sum_fp64(s, t);\n\n return s;\n}\n\nvec2 cos_taylor_fp64(vec2 a) {\n vec2 r, s, t, x;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(1.0, 0.0);\n }\n\n x = -mul_fp64(a, a);\n r = x;\n s = sum_fp64(vec2(1.0, 0.0), r * 0.5);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_4_FP64);\n s = sum_fp64(s, t);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_6_FP64);\n s = sum_fp64(s, t);\n\n /* keep the following commented code in case we need them\n for extra accuracy from the Taylor expansion*/\n\n // r = mul_fp64(r, x);\n // t = mul_fp64(r, INVERSE_FACTORIAL_8_FP64);\n // s = sum_fp64(s, t);\n\n // r = mul_fp64(r, x);\n // t = mul_fp64(r, INVERSE_FACTORIAL_10_FP64);\n // s = sum_fp64(s, t);\n\n return s;\n}\n\nvoid sincos_taylor_fp64(vec2 a, out vec2 sin_t, out vec2 cos_t) {\n if (a.x == 0.0 && a.y == 0.0) {\n sin_t = vec2(0.0, 0.0);\n cos_t = vec2(1.0, 0.0);\n }\n\n sin_t = sin_taylor_fp64(a);\n cos_t = sqrt_fp64(sub_fp64(vec2(1.0, 0.0), mul_fp64(sin_t, sin_t)));\n}\n\nvec2 sin_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n\n // 2pi range reduction\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n\n if (k == 0) {\n if (j == 0) {\n return sin_taylor_fp64(t);\n } else if (j == 1) {\n return cos_taylor_fp64(t);\n } else if (j == -1) {\n return -cos_taylor_fp64(t);\n } else {\n return -sin_taylor_fp64(t);\n }\n }\n\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n\n vec2 sin_t, cos_t;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n\n\n vec2 result = vec2(0.0, 0.0);\n if (j == 0) {\n if (k > 0) {\n result = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n }\n } else if (j == 1) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n result = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n } else if (j == -1) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n } else {\n result = -sum_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n }\n } else {\n if (k > 0) {\n result = -sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(v, cos_t), mul_fp64(u, sin_t));\n }\n }\n\n return result;\n}\n\nvec2 cos_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(1.0, 0.0);\n }\n\n // 2pi range reduction\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n\n if (k == 0) {\n if (j == 0) {\n return cos_taylor_fp64(t);\n } else if (j == 1) {\n return -sin_taylor_fp64(t);\n } else if (j == -1) {\n return sin_taylor_fp64(t);\n } else {\n return -cos_taylor_fp64(t);\n }\n }\n\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n\n vec2 sin_t, cos_t;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n vec2 result = vec2(0.0, 0.0);\n if (j == 0) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n result = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n } else if (j == 1) {\n if (k > 0) {\n result = -sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(v, cos_t), mul_fp64(u, sin_t));\n }\n } else if (j == -1) {\n if (k > 0) {\n result = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n }\n } else {\n if (k > 0) {\n result = sub_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n } else {\n result = -sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n }\n\n return result;\n}\n\nvec2 tan_fp64(vec2 a) {\n vec2 sin_a;\n vec2 cos_a;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n\n // 2pi range reduction\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n // We just can't get PI/16 * 3.0 very accurately.\n // so let's just store it\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n vec2 sin_t, cos_t;\n vec2 s, c;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n if (k > 0) {\n s = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n c = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n s = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n c = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return div_fp64(sin_a, cos_a);\n}\n\nvec2 radians_fp64(vec2 degree) {\n return mul_fp64(degree, PI_180_FP64);\n}\n\nvec2 mix_fp64(vec2 a, vec2 b, float x) {\n vec2 range = sub_fp64(b, a);\n return sum_fp64(a, mul_fp64(range, vec2(x, 0.0)));\n}\n\n// Vector functions\n// vec2 functions\nvoid vec2_sum_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = sum_fp64(a[0], b[0]);\n out_val[1] = sum_fp64(a[1], b[1]);\n}\n\nvoid vec2_sub_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = sub_fp64(a[0], b[0]);\n out_val[1] = sub_fp64(a[1], b[1]);\n}\n\nvoid vec2_mul_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = mul_fp64(a[0], b[0]);\n out_val[1] = mul_fp64(a[1], b[1]);\n}\n\nvoid vec2_div_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = div_fp64(a[0], b[0]);\n out_val[1] = div_fp64(a[1], b[1]);\n}\n\nvoid vec2_mix_fp64(vec2 x[2], vec2 y[2], float a, out vec2 out_val[2]) {\n vec2 range[2];\n vec2_sub_fp64(y, x, range);\n vec2 portion[2];\n portion[0] = range[0] * a;\n portion[1] = range[1] * a;\n vec2_sum_fp64(x, portion, out_val);\n}\n\nvec2 vec2_length_fp64(vec2 x[2]) {\n return sqrt_fp64(sum_fp64(mul_fp64(x[0], x[0]), mul_fp64(x[1], x[1])));\n}\n\nvoid vec2_normalize_fp64(vec2 x[2], out vec2 out_val[2]) {\n vec2 length = vec2_length_fp64(x);\n vec2 length_vec2[2];\n length_vec2[0] = length;\n length_vec2[1] = length;\n\n vec2_div_fp64(x, length_vec2, out_val);\n}\n\nvec2 vec2_distance_fp64(vec2 x[2], vec2 y[2]) {\n vec2 diff[2];\n vec2_sub_fp64(x, y, diff);\n return vec2_length_fp64(diff);\n}\n\nvec2 vec2_dot_fp64(vec2 a[2], vec2 b[2]) {\n vec2 v[2];\n\n v[0] = mul_fp64(a[0], b[0]);\n v[1] = mul_fp64(a[1], b[1]);\n\n return sum_fp64(v[0], v[1]);\n}\n\n// vec3 functions\nvoid vec3_sub_fp64(vec2 a[3], vec2 b[3], out vec2 out_val[3]) {\n for (int i = 0; i < 3; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvoid vec3_sum_fp64(vec2 a[3], vec2 b[3], out vec2 out_val[3]) {\n for (int i = 0; i < 3; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvec2 vec3_length_fp64(vec2 x[3]) {\n return sqrt_fp64(sum_fp64(sum_fp64(mul_fp64(x[0], x[0]), mul_fp64(x[1], x[1])),\n mul_fp64(x[2], x[2])));\n}\n\nvec2 vec3_distance_fp64(vec2 x[3], vec2 y[3]) {\n vec2 diff[3];\n vec3_sub_fp64(x, y, diff);\n return vec3_length_fp64(diff);\n}\n\n// vec4 functions\nvoid vec4_fp64(vec4 a, out vec2 out_val[4]) {\n out_val[0].x = a[0];\n out_val[0].y = 0.0;\n\n out_val[1].x = a[1];\n out_val[1].y = 0.0;\n\n out_val[2].x = a[2];\n out_val[2].y = 0.0;\n\n out_val[3].x = a[3];\n out_val[3].y = 0.0;\n}\n\nvoid vec4_scalar_mul_fp64(vec2 a[4], vec2 b, out vec2 out_val[4]) {\n out_val[0] = mul_fp64(a[0], b);\n out_val[1] = mul_fp64(a[1], b);\n out_val[2] = mul_fp64(a[2], b);\n out_val[3] = mul_fp64(a[3], b);\n}\n\nvoid vec4_sum_fp64(vec2 a[4], vec2 b[4], out vec2 out_val[4]) {\n for (int i = 0; i < 4; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvoid vec4_dot_fp64(vec2 a[4], vec2 b[4], out vec2 out_val) {\n vec2 v[4];\n\n v[0] = mul_fp64(a[0], b[0]);\n v[1] = mul_fp64(a[1], b[1]);\n v[2] = mul_fp64(a[2], b[2]);\n v[3] = mul_fp64(a[3], b[3]);\n\n out_val = sum_fp64(sum_fp64(v[0], v[1]), sum_fp64(v[2], v[3]));\n}\n\nvoid mat4_vec4_mul_fp64(vec2 b[16], vec2 a[4], out vec2 out_val[4]) {\n vec2 tmp[4];\n\n for (int i = 0; i < 4; i++)\n {\n for (int j = 0; j < 4; j++)\n {\n tmp[j] = b[j + i * 4];\n }\n vec4_dot_fp64(a, tmp, out_val[i]);\n }\n}\n"},function(e,t,n){},function(e,t,n){"use strict";n(649);var r=n(647),i=n(648),o=r.a+"\n"+i.a;t.a={name:"fp64",vs:o,fs:null},r.a},function(e,t,n){"use strict";t.a=" // empty\n"},function(e,t,n){"use strict";t.a="#ifdef GL_ES\nprecision highp float;\n#endif\n\n#define LIGHT_MAX 4\n\nvarying vec3 lighting_vLightWeighting;\n\nvec4 lighting_apply(vec4 color) {\n // set color from texture\n return vec4(color.rgb * lighting_vLightWeighting, color.a);\n}\n\n// spec-map.fs\n\nuniform mat4 viewMatrix;\n\n\nvarying vec4 lighting_vColor;\nvarying vec4 lighting_vTransformedNormal;\nvarying vec4 lighting_vPosition;\n\nuniform float shininess;\nuniform bool enableSpecularMap;\nuniform bool enableLights;\n\nuniform vec3 ambientColor;\nuniform vec3 directionalColor;\nuniform vec3 lightingDirection;\n\nuniform vec3 lighting_uPointLocation[LIGHT_MAX];\nuniform vec3 lighting_uPointColor[LIGHT_MAX];\nuniform float lighting_uPointSpecularEnable[LIGHT_MAX];\nuniform vec3 lighting_uPointSpecularColor[LIGHT_MAX];\nuniform int numberPoints;\n\n\nvec3 lighting__calculate_light_weighting() {\n\treturn lighting__calculate_light_weighting(shininess);\n}\n\nvec3 lighting__calculate_light_weighting(shininess) {\n vec3 normal = vTransformedNormal.xyz;\n vec3 eyeDirection = normalize(-vPosition.xyz);\n\n vec3 specularLight = vec3(0., 0., 0.);\n vec3 diffuseLight = vec3(0., 0., 0.);\n\n for (int i = 0; i < LIGHT_MAX; i++) {\n if (i < numberPoints) {\n vec3 transformedPointLocation = (viewMatrix * vec4(lighting_uPointLocation[i], 1.0)).xyz;\n vec3 lightDirection = normalize(transformedPointLocation - vPosition.xyz);\n\n if (lighting_uPointSpecularEnable > 0.) {\n vec3 reflectionDirection = reflect(-lightDirection, normal);\n float specularLightWeighting =\n pow(max(dot(reflectionDirection, eyeDirection), 0.0), shininessVal);\n specularLight += specularLightWeighting * lighting_uPointSpecularColor[i];\n }\n\n float diffuseLightWeighting = max(dot(normal, lightDirection), 0.0);\n diffuseLight += diffuseLightWeighting * lighting_uPointColor[i];\n } else {\n break;\n }\n }\n\n return ambientColor + diffuseLight + specularLight;\n}\n\nvoid lighting_filterColor(fragmentColor) {\n if (!lighting_enable) {\n \treturn fragmentColor;\n } else {\n \tvec3 lightWeighting = lighting__calculate_light_weighting();\n \treturn vec4(fragmentColor.rgb * lightWeighting, fragmentColor.a);\n }\n}\n\n// render-tex.fs\n\nuniform vec3 material_uAmbientColor;\nuniform vec3 material_uDiffuseColor;\nuniform vec3 material_uSpecularColor;\nuniform vec3 material_uEmissiveColor;\n\nuniform bool hasTexture1;\nuniform sampler2D sampler1;\n\nuniform mat4 viewMatrix;\n\nvoid apply_lighting(color) {\n vec3 ambientLightWeighting = ambientColor;\n\n vec3 normal = vTransformedNormal.xyz;\n vec3 eyeDirection = normalize(-vPosition.xyz);\n\n vec3 specularLight = vec3(0.0, 0.0, 0.0);\n vec3 diffuseLight = vec3(0.0, 0.0, 0.0);\n\n for (int i = 0; i < LIGHT_MAX; i++) {\n if (i < numberPoints) {\n vec3 transformedPointLocation = (viewMatrix * vec4(pointLocation[i], 1.0)).xyz;\n vec3 lightDirection = normalize(transformedPointLocation - vPosition.xyz);\n\n if (enableSpecularHighlights) {\n vec3 reflectionDirection = reflect(-lightDirection, normal);\n float specularLightWeighting =\n pow(max(dot(reflectionDirection, eyeDirection), 0.0), shininess);\n specularLight += specularLightWeighting * pointSpecularColor[i];\n }\n\n float diffuseLightWeighting = max(dot(normal, lightDirection), 0.0);\n diffuseLight += diffuseLightWeighting * pointColor[i];\n } else {\n break;\n }\n }\n\n vec3 matAmbientColor = material_uAmbientColor * color.rgb;\n vec3 matDiffuseColor = material_uDiffuseColor * color.rgb;\n vec3 matSpecularColor = material_uSpecularColor * color.rgb;\n vec3 matEmissiveColor = material_uEmissiveColor * color.rgb;\n gl_FragColor = vec4(\n matAmbientColor * ambientLightWeighting\n + matDiffuseColor * diffuseLightWeighting\n + matSpecularColor * specularLightWeighting\n + matEmissiveColor,\n color.a\n );\n}\n\n/// frag-lighting\n\n vec3 lightWeighting;\n if (!enableLights) {\n lightWeighting = vec3(1.0, 1.0, 1.0);\n } else {\n vec3 lightDirection;\n float specularLightWeighting = 0.0;\n float diffuseLightWeighting = 0.0;\n vec3 specularLight = vec3(0.0, 0.0, 0.0);\n vec3 diffuseLight = vec3(0.0, 0.0, 0.0);\n\n vec3 transformedPointLocation;\n vec3 normal = vTransformedNormal.xyz;\n\n vec3 eyeDirection = normalize(-vPosition.xyz);\n vec3 reflectionDirection;\n\n vec3 pointWeight = vec3(0.0, 0.0, 0.0);\n\n for (int i = 0; i < LIGHT_MAX; i++) {\n if (i < numberPoints) {\n transformedPointLocation = (viewMatrix * vec4(pointLocation[i], 1.0)).xyz;\n lightDirection = normalize(transformedPointLocation - vPosition.xyz);\n\n if (enableSpecular[i] > 0.0) {\n reflectionDirection = reflect(-lightDirection, normal);\n specularLightWeighting = pow(max(dot(reflectionDirection, eyeDirection), 0.0), shininess);\n specularLight += specularLightWeighting * pointSpecularColor[i];\n }\n\n diffuseLightWeighting = max(dot(normal, lightDirection), 0.0);\n diffuseLight += diffuseLightWeighting * pointColor[i];\n } else {\n break;\n }\n }\n\n lightWeighting = ambientColor + diffuseLight + specularLight;\n }\n\n// reflection / refraction configs\nuniform float reflection;\nuniform float refraction;\n\n///\n // has cube texture then apply reflection\n // if (hasTextureCube1) {\n // vec3 nReflection = normalize(vReflection);\n // vec3 reflectionValue;\n // if (refraction > 0.0) {\n // reflectionValue = refract(nReflection, vNormal.xyz, refraction);\n // } else {\n // reflectionValue = -reflect(nReflection, vNormal.xyz);\n // }\n\n // // TODO(nico): check whether this is right.\n // vec4 cubeColor = textureCube(samplerCube1,\n // vec3(-reflectionValue.x, -reflectionValue.y, reflectionValue.z));\n // gl_FragColor = vec4(mix(gl_FragColor.xyz, cubeColor.xyz, reflection), 1.0);\n // }\n"},function(e,t,n){"use strict";t.a="#define LIGHT_MAX 4\n\n/*\n// lighting configuration\nuniform bool enableLights;\nuniform vec3 ambientColor;\nuniform vec3 directionalColor;\nuniform vec3 lightingDirection;\n\n// point lights configuration\nuniform vec3 pointLocation[LIGHT_MAX];\nuniform vec3 pointColor[LIGHT_MAX];\nuniform int numberPoints;\n\n// reflection / refraction configuration\nuniform bool useReflection;\n*/\n\nuniform bool lighting_uEnableLights;\nuniform vec3 lighting_uAmbientColor;\nuniform vec3 lighting_uDirection;\nuniform vec3 lighting_uDirectionalColor;\n\n// point lights configuration\nuniform int lighting_uPointCount;\nuniform vec3 lighting_uPointLocation[LIGHT_MAX];\nuniform vec3 lighting_uPointColor[LIGHT_MAX];\n\n// reflection / refraction configuration\nuniform bool lighting_uEnableReflections;\n\n// varyings\nvarying vec4 lighting_vPosition;\nvarying vec4 lighting_vNormal;\nvarying vec3 lighting_vColor;\nvarying vec3 lighting_vLightWeighting;\nvarying vec3 lighting_vReflection;\n\nvoid lighting_setPositionAndNormal(vec3 position, vec3 normal) {\n lighting_vPosition = worldMatrix * vec4(position, 1.);\n lighting_vNormal = worldInverseTransposeMatrix * vec4(normal, 1.);;\n}\n\nvoid lighting__getLightWeigting() {\n float directionalLightWeighting = max(dot(lighting_vNormal.xyz, lighting_uDirection), 0.);\n vec3 pointWeight = vec3(0., 0., 0.);\n for (int i = 0; i < LIGHT_MAX; i++) {\n if (i < numberPoints) {\n vec4 mvLightPosition = viewMatrix * vec4(lighting_uPointLocation[i], 1.);\n vec3 pointLightDirection = normalize(mvLightPosition.xyz - lighting_vPosition.xyz);\n pointWeight += max(dot(lighting_vNormal.xyz, pointLightDirection), 0.) * pointColor[i];\n } else {\n break;\n }\n }\n return ambientColor + (directionalColor * directionalLightWeighting) + pointWeight;\n}\n\nvoid lighting_apply(vec3 position, vec3 normal) {\n lighting_setPositionAndNormal(position, normal);\n\n // lighting code\n if(!lighting_uEnableLights) {\n lighting_vLightWeighting = vec3(1., 1., 1.);\n } else {\n lighting_vLightWeighting = lighting__getLightWeighting();\n }\n}\n\nvoid lighting_set_reflection(vec3 position) {\n // refraction / reflection code\n if (lighting_uEnableReflections) {\n lighting_vReflection = (viewInverseMatrix[3] - (worldMatrix * vec4(position, 1.))).xyz;\n } else {\n lighting_vReflection = vec3(1., 1., 1.);\n }\n}\n"},function(e,t,n){"use strict";var r=n(16),i=n(651),o=n(653),a=n(652),s=i.a+"\n"+o.a+"\n",u=i.a+"\n"+a.a+"\n";t.a={name:"lighting",vs:s,fs:u,getUniforms:function(e){var t,n,i,o,a=e.lightingEnable,s=void 0!==a&&a,u=e.lightingAmbientColor,c=void 0===u?[.2,.2,.2]:u,l=e.lightingDirection,f=void 0===l?[1,1,1]:l,d=(e.lightingDirectionalColor,e.lightingPointLights),h=void 0===d?[]:d;return Object.assign({lightingEnable:s,lightingAmbientColor:c},(n=(t=f).color,i=t.direction,o=new r.Vector3(i.x,i.y,i.z).normalize().scale(-1,-1,-1),{directionalColor:[n.r,n.g,n.b],lightingDirection:[o.x,o.y,o.z]}),function(e){var t=(e=e instanceof Array?e:[e]).length,n=[],r=[],i=[],o=[],a=!0,s=!1,u=void 0;try{for(var c,l=e[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value,d=f.position,h=f.color,p=f.diffuse,v=f.specular,g=h||p;n.push(d.x,d.y,d.z),r.push(g.r,g.g,g.b),i.push(Number(Boolean(v))),v?o.push(v.r,v.g,v.b):o.push(0,0,0)}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}return{numberPoints:t,pointLocation:n,pointColor:r,enableSpecular:i,pointSpecularColor:o}}(h))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="#ifdef MODULE_LOGDEPTH\n logdepth_adjustPosition(gl_Position);\n#endif\n",i="#ifdef MODULE_MATERIAL\n gl_FragColor = material_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LIGHTING\n gl_FragColor = lighting_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_FOG\n gl_FragColor = fog_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_PICKING\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LOGDEPTH\n logdepth_setFragDepth();\n#endif\n"},function(e,t,n){"use strict";var r={pickingSelectedColor:null,pickingHighlightColor:new Uint8Array([0,255,255,255]),pickingThreshold:1,pickingActive:!1};t.a={name:"picking",vs:"uniform vec3 picking_uSelectedColor;\nuniform float picking_uThreshold;\nuniform bool picking_uSelectedColorValid;\n\nvarying vec4 picking_vRGBcolor_Aselected;\n\nconst float COLOR_SCALE = 1. / 255.;\n\nbool isVertexPicked(vec3 vertexColor) {\n return\n picking_uSelectedColorValid &&\n abs(vertexColor.r - picking_uSelectedColor.r) < picking_uThreshold &&\n abs(vertexColor.g - picking_uSelectedColor.g) < picking_uThreshold &&\n abs(vertexColor.b - picking_uSelectedColor.b) < picking_uThreshold;\n}\n\nvoid picking_setPickingColor(vec3 pickingColor) {\n // Do the comparison with selected item color in vertex shader as it should mean fewer compares\n picking_vRGBcolor_Aselected.a =\n float(isVertexPicked(pickingColor));\n\n // Stores the picking color so that the fragment shader can render it during picking\n picking_vRGBcolor_Aselected.rgb = pickingColor * COLOR_SCALE;\n}\n",fs:"uniform bool picking_uActive; // true during rendering to offscreen picking buffer\nuniform vec3 picking_uSelectedColor;\nuniform vec4 picking_uHighlightColor;\n\nvarying vec4 picking_vRGBcolor_Aselected;\n\nconst float COLOR_SCALE = 1. / 255.;\n\n/*\n * Returns highlight color if this item is selected.\n */\nvec4 picking_filterHighlightColor(vec4 color) {\n bool selected = bool(picking_vRGBcolor_Aselected.a);\n return selected ? (picking_uHighlightColor * COLOR_SCALE) : color;\n}\n\n/*\n * Returns picking color if picking enabled else unmodified argument.\n */\nvec4 picking_filterPickingColor(vec4 color) {\n vec3 pickingColor = picking_vRGBcolor_Aselected.rgb;\n return picking_uActive ? vec4(pickingColor, 1.0) : color;\n}\n",getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t={};if(void 0!==e.pickingSelectedColor)if(null===e.pickingSelectedColor)t.picking_uSelectedColorValid=0;else{var n=[e.pickingSelectedColor[0],e.pickingSelectedColor[1],e.pickingSelectedColor[2]];t.picking_uSelectedColorValid=1,t.picking_uSelectedColor=n}return void 0!==e.pickingHighlightColor&&(t.picking_uHighlightColor=e.pickingHighlightColor),void 0!==e.pickingThreshold&&(t.picking_uThreshold=e.pickingThreshold),void 0!==e.pickingActive&&(t.picking_uActive=e.pickingActive?1:0),t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(659),i=n(658),o={vs:r.a,fs:i.a,defaultUniforms:{}}},function(e,t,n){"use strict";t.a="#define SHADER_NAME luma-modular-fragment\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\n// varyings\nvarying vec4 vColor;\n\nvoid main(){\n gl_FragColor = vec4(1., 0., 1., 1.);\n\n#ifdef MODULE_DIFFUSE\n gl_FragColor = diffuse_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_MATERIAL\n gl_FragColor = material_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LIGHTING\n gl_FragColor = lighting_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_FOG\n gl_FragColor = fog_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_PICKING\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LOGDEPTH\n logdepth_setFragDepth(gl_Position);\n#endif\n}\n"},function(e,t,n){"use strict";t.a="#define SHADER_NAME luma_modular_vertex\n\n// object attributes\nattribute vec3 positions;\nattribute vec3 normals;\nattribute vec4 colors;\nattribute vec2 texCoords;\nattribute vec3 pickingColors;\n\nvoid main(void) {\n\n // Set up position\n#ifdef MODULE_GEOMETRY\n geometry_setPosition(positions);\n geometry_setNormal(normals);\n#endif\n\n#ifdef MODULE_PROJECT\n project_setPositionAndNormal_Model(positions, normals);\n gl_Position = project_model_to_clipspace(positions);\n#endif\n\n // Set up depth\n#ifdef MODULE_LOGDEPTH\n logdepth_adjustPosition(gl_Position);\n#endif\n\n#ifdef MODULE_DIFFUSE\n diffuse_setTextureCoordinate(texCoords);\n#endif\n\n // Set up color calculations\n#ifdef MODULE_MATERIAL\n material_setDiffuseColor(colors);\n material_setDiffuseTextureCoordinates(texCoords);\n#endif\n\n#ifdef MODULE_LIGHTING\n lighting_setPositionAndNormal(positions, normals);\n lighting_apply_light(positions);\n lighting_apply_reflection(positions);\n#endif\n\n#ifdef MODULE_PICKING\n picking_setPickingColor(pickingColors);\n#endif\n\n}\n"},function(e,t,n){},function(e,t,n){"use strict";t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";o[e]=o[e]||1;var t=o[e]++;return e+"-"+t},t.b=function(e){return i()("number"==typeof e,"Input must be a number"),e&&0==(e&e-1)},t.c=function(e){var t=!0;for(var n in e){t=!1;break}return t};var r=n(1),i=n.n(r),o={}},function(e,t,n){"use strict";t.a=function(e,t){if("string"!=typeof t)return t;var n=Number(t);if(!isNaN(n))return n;var r=e[t=t.replace(/^.*\./,"")];return i()(void 0!==r,"Accessing undefined constant GL."+t),r},t.b=function(e,t){for(var n in t=Number(t),e)if(e[n]===t)return"gl."+n;return String(t)},t.c=function(e,t){for(var n in i()(void 0!==t,"undefined key"),t=Number(t),e)if(e[n]===t)return"gl."+n;return String(t)};var r=n(1),i=n.n(r)},function(e,t,n){"use strict";t.c=a,t.a=function(e){var t=e.width,n=void 0===t?800:t,r=e.height,i=void 0===r?600:r,o=e.id,s=void 0===o?"gl-canvas":o,u=e.insert,c=void 0===u||u,l=document.createElement("canvas");return l.id=s,l.style.width=Number.isFinite(n)?n+"px":"100%",l.style.height=Number.isFinite(i)?i+"px":"100%",c&&a().then((function(e){var t=e.body;t.insertBefore(l,t.firstChild)})),l},t.b=function(e){var t=e.id;if(!i)throw new Error("createGLContext called on canvas '"+t+"' before page was loaded");return document.getElementById(t)},t.d=function(e,t){var n=t.useDevicePixelRatio,i=void 0===n?null:n,o=t.useDevicePixels,a=void 0===o||o;null!==i&&(r.b.deprecated("useDevicePixelRatio","useDevicePixels"),a=i);var s=function(e,t){var n=t.useDevicePixels,i=void 0===n||n;"useDevicePixelRatio"in t&&(r.b.deprecated("useDevicePixelRatio","useDevicePixels"),i=t.useDevicePixels||t.useDevicePixelRatio);var o=i&&window.devicePixelRatio||1,a=function(e){return{width:e.clientWidth,height:e.clientHeight}}(e);return{width:Math.floor(a.width*o),height:Math.floor(a.height*o),devicePixelRatio:o}}(e,{useDevicePixels:a});s.width===e.width&&s.height===e.height||(e.width=s.width,e.height=s.height)};var r=n(8),i=r.a&&"complete"===document.readyState,o=r.a?new Promise((function(e,t){i?e(document):window.onload=function(){i=!0,e(document)}})):Promise.resolve({});function a(){return o}},function(e,t,n){"use strict";t.b=function(e){var t=e.canvas,n=e.opts,r=void 0===n?{}:n,i=e.onError,o=void 0===i?function(e){return null}:i;function a(e){o("WebGL context: "+(e.statusMessage||"Unknown error"))}t.addEventListener("webglcontextcreationerror",a,!1);var s=r.webgl1,u=void 0===s||s,c=r.webgl2,l=void 0===c||c,f=null;return l&&(f=(f=f||t.getContext("webgl2",r))||t.getContext("experimental-webgl2",r)),u&&(f=(f=f||t.getContext("webgl",r))||t.getContext("experimental-webgl",r)),t.removeEventListener("webglcontextcreationerror",a,!1),f||o("Failed to create "+(l&&!u?"WebGL2":"WebGL")+" context")},t.a=function(e){var t=e.onContextCreate,n=void 0===t?function(){return null}:t,r=e.onContextCreated,o=void 0===r?function(){}:r;if(i()(n||o),"undefined"!=typeof HTMLCanvasElement){var a=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=function(e,t){var r=void 0;return"webgl"===e&&(r=n({canvas:this,type:e,opts:t,getContext:a.bind(this)})),(r=r||a.call(this,e,t))instanceof WebGLRenderingContext&&o({canvas:this,context:r,type:e,opts:t}),r}}};var r=n(1),i=n.n(r)},function(e,t,n){"use strict";t.a=function(e,t,a){for(var s=e.split(/\r?\n/),u={},c={},l=n.i(r.a)(t)||"(unnamed)",f=n.i(r.b)(a)+" shader "+l,d=0;d<s.length;d++){var h=s[d];if(!(h.length<=1)){var p=h.split(":"),v=p[0],g=parseInt(p[2],10);if(isNaN(g))throw new Error("GLSL compilation error in "+f+": "+e);"WARNING"!==v?u[g]=h:c[g]=h}}var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:": ",r=e.split(/\r?\n/),i=String(r.length+t-1).length;return r.map((function(e,r){var a=r+t,s=String(a).length;return o(a,i-s)+n+e}))}(t);return{shaderName:f,errors:i(u,y),warnings:i(c,y)}};var r=n(264);function i(e,t){for(var n="",r=0;r<t.length;r++){var i=t[r];if((e[r+3]||e[r+2]||e[r+1])&&(n+=i+"\n",e[r+1])){var a=e[r+1],s=a.split(":",3),u=s[0],c=parseInt(s[1],10)||0;n+=o("^^^ "+u+": "+a.substring(s.join(":").length+1).trim()+"\n\n",c)}}return n}function o(e,t){for(var n="",r=0;r<t;++r)n+=" ";return""+n+e}},function(e,t,n){"use strict";t.a=function(e,t,n){var r=l[n],i="function"==typeof r?r(e,t,n):r;return void 0!==i?i:t(n)};var r,i=n(46);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a="OES_element_index",s="WEBGL_draw_buffers",u="WEBGL_debug_renderer_info",c=function(e){return f(e)?void 0:0},l=(o(r={},i.a.READ_BUFFER,(function(e){return f(e)?void 0:i.a.COLOR_ATTACHMENT0})),o(r,35723,(function(e){return f(e)?void 0:4352})),o(r,i.a.RASTERIZER_DISCARD,c),o(r,i.a.SAMPLES,c),o(r,36795,(function(e,t){var n=f(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})),o(r,37445,(function(e,t){var n=e.getExtension(u);return t(n&&n.UNMASKED_VENDOR_WEBGL||i.a.VENDOR)})),o(r,37446,(function(e,t){var n=e.getExtension(u);return t(n&&n.UNMASKED_RENDERER_WEBGL||i.a.RENDERER)})),o(r,34047,(function(e,t){var n=e.luma.extensions.EXT_texture_filter_anisotropic;return n?t(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1})),o(r,i.a.MAX_3D_TEXTURE_SIZE,c),o(r,i.a.MAX_ARRAY_TEXTURE_LAYERS,c),o(r,i.a.MAX_CLIENT_WAIT_TIMEOUT_WEBGL,c),o(r,i.a.MAX_COLOR_ATTACHMENTS,(function(e,t){if(!f(e)){var n=e.getExtension(s);return n?t(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}})),o(r,i.a.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS,c),o(r,i.a.MAX_COMBINED_UNIFORM_BLOCKS,c),o(r,i.a.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS,c),o(r,i.a.MAX_DRAW_BUFFERS,(function(e){if(!f(e)){var t=e.getExtension(s);return t?t.MAX_DRAW_BUFFERS_WEBGL:0}})),o(r,i.a.MAX_ELEMENT_INDEX,(function(e){return e.getExtension(a)?2147483647:65535})),o(r,i.a.MAX_ELEMENTS_INDICES,(function(e){return e.getExtension(a)?16777216:65535})),o(r,i.a.MAX_ELEMENTS_VERTICES,(function(e){return 16777216})),o(r,i.a.MAX_FRAGMENT_INPUT_COMPONENTS,c),o(r,i.a.MAX_FRAGMENT_UNIFORM_BLOCKS,c),o(r,i.a.MAX_FRAGMENT_UNIFORM_COMPONENTS,c),o(r,i.a.MAX_SAMPLES,c),o(r,i.a.MAX_SERVER_WAIT_TIMEOUT,c),o(r,i.a.MAX_TEXTURE_LOD_BIAS,c),o(r,i.a.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS,c),o(r,i.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS,c),o(r,i.a.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS,c),o(r,i.a.MAX_UNIFORM_BLOCK_SIZE,c),o(r,i.a.MAX_UNIFORM_BUFFER_BINDINGS,c),o(r,i.a.MAX_VARYING_COMPONENTS,c),o(r,i.a.MAX_VERTEX_OUTPUT_COMPONENTS,c),o(r,i.a.MAX_VERTEX_UNIFORM_BLOCKS,c),o(r,i.a.MAX_VERTEX_UNIFORM_COMPONENTS,c),o(r,i.a.MIN_PROGRAM_TEXEL_OFFSET,c),o(r,i.a.MAX_PROGRAM_TEXEL_OFFSET,c),o(r,i.a.UNIFORM_BUFFER_OFFSET_ALIGNMENT,c),r);function f(e){return e&&32874===e.TEXTURE_BINDING_3D}},function(e,t,n){"use strict";var r=n(7),i=n(62),o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};throw a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),new Error("Texture2DArray not yet implemented")}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"isSupported",value:function(e){return n.i(r.b)(e)}}]),t}(i.a);t.a=u},function(e,t,n){"use strict";var r=n(38),i=n(7),o=n(68),a=n(62),s=n(67),u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,t),n.i(i.g)(e);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({},o,{target:o.target||r.a.TEXTURE_3D})));return a.width=null,a.height=null,a.depth=null,Object.seal(a),a.setImageData(o),o.generateMipmap&&a.generateMipmap(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,null,[{key:"isSupported",value:function(e){return n.i(i.b)(e)}}]),u(t,[{key:"initialize",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=Object.assign({},this.opts,t);var r=this.opts,i=r.pixels,a=r.settings;a&&(n.i(o.f)(a,(function(){i&&e.setImage3D(e.opts)})),this.setParameters(t))}},{key:"setImage3D",value:function(e){var t=e.level,n=void 0===t?0:t,i=e.internalformat,o=void 0===i?r.a.RGBA:i,a=e.width,u=e.height,c=e.depth,l=void 0===c?1:c,f=e.border,d=void 0===f?0:f,h=e.format,p=e.type,v=void 0===p?r.a.UNSIGNED_BYTE:p,g=e.offset,y=void 0===g?0:g,_=e.pixels;ArrayBuffer.isView(_)?this.gl.texImage3D(this.target,n,o,a,u,l,d,h,v,_):_ instanceof s.a&&(this.gl.bindBuffer(r.a.PIXEL_UNPACK_BUFFER,_.handle),this.gl.texImage3D(this.target,n,o,a,u,l,d,h,v,y),this.gl.bindBuffer(r.a.PIXEL_UNPACK_BUFFER,_.handle))}}]),t}(a.a);t.a=f},function(e,t,n){"use strict";var r,i=n(1),o=n.n(i),a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=5124,c=5126,l=5125,f=(s(r={},c,[c,1]),s(r,35664,[c,2]),s(r,35665,[c,3]),s(r,35666,[c,4]),s(r,u,[u,1]),s(r,35667,[u,2]),s(r,35668,[u,3]),s(r,35669,[u,4]),s(r,l,[l,1]),s(r,36294,[l,2]),s(r,36295,[l,3]),s(r,36296,[l,4]),s(r,35670,[c,1]),s(r,35671,[c,2]),s(r,35672,[c,3]),s(r,35673,[c,4]),s(r,35674,[c,8]),s(r,35685,[c,8]),s(r,35686,[c,8]),s(r,35675,[c,12]),s(r,35687,[c,12]),s(r,35688,[c,12]),s(r,35676,[c,16]),s(r,35689,[c,16]),s(r,35690,[c,16]),r),d=function(){function e(t){var n;for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.layout={},this.size=0,t)this._addUniform(r,t[r]);var i=new Float32Array(this.size);this.typedArray=(s(n={},c,i),s(n,u,new Int32Array(i.buffer)),s(n,l,new Uint32Array(i.buffer)),n)}return a(e,[{key:"getBytes",value:function(){return 4*this.size}},{key:"getData",value:function(){return this.typedArray[5126]}},{key:"getSubData",value:function(e){var t=void 0,n=void 0;if(void 0===e)t=this.data,n=0;else{var r=this.offsets[e],i=r+this.sizes[e];t=this.data.subarray(r,i),n=4*r}return{data:t,offset:n}}},{key:"setUniforms",value:function(e){for(var t in e)this._setValue(t,e[t]);return this}},{key:"_setValue",value:function(e,t){var n=this.layout[e];o()(n,"UniformLayoutStd140 illegal argument");var r=this.typedArray[n.type];1===n.size?r[n.offset]=t:r.set(t,n.offset)}},{key:"_addUniform",value:function(e,t){var n=f[t];o()(n,"UniformBufferLayout illegal argument");var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(n,2),i=r[0],a=r[1],s=this.size;this.size=this._alignTo(this.size,a),this.size+=a,this.layout[e]={type:i,size:a,offset:s}}},{key:"_alignTo",value:function(e,t){switch(t){case 1:return e;case 2:return e+e%2;default:return e+(4-e%4)%4}}}]),e}();t.a=d},function(e,t,n){"use strict";var r=n(112),i=n(31),o=n(278),a=n(279),s=n(113),u=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f="Unknown Euler angle order",d=.99999,h=function(e){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:t.DefaultOrder;c(this,t);var o=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return 0<arguments.length&&Array.isArray(arguments[0])?o.fromVector3.apply(o,arguments):o.set(e,n,r,i),o}var r=Number.isFinite;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,[{key:"ELEMENTS",get:function(){return 4}}],[{key:"rotationOrder",value:function(e){return t.RotationOrders[e]}},{key:"ZYX",get:function(){return 0}},{key:"YXZ",get:function(){return 1}},{key:"XZY",get:function(){return 2}},{key:"ZXY",get:function(){return 3}},{key:"YZX",get:function(){return 4}},{key:"XYZ",get:function(){return 5}},{key:"RollPitchYaw",get:function(){return 0}},{key:"DefaultOrder",get:function(){return t.ZYX}},{key:"RotationOrders",get:function(){return["ZYX","YXZ","XZY","ZXY","YZX","XYZ"]}}]),u(t,[{key:"copy",value:function(e){for(var t=0;3>t;++t)this[t]=e[t];return this[3]=r(e[3])||this.order,this.check(),this}},{key:"set",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=arguments[3];return this[0]=e,this[1]=t,this[2]=n,this[3]=r(i)?i:this[3],this.check(),this}},{key:"validate",value:function(){return 0<=(e=this[3])&&6>e&&r(this[0])&&r(this[1])&&r(this[2]);var e}},{key:"toArray",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e}},{key:"toArray4",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e[t+3]=this[3],e}},{key:"toVector3",value:function(e){return e?e.set(this[0],this[1],this[2]):new s.a(this[0],this[1],this[2])}},{key:"fromVector3",value:function(e,t){return this.set(e[0],e[1],e[2],r(t)?t:this[3])}},{key:"fromArray",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return this[0]=e[0+t],this[1]=e[1+t],this[2]=e[2+t],void 0!==e[3]&&(this[3]=e[3]),this.check(),this}},{key:"fromRollPitchYaw",value:function(e,n,r){return this.set(e,n,r,t.ZYX)}},{key:"fromQuaternion",value:function(e,t){return this._fromRotationMatrix(o.a.fromQuaternion(e),t),this.check(),this}},{key:"fromRotationMatrix",value:function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t.DefaultOrder;return this._fromRotationMatrix(e,n),this.check(),this}},{key:"getRotationMatrix",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:new o.a;return this._getRotationMatrix(e),e}},{key:"getQuaternion",value:function(){var e=new a.a;switch(this[4]){case t.XYZ:return e.rotateX(this[0]).rotateY(this[1]).rotateZ(this[2]);case t.YXZ:return e.rotateY(this[0]).rotateX(this[1]).rotateZ(this[2]);case t.ZXY:return e.rotateZ(this[0]).rotateX(this[1]).rotateY(this[2]);case t.ZYX:return e.rotateZ(this[0]).rotateY(this[1]).rotateX(this[2]);case t.YZX:return e.rotateY(this[0]).rotateZ(this[1]).rotateX(this[2]);case t.XZY:return e.rotateX(this[0]).rotateZ(this[1]).rotateY(this[2]);default:throw new Error(f)}}},{key:"_fromRotationMatrix",value:function(e){var r=Math.atan2,o=Math.abs,a=Math.asin,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t.DefaultOrder,u=e.elements,c=u[0],l=u[4],h=u[8],p=u[1],v=u[5],g=u[9],y=u[2],_=u[6],m=u[10];switch(s=s||this[3]){case t.XYZ:this[1]=a(n.i(i.e)(h,-1,1)),o(h)<d?(this[0]=r(-g,m),this[2]=r(-l,c)):(this[0]=r(_,v),this[2]=0);break;case t.YXZ:this[0]=a(-n.i(i.e)(g,-1,1)),o(g)<d?(this[1]=r(h,m),this[2]=r(p,v)):(this[1]=r(-y,c),this[2]=0);break;case t.ZXY:this[0]=a(n.i(i.e)(_,-1,1)),o(_)<d?(this[1]=r(-y,m),this[2]=r(-l,v)):(this[1]=0,this[2]=r(p,c));break;case t.ZYX:this[1]=a(-n.i(i.e)(y,-1,1)),o(y)<d?(this[0]=r(_,m),this[2]=r(p,c)):(this[0]=0,this[2]=r(-l,v));break;case t.YZX:this[2]=a(n.i(i.e)(p,-1,1)),o(p)<d?(this[0]=r(-g,v),this[1]=r(-y,c)):(this[0]=0,this[1]=r(h,m));break;case t.XZY:this[2]=a(-n.i(i.e)(l,-1,1)),o(l)<d?(this[0]=r(_,v),this[1]=r(h,c)):(this[0]=r(-g,m),this[1]=0);break;default:throw new Error(f)}return this[3]=s,this}},{key:"_getRotationMatrix",value:function(){var e=Math.sin,n=Math.cos,r=new o.a,i=this.x,a=this.y,s=this.z,u=n(i),c=n(a),l=n(s),d=e(i),h=e(a),p=e(s);switch(this[3]){case t.XYZ:var v=u*l,g=u*p,y=d*l,_=d*p;r[0]=c*l,r[4]=-c*p,r[8]=h,r[1]=g+y*h,r[5]=v-_*h,r[9]=-d*c,r[2]=_-v*h,r[6]=y+g*h,r[10]=u*c;break;case t.YXZ:var m=c*l,b=c*p,E=h*l,w=h*p;r[0]=m+w*d,r[4]=E*d-b,r[8]=u*h,r[1]=u*p,r[5]=u*l,r[9]=-d,r[2]=b*d-E,r[6]=w+m*d,r[10]=u*c;break;case t.ZXY:var P=c*l,S=c*p,T=h*l,A=h*p;r[0]=P-A*d,r[4]=-u*p,r[8]=T+S*d,r[1]=S+T*d,r[5]=u*l,r[9]=A-P*d,r[2]=-u*h,r[6]=d,r[10]=u*c;break;case t.ZYX:var x=u*l,O=u*p,R=d*l,C=d*p;r[0]=c*l,r[4]=R*h-O,r[8]=x*h+C,r[1]=c*p,r[5]=C*h+x,r[9]=O*h-R,r[2]=-h,r[6]=d*c,r[10]=u*c;break;case t.YZX:var M=u*c,k=u*h,L=d*c,I=d*h;r[0]=c*l,r[4]=I-M*p,r[8]=L*p+k,r[1]=p,r[5]=u*l,r[9]=-d*l,r[2]=-h*l,r[6]=k*p+L,r[10]=M-I*p;break;case t.XZY:var N=u*c,F=u*h,j=d*c,D=d*h;r[0]=c*l,r[4]=-p,r[8]=h*l,r[1]=N*p+D,r[5]=u*l,r[9]=F*p-j,r[2]=j*p-F,r[6]=d*l,r[10]=D*p+N;break;default:throw new Error(f)}return r[3]=0,r[7]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,this}},{key:"x",get:function(){return this[0]},set:function(e){return this[0]=n.i(i.g)(e)}},{key:"y",get:function(){return this[1]},set:function(e){return this[1]=n.i(i.g)(e)}},{key:"z",get:function(){return this[2]},set:function(e){return this[2]=n.i(i.g)(e)}},{key:"alpha",get:function(){return this[0]},set:function(e){return this[0]=n.i(i.g)(e)}},{key:"beta",get:function(){return this[1]},set:function(e){return this[1]=n.i(i.g)(e)}},{key:"gamma",get:function(){return this[2]},set:function(e){return this[2]=n.i(i.g)(e)}},{key:"phi",get:function(){return this[0]},set:function(e){return this[0]=n.i(i.g)(e)}},{key:"theta",get:function(){return this[1]},set:function(e){return this[1]=n.i(i.g)(e)}},{key:"psi",get:function(){return this[2]},set:function(e){return this[2]=n.i(i.g)(e)}},{key:"roll",get:function(){return this[0]},set:function(e){return this[0]=n.i(i.g)(e)}},{key:"pitch",get:function(){return this[1]},set:function(e){return this[1]=n.i(i.g)(e)}},{key:"yaw",get:function(){return this[2]},set:function(e){return this[2]=n.i(i.g)(e)}},{key:"order",get:function(){return this[3]},set:function(e){return this[3]=function(e){if(0>e&&6<=e)throw new Error(f);return e}(e)}}]),t}(r.a);t.a=h},function(e,t,n){"use strict";var r=n(31),i=n(113),o=n(241),a=n.n(o),s=n(277),u=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=1e-6,f=6371e3,d=function(){function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t.phi,r=t.theta,i=t.radius,a=t.bearing,s=t.pitch,u=(t.altitude,t.radiusScale),l=void 0===u?f:u;c(this,e),0===arguments.length?(this.phi=0,this.theta=0,this.radius=1):o(n)||o(r)?(this.phi=n||0,this.theta=r||0):(o(a)||o(s))&&(this.bearing=a||0,this.pitch=s||0),this.radius=i||1,this.radiusScale=l||1,this.check()}var t=Math.PI,o=Number.isFinite;return u(e,[{key:"toString",value:function(){return this.formatString(r.a)}},{key:"formatString",value:function(e){var t=e.printTypes,n=(e.printDegrees,r.b);return(t?"Spherical":"")+"[rho:"+n(this.radius)+",theta:"+n(this.theta)+",phi:"+n(this.phi)+"]"}},{key:"equals",value:function(e){return n.i(r.c)(this.radius,e.radius)&&n.i(r.c)(this.theta,e.theta)&&n.i(r.c)(this.phi,e.phi)}},{key:"exactEquals",value:function(e){return this.radius===e.radius&&this.theta===e.theta&&this.phi===e.phi}},{key:"set",value:function(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this.check()}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this.check()}},{key:"fromLngLatZ",value:function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,3),i=t[0],o=t[1],a=t[2];this.radius=1+a/this.radiusScale,this.phi=n.i(r.d)(o),this.theta=n.i(r.d)(i)}},{key:"fromVector3",value:function(e){return this.radius=a()(e),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e[0],e[1]),this.phi=Math.acos(n.i(r.e)(e[2]/this.radius,-1,1))),this.check()}},{key:"toVector3",value:function(){return new i.a(0,0,this.radius).rotateX({radians:this.theta}).rotateZ({radians:this.phi})}},{key:"makeSafe",value:function(){this.phi=Math.max(l,Math.min(t-l,this.phi))}},{key:"check",value:function(){return n.i(s.a)(o(this.phi)&&o(this.theta)&&0<this.radius),this}},{key:"bearing",get:function(){return 180-n.i(r.f)(this.phi)},set:function(e){this.phi=t-n.i(r.d)(e)}},{key:"pitch",get:function(){return n.i(r.f)(this.theta)},set:function(e){this.theta=n.i(r.d)(e)}},{key:"longitude",get:function(){return n.i(r.f)(this.phi)}},{key:"latitude",get:function(){return n.i(r.f)(this.theta)}},{key:"lng",get:function(){return n.i(r.f)(this.phi)}},{key:"lat",get:function(){return n.i(r.f)(this.theta)}},{key:"z",get:function(){return(this.radius-1)*this.radiusScale}}]),e}();t.a=d},function(e,t,n){"use strict";var r=n(283),i=n(675),o=n(674),a=n(673),s=n(114),u=n(676),c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e){e.preventDefault()}var d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,e),this.options=n,this.eventHandlers=[],this._onBasicInput=this._onBasicInput.bind(this),this._onOtherEvent=this._onOtherEvent.bind(this),this.setElement(t);var r=n.events;r&&this.on(r)}return c(e,[{key:"setElement",value:function(e){var t=this;if(this.element&&this.destroy(),this.element=e,e){var n=this.options,u=n.Manager||r.a;this.manager=new u(e,{recognizers:n.recognizers||s.a}).on("hammer.input",this._onBasicInput),n.recognizers||Object.keys(s.b).forEach((function(e){var n=t.manager.get(e);n&&s.b[e].forEach((function(e){n.recognizeWith(e)}))})),this.wheelInput=new i.a(e,this._onOtherEvent,{enable:!1}),this.moveInput=new o.a(e,this._onOtherEvent,{enable:!1}),this.keyInput=new a.a(e,this._onOtherEvent,{enable:!1}),n.rightButton&&e.addEventListener("contextmenu",f),this.eventHandlers.forEach((function(e){var n=e.recognizerName,r=e.eventAlias,i=e.wrappedHandler;t._toggleRecognizer(n,!0),t.manager.on(r,i)}))}}},{key:"destroy",value:function(){this.element&&(this.element.removeEventListener("contextmenu",f),this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.manager=null,this.element=null)}},{key:"on",value:function(e,t,n){if("string"==typeof e)this._addEventHandler(e,t,n);else for(var r in n=t,e)this._addEventHandler(r,e[r],n)}},{key:"off",value:function(e,t){if("string"==typeof e)this._removeEventHandler(e,t);else for(var n in e)this._removeEventHandler(n,e[n])}},{key:"_toggleRecognizer",value:function(e,t){var n=this.manager;if(n){var r=n.get(e);if(r){r.set({enable:t});var i=s.c[e];i&&!this.options.recognizers&&i.forEach((function(r){var i=n.get(r);t?i.requireFailure(e):i.dropRequireFailure(e)}))}this.wheelInput.enableEventType(e,t),this.moveInput.enableEventType(e,t),this.keyInput.enableEventType(e,t)}}},{key:"_addEventHandler",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.manager,i=this.eventHandlers,o=this._wrapEventHandler(e,t,n),a=s.d[e]||e,u=s.e[a]||a;this._toggleRecognizer(u,!0);var c=i.filter((function(e){return e.eventAlias===a&&e.srcElement!==n&&(!e.srcElement||e.srcElement.contains(n))}));i.push({event:e,eventAlias:a,recognizerName:u,srcElement:n,handler:t,wrappedHandler:o}),c.forEach((function(e){return r.off(a,e.wrappedHandler)})),r&&r.on(a,o),c.forEach((function(e){return r.on(a,e.wrappedHandler)}))}},{key:"_removeEventHandler",value:function(e,t){for(var n=this.manager,r=this.eventHandlers,i=!1,o=r.length;o--;){var a=r[o];a.event===e&&a.handler===t&&(n&&n.off(a.eventAlias,a.wrappedHandler),r.splice(o,1),i=!0)}if(i){var u=s.d[e]||e,c=s.e[u]||u,l=r.find((function(e){return e.recognizerName===c}));l||this._toggleRecognizer(c,!1)}}},{key:"_wrapEventHandler",value:function(e,t,n){var r=this;return function(i){var o=i.mjolnirEvent;o||(o=r._normalizeEvent(i),i.mjolnirEvent=o),o.handled&&o.handled!==n||(!n||n.contains(i.srcEvent.target))&&t(Object.assign({},o,{type:e,stopPropagation:function(){o.handled||(o.handled=n)}}))}}},{key:"_normalizeEvent",value:function(e){var t=this.element;return Object.assign({},e,n.i(u.a)(e),n.i(u.b)(e,t),{handled:!1,rootElement:t})}},{key:"_onBasicInput",value:function(e){var t=e.srcEvent,n=s.f[t.type];n&&this.manager.emit(n,e)}},{key:"_onOtherEvent",value:function(e){this.manager.emit(e.type,e)}}]),e}();t.a=d},function(e,t,n){"use strict";var r=n(114),i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=r.g.KEY_EVENTS,s="keydown",u="keyup",c=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(this,e),this.element=t,this.callback=n,this.options=Object.assign({enable:!0},i),this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=a.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),t.tabIndex=1,t.style.outline="none",this.events.forEach((function(e){return t.addEventListener(e,r.handleEvent)}))}return i(e,[{key:"destroy",value:function(){var e=this;this.events.forEach((function(t){return e.element.removeEventListener(t,e.handleEvent)}))}},{key:"enableEventType",value:function(e,t){e===s&&(this.enableDownEvent=t),e===u&&(this.enableUpEvent=t)}},{key:"handleEvent",value:function(e){var t=e.target||e.srcElement;"INPUT"===t.tagName&&"text"===t.type||"TEXTAREA"===t.tagName||(this.enableDownEvent&&"keydown"===e.type&&this.callback({type:s,srcEvent:e,key:e.key,target:e.target}),this.enableUpEvent&&"keyup"===e.type&&this.callback({type:u,srcEvent:e,key:e.key,target:e.target}))}}]),e}();t.a=c},function(e,t,n){"use strict";var r=n(114),i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=r.g.MOUSE_EVENTS,s="pointermove",u="pointerleave",c=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(this,e),this.element=t,this.callback=n,this.pressed=!1,this.options=Object.assign({enable:!0},i),this.enableMoveEvent=this.options.enable,this.enableLeaveEvent=this.options.enable,this.events=a.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach((function(e){return t.addEventListener(e,r.handleEvent)}))}return i(e,[{key:"destroy",value:function(){var e=this;this.events.forEach((function(t){return e.element.removeEventListener(t,e.handleEvent)}))}},{key:"enableEventType",value:function(e,t){e===s&&(this.enableMoveEvent=t),e===u&&(this.enableLeaveEvent=t)}},{key:"handleEvent",value:function(e){if(this.enableLeaveEvent&&"mouseleave"===e.type&&this.callback({type:u,srcEvent:e,pointerType:"mouse",target:e.target}),this.enableMoveEvent)switch(e.type){case"mousedown":e.button>=0&&(this.pressed=!0);break;case"mousemove":0===e.which&&(this.pressed=!1),this.pressed||this.callback({type:s,srcEvent:e,pointerType:"mouse",target:e.target});break;case"mouseup":this.pressed=!1}}}]),e}();t.a=c},function(e,t,n){"use strict";var r=n(114),i=n(282),o=(n.n(i),function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}());function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=-1!==i.userAgent.indexOf("firefox"),u=r.g.WHEEL_EVENTS,c="wheel",l=4.000244140625,f=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(this,e),this.element=t,this.callback=n,this.options=Object.assign({enable:!0},i),this.time=0,this.wheelPosition=null,this.type=null,this.timeout=null,this.lastValue=0,this.events=u.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach((function(e){return t.addEventListener(e,r.handleEvent)}))}return o(e,[{key:"destroy",value:function(){var e=this;this.events.forEach((function(t){return e.element.removeEventListener(t,e.handleEvent)}))}},{key:"enableEventType",value:function(e,t){e===c&&(this.options.enable=t)}},{key:"handleEvent",value:function(e){if(this.options.enable){e.preventDefault();var t=e.deltaY;i.window.WheelEvent&&(s&&e.deltaMode===i.window.WheelEvent.DOM_DELTA_PIXEL&&(t/=i.window.devicePixelRatio),e.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE&&(t*=40));var n=this.type,r=this.timeout,o=this.lastValue,a=this.time,u=(i.window&&i.window.performance||Date).now(),c=u-(a||0);this.wheelPosition={x:e.clientX,y:e.clientY},a=u,0!==t&&t%l==0?(n="wheel",t=Math.floor(t/l)):0!==t&&Math.abs(t)<4?n="trackpad":c>400?(n=null,o=t,r=i.window.setTimeout(function(){this._onWheel(e,-o,this.wheelPosition),n="wheel"}.bind(this),40)):n||(n=Math.abs(c*t)<200?"trackpad":"wheel",r&&(i.window.clearTimeout(r),r=null,t+=o)),e.shiftKey&&t&&(t*=.25),n&&this._onWheel(e,-t,this.wheelPosition)}}},{key:"_onWheel",value:function(e,t,n){this.callback({type:c,center:n,delta:t,srcEvent:e,pointerType:"mouse",target:e.target})}}]),e}();t.a=f},function(e,t,n){"use strict";t.a=function(e){var t=r[e.srcEvent.type];if(!t)return null;var n=e.srcEvent,i=n.buttons,o=n.button,a=n.which,s=!1,u=!1,c=!1;return 4===t||2===t&&!Number.isFinite(i)?(s=1===a,u=2===a,c=3===a):2===t?(s=Boolean(1&i),u=Boolean(4&i),c=Boolean(2&i)):1===t&&(s=0===o,u=1===o,c=2===o),{leftButton:s,middleButton:u,rightButton:c}},t.b=function(e,t){var n=e.srcEvent;if(!e.center&&!Number.isFinite(n.clientX))return null;var r=e.center||{x:n.clientX,y:n.clientY},i=t.getBoundingClientRect(),o=i.width/t.offsetWidth,a=i.height/t.offsetHeight;return{center:r,offsetCenter:{x:(r.x-i.left-t.clientLeft)/o,y:(r.y-i.top-t.clientTop)/a}}};var r={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4}},function(e,t,n){"use strict";t.a=function(e){var t=e.prototype.handler;e.prototype.handler=function(e){var n=this.store;e.button>0&&(function(t,n){for(var r=0;r<t.length;r++)if(t[r].pointerId===e.pointerId)return!0;return!1}(n)||n.push(e)),t.call(this,e)}},t.b=function(e){e.prototype.handler=function(e){var t=r[e.type];1&t&&e.button>=0&&(this.pressed=!0),2&t&&0===e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}};var r={mousedown:1,mousemove:2,mouseup:4}},function(e,t,n){"use strict";var r=n(74),i=n(101),o=n(172);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";(function(t){var r=n(74),i=n(101),o=n(155),a=n(171),s=n(172),u=n(284);e.exports=function(e,n){var c="function"==typeof Symbol&&Symbol.iterator,l="<<anonymous>>",f={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:h(r.thatReturnsNull),arrayOf:function(e){return h((function(t,n,r,i,o){if("function"!=typeof e)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new d("Invalid "+i+" `"+o+"` of type `"+g(a)+"` supplied to `"+r+"`, expected an array.");for(var u=0;u<a.length;u++){var c=e(a,u,r,i,o+"["+u+"]",s);if(c instanceof Error)return c}return null}))},element:h((function(t,n,r,i,o){var a=t[n];return e(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+g(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return h((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||l;return new d("Invalid "+i+" `"+o+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:l)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,r,i){return v(e[t])?null:new d("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,r,i,o){if("function"!=typeof e)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],u=g(a);if("object"!==u)return new d("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,r,i,o+"."+c,s);if(l instanceof Error)return l}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(u=a,c=e[s],u===c?0!==u||1/u==1/c:u!=u&&c!=c)return null;var u,c;return new d("Invalid "+i+" `"+o+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!=typeof i)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",_(i),n),r.thatReturnsNull}return h((function(t,n,r,i,o){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,i,o,s))return null;return new d("Invalid "+i+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(e){return h((function(t,n,r,i,o){var a=t[n],u=g(a);if("object"!==u)return new d("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var l=e[c];if(l){var f=l(a,c,r,i,o+"."+c,s);if(f)return f}}return null}))},exact:function(e){return h((function(t,n,r,i,o){var u=t[n],c=g(u);if("object"!==c)return new d("Invalid "+i+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var l=a({},t[n],e);for(var f in l){var h=e[f];if(!h)return new d("Invalid "+i+" `"+o+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=h(u,f,r,i,o+"."+f,s);if(p)return p}return null}))}};function d(e){this.message=e,this.stack=""}function h(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function u(u,c,f,h,p,v,g){if(h=h||l,v=v||f,g!==s)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var y=h+":"+f;!r[y]&&a<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",v,h),r[y]=!0,a++)}return null==c[f]?u?null===c[f]?new d("The "+p+" `"+v+"` is marked as required in `"+h+"`, but its value is `null`."):new d("The "+p+" `"+v+"` is marked as required in `"+h+"`, but its value is `undefined`."):null:e(c,f,h,p,v)}var c=u.bind(null,!1);return c.isRequired=u.bind(null,!0),c}function p(e){return h((function(t,n,r,i,o,a){var s=t[n];return g(s)!==e?new d("Invalid "+i+" `"+o+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||e(t))return!0;var n=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!v(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return d.prototype=Error.prototype,f.checkPropTypes=u,f.PropTypes=f,f}}).call(t,n(26))},function(e,t,n){"use strict";(function(t){"production"!==t.env.NODE_ENV&&function(){var t=n(171),r=n(233),i=n(101),o=n(155),a=n(74),s=n(284),u="function"==typeof Symbol&&Symbol.for,c=u?Symbol.for("react.element"):60103,l=u?Symbol.for("react.call"):60104,f=u?Symbol.for("react.return"):60105,d=u?Symbol.for("react.portal"):60106,h=u?Symbol.for("react.fragment"):60107,p="function"==typeof Symbol&&Symbol.iterator;function v(e){if(null==e)return null;var t=p&&e[p]||e["@@iterator"];return"function"==typeof t?t:null}var g,y=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!=typeof console&&console.warn(o);try{throw new Error(o)}catch(e){}};g=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];y.apply(void 0,[t].concat(r))}};var _=g,m={};function b(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;m[i]||(o(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op.\n\nPlease check the code for the %s component.",t,t,r),m[i]=!0)}var E={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){b(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){b(e,"replaceState")},enqueueSetState:function(e,t,n,r){b(e,"setState")}};function w(e,t,n){this.props=e,this.context=t,this.refs=r,this.updater=n||E}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&i(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var P={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},S=function(e,t){Object.defineProperty(w.prototype,e,{get:function(){_(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var T in P)P.hasOwnProperty(T)&&S(T,P[T]);function A(e,t,n){this.props=e,this.context=t,this.refs=r,this.updater=n||E}function x(){}x.prototype=w.prototype;var O=A.prototype=new x;function R(e,t,n){this.props=e,this.context=t,this.refs=r,this.updater=n||E}O.constructor=A,t(O,w.prototype),O.isPureReactComponent=!0;var C=R.prototype=new x;C.constructor=R,t(C,w.prototype),C.unstable_isAsyncReactComponent=!0,C.render=function(){return this.props.children};var M,k,L={current:null},I=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function F(e){if(I.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function j(e){if(I.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function D(e,t){var n=function(){M||(M=!0,o(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function B(e,t){var n=function(){k||(k=!0,o(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}var U=function(e,t,n,r,i,o,a){var s={$$typeof:c,type:e,key:t,ref:n,props:a,_owner:o,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function G(e,t,n){var r,i={},o=null,a=null,s=null,u=null;if(null!=t)for(r in F(t)&&(a=t.ref),j(t)&&(o=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)I.call(t,r)&&!N.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(l>1){for(var f=Array(l),d=0;d<l;d++)f[d]=arguments[d+2];Object.freeze&&Object.freeze(f),i.children=f}if(e&&e.defaultProps){var h=e.defaultProps;for(r in h)void 0===i[r]&&(i[r]=h[r])}if((o||a)&&(void 0===i.$$typeof||i.$$typeof!==c)){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&D(i,p),a&&B(i,p)}return U(e,o,a,s,u,L.current,i)}function V(e,n,r){var i,o,a=t({},e.props),s=e.key,u=e.ref,c=e._self,l=e._source,f=e._owner;if(null!=n)for(i in F(n)&&(u=n.ref,f=L.current),j(n)&&(s=""+n.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),n)I.call(n,i)&&!N.hasOwnProperty(i)&&(void 0===n[i]&&void 0!==o?a[i]=o[i]:a[i]=n[i]);var d=arguments.length-2;if(1===d)a.children=r;else if(d>1){for(var h=Array(d),p=0;p<d;p++)h[p]=arguments[p+2];a.children=h}return U(e.type,s,u,c,l,f,a)}function z(e){return"object"==typeof e&&null!==e&&e.$$typeof===c}var W={getCurrentStack:null,getStackAddendum:function(){var e=W.getCurrentStack;return e?e():null}},X=!1,H=/\/+/g;function Y(e){return(""+e).replace(H,"$&/")}var K=[];function Z(e,t,n,r){if(K.length){var i=K.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function q(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,K.length<10&&K.push(e)}function Q(e,t,n,r){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var s,u=!1;if(null===e)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case c:case l:case f:case d:u=!0}}if(u)return n(r,e,""===t?"."+$(e,0):t),1;var h=0,p=""===t?".":t+":";if(Array.isArray(e))for(var g=0;g<e.length;g++)h+=Q(s=e[g],p+$(s,g),n,r);else{var y=v(e);if("function"==typeof y){y===e.entries&&(o(X,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",W.getStackAddendum()),X=!0);for(var _,m=y.call(e),b=0;!(_=m.next()).done;)h+=Q(s=_.value,p+$(s,b++),n,r)}else if("object"===a){var E;E=" If you meant to render a collection of children, use an array instead."+W.getStackAddendum();var w=""+e;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,E)}}return h}function J(e,t,n){return null==e?0:Q(e,"",t,n)}function $(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function ee(e,t,n){var r=e.func,i=e.context;r.call(i,t,e.count++)}function te(e,t,n){var r,i,o=e.result,s=e.keyPrefix,u=e.func,c=e.context,l=u.call(c,t,e.count++);Array.isArray(l)?ne(l,o,n,a.thatReturnsArgument):null!=l&&(z(l)&&(r=l,i=s+(!l.key||t&&t.key===l.key?"":Y(l.key)+"/")+n,l=U(r.type,i,r.ref,r._self,r._source,r._owner,r.props)),o.push(l))}function ne(e,t,n,r,i){var o="";null!=n&&(o=Y(n)+"/");var a=Z(t,o,r,i);J(e,te,a),q(a)}function re(e){var t=e.type;return"string"==typeof t?t:"function"==typeof t?t.displayName||t.name:null}var ie=null,oe=!1,ae=function(){var e,t="";if(ie){var n=null==(e=ie)?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type===h?"React.Fragment":e.type.displayName||e.type.name||"Unknown",r=ie._owner;t+=function(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}(n,ie._source,r&&re(r))}return t+(W.getStackAddendum()||"")},se=new Map([["children",!0],["key",!0]]);function ue(){if(L.current){var e=re(L.current);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function ce(e){if(null!=e&&void 0!==e.__source){var t=e.__source;return"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+"."}return""}var le={};function fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ue();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!le[n]){le[n]=!0;var r="";e&&e._owner&&e._owner!==L.current&&(r=" It was passed a child from "+re(e._owner)+"."),ie=e,o(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',n,r,ae()),ie=null}}}function de(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];z(r)&&fe(r,t)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var i=v(e);if("function"==typeof i&&i!==e.entries)for(var o,a=i.call(e);!(o=a.next()).done;)z(o.value)&&fe(o.value,t)}}function he(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name,r=t.propTypes;r?(ie=e,s(r,e.props,"prop",n,ae),ie=null):void 0===t.PropTypes||oe||(oe=!0,o(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"==typeof t.getDefaultProps&&o(t.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pe(e){ie=e;var t=!0,n=!1,r=void 0;try{for(var i,a=Object.keys(e.props)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;if(!se.has(s)){o(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",s,ae());break}}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}null!==e.ref&&o(!1,"Invalid attribute `ref` supplied to `React.Fragment`.%s",ae()),ie=null}function ve(e,t,n){var r="string"==typeof e||"function"==typeof e||"symbol"==typeof e||"number"==typeof e;if(!r){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var a=ce(t);i+=a||ue(),i+=ae()||"",o(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==e?e:typeof e,i)}var s=G.apply(this,arguments);if(null==s)return s;if(r)for(var u=2;u<arguments.length;u++)de(arguments[u],e);return"symbol"==typeof e&&e===h?pe(s):he(s),s}var ge={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return ne(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;var r=Z(null,null,t,n);J(e,ee,r),q(r)},count:function(e,t){return J(e,a.thatReturnsNull,null)},toArray:function(e){var t=[];return ne(e,t,null,a.thatReturnsArgument),t},only:function(e){return z(e)||i(!1,"React.Children.only expected to receive a single React element child."),e}},Component:w,PureComponent:A,unstable_AsyncComponent:R,Fragment:h,createElement:ve,cloneElement:function(e,t,n){for(var r=V.apply(this,arguments),i=2;i<arguments.length;i++)de(arguments[i],r.type);return he(r),r},createFactory:function(e){var t=ve.bind(null,e);return t.type=e,Object.defineProperty(t,"type",{enumerable:!1,get:function(){return _(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},isValidElement:z,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:L,assign:t}};t(ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:W,ReactComponentTreeHook:{}});var ye=Object.freeze({default:ge}),_e=ye&&ge||ye,me=_e.default?_e.default:_e;e.exports=me}()}).call(t,n(26))},function(e,t,n){"use strict";var r=n(171),i=n(233),o=n(74),a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103,u=a?Symbol.for("react.call"):60104,c=a?Symbol.for("react.return"):60105,l=a?Symbol.for("react.portal"):60106,f=a?Symbol.for("react.fragment"):60107,d="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw(t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.")).name="Invariant Violation",t.framesToPop=1,t}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function v(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||p}function g(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||p}function y(){}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&h("85"),this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var _=g.prototype=new y;function m(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||p}_.constructor=g,r(_,v.prototype),_.isPureReactComponent=!0;var b=m.prototype=new y;b.constructor=m,r(b,v.prototype),b.unstable_isAsyncReactComponent=!0,b.render=function(){return this.props.children};var E={current:null},w=Object.prototype.hasOwnProperty,P={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!P.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:s,type:e,key:o,ref:a,props:i,_owner:E.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===s}var A=/\/+/g,x=[];function O(e,t,n,r){if(x.length){var i=x.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function R(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>x.length&&x.push(e)}function C(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var o=!1;if(null===e)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case s:case u:case c:case l:o=!0}}if(o)return n(r,e,""===t?"."+M(e,0):t),1;if(o=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var f=t+M(i=e[a],a);o+=C(i,f,n,r)}else if("function"==typeof(f=null==e?null:"function"==typeof(f=d&&e[d]||e["@@iterator"])?f:null))for(e=f.call(e),a=0;!(i=e.next()).done;)o+=C(i=i.value,f=t+M(i,a++),n,r);else"object"===i&&h("31","[object Object]"==(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return o}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function k(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?I(e,r,n,o.thatReturnsArgument):null!=e&&(T(e)&&(t=i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n,e={$$typeof:s,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function I(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),t=O(t,o,r,i),null==e||C(e,"",L,t),R(t)}var N={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return I(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=O(null,null,t,n),null==e||C(e,"",k,t),R(t)},count:function(e){return null==e?0:C(e,"",o.thatReturnsNull,null)},toArray:function(e){var t=[];return I(e,t,null,o.thatReturnsArgument),t},only:function(e){return T(e)||h("143"),e}},Component:v,PureComponent:g,unstable_AsyncComponent:m,Fragment:f,createElement:S,cloneElement:function(e,t,n){var i=r({},e.props),o=e.key,a=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,u=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)w.call(t,l)&&!P.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:s,type:e.type,key:o,ref:a,props:i,_owner:u}},createFactory:function(e){var t=S.bind(null,e);return t.type=e,t},isValidElement:T,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:E,assign:r}},F=Object.freeze({default:N}),j=F&&N||F;e.exports=j.default?j.default:j},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t,n){(function(e,r){var i=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<o;u=r[++n])v(u)||!b(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(n,i){if(_(e.process))return function(){return t.deprecate(n,i).apply(this,arguments)};if(!0===r.noDeprecation)return n;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return n.apply(this,arguments)}};var o,a={};function s(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&t._extend(r,n),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&P(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return y(i)||(i=l(e,i,r)),i}var o=function(e,t){if(_(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),w(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(P(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(m(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return e.stylize(Date.prototype.toString.call(n),"date");if(w(n))return f(n)}var c,b="",S=!1,T=["{","}"];return h(n)&&(S=!0,T=["[","]"]),P(n)&&(b=" [Function"+(n.name?": "+n.name:"")+"]"),m(n)&&(b=" "+RegExp.prototype.toString.call(n)),E(n)&&(b=" "+Date.prototype.toUTCString.call(n)),w(n)&&(b=" "+f(n)),0!==a.length||S&&0!=n.length?r<0?m(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=S?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)O(t,String(a))?o.push(d(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return d(e,n,r,s,t,S)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,b,T)):T[0]+b+T[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),O(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),_(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function v(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function _(e){return void 0===e}function m(e){return b(e)&&"[object RegExp]"===S(e)}function b(e){return"object"==typeof e&&null!==e}function E(e){return b(e)&&"[object Date]"===S(e)}function w(e){return b(e)&&("[object Error]"===S(e)||e instanceof Error)}function P(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(_(o)&&(o=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=p,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=_,t.isRegExp=m,t.isObject=b,t.isDate=E,t.isError=w,t.isFunction=P,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(683);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",x(),t.format.apply(t,arguments))},t.inherits=n(682),t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(t,n(47),n(26))},function(e,t,n){"use strict";t.a=function(e,t,s){var u={},c=1.414,l=e.zoom,f=[e.longitude,e.latitude],d=n.i(o.j)(l),h=t.zoom,p=[t.longitude,t.latitude],v=n.i(o.j)(h-l),g=new r.Vector2(n.i(o.a)(f,d)),y=new r.Vector2(n.i(o.a)(p,d)).subtract(g),_=Math.max(e.width,e.height),m=_/v,b=Math.sqrt(y.x*y.x+y.y*y.y);if(Math.abs(b)<.01){var E=!0,w=!1,P=void 0;try{for(var S,T=a[Symbol.iterator]();!(E=(S=T.next()).done);E=!0){var A=S.value,x=e[A],O=t[A];u[A]=n.i(i.c)(x,O,s)}}catch(e){w=!0,P=e}finally{try{!E&&T.return&&T.return()}finally{if(w)throw P}}return u}var R=c*c,C=(m*m-_*_+R*R*b*b)/(2*_*R*b),M=(m*m-_*_-R*R*b*b)/(2*m*R*b),k=Math.log(Math.sqrt(C*C+1)-C),L=s*((Math.log(Math.sqrt(M*M+1)-M)-k)/c),I=Math.cosh(k)/Math.cosh(k+c*L),N=_*((Math.cosh(k)*Math.tanh(k+c*L)-Math.sinh(k))/R)/b,F=1/I,j=l+n.i(o.k)(F),D=n.i(o.b)(g.add(y.scale(N)).scale(F),n.i(o.j)(j));return u.longitude=D[0],u.latitude=D[1],u.zoom=j,u};var r=n(16),i=n(118),o=n(80),a=["longitude","latitude","zoom"]},function(e,t,n){"use strict";t.a=function(e){var t=e.width,s=e.height,u=e.longitude,c=e.latitude,l=e.zoom,f=e.pitch,d=void 0===f?0:f,h=e.bearing,p=void 0===h?0:h;(u<-180||u>180)&&(u=n.i(i.d)(u+180,360)-180),(p<-180||p>180)&&(p=n.i(i.d)(p+180,360)-180);var v=new r.a({width:t,height:s,longitude:u,latitude:c,zoom:l}),g=v.project([u,o])[1],y=v.project([u,a])[1],_=0;return y-g<s&&(l+=Math.log2(s/(y-g)),g=(v=new r.a({width:t,height:s,longitude:u,latitude:c,zoom:l})).project([u,o])[1],y=v.project([u,a])[1]),g>0?_=g:y<s&&(_=y-s),_&&(c=v.unproject([t/2,s/2+_])[1]),{width:t,height:s,longitude:u,latitude:c,zoom:l,pitch:d,bearing:p}};var r=n(81),i=n(118),o=85.05113,a=-85.05113},function(e,t,n){"use strict";var r=n(16),i=n(118),o=n(80),a=n(77),s=n.n(a),u=n(78),c=n.n(u),l=n(75),f=n.n(l),d=n(156),h=n.n(d),p=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},v=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=n.i(i.a)(),_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width,o=t.height,a=t.viewMatrix,u=void 0===a?y:a,l=t.projectionMatrix,d=t.isGeographicCoordinateSystem,p=void 0===l?y:l;g(this,e),this.width=r||1,this.height=o||1,this.scale=1,this.viewMatrix=u,this.projectionMatrix=p,this.isGeographicCoordinateSystem=d;var v=n.i(i.a)();f()(v,v,this.projectionMatrix),f()(v,v,this.viewMatrix),this.viewProjectionMatrix=v;var _=n.i(i.a)();s()(_,_,[this.width/2,-this.height/2,1]),c()(_,_,[1,-1,0]),f()(_,_,this.viewProjectionMatrix);var m=h()(n.i(i.a)(),_);if(!m)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=_,this.pixelUnprojectionMatrix=m,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return v(e,[{key:"equals",value:function(t){return t instanceof e&&t.width===this.width&&t.height===this.height&&n.i(r.equals)(t.projectionMatrix,this.projectionMatrix)&&n.i(r.equals)(t.viewMatrix,this.viewMatrix)}},{key:"project",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.topLeft,i=void 0===r||r,a=p(e,3),s=a[0],u=a[1],c=a[2],l=this.projectFlat([s,u]),f=p(l,2),d=f[0],h=f[1],v=n.i(o.c)([d,h,c],this.pixelProjectionMatrix),g=p(v,2),y=g[0],_=g[1],m=i?_:this.height-_;return 2===e.length?[y,m]:[y,m,v[2]]}},{key:"unproject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.topLeft,i=void 0===r||r,a=t.targetZ,s=p(e,3),u=s[0],c=s[1],l=s[2],f=i?c:this.height-c,d=n.i(o.d)([u,f,l],this.pixelUnprojectionMatrix,a),h=this.unprojectFlat(d),v=p(h,2),g=v[0],y=v[1];return Number.isFinite(l)?[g,y,d[2]]:Number.isFinite(a)?[g,y,a]:[g,y]}},{key:"projectFlat",value:function(e){return arguments.length>1&&void 0!==arguments[1]||this.scale,e}},{key:"unprojectFlat",value:function(e){return arguments.length>1&&void 0!==arguments[1]||this.scale,e}}]),e}();t.a=_},function(e,t,n){(function(t){WebGLDebugUtils=function(){var e;void 0===e&&(e=t);var n={enable:{1:{0:!0}},disable:{1:{0:!0}},getParameter:{1:{0:!0}},drawArrays:{3:{0:!0}},drawElements:{4:{0:!0,2:!0}},createShader:{1:{0:!0}},getShaderParameter:{2:{1:!0}},getProgramParameter:{2:{1:!0}},getShaderPrecisionFormat:{2:{0:!0,1:!0}},getVertexAttrib:{2:{1:!0}},vertexAttribPointer:{6:{2:!0}},bindTexture:{2:{0:!0}},activeTexture:{1:{0:!0}},getTexParameter:{2:{0:!0,1:!0}},texParameterf:{3:{0:!0,1:!0}},texParameteri:{3:{0:!0,1:!0,2:!0}},copyTexImage2D:{8:{0:!0,2:!0}},copyTexSubImage2D:{8:{0:!0}},generateMipmap:{1:{0:!0}},bindBuffer:{2:{0:!0}},getBufferParameter:{2:{0:!0,1:!0}},pixelStorei:{2:{0:!0,1:!0}},bindRenderbuffer:{2:{0:!0}},bindFramebuffer:{2:{0:!0}},checkFramebufferStatus:{1:{0:!0}},framebufferRenderbuffer:{4:{0:!0,1:!0,2:!0}},framebufferTexture2D:{5:{0:!0,1:!0,2:!0}},getFramebufferAttachmentParameter:{3:{0:!0,1:!0,2:!0}},getRenderbufferParameter:{2:{0:!0,1:!0}},renderbufferStorage:{4:{0:!0,1:!0}},clear:{1:{0:{enumBitwiseOr:["COLOR_BUFFER_BIT","DEPTH_BUFFER_BIT","STENCIL_BUFFER_BIT"]}}},depthFunc:{1:{0:!0}},blendFunc:{2:{0:!0,1:!0}},blendFuncSeparate:{4:{0:!0,1:!0,2:!0,3:!0}},blendEquation:{1:{0:!0}},blendEquationSeparate:{2:{0:!0,1:!0}},stencilFunc:{3:{0:!0}},stencilFuncSeparate:{4:{0:!0,1:!0}},stencilMaskSeparate:{2:{0:!0}},stencilOp:{3:{0:!0,1:!0,2:!0}},stencilOpSeparate:{4:{0:!0,1:!0,2:!0,3:!0}},cullFace:{1:{0:!0}},frontFace:{1:{0:!0}},drawArraysInstancedANGLE:{4:{0:!0}},drawElementsInstancedANGLE:{5:{0:!0,2:!0}},blendEquationEXT:{1:{0:!0}},bufferData:{3:{0:!0,2:!0},4:{0:!0,2:!0},5:{0:!0,2:!0}},bufferSubData:{3:{0:!0},4:{0:!0},5:{0:!0}},copyBufferSubData:{5:{0:!0,1:!0}},getBufferSubData:{3:{0:!0},4:{0:!0},5:{0:!0}},blitFramebuffer:{10:{8:{enumBitwiseOr:["COLOR_BUFFER_BIT","DEPTH_BUFFER_BIT","STENCIL_BUFFER_BIT"]},9:!0}},framebufferTextureLayer:{5:{0:!0,1:!0}},invalidateFramebuffer:{2:{0:!0}},invalidateSubFramebuffer:{6:{0:!0}},readBuffer:{1:{0:!0}},getInternalformatParameter:{3:{0:!0,1:!0,2:!0}},renderbufferStorageMultisample:{5:{0:!0,2:!0}},texStorage2D:{5:{0:!0,2:!0}},texStorage3D:{6:{0:!0,2:!0}},texImage2D:{9:{0:!0,2:!0,6:!0,7:!0},6:{0:!0,2:!0,3:!0,4:!0},10:{0:!0,2:!0,6:!0,7:!0}},texImage3D:{10:{0:!0,2:!0,7:!0,8:!0},11:{0:!0,2:!0,7:!0,8:!0}},texSubImage2D:{9:{0:!0,6:!0,7:!0},7:{0:!0,4:!0,5:!0},10:{0:!0,6:!0,7:!0}},texSubImage3D:{11:{0:!0,8:!0,9:!0},12:{0:!0,8:!0,9:!0}},copyTexSubImage3D:{9:{0:!0}},compressedTexImage2D:{7:{0:!0,2:!0},8:{0:!0,2:!0},9:{0:!0,2:!0}},compressedTexImage3D:{8:{0:!0,2:!0},9:{0:!0,2:!0},10:{0:!0,2:!0}},compressedTexSubImage2D:{8:{0:!0,6:!0},9:{0:!0,6:!0},10:{0:!0,6:!0}},compressedTexSubImage3D:{10:{0:!0,8:!0},11:{0:!0,8:!0},12:{0:!0,8:!0}},vertexAttribIPointer:{5:{2:!0}},drawArraysInstanced:{4:{0:!0}},drawElementsInstanced:{5:{0:!0,2:!0}},drawRangeElements:{6:{0:!0,4:!0}},readPixels:{7:{4:!0,5:!0},8:{4:!0,5:!0}},clearBufferfv:{3:{0:!0},4:{0:!0}},clearBufferiv:{3:{0:!0},4:{0:!0}},clearBufferuiv:{3:{0:!0},4:{0:!0}},clearBufferfi:{4:{0:!0}},beginQuery:{2:{0:!0}},endQuery:{1:{0:!0}},getQuery:{2:{0:!0,1:!0}},getQueryParameter:{2:{1:!0}},samplerParameteri:{3:{1:!0,2:!0}},samplerParameterf:{3:{1:!0}},getSamplerParameter:{2:{1:!0}},fenceSync:{2:{0:!0,1:{enumBitwiseOr:[]}}},clientWaitSync:{3:{1:{enumBitwiseOr:["SYNC_FLUSH_COMMANDS_BIT"]}}},waitSync:{3:{1:{enumBitwiseOr:[]}}},getSyncParameter:{2:{1:!0}},bindTransformFeedback:{2:{0:!0}},beginTransformFeedback:{1:{0:!0}},transformFeedbackVaryings:{3:{2:!0}},bindBufferBase:{3:{0:!0}},bindBufferRange:{5:{0:!0}},getIndexedParameter:{2:{0:!0}},getActiveUniforms:{3:{2:!0}},getActiveUniformBlockParameter:{3:{2:!0}}},r=null,i=null;function o(e){if(null==r)for(var t in r={},i={},e)"number"==typeof e[t]&&(r[e[t]]=t,i[t]=e[t])}function a(){if(null==r)throw"WebGLDebugUtils.init(ctx) not called"}function s(e){a();var t=r[e];return void 0!==t?"gl."+t:"/*UNKNOWN WebGL ENUM*/ 0x"+e.toString(16)}function u(e,t,r,o){var a;if(void 0!==(a=n[e])&&void 0!==(a=a[t])&&a[r]){if("object"==typeof a[r]&&void 0!==a[r].enumBitwiseOr){for(var u=a[r].enumBitwiseOr,c=0,l=[],f=0;f<u.length;++f){var d=i[u[f]];0!=(o&d)&&(c|=d,l.push(s(d)))}return c===o?l.join(" | "):s(o)}return s(o)}return null===o?"null":void 0===o?"undefined":o.toString()}function c(e,t,n){e.__defineGetter__(n,(function(){return t[n]})),e.__defineSetter__(n,(function(e){t[n]=e}))}function l(e){var t=!!e.createTransformFeedback;t&&e.bindVertexArray(null);var n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r);for(var i=0;i<n;++i)e.disableVertexAttribArray(i),e.vertexAttribPointer(i,4,e.FLOAT,!1,0,0),e.vertexAttrib1f(i,0),t&&e.vertexAttribDivisor(i,0);e.deleteBuffer(r);var o=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);for(i=0;i<o;++i)e.activeTexture(e.TEXTURE0+i),e.bindTexture(e.TEXTURE_CUBE_MAP,null),e.bindTexture(e.TEXTURE_2D,null),t&&(e.bindTexture(e.TEXTURE_2D_ARRAY,null),e.bindTexture(e.TEXTURE_3D,null),e.bindSampler(i,null));if(e.activeTexture(e.TEXTURE0),e.useProgram(null),e.bindBuffer(e.ARRAY_BUFFER,null),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.DITHER),e.disable(e.SCISSOR_TEST),e.blendColor(0,0,0,0),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.clearColor(0,0,0,0),e.clearDepth(1),e.clearStencil(-1),e.colorMask(!0,!0,!0,!0),e.cullFace(e.BACK),e.depthFunc(e.LESS),e.depthMask(!0),e.depthRange(0,1),e.frontFace(e.CCW),e.hint(e.GENERATE_MIPMAP_HINT,e.DONT_CARE),e.lineWidth(1),e.pixelStorei(e.PACK_ALIGNMENT,4),e.pixelStorei(e.UNPACK_ALIGNMENT,4),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),e.UNPACK_COLORSPACE_CONVERSION_WEBGL&&e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.BROWSER_DEFAULT_WEBGL),e.polygonOffset(0,0),e.sampleCoverage(1,!1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilMask(4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.viewport(0,0,e.canvas.width,e.canvas.height),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT),t){e.drawBuffers([e.BACK]),e.readBuffer(e.BACK),e.bindBuffer(e.COPY_READ_BUFFER,null),e.bindBuffer(e.COPY_WRITE_BUFFER,null),e.bindBuffer(e.PIXEL_PACK_BUFFER,null),e.bindBuffer(e.PIXEL_UNPACK_BUFFER,null);var a=e.getParameter(e.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS);for(i=0;i<a;++i)e.bindBufferBase(e.TRANSFORM_FEEDBACK_BUFFER,i,null);var s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);for(i=0;i<s;++i)e.bindBufferBase(e.UNIFORM_BUFFER,i,null);e.disable(e.RASTERIZER_DISCARD),e.pixelStorei(e.UNPACK_IMAGE_HEIGHT,0),e.pixelStorei(e.UNPACK_SKIP_IMAGES,0),e.pixelStorei(e.UNPACK_ROW_LENGTH,0),e.pixelStorei(e.UNPACK_SKIP_ROWS,0),e.pixelStorei(e.UNPACK_SKIP_PIXELS,0),e.pixelStorei(e.PACK_ROW_LENGTH,0),e.pixelStorei(e.PACK_SKIP_ROWS,0),e.pixelStorei(e.PACK_SKIP_PIXELS,0),e.hint(e.FRAGMENT_SHADER_DERIVATIVE_HINT,e.DONT_CARE)}for(;e.getError(););}return{init:o,mightBeEnum:function(e){return a(),void 0!==r[e]},glEnumToString:s,glFunctionArgToString:u,glFunctionArgsToString:function(e,t){for(var n="",r=t.length,i=0;i<r;++i)n+=(0==i?"":", ")+u(e,r,i,t[i]);return n},makeDebugContext:function t(n,r,i,a){a=a||n,o(n),r=r||function(t,n,r){for(var i="",o=r.length,a=0;a<o;++a)i+=(0==a?"":", ")+u(n,o,a,r[a]);var c;c="WebGL error "+s(t)+" in "+n+"("+i+")",e.console&&e.console.error?e.console.error(c):function(t){e.console&&e.console.log&&e.console.log(t)}(c)};var l={};function f(e,t){return function(){i&&i(t,arguments);var n=e[t].apply(e,arguments),o=a.getError();return 0!=o&&(l[o]=!0,r(o,t,arguments)),n}}var d={};for(var h in n)if("function"==typeof n[h])if("getExtension"!=h)d[h]=f(n,h);else{var p=f(n,h);d[h]=function(){var e=p.apply(n,arguments);return e?t(e,r,i,a):null}}else c(d,n,h);return d.getError=function(){for(var e in l)if(l.hasOwnProperty(e)&&l[e])return l[e]=!1,e;return n.NO_ERROR},d},makeLostContextSimulatingCanvas:function(t){var n,r,i,o=[],a=[],s={},u=1,f=!1,d=[],h=0,p=0,v=!1,g=0,y={};function _(e){return"function"==typeof e?e:function(t){e.handleEvent(t)}}t.getContext=(i=t.getContext,function(){var o=i.apply(t,arguments);if(o instanceof WebGLRenderingContext||e.WebGL2RenderingContext&&o instanceof WebGL2RenderingContext){if(o!=n){if(n)throw"got different context";r=e.WebGL2RenderingContext&&o instanceof WebGL2RenderingContext,s=S(n=o)}return s}return o});var m=function(e){o.push(_(e))},b=function(e){a.push(_(e))};function E(){++p,f||h==p&&t.loseContext()}function w(e,t){var n=e[t];return function(){if(E(),!f){var t=n.apply(e,arguments);return t}}}function P(e){return{statusMessage:e,preventDefault:function(){v=!0}}}return function(e){var t=e.addEventListener;e.addEventListener=function(n,r,i){switch(n){case"webglcontextlost":m(r);break;case"webglcontextrestored":b(r);break;default:t.apply(e,arguments)}}}(t),t.loseContext=function(){if(!f){for(f=!0,h=0,++u;n.getError(););!function(){for(var e=Object.keys(y),t=0;t<e.length;++t)delete y[e[t]]}(),y[n.CONTEXT_LOST_WEBGL]=!0;var e=P("context lost"),r=o.slice();setTimeout((function(){for(var n=0;n<r.length;++n)r[n](e);g>=0&&setTimeout((function(){t.restoreContext()}),g)}),0)}},t.restoreContext=function(){f&&a.length&&setTimeout((function(){if(!v)throw"can not restore. webglcontestlost listener did not call event.preventDefault";!function(){for(var e=0;e<d.length;++e){var t=d[e];t instanceof WebGLBuffer?n.deleteBuffer(t):t instanceof WebGLFramebuffer?n.deleteFramebuffer(t):t instanceof WebGLProgram?n.deleteProgram(t):t instanceof WebGLRenderbuffer?n.deleteRenderbuffer(t):t instanceof WebGLShader?n.deleteShader(t):t instanceof WebGLTexture?n.deleteTexture(t):r&&(t instanceof WebGLQuery?n.deleteQuery(t):t instanceof WebGLSampler?n.deleteSampler(t):t instanceof WebGLSync?n.deleteSync(t):t instanceof WebGLTransformFeedback?n.deleteTransformFeedback(t):t instanceof WebGLVertexArrayObject&&n.deleteVertexArray(t))}}(),l(n),f=!1,p=0,v=!1;for(var e=a.slice(),t=P("context restored"),i=0;i<e.length;++i)e[i](t)}),0)},t.loseContextInNCalls=function(e){if(f)throw"You can not ask a lost contet to be lost";h=p+e},t.getNumCalls=function(){return p},t.setRestoreTimeout=function(e){g=e},t;function S(e){for(var t in e)"function"==typeof e[t]?s[t]=w(e,t):c(s,e,t);s.getError=function(){if(E(),!f)for(;e=n.getError();)y[e]=!0;for(var e in y)if(y[e])return delete y[e],e;return s.NO_ERROR};var i=["createBuffer","createFramebuffer","createProgram","createRenderbuffer","createShader","createTexture"];r&&i.push("createQuery","createSampler","fenceSync","createTransformFeedback","createVertexArray");for(var o=0;o<i.length;++o){var a=i[o];s[a]=function(t){return function(){if(E(),f)return null;var n=t.apply(e,arguments);return n.__webglDebugContextLostId__=u,d.push(n),n}}(e[a])}var l=["getActiveAttrib","getActiveUniform","getBufferParameter","getContextAttributes","getAttachedShaders","getFramebufferAttachmentParameter","getParameter","getProgramParameter","getProgramInfoLog","getRenderbufferParameter","getShaderParameter","getShaderInfoLog","getShaderSource","getTexParameter","getUniform","getUniformLocation","getVertexAttrib"];for(r&&l.push("getInternalformatParameter","getQuery","getQueryParameter","getSamplerParameter","getSyncParameter","getTransformFeedbackVarying","getIndexedParameter","getUniformIndices","getActiveUniforms","getActiveUniformBlockParameter","getActiveUniformBlockName"),o=0;o<l.length;++o)a=l[o],s[a]=function(t){return function(){return E(),f?null:t.apply(e,arguments)}}(s[a]);var h=["isBuffer","isEnabled","isFramebuffer","isProgram","isRenderbuffer","isShader","isTexture"];for(r&&h.push("isQuery","isSampler","isSync","isTransformFeedback","isVertexArray"),o=0;o<h.length;++o)a=h[o],s[a]=function(t){return function(){return E(),!f&&t.apply(e,arguments)}}(s[a]);return s.checkFramebufferStatus=function(t){return function(){return E(),f?s.FRAMEBUFFER_UNSUPPORTED:t.apply(e,arguments)}}(s.checkFramebufferStatus),s.getAttribLocation=function(t){return function(){return E(),f?-1:t.apply(e,arguments)}}(s.getAttribLocation),s.getVertexAttribOffset=function(t){return function(){return E(),f?0:t.apply(e,arguments)}}(s.getVertexAttribOffset),s.isContextLost=function(){return f},r&&(s.getFragDataLocation=function(t){return function(){return E(),f?-1:t.apply(e,arguments)}}(s.getFragDataLocation),s.clientWaitSync=function(t){return function(){return E(),f?s.WAIT_FAILED:t.apply(e,arguments)}}(s.clientWaitSync),s.getUniformBlockIndex=function(t){return function(){return E(),f?s.INVALID_INDEX:t.apply(e,arguments)}}(s.getUniformBlockIndex)),s}},resetToInitialState:l}}(),e.exports=WebGLDebugUtils}).call(t,n(47))}])},e.exports=t()}},t={};!function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(138)})(); |