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

@deck.gl/google-maps

Package Overview
Dependencies
Maintainers
6
Versions
400
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deck.gl/google-maps - npm Package Compare versions

Comparing version 8.9.0-alpha.5 to 8.9.0-beta.1

typed/google-maps-overlay.js

2

dist.min.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("luma"),require("deck")):"function"==typeof define&&define.amd?define(["luma","deck"],e):"object"==typeof exports?exports.deck=e(require("luma"),require("deck")):t.deck=e(t.luma,t.deck)}(window,(function(t,e){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}([function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(14);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(7).default,i=r(15);t.exports=function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(e,r){e.exports=t},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=r=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(13);t.exports=function(t,e){if(null==t)return{};var r,i,o=n(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},function(t,r){t.exports=e},function(t,e,r){var n=r(16),i=globalThis.deck||{};if(!i.Layer)throw new Error("@deck.gl/core is not found");t.exports=Object.assign(i,n)},function(t,e){t.exports=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}},function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,r(e,n)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";r.r(e);var n=r(8),i=r.n(n),o=r(9),a=r.n(o),u=r(10),s=r.n(u),c=r(5),h=r.n(c),l=r(6),f=r(11),v=r(1),y=r.n(v),p=r(2),d=r.n(p),k=r(3),g=r.n(k),m=r(4),O=r.n(m),b=r(0),E=r.n(b);r(7);function _(t,e){if(!t)throw new Error("math.gl assertion ".concat(e))}Math.PI,Math.PI;var M={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.precision,n=void 0===r?M.precision:r;return t=R(t),"".concat(parseFloat(t.toPrecision(n)))}function w(t){return Array.isArray(t)||ArrayBuffer.isView(t)&&!(t instanceof DataView)}function L(t,e,r){var n=M.EPSILON;r&&(M.EPSILON=r);try{if(t===e)return!0;if(w(t)&&w(e)){if(t.length!==e.length)return!1;for(var i=0;i<t.length;++i)if(!L(t[i],e[i]))return!1;return!0}return t&&t.equals?t.equals(e):e&&e.equals?e.equals(t):"number"==typeof t&&"number"==typeof e&&Math.abs(t-e)<=M.EPSILON*Math.max(1,Math.abs(t),Math.abs(e))}finally{M.EPSILON=n}}function R(t){return Math.round(t/M.EPSILON)*M.EPSILON}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E()(t);if(e){var i=E()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O()(this,r)}}var S=function(t){g()(r,t);var e=P(r);function r(){return y()(this,r),e.apply(this,arguments)}return d()(r,[{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"fromArray",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;r<this.ELEMENTS;++r)this[r]=t[r+e];return this.check()}},{key:"toArray",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;r<this.ELEMENTS;++r)t[e+r]=this[r];return t}},{key:"from",value:function(t){return Array.isArray(t)?this.copy(t):this.fromObject(t)}},{key:"to",value:function(t){return t===this?this:w(t)?this.toArray(t):this.toObject(t)}},{key:"toTarget",value:function(t){return t?this.to(t):this}},{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"toString",value:function(){return this.formatString(M)}},{key:"formatString",value:function(t){for(var e="",r=0;r<this.ELEMENTS;++r)e+=(r>0?", ":"")+x(this[r],t);return"".concat(t.printTypes?this.constructor.name:"","[").concat(e,"]")}},{key:"equals",value:function(t){if(!t||this.length!==t.length)return!1;for(var e=0;e<this.ELEMENTS;++e)if(!L(this[e],t[e]))return!1;return!0}},{key:"exactEquals",value:function(t){if(!t||this.length!==t.length)return!1;for(var e=0;e<this.ELEMENTS;++e)if(this[e]!==t[e])return!1;return!0}},{key:"negate",value:function(){for(var t=0;t<this.ELEMENTS;++t)this[t]=-this[t];return this.check()}},{key:"lerp",value:function(t,e,r){if(void 0===r)return this.lerp(this,t,e);for(var n=0;n<this.ELEMENTS;++n){var i=t[n];this[n]=i+r*(e[n]-i)}return this.check()}},{key:"min",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]=Math.min(t[e],this[e]);return this.check()}},{key:"max",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]=Math.max(t[e],this[e]);return this.check()}},{key:"clamp",value:function(t,e){for(var r=0;r<this.ELEMENTS;++r)this[r]=Math.min(Math.max(this[r],t[r]),e[r]);return this.check()}},{key:"add",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=0,i=e;n<i.length;n++)for(var o=i[n],a=0;a<this.ELEMENTS;++a)this[a]+=o[a];return this.check()}},{key:"subtract",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=0,i=e;n<i.length;n++)for(var o=i[n],a=0;a<this.ELEMENTS;++a)this[a]-=o[a];return this.check()}},{key:"scale",value:function(t){if("number"==typeof t)for(var e=0;e<this.ELEMENTS;++e)this[e]*=t;else for(var r=0;r<this.ELEMENTS&&r<t.length;++r)this[r]*=t[r];return this.check()}},{key:"multiplyByScalar",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]*=t;return this.check()}},{key:"check",value:function(){if(M.debug&&!this.validate())throw new Error("math.gl: ".concat(this.constructor.name," some fields set to invalid numbers'"));return this}},{key:"validate",value:function(){for(var t=this.length===this.ELEMENTS,e=0;e<this.ELEMENTS;++e)t=t&&Number.isFinite(this[e]);return t}},{key:"sub",value:function(t){return this.subtract(t)}},{key:"setScalar",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]=t;return this.check()}},{key:"addScalar",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]+=t;return this.check()}},{key:"subScalar",value:function(t){return this.addScalar(-t)}},{key:"multiplyScalar",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]*=t;return this.check()}},{key:"divideScalar",value:function(t){return this.multiplyByScalar(1/t)}},{key:"clampScalar",value:function(t,e){for(var r=0;r<this.ELEMENTS;++r)this[r]=Math.min(Math.max(this[r],t),e);return this.check()}},{key:"elements",get:function(){return this}}]),r}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Array));function j(t,e){if(t.length!==e)return!1;for(var r=0;r<t.length;++r)if(!Number.isFinite(t[r]))return!1;return!0}function T(t){if(!Number.isFinite(t))throw new Error("Invalid number ".concat(t));return t}function A(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(M.debug&&!j(t,e))throw new Error("math.gl: ".concat(r," some fields set to invalid numbers'"));return t}function N(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E()(t);if(e){var i=E()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O()(this,r)}}var C=function(t){g()(r,t);var e=N(r);function r(){return y()(this,r),e.apply(this,arguments)}return d()(r,[{key:"x",get:function(){return this[0]},set:function(t){this[0]=T(t)}},{key:"y",get:function(){return this[1]},set:function(t){this[1]=T(t)}},{key:"len",value:function(){return Math.sqrt(this.lengthSquared())}},{key:"magnitude",value:function(){return this.len()}},{key:"lengthSquared",value:function(){for(var t=0,e=0;e<this.ELEMENTS;++e)t+=this[e]*this[e];return t}},{key:"magnitudeSquared",value:function(){return this.lengthSquared()}},{key:"distance",value:function(t){return Math.sqrt(this.distanceSquared(t))}},{key:"distanceSquared",value:function(t){for(var e=0,r=0;r<this.ELEMENTS;++r){var n=this[r]-t[r];e+=n*n}return T(e)}},{key:"dot",value:function(t){for(var e=0,r=0;r<this.ELEMENTS;++r)e+=this[r]*t[r];return T(e)}},{key:"normalize",value:function(){var t=this.magnitude();if(0!==t)for(var e=0;e<this.ELEMENTS;++e)this[e]/=t;return this.check()}},{key:"multiply",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=0,i=e;n<i.length;n++)for(var o=i[n],a=0;a<this.ELEMENTS;++a)this[a]*=o[a];return this.check()}},{key:"divide",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=0,i=e;n<i.length;n++)for(var o=i[n],a=0;a<this.ELEMENTS;++a)this[a]/=o[a];return this.check()}},{key:"lengthSq",value:function(){return this.lengthSquared()}},{key:"distanceTo",value:function(t){return this.distance(t)}},{key:"distanceToSquared",value:function(t){return this.distanceSquared(t)}},{key:"getComponent",value:function(t){return _(t>=0&&t<this.ELEMENTS,"index is out of range"),T(this[t])}},{key:"setComponent",value:function(t,e){return _(t>=0&&t<this.ELEMENTS,"index is out of range"),this[t]=e,this.check()}},{key:"addVectors",value:function(t,e){return this.copy(t).add(e)}},{key:"subVectors",value:function(t,e){return this.copy(t).subtract(e)}},{key:"multiplyVectors",value:function(t,e){return this.copy(t).multiply(e)}},{key:"addScaledVector",value:function(t,e){return this.add(new this.constructor(t).multiplyScalar(e))}}]),r}(S),D=1e-6,W="undefined"!=typeof Float32Array?Float32Array:Array;Math.random;Math.PI;function I(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var q,V;q=new W(2),W!=Float32Array&&(q[0]=0,q[1]=0),V=q;function B(t,e,r){var n=e[0],i=e[1],o=r[3]*n+r[7]*i||1;return t[0]=(r[0]*n+r[4]*i)/o,t[1]=(r[1]*n+r[5]*i)/o,t}function F(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E()(t);if(e){var i=E()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O()(this,r)}}var z=function(t){g()(r,t);var e=F(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return y()(this,r),t=e.call(this,2),w(n)&&1===arguments.length?t.copy(n):(M.debug&&(T(n),T(i)),t[0]=n,t[1]=i),t}return d()(r,[{key:"set",value:function(t,e){return this[0]=t,this[1]=e,this.check()}},{key:"copy",value:function(t){return this[0]=t[0],this[1]=t[1],this.check()}},{key:"fromObject",value:function(t){return M.debug&&(T(t.x),T(t.y)),this[0]=t.x,this[1]=t.y,this.check()}},{key:"toObject",value:function(t){return t.x=this[0],t.y=this[1],t}},{key:"ELEMENTS",get:function(){return 2}},{key:"horizontalAngle",value:function(){return Math.atan2(this.y,this.x)}},{key:"verticalAngle",value:function(){return Math.atan2(this.x,this.y)}},{key:"transform",value:function(t){return this.transformAsPoint(t)}},{key:"transformAsPoint",value:function(t){return I(this,this,t),this.check()}},{key:"transformAsVector",value:function(t){return B(this,this,t),this.check()}},{key:"transformByMatrix3",value:function(t){return function(t,e,r){var n=e[0],i=e[1];t[0]=r[0]*n+r[3]*i+r[6],t[1]=r[1]*n+r[4]*i+r[7]}(this,this,t),this.check()}},{key:"transformByMatrix2x3",value:function(t){return function(t,e,r){var n=e[0],i=e[1];t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5]}(this,this,t),this.check()}},{key:"transformByMatrix2",value:function(t){return function(t,e,r){var n=e[0],i=e[1];t[0]=r[0]*n+r[2]*i,t[1]=r[1]*n+r[3]*i}(this,this,t),this.check()}}]),r}(C);function K(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E()(t);if(e){var i=E()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O()(this,r)}}var Z=function(t){g()(r,t);var e=K(r);function r(){return y()(this,r),e.apply(this,arguments)}return d()(r,[{key:"toString",value:function(){var t="[";if(M.printRowMajor){t+="row-major:";for(var e=0;e<this.RANK;++e)for(var r=0;r<this.RANK;++r)t+=" ".concat(this[r*this.RANK+e])}else{t+="column-major:";for(var n=0;n<this.ELEMENTS;++n)t+=" ".concat(this[n])}return t+="]"}},{key:"getElementIndex",value:function(t,e){return e*this.RANK+t}},{key:"getElement",value:function(t,e){return this[e*this.RANK+t]}},{key:"setElement",value:function(t,e,r){return this[e*this.RANK+t]=T(r),this}},{key:"getColumn",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Array(this.RANK).fill(-0),r=t*this.RANK,n=0;n<this.RANK;++n)e[n]=this[r+n];return e}},{key:"setColumn",value:function(t,e){for(var r=t*this.RANK,n=0;n<this.RANK;++n)this[r+n]=e[n];return this}}]),r}(S);function X(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],u=e[4],s=e[5],c=e[6],h=e[7],l=e[8],f=e[9],v=e[10],y=e[11],p=e[12],d=e[13],k=e[14],g=e[15],m=r[0],O=r[1],b=r[2],E=r[3];return t[0]=m*n+O*u+b*l+E*p,t[1]=m*i+O*s+b*f+E*d,t[2]=m*o+O*c+b*v+E*k,t[3]=m*a+O*h+b*y+E*g,m=r[4],O=r[5],b=r[6],E=r[7],t[4]=m*n+O*u+b*l+E*p,t[5]=m*i+O*s+b*f+E*d,t[6]=m*o+O*c+b*v+E*k,t[7]=m*a+O*h+b*y+E*g,m=r[8],O=r[9],b=r[10],E=r[11],t[8]=m*n+O*u+b*l+E*p,t[9]=m*i+O*s+b*f+E*d,t[10]=m*o+O*c+b*v+E*k,t[11]=m*a+O*h+b*y+E*g,m=r[12],O=r[13],b=r[14],E=r[15],t[12]=m*n+O*u+b*l+E*p,t[13]=m*i+O*s+b*f+E*d,t[14]=m*o+O*c+b*v+E*k,t[15]=m*a+O*h+b*y+E*g,t}var G=function(t,e,r,n,i){var o,a=1/Math.tan(e/2);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(n-i),t[10]=(i+n)*o,t[14]=2*i*n*o):(t[10]=-1,t[14]=-2*n),t};var Y=function(t,e,r,n,i,o,a){var u=1/(e-r),s=1/(n-i),c=1/(o-a);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*u,t[13]=(i+n)*s,t[14]=(a+o)*c,t[15]=1,t};!function(){var t=function(){var t=new W(3);return W!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}()}();var H;!function(){var t=function(){var t=new W(4);return W!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}()}();function U(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E()(t);if(e){var i=E()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O()(this,r)}}!function(t){t[t.COL0ROW0=0]="COL0ROW0",t[t.COL0ROW1=1]="COL0ROW1",t[t.COL0ROW2=2]="COL0ROW2",t[t.COL0ROW3=3]="COL0ROW3",t[t.COL1ROW0=4]="COL1ROW0",t[t.COL1ROW1=5]="COL1ROW1",t[t.COL1ROW2=6]="COL1ROW2",t[t.COL1ROW3=7]="COL1ROW3",t[t.COL2ROW0=8]="COL2ROW0",t[t.COL2ROW1=9]="COL2ROW1",t[t.COL2ROW2=10]="COL2ROW2",t[t.COL2ROW3=11]="COL2ROW3",t[t.COL3ROW0=12]="COL3ROW0",t[t.COL3ROW1=13]="COL3ROW1",t[t.COL3ROW2=14]="COL3ROW2",t[t.COL3ROW3=15]="COL3ROW3"}(H||(H={}));var Q,J,$=45*Math.PI/180,tt=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),et=function(t){g()(r,t);var e=U(r);function r(t){var n;return y()(this,r),n=e.call(this,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),1===arguments.length&&Array.isArray(t)?n.copy(t):n.identity(),n}return d()(r,[{key:"ELEMENTS",get:function(){return 16}},{key:"RANK",get:function(){return 4}},{key:"INDICES",get:function(){return H}},{key:"copy",value:function(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[3],this[4]=t[4],this[5]=t[5],this[6]=t[6],this[7]=t[7],this[8]=t[8],this[9]=t[9],this[10]=t[10],this[11]=t[11],this[12]=t[12],this[13]=t[13],this[14]=t[14],this[15]=t[15],this.check()}},{key:"set",value:function(t,e,r,n,i,o,a,u,s,c,h,l,f,v,y,p){return this[0]=t,this[1]=e,this[2]=r,this[3]=n,this[4]=i,this[5]=o,this[6]=a,this[7]=u,this[8]=s,this[9]=c,this[10]=h,this[11]=l,this[12]=f,this[13]=v,this[14]=y,this[15]=p,this.check()}},{key:"setRowMajor",value:function(t,e,r,n,i,o,a,u,s,c,h,l,f,v,y,p){return this[0]=t,this[1]=i,this[2]=s,this[3]=f,this[4]=e,this[5]=o,this[6]=c,this[7]=v,this[8]=r,this[9]=a,this[10]=h,this[11]=y,this[12]=n,this[13]=u,this[14]=l,this[15]=p,this.check()}},{key:"toRowMajor",value:function(t){return t[0]=this[0],t[1]=this[4],t[2]=this[8],t[3]=this[12],t[4]=this[1],t[5]=this[5],t[6]=this[9],t[7]=this[13],t[8]=this[2],t[9]=this[6],t[10]=this[10],t[11]=this[14],t[12]=this[3],t[13]=this[7],t[14]=this[11],t[15]=this[15],t}},{key:"identity",value:function(){return this.copy(tt)}},{key:"fromObject",value:function(t){return this.check()}},{key:"fromQuaternion",value:function(t){return function(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=r+r,u=n+n,s=i+i,c=r*a,h=n*a,l=n*u,f=i*a,v=i*u,y=i*s,p=o*a,d=o*u,k=o*s;t[0]=1-l-y,t[1]=h+k,t[2]=f-d,t[3]=0,t[4]=h-k,t[5]=1-c-y,t[6]=v+p,t[7]=0,t[8]=f+d,t[9]=v-p,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1}(this,t),this.check()}},{key:"frustum",value:function(t){var e=t.left,r=t.right,n=t.bottom,i=t.top,o=t.near,a=void 0===o?.1:o,u=t.far,s=void 0===u?500:u;return s===1/0?function(t,e,r,n,i,o){var a=2*o/(r-e),u=2*o/(i-n),s=(r+e)/(r-e),c=(i+n)/(i-n),h=-2*o;t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=s,t[9]=c,t[10]=-1,t[11]=-1,t[12]=0,t[13]=0,t[14]=h,t[15]=0}(this,e,r,n,i,a):function(t,e,r,n,i,o,a){var u=1/(r-e),s=1/(i-n),c=1/(o-a);t[0]=2*o*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*s,t[6]=0,t[7]=0,t[8]=(r+e)*u,t[9]=(i+n)*s,t[10]=(a+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*c,t[15]=0}(this,e,r,n,i,a,s),this.check()}},{key:"lookAt",value:function(t){var e=t.eye,r=t.center,n=void 0===r?[0,0,0]:r,i=t.up;return function(t,e,r,n){var i,o,a,u,s,c,h,l,f,v,y=e[0],p=e[1],d=e[2],k=n[0],g=n[1],m=n[2],O=r[0],b=r[1],E=r[2];Math.abs(y-O)<D&&Math.abs(p-b)<D&&Math.abs(d-E)<D?function(t){t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1}(t):(h=y-O,l=p-b,f=d-E,i=g*(f*=v=1/Math.hypot(h,l,f))-m*(l*=v),o=m*(h*=v)-k*f,a=k*l-g*h,(v=Math.hypot(i,o,a))?(i*=v=1/v,o*=v,a*=v):(i=0,o=0,a=0),u=l*a-f*o,s=f*i-h*a,c=h*o-l*i,(v=Math.hypot(u,s,c))?(u*=v=1/v,s*=v,c*=v):(u=0,s=0,c=0),t[0]=i,t[1]=u,t[2]=h,t[3]=0,t[4]=o,t[5]=s,t[6]=l,t[7]=0,t[8]=a,t[9]=c,t[10]=f,t[11]=0,t[12]=-(i*y+o*p+a*d),t[13]=-(u*y+s*p+c*d),t[14]=-(h*y+l*p+f*d),t[15]=1)}(this,e,n,void 0===i?[0,1,0]:i),this.check()}},{key:"ortho",value:function(t){var e=t.left,r=t.right,n=t.bottom,i=t.top,o=t.near,a=void 0===o?.1:o,u=t.far;return Y(this,e,r,n,i,a,void 0===u?500:u),this.check()}},{key:"orthographic",value:function(t){var e=t.fovy,r=void 0===e?$:e,n=t.aspect,i=void 0===n?1:n,o=t.focalDistance,a=void 0===o?1:o,u=t.near,s=void 0===u?.1:u,c=t.far,h=void 0===c?500:c;rt(r);var l=r/2,f=a*Math.tan(l),v=f*i;return this.ortho({left:-v,right:v,bottom:-f,top:f,near:s,far:h})}},{key:"perspective",value:function(t){var e=t.fovy,r=void 0===e?45*Math.PI/180:e,n=t.aspect,i=void 0===n?1:n,o=t.near,a=void 0===o?.1:o,u=t.far,s=void 0===u?500:u;return rt(r),G(this,r,i,a,s),this.check()}},{key:"determinant",value:function(){return e=(t=this)[0],r=t[1],n=t[2],i=t[3],o=t[4],a=t[5],u=t[6],s=t[7],c=t[8],h=t[9],l=t[10],f=t[11],v=t[12],y=t[13],p=t[14],d=t[15],(e*a-r*o)*(l*d-f*p)-(e*u-n*o)*(h*d-f*y)+(e*s-i*o)*(h*p-l*y)+(r*u-n*a)*(c*d-f*v)-(r*s-i*a)*(c*p-l*v)+(n*s-i*u)*(c*y-h*v);var t,e,r,n,i,o,a,u,s,c,h,l,f,v,y,p,d}},{key:"getScale",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[-0,-0,-0];return t[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),t[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),t[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),t}},{key:"getTranslation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[-0,-0,-0];return t[0]=this[12],t[1]=this[13],t[2]=this[14],t}},{key:"getRotation",value:function(t,e){t=t||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],e=e||[-0,-0,-0];var r=this.getScale(e),n=1/r[0],i=1/r[1],o=1/r[2];return t[0]=this[0]*n,t[1]=this[1]*i,t[2]=this[2]*o,t[3]=0,t[4]=this[4]*n,t[5]=this[5]*i,t[6]=this[6]*o,t[7]=0,t[8]=this[8]*n,t[9]=this[9]*i,t[10]=this[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{key:"getRotationMatrix3",value:function(t,e){t=t||[-0,-0,-0,-0,-0,-0,-0,-0,-0],e=e||[-0,-0,-0];var r=this.getScale(e),n=1/r[0],i=1/r[1],o=1/r[2];return t[0]=this[0]*n,t[1]=this[1]*i,t[2]=this[2]*o,t[3]=this[4]*n,t[4]=this[5]*i,t[5]=this[6]*o,t[6]=this[8]*n,t[7]=this[9]*i,t[8]=this[10]*o,t}},{key:"transpose",value:function(){return function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],o=e[6],a=e[7],u=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=u}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15]}(this,this),this.check()}},{key:"invert",value:function(){return function(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],u=e[5],s=e[6],c=e[7],h=e[8],l=e[9],f=e[10],v=e[11],y=e[12],p=e[13],d=e[14],k=e[15],g=r*u-n*a,m=r*s-i*a,O=r*c-o*a,b=n*s-i*u,E=n*c-o*u,_=i*c-o*s,M=h*p-l*y,x=h*d-f*y,w=h*k-v*y,L=l*d-f*p,R=l*k-v*p,P=f*k-v*d,S=g*P-m*R+O*L+b*w-E*x+_*M;S&&(S=1/S,t[0]=(u*P-s*R+c*L)*S,t[1]=(i*R-n*P-o*L)*S,t[2]=(p*_-d*E+k*b)*S,t[3]=(f*E-l*_-v*b)*S,t[4]=(s*w-a*P-c*x)*S,t[5]=(r*P-i*w+o*x)*S,t[6]=(d*O-y*_-k*m)*S,t[7]=(h*_-f*O+v*m)*S,t[8]=(a*R-u*w+c*M)*S,t[9]=(n*w-r*R-o*M)*S,t[10]=(y*E-p*O+k*g)*S,t[11]=(l*O-h*E-v*g)*S,t[12]=(u*x-a*L-s*M)*S,t[13]=(r*L-n*x+i*M)*S,t[14]=(p*m-y*b-d*g)*S,t[15]=(h*b-l*m+f*g)*S)}(this,this),this.check()}},{key:"multiplyLeft",value:function(t){return X(this,t,this),this.check()}},{key:"multiplyRight",value:function(t){return X(this,this,t),this.check()}},{key:"rotateX",value:function(t){return function(t,e,r){var n=Math.sin(r),i=Math.cos(r),o=e[4],a=e[5],u=e[6],s=e[7],c=e[8],h=e[9],l=e[10],f=e[11];e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+c*n,t[5]=a*i+h*n,t[6]=u*i+l*n,t[7]=s*i+f*n,t[8]=c*i-o*n,t[9]=h*i-a*n,t[10]=l*i-u*n,t[11]=f*i-s*n}(this,this,t),this.check()}},{key:"rotateY",value:function(t){return function(t,e,r){var n=Math.sin(r),i=Math.cos(r),o=e[0],a=e[1],u=e[2],s=e[3],c=e[8],h=e[9],l=e[10],f=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-c*n,t[1]=a*i-h*n,t[2]=u*i-l*n,t[3]=s*i-f*n,t[8]=o*n+c*i,t[9]=a*n+h*i,t[10]=u*n+l*i,t[11]=s*n+f*i}(this,this,t),this.check()}},{key:"rotateZ",value:function(t){return function(t,e,r){var n=Math.sin(r),i=Math.cos(r),o=e[0],a=e[1],u=e[2],s=e[3],c=e[4],h=e[5],l=e[6],f=e[7];e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+c*n,t[1]=a*i+h*n,t[2]=u*i+l*n,t[3]=s*i+f*n,t[4]=c*i-o*n,t[5]=h*i-a*n,t[6]=l*i-u*n,t[7]=f*i-s*n}(this,this,t),this.check()}},{key:"rotateXYZ",value:function(t){return this.rotateX(t[0]).rotateY(t[1]).rotateZ(t[2])}},{key:"rotateAxis",value:function(t,e){return function(t,e,r,n){var i,o,a,u,s,c,h,l,f,v,y,p,d,k,g,m,O,b,E,_,M,x,w,L,R=n[0],P=n[1],S=n[2],j=Math.hypot(R,P,S);j<D||(R*=j=1/j,P*=j,S*=j,i=Math.sin(r),a=1-(o=Math.cos(r)),u=e[0],s=e[1],c=e[2],h=e[3],l=e[4],f=e[5],v=e[6],y=e[7],p=e[8],d=e[9],k=e[10],g=e[11],m=R*R*a+o,O=P*R*a+S*i,b=S*R*a-P*i,E=R*P*a-S*i,_=P*P*a+o,M=S*P*a+R*i,x=R*S*a+P*i,w=P*S*a-R*i,L=S*S*a+o,t[0]=u*m+l*O+p*b,t[1]=s*m+f*O+d*b,t[2]=c*m+v*O+k*b,t[3]=h*m+y*O+g*b,t[4]=u*E+l*_+p*M,t[5]=s*E+f*_+d*M,t[6]=c*E+v*_+k*M,t[7]=h*E+y*_+g*M,t[8]=u*x+l*w+p*L,t[9]=s*x+f*w+d*L,t[10]=c*x+v*w+k*L,t[11]=h*x+y*w+g*L,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]))}(this,this,t,e),this.check()}},{key:"scale",value:function(t){return function(t,e,r){var n=r[0],i=r[1],o=r[2];t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]}(this,this,Array.isArray(t)?t:[t,t,t]),this.check()}},{key:"translate",value:function(t){return function(t,e,r){var n,i,o,a,u,s,c,h,l,f,v,y,p=r[0],d=r[1],k=r[2];e===t?(t[12]=e[0]*p+e[4]*d+e[8]*k+e[12],t[13]=e[1]*p+e[5]*d+e[9]*k+e[13],t[14]=e[2]*p+e[6]*d+e[10]*k+e[14],t[15]=e[3]*p+e[7]*d+e[11]*k+e[15]):(n=e[0],i=e[1],o=e[2],a=e[3],u=e[4],s=e[5],c=e[6],h=e[7],l=e[8],f=e[9],v=e[10],y=e[11],t[0]=n,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=s,t[6]=c,t[7]=h,t[8]=l,t[9]=f,t[10]=v,t[11]=y,t[12]=n*p+u*d+l*k+e[12],t[13]=i*p+s*d+f*k+e[13],t[14]=o*p+c*d+v*k+e[14],t[15]=a*p+h*d+y*k+e[15])}(this,this,t),this.check()}},{key:"transform",value:function(t,e){return 4===t.length?(A(e=function(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*a,t[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*a,t[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*a,t[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*a,t}(e||[-0,-0,-0,-0],t,this),4),e):this.transformAsPoint(t,e)}},{key:"transformAsPoint",value:function(t,e){var r;switch(t.length){case 2:r=I(e||[-0,-0],t,this);break;case 3:r=function(t,e,r){var n=e[0],i=e[1],o=e[2],a=r[3]*n+r[7]*i+r[11]*o+r[15];return a=a||1,t[0]=(r[0]*n+r[4]*i+r[8]*o+r[12])/a,t[1]=(r[1]*n+r[5]*i+r[9]*o+r[13])/a,t[2]=(r[2]*n+r[6]*i+r[10]*o+r[14])/a,t}(e||[-0,-0,-0],t,this);break;default:throw new Error("Illegal vector")}return A(r,t.length),r}},{key:"transformAsVector",value:function(t,e){var r;switch(t.length){case 2:r=B(e||[-0,-0],t,this);break;case 3:r=function(t,e,r){var n=e[0],i=e[1],o=e[2],a=r[3]*n+r[7]*i+r[11]*o||1;return t[0]=(r[0]*n+r[4]*i+r[8]*o)/a,t[1]=(r[1]*n+r[5]*i+r[9]*o)/a,t[2]=(r[2]*n+r[6]*i+r[10]*o)/a,t}(e||[-0,-0,-0],t,this);break;default:throw new Error("Illegal vector")}return A(r,t.length),r}},{key:"transformPoint",value:function(t,e){return this.transformAsPoint(t,e)}},{key:"transformVector",value:function(t,e){return this.transformAsPoint(t,e)}},{key:"transformDirection",value:function(t,e){return this.transformAsVector(t,e)}},{key:"makeRotationX",value:function(t){return this.identity().rotateX(t)}},{key:"makeTranslation",value:function(t,e,r){return this.identity().translate([t,e,r])}}],[{key:"IDENTITY",get:function(){return function(){J||(J=new et,Object.freeze(J));return J}()}},{key:"ZERO",get:function(){return function(){Q||(Q=new et([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Object.freeze(Q));return Q}()}}]),r}(Z);function rt(t){if(t>2*Math.PI)throw Error("expected radians")}function nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function it(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nt(Object(r),!0).forEach((function(e){h()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ot(t,e,r,n){if(r){if(r.userData._googleMap===t)return r;ut(r)}var i={click:null,dblclick:null,mousemove:null,mouseout:null},o=new f.Deck(it(it({},n),{},{useDevicePixels:!!n.interleaved||n.useDevicePixels,style:n.interleaved?null:{pointerEvents:"none"},parent:at(e,n.style),initialViewState:{longitude:0,latitude:0,zoom:1},controller:!1})),a=function(e){i[e]=t.addListener(e,(function(t){return function(t,e,r){var n={type:e,offsetCenter:lt(r,t),srcEvent:r};switch(e){case"click":n.tapCount=1,t._onPointerDown(n),t._onEvent(n);break;case"dblclick":n.type="click",n.tapCount=2,t._onEvent(n);break;case"mousemove":n.type="pointermove",t._onPointerMove(n);break;case"mouseout":n.type="pointerleave",t._onPointerMove(n);break;default:return}}(o,e,t)}))};for(var u in i)a(u);return o.userData._googleMap=t,o.userData._eventListeners=i,o}function at(t,e){var r,n,i=document.createElement("div");(i.style.position="absolute",Object.assign(i.style,e),"getPanes"in t)?null===(r=t.getPanes())||void 0===r||r.overlayLayer.appendChild(i):null===(n=t.getMap())||void 0===n||n.getDiv().appendChild(i);return i}function ut(t){var e=t.userData._eventListeners;for(var r in e)e[r]&&e[r].remove();t.finalize()}function st(t,e){var r=ct(t),n=r.width,i=r.height,o=e.getCameraParams(),a=o.center,u=o.heading,s=o.tilt,c=o.zoom,h=i?n/i:1,l=(new et).perspective({fovy:25*Math.PI/180,aspect:h,near:.75,far:3e14});return{width:n,height:i,viewState:{altitude:.5*l[5],bearing:u,latitude:a.lat(),longitude:a.lng(),pitch:s,projectionMatrix:l,repeat:!0,zoom:c-1}}}function ct(t){var e=t.getDiv().firstChild;return{width:e.offsetWidth,height:e.offsetHeight}}function ht(t,e,r){var n=new google.maps.Point(e,r),i=t.fromContainerPixelToLatLng(n);return[i.lng(),i.lat()]}function lt(t,e){if(t.pixel)return t.pixel;var r=e.getViewports()[0].project([t.latLng.lng(),t.latLng.lat()]);return{x:r[0],y:r[1]}}var ft=["width","height","left","top"];function vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(r),!0).forEach((function(e){h()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var pt=function(){return!1},dt={depthMask:!0,depthTest:!0,blend:!0,blendFunc:[770,771,1,771],blendEquation:32774};function kt(){}var gt={interleaved:!0},mt=function(){function t(e){a()(this,t),h()(this,"props",{}),h()(this,"_map",null),h()(this,"_deck",null),h()(this,"_overlay",null),this.setProps(yt(yt({},gt),e))}return s()(t,[{key:"setMap",value:function(t){var e=this;if(t!==this._map){var r;if(this._map)null===(r=this._overlay)||void 0===r||r.setMap(null),this._map=null;if(t){this._map=t;var n=google.maps.RenderingType.UNINITIALIZED;t.getRenderingType()!==n?this._createOverlay(t):t.addListener("renderingtype_changed",(function(){e._createOverlay(t)}))}}}},{key:"setProps",value:function(t){if(Object.assign(this.props,t),this._deck){if(t.style){var e=this._deck.canvas.parentElement.style;Object.assign(e,t.style),t.style=null}this._deck.setProps(t)}}},{key:"pickObject",value:function(t){return this._deck&&this._deck.pickObject(t)}},{key:"pickMultipleObjects",value:function(t){return this._deck&&this._deck.pickMultipleObjects(t)}},{key:"pickObjects",value:function(t){return this._deck&&this._deck.pickObjects(t)}},{key:"finalize",value:function(){this.setMap(null),this._deck&&(ut(this._deck),this._deck=null)}},{key:"_createOverlay",value:function(t){var e=this.props.interleaved,r=google.maps.RenderingType,n=r.VECTOR,i=r.UNINITIALIZED,o=t.getRenderingType();if(o!==i){var a=new(o===n&&google.maps.WebGLOverlayView?google.maps.WebGLOverlayView:google.maps.OverlayView);a instanceof google.maps.WebGLOverlayView?(e?(a.onAdd=kt,a.onContextRestored=this._onContextRestored.bind(this),a.onDraw=this._onDrawVectorInterleaved.bind(this)):(a.onAdd=this._onAdd.bind(this),a.onContextRestored=kt,a.onDraw=this._onDrawVectorOverlay.bind(this)),a.onContextLost=this._onContextLost.bind(this)):(a.onAdd=this._onAdd.bind(this),a.draw=this._onDrawRaster.bind(this)),a.onRemove=this._onRemove.bind(this),this._overlay=a,this._overlay.setMap(t)}}},{key:"_onAdd",value:function(){this._deck=ot(this._map,this._overlay,this._deck,this.props)}},{key:"_onContextRestored",value:function(t){var e=this,r=t.gl;if(this._map&&this._overlay){var n=ot(this._map,this._overlay,this._deck,yt({gl:r,_customRender:function(){e._overlay&&e._overlay.requestRedraw()}},this.props));this._deck=n;var i=n.animationLoop;i._renderFrame=function(){var t=r.getParameter(34964);Object(l.withParameters)(r,{},(function(){i.onRender()})),r.bindBuffer(34962,t)}}}},{key:"_onContextLost",value:function(){this._deck&&(ut(this._deck),this._deck=null)}},{key:"_onRemove",value:function(){var t;null===(t=this._deck)||void 0===t||t.setProps({layerFilter:pt})}},{key:"_onDrawRaster",value:function(){if(this._deck&&this._map){var t=this._deck,e=function(t,e){var r=ct(t),n=r.width,i=r.height,o=e.getProjection(),a=t.getBounds();if(!a)return{width:n,height:i,left:0,top:0};var u=a.getNorthEast(),s=a.getSouthWest(),c=o.fromLatLngToDivPixel(u),h=o.fromLatLngToDivPixel(s),l=ht(o,n/2,i/2),f=new google.maps.LatLng(0,l[0]),v=o.fromLatLngToContainerPixel(f),y=o.fromLatLngToDivPixel(f);if(!(c&&h&&y&&v))return{width:n,height:i,left:0,top:0};var p=Math.round(y.x-v.x),d=y.y-v.y,k=ht(o,n/2,0),g=ht(o,n/2,i),m=l[1],O=l[0];if(Math.abs(m)>85.05113){m=m>0?85.05113:-85.05113;var b=new google.maps.LatLng(m,O);d+=o.fromLatLngToContainerPixel(b).y-i/2}d=Math.round(d);var E=180*new z(k).sub(g).verticalAngle()/Math.PI;E<0&&(E+=360);var _,M=t.getHeading()||0,x=t.getZoom()-1;if(0===E)_=i?(h.y-c.y)/i:1;else if(E===M){var w=new z([c.x,c.y]).sub([h.x,h.y]).len(),L=new z([n,-i]).len();_=L?w/L:1}return{width:n,height:i,left:p,top:d,zoom:x+=Math.log2(_||1),bearing:E,pitch:t.getTilt(),latitude:m,longitude:O}}(this._map,this._overlay),r=e.width,n=e.height,o=e.left,a=e.top,u=i()(e,ft),s=t.canvas.parentElement.style;s.left="".concat(o,"px"),s.top="".concat(a,"px");t.setProps({width:r,height:n,viewState:yt({altitude:1e4,repeat:!0},u)}),t.redraw()}}},{key:"_onDrawVectorInterleaved",value:function(t){var e=t.gl,r=t.transformer;if(this._deck&&this._map){var n=this._deck;if(n.setProps(yt(yt({},st(this._map,r)),{},{width:null,height:null})),n.isInitialized){var i=Object(l.getParameters)(e,36006);n.setProps({_framebuffer:i}),n.needsRedraw({clearRedrawFlags:!0}),Object(l.setParameters)(e,{viewport:[0,0,e.canvas.width,e.canvas.height],scissor:[0,0,e.canvas.width,e.canvas.height],stencilFunc:[519,0,255,519,0,255]}),Object(l.withParameters)(e,dt,(function(){n._drawLayers("google-vector",{clearCanvas:!1})}))}}}},{key:"_onDrawVectorOverlay",value:function(t){var e=t.transformer;if(this._deck&&this._map){var r=this._deck;r.setProps(yt({},st(this._map,e))),r.redraw()}}}]),t}();r.d(e,"GoogleMapsOverlay",(function(){return mt}))}])}));
"use strict";var deck=(()=>{var Oe=Object.create;var er=Object.defineProperty;var _e=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty;var F=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Le=(r,t)=>{for(var a in t)er(r,a,{get:t[a],enumerable:!0})},rr=(r,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of Ee(t))!we.call(r,e)&&e!==a&&er(r,e,{get:()=>t[e],enumerable:!(n=_e(t,e))||n.enumerable});return r},I=(r,t,a)=>(rr(r,t,"default"),a&&rr(a,t,"default")),Y=(r,t,a)=>(a=r!=null?Oe(Re(r)):{},rr(t||!r||!r.__esModule?er(a,"default",{value:r,enumerable:!0}):a,r)),Pe=r=>rr(er({},"__esModule",{value:!0}),r);var tr=F((yt,_r)=>{_r.exports=globalThis.deck});var wr=F((gt,Rr)=>{function Ae(r,t){if(r==null)return{};var a={},n=Object.keys(r),e,i;for(i=0;i<n.length;i++)e=n[i],!(t.indexOf(e)>=0)&&(a[e]=r[e]);return a}Rr.exports=Ae});var Pr=F((dt,Lr)=>{var Se=wr();function Te(r,t){if(r==null)return{};var a=Se(r,t),n,e;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(e=0;e<i.length;e++)n=i[e],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(a[n]=r[n])}return a}Lr.exports=Te});var Sr=F((kt,Ar)=>{function ze(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}Ar.exports=ze});var Nr=F((Ot,zr)=>{function Tr(r,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function Ne(r,t,a){return t&&Tr(r.prototype,t),a&&Tr(r,a),r}zr.exports=Ne});var vr=F((_t,br)=>{function be(r,t,a){return t in r?Object.defineProperty(r,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[t]=a,r}br.exports=be});var jr=F((Et,Cr)=>{Cr.exports=globalThis.luma});var J={};Le(J,{GoogleMapsOverlay:()=>ke});var V={},Er=Y(tr());I(V,Y(tr()));if(!Er.Layer)throw new Error("@deck.gl/core is not found");I(J,V);var Me=Y(Pr()),ge=Y(Sr()),de=Y(Nr()),X=Y(vr()),K=Y(jr());var ve=Y(vr()),pe=Y(tr());function b(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function qr(r,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function C(r,t,a){return t&&qr(r.prototype,t),a&&qr(r,a),r}function U(r,t){return U=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},U(r,t)}function j(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&U(r,t)}function B(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(a){return typeof a}:B=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},B(r)}function pr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function q(r,t){if(t&&(B(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pr(r)}function R(r){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},R(r)}function nr(r,t){if(!r)throw new Error("math.gl assertion ".concat(t))}var Vt=1/Math.PI*180,Dt=1/180*Math.PI,L={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function Vr(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.precision,n=a===void 0?L.precision:a;return r=Ce(r),"".concat(parseFloat(r.toPrecision(n)))}function $(r){return Array.isArray(r)||ArrayBuffer.isView(r)&&!(r instanceof DataView)}function ur(r,t,a){var n=L.EPSILON;a&&(L.EPSILON=a);try{if(r===t)return!0;if($(r)&&$(t)){if(r.length!==t.length)return!1;for(var e=0;e<r.length;++e)if(!ur(r[e],t[e]))return!1;return!0}return r&&r.equals?r.equals(t):t&&t.equals?t.equals(r):typeof r=="number"&&typeof t=="number"?Math.abs(r-t)<=L.EPSILON*Math.max(1,Math.abs(r),Math.abs(t)):!1}finally{L.EPSILON=n}}function Ce(r){return Math.round(r/L.EPSILON)*L.EPSILON}function je(r){var t=qe();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function qe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ve(r){function t(){var a=Reflect.construct(r,Array.from(arguments));return Object.setPrototypeOf(a,Object.getPrototypeOf(this)),a}return t.prototype=Object.create(r.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r,t}var ar=function(r){j(a,r);var t=je(a);function a(){return b(this,a),t.apply(this,arguments)}return C(a,[{key:"clone",value:function(){return new this.constructor().copy(this)}},{key:"fromArray",value:function(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=0;s<this.ELEMENTS;++s)this[s]=e[s+i];return this.check()}},{key:"toArray",value:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=0;s<this.ELEMENTS;++s)e[i+s]=this[s];return e}},{key:"from",value:function(e){return Array.isArray(e)?this.copy(e):this.fromObject(e)}},{key:"to",value:function(e){return e===this?this:$(e)?this.toArray(e):this.toObject(e)}},{key:"toTarget",value:function(e){return e?this.to(e):this}},{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"toString",value:function(){return this.formatString(L)}},{key:"formatString",value:function(e){for(var i="",s=0;s<this.ELEMENTS;++s)i+=(s>0?", ":"")+Vr(this[s],e);return"".concat(e.printTypes?this.constructor.name:"","[").concat(i,"]")}},{key:"equals",value:function(e){if(!e||this.length!==e.length)return!1;for(var i=0;i<this.ELEMENTS;++i)if(!ur(this[i],e[i]))return!1;return!0}},{key:"exactEquals",value:function(e){if(!e||this.length!==e.length)return!1;for(var i=0;i<this.ELEMENTS;++i)if(this[i]!==e[i])return!1;return!0}},{key:"negate",value:function(){for(var e=0;e<this.ELEMENTS;++e)this[e]=-this[e];return this.check()}},{key:"lerp",value:function(e,i,s){if(s===void 0)return this.lerp(this,e,i);for(var c=0;c<this.ELEMENTS;++c){var f=e[c];this[c]=f+s*(i[c]-f)}return this.check()}},{key:"min",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=Math.min(e[i],this[i]);return this.check()}},{key:"max",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=Math.max(e[i],this[i]);return this.check()}},{key:"clamp",value:function(e,i){for(var s=0;s<this.ELEMENTS;++s)this[s]=Math.min(Math.max(this[s],e[s]),i[s]);return this.check()}},{key:"add",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]+=h[o];return this.check()}},{key:"subtract",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]-=h[o];return this.check()}},{key:"scale",value:function(e){if(typeof e=="number")for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;else for(var s=0;s<this.ELEMENTS&&s<e.length;++s)this[s]*=e[s];return this.check()}},{key:"multiplyByScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;return this.check()}},{key:"check",value:function(){if(L.debug&&!this.validate())throw new Error("math.gl: ".concat(this.constructor.name," some fields set to invalid numbers'"));return this}},{key:"validate",value:function(){for(var e=this.length===this.ELEMENTS,i=0;i<this.ELEMENTS;++i)e=e&&Number.isFinite(this[i]);return e}},{key:"sub",value:function(e){return this.subtract(e)}},{key:"setScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=e;return this.check()}},{key:"addScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]+=e;return this.check()}},{key:"subScalar",value:function(e){return this.addScalar(-e)}},{key:"multiplyScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;return this.check()}},{key:"divideScalar",value:function(e){return this.multiplyByScalar(1/e)}},{key:"clampScalar",value:function(e,i){for(var s=0;s<this.ELEMENTS;++s)this[s]=Math.min(Math.max(this[s],e),i);return this.check()}},{key:"elements",get:function(){return this}}]),a}(Ve(Array));function De(r,t){if(r.length!==t)return!1;for(var a=0;a<r.length;++a)if(!Number.isFinite(r[a]))return!1;return!0}function N(r){if(!Number.isFinite(r))throw new Error("Invalid number ".concat(r));return r}function ir(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";if(L.debug&&!De(r,t))throw new Error("math.gl: ".concat(a," some fields set to invalid numbers'"));return r}function Ye(r){var t=Ie();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Ie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Dr=function(r){j(a,r);var t=Ye(a);function a(){return b(this,a),t.apply(this,arguments)}return C(a,[{key:"x",get:function(){return this[0]},set:function(e){this[0]=N(e)}},{key:"y",get:function(){return this[1]},set:function(e){this[1]=N(e)}},{key:"len",value:function(){return Math.sqrt(this.lengthSquared())}},{key:"magnitude",value:function(){return this.len()}},{key:"lengthSquared",value:function(){for(var e=0,i=0;i<this.ELEMENTS;++i)e+=this[i]*this[i];return e}},{key:"magnitudeSquared",value:function(){return this.lengthSquared()}},{key:"distance",value:function(e){return Math.sqrt(this.distanceSquared(e))}},{key:"distanceSquared",value:function(e){for(var i=0,s=0;s<this.ELEMENTS;++s){var c=this[s]-e[s];i+=c*c}return N(i)}},{key:"dot",value:function(e){for(var i=0,s=0;s<this.ELEMENTS;++s)i+=this[s]*e[s];return N(i)}},{key:"normalize",value:function(){var e=this.magnitude();if(e!==0)for(var i=0;i<this.ELEMENTS;++i)this[i]/=e;return this.check()}},{key:"multiply",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]*=h[o];return this.check()}},{key:"divide",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]/=h[o];return this.check()}},{key:"lengthSq",value:function(){return this.lengthSquared()}},{key:"distanceTo",value:function(e){return this.distance(e)}},{key:"distanceToSquared",value:function(e){return this.distanceSquared(e)}},{key:"getComponent",value:function(e){return nr(e>=0&&e<this.ELEMENTS,"index is out of range"),N(this[e])}},{key:"setComponent",value:function(e,i){return nr(e>=0&&e<this.ELEMENTS,"index is out of range"),this[e]=i,this.check()}},{key:"addVectors",value:function(e,i){return this.copy(e).add(i)}},{key:"subVectors",value:function(e,i){return this.copy(e).subtract(i)}},{key:"multiplyVectors",value:function(e,i){return this.copy(e).multiply(i)}},{key:"addScaledVector",value:function(e,i){return this.add(new this.constructor(e).multiplyScalar(i))}}]),a}(ar);var W=1e-6,D=typeof Float32Array<"u"?Float32Array:Array;var sn=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var r=0,t=arguments.length;t--;)r+=arguments[t]*arguments[t];return Math.sqrt(r)});function We(){var r=new D(2);return D!=Float32Array&&(r[0]=0,r[1]=0),r}function Ir(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[2]*e,r[1]=a[1]*n+a[3]*e,r}function Wr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[2]*e+a[4],r[1]=a[1]*n+a[3]*e+a[5],r}function Fr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[3]*e+a[6],r[1]=a[1]*n+a[4]*e+a[7],r}function cr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[4]*e+a[12],r[1]=a[1]*n+a[5]*e+a[13],r}var cn=function(){var r=We();return function(t,a,n,e,i,s){var c,f;for(a||(a=2),n||(n=0),e?f=Math.min(e*a+n,t.length):f=t.length,c=n;c<f;c+=a)r[0]=t[c],r[1]=t[c+1],i(r,r,s),t[c]=r[0],t[c+1]=r[1];return t}}();function fr(r,t,a){var n=t[0],e=t[1],i=a[3]*n+a[7]*e||1;return r[0]=(a[0]*n+a[4]*e)/i,r[1]=(a[1]*n+a[5]*e)/i,r}function Zr(r,t,a){var n=t[0],e=t[1],i=t[2],s=a[3]*n+a[7]*e+a[11]*i||1;return r[0]=(a[0]*n+a[4]*e+a[8]*i)/s,r[1]=(a[1]*n+a[5]*e+a[9]*i)/s,r[2]=(a[2]*n+a[6]*e+a[10]*i)/s,r}function Fe(r){var t=Be();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Be(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Q=function(r){j(a,r);var t=Fe(a);function a(){var n,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return b(this,a),n=t.call(this,2),$(e)&&arguments.length===1?n.copy(e):(L.debug&&(N(e),N(i)),n[0]=e,n[1]=i),n}return C(a,[{key:"set",value:function(e,i){return this[0]=e,this[1]=i,this.check()}},{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this.check()}},{key:"fromObject",value:function(e){return L.debug&&(N(e.x),N(e.y)),this[0]=e.x,this[1]=e.y,this.check()}},{key:"toObject",value:function(e){return e.x=this[0],e.y=this[1],e}},{key:"ELEMENTS",get:function(){return 2}},{key:"horizontalAngle",value:function(){return Math.atan2(this.y,this.x)}},{key:"verticalAngle",value:function(){return Math.atan2(this.x,this.y)}},{key:"transform",value:function(e){return this.transformAsPoint(e)}},{key:"transformAsPoint",value:function(e){return cr(this,this,e),this.check()}},{key:"transformAsVector",value:function(e){return fr(this,this,e),this.check()}},{key:"transformByMatrix3",value:function(e){return Fr(this,this,e),this.check()}},{key:"transformByMatrix2x3",value:function(e){return Wr(this,this,e),this.check()}},{key:"transformByMatrix2",value:function(e){return Ir(this,this,e),this.check()}}]),a}(Dr);function Ze(){var r=new D(3);return D!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function Kr(r,t,a){var n=t[0],e=t[1],i=t[2],s=a[3]*n+a[7]*e+a[11]*i+a[15];return s=s||1,r[0]=(a[0]*n+a[4]*e+a[8]*i+a[12])/s,r[1]=(a[1]*n+a[5]*e+a[9]*i+a[13])/s,r[2]=(a[2]*n+a[6]*e+a[10]*i+a[14])/s,r}var gn=function(){var r=Ze();return function(t,a,n,e,i,s){var c,f;for(a||(a=3),n||(n=0),e?f=Math.min(e*a+n,t.length):f=t.length,c=n;c<f;c+=a)r[0]=t[c],r[1]=t[c+1],r[2]=t[c+2],i(r,r,s),t[c]=r[0],t[c+1]=r[1],t[c+2]=r[2];return t}}();function $e(r){var t=Xe();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Xe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var $r=function(r){j(a,r);var t=$e(a);function a(){return b(this,a),t.apply(this,arguments)}return C(a,[{key:"toString",value:function(){var e="[";if(L.printRowMajor){e+="row-major:";for(var i=0;i<this.RANK;++i)for(var s=0;s<this.RANK;++s)e+=" ".concat(this[s*this.RANK+i])}else{e+="column-major:";for(var c=0;c<this.ELEMENTS;++c)e+=" ".concat(this[c])}return e+="]",e}},{key:"getElementIndex",value:function(e,i){return i*this.RANK+e}},{key:"getElement",value:function(e,i){return this[i*this.RANK+e]}},{key:"setElement",value:function(e,i,s){return this[i*this.RANK+e]=N(s),this}},{key:"getColumn",value:function(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Array(this.RANK).fill(-0),s=e*this.RANK,c=0;c<this.RANK;++c)i[c]=this[s+c];return i}},{key:"setColumn",value:function(e,i){for(var s=e*this.RANK,c=0;c<this.RANK;++c)this[s+c]=i[c];return this}}]),a}(ar);function Ge(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Xr(r,t){if(r===t){var a=t[1],n=t[2],e=t[3],i=t[6],s=t[7],c=t[11];r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=a,r[6]=t[9],r[7]=t[13],r[8]=n,r[9]=i,r[11]=t[14],r[12]=e,r[13]=s,r[14]=c}else r[0]=t[0],r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=t[1],r[5]=t[5],r[6]=t[9],r[7]=t[13],r[8]=t[2],r[9]=t[6],r[10]=t[10],r[11]=t[14],r[12]=t[3],r[13]=t[7],r[14]=t[11],r[15]=t[15];return r}function Gr(r,t){var a=t[0],n=t[1],e=t[2],i=t[3],s=t[4],c=t[5],f=t[6],h=t[7],o=t[8],l=t[9],v=t[10],p=t[11],u=t[12],y=t[13],x=t[14],g=t[15],O=a*c-n*s,m=a*f-e*s,M=a*h-i*s,d=n*f-e*c,k=n*h-i*c,A=e*h-i*f,E=o*y-l*u,S=o*x-v*u,P=o*g-p*u,w=l*x-v*y,T=l*g-p*y,z=v*g-p*x,_=O*z-m*T+M*w+d*P-k*S+A*E;return _?(_=1/_,r[0]=(c*z-f*T+h*w)*_,r[1]=(e*T-n*z-i*w)*_,r[2]=(y*A-x*k+g*d)*_,r[3]=(v*k-l*A-p*d)*_,r[4]=(f*P-s*z-h*S)*_,r[5]=(a*z-e*P+i*S)*_,r[6]=(x*M-u*A-g*m)*_,r[7]=(o*A-v*M+p*m)*_,r[8]=(s*T-c*P+h*E)*_,r[9]=(n*P-a*T-i*E)*_,r[10]=(u*k-y*M+g*O)*_,r[11]=(l*M-o*k-p*O)*_,r[12]=(c*S-s*w-f*E)*_,r[13]=(a*w-n*S+e*E)*_,r[14]=(y*m-u*d-x*O)*_,r[15]=(o*d-l*m+v*O)*_,r):null}function Ur(r){var t=r[0],a=r[1],n=r[2],e=r[3],i=r[4],s=r[5],c=r[6],f=r[7],h=r[8],o=r[9],l=r[10],v=r[11],p=r[12],u=r[13],y=r[14],x=r[15],g=t*s-a*i,O=t*c-n*i,m=t*f-e*i,M=a*c-n*s,d=a*f-e*s,k=n*f-e*c,A=h*u-o*p,E=h*y-l*p,S=h*x-v*p,P=o*y-l*u,w=o*x-v*u,T=l*x-v*y;return g*T-O*w+m*P+M*S-d*E+k*A}function xr(r,t,a){var n=t[0],e=t[1],i=t[2],s=t[3],c=t[4],f=t[5],h=t[6],o=t[7],l=t[8],v=t[9],p=t[10],u=t[11],y=t[12],x=t[13],g=t[14],O=t[15],m=a[0],M=a[1],d=a[2],k=a[3];return r[0]=m*n+M*c+d*l+k*y,r[1]=m*e+M*f+d*v+k*x,r[2]=m*i+M*h+d*p+k*g,r[3]=m*s+M*o+d*u+k*O,m=a[4],M=a[5],d=a[6],k=a[7],r[4]=m*n+M*c+d*l+k*y,r[5]=m*e+M*f+d*v+k*x,r[6]=m*i+M*h+d*p+k*g,r[7]=m*s+M*o+d*u+k*O,m=a[8],M=a[9],d=a[10],k=a[11],r[8]=m*n+M*c+d*l+k*y,r[9]=m*e+M*f+d*v+k*x,r[10]=m*i+M*h+d*p+k*g,r[11]=m*s+M*o+d*u+k*O,m=a[12],M=a[13],d=a[14],k=a[15],r[12]=m*n+M*c+d*l+k*y,r[13]=m*e+M*f+d*v+k*x,r[14]=m*i+M*h+d*p+k*g,r[15]=m*s+M*o+d*u+k*O,r}function Qr(r,t,a){var n=a[0],e=a[1],i=a[2],s,c,f,h,o,l,v,p,u,y,x,g;return t===r?(r[12]=t[0]*n+t[4]*e+t[8]*i+t[12],r[13]=t[1]*n+t[5]*e+t[9]*i+t[13],r[14]=t[2]*n+t[6]*e+t[10]*i+t[14],r[15]=t[3]*n+t[7]*e+t[11]*i+t[15]):(s=t[0],c=t[1],f=t[2],h=t[3],o=t[4],l=t[5],v=t[6],p=t[7],u=t[8],y=t[9],x=t[10],g=t[11],r[0]=s,r[1]=c,r[2]=f,r[3]=h,r[4]=o,r[5]=l,r[6]=v,r[7]=p,r[8]=u,r[9]=y,r[10]=x,r[11]=g,r[12]=s*n+o*e+u*i+t[12],r[13]=c*n+l*e+y*i+t[13],r[14]=f*n+v*e+x*i+t[14],r[15]=h*n+p*e+g*i+t[15]),r}function Hr(r,t,a){var n=a[0],e=a[1],i=a[2];return r[0]=t[0]*n,r[1]=t[1]*n,r[2]=t[2]*n,r[3]=t[3]*n,r[4]=t[4]*e,r[5]=t[5]*e,r[6]=t[6]*e,r[7]=t[7]*e,r[8]=t[8]*i,r[9]=t[9]*i,r[10]=t[10]*i,r[11]=t[11]*i,r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15],r}function Jr(r,t,a,n){var e=n[0],i=n[1],s=n[2],c=Math.hypot(e,i,s),f,h,o,l,v,p,u,y,x,g,O,m,M,d,k,A,E,S,P,w,T,z,_,G;return c<W?null:(c=1/c,e*=c,i*=c,s*=c,f=Math.sin(a),h=Math.cos(a),o=1-h,l=t[0],v=t[1],p=t[2],u=t[3],y=t[4],x=t[5],g=t[6],O=t[7],m=t[8],M=t[9],d=t[10],k=t[11],A=e*e*o+h,E=i*e*o+s*f,S=s*e*o-i*f,P=e*i*o-s*f,w=i*i*o+h,T=s*i*o+e*f,z=e*s*o+i*f,_=i*s*o-e*f,G=s*s*o+h,r[0]=l*A+y*E+m*S,r[1]=v*A+x*E+M*S,r[2]=p*A+g*E+d*S,r[3]=u*A+O*E+k*S,r[4]=l*P+y*w+m*T,r[5]=v*P+x*w+M*T,r[6]=p*P+g*w+d*T,r[7]=u*P+O*w+k*T,r[8]=l*z+y*_+m*G,r[9]=v*z+x*_+M*G,r[10]=p*z+g*_+d*G,r[11]=u*z+O*_+k*G,t!==r&&(r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r)}function re(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[4],s=t[5],c=t[6],f=t[7],h=t[8],o=t[9],l=t[10],v=t[11];return t!==r&&(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[4]=i*e+h*n,r[5]=s*e+o*n,r[6]=c*e+l*n,r[7]=f*e+v*n,r[8]=h*e-i*n,r[9]=o*e-s*n,r[10]=l*e-c*n,r[11]=v*e-f*n,r}function ee(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[0],s=t[1],c=t[2],f=t[3],h=t[8],o=t[9],l=t[10],v=t[11];return t!==r&&(r[4]=t[4],r[5]=t[5],r[6]=t[6],r[7]=t[7],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=i*e-h*n,r[1]=s*e-o*n,r[2]=c*e-l*n,r[3]=f*e-v*n,r[8]=i*n+h*e,r[9]=s*n+o*e,r[10]=c*n+l*e,r[11]=f*n+v*e,r}function te(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[0],s=t[1],c=t[2],f=t[3],h=t[4],o=t[5],l=t[6],v=t[7];return t!==r&&(r[8]=t[8],r[9]=t[9],r[10]=t[10],r[11]=t[11],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=i*e+h*n,r[1]=s*e+o*n,r[2]=c*e+l*n,r[3]=f*e+v*n,r[4]=h*e-i*n,r[5]=o*e-s*n,r[6]=l*e-c*n,r[7]=v*e-f*n,r}function ne(r,t){var a=t[0],n=t[1],e=t[2],i=t[3],s=a+a,c=n+n,f=e+e,h=a*s,o=n*s,l=n*c,v=e*s,p=e*c,u=e*f,y=i*s,x=i*c,g=i*f;return r[0]=1-l-u,r[1]=o+g,r[2]=v-x,r[3]=0,r[4]=o-g,r[5]=1-h-u,r[6]=p+y,r[7]=0,r[8]=v+x,r[9]=p-y,r[10]=1-h-l,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function ae(r,t,a,n,e,i,s){var c=1/(a-t),f=1/(e-n),h=1/(i-s);return r[0]=i*2*c,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i*2*f,r[6]=0,r[7]=0,r[8]=(a+t)*c,r[9]=(e+n)*f,r[10]=(s+i)*h,r[11]=-1,r[12]=0,r[13]=0,r[14]=s*i*2*h,r[15]=0,r}function Ue(r,t,a,n,e){var i=1/Math.tan(t/2),s;return r[0]=i/a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,e!=null&&e!==1/0?(s=1/(n-e),r[10]=(e+n)*s,r[14]=2*e*n*s):(r[10]=-1,r[14]=-2*n),r}var ie=Ue;function Qe(r,t,a,n,e,i,s){var c=1/(t-a),f=1/(n-e),h=1/(i-s);return r[0]=-2*c,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*f,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*h,r[11]=0,r[12]=(t+a)*c,r[13]=(e+n)*f,r[14]=(s+i)*h,r[15]=1,r}var se=Qe;function ce(r,t,a,n){var e,i,s,c,f,h,o,l,v,p,u=t[0],y=t[1],x=t[2],g=n[0],O=n[1],m=n[2],M=a[0],d=a[1],k=a[2];return Math.abs(u-M)<W&&Math.abs(y-d)<W&&Math.abs(x-k)<W?Ge(r):(o=u-M,l=y-d,v=x-k,p=1/Math.hypot(o,l,v),o*=p,l*=p,v*=p,e=O*v-m*l,i=m*o-g*v,s=g*l-O*o,p=Math.hypot(e,i,s),p?(p=1/p,e*=p,i*=p,s*=p):(e=0,i=0,s=0),c=l*s-v*i,f=v*e-o*s,h=o*i-l*e,p=Math.hypot(c,f,h),p?(p=1/p,c*=p,f*=p,h*=p):(c=0,f=0,h=0),r[0]=e,r[1]=c,r[2]=o,r[3]=0,r[4]=i,r[5]=f,r[6]=l,r[7]=0,r[8]=s,r[9]=h,r[10]=v,r[11]=0,r[12]=-(e*u+i*y+s*x),r[13]=-(c*u+f*y+h*x),r[14]=-(o*u+l*y+v*x),r[15]=1,r)}function Je(){var r=new D(4);return D!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0,r[3]=0),r}function fe(r,t,a){var n=t[0],e=t[1],i=t[2],s=t[3];return r[0]=a[0]*n+a[4]*e+a[8]*i+a[12]*s,r[1]=a[1]*n+a[5]*e+a[9]*i+a[13]*s,r[2]=a[2]*n+a[6]*e+a[10]*i+a[14]*s,r[3]=a[3]*n+a[7]*e+a[11]*i+a[15]*s,r}var An=function(){var r=Je();return function(t,a,n,e,i,s){var c,f;for(a||(a=4),n||(n=0),e?f=Math.min(e*a+n,t.length):f=t.length,c=n;c<f;c+=a)r[0]=t[c],r[1]=t[c+1],r[2]=t[c+2],r[3]=t[c+3],i(r,r,s),t[c]=r[0],t[c+1]=r[1],t[c+2]=r[2],t[c+3]=r[3];return t}}();function et(r){var t=tt();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function tt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Mr;(function(r){r[r.COL0ROW0=0]="COL0ROW0",r[r.COL0ROW1=1]="COL0ROW1",r[r.COL0ROW2=2]="COL0ROW2",r[r.COL0ROW3=3]="COL0ROW3",r[r.COL1ROW0=4]="COL1ROW0",r[r.COL1ROW1=5]="COL1ROW1",r[r.COL1ROW2=6]="COL1ROW2",r[r.COL1ROW3=7]="COL1ROW3",r[r.COL2ROW0=8]="COL2ROW0",r[r.COL2ROW1=9]="COL2ROW1",r[r.COL2ROW2=10]="COL2ROW2",r[r.COL2ROW3=11]="COL2ROW3",r[r.COL3ROW0=12]="COL3ROW0",r[r.COL3ROW1=13]="COL3ROW1",r[r.COL3ROW2=14]="COL3ROW2",r[r.COL3ROW3=15]="COL3ROW3"})(Mr||(Mr={}));var nt=45*Math.PI/180,at=1,mr=.1,yr=500,it=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),H=function(r){j(a,r);var t=et(a);function a(n){var e;return b(this,a),e=t.call(this,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),arguments.length===1&&Array.isArray(n)?e.copy(n):e.identity(),e}return C(a,[{key:"ELEMENTS",get:function(){return 16}},{key:"RANK",get:function(){return 4}},{key:"INDICES",get:function(){return Mr}},{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this[4]=e[4],this[5]=e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this[9]=e[9],this[10]=e[10],this[11]=e[11],this[12]=e[12],this[13]=e[13],this[14]=e[14],this[15]=e[15],this.check()}},{key:"set",value:function(e,i,s,c,f,h,o,l,v,p,u,y,x,g,O,m){return this[0]=e,this[1]=i,this[2]=s,this[3]=c,this[4]=f,this[5]=h,this[6]=o,this[7]=l,this[8]=v,this[9]=p,this[10]=u,this[11]=y,this[12]=x,this[13]=g,this[14]=O,this[15]=m,this.check()}},{key:"setRowMajor",value:function(e,i,s,c,f,h,o,l,v,p,u,y,x,g,O,m){return this[0]=e,this[1]=f,this[2]=v,this[3]=x,this[4]=i,this[5]=h,this[6]=p,this[7]=g,this[8]=s,this[9]=o,this[10]=u,this[11]=O,this[12]=c,this[13]=l,this[14]=y,this[15]=m,this.check()}},{key:"toRowMajor",value:function(e){return e[0]=this[0],e[1]=this[4],e[2]=this[8],e[3]=this[12],e[4]=this[1],e[5]=this[5],e[6]=this[9],e[7]=this[13],e[8]=this[2],e[9]=this[6],e[10]=this[10],e[11]=this[14],e[12]=this[3],e[13]=this[7],e[14]=this[11],e[15]=this[15],e}},{key:"identity",value:function(){return this.copy(it)}},{key:"fromObject",value:function(e){return this.check()}},{key:"fromQuaternion",value:function(e){return ne(this,e),this.check()}},{key:"frustum",value:function(e){var i=e.left,s=e.right,c=e.bottom,f=e.top,h=e.near,o=h===void 0?mr:h,l=e.far,v=l===void 0?yr:l;return v===1/0?ft(this,i,s,c,f,o):ae(this,i,s,c,f,o,v),this.check()}},{key:"lookAt",value:function(e){var i=e.eye,s=e.center,c=s===void 0?[0,0,0]:s,f=e.up,h=f===void 0?[0,1,0]:f;return ce(this,i,c,h),this.check()}},{key:"ortho",value:function(e){var i=e.left,s=e.right,c=e.bottom,f=e.top,h=e.near,o=h===void 0?mr:h,l=e.far,v=l===void 0?yr:l;return se(this,i,s,c,f,o,v),this.check()}},{key:"orthographic",value:function(e){var i=e.fovy,s=i===void 0?nt:i,c=e.aspect,f=c===void 0?at:c,h=e.focalDistance,o=h===void 0?1:h,l=e.near,v=l===void 0?mr:l,p=e.far,u=p===void 0?yr:p;oe(s);var y=s/2,x=o*Math.tan(y),g=x*f;return this.ortho({left:-g,right:g,bottom:-x,top:x,near:v,far:u})}},{key:"perspective",value:function(e){var i=e.fovy,s=i===void 0?45*Math.PI/180:i,c=e.aspect,f=c===void 0?1:c,h=e.near,o=h===void 0?.1:h,l=e.far,v=l===void 0?500:l;return oe(s),ie(this,s,f,o,v),this.check()}},{key:"determinant",value:function(){return Ur(this)}},{key:"getScale",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[-0,-0,-0];return e[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),e[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),e[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),e}},{key:"getTranslation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[-0,-0,-0];return e[0]=this[12],e[1]=this[13],e[2]=this[14],e}},{key:"getRotation",value:function(e,i){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],i=i||[-0,-0,-0];var s=this.getScale(i),c=1/s[0],f=1/s[1],h=1/s[2];return e[0]=this[0]*c,e[1]=this[1]*f,e[2]=this[2]*h,e[3]=0,e[4]=this[4]*c,e[5]=this[5]*f,e[6]=this[6]*h,e[7]=0,e[8]=this[8]*c,e[9]=this[9]*f,e[10]=this[10]*h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{key:"getRotationMatrix3",value:function(e,i){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0],i=i||[-0,-0,-0];var s=this.getScale(i),c=1/s[0],f=1/s[1],h=1/s[2];return e[0]=this[0]*c,e[1]=this[1]*f,e[2]=this[2]*h,e[3]=this[4]*c,e[4]=this[5]*f,e[5]=this[6]*h,e[6]=this[8]*c,e[7]=this[9]*f,e[8]=this[10]*h,e}},{key:"transpose",value:function(){return Xr(this,this),this.check()}},{key:"invert",value:function(){return Gr(this,this),this.check()}},{key:"multiplyLeft",value:function(e){return xr(this,e,this),this.check()}},{key:"multiplyRight",value:function(e){return xr(this,this,e),this.check()}},{key:"rotateX",value:function(e){return re(this,this,e),this.check()}},{key:"rotateY",value:function(e){return ee(this,this,e),this.check()}},{key:"rotateZ",value:function(e){return te(this,this,e),this.check()}},{key:"rotateXYZ",value:function(e){return this.rotateX(e[0]).rotateY(e[1]).rotateZ(e[2])}},{key:"rotateAxis",value:function(e,i){return Jr(this,this,e,i),this.check()}},{key:"scale",value:function(e){return Hr(this,this,Array.isArray(e)?e:[e,e,e]),this.check()}},{key:"translate",value:function(e){return Qr(this,this,e),this.check()}},{key:"transform",value:function(e,i){return e.length===4?(i=fe(i||[-0,-0,-0,-0],e,this),ir(i,4),i):this.transformAsPoint(e,i)}},{key:"transformAsPoint",value:function(e,i){var s=e.length,c;switch(s){case 2:c=cr(i||[-0,-0],e,this);break;case 3:c=Kr(i||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return ir(c,e.length),c}},{key:"transformAsVector",value:function(e,i){var s;switch(e.length){case 2:s=fr(i||[-0,-0],e,this);break;case 3:s=Zr(i||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return ir(s,e.length),s}},{key:"transformPoint",value:function(e,i){return this.transformAsPoint(e,i)}},{key:"transformVector",value:function(e,i){return this.transformAsPoint(e,i)}},{key:"transformDirection",value:function(e,i){return this.transformAsVector(e,i)}},{key:"makeRotationX",value:function(e){return this.identity().rotateX(e)}},{key:"makeTranslation",value:function(e,i,s){return this.identity().translate([e,i,s])}}],[{key:"IDENTITY",get:function(){return ct()}},{key:"ZERO",get:function(){return st()}}]),a}($r);var or,hr;function st(){return or||(or=new H([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Object.freeze(or)),or}function ct(){return hr||(hr=new H,Object.freeze(hr)),hr}function oe(r){if(r>Math.PI*2)throw Error("expected radians")}function ft(r,t,a,n,e,i){var s=2*i/(a-t),c=2*i/(e-n),f=(a+t)/(a-t),h=(e+n)/(e-n),o=-1,l=-1,v=-2*i;return r[0]=s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=c,r[6]=0,r[7]=0,r[8]=f,r[9]=h,r[10]=o,r[11]=l,r[12]=0,r[13]=0,r[14]=v,r[15]=0,r}function he(r,t){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),a.push.apply(a,n)}return a}function le(r){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?he(Object(a),!0).forEach(function(n){(0,ve.default)(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):he(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}var gr=85.05113;function kr(r,t,a,n){if(a){if(a.userData._googleMap===r)return a;lr(a)}var e={click:null,dblclick:null,mousemove:null,mouseout:null},i=new pe.Deck(le(le({},n),{},{useDevicePixels:n.interleaved?!0:n.useDevicePixels,style:n.interleaved?null:{pointerEvents:"none"},parent:ot(t,n.style),initialViewState:{longitude:0,latitude:0,zoom:1},controller:!1})),s=function(h){e[h]=r.addListener(h,function(o){return lt(i,h,o)})};for(var c in e)s(c);return i.userData._googleMap=r,i.userData._eventListeners=e,i}function ot(r,t){var a=document.createElement("div");if(a.style.position="absolute",Object.assign(a.style,t),"getPanes"in r){var n;(n=r.getPanes())===null||n===void 0||n.overlayLayer.appendChild(a)}else{var e;(e=r.getMap())===null||e===void 0||e.getDiv().appendChild(a)}return a}function lr(r){var t=r.userData._eventListeners;for(var a in t)t[a]&&t[a].remove();r.finalize()}function ue(r,t){var a=xe(r),n=a.width,e=a.height,i=t.getProjection(),s=r.getBounds();if(!s)return{width:n,height:e,left:0,top:0};var c=s.getNorthEast(),f=s.getSouthWest(),h=i.fromLatLngToDivPixel(c),o=i.fromLatLngToDivPixel(f),l=dr(i,n/2,e/2),v=new google.maps.LatLng(0,l[0]),p=i.fromLatLngToContainerPixel(v),u=i.fromLatLngToDivPixel(v);if(!h||!o||!u||!p)return{width:n,height:e,left:0,top:0};var y=Math.round(u.x-p.x),x=u.y-p.y,g=dr(i,n/2,0),O=dr(i,n/2,e),m=l[1],M=l[0];if(Math.abs(m)>gr){m=m>0?gr:-gr;var d=new google.maps.LatLng(m,M),k=i.fromLatLngToContainerPixel(d);x+=k.y-e/2}x=Math.round(x);var A=new Q(g).sub(O),E=180*A.verticalAngle()/Math.PI;E<0&&(E+=360);var S=r.getHeading()||0,P=r.getZoom()-1,w;if(E===0)w=e?(o.y-h.y)/e:1;else if(E===S){var T=new Q([h.x,h.y]).sub([o.x,o.y]).len(),z=new Q([n,-e]).len();w=z?T/z:1}return P+=Math.log2(w||1),{width:n,height:e,left:y,top:x,zoom:P,bearing:E,pitch:r.getTilt(),latitude:m,longitude:M}}function Or(r,t){var a=xe(r),n=a.width,e=a.height,i=t.getCameraParams(),s=i.center,c=i.heading,f=i.tilt,h=i.zoom,o=25,l=e?n/e:1,v=.75,p=3e14,u=new H().perspective({fovy:o*Math.PI/180,aspect:l,near:v,far:p}),y=.5*u[5];return{width:n,height:e,viewState:{altitude:y,bearing:c,latitude:s.lat(),longitude:s.lng(),pitch:f,projectionMatrix:u,repeat:!0,zoom:h-1}}}function xe(r){var t=r.getDiv().firstChild;return{width:t.offsetWidth,height:t.offsetHeight}}function dr(r,t,a){var n=new google.maps.Point(t,a),e=r.fromContainerPixelToLatLng(n);return[e.lng(),e.lat()]}function ht(r,t){if(r.pixel)return r.pixel;var a=t.getViewports()[0].project([r.latLng.lng(),r.latLng.lat()]);return{x:a[0],y:a[1]}}function lt(r,t,a){var n={type:t,offsetCenter:ht(a,r),srcEvent:a};switch(t){case"click":n.tapCount=1,r._onPointerDown(n),r._onEvent(n);break;case"dblclick":n.type="click",n.tapCount=2,r._onEvent(n);break;case"mousemove":n.type="pointermove",r._onPointerMove(n);break;case"mouseout":n.type="pointerleave",r._onPointerMove(n);break;default:return}}var vt=["width","height","left","top"];function me(r,t){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),a.push.apply(a,n)}return a}function Z(r){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?me(Object(a),!0).forEach(function(n){(0,X.default)(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):me(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}var pt=function(){return!1},ut={depthMask:!0,depthTest:!0,blend:!0,blendFunc:[770,771,1,771],blendEquation:32774};function ye(){}var xt={interleaved:!0},ke=function(){function r(t){(0,ge.default)(this,r),(0,X.default)(this,"props",{}),(0,X.default)(this,"_map",null),(0,X.default)(this,"_deck",null),(0,X.default)(this,"_overlay",null),this.setProps(Z(Z({},xt),t))}return(0,de.default)(r,[{key:"setMap",value:function(a){var n=this;if(a!==this._map){if(this._map){var e;(e=this._overlay)===null||e===void 0||e.setMap(null),this._map=null}if(a){this._map=a;var i=google.maps.RenderingType.UNINITIALIZED,s=a.getRenderingType();s!==i?this._createOverlay(a):a.addListener("renderingtype_changed",function(){n._createOverlay(a)})}}}},{key:"setProps",value:function(a){if(Object.assign(this.props,a),this._deck){if(a.style){var n=this._deck.canvas.parentElement.style;Object.assign(n,a.style),a.style=null}this._deck.setProps(a)}}},{key:"pickObject",value:function(a){return this._deck&&this._deck.pickObject(a)}},{key:"pickMultipleObjects",value:function(a){return this._deck&&this._deck.pickMultipleObjects(a)}},{key:"pickObjects",value:function(a){return this._deck&&this._deck.pickObjects(a)}},{key:"finalize",value:function(){this.setMap(null),this._deck&&(lr(this._deck),this._deck=null)}},{key:"_createOverlay",value:function(a){var n=this.props.interleaved,e=google.maps.RenderingType,i=e.VECTOR,s=e.UNINITIALIZED,c=a.getRenderingType();if(c!==s){var f=c===i&&google.maps.WebGLOverlayView,h=f?google.maps.WebGLOverlayView:google.maps.OverlayView,o=new h;o instanceof google.maps.WebGLOverlayView?(n?(o.onAdd=ye,o.onContextRestored=this._onContextRestored.bind(this),o.onDraw=this._onDrawVectorInterleaved.bind(this)):(o.onAdd=this._onAdd.bind(this),o.onContextRestored=ye,o.onDraw=this._onDrawVectorOverlay.bind(this)),o.onContextLost=this._onContextLost.bind(this)):(o.onAdd=this._onAdd.bind(this),o.draw=this._onDrawRaster.bind(this)),o.onRemove=this._onRemove.bind(this),this._overlay=o,this._overlay.setMap(a)}}},{key:"_onAdd",value:function(){this._deck=kr(this._map,this._overlay,this._deck,this.props)}},{key:"_onContextRestored",value:function(a){var n=this,e=a.gl;if(!(!this._map||!this._overlay)){var i=function(){n._overlay&&n._overlay.requestRedraw()},s=kr(this._map,this._overlay,this._deck,Z({gl:e,_customRender:i},this.props));this._deck=s;var c=s.animationLoop;c._renderFrame=function(){var f=e.getParameter(34964);(0,K.withParameters)(e,{},function(){c.onRender()}),e.bindBuffer(34962,f)}}}},{key:"_onContextLost",value:function(){this._deck&&(lr(this._deck),this._deck=null)}},{key:"_onRemove",value:function(){var a;(a=this._deck)===null||a===void 0||a.setProps({layerFilter:pt})}},{key:"_onDrawRaster",value:function(){if(!(!this._deck||!this._map)){var a=this._deck,n=ue(this._map,this._overlay),e=n.width,i=n.height,s=n.left,c=n.top,f=(0,Me.default)(n,vt),h=a.canvas.parentElement.style;h.left="".concat(s,"px"),h.top="".concat(c,"px");var o=1e4;a.setProps({width:e,height:i,viewState:Z({altitude:o,repeat:!0},f)}),a.redraw()}}},{key:"_onDrawVectorInterleaved",value:function(a){var n=a.gl,e=a.transformer;if(!(!this._deck||!this._map)){var i=this._deck;if(i.setProps(Z(Z({},Or(this._map,e)),{},{width:null,height:null})),i.isInitialized){var s=(0,K.getParameters)(n,36006);i.setProps({_framebuffer:s}),i.needsRedraw({clearRedrawFlags:!0}),(0,K.setParameters)(n,{viewport:[0,0,n.canvas.width,n.canvas.height],scissor:[0,0,n.canvas.width,n.canvas.height],stencilFunc:[519,0,255,519,0,255]}),(0,K.withParameters)(n,ut,function(){i._drawLayers("google-vector",{clearCanvas:!1})})}}}},{key:"_onDrawVectorOverlay",value:function(a){var n=a.transformer;if(!(!this._deck||!this._map)){var e=this._deck;e.setProps(Z({},Or(this._map,n))),e.redraw()}}}]),r}();return Pe(J);})();

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "8.9.0-alpha.5",
"version": "8.9.0-beta.1",
"publishConfig": {

@@ -30,4 +30,4 @@ "access": "public"

"scripts": {
"build-bundle": "webpack --config ../../scripts/bundle.config.js",
"prepublishOnly": "npm run build-bundle && npm run build-bundle -- --env.dev"
"build-bundle": "ocular-bundle ./bundle.ts",
"prepublishOnly": "npm run build-bundle && npm run build-bundle -- --env=dev"
},

@@ -43,3 +43,3 @@ "devDependencies": {

},
"gitHead": "36330f8ca588055b11ed8032dc68ced641cb258b"
"gitHead": "47223d1ea084c3f9b0c9f0f9736682850bb5db85"
}

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc