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
7
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.10.0-alpha.6 to 8.10.0-alpha.7

2

dist.min.js

@@ -7,4 +7,4 @@ (function webpackUniversalModuleDefinition(root, factory) {

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

@@ -74,13 +74,6 @@ (function webpackUniversalModuleDefinition(root, factory) {

// ../../node_modules/@math.gl/core/dist/esm/lib/assert.js
function assert(condition, message) {
if (!condition) {
throw new Error("math.gl assertion ".concat(message));
}
}
// ../../node_modules/@math.gl/core/dist/esm/lib/common.js
// ../../node_modules/@math.gl/core/dist/lib/common.js
var RADIANS_TO_DEGREES = 1 / Math.PI * 180;
var DEGREES_TO_RADIANS = 1 / 180 * Math.PI;
var config = {
var DEFAULT_CONFIG = {
EPSILON: 1e-12,

@@ -91,4 +84,11 @@ debug: false,

printDegrees: false,
printRowMajor: true
printRowMajor: true,
_cartographicRadians: false
};
globalThis.mathgl = globalThis.mathgl || {
config: {
...DEFAULT_CONFIG
}
};
var config = globalThis.mathgl.config;
function formatValue(value, {

@@ -141,3 +141,3 @@ precision = config.precision

// ../../node_modules/@math.gl/core/dist/esm/classes/base/math-array.js
// ../../node_modules/@math.gl/core/dist/classes/base/math-array.js
function _extendableBuiltin(cls) {

@@ -180,2 +180,5 @@ function ExtendableBuiltin() {

}
toObject(targetObject) {
return targetObject;
}
from(arrayOrObject) {

@@ -240,3 +243,4 @@ return Array.isArray(arrayOrObject) ? this.copy(arrayOrObject) : this.fromObject(arrayOrObject);

const ai = a[i];
this[i] = ai + t * (b[i] - ai);
const endValue = typeof b === "number" ? b : b[i];
this[i] = ai + t * (endValue - ai);
}

@@ -348,3 +352,3 @@ return this.check();

// ../../node_modules/@math.gl/core/dist/esm/lib/validators.js
// ../../node_modules/@math.gl/core/dist/lib/validators.js
function validateVector(v, length) {

@@ -363,3 +367,3 @@ if (v.length !== length) {

if (!Number.isFinite(value)) {
throw new Error("Invalid number ".concat(value));
throw new Error("Invalid number ".concat(JSON.stringify(value)));
}

@@ -375,3 +379,10 @@ return value;

// ../../node_modules/@math.gl/core/dist/esm/classes/base/vector.js
// ../../node_modules/@math.gl/core/dist/lib/assert.js
function assert(condition, message) {
if (!condition) {
throw new Error("math.gl assertion ".concat(message));
}
}
// ../../node_modules/@math.gl/core/dist/classes/base/vector.js
var Vector = class extends MathArray {

@@ -481,18 +492,10 @@ get x() {

// ../../node_modules/gl-matrix/esm/common.js
// ../../node_modules/@math.gl/core/dist/gl-matrix/common.js
var EPSILON = 1e-6;
var ARRAY_TYPE = typeof Float32Array !== "undefined" ? Float32Array : Array;
var degree = Math.PI / 180;
if (!Math.hypot)
Math.hypot = function() {
var y = 0, i = arguments.length;
while (i--) {
y += arguments[i] * arguments[i];
}
return Math.sqrt(y);
};
// ../../node_modules/gl-matrix/esm/vec2.js
// ../../node_modules/@math.gl/core/dist/gl-matrix/vec2.js
function create() {
var out = new ARRAY_TYPE(2);
const out = new ARRAY_TYPE(2);
if (ARRAY_TYPE != Float32Array) {

@@ -505,3 +508,4 @@ out[0] = 0;

function transformMat2(out, a, m) {
var x = a[0], y = a[1];
const x = a[0];
const y = a[1];
out[0] = m[0] * x + m[2] * y;

@@ -512,3 +516,4 @@ out[1] = m[1] * x + m[3] * y;

function transformMat2d(out, a, m) {
var x = a[0], y = a[1];
const x = a[0];
const y = a[1];
out[0] = m[0] * x + m[2] * y + m[4];

@@ -519,3 +524,4 @@ out[1] = m[1] * x + m[3] * y + m[5];

function transformMat3(out, a, m) {
var x = a[0], y = a[1];
const x = a[0];
const y = a[1];
out[0] = m[0] * x + m[3] * y + m[6];

@@ -526,4 +532,4 @@ out[1] = m[1] * x + m[4] * y + m[7];

function transformMat4(out, a, m) {
var x = a[0];
var y = a[1];
const x = a[0];
const y = a[1];
out[0] = m[0] * x + m[4] * y + m[12];

@@ -534,5 +540,6 @@ out[1] = m[1] * x + m[5] * y + m[13];

var forEach = function() {
var vec = create();
const vec = create();
return function(a, stride, offset, count, fn, arg) {
var i, l;
let i;
let l;
if (!stride) {

@@ -560,3 +567,3 @@ stride = 2;

// ../../node_modules/@math.gl/core/dist/esm/lib/gl-matrix-extras.js
// ../../node_modules/@math.gl/core/dist/lib/gl-matrix-extras.js
function vec2_transformMat4AsVector(out, a, m) {

@@ -581,3 +588,3 @@ const x = a[0];

// ../../node_modules/@math.gl/core/dist/esm/classes/vector2.js
// ../../node_modules/@math.gl/core/dist/classes/vector2.js
var Vector2 = class extends Vector {

@@ -655,5 +662,5 @@ constructor(x = 0, y = 0) {

// ../../node_modules/gl-matrix/esm/vec3.js
// ../../node_modules/@math.gl/core/dist/gl-matrix/vec3.js
function create2() {
var out = new ARRAY_TYPE(3);
const out = new ARRAY_TYPE(3);
if (ARRAY_TYPE != Float32Array) {

@@ -667,4 +674,6 @@ out[0] = 0;

function transformMat42(out, a, m) {
var x = a[0], y = a[1], z = a[2];
var w = m[3] * x + m[7] * y + m[11] * z + m[15];
const x = a[0];
const y = a[1];
const z = a[2];
let w = m[3] * x + m[7] * y + m[11] * z + m[15];
w = w || 1;

@@ -677,5 +686,6 @@ out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w;

var forEach2 = function() {
var vec = create2();
const vec = create2();
return function(a, stride, offset, count, fn, arg) {
var i, l;
let i;
let l;
if (!stride) {

@@ -705,3 +715,3 @@ stride = 3;

// ../../node_modules/@math.gl/core/dist/esm/classes/base/matrix.js
// ../../node_modules/@math.gl/core/dist/classes/base/matrix.js
var Matrix = class extends MathArray {

@@ -752,3 +762,3 @@ toString() {

// ../../node_modules/gl-matrix/esm/mat4.js
// ../../node_modules/@math.gl/core/dist/gl-matrix/mat4.js
function identity(out) {

@@ -775,5 +785,8 @@ out[0] = 1;

if (out === a) {
var a01 = a[1], a02 = a[2], a03 = a[3];
var a12 = a[6], a13 = a[7];
var a23 = a[11];
const a01 = a[1];
const a02 = a[2];
const a03 = a[3];
const a12 = a[6];
const a13 = a[7];
const a23 = a[11];
out[1] = a[4];

@@ -812,19 +825,31 @@ out[2] = a[8];

function invert(out, a) {
var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];
var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];
var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];
var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];
var b00 = a00 * a11 - a01 * a10;
var b01 = a00 * a12 - a02 * a10;
var b02 = a00 * a13 - a03 * a10;
var b03 = a01 * a12 - a02 * a11;
var b04 = a01 * a13 - a03 * a11;
var b05 = a02 * a13 - a03 * a12;
var b06 = a20 * a31 - a21 * a30;
var b07 = a20 * a32 - a22 * a30;
var b08 = a20 * a33 - a23 * a30;
var b09 = a21 * a32 - a22 * a31;
var b10 = a21 * a33 - a23 * a31;
var b11 = a22 * a33 - a23 * a32;
var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;
const a00 = a[0];
const a01 = a[1];
const a02 = a[2];
const a03 = a[3];
const a10 = a[4];
const a11 = a[5];
const a12 = a[6];
const a13 = a[7];
const a20 = a[8];
const a21 = a[9];
const a22 = a[10];
const a23 = a[11];
const a30 = a[12];
const a31 = a[13];
const a32 = a[14];
const a33 = a[15];
const b00 = a00 * a11 - a01 * a10;
const b01 = a00 * a12 - a02 * a10;
const b02 = a00 * a13 - a03 * a10;
const b03 = a01 * a12 - a02 * a11;
const b04 = a01 * a13 - a03 * a11;
const b05 = a02 * a13 - a03 * a12;
const b06 = a20 * a31 - a21 * a30;
const b07 = a20 * a32 - a22 * a30;
const b08 = a20 * a33 - a23 * a30;
const b09 = a21 * a32 - a22 * a31;
const b10 = a21 * a33 - a23 * a31;
const b11 = a22 * a33 - a23 * a32;
let det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;
if (!det) {

@@ -853,26 +878,51 @@ return null;

function determinant(a) {
var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];
var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];
var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];
var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];
var b00 = a00 * a11 - a01 * a10;
var b01 = a00 * a12 - a02 * a10;
var b02 = a00 * a13 - a03 * a10;
var b03 = a01 * a12 - a02 * a11;
var b04 = a01 * a13 - a03 * a11;
var b05 = a02 * a13 - a03 * a12;
var b06 = a20 * a31 - a21 * a30;
var b07 = a20 * a32 - a22 * a30;
var b08 = a20 * a33 - a23 * a30;
var b09 = a21 * a32 - a22 * a31;
var b10 = a21 * a33 - a23 * a31;
var b11 = a22 * a33 - a23 * a32;
return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;
const a00 = a[0];
const a01 = a[1];
const a02 = a[2];
const a03 = a[3];
const a10 = a[4];
const a11 = a[5];
const a12 = a[6];
const a13 = a[7];
const a20 = a[8];
const a21 = a[9];
const a22 = a[10];
const a23 = a[11];
const a30 = a[12];
const a31 = a[13];
const a32 = a[14];
const a33 = a[15];
const b0 = a00 * a11 - a01 * a10;
const b1 = a00 * a12 - a02 * a10;
const b2 = a01 * a12 - a02 * a11;
const b3 = a20 * a31 - a21 * a30;
const b4 = a20 * a32 - a22 * a30;
const b5 = a21 * a32 - a22 * a31;
const b6 = a00 * b5 - a01 * b4 + a02 * b3;
const b7 = a10 * b5 - a11 * b4 + a12 * b3;
const b8 = a20 * b2 - a21 * b1 + a22 * b0;
const b9 = a30 * b2 - a31 * b1 + a32 * b0;
return a13 * b6 - a03 * b7 + a33 * b8 - a23 * b9;
}
function multiply(out, a, b) {
var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];
var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];
var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];
var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];
var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];
const a00 = a[0];
const a01 = a[1];
const a02 = a[2];
const a03 = a[3];
const a10 = a[4];
const a11 = a[5];
const a12 = a[6];
const a13 = a[7];
const a20 = a[8];
const a21 = a[9];
const a22 = a[10];
const a23 = a[11];
const a30 = a[12];
const a31 = a[13];
const a32 = a[14];
const a33 = a[15];
let b0 = b[0];
let b1 = b[1];
let b2 = b[2];
let b3 = b[3];
out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;

@@ -909,6 +959,17 @@ out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;

function translate(out, a, v) {
var x = v[0], y = v[1], z = v[2];
var a00, a01, a02, a03;
var a10, a11, a12, a13;
var a20, a21, a22, a23;
const x = v[0];
const y = v[1];
const z = v[2];
let a00;
let a01;
let a02;
let a03;
let a10;
let a11;
let a12;
let a13;
let a20;
let a21;
let a22;
let a23;
if (a === out) {

@@ -952,3 +1013,5 @@ out[12] = a[0] * x + a[4] * y + a[8] * z + a[12];

function scale(out, a, v) {
var x = v[0], y = v[1], z = v[2];
const x = v[0];
const y = v[1];
const z = v[2];
out[0] = a[0] * x;

@@ -973,11 +1036,30 @@ out[1] = a[1] * x;

function rotate(out, a, rad, axis) {
var x = axis[0], y = axis[1], z = axis[2];
var len = Math.hypot(x, y, z);
var s, c, t;
var a00, a01, a02, a03;
var a10, a11, a12, a13;
var a20, a21, a22, a23;
var b00, b01, b02;
var b10, b11, b12;
var b20, b21, b22;
let x = axis[0];
let y = axis[1];
let z = axis[2];
let len = Math.sqrt(x * x + y * y + z * z);
let c;
let s;
let t;
let a00;
let a01;
let a02;
let a03;
let a10;
let a11;
let a12;
let a13;
let a20;
let a21;
let a22;
let a23;
let b00;
let b01;
let b02;
let b10;
let b11;
let b12;
let b20;
let b21;
let b22;
if (len < EPSILON) {

@@ -1035,12 +1117,12 @@ return null;

function rotateX(out, a, rad) {
var s = Math.sin(rad);
var c = Math.cos(rad);
var a10 = a[4];
var a11 = a[5];
var a12 = a[6];
var a13 = a[7];
var a20 = a[8];
var a21 = a[9];
var a22 = a[10];
var a23 = a[11];
const s = Math.sin(rad);
const c = Math.cos(rad);
const a10 = a[4];
const a11 = a[5];
const a12 = a[6];
const a13 = a[7];
const a20 = a[8];
const a21 = a[9];
const a22 = a[10];
const a23 = a[11];
if (a !== out) {

@@ -1067,12 +1149,12 @@ out[0] = a[0];

function rotateY(out, a, rad) {
var s = Math.sin(rad);
var c = Math.cos(rad);
var a00 = a[0];
var a01 = a[1];
var a02 = a[2];
var a03 = a[3];
var a20 = a[8];
var a21 = a[9];
var a22 = a[10];
var a23 = a[11];
const s = Math.sin(rad);
const c = Math.cos(rad);
const a00 = a[0];
const a01 = a[1];
const a02 = a[2];
const a03 = a[3];
const a20 = a[8];
const a21 = a[9];
const a22 = a[10];
const a23 = a[11];
if (a !== out) {

@@ -1099,12 +1181,12 @@ out[4] = a[4];

function rotateZ(out, a, rad) {
var s = Math.sin(rad);
var c = Math.cos(rad);
var a00 = a[0];
var a01 = a[1];
var a02 = a[2];
var a03 = a[3];
var a10 = a[4];
var a11 = a[5];
var a12 = a[6];
var a13 = a[7];
const s = Math.sin(rad);
const c = Math.cos(rad);
const a00 = a[0];
const a01 = a[1];
const a02 = a[2];
const a03 = a[3];
const a10 = a[4];
const a11 = a[5];
const a12 = a[6];
const a13 = a[7];
if (a !== out) {

@@ -1131,15 +1213,18 @@ out[8] = a[8];

function fromQuat(out, q) {
var x = q[0], y = q[1], z = q[2], w = q[3];
var x2 = x + x;
var y2 = y + y;
var z2 = z + z;
var xx = x * x2;
var yx = y * x2;
var yy = y * y2;
var zx = z * x2;
var zy = z * y2;
var zz = z * z2;
var wx = w * x2;
var wy = w * y2;
var wz = w * z2;
const x = q[0];
const y = q[1];
const z = q[2];
const w = q[3];
const x2 = x + x;
const y2 = y + y;
const z2 = z + z;
const xx = x * x2;
const yx = y * x2;
const yy = y * y2;
const zx = z * x2;
const zy = z * y2;
const zz = z * z2;
const wx = w * x2;
const wy = w * y2;
const wz = w * z2;
out[0] = 1 - yy - zz;

@@ -1164,5 +1249,5 @@ out[1] = yx + wz;

function frustum(out, left, right, bottom, top, near, far) {
var rl = 1 / (right - left);
var tb = 1 / (top - bottom);
var nf = 1 / (near - far);
const rl = 1 / (right - left);
const tb = 1 / (top - bottom);
const nf = 1 / (near - far);
out[0] = near * 2 * rl;

@@ -1187,3 +1272,3 @@ out[1] = 0;

function perspectiveNO(out, fovy, aspect, near, far) {
var f = 1 / Math.tan(fovy / 2), nf;
const f = 1 / Math.tan(fovy / 2);
out[0] = f / aspect;

@@ -1204,3 +1289,3 @@ out[1] = 0;

if (far != null && far !== Infinity) {
nf = 1 / (near - far);
const nf = 1 / (near - far);
out[10] = (far + near) * nf;

@@ -1216,5 +1301,5 @@ out[14] = 2 * far * near * nf;

function orthoNO(out, left, right, bottom, top, near, far) {
var lr = 1 / (left - right);
var bt = 1 / (bottom - top);
var nf = 1 / (near - far);
const lr = 1 / (left - right);
const bt = 1 / (bottom - top);
const nf = 1 / (near - far);
out[0] = -2 * lr;

@@ -1240,12 +1325,21 @@ out[1] = 0;

function lookAt(out, eye, center, up) {
var x0, x1, x2, y0, y1, y2, z0, z1, z2, len;
var eyex = eye[0];
var eyey = eye[1];
var eyez = eye[2];
var upx = up[0];
var upy = up[1];
var upz = up[2];
var centerx = center[0];
var centery = center[1];
var centerz = center[2];
let len;
let x0;
let x1;
let x2;
let y0;
let y1;
let y2;
let z0;
let z1;
let z2;
const eyex = eye[0];
const eyey = eye[1];
const eyez = eye[2];
const upx = up[0];
const upy = up[1];
const upz = up[2];
const centerx = center[0];
const centery = center[1];
const centerz = center[2];
if (Math.abs(eyex - centerx) < EPSILON && Math.abs(eyey - centery) < EPSILON && Math.abs(eyez - centerz) < EPSILON) {

@@ -1257,3 +1351,3 @@ return identity(out);

z2 = eyez - centerz;
len = 1 / Math.hypot(z0, z1, z2);
len = 1 / Math.sqrt(z0 * z0 + z1 * z1 + z2 * z2);
z0 *= len;

@@ -1265,3 +1359,3 @@ z1 *= len;

x2 = upx * z1 - upy * z0;
len = Math.hypot(x0, x1, x2);
len = Math.sqrt(x0 * x0 + x1 * x1 + x2 * x2);
if (!len) {

@@ -1280,3 +1374,3 @@ x0 = 0;

y2 = z0 * x1 - z1 * x0;
len = Math.hypot(y0, y1, y2);
len = Math.sqrt(y0 * y0 + y1 * y1 + y2 * y2);
if (!len) {

@@ -1311,5 +1405,5 @@ y0 = 0;

// ../../node_modules/gl-matrix/esm/vec4.js
// ../../node_modules/@math.gl/core/dist/gl-matrix/vec4.js
function create3() {
var out = new ARRAY_TYPE(4);
const out = new ARRAY_TYPE(4);
if (ARRAY_TYPE != Float32Array) {

@@ -1324,3 +1418,6 @@ out[0] = 0;

function transformMat43(out, a, m) {
var x = a[0], y = a[1], z = a[2], w = a[3];
const x = a[0];
const y = a[1];
const z = a[2];
const w = a[3];
out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w;

@@ -1333,5 +1430,6 @@ out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w;

var forEach3 = function() {
var vec = create3();
const vec = create3();
return function(a, stride, offset, count, fn, arg) {
var i, l;
let i;
let l;
if (!stride) {

@@ -1363,3 +1461,3 @@ stride = 4;

// ../../node_modules/@math.gl/core/dist/esm/classes/matrix4.js
// ../../node_modules/@math.gl/core/dist/classes/matrix4.js
var INDICES;

@@ -1366,0 +1464,0 @@ (function(INDICES2) {

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

"license": "MIT",
"version": "8.10.0-alpha.6",
"version": "8.10.0-alpha.7",
"publishConfig": {

@@ -43,5 +43,5 @@ "access": "public"

"@luma.gl/core": "^8.5.0",
"@math.gl/core": "^3.6.0"
"@math.gl/core": "^4.0.0"
},
"gitHead": "2af5d552503d3dfc0359d123b39375ed743da516"
"gitHead": "1c62a9eec914019afd3969bc0c59f1488e491207"
}
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