!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):(e="undefined"!=typeofglobalThis?globalThis:e||self).mapboxgl=t()}(this,(function(){"use strict";vare,t,i;functionr(r,n){if(e)if(t){varo="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk); self.onerror = null;",s={};e(s),i=n(s),"undefined"!=typeofwindow&&window&&window.URL&&window.URL.createObjectURL&&(i.workerUrl=window.URL.createObjectURL(newBlob([o],{type:"text/javascript"})))}elset=n;elsee=n}returnr(0,(function(e){vart="2.8.2",i=r;functionr(e,t,i,r){this.cx=3*e,this.bx=3*(i-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=i,this.p2y=r}r.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},r.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},r.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},r.prototype.solveCurveX=function(e,t){vari,r,n,o,s;for(void0===t&&(t=1e-6),n=e,s=0;s<8;s++){if(o=this.sampleCurveX(n)-e,Math.abs(o)<t)returnn;vara=this.sampleCurveDerivativeX(n);if(Math.abs(a)<1e-6)break;n-=o/a}if((n=e)<(i=0))returni;if(n>(r=1))returnr;for(;i<r;){if(o=this.sampleCurveX(n),Math.abs(o-e)<t)returnn;e>o?i=n:r=n,n=.5*(r-i)+i}returnn},r.prototype.solve=function(e,t){returnthis.sampleCurveY(this.solveCurveX(e,t))};varn=o;functiono(e,t){this.x=e,this.y=t}o.prototype={clone:function(){returnnewo(this.x,this.y)},add:function(e){returnthis.clone()._add(e)},sub:function(e){returnthis.clone()._sub(e)},multByPoint:function(e){returnthis.clone()._multByPoint(e)},divByPoint:function(e){returnthis.clone()._divByPoint(e)},mult:function(e){returnthis.clone()._mult(e)},div:function(e){returnthis.clone()._div(e)},rotate:function(e){returnthis.clone()._rotate(e)},rotateAround:function(e,t){returnthis.clone()._rotateAround(e,t)},matMult:function(e){returnthis.clone()._matMult(e)},unit:function(){returnthis.clone()._unit()},perp:function(){returnthis.clone()._perp()},round:function(){returnthis.clone()._round()},mag:function(){returnMath.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){returnthis.x===e.x&&this.y===e.y},dist:function(e){returnMath.sqrt(this.distSqr(e))},distSqr:function(e){vart=e.x-this.x,i=e.y-this.y;returnt*t+i*i},angle:function(){returnMath.atan2(this.y,this.x)},angleTo:function(e){returnMath.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){returnthis.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){returnMath.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){vart=e[2]*this.x+e[3]*this.y;returnthis.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){returnthis.x+=e.x,this.y+=e.y,this},_sub:function(e){returnthis.x-=e.x,this.y-=e.y,this},_mult:function(e){returnthis.x*=e,this.y*=e,this},_div:function(e){returnthis.x/=e,this.y/=e,this},_multByPoint:function(e){returnthis.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){returnthis.x/=e.x,this.y/=e.y,this},_unit:function(){returnthis._div(this.mag()),this},_perp:function(){vare=this.y;returnthis.y=this.x,this.x=-e,this},_rotate:function(e){vart=Math.cos(e),i=Math.sin(e),r=i*this.x+t*this.y;returnthis.x=t*this.x-i*this.y,this.y=r,this},_rotateAround:function(e,t){vari=Math.cos(e),r=Math.sin(e),n=t.y+r*(this.x-t.x)+i*(this.y-t.y);returnthis.x=t.x+i*(this.x-t.x)-r*(this.y-t.y),this.y=n,this},_round:function(){returnthis.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(e){returneinstanceofo?e:Array.isArray(e)?newo(e[0],e[1]):e};vars="undefined"!=typeofself?self:{};consta=Math.PI/180,l=180/Math.PI;functionc(e){returne*a}functionh(e){returne*l}constu=[[0,0],[1,0],[1,1],[0,1]];functiond(e){if(e<=0)return0;i