@inploi/plugin-job-search 8.6.0 → 8.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";const Cv=require("./map-style-9418e566.cjs");var Rv={exports:{}};(function(zv,kT){(function(Sh,Eh){zv.exports=Eh()})(Cv.commonjsGlobal,function(){var Sh,Eh,hm;function um(s,Rn){if(!Sh)Sh=Rn;else if(!Eh)Eh=Rn;else{var Ti="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 = {}; ("+Sh+")(sharedChunk); ("+Eh+")(sharedChunk); self.onerror = null;",fo={};Sh(fo),hm=Rn(fo),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(hm.workerUrl=window.URL.createObjectURL(new Blob([Ti],{type:"text/javascript"})))}}um(["exports"],function(s){var Rn=1e-6,Ti=typeof Float32Array<"u"?Float32Array:Array;function fo(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i*h-a*r;return u?(n[0]=h*(u=1/u),n[1]=-r*u,n[2]=-a*u,n[3]=i*u,n):null}function $l(){var n=new Ti(9);return Ti!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[5]=0,n[6]=0,n[7]=0),n[0]=1,n[4]=1,n[8]=1,n}function Hs(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=e[4],p=e[5],_=e[6],g=e[7],v=e[8];return n[0]=u*v-p*g,n[1]=a*g-r*v,n[2]=r*p-a*u,n[3]=p*_-h*v,n[4]=i*v-a*_,n[5]=a*h-i*p,n[6]=h*g-u*_,n[7]=r*_-i*g,n[8]=i*u-r*h,n}function Wr(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=i[0],E=i[1],I=i[2],C=i[3],z=i[4],R=i[5],B=i[6],k=i[7],j=i[8];return n[0]=w*r+E*u+I*g,n[1]=w*a+E*p+I*v,n[2]=w*h+E*_+I*b,n[3]=C*r+z*u+R*g,n[4]=C*a+z*p+R*v,n[5]=C*h+z*_+R*b,n[6]=B*r+k*u+j*g,n[7]=B*a+k*p+j*v,n[8]=B*h+k*_+j*b,n}function ys(){var n=new Ti(16);return Ti!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0),n[0]=1,n[5]=1,n[10]=1,n[15]=1,n}function Yt(n){var e=new Ti(16);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],e}function Si(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 Pr(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=e[4],p=e[5],_=e[6],g=e[7],v=e[8],b=e[9],w=e[10],E=e[11],I=e[12],C=e[13],z=e[14],R=e[15],B=i*p-r*u,k=i*_-a*u,j=i*g-h*u,H=r*_-a*p,$=r*g-h*p,re=a*g-h*_,K=v*C-b*I,Q=v*z-w*I,ie=v*R-E*I,oe=b*z-w*C,ve=b*R-E*C,xe=w*R-E*z,Te=B*xe-k*ve+j*oe+H*ie-$*Q+re*K;return Te?(n[0]=(p*xe-_*ve+g*oe)*(Te=1/Te),n[1]=(a*ve-r*xe-h*oe)*Te,n[2]=(C*re-z*$+R*H)*Te,n[3]=(w*$-b*re-E*H)*Te,n[4]=(_*ie-u*xe-g*Q)*Te,n[5]=(i*xe-a*ie+h*Q)*Te,n[6]=(z*j-I*re-R*k)*Te,n[7]=(v*re-w*j+E*k)*Te,n[8]=(u*ve-p*ie+g*K)*Te,n[9]=(r*ie-i*ve-h*K)*Te,n[10]=(I*$-C*j+R*B)*Te,n[11]=(b*j-v*$-E*B)*Te,n[12]=(p*Q-u*oe-_*K)*Te,n[13]=(i*oe-r*Q+a*K)*Te,n[14]=(C*k-I*H-z*B)*Te,n[15]=(v*H-b*k+w*B)*Te,n):null}function yi(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=e[9],E=e[10],I=e[11],C=e[12],z=e[13],R=e[14],B=e[15],k=i[0],j=i[1],H=i[2],$=i[3];return n[0]=k*r+j*p+H*b+$*C,n[1]=k*a+j*_+H*w+$*z,n[2]=k*h+j*g+H*E+$*R,n[3]=k*u+j*v+H*I+$*B,n[4]=(k=i[4])*r+(j=i[5])*p+(H=i[6])*b+($=i[7])*C,n[5]=k*a+j*_+H*w+$*z,n[6]=k*h+j*g+H*E+$*R,n[7]=k*u+j*v+H*I+$*B,n[8]=(k=i[8])*r+(j=i[9])*p+(H=i[10])*b+($=i[11])*C,n[9]=k*a+j*_+H*w+$*z,n[10]=k*h+j*g+H*E+$*R,n[11]=k*u+j*v+H*I+$*B,n[12]=(k=i[12])*r+(j=i[13])*p+(H=i[14])*b+($=i[15])*C,n[13]=k*a+j*_+H*w+$*z,n[14]=k*h+j*g+H*E+$*R,n[15]=k*u+j*v+H*I+$*B,n}function Qn(n,e,i){var r,a,h,u,p,_,g,v,b,w,E,I,C=i[0],z=i[1],R=i[2];return e===n?(n[12]=e[0]*C+e[4]*z+e[8]*R+e[12],n[13]=e[1]*C+e[5]*z+e[9]*R+e[13],n[14]=e[2]*C+e[6]*z+e[10]*R+e[14],n[15]=e[3]*C+e[7]*z+e[11]*R+e[15]):(a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=e[9],E=e[10],I=e[11],n[0]=r=e[0],n[1]=a,n[2]=h,n[3]=u,n[4]=p,n[5]=_,n[6]=g,n[7]=v,n[8]=b,n[9]=w,n[10]=E,n[11]=I,n[12]=r*C+p*z+b*R+e[12],n[13]=a*C+_*z+w*R+e[13],n[14]=h*C+g*z+E*R+e[14],n[15]=u*C+v*z+I*R+e[15]),n}function Dn(n,e,i){var r=i[0],a=i[1],h=i[2];return n[0]=e[0]*r,n[1]=e[1]*r,n[2]=e[2]*r,n[3]=e[3]*r,n[4]=e[4]*a,n[5]=e[5]*a,n[6]=e[6]*a,n[7]=e[7]*a,n[8]=e[8]*h,n[9]=e[9]*h,n[10]=e[10]*h,n[11]=e[11]*h,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15],n}function mo(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[4],u=e[5],p=e[6],_=e[7],g=e[8],v=e[9],b=e[10],w=e[11];return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[4]=h*a+g*r,n[5]=u*a+v*r,n[6]=p*a+b*r,n[7]=_*a+w*r,n[8]=g*a-h*r,n[9]=v*a-u*r,n[10]=b*a-p*r,n[11]=w*a-_*r,n}function Cr(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],p=e[2],_=e[3],g=e[8],v=e[9],b=e[10],w=e[11];return e!==n&&(n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=h*a-g*r,n[1]=u*a-v*r,n[2]=p*a-b*r,n[3]=_*a-w*r,n[8]=h*r+g*a,n[9]=u*r+v*a,n[10]=p*r+b*a,n[11]=_*r+w*a,n}function Rr(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],p=e[2],_=e[3],g=e[4],v=e[5],b=e[6],w=e[7];return e!==n&&(n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=h*a+g*r,n[1]=u*a+v*r,n[2]=p*a+b*r,n[3]=_*a+w*r,n[4]=g*a-h*r,n[5]=v*a-u*r,n[6]=b*a-p*r,n[7]=w*a-_*r,n}function Xr(n,e){return n[0]=e[0],n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=e[1],n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=e[2],n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function xs(n,e,i){var r,a,h,u=i[0],p=i[1],_=i[2],g=Math.sqrt(u*u+p*p+_*_);return g<Rn?null:(u*=g=1/g,p*=g,_*=g,r=Math.sin(e),a=Math.cos(e),n[0]=u*u*(h=1-a)+a,n[1]=p*u*h+_*r,n[2]=_*u*h-p*r,n[3]=0,n[4]=u*p*h-_*r,n[5]=p*p*h+a,n[6]=_*p*h+u*r,n[7]=0,n[8]=u*_*h+p*r,n[9]=p*_*h-u*r,n[10]=_*_*h+a,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n)}function $a(n,e){var i=e[0],r=e[1],a=e[2],h=e[4],u=e[5],p=e[6],_=e[8],g=e[9],v=e[10];return n[0]=Math.sqrt(i*i+r*r+a*a),n[1]=Math.sqrt(h*h+u*u+p*p),n[2]=Math.sqrt(_*_+g*g+v*v),n}function Ha(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i+i,p=r+r,_=a+a,g=i*u,v=r*u,b=r*p,w=a*u,E=a*p,I=a*_,C=h*u,z=h*p,R=h*_;return n[0]=1-b-I,n[1]=v+R,n[2]=w-z,n[3]=0,n[4]=v-R,n[5]=1-g-I,n[6]=E+C,n[7]=0,n[8]=w+z,n[9]=E-C,n[10]=1-g-b,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}var Za=yi;function Kt(){var n=new Ti(3);return Ti!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n}function Hl(n){var e=new Ti(3);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e}function er(n){var e=n[0],i=n[1],r=n[2];return Math.sqrt(e*e+i*i+r*r)}function ci(n,e,i){var r=new Ti(3);return r[0]=n,r[1]=e,r[2]=i,r}function ui(n,e,i,r){return n[0]=e,n[1]=i,n[2]=r,n}function ji(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n[2]=e[2]+i[2],n}function Yr(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],n}function Dr(n,e,i){return n[0]=e[0]*i[0],n[1]=e[1]*i[1],n[2]=e[2]*i[2],n}function Kr(n,e,i){return n[0]=Math.min(e[0],i[0]),n[1]=Math.min(e[1],i[1]),n[2]=Math.min(e[2],i[2]),n}function zr(n,e,i){return n[0]=Math.max(e[0],i[0]),n[1]=Math.max(e[1],i[1]),n[2]=Math.max(e[2],i[2]),n}function xi(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n}function dr(n,e,i,r){return n[0]=e[0]+i[0]*r,n[1]=e[1]+i[1]*r,n[2]=e[2]+i[2]*r,n}function Zl(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return Math.sqrt(i*i+r*r+a*a)}function Wa(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return i*i+r*r+a*a}function Wl(n){var e=n[0],i=n[1],r=n[2];return e*e+i*i+r*r}function Bo(n,e){return n[0]=-e[0],n[1]=-e[1],n[2]=-e[2],n}function oi(n,e){var i=e[0],r=e[1],a=e[2],h=i*i+r*r+a*a;return h>0&&(h=1/Math.sqrt(h)),n[0]=e[0]*h,n[1]=e[1]*h,n[2]=e[2]*h,n}function zi(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]}function En(n,e,i){var r=e[0],a=e[1],h=e[2],u=i[0],p=i[1],_=i[2];return n[0]=a*_-h*p,n[1]=h*u-r*_,n[2]=r*p-a*u,n}function vs(n,e,i,r){var a=e[0],h=e[1],u=e[2];return n[0]=a+r*(i[0]-a),n[1]=h+r*(i[1]-h),n[2]=u+r*(i[2]-u),n}function Vi(n,e,i){var r=e[0],a=e[1],h=e[2],u=i[3]*r+i[7]*a+i[11]*h+i[15];return n[0]=(i[0]*r+i[4]*a+i[8]*h+i[12])/(u=u||1),n[1]=(i[1]*r+i[5]*a+i[9]*h+i[13])/u,n[2]=(i[2]*r+i[6]*a+i[10]*h+i[14])/u,n}function ko(n,e,i){var r=e[0],a=e[1],h=e[2];return n[0]=r*i[0]+a*i[3]+h*i[6],n[1]=r*i[1]+a*i[4]+h*i[7],n[2]=r*i[2]+a*i[5]+h*i[8],n}function No(n,e,i){var r=i[0],a=i[1],h=i[2],u=i[3],p=e[0],_=e[1],g=e[2],v=a*g-h*_,b=h*p-r*g,w=r*_-a*p;return n[0]=p+u*(v+=v)+a*(w+=w)-h*(b+=b),n[1]=_+u*b+h*v-r*w,n[2]=g+u*w+r*b-a*v,n}function bs(n){return n[0]=0,n[1]=0,n[2]=0,n}function Lr(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]}var Ui=Yr,Zs=Dr,Vo=er;function Ws(){var n=new Ti(4);return Ti!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0,n[3]=0),n}function ws(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=e[3]*i,n}function Xa(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i*i+r*r+a*a+h*h;return u>0&&(u=1/Math.sqrt(u)),n[0]=i*u,n[1]=r*u,n[2]=a*u,n[3]=h*u,n}function tr(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]+n[3]*e[3]}function Gn(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3];return n[0]=i[0]*r+i[4]*a+i[8]*h+i[12]*u,n[1]=i[1]*r+i[5]*a+i[9]*h+i[13]*u,n[2]=i[2]*r+i[6]*a+i[10]*h+i[14]*u,n[3]=i[3]*r+i[7]*a+i[11]*h+i[15]*u,n}function _o(){var n=new Ti(4);return Ti!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n[3]=1,n}function go(n){return n[0]=0,n[1]=0,n[2]=0,n[3]=1,n}function Uo(n,e,i){i*=.5;var r=e[0],a=e[1],h=e[2],u=e[3],p=Math.sin(i),_=Math.cos(i);return n[0]=r*_+u*p,n[1]=a*_+h*p,n[2]=h*_-a*p,n[3]=u*_-r*p,n}function Ts(n,e,i){i*=.5;var r=e[0],a=e[1],h=e[2],u=e[3],p=Math.sin(i),_=Math.cos(i);return n[0]=r*_-h*p,n[1]=a*_+u*p,n[2]=h*_+r*p,n[3]=u*_-a*p,n}Kt(),Ws();var kn,Xs,pr,Ya=Xa,yo=(kn=Kt(),Xs=ci(1,0,0),pr=ci(0,1,0),function(n,e,i){var r=zi(e,i);return r<-.999999?(En(kn,Xs,e),Vo(kn)<1e-6&&En(kn,pr,e),oi(kn,kn),function(a,h,u){u*=.5;var p=Math.sin(u);a[0]=p*h[0],a[1]=p*h[1],a[2]=p*h[2],a[3]=Math.cos(u)}(n,kn,Math.PI),n):r>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(En(kn,e,i),n[0]=kn[0],n[1]=kn[1],n[2]=kn[2],n[3]=1+r,Ya(n,n))});function In(){var n=new Ti(2);return Ti!=Float32Array&&(n[0]=0,n[1]=0),n}function xo(n,e){var i=new Ti(2);return i[0]=n,i[1]=e,i}function vo(n,e,i){return n[0]=e,n[1]=i,n}function jo(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n}function bo(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n}function Go(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n}function qo(n){var e=n[0],i=n[1];return Math.sqrt(e*e+i*i)}function Ys(n,e){var i=e[0],r=e[1],a=i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),n[0]=e[0]*a,n[1]=e[1]*a,n}function pi(n,e){return n[0]*e[0]+n[1]*e[1]}_o(),_o(),$l();var wn,Xl,Ks=bo;function fr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}In();var Ih=function(){if(Xl)return wn;function n(e,i,r,a){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(a-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=r,this.p2y=a}return Xl=1,wn=n,n.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var r=e,a=0;a<8;a++){var h=this.sampleCurveX(r)-e;if(Math.abs(h)<i)return r;var u=this.sampleCurveDerivativeX(r);if(Math.abs(u)<1e-6)break;r-=h/u}var p=0,_=1;for(r=e,a=0;a<20&&(h=this.sampleCurveX(r),!(Math.abs(h-e)<i));a++)e>h?p=r:_=r,r=.5*(_-p)+p;return r},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},wn}(),Js=fr(Ih);function Oe(n,e){this.x=n,this.y=e}function wo(n,e){if(Array.isArray(n)){if(!Array.isArray(e)||n.length!==e.length)return!1;for(let i=0;i<n.length;i++)if(!wo(n[i],e[i]))return!1;return!0}if(typeof n=="object"&&n!==null&&e!==null){if(typeof e!="object"||Object.keys(n).length!==Object.keys(e).length)return!1;for(const i in n)if(!wo(n[i],e[i]))return!1;return!0}return n===e}Oe.prototype={clone(){return new Oe(this.x,this.y)},add(n){return this.clone()._add(n)},sub(n){return this.clone()._sub(n)},multByPoint(n){return this.clone()._multByPoint(n)},divByPoint(n){return this.clone()._divByPoint(n)},mult(n){return this.clone()._mult(n)},div(n){return this.clone()._div(n)},rotate(n){return this.clone()._rotate(n)},rotateAround(n,e){return this.clone()._rotateAround(n,e)},matMult(n){return this.clone()._matMult(n)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(n){return this.x===n.x&&this.y===n.y},dist(n){return Math.sqrt(this.distSqr(n))},distSqr(n){const e=n.x-this.x,i=n.y-this.y;return e*e+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith(n){return this.angleWithSep(n.x,n.y)},angleWithSep(n,e){return Math.atan2(this.x*e-this.y*n,this.x*n+this.y*e)},_matMult(n){const e=n[2]*this.x+n[3]*this.y;return this.x=n[0]*this.x+n[1]*this.y,this.y=e,this},_add(n){return this.x+=n.x,this.y+=n.y,this},_sub(n){return this.x-=n.x,this.y-=n.y,this},_mult(n){return this.x*=n,this.y*=n,this},_div(n){return this.x/=n,this.y/=n,this},_multByPoint(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint(n){return this.x/=n.x,this.y/=n.y,this},_unit(){return this._div(this.mag()),this},_perp(){const n=this.y;return this.y=this.x,this.x=-n,this},_rotate(n){const e=Math.cos(n),i=Math.sin(n),r=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=r,this},_rotateAround(n,e){const i=Math.cos(n),r=Math.sin(n),a=e.y+r*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-r*(this.y-e.y),this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:Oe},Oe.convert=function(n){if(n instanceof Oe)return n;if(Array.isArray(n))return new Oe(+n[0],+n[1]);if(n.x!==void 0&&n.y!==void 0)return new Oe(+n.x,+n.y);throw new Error("Expected [x, y] or {x, y} point format")};const Ah=Math.PI/180,Ka=180/Math.PI;function kt(n){return n*Ah}function de(n){return n*Ka}const O=[[0,0],[1,0],[1,1],[0,1]];function U(n){if(n<=0)return 0;if(n>=1)return 1;const e=n*n,i=e*n;return 4*(n<.5?i:3*(n-e)+i-.75)}function X(n,e,i,r){const a=new Js(n,e,i,r);return function(h){return a.solve(h)}}const se=X(.25,.1,.25,1);function Y(n,e,i){return Math.min(i,Math.max(e,n))}function he(n,e,i){return(i=Y((i-n)/(e-n),0,1))*i*(3-2*i)}function ge(n,e,i){const r=i-e,a=((n-e)%r+r)%r+e;return a===e?i:a}function ue(n,e,i){if(!n.length)return i(null,[]);let r=n.length;const a=new Array(n.length);let h=null;n.forEach((u,p)=>{e(u,(_,g)=>{_&&(h=_),a[p]=g,--r===0&&i(h,a)})})}let be=1;function Be(){return be++}function De(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log2(n)))}function Ye(n,e){n.forEach(i=>{e[i]&&(e[i]=e[i].bind(e))})}function at(n,e,i){const r={};for(const a in n)r[a]=e.call(this,n[a],a,n);return r}function ct(n,e,i){const r={};for(const a in n)e.call(this,n[a],a,n)&&(r[a]=n[a]);return r}function yt(n){return Array.isArray(n)?n.map(yt):typeof n=="object"&&n?at(n,yt):n}function bt(n,e){for(let i=0;i<n.length;i++)if(e.indexOf(n[i])>=0)return!0;return!1}const _t={};function mt(n){_t[n]||(typeof console<"u"&&console.warn(n),_t[n]=!0)}function ri(n,e,i){return(i.y-n.y)*(e.x-n.x)>(e.y-n.y)*(i.x-n.x)}function $i(n){let e=0;for(let i,r,a=0,h=n.length,u=h-1;a<h;u=a++)i=n[a],r=n[u],e+=(r.x-i.x)*(i.y+r.y);return e}function Li([n,e,i]){const r=kt(e+90),a=kt(i);return{x:n*Math.cos(r)*Math.sin(a),y:n*Math.sin(r)*Math.sin(a),z:n*Math.cos(a),azimuthal:e,polar:i}}function ki(n){return(typeof self<"u"||n!==void 0)&&typeof WorkerGlobalScope<"u"&&(n!==void 0?n:self)instanceof WorkerGlobalScope}function fi(n){const e={};if(n.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,r,a,h)=>{const u=a||h;return e[r]=!u||u.toLowerCase(),""}),e["max-age"]){const i=parseInt(e["max-age"],10);isNaN(i)?delete e["max-age"]:e["max-age"]=i}return e}let Bt=null;function vi(n,e){return[n[4*e],n[4*e+1],n[4*e+2],n[4*e+3]]}function ni(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<r?e=a+1:i=a}return e}function mi(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<=r?e=a+1:i=a}return e}function bi(n){return n>0?1/(1.001-n):1+n}function Tn(n){return n>0?1-1/(1.001-n):-n}function _n(n,e,i){return(n-e.min)*(i.max-i.min)/(e.max-e.min)+i.min}const Ki={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!Ki.API_URL)return null;try{const n=new URL(Ki.API_URL);return n.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":n.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"https://api.mapbox.com/mapbox-gl-js/building-gen/building_gen_v1.2.4.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function Jr(n){return Ki.API_URL_REGEX.test(n)}function To(n){return Ki.API_SPRITE_REGEX.test(n)}let Qr,Ja,Qs,Yl,Tr,Ss;function Qa(){return Qr==null&&(Qr=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),Qr}const eo={now:()=>Yl!==void 0?Yl:performance.now(),setNow(n){Yl=n},restoreNow(){Yl=void 0},frame(n){const e=requestAnimationFrame(n);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(n,e=0){const{width:i,height:r}=n;Tr||(Tr=document.createElement("canvas"));const a=Tr.getContext("2d",{willReadFrequently:!0});if(!a)throw new Error("failed to create canvas 2d context");return(i>Tr.width||r>Tr.height)&&(Tr.width=i,Tr.height=r),a.clearRect(-e,-e,i+2*e,r+2*e),a.drawImage(n,0,0,i,r),a.getImageData(-e,-e,i+2*e,r+2*e)},resolveURL:n=>(Ja||(Ja=document.createElement("a")),Ja.href=n,Ja.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(Qs==null&&(Qs=window.matchMedia("(prefers-reduced-motion: reduce)")),Qs.matches)},hasCanvasFingerprintNoise(){if(Ss!==void 0)return Ss;if(!Qa())return Ss=!1,!1;const n=new OffscreenCanvas(85,1),e=n.getContext("2d",{willReadFrequently:!0});let i=0;for(let a=0;a<n.width;++a)e.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,e.fillRect(a,0,1,1);const r=e.getImageData(0,0,n.width,n.height);i=0;for(let a=0;a<r.data.length;++a)if(a%4!=3&&i++!==r.data[a])return Ss=!0,!0;return Ss=!1,!1}};function Mh(n,e){const i=n.indexOf("?");if(i<0)return`${n}?${new URLSearchParams(e).toString()}`;const r=new URLSearchParams(n.slice(i));for(const a in e)r.set(a,e[a]);return`${n.slice(0,i)}?${r.toString()}`}function Ph(n,e={persistentParams:[]}){const i=n.indexOf("?");if(i<0)return n;const r=new URLSearchParams,a=new URLSearchParams(n.slice(i));for(const u of e.persistentParams){const p=a.get(u);p&&r.set(u,p)}const h=r.toString();return`${n.slice(0,i)}${h.length>0?`?${h}`:""}`}const Gd="mapbox-tiles";let qd=500,Ch=50;const Rh=["language","worldview","jobid"];let gn;function Fr(){try{return caches}catch{}}function Or(){const n=Fr();n&&gn==null&&(gn=n.open(Gd))}let Sr=1/0;const to={supported:!1,testSupport:function(n){!Kl&&Es&&(Is?$d(n):$o=n)}};let $o,Es,Kl=!1,Is=!1;const Jl=typeof self<"u"?self:{};function $d(n){const e=n.createTexture();n.bindTexture(n.TEXTURE_2D,e);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,Es),n.isContextLost())return;to.supported=!0}catch{}n.deleteTexture(e),Kl=!0}Jl.document&&(Es=Jl.document.createElement("img"),Es.onload=function(){$o&&$d($o),$o=null,Is=!0},Es.onerror=function(){Kl=!0,$o=null},Es.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const el={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};Object.freeze(el);class ir extends Error{constructor(e,i,r){i===401&&Jr(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=i,this.url=r}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ql=ki()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,So=function(n,e){return/^file:/.test(i=n.url)||/^file:/.test(Ql())&&!/^\w+:/.test(i)?function(r,a){const h=new XMLHttpRequest;h.open(r.method||"GET",r.url,!0),r.type==="arrayBuffer"&&(h.responseType="arraybuffer");for(const u in r.headers)h.setRequestHeader(u,r.headers[u]);return r.type==="json"&&(h.responseType="text",h.setRequestHeader("Accept","application/json")),h.withCredentials=r.credentials==="include",h.onerror=()=>{a(new Error(h.statusText))},h.onload=()=>{if((h.status>=200&&h.status<300||h.status===0)&&h.response!==null){let u=h.response;if(r.type==="json")try{u=JSON.parse(h.response)}catch(_){return a(_)}const p=new Headers;h.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(_=>{const g=_.split(": "),v=g.shift(),b=g.join(": ");p.append(v,b)}),a(null,u,p)}else a(new ir(h.statusText,h.status,r.url))},h.send(r.body),{cancel:()=>h.abort()}}(n,e):function(r,a){const h=new AbortController,u=new Request(r.url,{method:r.method||"GET",body:r.body,credentials:r.credentials,headers:r.headers,referrer:Ql(),referrerPolicy:r.referrerPolicy,signal:h.signal});let p=!1,_=!1;const g=(v=u.url).indexOf("sku=")>0&&Jr(v);var v;r.type==="json"&&u.headers.set("Accept","application/json");const b=(E,I,C)=>{if(_)return;if(E&&E.message!=="SecurityError"&&mt(E.toString()),I&&C)return w(I);const z=Date.now();fetch(u).then(R=>{if(R.ok){const B=g?R.clone():null;return w(R,B,z)}return a(new ir(R.statusText,R.status,r.url))}).catch(R=>{R.name!=="AbortError"&&a(new Error(`${R.message} ${r.url}`))})},w=(E,I,C)=>{(r.type==="arrayBuffer"?E.arrayBuffer():r.type==="json"?E.json():E.text()).then(z=>{_||(I&&C&&function(R,B,k){if(Or(),gn==null)return;const j=fi(B.headers.get("cache-control")||"");if(j["no-store"])return;const H={status:B.status,statusText:B.statusText,headers:new Headers};B.headers.forEach((ie,oe)=>H.headers.set(oe,ie)),j["max-age"]&&H.headers.set("Expires",new Date(k+1e3*j["max-age"]).toUTCString());const $=H.headers.get("expires");if(!$||new Date($).getTime()-k<42e4)return;let re=Ph(R.url,{persistentParams:Rh});if(B.status===206){const ie=R.headers.get("Range");if(!ie)return;H.status=200,re=Mh(re,{range:ie})}const K=new Response((Q=B.status)!==200&&Q!==404&&[101,103,204,205,304].includes(Q)?null:B.body,H);var Q;Or(),gn!=null&&gn.then(ie=>ie.put(re,K)).catch(ie=>mt(ie.message))}(u,I,C),p=!0,a(null,z,E.headers))}).catch(z=>{_||a(new Error(z.message))})};return g?function(E,I){if(Or(),gn==null)return I(null);gn.then(C=>{let z=Ph(E.url,{persistentParams:Rh});const R=E.headers.get("Range");R&&(z=Mh(z,{range:R})),C.match(z).then(B=>{const k=function(j){if(!j)return!1;const H=new Date(j.headers.get("expires")||0),$=fi(j.headers.get("cache-control")||"");return Number(H)>Date.now()&&!$["no-cache"]}(B);C.delete(z).catch(I),k&&C.put(z,B.clone()).catch(I),I(null,B,k)}).catch(I)}).catch(I)}(u,b):b(null,null),{cancel:()=>{_=!0,p||h.abort()}}}(n,e);var i},tl=function(n,e){return So(Object.assign(n,{type:"arrayBuffer"}),e)};function dm(n){const e=document.createElement("a");return e.href=n,e.protocol===location.protocol&&e.host===location.host}let il,Nt;il=[],Nt=0;const ec=function(n,e){if(to.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Nt>=Ki.MAX_PARALLEL_IMAGE_REQUESTS){const h={requestParameters:n,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return il.push(h),h}Nt++;let i=!1;const r=()=>{if(!i)for(i=!0,Nt--;il.length&&Nt<Ki.MAX_PARALLEL_IMAGE_REQUESTS;){const h=il.shift(),{requestParameters:u,callback:p,cancelled:_}=h;_||(h.cancel=ec(u,p).cancel)}},a=tl(n,(h,u,p)=>{r(),h?e(h):u&&function(_,g){const v=new Blob([new Uint8Array(_)],{type:"image/png"});createImageBitmap(v).then(b=>{g(null,b)}).catch(b=>{g(new Error(`Could not load image because of ${b.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(u,(_,g)=>e(_,g,p))});return{cancel:()=>{a.cancel(),r()}}};var Dh,Hd,Zd,Ho={exports:{}},nl={exports:{}},rl={exports:{}},zh=function(){if(Zd)return Ho.exports;Zd=1;var n=(Dh||(Dh=1,nl.exports=function(i,r){var a,h,u,p,_,g,v,b;for(h=i.length-(a=3&i.length),u=r,_=3432918353,g=461845907,b=0;b<h;)v=255&i.charCodeAt(b)|(255&i.charCodeAt(++b))<<8|(255&i.charCodeAt(++b))<<16|(255&i.charCodeAt(++b))<<24,++b,u=27492+(65535&(p=5*(65535&(u=(u^=v=(65535&(v=(v=(65535&v)*_+(((v>>>16)*_&65535)<<16)&4294967295)<<15|v>>>17))*g+(((v>>>16)*g&65535)<<16)&4294967295)<<13|u>>>19))+((5*(u>>>16)&65535)<<16)&4294967295))+(((p>>>16)+58964&65535)<<16);switch(v=0,a){case 3:v^=(255&i.charCodeAt(b+2))<<16;case 2:v^=(255&i.charCodeAt(b+1))<<8;case 1:u^=v=(65535&(v=(v=(65535&(v^=255&i.charCodeAt(b)))*_+(((v>>>16)*_&65535)<<16)&4294967295)<<15|v>>>17))*g+(((v>>>16)*g&65535)<<16)&4294967295}return u^=i.length,u=2246822507*(65535&(u^=u>>>16))+((2246822507*(u>>>16)&65535)<<16)&4294967295,u=3266489909*(65535&(u^=u>>>13))+((3266489909*(u>>>16)&65535)<<16)&4294967295,(u^=u>>>16)>>>0}),nl.exports),e=(Hd||(Hd=1,rl.exports=function(i,r){for(var a,h=i.length,u=r^h,p=0;h>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(p)|(255&i.charCodeAt(++p))<<8|(255&i.charCodeAt(++p))<<16|(255&i.charCodeAt(++p))<<24))+((1540483477*(a>>>16)&65535)<<16),u=1540483477*(65535&u)+((1540483477*(u>>>16)&65535)<<16)^(a=1540483477*(65535&(a^=a>>>24))+((1540483477*(a>>>16)&65535)<<16)),h-=4,++p;switch(h){case 3:u^=(255&i.charCodeAt(p+2))<<16;case 2:u^=(255&i.charCodeAt(p+1))<<8;case 1:u=1540483477*(65535&(u^=255&i.charCodeAt(p)))+((1540483477*(u>>>16)&65535)<<16)}return u=1540483477*(65535&(u^=u>>>13))+((1540483477*(u>>>16)&65535)<<16),(u^=u>>>15)>>>0}),rl.exports);return Ho.exports=n,Ho.exports.murmur3=n,Ho.exports.murmur2=e,Ho.exports}(),tc=fr(zh);class Br{constructor(e,...i){Object.assign(this,i[0]||{}),this.type=e}}class ic extends Br{constructor(e,i={}){super("error",Object.assign({error:e},i))}}function Lh(n,e,i){i[n]&&i[n].indexOf(e)!==-1||(i[n]=i[n]||[],i[n].push(e))}function Fh(n,e,i){if(i&&i[n]){const r=i[n].indexOf(e);r!==-1&&i[n].splice(r,1)}}class kr{on(e,i){return this._listeners=this._listeners||{},Lh(e,i,this._listeners),this}off(e,i){return Fh(e,i,this._listeners),Fh(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},Lh(e,i,this._oneTimeListeners),this):new Promise(r=>{this.once(e,r)})}fire(e,i){const r=typeof e=="string"?new Br(e,i):e,a=r.type;if(this.listens(a)){r.target=this;const h=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const _ of h)_.call(this,r);const u=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const _ of u)Fh(a,_,this._oneTimeListeners),_.call(this,r);const p=this._eventedParent;if(p){const _=typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData;Object.assign(r,_),p.fire(r)}}else r instanceof ic&&console.error(r.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,i){return this._eventedParent=e,this._eventedParentData=i,this}}class qn{constructor(e){typeof e=="string"?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new qn(e)}static toString(e){return e.iconsetId?`${e.name}${e.iconsetId}`:e.name}static parse(e){const[i,r]=e.split("");return new qn({name:i,iconsetId:r})}static isEqual(e,i){return e.name===i.name&&e.iconsetId===i.iconsetId}toString(){return qn.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var nc,mr={},Oh=function(){if(nc)return mr;nc=1;var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function e(h){return(h=Math.round(h))<0?0:h>255?255:h}function i(h){return e(h[h.length-1]==="%"?parseFloat(h)/100*255:parseInt(h))}function r(h){return(u=h[h.length-1]==="%"?parseFloat(h)/100:parseFloat(h))<0?0:u>1?1:u;var u}function a(h,u,p){return p<0?p+=1:p>1&&(p-=1),6*p<1?h+(u-h)*p*6:2*p<1?u:3*p<2?h+(u-h)*(2/3-p)*6:h}try{mr.parseCSSColor=function(h){var u,p=h.replace(/ /g,"").toLowerCase();if(p in n)return n[p].slice();if(p[0]==="#")return p.length===4?(u=parseInt(p.substr(1),16))>=0&&u<=4095?[(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1]:null:p.length===7&&(u=parseInt(p.substr(1),16))>=0&&u<=16777215?[(16711680&u)>>16,(65280&u)>>8,255&u,1]:null;var _=p.indexOf("("),g=p.indexOf(")");if(_!==-1&&g+1===p.length){var v=p.substr(0,_),b=p.substr(_+1,g-(_+1)).split(","),w=1;switch(v){case"rgba":if(b.length!==4)return null;w=r(b.pop());case"rgb":return b.length!==3?null:[i(b[0]),i(b[1]),i(b[2]),w];case"hsla":if(b.length!==4)return null;w=r(b.pop());case"hsl":if(b.length!==3)return null;var E=(parseFloat(b[0])%360+360)%360/360,I=r(b[1]),C=r(b[2]),z=C<=.5?C*(I+1):C+I-C*I,R=2*C-z;return[e(255*a(R,z,E+1/3)),e(255*a(R,z,E)),e(255*a(R,z,E-1/3)),w];default:return null}}return null}}catch{}return mr}();class Wt{constructor(e,i,r,a=1){this.r=e,this.g=i,this.b=r,this.a=a}static parse(e){if(!e)return;if(e instanceof Wt)return e;if(typeof e!="string")return;const i=Oh.parseCSSColor(e);return i?new Wt(i[0]/255,i[1]/255,i[2]/255,i[3]):void 0}toString(){const[e,i,r,a]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*i)},${Math.round(255*r)},${a})`}toNonPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:h}=this;return new Wd(e,i,r,a,h)}toPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:h}=this;return new Xd(e,i*h,r*h,a*h,h)}clone(){return new Wt(this.r,this.g,this.b,this.a)}}class Bh{constructor(e,i,r,a,h,u=!1){if(this.premultiplied=!1,this.premultiplied=u,e){const p=e.image.height,_=p*p;this.premultiplied?(i=h===0?0:i/h*(p-1),r=h===0?0:r/h*(p-1),a=h===0?0:a/h*(p-1)):(i*=p-1,r*=p-1,a*=p-1),i=Math.max(0,Math.min(p-1,i)),r=Math.max(0,Math.min(p-1,r)),a=Math.max(0,Math.min(p-1,a));const g=Math.floor(i),v=Math.floor(r),b=Math.floor(a),w=Math.ceil(i),E=Math.ceil(r),I=Math.ceil(a),C=i-g,z=r-v,R=a-b,B=e.image.data,k=4*(g+v*_+b*p),j=4*(g+v*_+I*p),H=4*(g+E*_+b*p),$=4*(g+E*_+I*p),re=4*(w+v*_+b*p),K=4*(w+v*_+I*p),Q=4*(w+E*_+b*p),ie=4*(w+E*_+I*p);this.r=ut(ut(ut(B[k],B[j],R),ut(B[H],B[$],R),z),ut(ut(B[re],B[K],R),ut(B[Q],B[ie],R),z),C)/255*(this.premultiplied?h:1),this.g=ut(ut(ut(B[k+1],B[j+1],R),ut(B[H+1],B[$+1],R),z),ut(ut(B[re+1],B[K+1],R),ut(B[Q+1],B[ie+1],R),z),C)/255*(this.premultiplied?h:1),this.b=ut(ut(ut(B[k+2],B[j+2],R),ut(B[H+2],B[$+2],R),z),ut(ut(B[re+2],B[K+2],R),ut(B[Q+2],B[ie+2],R),z),C)/255*(this.premultiplied?h:1),this.a=h}else this.r=i,this.g=r,this.b=a,this.a=h}toArray(){const{r:e,g:i,b:r,a}=this;return[255*e,255*i,255*r,a]}toHslaArray(){let{r:e,g:i,b:r,a}=this;if(this.premultiplied){if(a===0)return[0,0,0,0];const I=1/a;e*=I,i*=I,r*=I}const h=Math.min(Math.max(e,0),1),u=Math.min(Math.max(i,0),1),p=Math.min(Math.max(r,0),1),_=Math.min(h,u,p),g=Math.max(h,u,p),v=g-_,b=.5*(_+g);if(v===0)return[0,0,100*b,a];const w=b>.5?v/(2-g-_):v/(g+_);let E;switch(g){case h:E=60*((u-p)/v+(u<p?6:0));break;case u:E=60*((p-h)/v+2);break;default:E=60*((h-u)/v+4)}return[E,100*w,100*b,a]}toArray01(){const{r:e,g:i,b:r,a}=this;return[e,i,r,a]}toArray01Scaled(e){const{r:i,g:r,b:a}=this;return[i*e,r*e,a*e]}toArray01Linear(){const{r:e,g:i,b:r,a}=this;return[Math.pow(e,2.2),Math.pow(i,2.2),Math.pow(r,2.2),a]}}class Wd extends Bh{constructor(e,i,r,a,h){super(e,i,r,a,h,!1)}}class Xd extends Bh{constructor(e,i,r,a,h){super(e,i,r,a,h,!0)}}function ut(n,e,i){return n*(1-i)+e*i}function kh(n,e,i){return n.map((r,a)=>ut(r,e[a],i))}Wt.black=new Wt(0,0,0,1),Wt.white=new Wt(1,1,1,1),Wt.transparent=new Wt(0,0,0,0),Wt.red=new Wt(1,0,0,1),Wt.blue=new Wt(0,0,1,1);var ol=Object.freeze({__proto__:null,array:kh,color:function(n,e,i){return new Wt(ut(n.r,e.r,i),ut(n.g,e.g,i),ut(n.b,e.b,i),ut(n.a,e.a,i))},number:ut});class nr extends Error{constructor(e,i){super(i),this.message=i,this.key=e}}class Zo{constructor(e,i=[]){this.parent=e,this.bindings={};for(const[r,a]of i)this.bindings[r]=a}concat(e){return new Zo(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const As={kind:"null"},tt={kind:"number"},$t={kind:"string"},Ht={kind:"boolean"},An={kind:"color"},Wo={kind:"object"},Xt={kind:"value"},rc={kind:"collator"},sl={kind:"formatted"},ea={kind:"resolvedImage"};function Sn(n,e){return{kind:"array",itemType:n,N:e}}function Hi(n){if(n.kind==="array"){const e=Hi(n.itemType);return typeof n.N=="number"?`array<${e}, ${n.N}>`:n.itemType.kind==="value"?"array":`array<${e}>`}return n.kind}const oc=[As,tt,$t,Ht,An,sl,Wo,Sn(Xt),ea];function al(n,e){if(e.kind==="error")return null;if(n.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!al(n.itemType,e.itemType))&&(typeof n.N!="number"||n.N===e.N))return null}else{if(n.kind===e.kind)return null;if(n.kind==="value"){for(const i of oc)if(!al(i,e))return null}}return`Expected ${Hi(n)} but found ${Hi(e)} instead.`}function Nh(n,e){return e.some(i=>i.kind===n.kind)}function ll(n,e){return e.some(i=>i==="null"?n===null:i==="array"?Array.isArray(n):i==="object"?n&&!Array.isArray(n)&&typeof n=="object":i===typeof n)}function sc(n,e){return n.kind==="array"&&e.kind==="array"?n.N===e.N&&sc(n.itemType,e.itemType):n.kind===e.kind}class Vh{constructor(e,i,r){this.sensitivity=e?i?"variant":"case":i?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,i){return this.collator.compare(e,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class ac{constructor(e,i,r,a,h){this.text=e.normalize?e.normalize():e,this.image=i,this.scale=r,this.fontStack=a,this.textColor=h}}class Nn{constructor(e){this.sections=e}static fromString(e){return new Nn([new ac(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||!!e.image&&e.image.hasPrimary())}static factory(e){return e instanceof Nn?e:Nn.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const i of this.sections){if(i.image){const a=i.image.getPrimary().id.toString();e.push(["image",a]);continue}e.push(i.text);const r={};i.fontStack&&(r["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(r["font-scale"]=i.scale),i.textColor&&(r["text-color"]=["rgba"].concat(i.textColor.toNonPremultipliedRenderColor(null).toArray())),e.push(r)}return e}}class Nr{constructor(e,i={}){this.id=qn.from(e),this.params=i.params,this.sx=i.sx||1,this.sy=i.sy||1}toString(){return JSON.stringify(this)}static parse(e){let i,r,a,h;try{({id:i,params:r,sx:a,sy:h}=JSON.parse(e)||{})}catch{return null}return i?new Nr(i,{params:r,sx:a,sy:h}):null}scaleSelf(e,i=e){return this.sx*=e,this.sy*=i,this}}class yn{constructor(e,i,r,a,h=!1){this.primaryId=qn.from(e),this.primaryOptions=i,r&&(this.secondaryId=qn.from(r)),this.secondaryOptions=a,this.available=h}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new Nr(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new Nr(this.secondaryId,this.secondaryOptions):null}static from(e){return typeof e=="string"?yn.build({name:e}):e}static build(e,i,r,a){return!e||typeof e=="object"&&!("name"in e)?null:new yn(e,r,i,a)}}function Yd(n,e,i,r){return typeof n=="number"&&n>=0&&n<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof i=="number"&&i>=0&&i<=255?r===void 0||typeof r=="number"&&r>=0&&r<=1?null:`Invalid rgba value [${[n,e,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof r=="number"?[n,e,i,r]:[n,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Ms(n){if(n===null||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||n instanceof Wt||n instanceof Vh||n instanceof Nn||n instanceof yn)return!0;if(Array.isArray(n)){for(const e of n)if(!Ms(e))return!1;return!0}if(typeof n=="object"){for(const e in n)if(!Ms(n[e]))return!1;return!0}return!1}function Zi(n){if(n===null)return As;if(typeof n=="string")return $t;if(typeof n=="boolean")return Ht;if(typeof n=="number")return tt;if(n instanceof Wt)return An;if(n instanceof Vh)return rc;if(n instanceof Nn)return sl;if(n instanceof yn)return ea;if(Array.isArray(n)){const e=n.length;let i;for(const r of n){const a=Zi(r);if(i){if(i===a)continue;i=Xt;break}i=a}return Sn(i||Xt,e)}return Wo}function io(n){const e=typeof n;return n===null?"":e==="string"||e==="number"||e==="boolean"?String(n):n instanceof Nn||n instanceof yn||n instanceof Wt?n.toString():JSON.stringify(n)}class Eo{constructor(e,i){this.type=e,this.value=i}static parse(e,i){if(e.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Ms(e[1]))return i.error("invalid value");const r=e[1];let a=Zi(r);const h=i.expectedType;return a.kind!=="array"||a.N!==0||!h||h.kind!=="array"||typeof h.N=="number"&&h.N!==0||(a=h),new Eo(a,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Wt?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof Nn?this.value.serialize():this.value}}class Ji{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const Uh={string:$t,number:tt,boolean:Ht,object:Wo};class Vn{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");let r,a=1;const h=e[0];if(h==="array"){let p,_;if(e.length>2){const g=e[1];if(typeof g!="string"||!(g in Uh)||g==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);p=Uh[g],a++}else p=Xt;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return i.error('The length argument to "array" must be a positive integer literal',2);_=e[2],a++}r=Sn(p,_)}else r=Uh[h];const u=[];for(;a<e.length;a++){const p=i.parse(e[a],a,Xt);if(!p)return null;u.push(p)}return new Vn(r,u)}evaluate(e){for(let i=0;i<this.args.length;i++){const r=this.args[i].evaluate(e);if(!al(this.type,Zi(r)))return r;if(i===this.args.length-1)throw new Ji(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${Hi(Zi(r))} but was expected to be of type ${Hi(this.type)}.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,i=[e.kind];if(e.kind==="array"){const r=e.itemType;if(r.kind==="string"||r.kind==="number"||r.kind==="boolean"){i.push(r.kind);const a=e.N;(typeof a=="number"||this.args.length>1)&&i.push(a)}}return i.concat(this.args.map(r=>r.serialize()))}}class xt{constructor(e){this.type=sl,this.sections=e}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[1];if(!Array.isArray(r)&&typeof r=="object")return i.error("First argument must be an image or text section.");const a=[];let h=!1;for(let u=1;u<=e.length-1;++u){const p=e[u];if(h&&typeof p=="object"&&!Array.isArray(p)){h=!1;let _=null;if(p["font-scale"]&&(_=i.parseObjectValue(p["font-scale"],u,"font-scale",tt),!_))return null;let g=null;if(p["text-font"]&&(g=i.parseObjectValue(p["text-font"],u,"text-font",Sn($t)),!g))return null;let v=null;if(p["text-color"]&&(v=i.parseObjectValue(p["text-color"],u,"text-color",An),!v))return null;const b=a[a.length-1];b.scale=_,b.font=g,b.textColor=v}else{const _=i.parse(e[u],u,Xt);if(!_)return null;const g=_.type.kind;if(g!=="string"&&g!=="value"&&g!=="null"&&g!=="resolvedImage")return i.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");h=!0,a.push({content:_,scale:null,font:null,textColor:null})}}return new xt(a)}evaluate(e){return new Nn(this.sections.map(i=>{const r=i.content.evaluate(e);return sc(Zi(r),ea)?new ac("",r,null,null,null):new ac(io(r),null,i.scale?i.scale.evaluate(e):null,i.font?i.font.evaluate(e).join(","):null,i.textColor?i.textColor.evaluate(e):null)}))}eachChild(e){for(const i of this.sections)e(i.content),i.scale&&e(i.scale),i.font&&e(i.font),i.textColor&&e(i.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const i of this.sections){e.push(i.content.serialize());const r={};i.scale&&(r["font-scale"]=i.scale.serialize()),i.font&&(r["text-font"]=i.font.serialize()),i.textColor&&(r["text-color"]=i.textColor.serialize()),e.push(r)}return e}}class rt{constructor(e,i,r,a){this._imageWarnHistory={},this.type=ea,this.namePrimary=e,this.nameSecondary=i,r&&(this.paramsPrimary=r.params,this.iconsetIdPrimary=r.iconset?r.iconset.id:void 0),a&&(this.paramsSecondary=a.params,this.iconsetIdSecondary=a.iconset?a.iconset.id:void 0)}static parse(e,i){if(e.length<2)return i.error("Expected two or more arguments.");let r=1;const a=[];function h(){if(r<e.length){const p=i.parse(e[r],r++,$t);return p?(a.push({image:p,options:{}}),!0):(i.error(a.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function u(){if(r<e.length){const _=e[r];if((p=_)===null||typeof p!="object"||Array.isArray(p))return!0;const g=_.params,v=_.iconset,b=i.concat(r);if(!g&&!v)return r++,!0;if(g){if(typeof g!="object"||g.constructor!==Object)return b.error('Image options "params" should be an object'),!1;const w={},E=b.concat(void 0,"params");for(const I in g){if(!I)return E.error("Image parameter name should be non-empty"),!1;const C=E.concat(void 0,I).parse(g[I],void 0,An,void 0,{typeAnnotation:"coerce"});if(!C)return!1;w[I]=C}a[a.length-1].options.params=w}if(v){if(typeof v!="object"||v.constructor!==Object)return b.error('Image options "iconset" should be an object'),!1;if(!v.id)return b.error('Image options "iconset" should have an "id" property'),!1;a[a.length-1].options.iconset=v}return r++,!0}var p;return!0}for(let p=0;p<2;p++)if(!h()||!u())return;return new rt(a[0].image,a[1]?a[1].image:void 0,a[0].options,a[1]?a[1].options:void 0)}evaluateParams(e,i){const r={};if(i){for(const a in i)if(i[a])try{r[a]=i[a].evaluate(e)}catch{continue}if(Object.keys(r).length!==0)return{params:r}}}evaluate(e){const i={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},r=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,a=yn.build(i,r,this.paramsPrimary?this.evaluateParams(e,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(e,this.paramsSecondary):void 0);if(a&&e.availableImages){const h=a.getPrimary().id;if(a.available=e.availableImages.some(u=>qn.isEqual(u,h)),a.available){const u=a.getSecondary()?a.getSecondary().id:null;u&&(a.available=e.availableImages.some(p=>qn.isEqual(p,u)))}}return a}eachChild(e){if(e(this.namePrimary),this.paramsPrimary)for(const i in this.paramsPrimary)this.paramsPrimary[i]&&e(this.paramsPrimary[i]);if(this.nameSecondary&&(e(this.nameSecondary),this.paramsSecondary))for(const i in this.paramsSecondary)this.paramsSecondary[i]&&e(this.paramsSecondary[i])}outputDefined(){return!1}serializeOptions(e,i){const r={};if(i&&(r.iconset={id:i}),e){r.params={};for(const a in e)e[a]&&(r.params[a]=e[a].serialize())}return Object.keys(r).length>0?r:void 0}serialize(){const e=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const i=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);i&&e.push(i)}if(this.nameSecondary&&(e.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const i=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);i&&e.push(i)}return e}}function ta(n){return cl(n)?"string":ia(n)?"number":ht(n)?"boolean":Array.isArray(n)?"array":n===null?"null":dt(n)?"object":typeof n}function dt(n){return n!=null&&!Array.isArray(n)&&typeof n!="function"&&!(n instanceof String||n instanceof Number||n instanceof Boolean)&&typeof n=="object"}function cl(n){return typeof n=="string"||n instanceof String}function ia(n){return typeof n=="number"||n instanceof Number}function ht(n){return typeof n=="boolean"||n instanceof Boolean}const Kd={"to-boolean":Ht,"to-color":An,"to-number":tt,"to-string":$t};class Vr{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[0],a=[];let h=As;if(r==="to-array"){if(!Array.isArray(e[1]))return null;const u=e[1].length;if(i.expectedType){if(i.expectedType.kind!=="array")return i.error(`Expected ${i.expectedType.kind} but found array.`);h=Sn(i.expectedType.itemType,u)}else{if(!(u>0&&Ms(e[1][0])))return null;h=Sn(Zi(e[1][0]),u)}for(let p=0;p<u;p++){const _=e[1][p];let g;if(Array.isArray(_))g=i.parse(_,void 0,h.itemType);else{const v=ta(_);if(v!==h.itemType.kind)return i.error(`Expected ${h.itemType.kind} but found ${v}.`);g=i.registry.literal.parse(["literal",_===void 0?null:_],i)}if(!g)return null;a.push(g)}}else{if((r==="to-boolean"||r==="to-string")&&e.length!==2)return i.error("Expected one argument.");h=Kd[r];for(let u=1;u<e.length;u++){const p=i.parse(e[u],u,Xt);if(!p)return null;a.push(p)}}return new Vr(h,a)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let i,r;for(const a of this.args){if(i=a.evaluate(e),r=null,i instanceof Wt)return i;if(typeof i=="string"){const h=e.parseColor(i);if(h)return h}else if(Array.isArray(i)&&(r=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:Yd(i[0],i[1],i[2],i[3]),!r))return new Wt(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Ji(r||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const r of this.args){if(i=r.evaluate(e),i===null)return 0;const a=Number(i);if(!isNaN(a))return a}throw new Ji(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?Nn.fromString(io(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?yn.build(io(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(i=>i.evaluate(e)):io(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new xt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new rt(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{e.push(i.serialize())}),e}}const Jd=["Unknown","Point","LineString","Polygon"];class lc{constructor(e,i,r){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=e,this.options=i,this.iconImageUseTheme=r}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Jd[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,i=this.featureDistanceData.scale,{x:r,y:a}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(r*i-e[0])+this.featureDistanceData.bearing[1]*(a*i-e[1])}return 0}parseColor(e){let i=this._parseColorCache[e];return i||(i=this._parseColorCache[e]=Wt.parse(e)),i}getConfig(e){return this.options?this.options.get(e):null}}class Mn{constructor(e,i,r,a,h){this.name=e,this.type=i,this._evaluate=r,this.args=a,this._overloadIndex=h}evaluate(e){if(!this._evaluate){const i=Mn.definitions[this.name];this._evaluate=Array.isArray(i)?i[2]:i.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,i){const r=e[0],a=Mn.definitions[r];if(!a)return i.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);const h=Array.isArray(a)?a[0]:a.type,u=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,p=[];let _=null,g=-1;for(const[v,b]of u){if(Array.isArray(v)&&v.length!==e.length-1)continue;p.push(v),g++,_=new vc(i.registry,i.path,null,i.scope,void 0,i._scope,i.options,i.iconImageUseTheme);const w=[];let E=!1;for(let I=1;I<e.length;I++){const C=e[I],z=Array.isArray(v)?v[I-1]:v.type,R=_.parse(C,1+w.length,z);if(!R){E=!0;break}w.push(R)}if(!E)if(Array.isArray(v)&&v.length!==w.length)_.error(`Expected ${v.length} arguments, but found ${w.length} instead.`);else{for(let I=0;I<w.length;I++){const C=Array.isArray(v)?v[I]:v.type,z=w[I];_.concat(I+1).checkSubtype(C,z.type)}if(_.errors.length===0)return new Mn(r,h,b,w,g)}}if(p.length===1)i.errors.push(..._.errors);else{const v=(p.length?p:u.map(([w])=>w)).map(pm).join(" | "),b=[];for(let w=1;w<e.length;w++){const E=i.parse(e[w],1+b.length);if(!E)return null;b.push(Hi(E.type))}i.error(`Expected arguments of type ${v}, but found (${b.join(", ")}) instead.`)}return null}static register(e,i){Mn.definitions=i;for(const r in i)e[r]=Mn}}function pm(n){return Array.isArray(n)?`(${n.map(Hi).join(", ")})`:`(${Hi(n.type)}...)`}class na{constructor(e,i,r){this.type=rc,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error("Expected one argument.");const r=e[1];if(typeof r!="object"||Array.isArray(r))return i.error("Collator options argument must be an object.");const a=r["case-sensitive"]===void 0?i.parse(!1,1,Ht):i.parseObjectValue(r["case-sensitive"],1,"case-sensitive",Ht);if(!a)return null;const h=r["diacritic-sensitive"]===void 0?i.parse(!1,1,Ht):i.parseObjectValue(r["diacritic-sensitive"],1,"diacritic-sensitive",Ht);if(!h)return null;let u=null;return r.locale&&(u=i.parseObjectValue(r.locale,1,"locale",$t),!u)?null:new na(a,h,u)}evaluate(e){return new Vh(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}function Xo(n,e,i=0,r=n.length-1,a=Yo){for(;r>i;){if(r-i>600){const _=r-i+1,g=e-i+1,v=Math.log(_),b=.5*Math.exp(2*v/3),w=.5*Math.sqrt(v*b*(_-b)/_)*(g-_/2<0?-1:1);Xo(n,e,Math.max(i,Math.floor(e-g*b/_+w)),Math.min(r,Math.floor(e+(_-g)*b/_+w)),a)}const h=n[e];let u=i,p=r;for(Ps(n,i,e),a(n[r],h)>0&&Ps(n,i,r);u<p;){for(Ps(n,u,p),u++,p--;a(n[u],h)<0;)u++;for(;a(n[p],h)>0;)p--}a(n[i],h)===0?Ps(n,i,p):(p++,Ps(n,p,r)),p<=e&&(i=p+1),e<=p&&(r=p-1)}}function Ps(n,e,i){const r=n[e];n[e]=n[i],n[i]=r}function Yo(n,e){return n<e?-1:n>e?1:0}function Ko(n){let e=0;for(let i,r,a=0,h=n.length,u=h-1;a<h;u=a++)i=n[a],r=n[u],e+=(r.x-i.x)*(i.y+r.y);return e}function hl(n,e){n[0]=Math.min(n[0],e[0]),n[1]=Math.min(n[1],e[1]),n[2]=Math.max(n[2],e[0]),n[3]=Math.max(n[3],e[1])}function ul(n,e){return!(n[0]<=e[0]||n[2]>=e[2]||n[1]<=e[1]||n[3]>=e[3])}function fm(n,e,i){const r=n[0]-e[0],a=n[1]-e[1],h=n[0]-i[0],u=n[1]-i[1];return r*u-h*a===0&&r*h<=0&&a*u<=0}function cc(n,e,i){return e[1]>n[1]!=i[1]>n[1]&&n[0]<(i[0]-e[0])*(n[1]-e[1])/(i[1]-e[1])+e[0]}function Cs(n,e,i=!1){let r=!1;for(let a=0,h=e.length;a<h;a++){const u=e[a];for(let p=0,_=u.length,g=_-1;p<_;g=p++){const v=u[g],b=u[p];if(fm(n,v,b))return i;cc(n,v,b)&&(r=!r)}}return r}function Jo(n,e,i,r){const a=r[0]-i[0],h=r[1]-i[1],u=(n[0]-i[0])*h-a*(n[1]-i[1]),p=(e[0]-i[0])*h-a*(e[1]-i[1]);return u>0&&p<0||u<0&&p>0}function hc(n,e,i,r){return(a=[r[0]-i[0],r[1]-i[1]])[0]*(h=[e[0]-n[0],e[1]-n[1]])[1]-a[1]*h[0]!==0&&!(!Jo(n,e,i,r)||!Jo(i,r,n,e));var a,h}function jh(n){const e=new Oe(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new Oe(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const r of n[0])e.x>r.x&&(e.x=r.x),e.y>r.y&&(e.y=r.y),i.x<r.x&&(i.x=r.x),i.y<r.y&&(i.y=r.y);return{min:e,max:i}}const no=8192;function mm(n,e){const i=(180+n[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*no),Math.round(r*a*no)]}function _m(n,e){for(let i=0;i<e.length;i++)if(Cs(n,e[i]))return!0;return!1}function Qd(n,e,i){for(const r of i)for(let a=0,h=r.length,u=h-1;a<h;u=a++)if(hc(n,e,r[u],r[a]))return!0;return!1}function ep(n,e){for(let i=0;i<n.length;++i)if(!Cs(n[i],e))return!1;for(let i=0;i<n.length-1;++i)if(Qd(n[i],n[i+1],e))return!1;return!0}function gm(n,e){for(let i=0;i<e.length;i++)if(ep(n,e[i]))return!0;return!1}function Gh(n,e,i){const r=[];for(let a=0;a<n.length;a++){const h=[];for(let u=0;u<n[a].length;u++){const p=mm(n[a][u],i);hl(e,p),h.push(p)}r.push(h)}return r}function Qo(n,e,i){const r=[];for(let a=0;a<n.length;a++){const h=Gh(n[a],e,i);r.push(h)}return r}function tp(n,e,i,r){if(n[0]<i[0]||n[0]>i[2]){const a=.5*r;let h=n[0]-i[0]>a?-r:i[0]-n[0]>a?r:0;h===0&&(h=n[0]-i[2]>a?-r:i[2]-n[0]>a?r:0),n[0]+=h}hl(e,n)}function ip(n,e,i,r){const a=Math.pow(2,r.z)*no,h=[r.x*no,r.y*no],u=[];if(!n)return u;for(const p of n)for(const _ of p){const g=[_.x+h[0],_.y+h[1]];tp(g,e,i,a),u.push(g)}return u}function uc(n,e,i,r){const a=Math.pow(2,r.z)*no,h=[r.x*no,r.y*no],u=[];if(!n)return u;for(const _ of n){const g=[];for(const v of _){const b=[v.x+h[0],v.y+h[1]];hl(e,b),g.push(b)}u.push(g)}if(e[2]-e[0]<=a/2){(p=e)[0]=p[1]=1/0,p[2]=p[3]=-1/0;for(const _ of u)for(const g of _)tp(g,e,i,a)}var p;return u}class es{constructor(e,i){this.type=Ht,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Ms(e[1])){const r=e[1];if(r.type==="FeatureCollection")for(let a=0;a<r.features.length;++a){const h=r.features[a].geometry.type;if(h==="Polygon"||h==="MultiPolygon")return new es(r,r.features[a].geometry)}else if(r.type==="Feature"){const a=r.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new es(r,r.geometry)}else if(r.type==="Polygon"||r.type==="MultiPolygon")return new es(r,r)}return i.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],h=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(!u)return!1;if(r.type==="Polygon"){const p=Gh(r.coordinates,h,u),_=ip(i.geometry(),a,h,u);if(!ul(a,h))return!1;for(const g of _)if(!Cs(g,p))return!1}if(r.type==="MultiPolygon"){const p=Qo(r.coordinates,h,u),_=ip(i.geometry(),a,h,u);if(!ul(a,h))return!1;for(const g of _)if(!_m(g,p))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],h=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(!u)return!1;if(r.type==="Polygon"){const p=Gh(r.coordinates,h,u),_=uc(i.geometry(),a,h,u);if(!ul(a,h))return!1;for(const g of _)if(!ep(g,p))return!1}if(r.type==="MultiPolygon"){const p=Qo(r.coordinates,h,u),_=uc(i.geometry(),a,h,u);if(!ul(a,h))return!1;for(const g of _)if(!gm(g,p))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const dl={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},Er=1/298.257223563,qh=Er*(2-Er),ra=Math.PI/180;class oa{static fromTile(e,i,r){const a=Math.PI*(1-2*(e+.5)/Math.pow(2,i)),h=Math.atan(.5*(Math.exp(a)-Math.exp(-a)))/ra;return new oa(h,r)}static get units(){return dl}constructor(e,i){if(e===void 0)throw new Error("No latitude given.");if(i&&!dl[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(dl).join(", ")}`);const r=6378.137*ra*(i?dl[i]:1),a=Math.cos(e*ra),h=1/(1-qh*(1-a*a)),u=Math.sqrt(h);this.kx=r*u*a,this.ky=r*u*h*(1-qh)}distance(e,i){const r=_r(e[0]-i[0])*this.kx,a=(e[1]-i[1])*this.ky;return Math.sqrt(r*r+a*a)}bearing(e,i){const r=_r(i[0]-e[0])*this.kx;return Math.atan2(r,(i[1]-e[1])*this.ky)/ra}destination(e,i,r){const a=r*ra;return this.offset(e,Math.sin(a)*i,Math.cos(a)*i)}offset(e,i,r){return[e[0]+i/this.kx,e[1]+r/this.ky]}lineDistance(e){let i=0;for(let r=0;r<e.length-1;r++)i+=this.distance(e[r],e[r+1]);return i}area(e){let i=0;for(let r=0;r<e.length;r++){const a=e[r];for(let h=0,u=a.length,p=u-1;h<u;p=h++)i+=_r(a[h][0]-a[p][0])*(a[h][1]+a[p][1])*(r?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(e,i){let r=0;if(i<=0)return e[0];for(let a=0;a<e.length-1;a++){const h=e[a],u=e[a+1],p=this.distance(h,u);if(r+=p,r>i)return dc(h,u,(i-(r-p))/p)}return e[e.length-1]}pointToSegmentDistance(e,i,r){let[a,h]=i,u=_r(r[0]-a)*this.kx,p=(r[1]-h)*this.ky;if(u!==0||p!==0){const _=(_r(e[0]-a)*this.kx*u+(e[1]-h)*this.ky*p)/(u*u+p*p);_>1?(a=r[0],h=r[1]):_>0&&(a+=u/this.kx*_,h+=p/this.ky*_)}return u=_r(e[0]-a)*this.kx,p=(e[1]-h)*this.ky,Math.sqrt(u*u+p*p)}pointOnLine(e,i){let r=1/0,a=e[0][0],h=e[0][1],u=0,p=0;for(let _=0;_<e.length-1;_++){let g=e[_][0],v=e[_][1],b=_r(e[_+1][0]-g)*this.kx,w=(e[_+1][1]-v)*this.ky,E=0;b===0&&w===0||(E=(_r(i[0]-g)*this.kx*b+(i[1]-v)*this.ky*w)/(b*b+w*w),E>1?(g=e[_+1][0],v=e[_+1][1]):E>0&&(g+=b/this.kx*E,v+=w/this.ky*E)),b=_r(i[0]-g)*this.kx,w=(i[1]-v)*this.ky;const I=b*b+w*w;I<r&&(r=I,a=g,h=v,u=_,p=E)}return{point:[a,h],index:u,t:Math.max(0,Math.min(1,p))}}lineSlice(e,i,r){let a=this.pointOnLine(r,e),h=this.pointOnLine(r,i);if(a.index>h.index||a.index===h.index&&a.t>h.t){const g=a;a=h,h=g}const u=[a.point],p=a.index+1,_=h.index;!$h(r[p],u[0])&&p<=_&&u.push(r[p]);for(let g=p+1;g<=_;g++)u.push(r[g]);return $h(r[_],h.point)||u.push(h.point),u}lineSliceAlong(e,i,r){let a=0;const h=[];for(let u=0;u<r.length-1;u++){const p=r[u],_=r[u+1],g=this.distance(p,_);if(a+=g,a>e&&h.length===0&&h.push(dc(p,_,(e-(a-g))/g)),a>=i)return h.push(dc(p,_,(i-(a-g))/g)),h;a>e&&h.push(_)}return h}bufferPoint(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[0]+a,e[1]+r]}bufferBBox(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[2]+a,e[3]+r]}insideBBox(e,i){return _r(e[0]-i[0])>=0&&_r(e[0]-i[2])<=0&&e[1]>=i[1]&&e[1]<=i[3]}}function $h(n,e){return n[0]===e[0]&&n[1]===e[1]}function dc(n,e,i){const r=_r(e[0]-n[0]);return[n[0]+r*i,n[1]+(e[1]-n[1])*i]}function _r(n){for(;n<-180;)n+=360;for(;n>180;)n-=360;return n}class pl{constructor(e=[],i=(r,a)=>r<a?-1:r>a?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;const e=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:i,compare:r}=this,a=i[e];for(;e>0;){const h=e-1>>1,u=i[h];if(r(a,u)>=0)break;i[e]=u,e=h}i[e]=a}_down(e){const{data:i,compare:r}=this,a=this.length>>1,h=i[e];for(;e<a;){let u=1+(e<<1);const p=u+1;if(p<this.length&&r(i[p],i[u])<0&&(u=p),r(i[u],h)>=0)break;i[e]=i[u],e=u}i[e]=h}}var $e=8192;function Hh(n,e){return e.dist-n.dist}function Zh(n){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}function fl(n){return n[1]-n[0]+1}function ro(n,e){const i=n[1]>=n[0]&&n[1]<e;return i||console.warn("Distance Expression: Index is out of range"),i}function pc(n,e){if(n[0]>n[1])return[null,null];const i=fl(n);if(e){if(i===2)return[n,null];const r=Math.floor(i/2);return[[n[0],n[0]+r],[n[0]+r,n[1]]]}{if(i===1)return[n,null];const r=Math.floor(i/2)-1;return[[n[0],n[0]+r],[n[0]+r+1,n[1]]]}}function Rs(n,e){const i=[1/0,1/0,-1/0,-1/0];if(!ro(e,n.length))return i;for(let r=e[0];r<=e[1];++r)hl(i,n[r]);return i}function fc(n){const e=[1/0,1/0,-1/0,-1/0];for(let i=0;i<n.length;++i)for(let r=0;r<n[i].length;++r)hl(e,n[i][r]);return e}function Io(n,e,i){if(Zh(n)||Zh(e))return NaN;let r=0,a=0;return n[2]<e[0]&&(r=e[0]-n[2]),n[0]>e[2]&&(r=n[0]-e[2]),n[1]>e[3]&&(a=n[1]-e[3]),n[3]<e[1]&&(a=e[1]-n[3]),i.distance([0,0],[r,a])}function Wh(n){return 360*n-180}function mc(n){return 360/Math.PI*Math.atan(Math.exp((180-360*n)*Math.PI/180))-90}function ml(n,e,i=8192){const r=Math.pow(2,e.z),a=(n.y/i+e.y)/r;return[Wh((n.x/i+e.x)/r),mc(a)]}function np(n,e){const i=[];for(let r=0;r<n.length;++r)i.push(ml(n[r],e));return i}function rp(n,e,i){const r=i.pointOnLine(e,n).point;return i.distance(n,r)}function op(n,e,i,r,a){const h=i.slice(r[0],r[1]+1);let u=1/0;for(let p=e[0];p<=e[1];++p)if((u=Math.min(u,rp(n[p],h,a)))===0)return 0;return u}function _c(n,e,i,r,a){const h=Math.min(a.pointToSegmentDistance(n,i,r),a.pointToSegmentDistance(e,i,r)),u=Math.min(a.pointToSegmentDistance(i,n,e),a.pointToSegmentDistance(r,n,e));return Math.min(h,u)}function sa(n,e,i,r,a){if(!ro(e,n.length)||!ro(r,i.length))return NaN;let h=1/0;for(let u=e[0];u<e[1];++u)for(let p=r[0];p<r[1];++p){if(hc(n[u],n[u+1],i[p],i[p+1]))return 0;h=Math.min(h,_c(n[u],n[u+1],i[p],i[p+1],a))}return h}function Lt(n,e,i,r,a){if(!ro(e,n.length)||!ro(r,i.length))return NaN;let h=1/0;for(let u=e[0];u<=e[1];++u)for(let p=r[0];p<=r[1];++p)if((h=Math.min(h,a.distance(n[u],i[p])))===0)return h;return h}function ym(n,e,i){if(Cs(n,e,!0))return 0;let r=1/0;for(const a of e){const h=a.length;if(h<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(a[0]!==a[h-1]&&(r=Math.min(r,i.pointToSegmentDistance(n,a[h-1],a[0])))===0||(r=Math.min(r,rp(n,a,i)))===0)return r}return r}function xm(n,e,i,r){if(!ro(e,n.length))return NaN;for(let h=e[0];h<=e[1];++h)if(Cs(n[h],i,!0))return 0;let a=1/0;for(let h=e[0];h<e[1];++h)for(const u of i)for(let p=0,_=u.length,g=_-1;p<_;g=p++){if(hc(n[h],n[h+1],u[g],u[p]))return 0;a=Math.min(a,_c(n[h],n[h+1],u[g],u[p],r))}return a}function sp(n,e){for(const i of n)for(let r=0;r<=i.length-1;++r)if(Cs(i[r],e,!0))return!0;return!1}function ap(n,e,i,r=1/0){const a=fc(n),h=fc(e);if(r!==1/0&&Io(a,h,i)>=r)return r;if(ul(a,h)){if(sp(n,e))return 0}else if(sp(e,n))return 0;let u=r;for(const p of n)for(let _=0,g=p.length,v=g-1;_<g;v=_++)for(const b of e)for(let w=0,E=b.length,I=E-1;w<E;I=w++){if(hc(p[v],p[_],b[I],b[w]))return 0;u=Math.min(u,_c(p[v],p[_],b[I],b[w],i))}return u}function gc(n,e,i,r,a,h,u){if(h===null||u===null)return;const p=Io(Rs(r,h),Rs(a,u),i);p<e&&n.push({dist:p,range1:h,range2:u})}function wi(n,e,i,r,a=1/0){let h=Math.min(r.distance(n[0],i[0][0]),a);if(h===0)return h;const u=new pl([{dist:0,range1:[0,n.length-1],range2:[0,0]}],Hh),p=e?50:100,_=fc(i);for(;u.length;){const g=u.pop();if(g.dist>=h)continue;const v=g.range1;if(fl(v)<=p){if(!ro(v,n.length))return NaN;if(e){const b=xm(n,v,i,r);if((h=Math.min(h,b))===0)return h}else for(let b=v[0];b<=v[1];++b){const w=ym(n[b],i,r);if((h=Math.min(h,w))===0)return h}}else{const b=pc(v,e);if(b[0]!==null){const w=Io(Rs(n,b[0]),_,r);w<h&&u.push({dist:w,range1:b[0],range2:[0,0]})}if(b[1]!==null){const w=Io(Rs(n,b[1]),_,r);w<h&&u.push({dist:w,range1:b[1],range2:[0,0]})}}}return h}function lp(n,e,i,r,a,h=1/0){let u=Math.min(h,a.distance(n[0],i[0]));if(u===0)return u;const p=new pl([{dist:0,range1:[0,n.length-1],range2:[0,i.length-1]}],Hh),_=e?50:100,g=r?50:100;for(;p.length;){const v=p.pop();if(v.dist>=u)continue;const b=v.range1,w=v.range2;if(fl(b)<=_&&fl(w)<=g){if(!ro(b,n.length)||!ro(w,i.length))return NaN;if(e&&r?u=Math.min(u,sa(n,b,i,w,a)):e||r?e&&!r?u=Math.min(u,op(i,w,n,b,a)):!e&&r&&(u=Math.min(u,op(n,b,i,w,a))):u=Math.min(u,Lt(n,b,i,w,a)),u===0)return u}else{const E=pc(b,e),I=pc(w,r);gc(p,u,a,n,i,E[0],I[0]),gc(p,u,a,n,i,E[0],I[1]),gc(p,u,a,n,i,E[1],I[0]),gc(p,u,a,n,i,E[1],I[1])}}return u}function Xh(n,e,i,r,a=1/0){let h=a;const u=Rs(n,[0,n.length-1]);for(const p of i)if(!(h!==1/0&&Io(u,Rs(p,[0,p.length-1]),r)>=h)&&(h=Math.min(h,lp(n,e,p,!0,r,h)),h===0))return h;return h}function yc(n,e,i,r,a=1/0){let h=a;const u=Rs(n,[0,n.length-1]);for(const p of i){if(h!==1/0&&Io(u,fc(p),r)>=h)continue;const _=wi(n,e,p,r,h);if(isNaN(_))return _;if((h=Math.min(h,_))===0)return h}return h}function Yh(n){return n==="Point"||n==="MultiPoint"||n==="LineString"||n==="MultiLineString"||n==="Polygon"||n==="MultiPolygon"}class Ds{constructor(e,i){this.type=tt,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(Ms(e[1])){const r=e[1];if(r.type==="FeatureCollection"){for(let a=0;a<r.features.length;++a)if(Yh(r.features[a].geometry.type))return new Ds(r,r.features[a].geometry)}else if(r.type==="Feature"){if(Yh(r.geometry.type))return new Ds(r,r.geometry)}else if(Yh(r.type))return new Ds(r,r)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const i=e.geometry(),r=e.canonicalID();if(i!=null&&r!=null){if(e.geometryType()==="Point")return function(a,h,u){const p=[];for(const g of a)for(const v of g)p.push(ml(v,h));const _=new oa(p[0][1],"meters");return u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString"?lp(p,!1,u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",_):u.type==="MultiLineString"?Xh(p,!1,u.coordinates,_):u.type==="Polygon"||u.type==="MultiPolygon"?yc(p,!1,u.type==="Polygon"?[u.coordinates]:u.coordinates,_):null}(i,r,this.geometries);if(e.geometryType()==="LineString")return function(a,h,u){const p=[];for(const g of a){const v=[];for(const b of g)v.push(ml(b,h));p.push(v)}const _=new oa(p[0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return Xh(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",p,_);if(u.type==="MultiLineString"){let g=1/0;for(let v=0;v<u.coordinates.length;v++){const b=Xh(u.coordinates[v],!0,p,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}if(u.type==="Polygon"||u.type==="MultiPolygon"){let g=1/0;for(let v=0;v<p.length;v++){const b=yc(p[v],!0,u.type==="Polygon"?[u.coordinates]:u.coordinates,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}return null}(i,r,this.geometries);if(e.geometryType()==="Polygon")return function(a,h,u){const p=[];for(const g of function(v){const b=v.length;if(b<=1)return[v];const w=[];let E,I;for(let C=0;C<b;C++){const z=Ko(v[C]);z!==0&&(v[C].area=Math.abs(z),I===void 0&&(I=z<0),I===z<0?(E&&w.push(E),E=[v[C]]):E.push(v[C]))}return E&&w.push(E),w}(a)){const v=[];for(let b=0;b<g.length;++b)v.push(np(g[b],h));p.push(v)}const _=new oa(p[0][0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return yc(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",p,_);if(u.type==="MultiLineString"){let g=1/0;for(let v=0;v<u.coordinates.length;v++){const b=yc(u.coordinates[v],!0,p,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}return u.type==="Polygon"||u.type==="MultiPolygon"?function(g,v,b){let w=1/0;for(const E of g)for(const I of v){const C=ap(E,I,b,w);if(isNaN(C))return C;if((w=Math.min(w,C))===0)return w}return w}(u.type==="Polygon"?[u.coordinates]:u.coordinates,p,_):null}(i,r,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requires valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function aa(n){if(n instanceof Mn&&(n.name==="get"&&n.args.length===1||n.name==="feature-state"||n.name==="has"&&n.args.length===1||n.name==="properties"||n.name==="geometry-type"||n.name==="id"||/^filter-/.test(n.name))||n instanceof es||n instanceof Ds)return!1;if(n instanceof ca)return n.featureConstant;let e=!0;return n.eachChild(i=>{e&&!aa(i)&&(e=!1)}),e}function _l(n){if(n instanceof Mn&&n.name==="feature-state")return!1;let e=!0;return n.eachChild(i=>{e&&!_l(i)&&(e=!1)}),e}function la(n,e){if(n instanceof Mn&&e.indexOf(n.name)>=0)return!1;let i=!0;return n.eachChild(r=>{i&&!la(r,e)&&(i=!1)}),i}function cp(n,e,i){return[n,e,i].filter(Boolean).join("")}function Kh(n,e){switch(n){case"string":return io(e);case"number":return+e;case"boolean":return!!e;case"color":return Wt.parse(e);case"formatted":return Nn.fromString(io(e));case"resolvedImage":return yn.build(io(e))}return e}function hp(n,e,i,r){return r!==void 0&&(n=r*Math.round(n/r)),e!==void 0&&n<e&&(n=e),i!==void 0&&n>i&&(n=i),n}class ca{constructor(e,i,r,a=!1){this.type=e,this.key=i,this.scope=r,this.featureConstant=a}static parse(e,i){let r=i.expectedType;if(r==null&&(r=Xt),e.length<2||e.length>3)return i.error("Invalid number of arguments for 'config' expression.");const a=i.parse(e[1],1);if(!(a instanceof Eo))return i.error("Key name of 'config' expression must be a string literal.");let h,u=!0;const p=io(a.value);if(e.length>=3){const _=i.parse(e[2],2);if(!(_ instanceof Eo))return i.error("Scope of 'config' expression must be a string literal.");h=io(_.value)}if(i.options){const _=cp(p,h,i._scope),g=i.options.get(_);g&&(u=aa(g.value||g.default))}return new ca(r,p,h,u)}evaluate(e){const i=cp(this.key,this.scope,e.scope),r=e.getConfig(i);if(!r)return null;const{type:a,value:h,values:u,minValue:p,maxValue:_,stepValue:g}=r,v=r.default.evaluate(e);let b=v;if(h){const w=e.scope;e.scope=(w||"").split("").slice(1).join(""),b=h.evaluate(e),e.scope=w}return a&&(b=Kh(a,b)),b===void 0||p===void 0&&_===void 0&&g===void 0||(typeof b=="number"?b=hp(b,p,_,g):Array.isArray(b)&&(b=b.map(w=>typeof w=="number"?hp(w,p,_,g):w))),h!==void 0&&b!==void 0&&u&&!u.includes(b)&&(b=v,a&&(b=Kh(a,b))),(a&&a!==this.type||b!==void 0&&!sc(Zi(b),this.type))&&(b=Kh(this.type.kind,b)),b}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.scope),e}}class xc{constructor(e,i){this.type=i.type,this.name=e,this.boundExpression=i}static parse(e,i){if(e.length!==2||typeof e[1]!="string")return i.error("'var' expression requires exactly one string literal argument.");const r=e[1];return i.scope.has(r)?new xc(r,i.scope.get(r)):i.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class vc{constructor(e,i=[],r,a=new Zo,h=[],u,p,_){this.registry=e,this.path=i,this.key=i.map(g=>typeof g=="string"?`['${g}']`:`[${g}]`).join(""),this.scope=a,this.errors=h,this.expectedType=r,this._scope=u,this.options=p,this.iconImageUseTheme=_}parse(e,i,r,a,h={}){return i||r?this.concat(i,null,r,a)._parse(e,h):this._parse(e,h)}parseObjectValue(e,i,r,a,h,u={}){return this.concat(i,r,a,h)._parse(e,u)}_parse(e,i){function r(a,h,u){return u==="assert"?new Vn(h,[a]):u==="coerce"?new Vr(h,[a]):a}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const a=typeof e[0]=="string"?this.registry[e[0]]:void 0;if(a){let h=a.parse(e,this);if(!h)return null;if(this.expectedType){const u=this.expectedType,p=h.type;if(u.kind!=="string"&&u.kind!=="number"&&u.kind!=="boolean"&&u.kind!=="object"&&u.kind!=="array"||p.kind!=="value")if(u.kind!=="color"&&u.kind!=="formatted"&&u.kind!=="resolvedImage"||p.kind!=="value"&&p.kind!=="string"){if(this.checkSubtype(u,p))return null}else h=r(h,u,i.typeAnnotation||"coerce");else h=r(h,u,i.typeAnnotation||"assert")}if(!(h instanceof Eo)&&h.type.kind!=="resolvedImage"&&Jh(h)){const u=new lc(this._scope,this.options,this.iconImageUseTheme);try{h=new Eo(h.type,h.evaluate(u))}catch(p){return this.error(p.message),null}}return h}return Vr.parse(["to-array",e],this)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,i,r,a){let h=typeof e=="number"?this.path.concat(e):this.path;h=typeof i=="string"?h.concat(i):h;const u=a?this.scope.concat(a):this.scope;return new vc(this.registry,h,r||null,u,this.errors,this._scope,this.options,this.iconImageUseTheme)}error(e,...i){const r=`${this.key}${i.map(a=>`[${a}]`).join("")}`;this.errors.push(new nr(r,e))}checkSubtype(e,i){const r=al(e,i);return r&&this.error(r),r}}function Jh(n){if(n instanceof xc)return Jh(n.boundExpression);if(n instanceof Mn&&n.name==="error"||n instanceof na||n instanceof es||n instanceof Ds||n instanceof ca)return!1;const e=n instanceof Vr||n instanceof Vn;let i=!0;return n.eachChild(r=>{i=e?i&&Jh(r):i&&r instanceof Eo}),!!i&&aa(n)&&la(n,["zoom","heatmap-density","worldview","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed","is-active-floor"])}function bc(n,e){const i=n.length-1;let r,a,h=0,u=i,p=0;for(;h<=u;)if(p=Math.floor((h+u)/2),r=n[p],a=n[p+1],r<=e){if(p===i||e<a)return p;h=p+1}else{if(!(r>e))throw new Ji("Input is not a number.");u=p-1}return 0}class gl{constructor(e,i,r){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(const[a,h]of r)this.labels.push(a),this.outputs.push(h)}static parse(e,i){if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error("Expected an even number of arguments.");const r=i.parse(e[1],1,tt);if(!r)return null;const a=[];let h=null;i.expectedType&&i.expectedType.kind!=="value"&&(h=i.expectedType);for(let u=1;u<e.length;u+=2){const p=u===1?-1/0:e[u],_=e[u+1],g=u,v=u+1;if(typeof p!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',g);if(a.length&&a[a.length-1][0]>=p)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',g);const b=i.parse(_,v,h);if(!b)return null;h=h||b.type,a.push([p,b])}return new gl(h,r,a)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const h=i.length;return a>=i[h-1]?r[h-1].evaluate(e):r[bc(i,a)].evaluate(e)}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let i=0;i<this.labels.length;i++)i>0&&e.push(this.labels[i]),e.push(this.outputs[i].serialize());return e}}const up=.95047,dp=1.08883,pp=4/29,ha=6/29,fp=3*ha*ha,vm=ha*ha*ha,bm=Math.PI/180,wm=180/Math.PI;function Qh(n){return n>vm?Math.pow(n,1/3):n/fp+pp}function eu(n){return n>ha?n*n*n:fp*(n-pp)}function tu(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function iu(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function mp(n){const e=iu(n.r),i=iu(n.g),r=iu(n.b),a=Qh((.4124564*e+.3575761*i+.1804375*r)/up),h=Qh((.2126729*e+.7151522*i+.072175*r)/1);return{l:116*h-16,a:500*(a-h),b:200*(h-Qh((.0193339*e+.119192*i+.9503041*r)/dp)),alpha:n.a}}function _p(n){let e=(n.l+16)/116,i=isNaN(n.a)?e:e+n.a/500,r=isNaN(n.b)?e:e-n.b/200;return e=1*eu(e),i=up*eu(i),r=dp*eu(r),new Wt(tu(3.2404542*i-1.5371385*e-.4985314*r),tu(-.969266*i+1.8760108*e+.041556*r),tu(.0556434*i-.2040259*e+1.0572252*r),n.alpha)}function nu(n,e,i){const r=e-n;return n+i*(r>180||r<-180?r-360*Math.round(r/360):r)}const ts={forward:mp,reverse:_p,interpolate:function(n,e,i){return{l:ut(n.l,e.l,i),a:ut(n.a,e.a,i),b:ut(n.b,e.b,i),alpha:ut(n.alpha,e.alpha,i)}}},ua={forward:function(n){const{l:e,a:i,b:r}=mp(n),a=Math.atan2(r,i)*wm;return{h:a<0?a+360:a,c:Math.sqrt(i*i+r*r),l:e,alpha:n.a}},reverse:function(n){const e=n.h*bm,i=n.c;return _p({l:n.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:n.alpha})},interpolate:function(n,e,i){return{h:nu(n.h,e.h,i),c:ut(n.c,e.c,i),l:ut(n.l,e.l,i),alpha:ut(n.alpha,e.alpha,i)}}};var gp=Object.freeze({__proto__:null,hcl:ua,lab:ts});class gr{constructor(e,i,r,a,h){this.type=e,this.operator=i,this.interpolation=r,this.input=a,this.labels=[],this.outputs=[];for(const[u,p]of h)this.labels.push(u),this.outputs.push(p)}static interpolationFactor(e,i,r,a){let h=0;if(e.name==="exponential")h=ru(i,e.base,r,a);else if(e.name==="linear")h=ru(i,1,r,a);else if(e.name==="cubic-bezier"){const u=e.controlPoints;h=new Js(u[0],u[1],u[2],u[3]).solve(ru(i,1,r,a))}return h}static parse(e,i){let[r,a,h,...u]=e;if(!Array.isArray(a)||a.length===0)return i.error("Expected an interpolation type expression.",1);if(a[0]==="linear")a={name:"linear"};else if(a[0]==="exponential"){const g=a[1];if(typeof g!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:g}}else{if(a[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const g=a.slice(1);if(g.length!==4||g.some(v=>typeof v!="number"||v<0||v>1))return i.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:g}}}if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length-1>3&&(e.length-1)%2!=0)return i.error("Expected an even number of arguments.");if(h=i.parse(h,2,tt),!h)return null;const p=[];let _=null;r==="interpolate-hcl"||r==="interpolate-lab"?_=An:i.expectedType&&i.expectedType.kind!=="value"&&(_=i.expectedType);for(let g=0;g<u.length;g+=2){const v=u[g],b=u[g+1],w=g+3,E=g+4;if(typeof v!="number")return i.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',w);if(p.length&&p[p.length-1][0]>=v)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',w);const I=i.parse(b,E,_);if(!I)return null;_=_||I.type,p.push([v,I])}return _.kind==="number"||_.kind==="color"||_.kind==="array"&&_.itemType.kind==="number"&&typeof _.N=="number"?new gr(_,r,a,h,p):i.error(`Type ${Hi(_)} is not interpolatable.`)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const h=i.length;if(a>=i[h-1])return r[h-1].evaluate(e);const u=bc(i,a),p=gr.interpolationFactor(this.interpolation,a,i[u],i[u+1]),_=r[u].evaluate(e),g=r[u+1].evaluate(e);return this.operator==="interpolate"?ol[this.type.kind.toLowerCase()](_,g,p):this.operator==="interpolate-hcl"?ua.reverse(ua.interpolate(ua.forward(_),ua.forward(g),p)):ts.reverse(ts.interpolate(ts.forward(_),ts.forward(g),p))}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier",...this.interpolation.controlPoints];const i=[this.operator,e,this.input.serialize()];for(let r=0;r<this.labels.length;r++)i.push(this.labels[r],this.outputs[r].serialize());return i}}function ru(n,e,i,r){const a=r-i,h=n-i;return a===0?0:e===1?h/a:(Math.pow(e,h)-1)/(Math.pow(e,a)-1)}class yl{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expectected at least one argument.");let r=null;const a=i.expectedType;a&&a.kind!=="value"&&(r=a);const h=[];for(const p of e.slice(1)){const _=i.parse(p,1+h.length,r,void 0,{typeAnnotation:"omit"});if(!_)return null;r=r||_.type,h.push(_)}const u=a&&h.some(p=>al(a,p.type));return new yl(u?Xt:r,h)}evaluate(e){let i,r=null,a=0;for(const h of this.args){if(a++,r=h.evaluate(e),r&&r instanceof yn&&!r.available&&(i||(i=r),r=null,a===this.args.length))return i;if(r!==null)break}return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class xl{constructor(e,i){this.type=i.type,this.bindings=[].concat(e),this.result=i}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const i of this.bindings)e(i[1]);e(this.result)}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const r=[];for(let h=1;h<e.length-1;h+=2){const u=e[h];if(typeof u!="string")return i.error(`Expected string, but found ${typeof u} instead.`,h);if(/[^a-zA-Z0-9_]/.test(u))return i.error("Variable names must contain only alphanumeric characters or '_'.",h);const p=i.parse(e[h+1],h+1);if(!p)return null;r.push([u,p])}const a=i.parse(e[e.length-1],e.length-1,i.expectedType,r);return a?new xl(r,a):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[i,r]of this.bindings)e.push(i,r.serialize());return e.push(this.result.serialize()),e}}class is{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,tt),a=i.parse(e[2],2,Sn(i.expectedType||Xt));return r&&a?new is(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Ji("Array index out of bounds: negative index");if(i>=r.length)throw new Ji("Array index out of bounds: index exceeds array size");if(i!==Math.floor(i))throw new Ji("Array index must be an integer. Use at-interpolated for fractional indices");return r[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class wc{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,tt),a=i.parse(e[2],2,Sn(i.expectedType||Xt));return r&&a?new wc(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Ji(`Array index out of bounds: ${i} < 0.`);if(i>r.length-1)throw new Ji(`Array index out of bounds: ${i} > ${r.length-1}.`);if(i===Math.floor(i))return r[i];const a=Math.floor(i),h=Math.ceil(i),u=r[a],p=r[h];if(typeof u!="number"||typeof p!="number")throw new Ji(`Cannot interpolate between non-number values at index ${i}.`);const _=i-a;return u*(1-_)+p*_}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Tc{constructor(e,i){this.type=Ht,this.needle=e,this.haystack=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Xt),a=i.parse(e[2],2,Xt);return r&&a?Nh(r.type,[Ht,$t,tt,As,Xt])?new Tc(r,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Hi(r.type)} instead`):null}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(r==null)return!1;if(!ll(i,["boolean","string","number","null"]))throw new Ji(`Expected first argument to be of type boolean, string, number or null, but found ${Hi(Zi(i))} instead.`);if(!ll(r,["string","array"]))throw new Ji(`Expected second argument to be of type array or string, but found ${Hi(Zi(r))} instead.`);return r.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Sc{constructor(e,i,r){this.type=tt,this.needle=e,this.haystack=i,this.fromIndex=r}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Xt),a=i.parse(e[2],2,Xt);if(!r||!a)return null;if(!Nh(r.type,[Ht,$t,tt,As,Xt]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Hi(r.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,tt);return h?new Sc(r,a,h):null}return new Sc(r,a)}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!ll(i,["boolean","string","number","null"]))throw new Ji(`Expected first argument to be of type boolean, string, number or null, but found ${Hi(Zi(i))} instead.`);if(!ll(r,["string","array"]))throw new Ji(`Expected second argument to be of type array or string, but found ${Hi(Zi(r))} instead.`);if(this.fromIndex){const a=this.fromIndex.evaluate(e);return r.indexOf(i,a)}return r.indexOf(i)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class vl{constructor(e,i,r,a,h,u){this.inputType=e,this.type=i,this.input=r,this.cases=a,this.outputs=h,this.otherwise=u}static parse(e,i){if(e.length<5)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return i.error("Expected an even number of arguments.");let r,a;i.expectedType&&i.expectedType.kind!=="value"&&(a=i.expectedType);const h={},u=[];for(let g=2;g<e.length-1;g+=2){let v=e[g];const b=e[g+1];Array.isArray(v)||(v=[v]);const w=i.concat(g);if(v.length===0)return w.error("Expected at least one branch label.");for(const I of v){if(typeof I!="number"&&typeof I!="string")return w.error("Branch labels must be numbers or strings.");if(typeof I=="number"&&Math.abs(I)>Number.MAX_SAFE_INTEGER)return w.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof I=="number"&&Math.floor(I)!==I)return w.error("Numeric branch labels must be integer values.");if(r){if(w.checkSubtype(r,Zi(I)))return null}else r=Zi(I);if(h[String(I)]!==void 0)return w.error("Branch labels must be unique.");h[String(I)]=u.length}const E=i.parse(b,g,a);if(!E)return null;a=a||E.type,u.push(E)}const p=i.parse(e[1],1,Xt);if(!p)return null;const _=i.parse(e[e.length-1],e.length-1,a);return _?p.type.kind!=="value"&&i.concat(1).checkSubtype(r,p.type)?null:new vl(r,a,p,h,u,_):null}evaluate(e){const i=this.input.evaluate(e);return(sc(Zi(i),this.inputType)&&this.outputs[this.cases[i]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],i=Object.keys(this.cases).sort(),r=[],a={};for(const u of i){const p=a[this.cases[u]];p===void 0?(a[this.cases[u]]=r.length,r.push([this.cases[u],[u]])):r[p][1].push(u)}const h=u=>this.inputType.kind==="number"?Number(u):u;for(const[u,p]of r)e.push(p.length===1?h(p[0]):p.map(h)),e.push(this.outputs[u].serialize());return e.push(this.otherwise.serialize()),e}}class bl{constructor(e,i,r){this.type=e,this.branches=i,this.otherwise=r}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return i.error("Expected an odd number of arguments.");let r;i.expectedType&&i.expectedType.kind!=="value"&&(r=i.expectedType);const a=[];for(let u=1;u<e.length-1;u+=2){const p=i.parse(e[u],u,Ht);if(!p)return null;const _=i.parse(e[u+1],u+1,r);if(!_)return null;a.push([p,_]),r=r||_.type}const h=i.parse(e[e.length-1],e.length-1,r);return h?new bl(r,a,h):null}evaluate(e){for(const[i,r]of this.branches)if(i.evaluate(e))return r.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[i,r]of this.branches)e(i),e(r);e(this.otherwise)}outputDefined(){return this.branches.every(([e,i])=>i.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class da{constructor(e,i,r,a){this.type=e,this.input=i,this.beginIndex=r,this.endIndex=a}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Xt),a=i.parse(e[2],2,tt);if(!r||!a)return null;if(!Nh(r.type,[Sn(Xt),$t,Xt]))return i.error(`Expected first argument to be of type array or string, but found ${Hi(r.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,tt);return h?new da(r.type,r,a,h):null}return new da(r.type,r,a)}evaluate(e){const i=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(!ll(i,["string","array"]))throw new Ji(`Expected first argument to be of type array or string, but found ${Hi(Zi(i))} instead.`);if(this.endIndex){const a=this.endIndex.evaluate(e);return i.slice(r,a)}return i.slice(r)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}class ou{constructor(e,i){this.type=Sn($t),this.str=e,this.delimiter=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,$t),a=i.parse(e[2],2,$t);return r&&a?new ou(r,a):void 0}evaluate(e){const i=this.str.evaluate(e),r=this.delimiter.evaluate(e);return i.split(r)}eachChild(e){e(this.str),e(this.delimiter)}outputDefined(){return!1}serialize(){return["split",this.str.serialize(),this.delimiter.serialize()]}}function yp(n,e){return n==="=="||n==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function su(n,e,i,r){return r.compare(e,i)===0}function zs(n,e,i){const r=n!=="=="&&n!=="!=";return class Dv{constructor(h,u,p){this.type=Ht,this.lhs=h,this.rhs=u,this.collator=p,this.hasUntypedArgument=h.type.kind==="value"||u.type.kind==="value"}static parse(h,u){if(h.length!==3&&h.length!==4)return u.error("Expected two or three arguments.");const p=h[0];let _=u.parse(h[1],1,Xt);if(!_)return null;if(!yp(p,_.type))return u.concat(1).error(`"${p}" comparisons are not supported for type '${Hi(_.type)}'.`);let g=u.parse(h[2],2,Xt);if(!g)return null;if(!yp(p,g.type))return u.concat(2).error(`"${p}" comparisons are not supported for type '${Hi(g.type)}'.`);if(_.type.kind!==g.type.kind&&_.type.kind!=="value"&&g.type.kind!=="value")return u.error(`Cannot compare types '${Hi(_.type)}' and '${Hi(g.type)}'.`);r&&(_.type.kind==="value"&&g.type.kind!=="value"?_=new Vn(g.type,[_]):_.type.kind!=="value"&&g.type.kind==="value"&&(g=new Vn(_.type,[g])));let v=null;if(h.length===4){if(_.type.kind!=="string"&&g.type.kind!=="string"&&_.type.kind!=="value"&&g.type.kind!=="value")return u.error("Cannot use collator to compare non-string types.");if(v=u.parse(h[3],3,rc),!v)return null}return new Dv(_,g,v)}evaluate(h){const u=this.lhs.evaluate(h),p=this.rhs.evaluate(h);if(r&&this.hasUntypedArgument){const _=Zi(u),g=Zi(p);if(_.kind!==g.kind||_.kind!=="string"&&_.kind!=="number")throw new Ji(`Expected arguments for "${n}" to be (string, string) or (number, number), but found (${_.kind}, ${g.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const _=Zi(u),g=Zi(p);if(_.kind!=="string"||g.kind!=="string")return e(h,u,p)}return this.collator?i(h,u,p,this.collator.evaluate(h)):e(h,u,p)}eachChild(h){h(this.lhs),h(this.rhs),this.collator&&h(this.collator)}outputDefined(){return!0}serialize(){const h=[n];return this.eachChild(u=>{h.push(u.serialize())}),h}}}const Tm=zs("==",function(n,e,i){return e===i},su),Sm=zs("!=",function(n,e,i){return e!==i},function(n,e,i,r){return!su(0,e,i,r)}),Em=zs("<",function(n,e,i){return e<i},function(n,e,i,r){return r.compare(e,i)<0}),xp=zs(">",function(n,e,i){return e>i},function(n,e,i,r){return r.compare(e,i)>0}),vp=zs("<=",function(n,e,i){return e<=i},function(n,e,i,r){return r.compare(e,i)<=0}),Ec=zs(">=",function(n,e,i){return e>=i},function(n,e,i,r){return r.compare(e,i)>=0});class au{constructor(e,i,r,a,h,u){this.type=$t,this.number=e,this.locale=i,this.currency=r,this.unit=a,this.minFractionDigits=h,this.maxFractionDigits=u}static parse(e,i){if(e.length!==3)return i.error("Expected two arguments.");const r=i.parse(e[1],1,tt);if(!r)return null;const a=e[2];if(typeof a!="object"||Array.isArray(a))return i.error("NumberFormat options argument must be an object.");let h=null;if(a.locale&&(h=i.parseObjectValue(a.locale,2,"locale",$t),!h))return null;let u=null;if(a.currency&&(u=i.parseObjectValue(a.currency,2,"currency",$t),!u))return null;let p=null;if(a.unit&&(p=i.parseObjectValue(a.unit,2,"unit",$t),!p))return null;let _=null;if(a["min-fraction-digits"]&&(_=i.parseObjectValue(a["min-fraction-digits"],2,"min-fraction-digits",tt),!_))return null;let g=null;return a["max-fraction-digits"]&&(g=i.parseObjectValue(a["max-fraction-digits"],2,"max-fraction-digits",tt),!g)?null:new au(r,h,u,p,_,g)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Ic{constructor(e){this.type=tt,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);const r=i.parse(e[1],1);return r?r.type.kind!=="array"&&r.type.kind!=="string"&&r.type.kind!=="value"?i.error(`Expected argument of type string or array, but found ${Hi(r.type)} instead.`):new Ic(r):null}evaluate(e){const i=this.input.evaluate(e);if(typeof i=="string"||Array.isArray(i))return i.length;throw new Ji(`Expected value to be of type string or array, but found ${Hi(Zi(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(i=>{e.push(i.serialize())}),e}}function bp(n){return function(){n=1831565813+(n|=0)|0;let e=Math.imul(n^n>>>15,1|n);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const pa={"==":Tm,"!=":Sm,">":xp,"<":Em,">=":Ec,"<=":vp,array:Vn,at:is,"at-interpolated":wc,boolean:Vn,case:bl,coalesce:yl,collator:na,format:xt,image:rt,in:Tc,"index-of":Sc,interpolate:gr,"interpolate-hcl":gr,"interpolate-lab":gr,length:Ic,let:xl,literal:Eo,match:vl,number:Vn,"number-format":au,object:Vn,slice:da,step:gl,string:Vn,"to-boolean":Vr,"to-color":Vr,"to-number":Vr,"to-string":Vr,var:xc,within:es,distance:Ds,config:ca,split:ou};function lu(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const h=a?a.evaluate(n):1,u=Yd(e,i,r,h);if(u)throw new Ji(u);return new Wt(e/255,i/255,r/255,h)}function cu(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const h=a?a.evaluate(n):1,u=function(g,v,b,w){return typeof g=="number"&&g>=0&&g<=360?typeof v=="number"&&v>=0&&v<=100&&typeof b=="number"&&b>=0&&b<=100?w===void 0||typeof w=="number"&&w>=0&&w<=1?null:`Invalid hsla value [${[g,v,b,w].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof w=="number"?[g,v,b,w]:[g,v,b]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof w=="number"?[g,v,b,w]:[g,v,b]).join(", ")}]: 'h' must be between 0 and 360.`}(e,i,r,h);if(u)throw new Ji(u);const p=`hsla(${e}, ${i}%, ${r}%, ${h})`,_=Wt.parse(p);if(!_)throw new Ji(`Failed to parse HSLA color: ${p}`);return _}function wp(n,e){return n in e}function hu(n,e){const i=e[n];return i===void 0?null:i}function ns(n){return{type:n}}function Ac(n){if(n instanceof ca)return new Set([n.key]);let e=new Set;return n.eachChild(i=>{e=new Set([...e,...Ac(i)])}),e}function Ls(n){if(n instanceof Mn&&n.name==="is-active-floor")return!0;let e=!1;return n.eachChild(i=>{!e&&Ls(i)&&(e=!0)}),e}function Tp(n){return{result:"success",value:n}}function rs(n){return{result:"error",value:n}}function uu(n,e){return!!n&&!!n.parameters&&n.parameters.indexOf(e)>-1}function Mc(n){return n["property-type"]==="data-driven"}function Sp(n){return uu(n.expression,"measure-light")}function Pc(n){return uu(n.expression,"zoom")}function du(n){return!!n.expression&&n.expression.interpolated}function pu(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Ep(n){return n}function fu(n,e){const i=e.type==="color",r=n.stops&&typeof n.stops[0][0]=="object",a=r||!(r||n.property!==void 0),h=n.type||(du(e)?"exponential":"interval");if(i&&((n=Object.assign({},n)).stops&&(n.stops=n.stops.map(g=>[g[0],Wt.parse(g[1])])),n.default=Wt.parse(n.default?n.default:e.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!gp[n.colorSpace])throw new Error(`Unknown color space: ${n.colorSpace}`);let u,p,_;if(h==="exponential")u=Fs;else if(h==="interval")u=Im;else if(h==="categorical"){u=Ip,p=Object.create(null);for(const g of n.stops)p[g[0]]=g[1];_=typeof n.stops[0][0]}else{if(h!=="identity")throw new Error(`Unknown function type "${h}"`);u=Am}if(r){const g={},v=[];for(let E=0;E<n.stops.length;E++){const I=n.stops[E],C=I[0].zoom;g[C]===void 0&&(g[C]={zoom:C,type:n.type,property:n.property,default:n.default,stops:[]},v.push(C)),g[C].stops.push([I[0].value,I[1]])}const b=[];for(const E of v)b.push([g[E].zoom,fu(g[E],e)]);const w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:gr.interpolationFactor.bind(void 0,w),zoomStops:b.map(E=>E[0]),evaluate:({zoom:E},I)=>Fs({stops:b,base:n.base},e,E).evaluate(E,I)}}if(a){const g=h==="exponential"?{name:"exponential",base:n.base!==void 0?n.base:1}:null;return{kind:"camera",interpolationType:g,interpolationFactor:gr.interpolationFactor.bind(void 0,g),zoomStops:n.stops.map(v=>v[0]),evaluate:({zoom:v})=>u(n,e,v,p,_)}}return{kind:"source",evaluate(g,v){const b=v&&v.properties?v.properties[n.property]:void 0;return b===void 0?wl(n.default,e.default):u(n,e,b,p,_)}}}function wl(n,e,i){return n!==void 0?n:e!==void 0?e:i!==void 0?i:void 0}function Ip(n,e,i,r,a){return wl(typeof i===a?r[i]:void 0,n.default,e.default)}function Im(n,e,i){if(!ia(i))return wl(n.default,e.default);const r=n.stops.length;if(r===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[r-1][0])return n.stops[r-1][1];const a=bc(n.stops.map(h=>h[0]),i);return n.stops[a][1]}function Fs(n,e,i){const r=n.base!==void 0?n.base:1;if(!ia(i))return wl(n.default,e.default);const a=n.stops.length;if(a===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[a-1][0])return n.stops[a-1][1];const h=bc(n.stops.map(v=>v[0]),i),u=function(v,b,w,E){const I=E-w,C=v-w;return I===0?0:b===1?C/I:(Math.pow(b,C)-1)/(Math.pow(b,I)-1)}(i,r,n.stops[h][0],n.stops[h+1][0]),p=n.stops[h][1],_=n.stops[h+1][1];let g=ol[e.type]||Ep;if(n.colorSpace&&n.colorSpace!=="rgb"){const v=gp[n.colorSpace];g=(b,w)=>v.reverse(v.interpolate(v.forward(b),v.forward(w),u))}return typeof p.evaluate=="function"?{evaluate(...v){const b=p.evaluate.apply(void 0,v),w=_.evaluate.apply(void 0,v);if(b!==void 0&&w!==void 0)return g(b,w,u)}}:g(p,_,u)}function Am(n,e,i){return e.type==="color"?i=Wt.parse(i):e.type==="formatted"?i=Nn.fromString(i.toString()):e.type==="resolvedImage"?i=yn.build(i.toString()):ta(i)===e.type||e.type==="enum"&&e.values[i]||(i=void 0),wl(i,n.default,e.default)}Mn.register(pa,{error:[{kind:"error"},[$t],(n,[e])=>{throw new Ji(e.evaluate(n))}],typeof:[$t,[Xt],(n,[e])=>Hi(Zi(e.evaluate(n)))],"to-rgba":[Sn(tt,4),[An],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Sn(tt,4),[An],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[An,[tt,tt,tt],lu],rgba:[An,[tt,tt,tt,tt],lu],hsl:[An,[tt,tt,tt],cu],hsla:[An,[tt,tt,tt,tt],cu],has:{type:Ht,overloads:[[[$t],(n,[e])=>wp(e.evaluate(n),n.properties())],[[$t,Wo],(n,[e,i])=>wp(e.evaluate(n),i.evaluate(n))]]},get:{type:Xt,overloads:[[[$t],(n,[e])=>hu(e.evaluate(n),n.properties())],[[$t,Wo],(n,[e,i])=>hu(e.evaluate(n),i.evaluate(n))]]},"feature-state":[Xt,[$t],(n,[e])=>hu(e.evaluate(n),n.featureState||{})],properties:[Wo,[],n=>n.properties()],"geometry-type":[$t,[],n=>n.geometryType()],worldview:[$t,[],n=>n.globals.worldview||""],"is-active-floor":[Ht,ns($t),(n,e)=>{if(!(n.globals&&n.globals.activeFloors&&n.globals.activeFloors.size>0))return!1;if(e.length===0)return!0;const i=n.globals.activeFloors;return e.some(r=>{const a=r.evaluate(n);return i.has(a)})}],id:[Xt,[],n=>n.id()],zoom:[tt,[],n=>n.globals.zoom],pitch:[tt,[],n=>n.globals.pitch||0],"distance-from-center":[tt,[],n=>n.distanceFromCenter()],"measure-light":[tt,[$t],(n,[e])=>n.measureLight(e.evaluate(n))],"heatmap-density":[tt,[],n=>n.globals.heatmapDensity||0],"line-progress":[tt,[],n=>n.globals.lineProgress||0],"raster-value":[tt,[],n=>n.globals.rasterValue||0],"raster-particle-speed":[tt,[],n=>n.globals.rasterParticleSpeed||0],"sky-radial-progress":[tt,[],n=>n.globals.skyRadialProgress||0],accumulated:[Xt,[],n=>n.globals.accumulated===void 0?null:n.globals.accumulated],"+":[tt,ns(tt),(n,e)=>{let i=0;for(const r of e)i+=r.evaluate(n);return i}],"*":[tt,ns(tt),(n,e)=>{let i=1;for(const r of e)i*=r.evaluate(n);return i}],"-":{type:tt,overloads:[[[tt,tt],(n,[e,i])=>e.evaluate(n)-i.evaluate(n)],[[tt],(n,[e])=>-e.evaluate(n)]]},"/":[tt,[tt,tt],(n,[e,i])=>e.evaluate(n)/i.evaluate(n)],"%":[tt,[tt,tt],(n,[e,i])=>e.evaluate(n)%i.evaluate(n)],ln2:[tt,[],()=>Math.LN2],pi:[tt,[],()=>Math.PI],e:[tt,[],()=>Math.E],"^":[tt,[tt,tt],(n,[e,i])=>Math.pow(e.evaluate(n),i.evaluate(n))],sqrt:[tt,[tt],(n,[e])=>Math.sqrt(e.evaluate(n))],log10:[tt,[tt],(n,[e])=>Math.log(e.evaluate(n))/Math.LN10],ln:[tt,[tt],(n,[e])=>Math.log(e.evaluate(n))],log2:[tt,[tt],(n,[e])=>Math.log2(e.evaluate(n))],sin:[tt,[tt],(n,[e])=>Math.sin(e.evaluate(n))],cos:[tt,[tt],(n,[e])=>Math.cos(e.evaluate(n))],tan:[tt,[tt],(n,[e])=>Math.tan(e.evaluate(n))],asin:[tt,[tt],(n,[e])=>Math.asin(e.evaluate(n))],acos:[tt,[tt],(n,[e])=>Math.acos(e.evaluate(n))],atan:[tt,[tt],(n,[e])=>Math.atan(e.evaluate(n))],min:[tt,ns(tt),(n,e)=>Math.min(...e.map(i=>i.evaluate(n)))],max:[tt,ns(tt),(n,e)=>Math.max(...e.map(i=>i.evaluate(n)))],abs:[tt,[tt],(n,[e])=>Math.abs(e.evaluate(n))],round:[tt,[tt],(n,[e])=>{const i=e.evaluate(n);return i<0?-Math.round(-i):Math.round(i)}],floor:[tt,[tt],(n,[e])=>Math.floor(e.evaluate(n))],ceil:[tt,[tt],(n,[e])=>Math.ceil(e.evaluate(n))],"filter-==":[Ht,[$t,Xt],(n,[e,i])=>n.properties()[e.value]===i.value],"filter-id-==":[Ht,[Xt],(n,[e])=>n.id()===e.value],"filter-type-==":[Ht,[$t],(n,[e])=>n.geometryType()===e.value],"filter-<":[Ht,[$t,Xt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<a}],"filter-id-<":[Ht,[Xt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<r}],"filter->":[Ht,[$t,Xt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>a}],"filter-id->":[Ht,[Xt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>r}],"filter-<=":[Ht,[$t,Xt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<=a}],"filter-id-<=":[Ht,[Xt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<=r}],"filter->=":[Ht,[$t,Xt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>=a}],"filter-id->=":[Ht,[Xt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>=r}],"filter-has":[Ht,[Xt],(n,[e])=>e.value in n.properties()],"filter-has-id":[Ht,[],n=>n.id()!==null&&n.id()!==void 0],"filter-type-in":[Ht,[Sn($t)],(n,[e])=>e.value.indexOf(n.geometryType())>=0],"filter-id-in":[Ht,[Sn(Xt)],(n,[e])=>e.value.indexOf(n.id())>=0],"filter-in-small":[Ht,[$t,Sn(Xt)],(n,[e,i])=>i.value.indexOf(n.properties()[e.value])>=0],"filter-in-large":[Ht,[$t,Sn(Xt)],(n,[e,i])=>function(r,a,h,u){for(;h<=u;){const p=h+u>>1;if(a[p]===r)return!0;a[p]>r?u=p-1:h=p+1}return!1}(n.properties()[e.value],i.value,0,i.value.length-1)],all:{type:Ht,overloads:[[[Ht,Ht],(n,[e,i])=>e.evaluate(n)&&i.evaluate(n)],[ns(Ht),(n,e)=>{for(const i of e)if(!i.evaluate(n))return!1;return!0}]]},any:{type:Ht,overloads:[[[Ht,Ht],(n,[e,i])=>e.evaluate(n)||i.evaluate(n)],[ns(Ht),(n,e)=>{for(const i of e)if(i.evaluate(n))return!0;return!1}]]},"!":[Ht,[Ht],(n,[e])=>!e.evaluate(n)],"is-supported-script":[Ht,[$t],(n,[e])=>{const i=n.globals&&n.globals.isSupportedScript;return!i||i(e.evaluate(n))}],upcase:[$t,[$t],(n,[e])=>e.evaluate(n).toUpperCase()],downcase:[$t,[$t],(n,[e])=>e.evaluate(n).toLowerCase()],concat:[$t,ns(Xt),(n,e)=>e.map(i=>io(i.evaluate(n))).join("")],"resolved-locale":[$t,[rc],(n,[e])=>e.evaluate(n).resolvedLocale()],random:[tt,[tt,tt,Xt],(n,e)=>{const[i,r,a]=e.map(u=>u.evaluate(n));if(i>r||i===r)return i;let h;if(typeof a=="string")h=function(u){let p=0;if(u.length===0)return p;for(let _=0;_<u.length;_++)p=(p<<5)-p+u.charCodeAt(_),p&=p;return p}(a);else{if(typeof a!="number")throw new Ji(`Invalid seed input: ${a}`);h=a}return i+bp(h)()*(r-i)}]});class mu{constructor(e,i,r,a,h){this.expression=e,this._warningHistory={},this._scope=r,this._options=a,this._iconImageUseTheme=h,this._evaluator=new lc(r,a,h),this._defaultValue=i?function(u){return u.type==="color"&&(pu(u.default)||Array.isArray(u.default))?new Wt(0,0,0,0):u.type==="color"?Wt.parse(u.default)||null:u.default===void 0?null:u.default}(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=Ac(e),this.isIndoorDependent=Ls(e)}evaluateWithoutErrorHandling(e,i,r,a,h,u,p,_){return this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=r,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u,this._evaluator.featureTileCoord=p||null,this._evaluator.featureDistanceData=_||null,this.expression.evaluate(this._evaluator)}evaluate(e,i,r,a,h,u,p,_,g){this._evaluator||(this._evaluator=new lc(this._scope,this._options,this._iconImageUseTheme)),this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=r||null,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u||null,this._evaluator.featureTileCoord=p||null,this._evaluator.featureDistanceData=_||null,this._evaluator.iconImageUseTheme=g||null;try{const v=this.expression.evaluate(this._evaluator);if(v==null||typeof v=="number"&&v!=v)return this._defaultValue;if(this._enumValues&&!(v in this._enumValues))throw new Ji(`Expected value to be one of ${Object.keys(this._enumValues).map(b=>JSON.stringify(b)).join(", ")}, but found ${JSON.stringify(v)} instead.`);return v}catch(v){const b=v;return this._warningHistory[b.message]||(this._warningHistory[b.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${b.message}`)),this._defaultValue}}}function Cc(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in pa}function os(n,e,i,r,a){const h=new vc(pa,[],e?function(p){const _={color:An,string:$t,number:tt,enum:$t,boolean:Ht,formatted:sl,resolvedImage:ea};return p.type==="array"?Sn(_[p.value]||Xt,p.length):_[p.type]}(e):void 0,void 0,void 0,i,r,a),u=h.parse(n,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return u?Tp(new mu(u,e,i,r,a)):rs(h.errors)}class Tl{constructor(e,i,r,a){this.kind=e,this._styleExpression=i,this.isLightConstant=r,this.isLineProgressConstant=a,this.isStateDependent=e!=="constant"&&!_l(i.expression),this.configDependencies=Ac(i.expression),this.isIndoorDependent=Ls(i.expression)}evaluateWithoutErrorHandling(e,i,r,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,h,u)}evaluate(e,i,r,a,h,u,p){return this._styleExpression.evaluate(e,i,r,a,h,u,void 0,void 0,p)}}class fa{constructor(e,i,r,a,h,u){this.kind=e,this.zoomStops=r,this._styleExpression=i,this.isStateDependent=e!=="camera"&&!_l(i.expression),this.isIndoorDependent=Ls(i.expression),this.isLightConstant=h,this.isLineProgressConstant=u,this.configDependencies=Ac(i.expression),this.interpolationType=a}evaluateWithoutErrorHandling(e,i,r,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,h,u)}evaluate(e,i,r,a,h,u){return this._styleExpression.evaluate(e,i,r,a,h,u)}interpolationFactor(e,i,r){return this.interpolationType?gr.interpolationFactor(this.interpolationType,e,i,r):0}}function _u(n,e,i,r,a){if((n=os(n,e,i,r,a)).result==="error")return n;const h=n.value.expression,u=aa(h);if(!u&&!Mc(e))return rs([new nr("","data expressions not supported")]);const p=la(h,["zoom","pitch","distance-from-center"]);if(!p&&!Pc(e))return rs([new nr("","zoom expressions not supported")]);const _=la(h,["measure-light"]);if(!_&&!Sp(e))return rs([new nr("","measure-light expression not supported")]);const g=la(h,["line-progress"]);if(!g&&!function(w){return uu(w.expression,"line-progress")}(e))return rs([new nr("","line-progress expression not supported")]);const v=e.expression&&e.expression.relaxZoomRestriction,b=_a(h);return b||p||v?b instanceof nr?rs([b]):b instanceof gr&&!du(e)?rs([new nr("",'"interpolate" expressions cannot be used with this property')]):Tp(b?new fa(u&&g?"camera":"composite",n.value,b.labels,b instanceof gr?b.interpolation:void 0,_,g):new Tl(u&&g?"constant":"source",n.value,_,g)):rs([new nr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class ma{constructor(e,i){this._parameters=e,this._specification=i,Object.assign(this,fu(this._parameters,this._specification))}static deserialize(e){return new ma(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function _a(n){let e=null;if(n instanceof xl)e=_a(n.result);else if(n instanceof yl){for(const i of n.args)if(e=_a(i),e)break}else(n instanceof gl||n instanceof gr)&&n.input instanceof Mn&&n.input.name==="zoom"&&(e=n);return e instanceof nr||n.eachChild(i=>{const r=_a(i);r instanceof nr?e=r:e&&r&&e!==r&&(e=new nr("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}var Rc,Ap,ss=function(){if(Ap)return Rc;Ap=1,Rc=e;var n=3;function e(i,r,a){var h=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var u=new Int32Array(this.arrayBuffer);i=u[0],this.d=(r=u[1])+2*(a=u[2]);for(var p=0;p<this.d*this.d;p++){var _=u[n+p],g=u[n+p+1];h.push(_===g?null:u.subarray(_,g))}var v=u[n+h.length+1];this.keys=u.subarray(u[n+h.length],v),this.bboxes=u.subarray(v),this.insert=this._insertReadonly}else{this.d=r+2*a;for(var b=0;b<this.d*this.d;b++)h.push([]);this.keys=[],this.bboxes=[]}this.n=r,this.extent=i,this.padding=a,this.scale=r/i,this.uid=0;var w=a/r*i;this.min=-w,this.max=i+w}return e.prototype.insert=function(i,r,a,h,u){this._forEachCell(r,a,h,u,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(r),this.bboxes.push(a),this.bboxes.push(h),this.bboxes.push(u)},e.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},e.prototype._insertCell=function(i,r,a,h,u,p){this.cells[u].push(p)},e.prototype.query=function(i,r,a,h,u){var p=this.min,_=this.max;if(i<=p&&r<=p&&_<=a&&_<=h&&!u)return Array.prototype.slice.call(this.keys);var g=[];return this._forEachCell(i,r,a,h,this._queryCell,g,{},u),g},e.prototype._queryCell=function(i,r,a,h,u,p,_,g){var v=this.cells[u];if(v!==null)for(var b=this.keys,w=this.bboxes,E=0;E<v.length;E++){var I=v[E];if(_[I]===void 0){var C=4*I;(g?g(w[C+0],w[C+1],w[C+2],w[C+3]):i<=w[C+2]&&r<=w[C+3]&&a>=w[C+0]&&h>=w[C+1])?(_[I]=!0,p.push(b[I])):_[I]=!1}}},e.prototype._forEachCell=function(i,r,a,h,u,p,_,g){for(var v=this._convertToCellCoord(i),b=this._convertToCellCoord(r),w=this._convertToCellCoord(a),E=this._convertToCellCoord(h),I=v;I<=w;I++)for(var C=b;C<=E;C++){var z=this.d*C+I;if((!g||g(this._convertFromCellCoord(I),this._convertFromCellCoord(C),this._convertFromCellCoord(I+1),this._convertFromCellCoord(C+1)))&&u.call(this,i,r,a,h,z,p,_,g))return}},e.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},e.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},e.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,r=n+this.cells.length+1+1,a=0,h=0;h<this.cells.length;h++)a+=this.cells[h].length;var u=new Int32Array(r+a+this.keys.length+this.bboxes.length);u[0]=this.extent,u[1]=this.n,u[2]=this.padding;for(var p=r,_=0;_<i.length;_++){var g=i[_];u[n+_]=p,u.set(g,p),p+=g.length}return u[n+i.length]=p,u.set(this.keys,p),u[n+i.length+1]=p+=this.keys.length,u.set(this.bboxes,p),p+=this.bboxes.length,u.buffer},Rc}(),ga=fr(ss);const Dc={};function Qe(n,e,i={}){Object.defineProperty(n,"_classRegistryKey",{value:e,writable:!1}),Dc[e]={klass:n,omit:i.omit||[]}}Qe(Object,"Object"),ga.serialize=function(n,e){const i=n.toArrayBuffer();return e&&e.add(i),{buffer:i}},ga.deserialize=function(n){return new ga(n.buffer)},Object.defineProperty(ga,"name",{value:"Grid"}),Qe(ga,"Grid"),delete Oe.prototype.constructor,Qe(Wt,"Color"),Qe(Error,"Error"),Qe(Nn,"Formatted"),Qe(ac,"FormattedSection"),Qe(ir,"AJAXError"),Qe(yn,"ResolvedImage"),Qe(ma,"StylePropertyFunction"),Qe(mu,"StyleExpression",{omit:["_evaluator"]}),Qe(qn,"ImageId"),Qe(Nr,"ImageVariant"),Qe(fa,"ZoomDependentExpression"),Qe(Tl,"ZoomConstantExpression"),Qe(Mn,"CompoundExpression",{omit:["_evaluate"]});for(const n in pa)Dc[pa[n]._classRegistryKey]||Qe(pa[n],`Expression${n}`);function Mp(n){return n&&(n instanceof ArrayBuffer||n.constructor&&n.constructor.name==="ArrayBuffer")}function Ur(n,e){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp)return n;if(Mp(n)||n instanceof ImageBitmap)return e&&e.add(n),n;if(ArrayBuffer.isView(n))return e&&e.add(n.buffer),n;if(n instanceof ImageData)return e&&e.add(n.data.buffer),n;if(Array.isArray(n)){const i=[];for(const r of n)i.push(Ur(r,e));return i}if(n instanceof Map){const i={$name:"Map",entries:[]};for(const[r,a]of n.entries())i.entries.push(Ur(r),Ur(a,e));return i}if(n instanceof Set){const i={$name:"Set"};let r=0;for(const a of n.values())i[++r]=Ur(a);return i}if(typeof n=="bigint")return{$name:"BigInt",value:n.toString()};if(typeof n=="object"){const i=n.constructor,r=i._classRegistryKey;if(!r)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const a=i.serialize?i.serialize(n,e):{};if(!i.serialize){for(const h in n)n.hasOwnProperty(h)&&(Dc[r].omit.indexOf(h)>=0||(a[h]=Ur(n[h],e)));n instanceof Error&&(a.message=n.message)}if(a.$name)throw new Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(a.$name=r),a}throw new Error("can't serialize object of type "+typeof n)}function Ao(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||Mp(n)||n instanceof ImageBitmap||ArrayBuffer.isView(n)||n instanceof ImageData)return n;if(Array.isArray(n))return n.map(Ao);if(typeof n=="object"){const e=n.$name||"Object";if(e==="Map"){const a=n.entries||[],h=new Map;for(let u=0;u<a.length;u+=2)h.set(Ao(a[u]),Ao(a[u+1]));return h}if(e==="Set"){const a=new Set;for(const h of Object.keys(n))h!=="$name"&&a.add(Ao(n[h]));return a}if(e==="BigInt")return BigInt(n.value);const{klass:i}=Dc[e];if(!i)throw new Error(`Can't deserialize unregistered class "${e}".`);if(i.deserialize)return i.deserialize(n);const r=Object.create(i.prototype);for(const a of Object.keys(n))a!=="$name"&&(r[a]=Ao(n[a]));return r}throw new Error("can't deserialize object of type "+typeof n)}const Sl=n=>n>=1536&&n<=1791,gu=n=>n>=1872&&n<=1919,Pp=n=>n>=2208&&n<=2303,Cp=n=>n>=11904&&n<=12031,zc=n=>n>=12032&&n<=12255,Lc=n=>n>=12272&&n<=12287,El=n=>n>=12288&&n<=12351,Fc=n=>n>=12352&&n<=12447,ya=n=>n>=12448&&n<=12543,Il=n=>n>=12544&&n<=12591,yu=n=>n>=12704&&n<=12735,oo=n=>n>=12736&&n<=12783,Rp=n=>n>=12784&&n<=12799,Dp=n=>n>=12800&&n<=13055,zp=n=>n>=13056&&n<=13311,xu=n=>n>=13312&&n<=19903,Oc=n=>n>=19968&&n<=40959,Al=n=>n>=40960&&n<=42127,vu=n=>n>=42128&&n<=42191,bu=n=>n>=44032&&n<=55215,Bc=n=>n>=63744&&n<=64255,wu=n=>n>=64336&&n<=65023,Lp=n=>n>=65040&&n<=65055,Tu=n=>n>=65072&&n<=65103,Fp=n=>n>=65104&&n<=65135,Su=n=>n>=65136&&n<=65279,Eu=n=>n>=65280&&n<=65519;function Iu(n){for(const e of n)if(Au(e.charCodeAt(0)))return!0;return!1}function Mm(n){for(const e of n)if(!Pm(e.charCodeAt(0)))return!1;return!0}function Pm(n){return!(Sl(n)||gu(n)||Pp(n)||wu(n)||Su(n))}function Cm(n){return!(n<11904||!(yu(n)||Il(n)||Tu(n)||Bc(n)||zp(n)||Cp(n)||oo(n)||El(n)||xu(n)||Oc(n)||Dp(n)||Eu(n)||Fc(n)||Lc(n)||zc(n)||Rp(n)||ya(n)||Lp(n)||vu(n)||Al(n)))}function Au(n){return!(n!==746&&n!==747&&(n<4352||!(yu(n)||Il(n)||Tu(n)&&!(n>=65097&&n<=65103)||Bc(n)||zp(n)||Cp(n)||oo(n)||!(!El(n)||n>=12296&&n<=12305||n>=12308&&n<=12319||n===12336)||xu(n)||Oc(n)||Dp(n)||(e=>e>=12592&&e<=12687)(n)||(e=>e>=43360&&e<=43391)(n)||(e=>e>=55216&&e<=55295)(n)||(e=>e>=4352&&e<=4607)(n)||bu(n)||Fc(n)||Lc(n)||(e=>e>=12688&&e<=12703)(n)||zc(n)||Rp(n)||ya(n)&&n!==12540||!(!Eu(n)||n===65288||n===65289||n===65293||n>=65306&&n<=65310||n===65339||n===65341||n===65343||n>=65371&&n<=65503||n===65507||n>=65512&&n<=65519)||!(!Fp(n)||n>=65112&&n<=65118||n>=65123&&n<=65126)||(e=>e>=5120&&e<=5759)(n)||(e=>e>=6320&&e<=6399)(n)||Lp(n)||(e=>e>=19904&&e<=19967)(n)||Al(n)||vu(n))))}function Op(n){return n===12312||n===12313||n===12316||n===12540||n===12448}function Os(n){return!(Au(n)||function(e){return!!((i=>i>=128&&i<=255)(e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||(i=>i>=8192&&i<=8303)(e)&&(e===8214||e===8224||e===8225||e===8240||e===8241||e===8251||e===8252||e===8258||e===8263||e===8264||e===8265||e===8273)||(i=>i>=8448&&i<=8527)(e)||(i=>i>=8528&&i<=8591)(e)||(i=>i>=8960&&i<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||e===9003||e>=9085&&e<=9114||e>=9150&&e<=9165||e===9167||e>=9169&&e<=9179||e>=9186&&e<=9215)||(i=>i>=9216&&i<=9279)(e)&&e!==9251||(i=>i>=9280&&i<=9311)(e)||(i=>i>=9312&&i<=9471)(e)||(i=>i>=9632&&i<=9727)(e)||(i=>i>=9728&&i<=9983)(e)&&!(e>=9754&&e<=9759)||(i=>i>=11008&&i<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||El(e)||ya(e)||(i=>i>=57344&&i<=63743)(e)||Tu(e)||Fp(e)||Eu(e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(n))}function Bp(n){return Sl(n)||gu(n)||Pp(n)||wu(n)||Su(n)}function Mu(n){return n>=1424&&n<=2303||wu(n)||Su(n)}function kc(n,e){return!(!e&&Mu(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||(i=>i>=6016&&i<=6143)(n))}function Rm(n){for(const e of n)if(Mu(e.charCodeAt(0)))return!0;return!1}const rr={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let so=null,zn=rr.unavailable,yr=null;const kp=function(n){n&&typeof n=="string"&&n.indexOf("NetworkError")>-1&&(zn=rr.error),so&&so(n)};function Pu(){Cu.fire(new Br("pluginStateChange",{pluginStatus:zn,pluginURL:yr}))}const Cu=new kr,Ru=function(){return zn},Np=function(){if(zn!==rr.deferred||!yr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");zn=rr.loading,Pu(),yr&&tl({url:yr},n=>{n?kp(n):(zn=rr.loaded,Pu())})},Mo={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>zn===rr.loaded||Mo.applyArabicShaping!=null,isLoading:()=>zn===rr.loading,setState(n){zn=n.pluginStatus,yr=n.pluginURL},isParsing:()=>zn===rr.parsing,isParsed:()=>zn===rr.parsed,getPluginURL:()=>yr};class Jt{constructor(e,i){this.zoom=e,i?(this.now=i.now,this.fadeDuration=i.fadeDuration,this.transition=i.transition,this.pitch=i.pitch,this.brightness=i.brightness,this.worldview=i.worldview,this.activeFloors=i.activeFloors):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(i,r){for(const a of i)if(!kc(a.charCodeAt(0),r))return!1;return!0}(e,Mo.isLoaded())}}class xa{constructor(e,i,r,a,h){this.property=e,this.value=i,this.expression=function(u,p,_,g,v){if(pu(u))return new ma(u,p);if(Cc(u)||Array.isArray(u)&&u.length>0){const b=_u(u,p,_,g,v);if(b.result==="error")throw new Error(b.value.map(w=>`${w.key}: ${w.message}`).join(", "));return b.value}{let b=u;return typeof u=="string"&&p.type==="color"&&(b=Wt.parse(u)),{kind:"constant",configDependencies:new Set,isIndoorDependent:!1,evaluate:()=>b}}}(i===void 0?e.specification.default:i,e.specification,r,a,h)}isIndoorDependent(){return this.expression.isIndoorDependent}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,i,r,a){return this.property.possiblyEvaluate(this,e,i,r,a)}}class Ml{constructor(e,i,r,a){this.property=e,this.value=new xa(e,void 0,i,r,a)}transitioned(e,i){return new Nc(this.property,this.value,i,Object.assign({},e.transition,this.transition),e.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Du{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return yt(this._values[e].value.value)}setValue(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Ml(this._values[e].property,this._scope,this._options,this._iconImageUseTheme)),this._values[e].value=new xa(this._values[e].property,i===null?void 0:yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].value.isIndoorDependent())}setTransitionOrValue(e,i){i&&(this._options=i);const r=this._properties.properties;if(e)for(const a in e){const h=e[a];if(a.endsWith("-transition")){const u=a.slice(0,-11);r[u]&&this.setTransition(u,h)}else r.hasOwnProperty(a)&&this.setValue(a,h)}}getTransition(e){return yt(this._values[e].transition)}setTransition(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Ml(this._values[e].property)),this._values[e].transition=yt(i)||void 0}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r);const a=this.getTransition(i);a!==void 0&&(e[`${i}-transition`]=a)}return e}transitioned(e,i){const r=new va(this._properties);for(const a of Object.keys(this._values))r._values[a]=this._values[a].transitioned(e,i._values[a]);return r}untransitioned(){const e=new va(this._properties);for(const i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}isIndoorDependent(){return this._isIndoorDependent}}class Nc{constructor(e,i,r,a,h){const u=a.delay||0,p=a.duration||0;h=h||0,this.property=e,this.value=i,this.begin=h+u,this.end=this.begin+p,e.specification.transition&&(a.delay||a.duration)&&(this.prior=r)}possiblyEvaluate(e,i,r){const a=e.now||0,h=this.value.possiblyEvaluate(e,i,r),u=this.prior;if(u){if(a>this.end)return this.prior=null,h;if(this.value.isDataDriven())return this.prior=null,h;if(a<this.begin)return u.possiblyEvaluate(e,i,r);{const p=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(u.possiblyEvaluate(e,i,r),h,U(p))}}return h}}class va{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,i,r){const a=new ks(this._properties);for(const h of Object.keys(this._values))a._values[h]=this._values[h].possiblyEvaluate(e,i,r);return a}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class zu{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return yt(this._values[e].value)}setValue(e,i){this._values[e]=new xa(this._values[e].property,i===null?void 0:yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].isIndoorDependent())}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r)}return e}possiblyEvaluate(e,i,r,a){const h=new ks(this._properties);for(const u of Object.keys(this._values))h._values[u]=this._values[u].possiblyEvaluate(e,i,r,a);return h}isIndoorDependent(){return this._isIndoorDependent}}class Bs{constructor(e,i,r,a){this.property=e,this.value=i,this.parameters=r,this.iconImageUseTheme=a}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,i,r,a){return this.property.evaluate(this.value,this.parameters,e,i,r,a,this.iconImageUseTheme)}}class ks{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Ve{constructor(e){this.specification=e}possiblyEvaluate(e,i){return e.expression.evaluate(i)}interpolate(e,i,r){const a=ol[this.specification.type];return a?a(e,i,r):e}}class He{constructor(e,i){this.specification=e,this.overrides=i}possiblyEvaluate(e,i,r,a,h){return e.expression.kind==="constant"||e.expression.kind==="camera"?new Bs(this,{kind:"constant",value:e.expression.evaluate(i,null,{},r,a,void 0,h)},i):new Bs(this,e.expression,i,h)}interpolate(e,i,r){if(e.value.kind!=="constant"||i.value.kind!=="constant")return e;if(e.value.value===void 0||i.value.value===void 0)return new Bs(this,{kind:"constant",value:void 0},e.parameters);const a=ol[this.specification.type];return a?new Bs(this,{kind:"constant",value:a(e.value.value,i.value.value,r)},e.parameters):e}evaluate(e,i,r,a,h,u,p){return e.kind==="constant"?e.value:e.evaluate(i,r,a,h,u,void 0,p)}}class $n{constructor(e){this.specification=e}possiblyEvaluate(e,i,r,a){return!!e.expression.evaluate(i,null,{},r,a)}interpolate(){return!1}}class Ei{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new Jt(0,{});for(const r in e){const a=e[r];a.specification.overridable&&this.overridableProperties.push(r);const h=this.defaultPropertyValues[r]=new xa(a,void 0),u=this.defaultTransitionablePropertyValues[r]=new Ml(a);this.defaultTransitioningPropertyValues[r]=u.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=h.possiblyEvaluate(i)}}}Qe(He,"DataDrivenProperty"),Qe(Ve,"DataConstantProperty"),Qe($n,"ColorRampProperty");var pe=JSON.parse('{"$version":8,"$root":{"version":{"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow"},"rain":{"type":"rain"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor"},"imports":{"type":"array","value":"import"},"iconsets":{"type":"iconsets"},"schema":{"type":"schema"},"sources":{"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"type":"featuresets"}},"featuresets":{"*":{"type":"featureset"}},"featureset":{"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"layer":{"type":"string"},"properties":{"type":"selectorProperty"},"featureNamespace":{"type":"string"},"_uniqueFeatureID":{"type":"boolean"}},"selectorProperty":{"*":{"type":"*"}},"model":{"type":"string"},"import":{"id":{"type":"string"},"url":{"type":"string"},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","expression":{}},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string"},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false},"shadow-quality":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]}},"shadow-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"shadow-draw-before-layer":{"type":"string"}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"iconsets":{"*":{"type":"iconset"}},"iconset":["iconset_sprite","iconset_source"],"iconset_sprite":{"type":{"type":"enum","values":{"sprite":1}},"url":{"type":"string"}},"iconset_source":{"type":{"type":"enum","values":{"source":1}},"source":{"type":"string"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"type":"enum","values":{"video":1}},"urls":{"type":"array","value":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"type":"enum","values":{"image":1}},"url":{"type":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"modelNodeOverride":{"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360}},"modelNodeOverrides":{"*":{"type":"modelNodeOverride"}},"modelMaterialOverride":{"model-color":{"type":"color"},"model-color-mix-intensity":{"type":"number"},"model-opacity":{"type":"number"},"model-emissive-strength":{"type":"number"}},"modelMaterialOverrides":{"*":{"type":"modelMaterialOverride"}},"modelSourceModel":{"uri":{"type":"string"},"position":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[-180,-90],"maximum":[180,90]},"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360},"nodeOverrides":{"type":"modelNodeOverrides"},"materialOverrides":{"type":"modelMaterialOverrides"},"nodeOverrideNames":{"type":"array","value":"string"},"materialOverrideNames":{"type":"array","value":"string"},"featureProperties":{"type":"*"}},"modelSourceModels":{"*":{"type":"modelSourceModel"}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"url":{"type":"string"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"},"models":{"type":"modelSourceModels"}},"layer":{"id":{"type":"string"},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"building":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{},"clip":{}}},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"},"appearances":{"type":"array","value":"appearance","supported-layer-types":["symbol"]}},"appearance":{"condition":{"type":"boolean","expression":{"interpolated":true,"parameters":["zoom","pitch","feature","feature-state","measure-light","distance-from-center"]},"property-type":"data-driven"},"name":{"type":"string"},"properties":{"type":"*"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_building","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"model-allow-density-reduction":{"type":"boolean","default":true}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{}},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"default":"none","expression":{}},"fill-construct-bridge-guard-rail":{"type":"boolean","default":"true","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"circle-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-markup":1},"default":"none","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-extrusion-edge-radius":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}}},"layout_building":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"building-facade":{"type":"boolean","default":false,"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-facade-floors":{"type":"number","minimum":1,"maximum":200,"default":3,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-unit-width":{"type":"number","minimum":1,"maximum":20,"default":3.1,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-window":{"type":"array","length":2,"value":"number","minimum":0.1,"maximum":1,"default":[0.9,0.9],"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-roof-shape":{"type":"enum","values":{"flat":1,"hipped":1,"gabled":1,"parapet":1,"mansard":1,"skillion":1,"pyramidal":1},"default":"flat","expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flip-roof-orientation":{"property-type":"data-driven","type":"boolean","default":false,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","default":0,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"default":"none","expression":{}},"line-cross-slope":{"type":"number","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"line-width-unit":{"type":"enum","values":{"pixels":1,"meters":1},"default":"pixels","expression":{"parameters":["zoom"]}},"line-elevation-ground-scale":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","line-progress"]},"transition":true,"property-type":"data-driven"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]}},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]}},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{"parameters":["zoom"]}},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"icon-size":{"type":"number","default":1,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"appearance":true,"use-theme":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]}},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]}},"text-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_hillshade":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster-particle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_clip":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_model":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_building":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*"}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"horizon-blend":{"type":"number","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"snow":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.4,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"flake-size":{"type":"number","default":0.71,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"rain":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.57,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"distortion-strength":{"type":"number","default":0.7,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective"}},"colorTheme":{"data":{"type":"string","expression":{}}},"indoor_source":{"sourceId":{"type":"string"},"sourceLayers":{"type":"array","value":"string"}},"indoor":{"*":{"type":"indoor_source"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator"},"center":{"type":"array","length":2,"value":"number","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string"},"exaggeration":{"type":"number","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_building","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-bridge-guard-rail-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"},"fill-tunnel-structure-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-height-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"flat"},"fill-extrusion-base-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"terrain"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true}},"paint_building":{"building-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"parameters":[]},"transition":true},"building-ambient-occlusion-ground-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-cast-shadows":{"type":"boolean","default":true},"building-color":{"type":"color","default":"rgba(193, 154, 127, 1)","use-theme":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-facade-emissive-chance":{"type":"number","default":0.35,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["measure-light","zoom"]}},"building-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"building-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light","line-progress"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-gradient":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["line-progress"]}},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1]},"line-trim-fade-range":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-trim-color":{"type":"color","default":"transparent","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"line-border-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"use-theme":true,"expression":{"interpolated":true,"parameters":["heatmap-density"]}},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-image-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{}},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-value"]}},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"raster-array-band":{"type":"string"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1},"default":"sea","expression":{}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-particle-speed"]}},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-shadow-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]}},"background-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]}},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]}},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"use-theme":true,"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white","use-theme":true},"sky-atmosphere-color":{"type":"color","default":"white","use-theme":true},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"property-type":"data-driven"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"use-theme":true,"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d"},"model-cast-shadows":{"type":"boolean","default":true},"model-receive-shadows":{"type":"boolean","default":true},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"model-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"model-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{}}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function Vp(n){return n instanceof Number||n instanceof String||n instanceof Boolean?n.valueOf():n}function Vc(n){if(Array.isArray(n))return n.map(Vc);if(n instanceof Object&&!(n instanceof Number||n instanceof String||n instanceof Boolean)){const e={};for(const i in n)e[i]=Vc(n[i]);return e}return Vp(n)}function Lu(n){if(n===!0||n===!1)return!0;if(!Array.isArray(n)||n.length===0)return!1;switch(n[0]){case"has":return n.length>=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(const e of n.slice(1))if(!Lu(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function Fu(n,e="",i=null,r="fill"){if(n==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Lu(n)||(n=Uc(n));const a=n;let h=!0;try{h=function(v){if(!ba(v))return v;let b=Vc(v);return jp(b),b=Up(b),b}(a)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
1
+ "use strict";const Cv=require("./map-style-57bbe0a0.cjs");var Rv={exports:{}};(function(zv,kT){(function(Sh,Eh){zv.exports=Eh()})(Cv.commonjsGlobal,function(){var Sh,Eh,hm;function um(s,Rn){if(!Sh)Sh=Rn;else if(!Eh)Eh=Rn;else{var Ti="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 = {}; ("+Sh+")(sharedChunk); ("+Eh+")(sharedChunk); self.onerror = null;",fo={};Sh(fo),hm=Rn(fo),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(hm.workerUrl=window.URL.createObjectURL(new Blob([Ti],{type:"text/javascript"})))}}um(["exports"],function(s){var Rn=1e-6,Ti=typeof Float32Array<"u"?Float32Array:Array;function fo(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i*h-a*r;return u?(n[0]=h*(u=1/u),n[1]=-r*u,n[2]=-a*u,n[3]=i*u,n):null}function $l(){var n=new Ti(9);return Ti!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[5]=0,n[6]=0,n[7]=0),n[0]=1,n[4]=1,n[8]=1,n}function Hs(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=e[4],p=e[5],_=e[6],g=e[7],v=e[8];return n[0]=u*v-p*g,n[1]=a*g-r*v,n[2]=r*p-a*u,n[3]=p*_-h*v,n[4]=i*v-a*_,n[5]=a*h-i*p,n[6]=h*g-u*_,n[7]=r*_-i*g,n[8]=i*u-r*h,n}function Wr(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=i[0],E=i[1],I=i[2],C=i[3],z=i[4],R=i[5],B=i[6],k=i[7],j=i[8];return n[0]=w*r+E*u+I*g,n[1]=w*a+E*p+I*v,n[2]=w*h+E*_+I*b,n[3]=C*r+z*u+R*g,n[4]=C*a+z*p+R*v,n[5]=C*h+z*_+R*b,n[6]=B*r+k*u+j*g,n[7]=B*a+k*p+j*v,n[8]=B*h+k*_+j*b,n}function ys(){var n=new Ti(16);return Ti!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0),n[0]=1,n[5]=1,n[10]=1,n[15]=1,n}function Yt(n){var e=new Ti(16);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],e}function Si(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 Pr(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=e[4],p=e[5],_=e[6],g=e[7],v=e[8],b=e[9],w=e[10],E=e[11],I=e[12],C=e[13],z=e[14],R=e[15],B=i*p-r*u,k=i*_-a*u,j=i*g-h*u,H=r*_-a*p,$=r*g-h*p,re=a*g-h*_,K=v*C-b*I,Q=v*z-w*I,ie=v*R-E*I,oe=b*z-w*C,ve=b*R-E*C,xe=w*R-E*z,Te=B*xe-k*ve+j*oe+H*ie-$*Q+re*K;return Te?(n[0]=(p*xe-_*ve+g*oe)*(Te=1/Te),n[1]=(a*ve-r*xe-h*oe)*Te,n[2]=(C*re-z*$+R*H)*Te,n[3]=(w*$-b*re-E*H)*Te,n[4]=(_*ie-u*xe-g*Q)*Te,n[5]=(i*xe-a*ie+h*Q)*Te,n[6]=(z*j-I*re-R*k)*Te,n[7]=(v*re-w*j+E*k)*Te,n[8]=(u*ve-p*ie+g*K)*Te,n[9]=(r*ie-i*ve-h*K)*Te,n[10]=(I*$-C*j+R*B)*Te,n[11]=(b*j-v*$-E*B)*Te,n[12]=(p*Q-u*oe-_*K)*Te,n[13]=(i*oe-r*Q+a*K)*Te,n[14]=(C*k-I*H-z*B)*Te,n[15]=(v*H-b*k+w*B)*Te,n):null}function yi(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=e[9],E=e[10],I=e[11],C=e[12],z=e[13],R=e[14],B=e[15],k=i[0],j=i[1],H=i[2],$=i[3];return n[0]=k*r+j*p+H*b+$*C,n[1]=k*a+j*_+H*w+$*z,n[2]=k*h+j*g+H*E+$*R,n[3]=k*u+j*v+H*I+$*B,n[4]=(k=i[4])*r+(j=i[5])*p+(H=i[6])*b+($=i[7])*C,n[5]=k*a+j*_+H*w+$*z,n[6]=k*h+j*g+H*E+$*R,n[7]=k*u+j*v+H*I+$*B,n[8]=(k=i[8])*r+(j=i[9])*p+(H=i[10])*b+($=i[11])*C,n[9]=k*a+j*_+H*w+$*z,n[10]=k*h+j*g+H*E+$*R,n[11]=k*u+j*v+H*I+$*B,n[12]=(k=i[12])*r+(j=i[13])*p+(H=i[14])*b+($=i[15])*C,n[13]=k*a+j*_+H*w+$*z,n[14]=k*h+j*g+H*E+$*R,n[15]=k*u+j*v+H*I+$*B,n}function Qn(n,e,i){var r,a,h,u,p,_,g,v,b,w,E,I,C=i[0],z=i[1],R=i[2];return e===n?(n[12]=e[0]*C+e[4]*z+e[8]*R+e[12],n[13]=e[1]*C+e[5]*z+e[9]*R+e[13],n[14]=e[2]*C+e[6]*z+e[10]*R+e[14],n[15]=e[3]*C+e[7]*z+e[11]*R+e[15]):(a=e[1],h=e[2],u=e[3],p=e[4],_=e[5],g=e[6],v=e[7],b=e[8],w=e[9],E=e[10],I=e[11],n[0]=r=e[0],n[1]=a,n[2]=h,n[3]=u,n[4]=p,n[5]=_,n[6]=g,n[7]=v,n[8]=b,n[9]=w,n[10]=E,n[11]=I,n[12]=r*C+p*z+b*R+e[12],n[13]=a*C+_*z+w*R+e[13],n[14]=h*C+g*z+E*R+e[14],n[15]=u*C+v*z+I*R+e[15]),n}function Dn(n,e,i){var r=i[0],a=i[1],h=i[2];return n[0]=e[0]*r,n[1]=e[1]*r,n[2]=e[2]*r,n[3]=e[3]*r,n[4]=e[4]*a,n[5]=e[5]*a,n[6]=e[6]*a,n[7]=e[7]*a,n[8]=e[8]*h,n[9]=e[9]*h,n[10]=e[10]*h,n[11]=e[11]*h,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15],n}function mo(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[4],u=e[5],p=e[6],_=e[7],g=e[8],v=e[9],b=e[10],w=e[11];return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[4]=h*a+g*r,n[5]=u*a+v*r,n[6]=p*a+b*r,n[7]=_*a+w*r,n[8]=g*a-h*r,n[9]=v*a-u*r,n[10]=b*a-p*r,n[11]=w*a-_*r,n}function Cr(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],p=e[2],_=e[3],g=e[8],v=e[9],b=e[10],w=e[11];return e!==n&&(n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=h*a-g*r,n[1]=u*a-v*r,n[2]=p*a-b*r,n[3]=_*a-w*r,n[8]=h*r+g*a,n[9]=u*r+v*a,n[10]=p*r+b*a,n[11]=_*r+w*a,n}function Rr(n,e,i){var r=Math.sin(i),a=Math.cos(i),h=e[0],u=e[1],p=e[2],_=e[3],g=e[4],v=e[5],b=e[6],w=e[7];return e!==n&&(n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=h*a+g*r,n[1]=u*a+v*r,n[2]=p*a+b*r,n[3]=_*a+w*r,n[4]=g*a-h*r,n[5]=v*a-u*r,n[6]=b*a-p*r,n[7]=w*a-_*r,n}function Xr(n,e){return n[0]=e[0],n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=e[1],n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=e[2],n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function xs(n,e,i){var r,a,h,u=i[0],p=i[1],_=i[2],g=Math.sqrt(u*u+p*p+_*_);return g<Rn?null:(u*=g=1/g,p*=g,_*=g,r=Math.sin(e),a=Math.cos(e),n[0]=u*u*(h=1-a)+a,n[1]=p*u*h+_*r,n[2]=_*u*h-p*r,n[3]=0,n[4]=u*p*h-_*r,n[5]=p*p*h+a,n[6]=_*p*h+u*r,n[7]=0,n[8]=u*_*h+p*r,n[9]=p*_*h-u*r,n[10]=_*_*h+a,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n)}function $a(n,e){var i=e[0],r=e[1],a=e[2],h=e[4],u=e[5],p=e[6],_=e[8],g=e[9],v=e[10];return n[0]=Math.sqrt(i*i+r*r+a*a),n[1]=Math.sqrt(h*h+u*u+p*p),n[2]=Math.sqrt(_*_+g*g+v*v),n}function Ha(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i+i,p=r+r,_=a+a,g=i*u,v=r*u,b=r*p,w=a*u,E=a*p,I=a*_,C=h*u,z=h*p,R=h*_;return n[0]=1-b-I,n[1]=v+R,n[2]=w-z,n[3]=0,n[4]=v-R,n[5]=1-g-I,n[6]=E+C,n[7]=0,n[8]=w+z,n[9]=E-C,n[10]=1-g-b,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}var Za=yi;function Kt(){var n=new Ti(3);return Ti!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n}function Hl(n){var e=new Ti(3);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e}function er(n){var e=n[0],i=n[1],r=n[2];return Math.sqrt(e*e+i*i+r*r)}function ci(n,e,i){var r=new Ti(3);return r[0]=n,r[1]=e,r[2]=i,r}function ui(n,e,i,r){return n[0]=e,n[1]=i,n[2]=r,n}function ji(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n[2]=e[2]+i[2],n}function Yr(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],n}function Dr(n,e,i){return n[0]=e[0]*i[0],n[1]=e[1]*i[1],n[2]=e[2]*i[2],n}function Kr(n,e,i){return n[0]=Math.min(e[0],i[0]),n[1]=Math.min(e[1],i[1]),n[2]=Math.min(e[2],i[2]),n}function zr(n,e,i){return n[0]=Math.max(e[0],i[0]),n[1]=Math.max(e[1],i[1]),n[2]=Math.max(e[2],i[2]),n}function xi(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n}function dr(n,e,i,r){return n[0]=e[0]+i[0]*r,n[1]=e[1]+i[1]*r,n[2]=e[2]+i[2]*r,n}function Zl(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return Math.sqrt(i*i+r*r+a*a)}function Wa(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return i*i+r*r+a*a}function Wl(n){var e=n[0],i=n[1],r=n[2];return e*e+i*i+r*r}function Bo(n,e){return n[0]=-e[0],n[1]=-e[1],n[2]=-e[2],n}function oi(n,e){var i=e[0],r=e[1],a=e[2],h=i*i+r*r+a*a;return h>0&&(h=1/Math.sqrt(h)),n[0]=e[0]*h,n[1]=e[1]*h,n[2]=e[2]*h,n}function zi(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]}function En(n,e,i){var r=e[0],a=e[1],h=e[2],u=i[0],p=i[1],_=i[2];return n[0]=a*_-h*p,n[1]=h*u-r*_,n[2]=r*p-a*u,n}function vs(n,e,i,r){var a=e[0],h=e[1],u=e[2];return n[0]=a+r*(i[0]-a),n[1]=h+r*(i[1]-h),n[2]=u+r*(i[2]-u),n}function Vi(n,e,i){var r=e[0],a=e[1],h=e[2],u=i[3]*r+i[7]*a+i[11]*h+i[15];return n[0]=(i[0]*r+i[4]*a+i[8]*h+i[12])/(u=u||1),n[1]=(i[1]*r+i[5]*a+i[9]*h+i[13])/u,n[2]=(i[2]*r+i[6]*a+i[10]*h+i[14])/u,n}function ko(n,e,i){var r=e[0],a=e[1],h=e[2];return n[0]=r*i[0]+a*i[3]+h*i[6],n[1]=r*i[1]+a*i[4]+h*i[7],n[2]=r*i[2]+a*i[5]+h*i[8],n}function No(n,e,i){var r=i[0],a=i[1],h=i[2],u=i[3],p=e[0],_=e[1],g=e[2],v=a*g-h*_,b=h*p-r*g,w=r*_-a*p;return n[0]=p+u*(v+=v)+a*(w+=w)-h*(b+=b),n[1]=_+u*b+h*v-r*w,n[2]=g+u*w+r*b-a*v,n}function bs(n){return n[0]=0,n[1]=0,n[2]=0,n}function Lr(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]}var Ui=Yr,Zs=Dr,Vo=er;function Ws(){var n=new Ti(4);return Ti!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0,n[3]=0),n}function ws(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=e[3]*i,n}function Xa(n,e){var i=e[0],r=e[1],a=e[2],h=e[3],u=i*i+r*r+a*a+h*h;return u>0&&(u=1/Math.sqrt(u)),n[0]=i*u,n[1]=r*u,n[2]=a*u,n[3]=h*u,n}function tr(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]+n[3]*e[3]}function Gn(n,e,i){var r=e[0],a=e[1],h=e[2],u=e[3];return n[0]=i[0]*r+i[4]*a+i[8]*h+i[12]*u,n[1]=i[1]*r+i[5]*a+i[9]*h+i[13]*u,n[2]=i[2]*r+i[6]*a+i[10]*h+i[14]*u,n[3]=i[3]*r+i[7]*a+i[11]*h+i[15]*u,n}function _o(){var n=new Ti(4);return Ti!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n[3]=1,n}function go(n){return n[0]=0,n[1]=0,n[2]=0,n[3]=1,n}function Uo(n,e,i){i*=.5;var r=e[0],a=e[1],h=e[2],u=e[3],p=Math.sin(i),_=Math.cos(i);return n[0]=r*_+u*p,n[1]=a*_+h*p,n[2]=h*_-a*p,n[3]=u*_-r*p,n}function Ts(n,e,i){i*=.5;var r=e[0],a=e[1],h=e[2],u=e[3],p=Math.sin(i),_=Math.cos(i);return n[0]=r*_-h*p,n[1]=a*_+u*p,n[2]=h*_+r*p,n[3]=u*_-a*p,n}Kt(),Ws();var kn,Xs,pr,Ya=Xa,yo=(kn=Kt(),Xs=ci(1,0,0),pr=ci(0,1,0),function(n,e,i){var r=zi(e,i);return r<-.999999?(En(kn,Xs,e),Vo(kn)<1e-6&&En(kn,pr,e),oi(kn,kn),function(a,h,u){u*=.5;var p=Math.sin(u);a[0]=p*h[0],a[1]=p*h[1],a[2]=p*h[2],a[3]=Math.cos(u)}(n,kn,Math.PI),n):r>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(En(kn,e,i),n[0]=kn[0],n[1]=kn[1],n[2]=kn[2],n[3]=1+r,Ya(n,n))});function In(){var n=new Ti(2);return Ti!=Float32Array&&(n[0]=0,n[1]=0),n}function xo(n,e){var i=new Ti(2);return i[0]=n,i[1]=e,i}function vo(n,e,i){return n[0]=e,n[1]=i,n}function jo(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n}function bo(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n}function Go(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n}function qo(n){var e=n[0],i=n[1];return Math.sqrt(e*e+i*i)}function Ys(n,e){var i=e[0],r=e[1],a=i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),n[0]=e[0]*a,n[1]=e[1]*a,n}function pi(n,e){return n[0]*e[0]+n[1]*e[1]}_o(),_o(),$l();var wn,Xl,Ks=bo;function fr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}In();var Ih=function(){if(Xl)return wn;function n(e,i,r,a){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(a-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=r,this.p2y=a}return Xl=1,wn=n,n.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var r=e,a=0;a<8;a++){var h=this.sampleCurveX(r)-e;if(Math.abs(h)<i)return r;var u=this.sampleCurveDerivativeX(r);if(Math.abs(u)<1e-6)break;r-=h/u}var p=0,_=1;for(r=e,a=0;a<20&&(h=this.sampleCurveX(r),!(Math.abs(h-e)<i));a++)e>h?p=r:_=r,r=.5*(_-p)+p;return r},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},wn}(),Js=fr(Ih);function Oe(n,e){this.x=n,this.y=e}function wo(n,e){if(Array.isArray(n)){if(!Array.isArray(e)||n.length!==e.length)return!1;for(let i=0;i<n.length;i++)if(!wo(n[i],e[i]))return!1;return!0}if(typeof n=="object"&&n!==null&&e!==null){if(typeof e!="object"||Object.keys(n).length!==Object.keys(e).length)return!1;for(const i in n)if(!wo(n[i],e[i]))return!1;return!0}return n===e}Oe.prototype={clone(){return new Oe(this.x,this.y)},add(n){return this.clone()._add(n)},sub(n){return this.clone()._sub(n)},multByPoint(n){return this.clone()._multByPoint(n)},divByPoint(n){return this.clone()._divByPoint(n)},mult(n){return this.clone()._mult(n)},div(n){return this.clone()._div(n)},rotate(n){return this.clone()._rotate(n)},rotateAround(n,e){return this.clone()._rotateAround(n,e)},matMult(n){return this.clone()._matMult(n)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(n){return this.x===n.x&&this.y===n.y},dist(n){return Math.sqrt(this.distSqr(n))},distSqr(n){const e=n.x-this.x,i=n.y-this.y;return e*e+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith(n){return this.angleWithSep(n.x,n.y)},angleWithSep(n,e){return Math.atan2(this.x*e-this.y*n,this.x*n+this.y*e)},_matMult(n){const e=n[2]*this.x+n[3]*this.y;return this.x=n[0]*this.x+n[1]*this.y,this.y=e,this},_add(n){return this.x+=n.x,this.y+=n.y,this},_sub(n){return this.x-=n.x,this.y-=n.y,this},_mult(n){return this.x*=n,this.y*=n,this},_div(n){return this.x/=n,this.y/=n,this},_multByPoint(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint(n){return this.x/=n.x,this.y/=n.y,this},_unit(){return this._div(this.mag()),this},_perp(){const n=this.y;return this.y=this.x,this.x=-n,this},_rotate(n){const e=Math.cos(n),i=Math.sin(n),r=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=r,this},_rotateAround(n,e){const i=Math.cos(n),r=Math.sin(n),a=e.y+r*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-r*(this.y-e.y),this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:Oe},Oe.convert=function(n){if(n instanceof Oe)return n;if(Array.isArray(n))return new Oe(+n[0],+n[1]);if(n.x!==void 0&&n.y!==void 0)return new Oe(+n.x,+n.y);throw new Error("Expected [x, y] or {x, y} point format")};const Ah=Math.PI/180,Ka=180/Math.PI;function kt(n){return n*Ah}function de(n){return n*Ka}const O=[[0,0],[1,0],[1,1],[0,1]];function U(n){if(n<=0)return 0;if(n>=1)return 1;const e=n*n,i=e*n;return 4*(n<.5?i:3*(n-e)+i-.75)}function X(n,e,i,r){const a=new Js(n,e,i,r);return function(h){return a.solve(h)}}const se=X(.25,.1,.25,1);function Y(n,e,i){return Math.min(i,Math.max(e,n))}function he(n,e,i){return(i=Y((i-n)/(e-n),0,1))*i*(3-2*i)}function ge(n,e,i){const r=i-e,a=((n-e)%r+r)%r+e;return a===e?i:a}function ue(n,e,i){if(!n.length)return i(null,[]);let r=n.length;const a=new Array(n.length);let h=null;n.forEach((u,p)=>{e(u,(_,g)=>{_&&(h=_),a[p]=g,--r===0&&i(h,a)})})}let be=1;function Be(){return be++}function De(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log2(n)))}function Ye(n,e){n.forEach(i=>{e[i]&&(e[i]=e[i].bind(e))})}function at(n,e,i){const r={};for(const a in n)r[a]=e.call(this,n[a],a,n);return r}function ct(n,e,i){const r={};for(const a in n)e.call(this,n[a],a,n)&&(r[a]=n[a]);return r}function yt(n){return Array.isArray(n)?n.map(yt):typeof n=="object"&&n?at(n,yt):n}function bt(n,e){for(let i=0;i<n.length;i++)if(e.indexOf(n[i])>=0)return!0;return!1}const _t={};function mt(n){_t[n]||(typeof console<"u"&&console.warn(n),_t[n]=!0)}function ri(n,e,i){return(i.y-n.y)*(e.x-n.x)>(e.y-n.y)*(i.x-n.x)}function $i(n){let e=0;for(let i,r,a=0,h=n.length,u=h-1;a<h;u=a++)i=n[a],r=n[u],e+=(r.x-i.x)*(i.y+r.y);return e}function Li([n,e,i]){const r=kt(e+90),a=kt(i);return{x:n*Math.cos(r)*Math.sin(a),y:n*Math.sin(r)*Math.sin(a),z:n*Math.cos(a),azimuthal:e,polar:i}}function ki(n){return(typeof self<"u"||n!==void 0)&&typeof WorkerGlobalScope<"u"&&(n!==void 0?n:self)instanceof WorkerGlobalScope}function fi(n){const e={};if(n.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,r,a,h)=>{const u=a||h;return e[r]=!u||u.toLowerCase(),""}),e["max-age"]){const i=parseInt(e["max-age"],10);isNaN(i)?delete e["max-age"]:e["max-age"]=i}return e}let Bt=null;function vi(n,e){return[n[4*e],n[4*e+1],n[4*e+2],n[4*e+3]]}function ni(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<r?e=a+1:i=a}return e}function mi(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<=r?e=a+1:i=a}return e}function bi(n){return n>0?1/(1.001-n):1+n}function Tn(n){return n>0?1-1/(1.001-n):-n}function _n(n,e,i){return(n-e.min)*(i.max-i.min)/(e.max-e.min)+i.min}const Ki={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!Ki.API_URL)return null;try{const n=new URL(Ki.API_URL);return n.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":n.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"https://api.mapbox.com/mapbox-gl-js/building-gen/building_gen_v1.2.4.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function Jr(n){return Ki.API_URL_REGEX.test(n)}function To(n){return Ki.API_SPRITE_REGEX.test(n)}let Qr,Ja,Qs,Yl,Tr,Ss;function Qa(){return Qr==null&&(Qr=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),Qr}const eo={now:()=>Yl!==void 0?Yl:performance.now(),setNow(n){Yl=n},restoreNow(){Yl=void 0},frame(n){const e=requestAnimationFrame(n);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(n,e=0){const{width:i,height:r}=n;Tr||(Tr=document.createElement("canvas"));const a=Tr.getContext("2d",{willReadFrequently:!0});if(!a)throw new Error("failed to create canvas 2d context");return(i>Tr.width||r>Tr.height)&&(Tr.width=i,Tr.height=r),a.clearRect(-e,-e,i+2*e,r+2*e),a.drawImage(n,0,0,i,r),a.getImageData(-e,-e,i+2*e,r+2*e)},resolveURL:n=>(Ja||(Ja=document.createElement("a")),Ja.href=n,Ja.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(Qs==null&&(Qs=window.matchMedia("(prefers-reduced-motion: reduce)")),Qs.matches)},hasCanvasFingerprintNoise(){if(Ss!==void 0)return Ss;if(!Qa())return Ss=!1,!1;const n=new OffscreenCanvas(85,1),e=n.getContext("2d",{willReadFrequently:!0});let i=0;for(let a=0;a<n.width;++a)e.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,e.fillRect(a,0,1,1);const r=e.getImageData(0,0,n.width,n.height);i=0;for(let a=0;a<r.data.length;++a)if(a%4!=3&&i++!==r.data[a])return Ss=!0,!0;return Ss=!1,!1}};function Mh(n,e){const i=n.indexOf("?");if(i<0)return`${n}?${new URLSearchParams(e).toString()}`;const r=new URLSearchParams(n.slice(i));for(const a in e)r.set(a,e[a]);return`${n.slice(0,i)}?${r.toString()}`}function Ph(n,e={persistentParams:[]}){const i=n.indexOf("?");if(i<0)return n;const r=new URLSearchParams,a=new URLSearchParams(n.slice(i));for(const u of e.persistentParams){const p=a.get(u);p&&r.set(u,p)}const h=r.toString();return`${n.slice(0,i)}${h.length>0?`?${h}`:""}`}const Gd="mapbox-tiles";let qd=500,Ch=50;const Rh=["language","worldview","jobid"];let gn;function Fr(){try{return caches}catch{}}function Or(){const n=Fr();n&&gn==null&&(gn=n.open(Gd))}let Sr=1/0;const to={supported:!1,testSupport:function(n){!Kl&&Es&&(Is?$d(n):$o=n)}};let $o,Es,Kl=!1,Is=!1;const Jl=typeof self<"u"?self:{};function $d(n){const e=n.createTexture();n.bindTexture(n.TEXTURE_2D,e);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,Es),n.isContextLost())return;to.supported=!0}catch{}n.deleteTexture(e),Kl=!0}Jl.document&&(Es=Jl.document.createElement("img"),Es.onload=function(){$o&&$d($o),$o=null,Is=!0},Es.onerror=function(){Kl=!0,$o=null},Es.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const el={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};Object.freeze(el);class ir extends Error{constructor(e,i,r){i===401&&Jr(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=i,this.url=r}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ql=ki()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,So=function(n,e){return/^file:/.test(i=n.url)||/^file:/.test(Ql())&&!/^\w+:/.test(i)?function(r,a){const h=new XMLHttpRequest;h.open(r.method||"GET",r.url,!0),r.type==="arrayBuffer"&&(h.responseType="arraybuffer");for(const u in r.headers)h.setRequestHeader(u,r.headers[u]);return r.type==="json"&&(h.responseType="text",h.setRequestHeader("Accept","application/json")),h.withCredentials=r.credentials==="include",h.onerror=()=>{a(new Error(h.statusText))},h.onload=()=>{if((h.status>=200&&h.status<300||h.status===0)&&h.response!==null){let u=h.response;if(r.type==="json")try{u=JSON.parse(h.response)}catch(_){return a(_)}const p=new Headers;h.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(_=>{const g=_.split(": "),v=g.shift(),b=g.join(": ");p.append(v,b)}),a(null,u,p)}else a(new ir(h.statusText,h.status,r.url))},h.send(r.body),{cancel:()=>h.abort()}}(n,e):function(r,a){const h=new AbortController,u=new Request(r.url,{method:r.method||"GET",body:r.body,credentials:r.credentials,headers:r.headers,referrer:Ql(),referrerPolicy:r.referrerPolicy,signal:h.signal});let p=!1,_=!1;const g=(v=u.url).indexOf("sku=")>0&&Jr(v);var v;r.type==="json"&&u.headers.set("Accept","application/json");const b=(E,I,C)=>{if(_)return;if(E&&E.message!=="SecurityError"&&mt(E.toString()),I&&C)return w(I);const z=Date.now();fetch(u).then(R=>{if(R.ok){const B=g?R.clone():null;return w(R,B,z)}return a(new ir(R.statusText,R.status,r.url))}).catch(R=>{R.name!=="AbortError"&&a(new Error(`${R.message} ${r.url}`))})},w=(E,I,C)=>{(r.type==="arrayBuffer"?E.arrayBuffer():r.type==="json"?E.json():E.text()).then(z=>{_||(I&&C&&function(R,B,k){if(Or(),gn==null)return;const j=fi(B.headers.get("cache-control")||"");if(j["no-store"])return;const H={status:B.status,statusText:B.statusText,headers:new Headers};B.headers.forEach((ie,oe)=>H.headers.set(oe,ie)),j["max-age"]&&H.headers.set("Expires",new Date(k+1e3*j["max-age"]).toUTCString());const $=H.headers.get("expires");if(!$||new Date($).getTime()-k<42e4)return;let re=Ph(R.url,{persistentParams:Rh});if(B.status===206){const ie=R.headers.get("Range");if(!ie)return;H.status=200,re=Mh(re,{range:ie})}const K=new Response((Q=B.status)!==200&&Q!==404&&[101,103,204,205,304].includes(Q)?null:B.body,H);var Q;Or(),gn!=null&&gn.then(ie=>ie.put(re,K)).catch(ie=>mt(ie.message))}(u,I,C),p=!0,a(null,z,E.headers))}).catch(z=>{_||a(new Error(z.message))})};return g?function(E,I){if(Or(),gn==null)return I(null);gn.then(C=>{let z=Ph(E.url,{persistentParams:Rh});const R=E.headers.get("Range");R&&(z=Mh(z,{range:R})),C.match(z).then(B=>{const k=function(j){if(!j)return!1;const H=new Date(j.headers.get("expires")||0),$=fi(j.headers.get("cache-control")||"");return Number(H)>Date.now()&&!$["no-cache"]}(B);C.delete(z).catch(I),k&&C.put(z,B.clone()).catch(I),I(null,B,k)}).catch(I)}).catch(I)}(u,b):b(null,null),{cancel:()=>{_=!0,p||h.abort()}}}(n,e);var i},tl=function(n,e){return So(Object.assign(n,{type:"arrayBuffer"}),e)};function dm(n){const e=document.createElement("a");return e.href=n,e.protocol===location.protocol&&e.host===location.host}let il,Nt;il=[],Nt=0;const ec=function(n,e){if(to.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Nt>=Ki.MAX_PARALLEL_IMAGE_REQUESTS){const h={requestParameters:n,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return il.push(h),h}Nt++;let i=!1;const r=()=>{if(!i)for(i=!0,Nt--;il.length&&Nt<Ki.MAX_PARALLEL_IMAGE_REQUESTS;){const h=il.shift(),{requestParameters:u,callback:p,cancelled:_}=h;_||(h.cancel=ec(u,p).cancel)}},a=tl(n,(h,u,p)=>{r(),h?e(h):u&&function(_,g){const v=new Blob([new Uint8Array(_)],{type:"image/png"});createImageBitmap(v).then(b=>{g(null,b)}).catch(b=>{g(new Error(`Could not load image because of ${b.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(u,(_,g)=>e(_,g,p))});return{cancel:()=>{a.cancel(),r()}}};var Dh,Hd,Zd,Ho={exports:{}},nl={exports:{}},rl={exports:{}},zh=function(){if(Zd)return Ho.exports;Zd=1;var n=(Dh||(Dh=1,nl.exports=function(i,r){var a,h,u,p,_,g,v,b;for(h=i.length-(a=3&i.length),u=r,_=3432918353,g=461845907,b=0;b<h;)v=255&i.charCodeAt(b)|(255&i.charCodeAt(++b))<<8|(255&i.charCodeAt(++b))<<16|(255&i.charCodeAt(++b))<<24,++b,u=27492+(65535&(p=5*(65535&(u=(u^=v=(65535&(v=(v=(65535&v)*_+(((v>>>16)*_&65535)<<16)&4294967295)<<15|v>>>17))*g+(((v>>>16)*g&65535)<<16)&4294967295)<<13|u>>>19))+((5*(u>>>16)&65535)<<16)&4294967295))+(((p>>>16)+58964&65535)<<16);switch(v=0,a){case 3:v^=(255&i.charCodeAt(b+2))<<16;case 2:v^=(255&i.charCodeAt(b+1))<<8;case 1:u^=v=(65535&(v=(v=(65535&(v^=255&i.charCodeAt(b)))*_+(((v>>>16)*_&65535)<<16)&4294967295)<<15|v>>>17))*g+(((v>>>16)*g&65535)<<16)&4294967295}return u^=i.length,u=2246822507*(65535&(u^=u>>>16))+((2246822507*(u>>>16)&65535)<<16)&4294967295,u=3266489909*(65535&(u^=u>>>13))+((3266489909*(u>>>16)&65535)<<16)&4294967295,(u^=u>>>16)>>>0}),nl.exports),e=(Hd||(Hd=1,rl.exports=function(i,r){for(var a,h=i.length,u=r^h,p=0;h>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(p)|(255&i.charCodeAt(++p))<<8|(255&i.charCodeAt(++p))<<16|(255&i.charCodeAt(++p))<<24))+((1540483477*(a>>>16)&65535)<<16),u=1540483477*(65535&u)+((1540483477*(u>>>16)&65535)<<16)^(a=1540483477*(65535&(a^=a>>>24))+((1540483477*(a>>>16)&65535)<<16)),h-=4,++p;switch(h){case 3:u^=(255&i.charCodeAt(p+2))<<16;case 2:u^=(255&i.charCodeAt(p+1))<<8;case 1:u=1540483477*(65535&(u^=255&i.charCodeAt(p)))+((1540483477*(u>>>16)&65535)<<16)}return u=1540483477*(65535&(u^=u>>>13))+((1540483477*(u>>>16)&65535)<<16),(u^=u>>>15)>>>0}),rl.exports);return Ho.exports=n,Ho.exports.murmur3=n,Ho.exports.murmur2=e,Ho.exports}(),tc=fr(zh);class Br{constructor(e,...i){Object.assign(this,i[0]||{}),this.type=e}}class ic extends Br{constructor(e,i={}){super("error",Object.assign({error:e},i))}}function Lh(n,e,i){i[n]&&i[n].indexOf(e)!==-1||(i[n]=i[n]||[],i[n].push(e))}function Fh(n,e,i){if(i&&i[n]){const r=i[n].indexOf(e);r!==-1&&i[n].splice(r,1)}}class kr{on(e,i){return this._listeners=this._listeners||{},Lh(e,i,this._listeners),this}off(e,i){return Fh(e,i,this._listeners),Fh(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},Lh(e,i,this._oneTimeListeners),this):new Promise(r=>{this.once(e,r)})}fire(e,i){const r=typeof e=="string"?new Br(e,i):e,a=r.type;if(this.listens(a)){r.target=this;const h=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const _ of h)_.call(this,r);const u=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const _ of u)Fh(a,_,this._oneTimeListeners),_.call(this,r);const p=this._eventedParent;if(p){const _=typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData;Object.assign(r,_),p.fire(r)}}else r instanceof ic&&console.error(r.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,i){return this._eventedParent=e,this._eventedParentData=i,this}}class qn{constructor(e){typeof e=="string"?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new qn(e)}static toString(e){return e.iconsetId?`${e.name}${e.iconsetId}`:e.name}static parse(e){const[i,r]=e.split("");return new qn({name:i,iconsetId:r})}static isEqual(e,i){return e.name===i.name&&e.iconsetId===i.iconsetId}toString(){return qn.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var nc,mr={},Oh=function(){if(nc)return mr;nc=1;var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function e(h){return(h=Math.round(h))<0?0:h>255?255:h}function i(h){return e(h[h.length-1]==="%"?parseFloat(h)/100*255:parseInt(h))}function r(h){return(u=h[h.length-1]==="%"?parseFloat(h)/100:parseFloat(h))<0?0:u>1?1:u;var u}function a(h,u,p){return p<0?p+=1:p>1&&(p-=1),6*p<1?h+(u-h)*p*6:2*p<1?u:3*p<2?h+(u-h)*(2/3-p)*6:h}try{mr.parseCSSColor=function(h){var u,p=h.replace(/ /g,"").toLowerCase();if(p in n)return n[p].slice();if(p[0]==="#")return p.length===4?(u=parseInt(p.substr(1),16))>=0&&u<=4095?[(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1]:null:p.length===7&&(u=parseInt(p.substr(1),16))>=0&&u<=16777215?[(16711680&u)>>16,(65280&u)>>8,255&u,1]:null;var _=p.indexOf("("),g=p.indexOf(")");if(_!==-1&&g+1===p.length){var v=p.substr(0,_),b=p.substr(_+1,g-(_+1)).split(","),w=1;switch(v){case"rgba":if(b.length!==4)return null;w=r(b.pop());case"rgb":return b.length!==3?null:[i(b[0]),i(b[1]),i(b[2]),w];case"hsla":if(b.length!==4)return null;w=r(b.pop());case"hsl":if(b.length!==3)return null;var E=(parseFloat(b[0])%360+360)%360/360,I=r(b[1]),C=r(b[2]),z=C<=.5?C*(I+1):C+I-C*I,R=2*C-z;return[e(255*a(R,z,E+1/3)),e(255*a(R,z,E)),e(255*a(R,z,E-1/3)),w];default:return null}}return null}}catch{}return mr}();class Wt{constructor(e,i,r,a=1){this.r=e,this.g=i,this.b=r,this.a=a}static parse(e){if(!e)return;if(e instanceof Wt)return e;if(typeof e!="string")return;const i=Oh.parseCSSColor(e);return i?new Wt(i[0]/255,i[1]/255,i[2]/255,i[3]):void 0}toString(){const[e,i,r,a]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*i)},${Math.round(255*r)},${a})`}toNonPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:h}=this;return new Wd(e,i,r,a,h)}toPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:h}=this;return new Xd(e,i*h,r*h,a*h,h)}clone(){return new Wt(this.r,this.g,this.b,this.a)}}class Bh{constructor(e,i,r,a,h,u=!1){if(this.premultiplied=!1,this.premultiplied=u,e){const p=e.image.height,_=p*p;this.premultiplied?(i=h===0?0:i/h*(p-1),r=h===0?0:r/h*(p-1),a=h===0?0:a/h*(p-1)):(i*=p-1,r*=p-1,a*=p-1),i=Math.max(0,Math.min(p-1,i)),r=Math.max(0,Math.min(p-1,r)),a=Math.max(0,Math.min(p-1,a));const g=Math.floor(i),v=Math.floor(r),b=Math.floor(a),w=Math.ceil(i),E=Math.ceil(r),I=Math.ceil(a),C=i-g,z=r-v,R=a-b,B=e.image.data,k=4*(g+v*_+b*p),j=4*(g+v*_+I*p),H=4*(g+E*_+b*p),$=4*(g+E*_+I*p),re=4*(w+v*_+b*p),K=4*(w+v*_+I*p),Q=4*(w+E*_+b*p),ie=4*(w+E*_+I*p);this.r=ut(ut(ut(B[k],B[j],R),ut(B[H],B[$],R),z),ut(ut(B[re],B[K],R),ut(B[Q],B[ie],R),z),C)/255*(this.premultiplied?h:1),this.g=ut(ut(ut(B[k+1],B[j+1],R),ut(B[H+1],B[$+1],R),z),ut(ut(B[re+1],B[K+1],R),ut(B[Q+1],B[ie+1],R),z),C)/255*(this.premultiplied?h:1),this.b=ut(ut(ut(B[k+2],B[j+2],R),ut(B[H+2],B[$+2],R),z),ut(ut(B[re+2],B[K+2],R),ut(B[Q+2],B[ie+2],R),z),C)/255*(this.premultiplied?h:1),this.a=h}else this.r=i,this.g=r,this.b=a,this.a=h}toArray(){const{r:e,g:i,b:r,a}=this;return[255*e,255*i,255*r,a]}toHslaArray(){let{r:e,g:i,b:r,a}=this;if(this.premultiplied){if(a===0)return[0,0,0,0];const I=1/a;e*=I,i*=I,r*=I}const h=Math.min(Math.max(e,0),1),u=Math.min(Math.max(i,0),1),p=Math.min(Math.max(r,0),1),_=Math.min(h,u,p),g=Math.max(h,u,p),v=g-_,b=.5*(_+g);if(v===0)return[0,0,100*b,a];const w=b>.5?v/(2-g-_):v/(g+_);let E;switch(g){case h:E=60*((u-p)/v+(u<p?6:0));break;case u:E=60*((p-h)/v+2);break;default:E=60*((h-u)/v+4)}return[E,100*w,100*b,a]}toArray01(){const{r:e,g:i,b:r,a}=this;return[e,i,r,a]}toArray01Scaled(e){const{r:i,g:r,b:a}=this;return[i*e,r*e,a*e]}toArray01Linear(){const{r:e,g:i,b:r,a}=this;return[Math.pow(e,2.2),Math.pow(i,2.2),Math.pow(r,2.2),a]}}class Wd extends Bh{constructor(e,i,r,a,h){super(e,i,r,a,h,!1)}}class Xd extends Bh{constructor(e,i,r,a,h){super(e,i,r,a,h,!0)}}function ut(n,e,i){return n*(1-i)+e*i}function kh(n,e,i){return n.map((r,a)=>ut(r,e[a],i))}Wt.black=new Wt(0,0,0,1),Wt.white=new Wt(1,1,1,1),Wt.transparent=new Wt(0,0,0,0),Wt.red=new Wt(1,0,0,1),Wt.blue=new Wt(0,0,1,1);var ol=Object.freeze({__proto__:null,array:kh,color:function(n,e,i){return new Wt(ut(n.r,e.r,i),ut(n.g,e.g,i),ut(n.b,e.b,i),ut(n.a,e.a,i))},number:ut});class nr extends Error{constructor(e,i){super(i),this.message=i,this.key=e}}class Zo{constructor(e,i=[]){this.parent=e,this.bindings={};for(const[r,a]of i)this.bindings[r]=a}concat(e){return new Zo(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const As={kind:"null"},tt={kind:"number"},$t={kind:"string"},Ht={kind:"boolean"},An={kind:"color"},Wo={kind:"object"},Xt={kind:"value"},rc={kind:"collator"},sl={kind:"formatted"},ea={kind:"resolvedImage"};function Sn(n,e){return{kind:"array",itemType:n,N:e}}function Hi(n){if(n.kind==="array"){const e=Hi(n.itemType);return typeof n.N=="number"?`array<${e}, ${n.N}>`:n.itemType.kind==="value"?"array":`array<${e}>`}return n.kind}const oc=[As,tt,$t,Ht,An,sl,Wo,Sn(Xt),ea];function al(n,e){if(e.kind==="error")return null;if(n.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!al(n.itemType,e.itemType))&&(typeof n.N!="number"||n.N===e.N))return null}else{if(n.kind===e.kind)return null;if(n.kind==="value"){for(const i of oc)if(!al(i,e))return null}}return`Expected ${Hi(n)} but found ${Hi(e)} instead.`}function Nh(n,e){return e.some(i=>i.kind===n.kind)}function ll(n,e){return e.some(i=>i==="null"?n===null:i==="array"?Array.isArray(n):i==="object"?n&&!Array.isArray(n)&&typeof n=="object":i===typeof n)}function sc(n,e){return n.kind==="array"&&e.kind==="array"?n.N===e.N&&sc(n.itemType,e.itemType):n.kind===e.kind}class Vh{constructor(e,i,r){this.sensitivity=e?i?"variant":"case":i?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,i){return this.collator.compare(e,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class ac{constructor(e,i,r,a,h){this.text=e.normalize?e.normalize():e,this.image=i,this.scale=r,this.fontStack=a,this.textColor=h}}class Nn{constructor(e){this.sections=e}static fromString(e){return new Nn([new ac(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||!!e.image&&e.image.hasPrimary())}static factory(e){return e instanceof Nn?e:Nn.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const i of this.sections){if(i.image){const a=i.image.getPrimary().id.toString();e.push(["image",a]);continue}e.push(i.text);const r={};i.fontStack&&(r["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(r["font-scale"]=i.scale),i.textColor&&(r["text-color"]=["rgba"].concat(i.textColor.toNonPremultipliedRenderColor(null).toArray())),e.push(r)}return e}}class Nr{constructor(e,i={}){this.id=qn.from(e),this.params=i.params,this.sx=i.sx||1,this.sy=i.sy||1}toString(){return JSON.stringify(this)}static parse(e){let i,r,a,h;try{({id:i,params:r,sx:a,sy:h}=JSON.parse(e)||{})}catch{return null}return i?new Nr(i,{params:r,sx:a,sy:h}):null}scaleSelf(e,i=e){return this.sx*=e,this.sy*=i,this}}class yn{constructor(e,i,r,a,h=!1){this.primaryId=qn.from(e),this.primaryOptions=i,r&&(this.secondaryId=qn.from(r)),this.secondaryOptions=a,this.available=h}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new Nr(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new Nr(this.secondaryId,this.secondaryOptions):null}static from(e){return typeof e=="string"?yn.build({name:e}):e}static build(e,i,r,a){return!e||typeof e=="object"&&!("name"in e)?null:new yn(e,r,i,a)}}function Yd(n,e,i,r){return typeof n=="number"&&n>=0&&n<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof i=="number"&&i>=0&&i<=255?r===void 0||typeof r=="number"&&r>=0&&r<=1?null:`Invalid rgba value [${[n,e,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof r=="number"?[n,e,i,r]:[n,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Ms(n){if(n===null||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||n instanceof Wt||n instanceof Vh||n instanceof Nn||n instanceof yn)return!0;if(Array.isArray(n)){for(const e of n)if(!Ms(e))return!1;return!0}if(typeof n=="object"){for(const e in n)if(!Ms(n[e]))return!1;return!0}return!1}function Zi(n){if(n===null)return As;if(typeof n=="string")return $t;if(typeof n=="boolean")return Ht;if(typeof n=="number")return tt;if(n instanceof Wt)return An;if(n instanceof Vh)return rc;if(n instanceof Nn)return sl;if(n instanceof yn)return ea;if(Array.isArray(n)){const e=n.length;let i;for(const r of n){const a=Zi(r);if(i){if(i===a)continue;i=Xt;break}i=a}return Sn(i||Xt,e)}return Wo}function io(n){const e=typeof n;return n===null?"":e==="string"||e==="number"||e==="boolean"?String(n):n instanceof Nn||n instanceof yn||n instanceof Wt?n.toString():JSON.stringify(n)}class Eo{constructor(e,i){this.type=e,this.value=i}static parse(e,i){if(e.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Ms(e[1]))return i.error("invalid value");const r=e[1];let a=Zi(r);const h=i.expectedType;return a.kind!=="array"||a.N!==0||!h||h.kind!=="array"||typeof h.N=="number"&&h.N!==0||(a=h),new Eo(a,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Wt?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof Nn?this.value.serialize():this.value}}class Ji{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const Uh={string:$t,number:tt,boolean:Ht,object:Wo};class Vn{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");let r,a=1;const h=e[0];if(h==="array"){let p,_;if(e.length>2){const g=e[1];if(typeof g!="string"||!(g in Uh)||g==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);p=Uh[g],a++}else p=Xt;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return i.error('The length argument to "array" must be a positive integer literal',2);_=e[2],a++}r=Sn(p,_)}else r=Uh[h];const u=[];for(;a<e.length;a++){const p=i.parse(e[a],a,Xt);if(!p)return null;u.push(p)}return new Vn(r,u)}evaluate(e){for(let i=0;i<this.args.length;i++){const r=this.args[i].evaluate(e);if(!al(this.type,Zi(r)))return r;if(i===this.args.length-1)throw new Ji(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${Hi(Zi(r))} but was expected to be of type ${Hi(this.type)}.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,i=[e.kind];if(e.kind==="array"){const r=e.itemType;if(r.kind==="string"||r.kind==="number"||r.kind==="boolean"){i.push(r.kind);const a=e.N;(typeof a=="number"||this.args.length>1)&&i.push(a)}}return i.concat(this.args.map(r=>r.serialize()))}}class xt{constructor(e){this.type=sl,this.sections=e}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[1];if(!Array.isArray(r)&&typeof r=="object")return i.error("First argument must be an image or text section.");const a=[];let h=!1;for(let u=1;u<=e.length-1;++u){const p=e[u];if(h&&typeof p=="object"&&!Array.isArray(p)){h=!1;let _=null;if(p["font-scale"]&&(_=i.parseObjectValue(p["font-scale"],u,"font-scale",tt),!_))return null;let g=null;if(p["text-font"]&&(g=i.parseObjectValue(p["text-font"],u,"text-font",Sn($t)),!g))return null;let v=null;if(p["text-color"]&&(v=i.parseObjectValue(p["text-color"],u,"text-color",An),!v))return null;const b=a[a.length-1];b.scale=_,b.font=g,b.textColor=v}else{const _=i.parse(e[u],u,Xt);if(!_)return null;const g=_.type.kind;if(g!=="string"&&g!=="value"&&g!=="null"&&g!=="resolvedImage")return i.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");h=!0,a.push({content:_,scale:null,font:null,textColor:null})}}return new xt(a)}evaluate(e){return new Nn(this.sections.map(i=>{const r=i.content.evaluate(e);return sc(Zi(r),ea)?new ac("",r,null,null,null):new ac(io(r),null,i.scale?i.scale.evaluate(e):null,i.font?i.font.evaluate(e).join(","):null,i.textColor?i.textColor.evaluate(e):null)}))}eachChild(e){for(const i of this.sections)e(i.content),i.scale&&e(i.scale),i.font&&e(i.font),i.textColor&&e(i.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const i of this.sections){e.push(i.content.serialize());const r={};i.scale&&(r["font-scale"]=i.scale.serialize()),i.font&&(r["text-font"]=i.font.serialize()),i.textColor&&(r["text-color"]=i.textColor.serialize()),e.push(r)}return e}}class rt{constructor(e,i,r,a){this._imageWarnHistory={},this.type=ea,this.namePrimary=e,this.nameSecondary=i,r&&(this.paramsPrimary=r.params,this.iconsetIdPrimary=r.iconset?r.iconset.id:void 0),a&&(this.paramsSecondary=a.params,this.iconsetIdSecondary=a.iconset?a.iconset.id:void 0)}static parse(e,i){if(e.length<2)return i.error("Expected two or more arguments.");let r=1;const a=[];function h(){if(r<e.length){const p=i.parse(e[r],r++,$t);return p?(a.push({image:p,options:{}}),!0):(i.error(a.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function u(){if(r<e.length){const _=e[r];if((p=_)===null||typeof p!="object"||Array.isArray(p))return!0;const g=_.params,v=_.iconset,b=i.concat(r);if(!g&&!v)return r++,!0;if(g){if(typeof g!="object"||g.constructor!==Object)return b.error('Image options "params" should be an object'),!1;const w={},E=b.concat(void 0,"params");for(const I in g){if(!I)return E.error("Image parameter name should be non-empty"),!1;const C=E.concat(void 0,I).parse(g[I],void 0,An,void 0,{typeAnnotation:"coerce"});if(!C)return!1;w[I]=C}a[a.length-1].options.params=w}if(v){if(typeof v!="object"||v.constructor!==Object)return b.error('Image options "iconset" should be an object'),!1;if(!v.id)return b.error('Image options "iconset" should have an "id" property'),!1;a[a.length-1].options.iconset=v}return r++,!0}var p;return!0}for(let p=0;p<2;p++)if(!h()||!u())return;return new rt(a[0].image,a[1]?a[1].image:void 0,a[0].options,a[1]?a[1].options:void 0)}evaluateParams(e,i){const r={};if(i){for(const a in i)if(i[a])try{r[a]=i[a].evaluate(e)}catch{continue}if(Object.keys(r).length!==0)return{params:r}}}evaluate(e){const i={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},r=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,a=yn.build(i,r,this.paramsPrimary?this.evaluateParams(e,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(e,this.paramsSecondary):void 0);if(a&&e.availableImages){const h=a.getPrimary().id;if(a.available=e.availableImages.some(u=>qn.isEqual(u,h)),a.available){const u=a.getSecondary()?a.getSecondary().id:null;u&&(a.available=e.availableImages.some(p=>qn.isEqual(p,u)))}}return a}eachChild(e){if(e(this.namePrimary),this.paramsPrimary)for(const i in this.paramsPrimary)this.paramsPrimary[i]&&e(this.paramsPrimary[i]);if(this.nameSecondary&&(e(this.nameSecondary),this.paramsSecondary))for(const i in this.paramsSecondary)this.paramsSecondary[i]&&e(this.paramsSecondary[i])}outputDefined(){return!1}serializeOptions(e,i){const r={};if(i&&(r.iconset={id:i}),e){r.params={};for(const a in e)e[a]&&(r.params[a]=e[a].serialize())}return Object.keys(r).length>0?r:void 0}serialize(){const e=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const i=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);i&&e.push(i)}if(this.nameSecondary&&(e.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const i=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);i&&e.push(i)}return e}}function ta(n){return cl(n)?"string":ia(n)?"number":ht(n)?"boolean":Array.isArray(n)?"array":n===null?"null":dt(n)?"object":typeof n}function dt(n){return n!=null&&!Array.isArray(n)&&typeof n!="function"&&!(n instanceof String||n instanceof Number||n instanceof Boolean)&&typeof n=="object"}function cl(n){return typeof n=="string"||n instanceof String}function ia(n){return typeof n=="number"||n instanceof Number}function ht(n){return typeof n=="boolean"||n instanceof Boolean}const Kd={"to-boolean":Ht,"to-color":An,"to-number":tt,"to-string":$t};class Vr{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[0],a=[];let h=As;if(r==="to-array"){if(!Array.isArray(e[1]))return null;const u=e[1].length;if(i.expectedType){if(i.expectedType.kind!=="array")return i.error(`Expected ${i.expectedType.kind} but found array.`);h=Sn(i.expectedType.itemType,u)}else{if(!(u>0&&Ms(e[1][0])))return null;h=Sn(Zi(e[1][0]),u)}for(let p=0;p<u;p++){const _=e[1][p];let g;if(Array.isArray(_))g=i.parse(_,void 0,h.itemType);else{const v=ta(_);if(v!==h.itemType.kind)return i.error(`Expected ${h.itemType.kind} but found ${v}.`);g=i.registry.literal.parse(["literal",_===void 0?null:_],i)}if(!g)return null;a.push(g)}}else{if((r==="to-boolean"||r==="to-string")&&e.length!==2)return i.error("Expected one argument.");h=Kd[r];for(let u=1;u<e.length;u++){const p=i.parse(e[u],u,Xt);if(!p)return null;a.push(p)}}return new Vr(h,a)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let i,r;for(const a of this.args){if(i=a.evaluate(e),r=null,i instanceof Wt)return i;if(typeof i=="string"){const h=e.parseColor(i);if(h)return h}else if(Array.isArray(i)&&(r=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:Yd(i[0],i[1],i[2],i[3]),!r))return new Wt(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Ji(r||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const r of this.args){if(i=r.evaluate(e),i===null)return 0;const a=Number(i);if(!isNaN(a))return a}throw new Ji(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?Nn.fromString(io(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?yn.build(io(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(i=>i.evaluate(e)):io(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new xt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new rt(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{e.push(i.serialize())}),e}}const Jd=["Unknown","Point","LineString","Polygon"];class lc{constructor(e,i,r){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=e,this.options=i,this.iconImageUseTheme=r}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Jd[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,i=this.featureDistanceData.scale,{x:r,y:a}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(r*i-e[0])+this.featureDistanceData.bearing[1]*(a*i-e[1])}return 0}parseColor(e){let i=this._parseColorCache[e];return i||(i=this._parseColorCache[e]=Wt.parse(e)),i}getConfig(e){return this.options?this.options.get(e):null}}class Mn{constructor(e,i,r,a,h){this.name=e,this.type=i,this._evaluate=r,this.args=a,this._overloadIndex=h}evaluate(e){if(!this._evaluate){const i=Mn.definitions[this.name];this._evaluate=Array.isArray(i)?i[2]:i.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,i){const r=e[0],a=Mn.definitions[r];if(!a)return i.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);const h=Array.isArray(a)?a[0]:a.type,u=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,p=[];let _=null,g=-1;for(const[v,b]of u){if(Array.isArray(v)&&v.length!==e.length-1)continue;p.push(v),g++,_=new vc(i.registry,i.path,null,i.scope,void 0,i._scope,i.options,i.iconImageUseTheme);const w=[];let E=!1;for(let I=1;I<e.length;I++){const C=e[I],z=Array.isArray(v)?v[I-1]:v.type,R=_.parse(C,1+w.length,z);if(!R){E=!0;break}w.push(R)}if(!E)if(Array.isArray(v)&&v.length!==w.length)_.error(`Expected ${v.length} arguments, but found ${w.length} instead.`);else{for(let I=0;I<w.length;I++){const C=Array.isArray(v)?v[I]:v.type,z=w[I];_.concat(I+1).checkSubtype(C,z.type)}if(_.errors.length===0)return new Mn(r,h,b,w,g)}}if(p.length===1)i.errors.push(..._.errors);else{const v=(p.length?p:u.map(([w])=>w)).map(pm).join(" | "),b=[];for(let w=1;w<e.length;w++){const E=i.parse(e[w],1+b.length);if(!E)return null;b.push(Hi(E.type))}i.error(`Expected arguments of type ${v}, but found (${b.join(", ")}) instead.`)}return null}static register(e,i){Mn.definitions=i;for(const r in i)e[r]=Mn}}function pm(n){return Array.isArray(n)?`(${n.map(Hi).join(", ")})`:`(${Hi(n.type)}...)`}class na{constructor(e,i,r){this.type=rc,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error("Expected one argument.");const r=e[1];if(typeof r!="object"||Array.isArray(r))return i.error("Collator options argument must be an object.");const a=r["case-sensitive"]===void 0?i.parse(!1,1,Ht):i.parseObjectValue(r["case-sensitive"],1,"case-sensitive",Ht);if(!a)return null;const h=r["diacritic-sensitive"]===void 0?i.parse(!1,1,Ht):i.parseObjectValue(r["diacritic-sensitive"],1,"diacritic-sensitive",Ht);if(!h)return null;let u=null;return r.locale&&(u=i.parseObjectValue(r.locale,1,"locale",$t),!u)?null:new na(a,h,u)}evaluate(e){return new Vh(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}function Xo(n,e,i=0,r=n.length-1,a=Yo){for(;r>i;){if(r-i>600){const _=r-i+1,g=e-i+1,v=Math.log(_),b=.5*Math.exp(2*v/3),w=.5*Math.sqrt(v*b*(_-b)/_)*(g-_/2<0?-1:1);Xo(n,e,Math.max(i,Math.floor(e-g*b/_+w)),Math.min(r,Math.floor(e+(_-g)*b/_+w)),a)}const h=n[e];let u=i,p=r;for(Ps(n,i,e),a(n[r],h)>0&&Ps(n,i,r);u<p;){for(Ps(n,u,p),u++,p--;a(n[u],h)<0;)u++;for(;a(n[p],h)>0;)p--}a(n[i],h)===0?Ps(n,i,p):(p++,Ps(n,p,r)),p<=e&&(i=p+1),e<=p&&(r=p-1)}}function Ps(n,e,i){const r=n[e];n[e]=n[i],n[i]=r}function Yo(n,e){return n<e?-1:n>e?1:0}function Ko(n){let e=0;for(let i,r,a=0,h=n.length,u=h-1;a<h;u=a++)i=n[a],r=n[u],e+=(r.x-i.x)*(i.y+r.y);return e}function hl(n,e){n[0]=Math.min(n[0],e[0]),n[1]=Math.min(n[1],e[1]),n[2]=Math.max(n[2],e[0]),n[3]=Math.max(n[3],e[1])}function ul(n,e){return!(n[0]<=e[0]||n[2]>=e[2]||n[1]<=e[1]||n[3]>=e[3])}function fm(n,e,i){const r=n[0]-e[0],a=n[1]-e[1],h=n[0]-i[0],u=n[1]-i[1];return r*u-h*a===0&&r*h<=0&&a*u<=0}function cc(n,e,i){return e[1]>n[1]!=i[1]>n[1]&&n[0]<(i[0]-e[0])*(n[1]-e[1])/(i[1]-e[1])+e[0]}function Cs(n,e,i=!1){let r=!1;for(let a=0,h=e.length;a<h;a++){const u=e[a];for(let p=0,_=u.length,g=_-1;p<_;g=p++){const v=u[g],b=u[p];if(fm(n,v,b))return i;cc(n,v,b)&&(r=!r)}}return r}function Jo(n,e,i,r){const a=r[0]-i[0],h=r[1]-i[1],u=(n[0]-i[0])*h-a*(n[1]-i[1]),p=(e[0]-i[0])*h-a*(e[1]-i[1]);return u>0&&p<0||u<0&&p>0}function hc(n,e,i,r){return(a=[r[0]-i[0],r[1]-i[1]])[0]*(h=[e[0]-n[0],e[1]-n[1]])[1]-a[1]*h[0]!==0&&!(!Jo(n,e,i,r)||!Jo(i,r,n,e));var a,h}function jh(n){const e=new Oe(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new Oe(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const r of n[0])e.x>r.x&&(e.x=r.x),e.y>r.y&&(e.y=r.y),i.x<r.x&&(i.x=r.x),i.y<r.y&&(i.y=r.y);return{min:e,max:i}}const no=8192;function mm(n,e){const i=(180+n[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*no),Math.round(r*a*no)]}function _m(n,e){for(let i=0;i<e.length;i++)if(Cs(n,e[i]))return!0;return!1}function Qd(n,e,i){for(const r of i)for(let a=0,h=r.length,u=h-1;a<h;u=a++)if(hc(n,e,r[u],r[a]))return!0;return!1}function ep(n,e){for(let i=0;i<n.length;++i)if(!Cs(n[i],e))return!1;for(let i=0;i<n.length-1;++i)if(Qd(n[i],n[i+1],e))return!1;return!0}function gm(n,e){for(let i=0;i<e.length;i++)if(ep(n,e[i]))return!0;return!1}function Gh(n,e,i){const r=[];for(let a=0;a<n.length;a++){const h=[];for(let u=0;u<n[a].length;u++){const p=mm(n[a][u],i);hl(e,p),h.push(p)}r.push(h)}return r}function Qo(n,e,i){const r=[];for(let a=0;a<n.length;a++){const h=Gh(n[a],e,i);r.push(h)}return r}function tp(n,e,i,r){if(n[0]<i[0]||n[0]>i[2]){const a=.5*r;let h=n[0]-i[0]>a?-r:i[0]-n[0]>a?r:0;h===0&&(h=n[0]-i[2]>a?-r:i[2]-n[0]>a?r:0),n[0]+=h}hl(e,n)}function ip(n,e,i,r){const a=Math.pow(2,r.z)*no,h=[r.x*no,r.y*no],u=[];if(!n)return u;for(const p of n)for(const _ of p){const g=[_.x+h[0],_.y+h[1]];tp(g,e,i,a),u.push(g)}return u}function uc(n,e,i,r){const a=Math.pow(2,r.z)*no,h=[r.x*no,r.y*no],u=[];if(!n)return u;for(const _ of n){const g=[];for(const v of _){const b=[v.x+h[0],v.y+h[1]];hl(e,b),g.push(b)}u.push(g)}if(e[2]-e[0]<=a/2){(p=e)[0]=p[1]=1/0,p[2]=p[3]=-1/0;for(const _ of u)for(const g of _)tp(g,e,i,a)}var p;return u}class es{constructor(e,i){this.type=Ht,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Ms(e[1])){const r=e[1];if(r.type==="FeatureCollection")for(let a=0;a<r.features.length;++a){const h=r.features[a].geometry.type;if(h==="Polygon"||h==="MultiPolygon")return new es(r,r.features[a].geometry)}else if(r.type==="Feature"){const a=r.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new es(r,r.geometry)}else if(r.type==="Polygon"||r.type==="MultiPolygon")return new es(r,r)}return i.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],h=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(!u)return!1;if(r.type==="Polygon"){const p=Gh(r.coordinates,h,u),_=ip(i.geometry(),a,h,u);if(!ul(a,h))return!1;for(const g of _)if(!Cs(g,p))return!1}if(r.type==="MultiPolygon"){const p=Qo(r.coordinates,h,u),_=ip(i.geometry(),a,h,u);if(!ul(a,h))return!1;for(const g of _)if(!_m(g,p))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],h=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(!u)return!1;if(r.type==="Polygon"){const p=Gh(r.coordinates,h,u),_=uc(i.geometry(),a,h,u);if(!ul(a,h))return!1;for(const g of _)if(!ep(g,p))return!1}if(r.type==="MultiPolygon"){const p=Qo(r.coordinates,h,u),_=uc(i.geometry(),a,h,u);if(!ul(a,h))return!1;for(const g of _)if(!gm(g,p))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const dl={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},Er=1/298.257223563,qh=Er*(2-Er),ra=Math.PI/180;class oa{static fromTile(e,i,r){const a=Math.PI*(1-2*(e+.5)/Math.pow(2,i)),h=Math.atan(.5*(Math.exp(a)-Math.exp(-a)))/ra;return new oa(h,r)}static get units(){return dl}constructor(e,i){if(e===void 0)throw new Error("No latitude given.");if(i&&!dl[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(dl).join(", ")}`);const r=6378.137*ra*(i?dl[i]:1),a=Math.cos(e*ra),h=1/(1-qh*(1-a*a)),u=Math.sqrt(h);this.kx=r*u*a,this.ky=r*u*h*(1-qh)}distance(e,i){const r=_r(e[0]-i[0])*this.kx,a=(e[1]-i[1])*this.ky;return Math.sqrt(r*r+a*a)}bearing(e,i){const r=_r(i[0]-e[0])*this.kx;return Math.atan2(r,(i[1]-e[1])*this.ky)/ra}destination(e,i,r){const a=r*ra;return this.offset(e,Math.sin(a)*i,Math.cos(a)*i)}offset(e,i,r){return[e[0]+i/this.kx,e[1]+r/this.ky]}lineDistance(e){let i=0;for(let r=0;r<e.length-1;r++)i+=this.distance(e[r],e[r+1]);return i}area(e){let i=0;for(let r=0;r<e.length;r++){const a=e[r];for(let h=0,u=a.length,p=u-1;h<u;p=h++)i+=_r(a[h][0]-a[p][0])*(a[h][1]+a[p][1])*(r?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(e,i){let r=0;if(i<=0)return e[0];for(let a=0;a<e.length-1;a++){const h=e[a],u=e[a+1],p=this.distance(h,u);if(r+=p,r>i)return dc(h,u,(i-(r-p))/p)}return e[e.length-1]}pointToSegmentDistance(e,i,r){let[a,h]=i,u=_r(r[0]-a)*this.kx,p=(r[1]-h)*this.ky;if(u!==0||p!==0){const _=(_r(e[0]-a)*this.kx*u+(e[1]-h)*this.ky*p)/(u*u+p*p);_>1?(a=r[0],h=r[1]):_>0&&(a+=u/this.kx*_,h+=p/this.ky*_)}return u=_r(e[0]-a)*this.kx,p=(e[1]-h)*this.ky,Math.sqrt(u*u+p*p)}pointOnLine(e,i){let r=1/0,a=e[0][0],h=e[0][1],u=0,p=0;for(let _=0;_<e.length-1;_++){let g=e[_][0],v=e[_][1],b=_r(e[_+1][0]-g)*this.kx,w=(e[_+1][1]-v)*this.ky,E=0;b===0&&w===0||(E=(_r(i[0]-g)*this.kx*b+(i[1]-v)*this.ky*w)/(b*b+w*w),E>1?(g=e[_+1][0],v=e[_+1][1]):E>0&&(g+=b/this.kx*E,v+=w/this.ky*E)),b=_r(i[0]-g)*this.kx,w=(i[1]-v)*this.ky;const I=b*b+w*w;I<r&&(r=I,a=g,h=v,u=_,p=E)}return{point:[a,h],index:u,t:Math.max(0,Math.min(1,p))}}lineSlice(e,i,r){let a=this.pointOnLine(r,e),h=this.pointOnLine(r,i);if(a.index>h.index||a.index===h.index&&a.t>h.t){const g=a;a=h,h=g}const u=[a.point],p=a.index+1,_=h.index;!$h(r[p],u[0])&&p<=_&&u.push(r[p]);for(let g=p+1;g<=_;g++)u.push(r[g]);return $h(r[_],h.point)||u.push(h.point),u}lineSliceAlong(e,i,r){let a=0;const h=[];for(let u=0;u<r.length-1;u++){const p=r[u],_=r[u+1],g=this.distance(p,_);if(a+=g,a>e&&h.length===0&&h.push(dc(p,_,(e-(a-g))/g)),a>=i)return h.push(dc(p,_,(i-(a-g))/g)),h;a>e&&h.push(_)}return h}bufferPoint(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[0]+a,e[1]+r]}bufferBBox(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[2]+a,e[3]+r]}insideBBox(e,i){return _r(e[0]-i[0])>=0&&_r(e[0]-i[2])<=0&&e[1]>=i[1]&&e[1]<=i[3]}}function $h(n,e){return n[0]===e[0]&&n[1]===e[1]}function dc(n,e,i){const r=_r(e[0]-n[0]);return[n[0]+r*i,n[1]+(e[1]-n[1])*i]}function _r(n){for(;n<-180;)n+=360;for(;n>180;)n-=360;return n}class pl{constructor(e=[],i=(r,a)=>r<a?-1:r>a?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;const e=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:i,compare:r}=this,a=i[e];for(;e>0;){const h=e-1>>1,u=i[h];if(r(a,u)>=0)break;i[e]=u,e=h}i[e]=a}_down(e){const{data:i,compare:r}=this,a=this.length>>1,h=i[e];for(;e<a;){let u=1+(e<<1);const p=u+1;if(p<this.length&&r(i[p],i[u])<0&&(u=p),r(i[u],h)>=0)break;i[e]=i[u],e=u}i[e]=h}}var $e=8192;function Hh(n,e){return e.dist-n.dist}function Zh(n){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}function fl(n){return n[1]-n[0]+1}function ro(n,e){const i=n[1]>=n[0]&&n[1]<e;return i||console.warn("Distance Expression: Index is out of range"),i}function pc(n,e){if(n[0]>n[1])return[null,null];const i=fl(n);if(e){if(i===2)return[n,null];const r=Math.floor(i/2);return[[n[0],n[0]+r],[n[0]+r,n[1]]]}{if(i===1)return[n,null];const r=Math.floor(i/2)-1;return[[n[0],n[0]+r],[n[0]+r+1,n[1]]]}}function Rs(n,e){const i=[1/0,1/0,-1/0,-1/0];if(!ro(e,n.length))return i;for(let r=e[0];r<=e[1];++r)hl(i,n[r]);return i}function fc(n){const e=[1/0,1/0,-1/0,-1/0];for(let i=0;i<n.length;++i)for(let r=0;r<n[i].length;++r)hl(e,n[i][r]);return e}function Io(n,e,i){if(Zh(n)||Zh(e))return NaN;let r=0,a=0;return n[2]<e[0]&&(r=e[0]-n[2]),n[0]>e[2]&&(r=n[0]-e[2]),n[1]>e[3]&&(a=n[1]-e[3]),n[3]<e[1]&&(a=e[1]-n[3]),i.distance([0,0],[r,a])}function Wh(n){return 360*n-180}function mc(n){return 360/Math.PI*Math.atan(Math.exp((180-360*n)*Math.PI/180))-90}function ml(n,e,i=8192){const r=Math.pow(2,e.z),a=(n.y/i+e.y)/r;return[Wh((n.x/i+e.x)/r),mc(a)]}function np(n,e){const i=[];for(let r=0;r<n.length;++r)i.push(ml(n[r],e));return i}function rp(n,e,i){const r=i.pointOnLine(e,n).point;return i.distance(n,r)}function op(n,e,i,r,a){const h=i.slice(r[0],r[1]+1);let u=1/0;for(let p=e[0];p<=e[1];++p)if((u=Math.min(u,rp(n[p],h,a)))===0)return 0;return u}function _c(n,e,i,r,a){const h=Math.min(a.pointToSegmentDistance(n,i,r),a.pointToSegmentDistance(e,i,r)),u=Math.min(a.pointToSegmentDistance(i,n,e),a.pointToSegmentDistance(r,n,e));return Math.min(h,u)}function sa(n,e,i,r,a){if(!ro(e,n.length)||!ro(r,i.length))return NaN;let h=1/0;for(let u=e[0];u<e[1];++u)for(let p=r[0];p<r[1];++p){if(hc(n[u],n[u+1],i[p],i[p+1]))return 0;h=Math.min(h,_c(n[u],n[u+1],i[p],i[p+1],a))}return h}function Lt(n,e,i,r,a){if(!ro(e,n.length)||!ro(r,i.length))return NaN;let h=1/0;for(let u=e[0];u<=e[1];++u)for(let p=r[0];p<=r[1];++p)if((h=Math.min(h,a.distance(n[u],i[p])))===0)return h;return h}function ym(n,e,i){if(Cs(n,e,!0))return 0;let r=1/0;for(const a of e){const h=a.length;if(h<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(a[0]!==a[h-1]&&(r=Math.min(r,i.pointToSegmentDistance(n,a[h-1],a[0])))===0||(r=Math.min(r,rp(n,a,i)))===0)return r}return r}function xm(n,e,i,r){if(!ro(e,n.length))return NaN;for(let h=e[0];h<=e[1];++h)if(Cs(n[h],i,!0))return 0;let a=1/0;for(let h=e[0];h<e[1];++h)for(const u of i)for(let p=0,_=u.length,g=_-1;p<_;g=p++){if(hc(n[h],n[h+1],u[g],u[p]))return 0;a=Math.min(a,_c(n[h],n[h+1],u[g],u[p],r))}return a}function sp(n,e){for(const i of n)for(let r=0;r<=i.length-1;++r)if(Cs(i[r],e,!0))return!0;return!1}function ap(n,e,i,r=1/0){const a=fc(n),h=fc(e);if(r!==1/0&&Io(a,h,i)>=r)return r;if(ul(a,h)){if(sp(n,e))return 0}else if(sp(e,n))return 0;let u=r;for(const p of n)for(let _=0,g=p.length,v=g-1;_<g;v=_++)for(const b of e)for(let w=0,E=b.length,I=E-1;w<E;I=w++){if(hc(p[v],p[_],b[I],b[w]))return 0;u=Math.min(u,_c(p[v],p[_],b[I],b[w],i))}return u}function gc(n,e,i,r,a,h,u){if(h===null||u===null)return;const p=Io(Rs(r,h),Rs(a,u),i);p<e&&n.push({dist:p,range1:h,range2:u})}function wi(n,e,i,r,a=1/0){let h=Math.min(r.distance(n[0],i[0][0]),a);if(h===0)return h;const u=new pl([{dist:0,range1:[0,n.length-1],range2:[0,0]}],Hh),p=e?50:100,_=fc(i);for(;u.length;){const g=u.pop();if(g.dist>=h)continue;const v=g.range1;if(fl(v)<=p){if(!ro(v,n.length))return NaN;if(e){const b=xm(n,v,i,r);if((h=Math.min(h,b))===0)return h}else for(let b=v[0];b<=v[1];++b){const w=ym(n[b],i,r);if((h=Math.min(h,w))===0)return h}}else{const b=pc(v,e);if(b[0]!==null){const w=Io(Rs(n,b[0]),_,r);w<h&&u.push({dist:w,range1:b[0],range2:[0,0]})}if(b[1]!==null){const w=Io(Rs(n,b[1]),_,r);w<h&&u.push({dist:w,range1:b[1],range2:[0,0]})}}}return h}function lp(n,e,i,r,a,h=1/0){let u=Math.min(h,a.distance(n[0],i[0]));if(u===0)return u;const p=new pl([{dist:0,range1:[0,n.length-1],range2:[0,i.length-1]}],Hh),_=e?50:100,g=r?50:100;for(;p.length;){const v=p.pop();if(v.dist>=u)continue;const b=v.range1,w=v.range2;if(fl(b)<=_&&fl(w)<=g){if(!ro(b,n.length)||!ro(w,i.length))return NaN;if(e&&r?u=Math.min(u,sa(n,b,i,w,a)):e||r?e&&!r?u=Math.min(u,op(i,w,n,b,a)):!e&&r&&(u=Math.min(u,op(n,b,i,w,a))):u=Math.min(u,Lt(n,b,i,w,a)),u===0)return u}else{const E=pc(b,e),I=pc(w,r);gc(p,u,a,n,i,E[0],I[0]),gc(p,u,a,n,i,E[0],I[1]),gc(p,u,a,n,i,E[1],I[0]),gc(p,u,a,n,i,E[1],I[1])}}return u}function Xh(n,e,i,r,a=1/0){let h=a;const u=Rs(n,[0,n.length-1]);for(const p of i)if(!(h!==1/0&&Io(u,Rs(p,[0,p.length-1]),r)>=h)&&(h=Math.min(h,lp(n,e,p,!0,r,h)),h===0))return h;return h}function yc(n,e,i,r,a=1/0){let h=a;const u=Rs(n,[0,n.length-1]);for(const p of i){if(h!==1/0&&Io(u,fc(p),r)>=h)continue;const _=wi(n,e,p,r,h);if(isNaN(_))return _;if((h=Math.min(h,_))===0)return h}return h}function Yh(n){return n==="Point"||n==="MultiPoint"||n==="LineString"||n==="MultiLineString"||n==="Polygon"||n==="MultiPolygon"}class Ds{constructor(e,i){this.type=tt,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(Ms(e[1])){const r=e[1];if(r.type==="FeatureCollection"){for(let a=0;a<r.features.length;++a)if(Yh(r.features[a].geometry.type))return new Ds(r,r.features[a].geometry)}else if(r.type==="Feature"){if(Yh(r.geometry.type))return new Ds(r,r.geometry)}else if(Yh(r.type))return new Ds(r,r)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const i=e.geometry(),r=e.canonicalID();if(i!=null&&r!=null){if(e.geometryType()==="Point")return function(a,h,u){const p=[];for(const g of a)for(const v of g)p.push(ml(v,h));const _=new oa(p[0][1],"meters");return u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString"?lp(p,!1,u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",_):u.type==="MultiLineString"?Xh(p,!1,u.coordinates,_):u.type==="Polygon"||u.type==="MultiPolygon"?yc(p,!1,u.type==="Polygon"?[u.coordinates]:u.coordinates,_):null}(i,r,this.geometries);if(e.geometryType()==="LineString")return function(a,h,u){const p=[];for(const g of a){const v=[];for(const b of g)v.push(ml(b,h));p.push(v)}const _=new oa(p[0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return Xh(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",p,_);if(u.type==="MultiLineString"){let g=1/0;for(let v=0;v<u.coordinates.length;v++){const b=Xh(u.coordinates[v],!0,p,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}if(u.type==="Polygon"||u.type==="MultiPolygon"){let g=1/0;for(let v=0;v<p.length;v++){const b=yc(p[v],!0,u.type==="Polygon"?[u.coordinates]:u.coordinates,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}return null}(i,r,this.geometries);if(e.geometryType()==="Polygon")return function(a,h,u){const p=[];for(const g of function(v){const b=v.length;if(b<=1)return[v];const w=[];let E,I;for(let C=0;C<b;C++){const z=Ko(v[C]);z!==0&&(v[C].area=Math.abs(z),I===void 0&&(I=z<0),I===z<0?(E&&w.push(E),E=[v[C]]):E.push(v[C]))}return E&&w.push(E),w}(a)){const v=[];for(let b=0;b<g.length;++b)v.push(np(g[b],h));p.push(v)}const _=new oa(p[0][0][0][1],"meters");if(u.type==="Point"||u.type==="MultiPoint"||u.type==="LineString")return yc(u.type==="Point"?[u.coordinates]:u.coordinates,u.type==="LineString",p,_);if(u.type==="MultiLineString"){let g=1/0;for(let v=0;v<u.coordinates.length;v++){const b=yc(u.coordinates[v],!0,p,_,g);if(isNaN(b))return b;if((g=Math.min(g,b))===0)return g}return g}return u.type==="Polygon"||u.type==="MultiPolygon"?function(g,v,b){let w=1/0;for(const E of g)for(const I of v){const C=ap(E,I,b,w);if(isNaN(C))return C;if((w=Math.min(w,C))===0)return w}return w}(u.type==="Polygon"?[u.coordinates]:u.coordinates,p,_):null}(i,r,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requires valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function aa(n){if(n instanceof Mn&&(n.name==="get"&&n.args.length===1||n.name==="feature-state"||n.name==="has"&&n.args.length===1||n.name==="properties"||n.name==="geometry-type"||n.name==="id"||/^filter-/.test(n.name))||n instanceof es||n instanceof Ds)return!1;if(n instanceof ca)return n.featureConstant;let e=!0;return n.eachChild(i=>{e&&!aa(i)&&(e=!1)}),e}function _l(n){if(n instanceof Mn&&n.name==="feature-state")return!1;let e=!0;return n.eachChild(i=>{e&&!_l(i)&&(e=!1)}),e}function la(n,e){if(n instanceof Mn&&e.indexOf(n.name)>=0)return!1;let i=!0;return n.eachChild(r=>{i&&!la(r,e)&&(i=!1)}),i}function cp(n,e,i){return[n,e,i].filter(Boolean).join("")}function Kh(n,e){switch(n){case"string":return io(e);case"number":return+e;case"boolean":return!!e;case"color":return Wt.parse(e);case"formatted":return Nn.fromString(io(e));case"resolvedImage":return yn.build(io(e))}return e}function hp(n,e,i,r){return r!==void 0&&(n=r*Math.round(n/r)),e!==void 0&&n<e&&(n=e),i!==void 0&&n>i&&(n=i),n}class ca{constructor(e,i,r,a=!1){this.type=e,this.key=i,this.scope=r,this.featureConstant=a}static parse(e,i){let r=i.expectedType;if(r==null&&(r=Xt),e.length<2||e.length>3)return i.error("Invalid number of arguments for 'config' expression.");const a=i.parse(e[1],1);if(!(a instanceof Eo))return i.error("Key name of 'config' expression must be a string literal.");let h,u=!0;const p=io(a.value);if(e.length>=3){const _=i.parse(e[2],2);if(!(_ instanceof Eo))return i.error("Scope of 'config' expression must be a string literal.");h=io(_.value)}if(i.options){const _=cp(p,h,i._scope),g=i.options.get(_);g&&(u=aa(g.value||g.default))}return new ca(r,p,h,u)}evaluate(e){const i=cp(this.key,this.scope,e.scope),r=e.getConfig(i);if(!r)return null;const{type:a,value:h,values:u,minValue:p,maxValue:_,stepValue:g}=r,v=r.default.evaluate(e);let b=v;if(h){const w=e.scope;e.scope=(w||"").split("").slice(1).join(""),b=h.evaluate(e),e.scope=w}return a&&(b=Kh(a,b)),b===void 0||p===void 0&&_===void 0&&g===void 0||(typeof b=="number"?b=hp(b,p,_,g):Array.isArray(b)&&(b=b.map(w=>typeof w=="number"?hp(w,p,_,g):w))),h!==void 0&&b!==void 0&&u&&!u.includes(b)&&(b=v,a&&(b=Kh(a,b))),(a&&a!==this.type||b!==void 0&&!sc(Zi(b),this.type))&&(b=Kh(this.type.kind,b)),b}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.scope),e}}class xc{constructor(e,i){this.type=i.type,this.name=e,this.boundExpression=i}static parse(e,i){if(e.length!==2||typeof e[1]!="string")return i.error("'var' expression requires exactly one string literal argument.");const r=e[1];return i.scope.has(r)?new xc(r,i.scope.get(r)):i.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class vc{constructor(e,i=[],r,a=new Zo,h=[],u,p,_){this.registry=e,this.path=i,this.key=i.map(g=>typeof g=="string"?`['${g}']`:`[${g}]`).join(""),this.scope=a,this.errors=h,this.expectedType=r,this._scope=u,this.options=p,this.iconImageUseTheme=_}parse(e,i,r,a,h={}){return i||r?this.concat(i,null,r,a)._parse(e,h):this._parse(e,h)}parseObjectValue(e,i,r,a,h,u={}){return this.concat(i,r,a,h)._parse(e,u)}_parse(e,i){function r(a,h,u){return u==="assert"?new Vn(h,[a]):u==="coerce"?new Vr(h,[a]):a}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const a=typeof e[0]=="string"?this.registry[e[0]]:void 0;if(a){let h=a.parse(e,this);if(!h)return null;if(this.expectedType){const u=this.expectedType,p=h.type;if(u.kind!=="string"&&u.kind!=="number"&&u.kind!=="boolean"&&u.kind!=="object"&&u.kind!=="array"||p.kind!=="value")if(u.kind!=="color"&&u.kind!=="formatted"&&u.kind!=="resolvedImage"||p.kind!=="value"&&p.kind!=="string"){if(this.checkSubtype(u,p))return null}else h=r(h,u,i.typeAnnotation||"coerce");else h=r(h,u,i.typeAnnotation||"assert")}if(!(h instanceof Eo)&&h.type.kind!=="resolvedImage"&&Jh(h)){const u=new lc(this._scope,this.options,this.iconImageUseTheme);try{h=new Eo(h.type,h.evaluate(u))}catch(p){return this.error(p.message),null}}return h}return Vr.parse(["to-array",e],this)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,i,r,a){let h=typeof e=="number"?this.path.concat(e):this.path;h=typeof i=="string"?h.concat(i):h;const u=a?this.scope.concat(a):this.scope;return new vc(this.registry,h,r||null,u,this.errors,this._scope,this.options,this.iconImageUseTheme)}error(e,...i){const r=`${this.key}${i.map(a=>`[${a}]`).join("")}`;this.errors.push(new nr(r,e))}checkSubtype(e,i){const r=al(e,i);return r&&this.error(r),r}}function Jh(n){if(n instanceof xc)return Jh(n.boundExpression);if(n instanceof Mn&&n.name==="error"||n instanceof na||n instanceof es||n instanceof Ds||n instanceof ca)return!1;const e=n instanceof Vr||n instanceof Vn;let i=!0;return n.eachChild(r=>{i=e?i&&Jh(r):i&&r instanceof Eo}),!!i&&aa(n)&&la(n,["zoom","heatmap-density","worldview","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed","is-active-floor"])}function bc(n,e){const i=n.length-1;let r,a,h=0,u=i,p=0;for(;h<=u;)if(p=Math.floor((h+u)/2),r=n[p],a=n[p+1],r<=e){if(p===i||e<a)return p;h=p+1}else{if(!(r>e))throw new Ji("Input is not a number.");u=p-1}return 0}class gl{constructor(e,i,r){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(const[a,h]of r)this.labels.push(a),this.outputs.push(h)}static parse(e,i){if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error("Expected an even number of arguments.");const r=i.parse(e[1],1,tt);if(!r)return null;const a=[];let h=null;i.expectedType&&i.expectedType.kind!=="value"&&(h=i.expectedType);for(let u=1;u<e.length;u+=2){const p=u===1?-1/0:e[u],_=e[u+1],g=u,v=u+1;if(typeof p!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',g);if(a.length&&a[a.length-1][0]>=p)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',g);const b=i.parse(_,v,h);if(!b)return null;h=h||b.type,a.push([p,b])}return new gl(h,r,a)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const h=i.length;return a>=i[h-1]?r[h-1].evaluate(e):r[bc(i,a)].evaluate(e)}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let i=0;i<this.labels.length;i++)i>0&&e.push(this.labels[i]),e.push(this.outputs[i].serialize());return e}}const up=.95047,dp=1.08883,pp=4/29,ha=6/29,fp=3*ha*ha,vm=ha*ha*ha,bm=Math.PI/180,wm=180/Math.PI;function Qh(n){return n>vm?Math.pow(n,1/3):n/fp+pp}function eu(n){return n>ha?n*n*n:fp*(n-pp)}function tu(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function iu(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function mp(n){const e=iu(n.r),i=iu(n.g),r=iu(n.b),a=Qh((.4124564*e+.3575761*i+.1804375*r)/up),h=Qh((.2126729*e+.7151522*i+.072175*r)/1);return{l:116*h-16,a:500*(a-h),b:200*(h-Qh((.0193339*e+.119192*i+.9503041*r)/dp)),alpha:n.a}}function _p(n){let e=(n.l+16)/116,i=isNaN(n.a)?e:e+n.a/500,r=isNaN(n.b)?e:e-n.b/200;return e=1*eu(e),i=up*eu(i),r=dp*eu(r),new Wt(tu(3.2404542*i-1.5371385*e-.4985314*r),tu(-.969266*i+1.8760108*e+.041556*r),tu(.0556434*i-.2040259*e+1.0572252*r),n.alpha)}function nu(n,e,i){const r=e-n;return n+i*(r>180||r<-180?r-360*Math.round(r/360):r)}const ts={forward:mp,reverse:_p,interpolate:function(n,e,i){return{l:ut(n.l,e.l,i),a:ut(n.a,e.a,i),b:ut(n.b,e.b,i),alpha:ut(n.alpha,e.alpha,i)}}},ua={forward:function(n){const{l:e,a:i,b:r}=mp(n),a=Math.atan2(r,i)*wm;return{h:a<0?a+360:a,c:Math.sqrt(i*i+r*r),l:e,alpha:n.a}},reverse:function(n){const e=n.h*bm,i=n.c;return _p({l:n.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:n.alpha})},interpolate:function(n,e,i){return{h:nu(n.h,e.h,i),c:ut(n.c,e.c,i),l:ut(n.l,e.l,i),alpha:ut(n.alpha,e.alpha,i)}}};var gp=Object.freeze({__proto__:null,hcl:ua,lab:ts});class gr{constructor(e,i,r,a,h){this.type=e,this.operator=i,this.interpolation=r,this.input=a,this.labels=[],this.outputs=[];for(const[u,p]of h)this.labels.push(u),this.outputs.push(p)}static interpolationFactor(e,i,r,a){let h=0;if(e.name==="exponential")h=ru(i,e.base,r,a);else if(e.name==="linear")h=ru(i,1,r,a);else if(e.name==="cubic-bezier"){const u=e.controlPoints;h=new Js(u[0],u[1],u[2],u[3]).solve(ru(i,1,r,a))}return h}static parse(e,i){let[r,a,h,...u]=e;if(!Array.isArray(a)||a.length===0)return i.error("Expected an interpolation type expression.",1);if(a[0]==="linear")a={name:"linear"};else if(a[0]==="exponential"){const g=a[1];if(typeof g!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:g}}else{if(a[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const g=a.slice(1);if(g.length!==4||g.some(v=>typeof v!="number"||v<0||v>1))return i.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:g}}}if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length-1>3&&(e.length-1)%2!=0)return i.error("Expected an even number of arguments.");if(h=i.parse(h,2,tt),!h)return null;const p=[];let _=null;r==="interpolate-hcl"||r==="interpolate-lab"?_=An:i.expectedType&&i.expectedType.kind!=="value"&&(_=i.expectedType);for(let g=0;g<u.length;g+=2){const v=u[g],b=u[g+1],w=g+3,E=g+4;if(typeof v!="number")return i.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',w);if(p.length&&p[p.length-1][0]>=v)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',w);const I=i.parse(b,E,_);if(!I)return null;_=_||I.type,p.push([v,I])}return _.kind==="number"||_.kind==="color"||_.kind==="array"&&_.itemType.kind==="number"&&typeof _.N=="number"?new gr(_,r,a,h,p):i.error(`Type ${Hi(_)} is not interpolatable.`)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const h=i.length;if(a>=i[h-1])return r[h-1].evaluate(e);const u=bc(i,a),p=gr.interpolationFactor(this.interpolation,a,i[u],i[u+1]),_=r[u].evaluate(e),g=r[u+1].evaluate(e);return this.operator==="interpolate"?ol[this.type.kind.toLowerCase()](_,g,p):this.operator==="interpolate-hcl"?ua.reverse(ua.interpolate(ua.forward(_),ua.forward(g),p)):ts.reverse(ts.interpolate(ts.forward(_),ts.forward(g),p))}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier",...this.interpolation.controlPoints];const i=[this.operator,e,this.input.serialize()];for(let r=0;r<this.labels.length;r++)i.push(this.labels[r],this.outputs[r].serialize());return i}}function ru(n,e,i,r){const a=r-i,h=n-i;return a===0?0:e===1?h/a:(Math.pow(e,h)-1)/(Math.pow(e,a)-1)}class yl{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expectected at least one argument.");let r=null;const a=i.expectedType;a&&a.kind!=="value"&&(r=a);const h=[];for(const p of e.slice(1)){const _=i.parse(p,1+h.length,r,void 0,{typeAnnotation:"omit"});if(!_)return null;r=r||_.type,h.push(_)}const u=a&&h.some(p=>al(a,p.type));return new yl(u?Xt:r,h)}evaluate(e){let i,r=null,a=0;for(const h of this.args){if(a++,r=h.evaluate(e),r&&r instanceof yn&&!r.available&&(i||(i=r),r=null,a===this.args.length))return i;if(r!==null)break}return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class xl{constructor(e,i){this.type=i.type,this.bindings=[].concat(e),this.result=i}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const i of this.bindings)e(i[1]);e(this.result)}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const r=[];for(let h=1;h<e.length-1;h+=2){const u=e[h];if(typeof u!="string")return i.error(`Expected string, but found ${typeof u} instead.`,h);if(/[^a-zA-Z0-9_]/.test(u))return i.error("Variable names must contain only alphanumeric characters or '_'.",h);const p=i.parse(e[h+1],h+1);if(!p)return null;r.push([u,p])}const a=i.parse(e[e.length-1],e.length-1,i.expectedType,r);return a?new xl(r,a):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[i,r]of this.bindings)e.push(i,r.serialize());return e.push(this.result.serialize()),e}}class is{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,tt),a=i.parse(e[2],2,Sn(i.expectedType||Xt));return r&&a?new is(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Ji("Array index out of bounds: negative index");if(i>=r.length)throw new Ji("Array index out of bounds: index exceeds array size");if(i!==Math.floor(i))throw new Ji("Array index must be an integer. Use at-interpolated for fractional indices");return r[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class wc{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,tt),a=i.parse(e[2],2,Sn(i.expectedType||Xt));return r&&a?new wc(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Ji(`Array index out of bounds: ${i} < 0.`);if(i>r.length-1)throw new Ji(`Array index out of bounds: ${i} > ${r.length-1}.`);if(i===Math.floor(i))return r[i];const a=Math.floor(i),h=Math.ceil(i),u=r[a],p=r[h];if(typeof u!="number"||typeof p!="number")throw new Ji(`Cannot interpolate between non-number values at index ${i}.`);const _=i-a;return u*(1-_)+p*_}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Tc{constructor(e,i){this.type=Ht,this.needle=e,this.haystack=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Xt),a=i.parse(e[2],2,Xt);return r&&a?Nh(r.type,[Ht,$t,tt,As,Xt])?new Tc(r,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Hi(r.type)} instead`):null}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(r==null)return!1;if(!ll(i,["boolean","string","number","null"]))throw new Ji(`Expected first argument to be of type boolean, string, number or null, but found ${Hi(Zi(i))} instead.`);if(!ll(r,["string","array"]))throw new Ji(`Expected second argument to be of type array or string, but found ${Hi(Zi(r))} instead.`);return r.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Sc{constructor(e,i,r){this.type=tt,this.needle=e,this.haystack=i,this.fromIndex=r}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Xt),a=i.parse(e[2],2,Xt);if(!r||!a)return null;if(!Nh(r.type,[Ht,$t,tt,As,Xt]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Hi(r.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,tt);return h?new Sc(r,a,h):null}return new Sc(r,a)}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!ll(i,["boolean","string","number","null"]))throw new Ji(`Expected first argument to be of type boolean, string, number or null, but found ${Hi(Zi(i))} instead.`);if(!ll(r,["string","array"]))throw new Ji(`Expected second argument to be of type array or string, but found ${Hi(Zi(r))} instead.`);if(this.fromIndex){const a=this.fromIndex.evaluate(e);return r.indexOf(i,a)}return r.indexOf(i)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class vl{constructor(e,i,r,a,h,u){this.inputType=e,this.type=i,this.input=r,this.cases=a,this.outputs=h,this.otherwise=u}static parse(e,i){if(e.length<5)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return i.error("Expected an even number of arguments.");let r,a;i.expectedType&&i.expectedType.kind!=="value"&&(a=i.expectedType);const h={},u=[];for(let g=2;g<e.length-1;g+=2){let v=e[g];const b=e[g+1];Array.isArray(v)||(v=[v]);const w=i.concat(g);if(v.length===0)return w.error("Expected at least one branch label.");for(const I of v){if(typeof I!="number"&&typeof I!="string")return w.error("Branch labels must be numbers or strings.");if(typeof I=="number"&&Math.abs(I)>Number.MAX_SAFE_INTEGER)return w.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof I=="number"&&Math.floor(I)!==I)return w.error("Numeric branch labels must be integer values.");if(r){if(w.checkSubtype(r,Zi(I)))return null}else r=Zi(I);if(h[String(I)]!==void 0)return w.error("Branch labels must be unique.");h[String(I)]=u.length}const E=i.parse(b,g,a);if(!E)return null;a=a||E.type,u.push(E)}const p=i.parse(e[1],1,Xt);if(!p)return null;const _=i.parse(e[e.length-1],e.length-1,a);return _?p.type.kind!=="value"&&i.concat(1).checkSubtype(r,p.type)?null:new vl(r,a,p,h,u,_):null}evaluate(e){const i=this.input.evaluate(e);return(sc(Zi(i),this.inputType)&&this.outputs[this.cases[i]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],i=Object.keys(this.cases).sort(),r=[],a={};for(const u of i){const p=a[this.cases[u]];p===void 0?(a[this.cases[u]]=r.length,r.push([this.cases[u],[u]])):r[p][1].push(u)}const h=u=>this.inputType.kind==="number"?Number(u):u;for(const[u,p]of r)e.push(p.length===1?h(p[0]):p.map(h)),e.push(this.outputs[u].serialize());return e.push(this.otherwise.serialize()),e}}class bl{constructor(e,i,r){this.type=e,this.branches=i,this.otherwise=r}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return i.error("Expected an odd number of arguments.");let r;i.expectedType&&i.expectedType.kind!=="value"&&(r=i.expectedType);const a=[];for(let u=1;u<e.length-1;u+=2){const p=i.parse(e[u],u,Ht);if(!p)return null;const _=i.parse(e[u+1],u+1,r);if(!_)return null;a.push([p,_]),r=r||_.type}const h=i.parse(e[e.length-1],e.length-1,r);return h?new bl(r,a,h):null}evaluate(e){for(const[i,r]of this.branches)if(i.evaluate(e))return r.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[i,r]of this.branches)e(i),e(r);e(this.otherwise)}outputDefined(){return this.branches.every(([e,i])=>i.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class da{constructor(e,i,r,a){this.type=e,this.input=i,this.beginIndex=r,this.endIndex=a}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Xt),a=i.parse(e[2],2,tt);if(!r||!a)return null;if(!Nh(r.type,[Sn(Xt),$t,Xt]))return i.error(`Expected first argument to be of type array or string, but found ${Hi(r.type)} instead`);if(e.length===4){const h=i.parse(e[3],3,tt);return h?new da(r.type,r,a,h):null}return new da(r.type,r,a)}evaluate(e){const i=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(!ll(i,["string","array"]))throw new Ji(`Expected first argument to be of type array or string, but found ${Hi(Zi(i))} instead.`);if(this.endIndex){const a=this.endIndex.evaluate(e);return i.slice(r,a)}return i.slice(r)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}class ou{constructor(e,i){this.type=Sn($t),this.str=e,this.delimiter=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,$t),a=i.parse(e[2],2,$t);return r&&a?new ou(r,a):void 0}evaluate(e){const i=this.str.evaluate(e),r=this.delimiter.evaluate(e);return i.split(r)}eachChild(e){e(this.str),e(this.delimiter)}outputDefined(){return!1}serialize(){return["split",this.str.serialize(),this.delimiter.serialize()]}}function yp(n,e){return n==="=="||n==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function su(n,e,i,r){return r.compare(e,i)===0}function zs(n,e,i){const r=n!=="=="&&n!=="!=";return class Dv{constructor(h,u,p){this.type=Ht,this.lhs=h,this.rhs=u,this.collator=p,this.hasUntypedArgument=h.type.kind==="value"||u.type.kind==="value"}static parse(h,u){if(h.length!==3&&h.length!==4)return u.error("Expected two or three arguments.");const p=h[0];let _=u.parse(h[1],1,Xt);if(!_)return null;if(!yp(p,_.type))return u.concat(1).error(`"${p}" comparisons are not supported for type '${Hi(_.type)}'.`);let g=u.parse(h[2],2,Xt);if(!g)return null;if(!yp(p,g.type))return u.concat(2).error(`"${p}" comparisons are not supported for type '${Hi(g.type)}'.`);if(_.type.kind!==g.type.kind&&_.type.kind!=="value"&&g.type.kind!=="value")return u.error(`Cannot compare types '${Hi(_.type)}' and '${Hi(g.type)}'.`);r&&(_.type.kind==="value"&&g.type.kind!=="value"?_=new Vn(g.type,[_]):_.type.kind!=="value"&&g.type.kind==="value"&&(g=new Vn(_.type,[g])));let v=null;if(h.length===4){if(_.type.kind!=="string"&&g.type.kind!=="string"&&_.type.kind!=="value"&&g.type.kind!=="value")return u.error("Cannot use collator to compare non-string types.");if(v=u.parse(h[3],3,rc),!v)return null}return new Dv(_,g,v)}evaluate(h){const u=this.lhs.evaluate(h),p=this.rhs.evaluate(h);if(r&&this.hasUntypedArgument){const _=Zi(u),g=Zi(p);if(_.kind!==g.kind||_.kind!=="string"&&_.kind!=="number")throw new Ji(`Expected arguments for "${n}" to be (string, string) or (number, number), but found (${_.kind}, ${g.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const _=Zi(u),g=Zi(p);if(_.kind!=="string"||g.kind!=="string")return e(h,u,p)}return this.collator?i(h,u,p,this.collator.evaluate(h)):e(h,u,p)}eachChild(h){h(this.lhs),h(this.rhs),this.collator&&h(this.collator)}outputDefined(){return!0}serialize(){const h=[n];return this.eachChild(u=>{h.push(u.serialize())}),h}}}const Tm=zs("==",function(n,e,i){return e===i},su),Sm=zs("!=",function(n,e,i){return e!==i},function(n,e,i,r){return!su(0,e,i,r)}),Em=zs("<",function(n,e,i){return e<i},function(n,e,i,r){return r.compare(e,i)<0}),xp=zs(">",function(n,e,i){return e>i},function(n,e,i,r){return r.compare(e,i)>0}),vp=zs("<=",function(n,e,i){return e<=i},function(n,e,i,r){return r.compare(e,i)<=0}),Ec=zs(">=",function(n,e,i){return e>=i},function(n,e,i,r){return r.compare(e,i)>=0});class au{constructor(e,i,r,a,h,u){this.type=$t,this.number=e,this.locale=i,this.currency=r,this.unit=a,this.minFractionDigits=h,this.maxFractionDigits=u}static parse(e,i){if(e.length!==3)return i.error("Expected two arguments.");const r=i.parse(e[1],1,tt);if(!r)return null;const a=e[2];if(typeof a!="object"||Array.isArray(a))return i.error("NumberFormat options argument must be an object.");let h=null;if(a.locale&&(h=i.parseObjectValue(a.locale,2,"locale",$t),!h))return null;let u=null;if(a.currency&&(u=i.parseObjectValue(a.currency,2,"currency",$t),!u))return null;let p=null;if(a.unit&&(p=i.parseObjectValue(a.unit,2,"unit",$t),!p))return null;let _=null;if(a["min-fraction-digits"]&&(_=i.parseObjectValue(a["min-fraction-digits"],2,"min-fraction-digits",tt),!_))return null;let g=null;return a["max-fraction-digits"]&&(g=i.parseObjectValue(a["max-fraction-digits"],2,"max-fraction-digits",tt),!g)?null:new au(r,h,u,p,_,g)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Ic{constructor(e){this.type=tt,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);const r=i.parse(e[1],1);return r?r.type.kind!=="array"&&r.type.kind!=="string"&&r.type.kind!=="value"?i.error(`Expected argument of type string or array, but found ${Hi(r.type)} instead.`):new Ic(r):null}evaluate(e){const i=this.input.evaluate(e);if(typeof i=="string"||Array.isArray(i))return i.length;throw new Ji(`Expected value to be of type string or array, but found ${Hi(Zi(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(i=>{e.push(i.serialize())}),e}}function bp(n){return function(){n=1831565813+(n|=0)|0;let e=Math.imul(n^n>>>15,1|n);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const pa={"==":Tm,"!=":Sm,">":xp,"<":Em,">=":Ec,"<=":vp,array:Vn,at:is,"at-interpolated":wc,boolean:Vn,case:bl,coalesce:yl,collator:na,format:xt,image:rt,in:Tc,"index-of":Sc,interpolate:gr,"interpolate-hcl":gr,"interpolate-lab":gr,length:Ic,let:xl,literal:Eo,match:vl,number:Vn,"number-format":au,object:Vn,slice:da,step:gl,string:Vn,"to-boolean":Vr,"to-color":Vr,"to-number":Vr,"to-string":Vr,var:xc,within:es,distance:Ds,config:ca,split:ou};function lu(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const h=a?a.evaluate(n):1,u=Yd(e,i,r,h);if(u)throw new Ji(u);return new Wt(e/255,i/255,r/255,h)}function cu(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const h=a?a.evaluate(n):1,u=function(g,v,b,w){return typeof g=="number"&&g>=0&&g<=360?typeof v=="number"&&v>=0&&v<=100&&typeof b=="number"&&b>=0&&b<=100?w===void 0||typeof w=="number"&&w>=0&&w<=1?null:`Invalid hsla value [${[g,v,b,w].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof w=="number"?[g,v,b,w]:[g,v,b]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof w=="number"?[g,v,b,w]:[g,v,b]).join(", ")}]: 'h' must be between 0 and 360.`}(e,i,r,h);if(u)throw new Ji(u);const p=`hsla(${e}, ${i}%, ${r}%, ${h})`,_=Wt.parse(p);if(!_)throw new Ji(`Failed to parse HSLA color: ${p}`);return _}function wp(n,e){return n in e}function hu(n,e){const i=e[n];return i===void 0?null:i}function ns(n){return{type:n}}function Ac(n){if(n instanceof ca)return new Set([n.key]);let e=new Set;return n.eachChild(i=>{e=new Set([...e,...Ac(i)])}),e}function Ls(n){if(n instanceof Mn&&n.name==="is-active-floor")return!0;let e=!1;return n.eachChild(i=>{!e&&Ls(i)&&(e=!0)}),e}function Tp(n){return{result:"success",value:n}}function rs(n){return{result:"error",value:n}}function uu(n,e){return!!n&&!!n.parameters&&n.parameters.indexOf(e)>-1}function Mc(n){return n["property-type"]==="data-driven"}function Sp(n){return uu(n.expression,"measure-light")}function Pc(n){return uu(n.expression,"zoom")}function du(n){return!!n.expression&&n.expression.interpolated}function pu(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Ep(n){return n}function fu(n,e){const i=e.type==="color",r=n.stops&&typeof n.stops[0][0]=="object",a=r||!(r||n.property!==void 0),h=n.type||(du(e)?"exponential":"interval");if(i&&((n=Object.assign({},n)).stops&&(n.stops=n.stops.map(g=>[g[0],Wt.parse(g[1])])),n.default=Wt.parse(n.default?n.default:e.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!gp[n.colorSpace])throw new Error(`Unknown color space: ${n.colorSpace}`);let u,p,_;if(h==="exponential")u=Fs;else if(h==="interval")u=Im;else if(h==="categorical"){u=Ip,p=Object.create(null);for(const g of n.stops)p[g[0]]=g[1];_=typeof n.stops[0][0]}else{if(h!=="identity")throw new Error(`Unknown function type "${h}"`);u=Am}if(r){const g={},v=[];for(let E=0;E<n.stops.length;E++){const I=n.stops[E],C=I[0].zoom;g[C]===void 0&&(g[C]={zoom:C,type:n.type,property:n.property,default:n.default,stops:[]},v.push(C)),g[C].stops.push([I[0].value,I[1]])}const b=[];for(const E of v)b.push([g[E].zoom,fu(g[E],e)]);const w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:gr.interpolationFactor.bind(void 0,w),zoomStops:b.map(E=>E[0]),evaluate:({zoom:E},I)=>Fs({stops:b,base:n.base},e,E).evaluate(E,I)}}if(a){const g=h==="exponential"?{name:"exponential",base:n.base!==void 0?n.base:1}:null;return{kind:"camera",interpolationType:g,interpolationFactor:gr.interpolationFactor.bind(void 0,g),zoomStops:n.stops.map(v=>v[0]),evaluate:({zoom:v})=>u(n,e,v,p,_)}}return{kind:"source",evaluate(g,v){const b=v&&v.properties?v.properties[n.property]:void 0;return b===void 0?wl(n.default,e.default):u(n,e,b,p,_)}}}function wl(n,e,i){return n!==void 0?n:e!==void 0?e:i!==void 0?i:void 0}function Ip(n,e,i,r,a){return wl(typeof i===a?r[i]:void 0,n.default,e.default)}function Im(n,e,i){if(!ia(i))return wl(n.default,e.default);const r=n.stops.length;if(r===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[r-1][0])return n.stops[r-1][1];const a=bc(n.stops.map(h=>h[0]),i);return n.stops[a][1]}function Fs(n,e,i){const r=n.base!==void 0?n.base:1;if(!ia(i))return wl(n.default,e.default);const a=n.stops.length;if(a===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[a-1][0])return n.stops[a-1][1];const h=bc(n.stops.map(v=>v[0]),i),u=function(v,b,w,E){const I=E-w,C=v-w;return I===0?0:b===1?C/I:(Math.pow(b,C)-1)/(Math.pow(b,I)-1)}(i,r,n.stops[h][0],n.stops[h+1][0]),p=n.stops[h][1],_=n.stops[h+1][1];let g=ol[e.type]||Ep;if(n.colorSpace&&n.colorSpace!=="rgb"){const v=gp[n.colorSpace];g=(b,w)=>v.reverse(v.interpolate(v.forward(b),v.forward(w),u))}return typeof p.evaluate=="function"?{evaluate(...v){const b=p.evaluate.apply(void 0,v),w=_.evaluate.apply(void 0,v);if(b!==void 0&&w!==void 0)return g(b,w,u)}}:g(p,_,u)}function Am(n,e,i){return e.type==="color"?i=Wt.parse(i):e.type==="formatted"?i=Nn.fromString(i.toString()):e.type==="resolvedImage"?i=yn.build(i.toString()):ta(i)===e.type||e.type==="enum"&&e.values[i]||(i=void 0),wl(i,n.default,e.default)}Mn.register(pa,{error:[{kind:"error"},[$t],(n,[e])=>{throw new Ji(e.evaluate(n))}],typeof:[$t,[Xt],(n,[e])=>Hi(Zi(e.evaluate(n)))],"to-rgba":[Sn(tt,4),[An],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Sn(tt,4),[An],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[An,[tt,tt,tt],lu],rgba:[An,[tt,tt,tt,tt],lu],hsl:[An,[tt,tt,tt],cu],hsla:[An,[tt,tt,tt,tt],cu],has:{type:Ht,overloads:[[[$t],(n,[e])=>wp(e.evaluate(n),n.properties())],[[$t,Wo],(n,[e,i])=>wp(e.evaluate(n),i.evaluate(n))]]},get:{type:Xt,overloads:[[[$t],(n,[e])=>hu(e.evaluate(n),n.properties())],[[$t,Wo],(n,[e,i])=>hu(e.evaluate(n),i.evaluate(n))]]},"feature-state":[Xt,[$t],(n,[e])=>hu(e.evaluate(n),n.featureState||{})],properties:[Wo,[],n=>n.properties()],"geometry-type":[$t,[],n=>n.geometryType()],worldview:[$t,[],n=>n.globals.worldview||""],"is-active-floor":[Ht,ns($t),(n,e)=>{if(!(n.globals&&n.globals.activeFloors&&n.globals.activeFloors.size>0))return!1;if(e.length===0)return!0;const i=n.globals.activeFloors;return e.some(r=>{const a=r.evaluate(n);return i.has(a)})}],id:[Xt,[],n=>n.id()],zoom:[tt,[],n=>n.globals.zoom],pitch:[tt,[],n=>n.globals.pitch||0],"distance-from-center":[tt,[],n=>n.distanceFromCenter()],"measure-light":[tt,[$t],(n,[e])=>n.measureLight(e.evaluate(n))],"heatmap-density":[tt,[],n=>n.globals.heatmapDensity||0],"line-progress":[tt,[],n=>n.globals.lineProgress||0],"raster-value":[tt,[],n=>n.globals.rasterValue||0],"raster-particle-speed":[tt,[],n=>n.globals.rasterParticleSpeed||0],"sky-radial-progress":[tt,[],n=>n.globals.skyRadialProgress||0],accumulated:[Xt,[],n=>n.globals.accumulated===void 0?null:n.globals.accumulated],"+":[tt,ns(tt),(n,e)=>{let i=0;for(const r of e)i+=r.evaluate(n);return i}],"*":[tt,ns(tt),(n,e)=>{let i=1;for(const r of e)i*=r.evaluate(n);return i}],"-":{type:tt,overloads:[[[tt,tt],(n,[e,i])=>e.evaluate(n)-i.evaluate(n)],[[tt],(n,[e])=>-e.evaluate(n)]]},"/":[tt,[tt,tt],(n,[e,i])=>e.evaluate(n)/i.evaluate(n)],"%":[tt,[tt,tt],(n,[e,i])=>e.evaluate(n)%i.evaluate(n)],ln2:[tt,[],()=>Math.LN2],pi:[tt,[],()=>Math.PI],e:[tt,[],()=>Math.E],"^":[tt,[tt,tt],(n,[e,i])=>Math.pow(e.evaluate(n),i.evaluate(n))],sqrt:[tt,[tt],(n,[e])=>Math.sqrt(e.evaluate(n))],log10:[tt,[tt],(n,[e])=>Math.log(e.evaluate(n))/Math.LN10],ln:[tt,[tt],(n,[e])=>Math.log(e.evaluate(n))],log2:[tt,[tt],(n,[e])=>Math.log2(e.evaluate(n))],sin:[tt,[tt],(n,[e])=>Math.sin(e.evaluate(n))],cos:[tt,[tt],(n,[e])=>Math.cos(e.evaluate(n))],tan:[tt,[tt],(n,[e])=>Math.tan(e.evaluate(n))],asin:[tt,[tt],(n,[e])=>Math.asin(e.evaluate(n))],acos:[tt,[tt],(n,[e])=>Math.acos(e.evaluate(n))],atan:[tt,[tt],(n,[e])=>Math.atan(e.evaluate(n))],min:[tt,ns(tt),(n,e)=>Math.min(...e.map(i=>i.evaluate(n)))],max:[tt,ns(tt),(n,e)=>Math.max(...e.map(i=>i.evaluate(n)))],abs:[tt,[tt],(n,[e])=>Math.abs(e.evaluate(n))],round:[tt,[tt],(n,[e])=>{const i=e.evaluate(n);return i<0?-Math.round(-i):Math.round(i)}],floor:[tt,[tt],(n,[e])=>Math.floor(e.evaluate(n))],ceil:[tt,[tt],(n,[e])=>Math.ceil(e.evaluate(n))],"filter-==":[Ht,[$t,Xt],(n,[e,i])=>n.properties()[e.value]===i.value],"filter-id-==":[Ht,[Xt],(n,[e])=>n.id()===e.value],"filter-type-==":[Ht,[$t],(n,[e])=>n.geometryType()===e.value],"filter-<":[Ht,[$t,Xt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<a}],"filter-id-<":[Ht,[Xt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<r}],"filter->":[Ht,[$t,Xt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>a}],"filter-id->":[Ht,[Xt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>r}],"filter-<=":[Ht,[$t,Xt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<=a}],"filter-id-<=":[Ht,[Xt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<=r}],"filter->=":[Ht,[$t,Xt],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>=a}],"filter-id->=":[Ht,[Xt],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>=r}],"filter-has":[Ht,[Xt],(n,[e])=>e.value in n.properties()],"filter-has-id":[Ht,[],n=>n.id()!==null&&n.id()!==void 0],"filter-type-in":[Ht,[Sn($t)],(n,[e])=>e.value.indexOf(n.geometryType())>=0],"filter-id-in":[Ht,[Sn(Xt)],(n,[e])=>e.value.indexOf(n.id())>=0],"filter-in-small":[Ht,[$t,Sn(Xt)],(n,[e,i])=>i.value.indexOf(n.properties()[e.value])>=0],"filter-in-large":[Ht,[$t,Sn(Xt)],(n,[e,i])=>function(r,a,h,u){for(;h<=u;){const p=h+u>>1;if(a[p]===r)return!0;a[p]>r?u=p-1:h=p+1}return!1}(n.properties()[e.value],i.value,0,i.value.length-1)],all:{type:Ht,overloads:[[[Ht,Ht],(n,[e,i])=>e.evaluate(n)&&i.evaluate(n)],[ns(Ht),(n,e)=>{for(const i of e)if(!i.evaluate(n))return!1;return!0}]]},any:{type:Ht,overloads:[[[Ht,Ht],(n,[e,i])=>e.evaluate(n)||i.evaluate(n)],[ns(Ht),(n,e)=>{for(const i of e)if(i.evaluate(n))return!0;return!1}]]},"!":[Ht,[Ht],(n,[e])=>!e.evaluate(n)],"is-supported-script":[Ht,[$t],(n,[e])=>{const i=n.globals&&n.globals.isSupportedScript;return!i||i(e.evaluate(n))}],upcase:[$t,[$t],(n,[e])=>e.evaluate(n).toUpperCase()],downcase:[$t,[$t],(n,[e])=>e.evaluate(n).toLowerCase()],concat:[$t,ns(Xt),(n,e)=>e.map(i=>io(i.evaluate(n))).join("")],"resolved-locale":[$t,[rc],(n,[e])=>e.evaluate(n).resolvedLocale()],random:[tt,[tt,tt,Xt],(n,e)=>{const[i,r,a]=e.map(u=>u.evaluate(n));if(i>r||i===r)return i;let h;if(typeof a=="string")h=function(u){let p=0;if(u.length===0)return p;for(let _=0;_<u.length;_++)p=(p<<5)-p+u.charCodeAt(_),p&=p;return p}(a);else{if(typeof a!="number")throw new Ji(`Invalid seed input: ${a}`);h=a}return i+bp(h)()*(r-i)}]});class mu{constructor(e,i,r,a,h){this.expression=e,this._warningHistory={},this._scope=r,this._options=a,this._iconImageUseTheme=h,this._evaluator=new lc(r,a,h),this._defaultValue=i?function(u){return u.type==="color"&&(pu(u.default)||Array.isArray(u.default))?new Wt(0,0,0,0):u.type==="color"?Wt.parse(u.default)||null:u.default===void 0?null:u.default}(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=Ac(e),this.isIndoorDependent=Ls(e)}evaluateWithoutErrorHandling(e,i,r,a,h,u,p,_){return this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=r,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u,this._evaluator.featureTileCoord=p||null,this._evaluator.featureDistanceData=_||null,this.expression.evaluate(this._evaluator)}evaluate(e,i,r,a,h,u,p,_,g){this._evaluator||(this._evaluator=new lc(this._scope,this._options,this._iconImageUseTheme)),this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=r||null,this._evaluator.canonical=a||null,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=u||null,this._evaluator.featureTileCoord=p||null,this._evaluator.featureDistanceData=_||null,this._evaluator.iconImageUseTheme=g||null;try{const v=this.expression.evaluate(this._evaluator);if(v==null||typeof v=="number"&&v!=v)return this._defaultValue;if(this._enumValues&&!(v in this._enumValues))throw new Ji(`Expected value to be one of ${Object.keys(this._enumValues).map(b=>JSON.stringify(b)).join(", ")}, but found ${JSON.stringify(v)} instead.`);return v}catch(v){const b=v;return this._warningHistory[b.message]||(this._warningHistory[b.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${b.message}`)),this._defaultValue}}}function Cc(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in pa}function os(n,e,i,r,a){const h=new vc(pa,[],e?function(p){const _={color:An,string:$t,number:tt,enum:$t,boolean:Ht,formatted:sl,resolvedImage:ea};return p.type==="array"?Sn(_[p.value]||Xt,p.length):_[p.type]}(e):void 0,void 0,void 0,i,r,a),u=h.parse(n,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return u?Tp(new mu(u,e,i,r,a)):rs(h.errors)}class Tl{constructor(e,i,r,a){this.kind=e,this._styleExpression=i,this.isLightConstant=r,this.isLineProgressConstant=a,this.isStateDependent=e!=="constant"&&!_l(i.expression),this.configDependencies=Ac(i.expression),this.isIndoorDependent=Ls(i.expression)}evaluateWithoutErrorHandling(e,i,r,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,h,u)}evaluate(e,i,r,a,h,u,p){return this._styleExpression.evaluate(e,i,r,a,h,u,void 0,void 0,p)}}class fa{constructor(e,i,r,a,h,u){this.kind=e,this.zoomStops=r,this._styleExpression=i,this.isStateDependent=e!=="camera"&&!_l(i.expression),this.isIndoorDependent=Ls(i.expression),this.isLightConstant=h,this.isLineProgressConstant=u,this.configDependencies=Ac(i.expression),this.interpolationType=a}evaluateWithoutErrorHandling(e,i,r,a,h,u){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,h,u)}evaluate(e,i,r,a,h,u){return this._styleExpression.evaluate(e,i,r,a,h,u)}interpolationFactor(e,i,r){return this.interpolationType?gr.interpolationFactor(this.interpolationType,e,i,r):0}}function _u(n,e,i,r,a){if((n=os(n,e,i,r,a)).result==="error")return n;const h=n.value.expression,u=aa(h);if(!u&&!Mc(e))return rs([new nr("","data expressions not supported")]);const p=la(h,["zoom","pitch","distance-from-center"]);if(!p&&!Pc(e))return rs([new nr("","zoom expressions not supported")]);const _=la(h,["measure-light"]);if(!_&&!Sp(e))return rs([new nr("","measure-light expression not supported")]);const g=la(h,["line-progress"]);if(!g&&!function(w){return uu(w.expression,"line-progress")}(e))return rs([new nr("","line-progress expression not supported")]);const v=e.expression&&e.expression.relaxZoomRestriction,b=_a(h);return b||p||v?b instanceof nr?rs([b]):b instanceof gr&&!du(e)?rs([new nr("",'"interpolate" expressions cannot be used with this property')]):Tp(b?new fa(u&&g?"camera":"composite",n.value,b.labels,b instanceof gr?b.interpolation:void 0,_,g):new Tl(u&&g?"constant":"source",n.value,_,g)):rs([new nr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class ma{constructor(e,i){this._parameters=e,this._specification=i,Object.assign(this,fu(this._parameters,this._specification))}static deserialize(e){return new ma(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function _a(n){let e=null;if(n instanceof xl)e=_a(n.result);else if(n instanceof yl){for(const i of n.args)if(e=_a(i),e)break}else(n instanceof gl||n instanceof gr)&&n.input instanceof Mn&&n.input.name==="zoom"&&(e=n);return e instanceof nr||n.eachChild(i=>{const r=_a(i);r instanceof nr?e=r:e&&r&&e!==r&&(e=new nr("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}var Rc,Ap,ss=function(){if(Ap)return Rc;Ap=1,Rc=e;var n=3;function e(i,r,a){var h=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var u=new Int32Array(this.arrayBuffer);i=u[0],this.d=(r=u[1])+2*(a=u[2]);for(var p=0;p<this.d*this.d;p++){var _=u[n+p],g=u[n+p+1];h.push(_===g?null:u.subarray(_,g))}var v=u[n+h.length+1];this.keys=u.subarray(u[n+h.length],v),this.bboxes=u.subarray(v),this.insert=this._insertReadonly}else{this.d=r+2*a;for(var b=0;b<this.d*this.d;b++)h.push([]);this.keys=[],this.bboxes=[]}this.n=r,this.extent=i,this.padding=a,this.scale=r/i,this.uid=0;var w=a/r*i;this.min=-w,this.max=i+w}return e.prototype.insert=function(i,r,a,h,u){this._forEachCell(r,a,h,u,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(r),this.bboxes.push(a),this.bboxes.push(h),this.bboxes.push(u)},e.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},e.prototype._insertCell=function(i,r,a,h,u,p){this.cells[u].push(p)},e.prototype.query=function(i,r,a,h,u){var p=this.min,_=this.max;if(i<=p&&r<=p&&_<=a&&_<=h&&!u)return Array.prototype.slice.call(this.keys);var g=[];return this._forEachCell(i,r,a,h,this._queryCell,g,{},u),g},e.prototype._queryCell=function(i,r,a,h,u,p,_,g){var v=this.cells[u];if(v!==null)for(var b=this.keys,w=this.bboxes,E=0;E<v.length;E++){var I=v[E];if(_[I]===void 0){var C=4*I;(g?g(w[C+0],w[C+1],w[C+2],w[C+3]):i<=w[C+2]&&r<=w[C+3]&&a>=w[C+0]&&h>=w[C+1])?(_[I]=!0,p.push(b[I])):_[I]=!1}}},e.prototype._forEachCell=function(i,r,a,h,u,p,_,g){for(var v=this._convertToCellCoord(i),b=this._convertToCellCoord(r),w=this._convertToCellCoord(a),E=this._convertToCellCoord(h),I=v;I<=w;I++)for(var C=b;C<=E;C++){var z=this.d*C+I;if((!g||g(this._convertFromCellCoord(I),this._convertFromCellCoord(C),this._convertFromCellCoord(I+1),this._convertFromCellCoord(C+1)))&&u.call(this,i,r,a,h,z,p,_,g))return}},e.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},e.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},e.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,r=n+this.cells.length+1+1,a=0,h=0;h<this.cells.length;h++)a+=this.cells[h].length;var u=new Int32Array(r+a+this.keys.length+this.bboxes.length);u[0]=this.extent,u[1]=this.n,u[2]=this.padding;for(var p=r,_=0;_<i.length;_++){var g=i[_];u[n+_]=p,u.set(g,p),p+=g.length}return u[n+i.length]=p,u.set(this.keys,p),u[n+i.length+1]=p+=this.keys.length,u.set(this.bboxes,p),p+=this.bboxes.length,u.buffer},Rc}(),ga=fr(ss);const Dc={};function Qe(n,e,i={}){Object.defineProperty(n,"_classRegistryKey",{value:e,writable:!1}),Dc[e]={klass:n,omit:i.omit||[]}}Qe(Object,"Object"),ga.serialize=function(n,e){const i=n.toArrayBuffer();return e&&e.add(i),{buffer:i}},ga.deserialize=function(n){return new ga(n.buffer)},Object.defineProperty(ga,"name",{value:"Grid"}),Qe(ga,"Grid"),delete Oe.prototype.constructor,Qe(Wt,"Color"),Qe(Error,"Error"),Qe(Nn,"Formatted"),Qe(ac,"FormattedSection"),Qe(ir,"AJAXError"),Qe(yn,"ResolvedImage"),Qe(ma,"StylePropertyFunction"),Qe(mu,"StyleExpression",{omit:["_evaluator"]}),Qe(qn,"ImageId"),Qe(Nr,"ImageVariant"),Qe(fa,"ZoomDependentExpression"),Qe(Tl,"ZoomConstantExpression"),Qe(Mn,"CompoundExpression",{omit:["_evaluate"]});for(const n in pa)Dc[pa[n]._classRegistryKey]||Qe(pa[n],`Expression${n}`);function Mp(n){return n&&(n instanceof ArrayBuffer||n.constructor&&n.constructor.name==="ArrayBuffer")}function Ur(n,e){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp)return n;if(Mp(n)||n instanceof ImageBitmap)return e&&e.add(n),n;if(ArrayBuffer.isView(n))return e&&e.add(n.buffer),n;if(n instanceof ImageData)return e&&e.add(n.data.buffer),n;if(Array.isArray(n)){const i=[];for(const r of n)i.push(Ur(r,e));return i}if(n instanceof Map){const i={$name:"Map",entries:[]};for(const[r,a]of n.entries())i.entries.push(Ur(r),Ur(a,e));return i}if(n instanceof Set){const i={$name:"Set"};let r=0;for(const a of n.values())i[++r]=Ur(a);return i}if(typeof n=="bigint")return{$name:"BigInt",value:n.toString()};if(typeof n=="object"){const i=n.constructor,r=i._classRegistryKey;if(!r)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const a=i.serialize?i.serialize(n,e):{};if(!i.serialize){for(const h in n)n.hasOwnProperty(h)&&(Dc[r].omit.indexOf(h)>=0||(a[h]=Ur(n[h],e)));n instanceof Error&&(a.message=n.message)}if(a.$name)throw new Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(a.$name=r),a}throw new Error("can't serialize object of type "+typeof n)}function Ao(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||Mp(n)||n instanceof ImageBitmap||ArrayBuffer.isView(n)||n instanceof ImageData)return n;if(Array.isArray(n))return n.map(Ao);if(typeof n=="object"){const e=n.$name||"Object";if(e==="Map"){const a=n.entries||[],h=new Map;for(let u=0;u<a.length;u+=2)h.set(Ao(a[u]),Ao(a[u+1]));return h}if(e==="Set"){const a=new Set;for(const h of Object.keys(n))h!=="$name"&&a.add(Ao(n[h]));return a}if(e==="BigInt")return BigInt(n.value);const{klass:i}=Dc[e];if(!i)throw new Error(`Can't deserialize unregistered class "${e}".`);if(i.deserialize)return i.deserialize(n);const r=Object.create(i.prototype);for(const a of Object.keys(n))a!=="$name"&&(r[a]=Ao(n[a]));return r}throw new Error("can't deserialize object of type "+typeof n)}const Sl=n=>n>=1536&&n<=1791,gu=n=>n>=1872&&n<=1919,Pp=n=>n>=2208&&n<=2303,Cp=n=>n>=11904&&n<=12031,zc=n=>n>=12032&&n<=12255,Lc=n=>n>=12272&&n<=12287,El=n=>n>=12288&&n<=12351,Fc=n=>n>=12352&&n<=12447,ya=n=>n>=12448&&n<=12543,Il=n=>n>=12544&&n<=12591,yu=n=>n>=12704&&n<=12735,oo=n=>n>=12736&&n<=12783,Rp=n=>n>=12784&&n<=12799,Dp=n=>n>=12800&&n<=13055,zp=n=>n>=13056&&n<=13311,xu=n=>n>=13312&&n<=19903,Oc=n=>n>=19968&&n<=40959,Al=n=>n>=40960&&n<=42127,vu=n=>n>=42128&&n<=42191,bu=n=>n>=44032&&n<=55215,Bc=n=>n>=63744&&n<=64255,wu=n=>n>=64336&&n<=65023,Lp=n=>n>=65040&&n<=65055,Tu=n=>n>=65072&&n<=65103,Fp=n=>n>=65104&&n<=65135,Su=n=>n>=65136&&n<=65279,Eu=n=>n>=65280&&n<=65519;function Iu(n){for(const e of n)if(Au(e.charCodeAt(0)))return!0;return!1}function Mm(n){for(const e of n)if(!Pm(e.charCodeAt(0)))return!1;return!0}function Pm(n){return!(Sl(n)||gu(n)||Pp(n)||wu(n)||Su(n))}function Cm(n){return!(n<11904||!(yu(n)||Il(n)||Tu(n)||Bc(n)||zp(n)||Cp(n)||oo(n)||El(n)||xu(n)||Oc(n)||Dp(n)||Eu(n)||Fc(n)||Lc(n)||zc(n)||Rp(n)||ya(n)||Lp(n)||vu(n)||Al(n)))}function Au(n){return!(n!==746&&n!==747&&(n<4352||!(yu(n)||Il(n)||Tu(n)&&!(n>=65097&&n<=65103)||Bc(n)||zp(n)||Cp(n)||oo(n)||!(!El(n)||n>=12296&&n<=12305||n>=12308&&n<=12319||n===12336)||xu(n)||Oc(n)||Dp(n)||(e=>e>=12592&&e<=12687)(n)||(e=>e>=43360&&e<=43391)(n)||(e=>e>=55216&&e<=55295)(n)||(e=>e>=4352&&e<=4607)(n)||bu(n)||Fc(n)||Lc(n)||(e=>e>=12688&&e<=12703)(n)||zc(n)||Rp(n)||ya(n)&&n!==12540||!(!Eu(n)||n===65288||n===65289||n===65293||n>=65306&&n<=65310||n===65339||n===65341||n===65343||n>=65371&&n<=65503||n===65507||n>=65512&&n<=65519)||!(!Fp(n)||n>=65112&&n<=65118||n>=65123&&n<=65126)||(e=>e>=5120&&e<=5759)(n)||(e=>e>=6320&&e<=6399)(n)||Lp(n)||(e=>e>=19904&&e<=19967)(n)||Al(n)||vu(n))))}function Op(n){return n===12312||n===12313||n===12316||n===12540||n===12448}function Os(n){return!(Au(n)||function(e){return!!((i=>i>=128&&i<=255)(e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||(i=>i>=8192&&i<=8303)(e)&&(e===8214||e===8224||e===8225||e===8240||e===8241||e===8251||e===8252||e===8258||e===8263||e===8264||e===8265||e===8273)||(i=>i>=8448&&i<=8527)(e)||(i=>i>=8528&&i<=8591)(e)||(i=>i>=8960&&i<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||e===9003||e>=9085&&e<=9114||e>=9150&&e<=9165||e===9167||e>=9169&&e<=9179||e>=9186&&e<=9215)||(i=>i>=9216&&i<=9279)(e)&&e!==9251||(i=>i>=9280&&i<=9311)(e)||(i=>i>=9312&&i<=9471)(e)||(i=>i>=9632&&i<=9727)(e)||(i=>i>=9728&&i<=9983)(e)&&!(e>=9754&&e<=9759)||(i=>i>=11008&&i<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||El(e)||ya(e)||(i=>i>=57344&&i<=63743)(e)||Tu(e)||Fp(e)||Eu(e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(n))}function Bp(n){return Sl(n)||gu(n)||Pp(n)||wu(n)||Su(n)}function Mu(n){return n>=1424&&n<=2303||wu(n)||Su(n)}function kc(n,e){return!(!e&&Mu(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||(i=>i>=6016&&i<=6143)(n))}function Rm(n){for(const e of n)if(Mu(e.charCodeAt(0)))return!0;return!1}const rr={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let so=null,zn=rr.unavailable,yr=null;const kp=function(n){n&&typeof n=="string"&&n.indexOf("NetworkError")>-1&&(zn=rr.error),so&&so(n)};function Pu(){Cu.fire(new Br("pluginStateChange",{pluginStatus:zn,pluginURL:yr}))}const Cu=new kr,Ru=function(){return zn},Np=function(){if(zn!==rr.deferred||!yr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");zn=rr.loading,Pu(),yr&&tl({url:yr},n=>{n?kp(n):(zn=rr.loaded,Pu())})},Mo={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>zn===rr.loaded||Mo.applyArabicShaping!=null,isLoading:()=>zn===rr.loading,setState(n){zn=n.pluginStatus,yr=n.pluginURL},isParsing:()=>zn===rr.parsing,isParsed:()=>zn===rr.parsed,getPluginURL:()=>yr};class Jt{constructor(e,i){this.zoom=e,i?(this.now=i.now,this.fadeDuration=i.fadeDuration,this.transition=i.transition,this.pitch=i.pitch,this.brightness=i.brightness,this.worldview=i.worldview,this.activeFloors=i.activeFloors):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(i,r){for(const a of i)if(!kc(a.charCodeAt(0),r))return!1;return!0}(e,Mo.isLoaded())}}class xa{constructor(e,i,r,a,h){this.property=e,this.value=i,this.expression=function(u,p,_,g,v){if(pu(u))return new ma(u,p);if(Cc(u)||Array.isArray(u)&&u.length>0){const b=_u(u,p,_,g,v);if(b.result==="error")throw new Error(b.value.map(w=>`${w.key}: ${w.message}`).join(", "));return b.value}{let b=u;return typeof u=="string"&&p.type==="color"&&(b=Wt.parse(u)),{kind:"constant",configDependencies:new Set,isIndoorDependent:!1,evaluate:()=>b}}}(i===void 0?e.specification.default:i,e.specification,r,a,h)}isIndoorDependent(){return this.expression.isIndoorDependent}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,i,r,a){return this.property.possiblyEvaluate(this,e,i,r,a)}}class Ml{constructor(e,i,r,a){this.property=e,this.value=new xa(e,void 0,i,r,a)}transitioned(e,i){return new Nc(this.property,this.value,i,Object.assign({},e.transition,this.transition),e.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Du{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return yt(this._values[e].value.value)}setValue(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Ml(this._values[e].property,this._scope,this._options,this._iconImageUseTheme)),this._values[e].value=new xa(this._values[e].property,i===null?void 0:yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].value.isIndoorDependent())}setTransitionOrValue(e,i){i&&(this._options=i);const r=this._properties.properties;if(e)for(const a in e){const h=e[a];if(a.endsWith("-transition")){const u=a.slice(0,-11);r[u]&&this.setTransition(u,h)}else r.hasOwnProperty(a)&&this.setValue(a,h)}}getTransition(e){return yt(this._values[e].transition)}setTransition(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Ml(this._values[e].property)),this._values[e].transition=yt(i)||void 0}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r);const a=this.getTransition(i);a!==void 0&&(e[`${i}-transition`]=a)}return e}transitioned(e,i){const r=new va(this._properties);for(const a of Object.keys(this._values))r._values[a]=this._values[a].transitioned(e,i._values[a]);return r}untransitioned(){const e=new va(this._properties);for(const i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}isIndoorDependent(){return this._isIndoorDependent}}class Nc{constructor(e,i,r,a,h){const u=a.delay||0,p=a.duration||0;h=h||0,this.property=e,this.value=i,this.begin=h+u,this.end=this.begin+p,e.specification.transition&&(a.delay||a.duration)&&(this.prior=r)}possiblyEvaluate(e,i,r){const a=e.now||0,h=this.value.possiblyEvaluate(e,i,r),u=this.prior;if(u){if(a>this.end)return this.prior=null,h;if(this.value.isDataDriven())return this.prior=null,h;if(a<this.begin)return u.possiblyEvaluate(e,i,r);{const p=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(u.possiblyEvaluate(e,i,r),h,U(p))}}return h}}class va{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,i,r){const a=new ks(this._properties);for(const h of Object.keys(this._values))a._values[h]=this._values[h].possiblyEvaluate(e,i,r);return a}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class zu{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return yt(this._values[e].value)}setValue(e,i){this._values[e]=new xa(this._values[e].property,i===null?void 0:yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].isIndoorDependent())}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r)}return e}possiblyEvaluate(e,i,r,a){const h=new ks(this._properties);for(const u of Object.keys(this._values))h._values[u]=this._values[u].possiblyEvaluate(e,i,r,a);return h}isIndoorDependent(){return this._isIndoorDependent}}class Bs{constructor(e,i,r,a){this.property=e,this.value=i,this.parameters=r,this.iconImageUseTheme=a}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,i,r,a){return this.property.evaluate(this.value,this.parameters,e,i,r,a,this.iconImageUseTheme)}}class ks{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Ve{constructor(e){this.specification=e}possiblyEvaluate(e,i){return e.expression.evaluate(i)}interpolate(e,i,r){const a=ol[this.specification.type];return a?a(e,i,r):e}}class He{constructor(e,i){this.specification=e,this.overrides=i}possiblyEvaluate(e,i,r,a,h){return e.expression.kind==="constant"||e.expression.kind==="camera"?new Bs(this,{kind:"constant",value:e.expression.evaluate(i,null,{},r,a,void 0,h)},i):new Bs(this,e.expression,i,h)}interpolate(e,i,r){if(e.value.kind!=="constant"||i.value.kind!=="constant")return e;if(e.value.value===void 0||i.value.value===void 0)return new Bs(this,{kind:"constant",value:void 0},e.parameters);const a=ol[this.specification.type];return a?new Bs(this,{kind:"constant",value:a(e.value.value,i.value.value,r)},e.parameters):e}evaluate(e,i,r,a,h,u,p){return e.kind==="constant"?e.value:e.evaluate(i,r,a,h,u,void 0,p)}}class $n{constructor(e){this.specification=e}possiblyEvaluate(e,i,r,a){return!!e.expression.evaluate(i,null,{},r,a)}interpolate(){return!1}}class Ei{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new Jt(0,{});for(const r in e){const a=e[r];a.specification.overridable&&this.overridableProperties.push(r);const h=this.defaultPropertyValues[r]=new xa(a,void 0),u=this.defaultTransitionablePropertyValues[r]=new Ml(a);this.defaultTransitioningPropertyValues[r]=u.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=h.possiblyEvaluate(i)}}}Qe(He,"DataDrivenProperty"),Qe(Ve,"DataConstantProperty"),Qe($n,"ColorRampProperty");var pe=JSON.parse('{"$version":8,"$root":{"version":{"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow"},"rain":{"type":"rain"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor"},"imports":{"type":"array","value":"import"},"iconsets":{"type":"iconsets"},"schema":{"type":"schema"},"sources":{"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"type":"featuresets"}},"featuresets":{"*":{"type":"featureset"}},"featureset":{"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"layer":{"type":"string"},"properties":{"type":"selectorProperty"},"featureNamespace":{"type":"string"},"_uniqueFeatureID":{"type":"boolean"}},"selectorProperty":{"*":{"type":"*"}},"model":{"type":"string"},"import":{"id":{"type":"string"},"url":{"type":"string"},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","expression":{}},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string"},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false},"shadow-quality":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]}},"shadow-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"shadow-draw-before-layer":{"type":"string"}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"iconsets":{"*":{"type":"iconset"}},"iconset":["iconset_sprite","iconset_source"],"iconset_sprite":{"type":{"type":"enum","values":{"sprite":1}},"url":{"type":"string"}},"iconset_source":{"type":{"type":"enum","values":{"source":1}},"source":{"type":"string"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"type":"enum","values":{"video":1}},"urls":{"type":"array","value":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"type":"enum","values":{"image":1}},"url":{"type":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"modelNodeOverride":{"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360}},"modelNodeOverrides":{"*":{"type":"modelNodeOverride"}},"modelMaterialOverride":{"model-color":{"type":"color"},"model-color-mix-intensity":{"type":"number"},"model-opacity":{"type":"number"},"model-emissive-strength":{"type":"number"}},"modelMaterialOverrides":{"*":{"type":"modelMaterialOverride"}},"modelSourceModel":{"uri":{"type":"string"},"position":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[-180,-90],"maximum":[180,90]},"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360},"nodeOverrides":{"type":"modelNodeOverrides"},"materialOverrides":{"type":"modelMaterialOverrides"},"nodeOverrideNames":{"type":"array","value":"string"},"materialOverrideNames":{"type":"array","value":"string"},"featureProperties":{"type":"*"}},"modelSourceModels":{"*":{"type":"modelSourceModel"}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"url":{"type":"string"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"},"models":{"type":"modelSourceModels"}},"layer":{"id":{"type":"string"},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"building":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{},"clip":{}}},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"},"appearances":{"type":"array","value":"appearance","supported-layer-types":["symbol"]}},"appearance":{"condition":{"type":"boolean","expression":{"interpolated":true,"parameters":["zoom","pitch","feature","feature-state","measure-light","distance-from-center"]},"property-type":"data-driven"},"name":{"type":"string"},"properties":{"type":"*"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_building","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"model-allow-density-reduction":{"type":"boolean","default":true}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{}},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"default":"none","expression":{}},"fill-construct-bridge-guard-rail":{"type":"boolean","default":"true","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"circle-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-markup":1},"default":"none","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-extrusion-edge-radius":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}}},"layout_building":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"building-facade":{"type":"boolean","default":false,"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-facade-floors":{"type":"number","minimum":1,"maximum":200,"default":3,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-unit-width":{"type":"number","minimum":1,"maximum":20,"default":3.1,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-window":{"type":"array","length":2,"value":"number","minimum":0.1,"maximum":1,"default":[0.9,0.9],"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-roof-shape":{"type":"enum","values":{"flat":1,"hipped":1,"gabled":1,"parapet":1,"mansard":1,"skillion":1,"pyramidal":1},"default":"flat","expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flip-roof-orientation":{"property-type":"data-driven","type":"boolean","default":false,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","default":0,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"default":"none","expression":{}},"line-cross-slope":{"type":"number","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"line-width-unit":{"type":"enum","values":{"pixels":1,"meters":1},"default":"pixels","expression":{"parameters":["zoom"]}},"line-elevation-ground-scale":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","line-progress"]},"transition":true,"property-type":"data-driven"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]}},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]}},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{"parameters":["zoom"]}},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"icon-size":{"type":"number","default":1,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"appearance":true,"use-theme":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]}},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]}},"text-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_hillshade":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster-particle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_clip":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_model":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_building":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*"}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"horizon-blend":{"type":"number","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"snow":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.4,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"flake-size":{"type":"number","default":0.71,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"rain":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.57,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"distortion-strength":{"type":"number","default":0.7,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective"}},"colorTheme":{"data":{"type":"string","expression":{}}},"indoor_source":{"sourceId":{"type":"string"},"sourceLayers":{"type":"array","value":"string"}},"indoor":{"*":{"type":"indoor_source"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator"},"center":{"type":"array","length":2,"value":"number","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string"},"exaggeration":{"type":"number","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_building","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-bridge-guard-rail-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"},"fill-tunnel-structure-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-height-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"flat"},"fill-extrusion-base-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"terrain"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true}},"paint_building":{"building-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"parameters":[]},"transition":true},"building-ambient-occlusion-ground-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-cast-shadows":{"type":"boolean","default":true},"building-color":{"type":"color","default":"rgba(193, 154, 127, 1)","use-theme":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-facade-emissive-chance":{"type":"number","default":0.35,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["measure-light","zoom"]}},"building-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"building-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light","line-progress"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-gradient":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["line-progress"]}},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1]},"line-trim-fade-range":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-trim-color":{"type":"color","default":"transparent","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"line-border-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"use-theme":true,"expression":{"interpolated":true,"parameters":["heatmap-density"]}},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-image-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{}},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-value"]}},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"raster-array-band":{"type":"string"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1},"default":"sea","expression":{}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-particle-speed"]}},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-shadow-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]}},"background-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]}},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]}},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"use-theme":true,"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white","use-theme":true},"sky-atmosphere-color":{"type":"color","default":"white","use-theme":true},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"property-type":"data-driven"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"use-theme":true,"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d"},"model-cast-shadows":{"type":"boolean","default":true},"model-receive-shadows":{"type":"boolean","default":true},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"model-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"model-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{}}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function Vp(n){return n instanceof Number||n instanceof String||n instanceof Boolean?n.valueOf():n}function Vc(n){if(Array.isArray(n))return n.map(Vc);if(n instanceof Object&&!(n instanceof Number||n instanceof String||n instanceof Boolean)){const e={};for(const i in n)e[i]=Vc(n[i]);return e}return Vp(n)}function Lu(n){if(n===!0||n===!1)return!0;if(!Array.isArray(n)||n.length===0)return!1;switch(n[0]){case"has":return n.length>=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(const e of n.slice(1))if(!Lu(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function Fu(n,e="",i=null,r="fill"){if(n==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Lu(n)||(n=Uc(n));const a=n;let h=!0;try{h=function(v){if(!ba(v))return v;let b=Vc(v);return jp(b),b=Up(b),b}(a)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
2
2
  This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
3
3
  and paste the contents of this message in the report.
4
4
  Thank you!