wacomm 1.87.0 → 1.87.2

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
- import { g as qT } from "./index-Cy0AcX8W.mjs";
1
+ import { g as qT } from "./index-B3FzcAVO.mjs";
2
2
  function $T(Cu, gm) {
3
3
  for (var Io = 0; Io < gm.length; Io++) {
4
4
  const gs = gm[Io];
@@ -1,4 +1,4 @@
1
- import { g as Ep } from "./index-Cy0AcX8W.mjs";
1
+ import { g as Ep } from "./index-B3FzcAVO.mjs";
2
2
  function Dp(Ta, Ol) {
3
3
  for (var Fr = 0; Fr < Ol.length; Fr++) {
4
4
  const ki = Ol[Fr];
@@ -1,4 +1,4 @@
1
- "use strict";const Ep=require("./index-ByCESzuH.js");function Dp(Ta,Ol){for(var Fr=0;Fr<Ol.length;Fr++){const ki=Ol[Fr];if(typeof ki!="string"&&!Array.isArray(ki)){for(const Or in ki)if(Or!=="default"&&!(Or in Ta)){const Sa=Object.getOwnPropertyDescriptor(ki,Or);Sa&&Object.defineProperty(Ta,Or,Sa.get?Sa:{enumerable:!0,get:()=>ki[Or]})}}}return Object.freeze(Object.defineProperty(Ta,Symbol.toStringTag,{value:"Module"}))}var Ro={exports:{}};/**
1
+ "use strict";const Ep=require("./index-KkD8kIGu.js");function Dp(Ta,Ol){for(var Fr=0;Fr<Ol.length;Fr++){const ki=Ol[Fr];if(typeof ki!="string"&&!Array.isArray(ki)){for(const Or in ki)if(Or!=="default"&&!(Or in Ta)){const Sa=Object.getOwnPropertyDescriptor(ki,Or);Sa&&Object.defineProperty(Ta,Or,Sa.get?Sa:{enumerable:!0,get:()=>ki[Or]})}}}return Object.freeze(Object.defineProperty(Ta,Symbol.toStringTag,{value:"Module"}))}var Ro={exports:{}};/**
2
2
  * MapLibre GL JS
3
3
  * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.1/LICENSE.txt
4
4
  */var Lp=Ro.exports,Fu;function Rp(){return Fu||(Fu=1,(function(Ta,Ol){(function(Fr,ki){Ta.exports=ki()})(Lp,(function(){"use strict";var Fr={},ki={};function Or(L,p,zi){if(ki[L]=zi,L==="index"){var Xi="var sharedModule = {}; ("+ki.shared+")(sharedModule); ("+ki.worker+")(sharedModule);",Gt={};return ki.shared(Gt),ki.index(Fr,Gt),typeof window<"u"&&Fr.setWorkerUrl(window.URL.createObjectURL(new Blob([Xi],{type:"text/javascript"}))),Fr}}Or("shared",["exports"],(function(L){"use strict";function p(i,t,r,n){return new(r||(r=Promise))((function(l,u){function d(x){try{_(n.next(x))}catch(v){u(v)}}function f(x){try{_(n.throw(x))}catch(v){u(v)}}function _(x){var v;x.done?l(x.value):(v=x.value,v instanceof r?v:new r((function(w){w(v)}))).then(d,f)}_((n=n.apply(i,t||[])).next())}))}function zi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}typeof SuppressedError=="function"&&SuppressedError;var Xi=Gt;function Gt(i,t){this.x=i,this.y=t}Gt.prototype={clone:function(){return new Gt(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,t){return this.clone()._rotateAround(i,t)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var t=i.x-this.x,r=i.y-this.y;return t*t+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,t){return Math.atan2(this.x*t-this.y*i,this.x*i+this.y*t)},_matMult:function(i){var t=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=t,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var t=Math.cos(i),r=Math.sin(i),n=r*this.x+t*this.y;return this.x=t*this.x-r*this.y,this.y=n,this},_rotateAround:function(i,t){var r=Math.cos(i),n=Math.sin(i),l=t.y+n*(this.x-t.x)+r*(this.y-t.y);return this.x=t.x+r*(this.x-t.x)-n*(this.y-t.y),this.y=l,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Gt.convert=function(i){return i instanceof Gt?i:Array.isArray(i)?new Gt(i[0],i[1]):i};var me=zi(Xi),ne=Vr;function Vr(i,t,r,n){this.cx=3*i,this.bx=3*(r-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=t,this.p2x=r,this.p2y=n}Vr.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,t){if(t===void 0&&(t=1e-6),i<0)return 0;if(i>1)return 1;for(var r=i,n=0;n<8;n++){var l=this.sampleCurveX(r)-i;if(Math.abs(l)<t)return r;var u=this.sampleCurveDerivativeX(r);if(Math.abs(u)<1e-6)break;r-=l/u}var d=0,f=1;for(r=i,n=0;n<20&&(l=this.sampleCurveX(r),!(Math.abs(l-i)<t));n++)i>l?d=r:f=r,r=.5*(f-d)+d;return r},solve:function(i,t){return this.sampleCurveY(this.solveCurveX(i,t))}};var br=zi(ne);let Wi,wr;function hr(){return Wi==null&&(Wi=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Wi}function Gs(){if(wr==null&&(wr=!1,hr())){const t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let n=0;n<25;n++){const l=4*n;t.fillStyle=`rgb(${l},${l+1},${l+2})`,t.fillRect(n%5,Math.floor(n/5),1,1)}const r=t.getImageData(0,0,5,5).data;for(let n=0;n<100;n++)if(n%4!=3&&r[n]!==n){wr=!0;break}}}return wr||!1}function hi(i,t,r,n){const l=new br(i,t,r,n);return u=>l.solve(u)}const Ia=hi(.25,.1,.25,1);function Ei(i,t,r){return Math.min(r,Math.max(t,i))}function Ki(i,t,r){const n=r-t,l=((i-t)%n+n)%n+t;return l===t?r:l}function vi(i,...t){for(const r of t)for(const n in r)i[n]=r[n];return i}let Pn=1;function Ji(i,t,r){const n={};for(const l in i)n[l]=t.call(this,i[l],l,i);return n}function Hs(i,t,r){const n={};for(const l in i)t.call(this,i[l],l,i)&&(n[l]=i[l]);return n}function nt(i){return Array.isArray(i)?i.map(nt):typeof i=="object"&&i?Ji(i,nt):i}const An={};function Ft(i){An[i]||(typeof console<"u"&&console.warn(i),An[i]=!0)}function Ht(i,t,r){return(r.y-i.y)*(t.x-i.x)>(t.y-i.y)*(r.x-i.x)}function ur(i){return typeof WorkerGlobalScope<"u"&&i!==void 0&&i instanceof WorkerGlobalScope}let os=null;function Yi(i){return typeof ImageBitmap<"u"&&i instanceof ImageBitmap}const Mn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Nr(i,t,r,n,l){return p(this,void 0,void 0,(function*(){if(typeof VideoFrame>"u")throw new Error("VideoFrame not supported");const u=new VideoFrame(i,{timestamp:0});try{const d=u==null?void 0:u.format;if(!d||!d.startsWith("BGR")&&!d.startsWith("RGB"))throw new Error(`Unrecognized format ${d}`);const f=d.startsWith("BGR"),_=new Uint8ClampedArray(n*l*4);if(yield u.copyTo(_,(function(x,v,w,I,M){const k=4*Math.max(-v,0),z=(Math.max(0,w)-w)*I*4+k,F=4*I,j=Math.max(0,v),Q=Math.max(0,w);return{rect:{x:j,y:Q,width:Math.min(x.width,v+I)-j,height:Math.min(x.height,w+M)-Q},layout:[{offset:z,stride:F}]}})(i,t,r,n,l)),f)for(let x=0;x<_.length;x+=4){const v=_[x];_[x]=_[x+2],_[x+2]=v}return _}finally{u.close()}}))}let dr,ei;const Di="AbortError";function ls(){return new Error(Di)}const Tr={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function Qi(i){return Tr.REGISTERED_PROTOCOLS[i.substring(0,i.indexOf("://"))]}const cs="global-dispatcher";class ui extends Error{constructor(t,r,n,l){super(`AJAXError: ${r} (${t}): ${n}`),this.status=t,this.statusText=r,this.url=n,this.body=l}}const Li=()=>ur(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,jr=function(i,t){if(/:\/\//.test(i.url)&&!/^https?:|^file:/.test(i.url)){const n=Qi(i.url);if(n)return n(i,t);if(ur(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:i,targetMapId:cs},t)}if(!(/^file:/.test(r=i.url)||/^file:/.test(Li())&&!/^\w+:/.test(r))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return(function(n,l){return p(this,void 0,void 0,(function*(){const u=new Request(n.url,{method:n.method||"GET",body:n.body,credentials:n.credentials,headers:n.headers,cache:n.cache,referrer:Li(),signal:l.signal});n.type!=="json"||u.headers.has("Accept")||u.headers.set("Accept","application/json");const d=yield fetch(u);if(!d.ok){const x=yield d.blob();throw new ui(d.status,d.statusText,n.url,x)}let f;f=n.type==="arrayBuffer"||n.type==="image"?d.arrayBuffer():n.type==="json"?d.json():d.text();const _=yield f;if(l.signal.aborted)throw ls();return{data:_,cacheControl:d.headers.get("Cache-Control"),expires:d.headers.get("Expires")}}))})(i,t);if(ur(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:i,mustQueue:!0,targetMapId:cs},t)}var r;return(function(n,l){return new Promise(((u,d)=>{var f;const _=new XMLHttpRequest;_.open(n.method||"GET",n.url,!0),n.type!=="arrayBuffer"&&n.type!=="image"||(_.responseType="arraybuffer");for(const x in n.headers)_.setRequestHeader(x,n.headers[x]);n.type==="json"&&(_.responseType="text",!((f=n.headers)===null||f===void 0)&&f.Accept||_.setRequestHeader("Accept","application/json")),_.withCredentials=n.credentials==="include",_.onerror=()=>{d(new Error(_.statusText))},_.onload=()=>{if(!l.signal.aborted)if((_.status>=200&&_.status<300||_.status===0)&&_.response!==null){let x=_.response;if(n.type==="json")try{x=JSON.parse(_.response)}catch(v){return void d(v)}u({data:x,cacheControl:_.getResponseHeader("Cache-Control"),expires:_.getResponseHeader("Expires")})}else{const x=new Blob([_.response],{type:_.getResponseHeader("Content-Type")});d(new ui(_.status,_.statusText,n.url,x))}},l.signal.addEventListener("abort",(()=>{_.abort(),d(ls())})),_.send(n.body)}))})(i,t)};function Ur(i){if(!i||i.indexOf("://")<=0||i.indexOf("data:image/")===0||i.indexOf("blob:")===0)return!0;const t=new URL(i),r=window.location;return t.protocol===r.protocol&&t.host===r.host}function Xs(i,t,r){r[i]&&r[i].indexOf(t)!==-1||(r[i]=r[i]||[],r[i].push(t))}function pr(i,t,r){if(r&&r[i]){const n=r[i].indexOf(t);n!==-1&&r[i].splice(n,1)}}class Sr{constructor(t,r={}){vi(this,r),this.type=t}}class Ir extends Sr{constructor(t,r={}){super("error",vi({error:t},r))}}class hs{on(t,r){return this._listeners=this._listeners||{},Xs(t,r,this._listeners),this}off(t,r){return pr(t,r,this._listeners),pr(t,r,this._oneTimeListeners),this}once(t,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},Xs(t,r,this._oneTimeListeners),this):new Promise((n=>this.once(t,n)))}fire(t,r){typeof t=="string"&&(t=new Sr(t,r||{}));const n=t.type;if(this.listens(n)){t.target=this;const l=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const f of l)f.call(this,t);const u=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const f of u)pr(n,f,this._oneTimeListeners),f.call(this,t);const d=this._eventedParent;d&&(vi(t,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),d.fire(t))}else t instanceof Ir&&console.error(t.error);return this}listens(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)}setEventedParent(t,r){return this._eventedParent=t,this._eventedParentData=r,this}}var ie={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};const $r=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Ws(i,t){const r={};for(const n in i)n!=="ref"&&(r[n]=i[n]);return $r.forEach((n=>{n in t&&(r[n]=t[n])})),r}function et(i,t){if(Array.isArray(i)){if(!Array.isArray(t)||i.length!==t.length)return!1;for(let r=0;r<i.length;r++)if(!et(i[r],t[r]))return!1;return!0}if(typeof i=="object"&&i!==null&&t!==null){if(typeof t!="object"||Object.keys(i).length!==Object.keys(t).length)return!1;for(const r in i)if(!et(i[r],t[r]))return!1;return!0}return i===t}function yt(i,t){i.push(t)}function Ks(i,t,r){yt(r,{command:"addSource",args:[i,t[i]]})}function Pr(i,t,r){yt(t,{command:"removeSource",args:[i]}),r[i]=!0}function fr(i,t,r,n){Pr(i,r,n),Ks(i,t,r)}function us(i,t,r){let n;for(n in i[r])if(Object.prototype.hasOwnProperty.call(i[r],n)&&n!=="data"&&!et(i[r][n],t[r][n]))return!1;for(n in t[r])if(Object.prototype.hasOwnProperty.call(t[r],n)&&n!=="data"&&!et(i[r][n],t[r][n]))return!1;return!0}function bi(i,t,r,n,l,u){i=i||{},t=t||{};for(const d in i)Object.prototype.hasOwnProperty.call(i,d)&&(et(i[d],t[d])||r.push({command:u,args:[n,d,t[d],l]}));for(const d in t)Object.prototype.hasOwnProperty.call(t,d)&&!Object.prototype.hasOwnProperty.call(i,d)&&(et(i[d],t[d])||r.push({command:u,args:[n,d,t[d],l]}))}function Js(i){return i.id}function Ys(i,t){return i[t.id]=t,i}class ue{constructor(t,r,n,l){this.message=(t?`${t}: `:"")+n,l&&(this.identifier=l),r!=null&&r.__line__&&(this.line=r.__line__)}}function er(i,...t){for(const r of t)for(const n in r)i[n]=r[n];return i}class Xt extends Error{constructor(t,r){super(r),this.message=r,this.key=t}}class tr{constructor(t,r=[]){this.parent=t,this.bindings={};for(const[n,l]of r)this.bindings[n]=l}concat(t){return new tr(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(`${t} not found in scope.`)}has(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)}}const Ar={kind:"null"},_e={kind:"number"},$e={kind:"string"},Be={kind:"boolean"},ti={kind:"color"},Ri={kind:"object"},Ne={kind:"value"},ir={kind:"collator"},mr={kind:"formatted"},Mr={kind:"padding"},rr={kind:"resolvedImage"},N={kind:"variableAnchorOffsetCollection"};function A(i,t){return{kind:"array",itemType:i,N:t}}function P(i){if(i.kind==="array"){const t=P(i.itemType);return typeof i.N=="number"?`array<${t}, ${i.N}>`:i.itemType.kind==="value"?"array":`array<${t}>`}return i.kind}const D=[Ar,_e,$e,Be,ti,mr,Ri,A(Ne),Mr,rr,N];function O(i,t){if(t.kind==="error")return null;if(i.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!O(i.itemType,t.itemType))&&(typeof i.N!="number"||i.N===t.N))return null}else{if(i.kind===t.kind)return null;if(i.kind==="value"){for(const r of D)if(!O(r,t))return null}}return`Expected ${P(i)} but found ${P(t)} instead.`}function H(i,t){return t.some((r=>r.kind===i.kind))}function W(i,t){return t.some((r=>r==="null"?i===null:r==="array"?Array.isArray(i):r==="object"?i&&!Array.isArray(i)&&typeof i=="object":r===typeof i))}function Y(i,t){return i.kind==="array"&&t.kind==="array"?i.itemType.kind===t.itemType.kind&&typeof i.N=="number":i.kind===t.kind}const q=.96422,se=.82521,le=4/29,te=6/29,de=3*te*te,Ee=te*te*te,De=Math.PI/180,Ke=180/Math.PI;function je(i){return(i%=360)<0&&(i+=360),i}function Je([i,t,r,n]){let l,u;const d=Pt((.2225045*(i=Ge(i))+.7168786*(t=Ge(t))+.0606169*(r=Ge(r)))/1);i===t&&t===r?l=u=d:(l=Pt((.4360747*i+.3850649*t+.1430804*r)/q),u=Pt((.0139322*i+.0971045*t+.7141733*r)/se));const f=116*d-16;return[f<0?0:f,500*(l-d),200*(d-u),n]}function Ge(i){return i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function Pt(i){return i>Ee?Math.pow(i,1/3):i/de+le}function xt([i,t,r,n]){let l=(i+16)/116,u=isNaN(t)?l:l+t/500,d=isNaN(r)?l:l-r/200;return l=1*rt(l),u=q*rt(u),d=se*rt(d),[qe(3.1338561*u-1.6168667*l-.4906146*d),qe(-.9787684*u+1.9161415*l+.033454*d),qe(.0719453*u-.2289914*l+1.4052427*d),n]}function qe(i){return(i=i<=.00304?12.92*i:1.055*Math.pow(i,1/2.4)-.055)<0?0:i>1?1:i}function rt(i){return i>te?i*i*i:de*(i-le)}function gt(i){return parseInt(i.padEnd(2,i),16)/255}function kt(i,t){return Lt(t?i/100:i,0,1)}function Lt(i,t,r){return Math.min(Math.max(t,i),r)}function Wt(i){return!i.some(Number.isNaN)}const ds={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class st{constructor(t,r,n,l=1,u=!0){this.r=t,this.g=r,this.b=n,this.a=l,u||(this.r*=l,this.g*=l,this.b*=l,l||this.overwriteGetter("rgb",[t,r,n,l]))}static parse(t){if(t instanceof st)return t;if(typeof t!="string")return;const r=(function(n){if((n=n.toLowerCase().trim())==="transparent")return[0,0,0,0];const l=ds[n];if(l){const[d,f,_]=l;return[d/255,f/255,_/255,1]}if(n.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(n)){const d=n.length<6?1:2;let f=1;return[gt(n.slice(f,f+=d)),gt(n.slice(f,f+=d)),gt(n.slice(f,f+=d)),gt(n.slice(f,f+d)||"ff")]}if(n.startsWith("rgb")){const d=n.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(d){const[f,_,x,v,w,I,M,k,z,F,j,Q]=d,G=[v||" ",M||" ",F].join("");if(G===" "||G===" /"||G===",,"||G===",,,"){const J=[x,I,z].join(""),re=J==="%%%"?100:J===""?255:0;if(re){const ce=[Lt(+_/re,0,1),Lt(+w/re,0,1),Lt(+k/re,0,1),j?kt(+j,Q):1];if(Wt(ce))return ce}}return}}const u=n.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(u){const[d,f,_,x,v,w,I,M,k]=u,z=[_||" ",v||" ",I].join("");if(z===" "||z===" /"||z===",,"||z===",,,"){const F=[+f,Lt(+x,0,100),Lt(+w,0,100),M?kt(+M,k):1];if(Wt(F))return(function([j,Q,G,J]){function re(ce){const we=(ce+j/30)%12,Le=Q*Math.min(G,1-G);return G-Le*Math.max(-1,Math.min(we-3,9-we,1))}return j=je(j),Q/=100,G/=100,[re(0),re(8),re(4),J]})(F)}}})(t);return r?new st(...r,!1):void 0}get rgb(){const{r:t,g:r,b:n,a:l}=this,u=l||1/0;return this.overwriteGetter("rgb",[t/u,r/u,n/u,l])}get hcl(){return this.overwriteGetter("hcl",(function(t){const[r,n,l,u]=Je(t),d=Math.sqrt(n*n+l*l);return[Math.round(1e4*d)?je(Math.atan2(l,n)*Ke):NaN,d,r,u]})(this.rgb))}get lab(){return this.overwriteGetter("lab",Je(this.rgb))}overwriteGetter(t,r){return Object.defineProperty(this,t,{value:r}),r}toString(){const[t,r,n,l]=this.rgb;return`rgba(${[t,r,n].map((u=>Math.round(255*u))).join(",")},${l})`}}st.black=new st(0,0,0,1),st.white=new st(1,1,1,1),st.transparent=new st(0,0,0,0),st.red=new st(1,0,0,1);class Pa{constructor(t,r,n){this.sensitivity=t?r?"variant":"case":r?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,r){return this.collator.compare(t,r)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Aa{constructor(t,r,n,l,u){this.text=t,this.image=r,this.scale=n,this.fontStack=l,this.textColor=u}}class di{constructor(t){this.sections=t}static fromString(t){return new di([new Aa(t,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some((t=>t.text.length!==0||t.image&&t.image.name.length!==0))}static factory(t){return t instanceof di?t:di.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map((t=>t.text)).join("")}}class pi{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof pi)return t;if(typeof t=="number")return new pi([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(const r of t)if(typeof r!="number")return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new pi(t)}}toString(){return JSON.stringify(this.values)}}const Vl=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class wi{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof wi)return t;if(Array.isArray(t)&&!(t.length<1)&&t.length%2==0){for(let r=0;r<t.length;r+=2){const n=t[r],l=t[r+1];if(typeof n!="string"||!Vl.has(n)||!Array.isArray(l)||l.length!==2||typeof l[0]!="number"||typeof l[1]!="number")return}return new wi(t)}}toString(){return JSON.stringify(this.values)}}class fi{constructor(t){this.name=t.name,this.available=t.available}toString(){return this.name}static fromString(t){return t?new fi({name:t,available:!1}):null}}function ps(i,t,r,n){return typeof i=="number"&&i>=0&&i<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof r=="number"&&r>=0&&r<=255?n===void 0||typeof n=="number"&&n>=0&&n<=1?null:`Invalid rgba value [${[i,t,r,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof n=="number"?[i,t,r,n]:[i,t,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function qr(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof st||i instanceof Pa||i instanceof di||i instanceof pi||i instanceof wi||i instanceof fi)return!0;if(Array.isArray(i)){for(const t of i)if(!qr(t))return!1;return!0}if(typeof i=="object"){for(const t in i)if(!qr(i[t]))return!1;return!0}return!1}function At(i){if(i===null)return Ar;if(typeof i=="string")return $e;if(typeof i=="boolean")return Be;if(typeof i=="number")return _e;if(i instanceof st)return ti;if(i instanceof Pa)return ir;if(i instanceof di)return mr;if(i instanceof pi)return Mr;if(i instanceof wi)return N;if(i instanceof fi)return rr;if(Array.isArray(i)){const t=i.length;let r;for(const n of i){const l=At(n);if(r){if(r===l)continue;r=Ne;break}r=l}return A(r||Ne,t)}return Ri}function Qs(i){const t=typeof i;return i===null?"":t==="string"||t==="number"||t==="boolean"?String(i):i instanceof st||i instanceof di||i instanceof pi||i instanceof wi||i instanceof fi?i.toString():JSON.stringify(i)}class Bi{constructor(t,r){this.type=t,this.value=r}static parse(t,r){if(t.length!==2)return r.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!qr(t[1]))return r.error("invalid value");const n=t[1];let l=At(n);const u=r.expectedType;return l.kind!=="array"||l.N!==0||!u||u.kind!=="array"||typeof u.N=="number"&&u.N!==0||(l=u),new Bi(l,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class St{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}}const Cn={string:$e,number:_e,boolean:Be,object:Ri};class Fi{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let n,l=1;const u=t[0];if(u==="array"){let f,_;if(t.length>2){const x=t[1];if(typeof x!="string"||!(x in Cn)||x==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);f=Cn[x],l++}else f=Ne;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return r.error('The length argument to "array" must be a positive integer literal',2);_=t[2],l++}n=A(f,_)}else{if(!Cn[u])throw new Error(`Types doesn't contain name = ${u}`);n=Cn[u]}const d=[];for(;l<t.length;l++){const f=r.parse(t[l],l,Ne);if(!f)return null;d.push(f)}return new Fi(n,d)}evaluate(t){for(let r=0;r<this.args.length;r++){const n=this.args[r].evaluate(t);if(!O(this.type,At(n)))return n;if(r===this.args.length-1)throw new St(`Expected value to be of type ${P(this.type)}, but found ${P(At(n))} instead.`)}throw new Error}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every((t=>t.outputDefined()))}}const Ma={"to-boolean":Be,"to-color":ti,"to-number":_e,"to-string":$e};class Oi{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");const n=t[0];if(!Ma[n])throw new Error(`Can't parse ${n} as it is not part of the known types`);if((n==="to-boolean"||n==="to-string")&&t.length!==2)return r.error("Expected one argument.");const l=Ma[n],u=[];for(let d=1;d<t.length;d++){const f=r.parse(t[d],d,Ne);if(!f)return null;u.push(f)}return new Oi(l,u)}evaluate(t){switch(this.type.kind){case"boolean":return!!this.args[0].evaluate(t);case"color":{let r,n;for(const l of this.args){if(r=l.evaluate(t),n=null,r instanceof st)return r;if(typeof r=="string"){const u=t.parseColor(r);if(u)return u}else if(Array.isArray(r)&&(n=r.length<3||r.length>4?`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:ps(r[0],r[1],r[2],r[3]),!n))return new st(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new St(n||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"padding":{let r;for(const n of this.args){r=n.evaluate(t);const l=pi.parse(r);if(l)return l}throw new St(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"variableAnchorOffsetCollection":{let r;for(const n of this.args){r=n.evaluate(t);const l=wi.parse(r);if(l)return l}throw new St(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"number":{let r=null;for(const n of this.args){if(r=n.evaluate(t),r===null)return 0;const l=Number(r);if(!isNaN(l))return l}throw new St(`Could not convert ${JSON.stringify(r)} to number.`)}case"formatted":return di.fromString(Qs(this.args[0].evaluate(t)));case"resolvedImage":return fi.fromString(Qs(this.args[0].evaluate(t)));default:return Qs(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every((t=>t.outputDefined()))}}const Nl=["Unknown","Point","LineString","Polygon"];class kn{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Nl[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||{}}parseColor(t){let r=this._parseColorCache[t];return r||(r=this._parseColorCache[t]=st.parse(t)),r}}class Zr{constructor(t,r,n=[],l,u=new tr,d=[]){this.registry=t,this.path=n,this.key=n.map((f=>`[${f}]`)).join(""),this.scope=u,this.errors=d,this.expectedType=l,this._isConstant=r}parse(t,r,n,l,u={}){return r?this.concat(r,n,l)._parse(t,u):this._parse(t,u)}_parse(t,r){function n(l,u,d){return d==="assert"?new Fi(u,[l]):d==="coerce"?new Oi(u,[l]):l}if(t!==null&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"||(t=["literal",t]),Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const l=t[0];if(typeof l!="string")return this.error(`Expression name must be a string, but found ${typeof l} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const u=this.registry[l];if(u){let d=u.parse(t,this);if(!d)return null;if(this.expectedType){const f=this.expectedType,_=d.type;if(f.kind!=="string"&&f.kind!=="number"&&f.kind!=="boolean"&&f.kind!=="object"&&f.kind!=="array"||_.kind!=="value")if(f.kind!=="color"&&f.kind!=="formatted"&&f.kind!=="resolvedImage"||_.kind!=="value"&&_.kind!=="string")if(f.kind!=="padding"||_.kind!=="value"&&_.kind!=="number"&&_.kind!=="array")if(f.kind!=="variableAnchorOffsetCollection"||_.kind!=="value"&&_.kind!=="array"){if(this.checkSubtype(f,_))return null}else d=n(d,f,r.typeAnnotation||"coerce");else d=n(d,f,r.typeAnnotation||"coerce");else d=n(d,f,r.typeAnnotation||"coerce");else d=n(d,f,r.typeAnnotation||"assert")}if(!(d instanceof Bi)&&d.type.kind!=="resolvedImage"&&this._isConstant(d)){const f=new kn;try{d=new Bi(d.type,d.evaluate(f))}catch(_){return this.error(_.message),null}}return d}return this.error(`Unknown expression "${l}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(t===void 0?"'undefined' value invalid. Use null instead.":typeof t=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof t} instead.`)}concat(t,r,n){const l=typeof t=="number"?this.path.concat(t):this.path,u=n?this.scope.concat(n):this.scope;return new Zr(this.registry,this._isConstant,l,r||null,u,this.errors)}error(t,...r){const n=`${this.key}${r.map((l=>`[${l}]`)).join("")}`;this.errors.push(new Xt(n,t))}checkSubtype(t,r){const n=O(t,r);return n&&this.error(n),n}}class Cr{constructor(t,r){this.type=r.type,this.bindings=[].concat(t),this.result=r}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(const r of this.bindings)t(r[1]);t(this.result)}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);const n=[];for(let u=1;u<t.length-1;u+=2){const d=t[u];if(typeof d!="string")return r.error(`Expected string, but found ${typeof d} instead.`,u);if(/[^a-zA-Z0-9_]/.test(d))return r.error("Variable names must contain only alphanumeric characters or '_'.",u);const f=r.parse(t[u+1],u+1);if(!f)return null;n.push([d,f])}const l=r.parse(t[t.length-1],t.length-1,r.expectedType,n);return l?new Cr(n,l):null}outputDefined(){return this.result.outputDefined()}}class tt{constructor(t,r){this.type=r.type,this.name=t,this.boundExpression=r}static parse(t,r){if(t.length!==2||typeof t[1]!="string")return r.error("'var' expression requires exactly one string literal argument.");const n=t[1];return r.scope.has(n)?new tt(n,r.scope.get(n)):r.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return!1}}class Ca{constructor(t,r,n){this.type=t,this.index=r,this.input=n}static parse(t,r){if(t.length!==3)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const n=r.parse(t[1],1,_e),l=r.parse(t[2],2,A(r.expectedType||Ne));return n&&l?new Ca(l.type.itemType,n,l):null}evaluate(t){const r=this.index.evaluate(t),n=this.input.evaluate(t);if(r<0)throw new St(`Array index out of bounds: ${r} < 0.`);if(r>=n.length)throw new St(`Array index out of bounds: ${r} > ${n.length-1}.`);if(r!==Math.floor(r))throw new St(`Array index must be an integer, but found ${r} instead.`);return n[r]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}}class ka{constructor(t,r){this.type=Be,this.needle=t,this.haystack=r}static parse(t,r){if(t.length!==3)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const n=r.parse(t[1],1,Ne),l=r.parse(t[2],2,Ne);return n&&l?H(n.type,[Be,$e,_e,Ar,Ne])?new ka(n,l):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${P(n.type)} instead`):null}evaluate(t){const r=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!n)return!1;if(!W(r,["boolean","string","number","null"]))throw new St(`Expected first argument to be of type boolean, string, number or null, but found ${P(At(r))} instead.`);if(!W(n,["string","array"]))throw new St(`Expected second argument to be of type array or string, but found ${P(At(n))} instead.`);return n.indexOf(r)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}}class fs{constructor(t,r,n){this.type=_e,this.needle=t,this.haystack=r,this.fromIndex=n}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const n=r.parse(t[1],1,Ne),l=r.parse(t[2],2,Ne);if(!n||!l)return null;if(!H(n.type,[Be,$e,_e,Ar,Ne]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${P(n.type)} instead`);if(t.length===4){const u=r.parse(t[3],3,_e);return u?new fs(n,l,u):null}return new fs(n,l)}evaluate(t){const r=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!W(r,["boolean","string","number","null"]))throw new St(`Expected first argument to be of type boolean, string, number or null, but found ${P(At(r))} instead.`);let l;if(this.fromIndex&&(l=this.fromIndex.evaluate(t)),W(n,["string"])){const u=n.indexOf(r,l);return u===-1?-1:[...n.slice(0,u)].length}if(W(n,["array"]))return n.indexOf(r,l);throw new St(`Expected second argument to be of type array or string, but found ${P(At(n))} instead.`)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}}class za{constructor(t,r,n,l,u,d){this.inputType=t,this.type=r,this.input=n,this.cases=l,this.outputs=u,this.otherwise=d}static parse(t,r){if(t.length<5)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return r.error("Expected an even number of arguments.");let n,l;r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);const u={},d=[];for(let x=2;x<t.length-1;x+=2){let v=t[x];const w=t[x+1];Array.isArray(v)||(v=[v]);const I=r.concat(x);if(v.length===0)return I.error("Expected at least one branch label.");for(const k of v){if(typeof k!="number"&&typeof k!="string")return I.error("Branch labels must be numbers or strings.");if(typeof k=="number"&&Math.abs(k)>Number.MAX_SAFE_INTEGER)return I.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof k=="number"&&Math.floor(k)!==k)return I.error("Numeric branch labels must be integer values.");if(n){if(I.checkSubtype(n,At(k)))return null}else n=At(k);if(u[String(k)]!==void 0)return I.error("Branch labels must be unique.");u[String(k)]=d.length}const M=r.parse(w,x,l);if(!M)return null;l=l||M.type,d.push(M)}const f=r.parse(t[1],1,Ne);if(!f)return null;const _=r.parse(t[t.length-1],t.length-1,l);return _?f.type.kind!=="value"&&r.concat(1).checkSubtype(n,f.type)?null:new za(n,l,f,u,d,_):null}evaluate(t){const r=this.input.evaluate(t);return(At(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every((t=>t.outputDefined()))&&this.otherwise.outputDefined()}}class zn{constructor(t,r,n){this.type=t,this.branches=r,this.otherwise=n}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return r.error("Expected an odd number of arguments.");let n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);const l=[];for(let d=1;d<t.length-1;d+=2){const f=r.parse(t[d],d,Be);if(!f)return null;const _=r.parse(t[d+1],d+1,n);if(!_)return null;l.push([f,_]),n=n||_.type}const u=r.parse(t[t.length-1],t.length-1,n);if(!u)return null;if(!n)throw new Error("Can't infer output type");return new zn(n,l,u)}evaluate(t){for(const[r,n]of this.branches)if(r.evaluate(t))return n.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(const[r,n]of this.branches)t(r),t(n);t(this.otherwise)}outputDefined(){return this.branches.every((([t,r])=>r.outputDefined()))&&this.otherwise.outputDefined()}}class en{constructor(t,r,n,l){this.type=t,this.input=r,this.beginIndex=n,this.endIndex=l}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const n=r.parse(t[1],1,Ne),l=r.parse(t[2],2,_e);if(!n||!l)return null;if(!H(n.type,[A(Ne),$e,Ne]))return r.error(`Expected first argument to be of type array or string, but found ${P(n.type)} instead`);if(t.length===4){const u=r.parse(t[3],3,_e);return u?new en(n.type,n,l,u):null}return new en(n.type,n,l)}evaluate(t){const r=this.input.evaluate(t),n=this.beginIndex.evaluate(t);let l;if(this.endIndex&&(l=this.endIndex.evaluate(t)),W(r,["string"]))return[...r].slice(n,l).join("");if(W(r,["array"]))return r.slice(n,l);throw new St(`Expected first argument to be of type array or string, but found ${P(At(r))} instead.`)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}}function En(i,t){const r=i.length-1;let n,l,u=0,d=r,f=0;for(;u<=d;)if(f=Math.floor((u+d)/2),n=i[f],l=i[f+1],n<=t){if(f===r||t<l)return f;u=f+1}else{if(!(n>t))throw new St("Input is not a number.");d=f-1}return 0}class ms{constructor(t,r,n){this.type=t,this.input=r,this.labels=[],this.outputs=[];for(const[l,u]of n)this.labels.push(l),this.outputs.push(u)}static parse(t,r){if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");const n=r.parse(t[1],1,_e);if(!n)return null;const l=[];let u=null;r.expectedType&&r.expectedType.kind!=="value"&&(u=r.expectedType);for(let d=1;d<t.length;d+=2){const f=d===1?-1/0:t[d],_=t[d+1],x=d,v=d+1;if(typeof f!="number")return r.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',x);if(l.length&&l[l.length-1][0]>=f)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',x);const w=r.parse(_,v,u);if(!w)return null;u=u||w.type,l.push([f,w])}return new ms(u,n,l)}evaluate(t){const r=this.labels,n=this.outputs;if(r.length===1)return n[0].evaluate(t);const l=this.input.evaluate(t);if(l<=r[0])return n[0].evaluate(t);const u=r.length;return l>=r[u-1]?n[u-1].evaluate(t):n[En(r,l)].evaluate(t)}eachChild(t){t(this.input);for(const r of this.outputs)t(r)}outputDefined(){return this.outputs.every((t=>t.outputDefined()))}}function Bo(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jl=Fo;function Fo(i,t,r,n){this.cx=3*i,this.bx=3*(r-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=t,this.p2x=r,this.p2y=n}Fo.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,t){if(t===void 0&&(t=1e-6),i<0)return 0;if(i>1)return 1;for(var r=i,n=0;n<8;n++){var l=this.sampleCurveX(r)-i;if(Math.abs(l)<t)return r;var u=this.sampleCurveDerivativeX(r);if(Math.abs(u)<1e-6)break;r-=l/u}var d=0,f=1;for(r=i,n=0;n<20&&(l=this.sampleCurveX(r),!(Math.abs(l-i)<t));n++)i>l?d=r:f=r,r=.5*(f-d)+d;return r},solve:function(i,t){return this.sampleCurveY(this.solveCurveX(i,t))}};var Ul=Bo(jl);function Gr(i,t,r){return i+r*(t-i)}function tn(i,t,r){return i.map(((n,l)=>Gr(n,t[l],r)))}const ii={number:Gr,color:function(i,t,r,n="rgb"){switch(n){case"rgb":{const[l,u,d,f]=tn(i.rgb,t.rgb,r);return new st(l,u,d,f,!1)}case"hcl":{const[l,u,d,f]=i.hcl,[_,x,v,w]=t.hcl;let I,M;if(isNaN(l)||isNaN(_))isNaN(l)?isNaN(_)?I=NaN:(I=_,d!==1&&d!==0||(M=x)):(I=l,v!==1&&v!==0||(M=u));else{let Q=_-l;_>l&&Q>180?Q-=360:_<l&&l-_>180&&(Q+=360),I=l+r*Q}const[k,z,F,j]=(function([Q,G,J,re]){return Q=isNaN(Q)?0:Q*De,xt([J,Math.cos(Q)*G,Math.sin(Q)*G,re])})([I,M??Gr(u,x,r),Gr(d,v,r),Gr(f,w,r)]);return new st(k,z,F,j,!1)}case"lab":{const[l,u,d,f]=xt(tn(i.lab,t.lab,r));return new st(l,u,d,f,!1)}}},array:tn,padding:function(i,t,r){return new pi(tn(i.values,t.values,r))},variableAnchorOffsetCollection:function(i,t,r){const n=i.values,l=t.values;if(n.length!==l.length)throw new St(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${t.toString()}`);const u=[];for(let d=0;d<n.length;d+=2){if(n[d]!==l[d])throw new St(`Cannot interpolate values containing mismatched anchors. from[${d}]: ${n[d]}, to[${d}]: ${l[d]}`);u.push(n[d]);const[f,_]=n[d+1],[x,v]=l[d+1];u.push([Gr(f,x,r),Gr(_,v,r)])}return new wi(u)}};class ri{constructor(t,r,n,l,u){this.type=t,this.operator=r,this.interpolation=n,this.input=l,this.labels=[],this.outputs=[];for(const[d,f]of u)this.labels.push(d),this.outputs.push(f)}static interpolationFactor(t,r,n,l){let u=0;if(t.name==="exponential")u=Dn(r,t.base,n,l);else if(t.name==="linear")u=Dn(r,1,n,l);else if(t.name==="cubic-bezier"){const d=t.controlPoints;u=new Ul(d[0],d[1],d[2],d[3]).solve(Dn(r,1,n,l))}return u}static parse(t,r){let[n,l,u,...d]=t;if(!Array.isArray(l)||l.length===0)return r.error("Expected an interpolation type expression.",1);if(l[0]==="linear")l={name:"linear"};else if(l[0]==="exponential"){const x=l[1];if(typeof x!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);l={name:"exponential",base:x}}else{if(l[0]!=="cubic-bezier")return r.error(`Unknown interpolation type ${String(l[0])}`,1,0);{const x=l.slice(1);if(x.length!==4||x.some((v=>typeof v!="number"||v<0||v>1)))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);l={name:"cubic-bezier",controlPoints:x}}}if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(u=r.parse(u,2,_e),!u)return null;const f=[];let _=null;n==="interpolate-hcl"||n==="interpolate-lab"?_=ti:r.expectedType&&r.expectedType.kind!=="value"&&(_=r.expectedType);for(let x=0;x<d.length;x+=2){const v=d[x],w=d[x+1],I=x+3,M=x+4;if(typeof v!="number")return r.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',I);if(f.length&&f[f.length-1][0]>=v)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',I);const k=r.parse(w,M,_);if(!k)return null;_=_||k.type,f.push([v,k])}return Y(_,_e)||Y(_,ti)||Y(_,Mr)||Y(_,N)||Y(_,A(_e))?new ri(_,n,l,u,f):r.error(`Type ${P(_)} is not interpolatable.`)}evaluate(t){const r=this.labels,n=this.outputs;if(r.length===1)return n[0].evaluate(t);const l=this.input.evaluate(t);if(l<=r[0])return n[0].evaluate(t);const u=r.length;if(l>=r[u-1])return n[u-1].evaluate(t);const d=En(r,l),f=ri.interpolationFactor(this.interpolation,l,r[d],r[d+1]),_=n[d].evaluate(t),x=n[d+1].evaluate(t);switch(this.operator){case"interpolate":return ii[this.type.kind](_,x,f);case"interpolate-hcl":return ii.color(_,x,f,"hcl");case"interpolate-lab":return ii.color(_,x,f,"lab")}}eachChild(t){t(this.input);for(const r of this.outputs)t(r)}outputDefined(){return this.outputs.every((t=>t.outputDefined()))}}function Dn(i,t,r,n){const l=n-r,u=i-r;return l===0?0:t===1?u/l:(Math.pow(t,u)-1)/(Math.pow(t,l)-1)}class Ln{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expectected at least one argument.");let n=null;const l=r.expectedType;l&&l.kind!=="value"&&(n=l);const u=[];for(const f of t.slice(1)){const _=r.parse(f,1+u.length,n,void 0,{typeAnnotation:"omit"});if(!_)return null;n=n||_.type,u.push(_)}if(!n)throw new Error("No output type");const d=l&&u.some((f=>O(l,f.type)));return new Ln(d?Ne:n,u)}evaluate(t){let r,n=null,l=0;for(const u of this.args)if(l++,n=u.evaluate(t),n&&n instanceof fi&&!n.available&&(r||(r=n.name),n=null,l===this.args.length&&(n=r)),n!==null)break;return n}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every((t=>t.outputDefined()))}}function Rn(i,t){return i==="=="||i==="!="?t.kind==="boolean"||t.kind==="string"||t.kind==="number"||t.kind==="null"||t.kind==="value":t.kind==="string"||t.kind==="number"||t.kind==="value"}function Oo(i,t,r,n){return n.compare(t,r)===0}function _s(i,t,r){const n=i!=="=="&&i!=="!=";return class Ou{constructor(u,d,f){this.type=Be,this.lhs=u,this.rhs=d,this.collator=f,this.hasUntypedArgument=u.type.kind==="value"||d.type.kind==="value"}static parse(u,d){if(u.length!==3&&u.length!==4)return d.error("Expected two or three arguments.");const f=u[0];let _=d.parse(u[1],1,Ne);if(!_)return null;if(!Rn(f,_.type))return d.concat(1).error(`"${f}" comparisons are not supported for type '${P(_.type)}'.`);let x=d.parse(u[2],2,Ne);if(!x)return null;if(!Rn(f,x.type))return d.concat(2).error(`"${f}" comparisons are not supported for type '${P(x.type)}'.`);if(_.type.kind!==x.type.kind&&_.type.kind!=="value"&&x.type.kind!=="value")return d.error(`Cannot compare types '${P(_.type)}' and '${P(x.type)}'.`);n&&(_.type.kind==="value"&&x.type.kind!=="value"?_=new Fi(x.type,[_]):_.type.kind!=="value"&&x.type.kind==="value"&&(x=new Fi(_.type,[x])));let v=null;if(u.length===4){if(_.type.kind!=="string"&&x.type.kind!=="string"&&_.type.kind!=="value"&&x.type.kind!=="value")return d.error("Cannot use collator to compare non-string types.");if(v=d.parse(u[3],3,ir),!v)return null}return new Ou(_,x,v)}evaluate(u){const d=this.lhs.evaluate(u),f=this.rhs.evaluate(u);if(n&&this.hasUntypedArgument){const _=At(d),x=At(f);if(_.kind!==x.kind||_.kind!=="string"&&_.kind!=="number")throw new St(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${_.kind}, ${x.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const _=At(d),x=At(f);if(_.kind!=="string"||x.kind!=="string")return t(u,d,f)}return this.collator?r(u,d,f,this.collator.evaluate(u)):t(u,d,f)}eachChild(u){u(this.lhs),u(this.rhs),this.collator&&u(this.collator)}outputDefined(){return!0}}}const $l=_s("==",(function(i,t,r){return t===r}),Oo),Vo=_s("!=",(function(i,t,r){return t!==r}),(function(i,t,r,n){return!Oo(0,t,r,n)})),No=_s("<",(function(i,t,r){return t<r}),(function(i,t,r,n){return n.compare(t,r)<0})),ql=_s(">",(function(i,t,r){return t>r}),(function(i,t,r,n){return n.compare(t,r)>0})),Zl=_s("<=",(function(i,t,r){return t<=r}),(function(i,t,r,n){return n.compare(t,r)<=0})),jo=_s(">=",(function(i,t,r){return t>=r}),(function(i,t,r,n){return n.compare(t,r)>=0}));class rn{constructor(t,r,n){this.type=ir,this.locale=n,this.caseSensitive=t,this.diacriticSensitive=r}static parse(t,r){if(t.length!==2)return r.error("Expected one argument.");const n=t[1];if(typeof n!="object"||Array.isArray(n))return r.error("Collator options argument must be an object.");const l=r.parse(n["case-sensitive"]!==void 0&&n["case-sensitive"],1,Be);if(!l)return null;const u=r.parse(n["diacritic-sensitive"]!==void 0&&n["diacritic-sensitive"],1,Be);if(!u)return null;let d=null;return n.locale&&(d=r.parse(n.locale,1,$e),!d)?null:new rn(l,u,d)}evaluate(t){return new Pa(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}}class Ea{constructor(t,r,n,l,u){this.type=$e,this.number=t,this.locale=r,this.currency=n,this.minFractionDigits=l,this.maxFractionDigits=u}static parse(t,r){if(t.length!==3)return r.error("Expected two arguments.");const n=r.parse(t[1],1,_e);if(!n)return null;const l=t[2];if(typeof l!="object"||Array.isArray(l))return r.error("NumberFormat options argument must be an object.");let u=null;if(l.locale&&(u=r.parse(l.locale,1,$e),!u))return null;let d=null;if(l.currency&&(d=r.parse(l.currency,1,$e),!d))return null;let f=null;if(l["min-fraction-digits"]&&(f=r.parse(l["min-fraction-digits"],1,_e),!f))return null;let _=null;return l["max-fraction-digits"]&&(_=r.parse(l["max-fraction-digits"],1,_e),!_)?null:new Ea(n,u,d,f,_)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}}class Bn{constructor(t){this.type=mr,this.sections=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");const n=t[1];if(!Array.isArray(n)&&typeof n=="object")return r.error("First argument must be an image or text section.");const l=[];let u=!1;for(let d=1;d<=t.length-1;++d){const f=t[d];if(u&&typeof f=="object"&&!Array.isArray(f)){u=!1;let _=null;if(f["font-scale"]&&(_=r.parse(f["font-scale"],1,_e),!_))return null;let x=null;if(f["text-font"]&&(x=r.parse(f["text-font"],1,A($e)),!x))return null;let v=null;if(f["text-color"]&&(v=r.parse(f["text-color"],1,ti),!v))return null;const w=l[l.length-1];w.scale=_,w.font=x,w.textColor=v}else{const _=r.parse(t[d],1,Ne);if(!_)return null;const x=_.type.kind;if(x!=="string"&&x!=="value"&&x!=="null"&&x!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");u=!0,l.push({content:_,scale:null,font:null,textColor:null})}}return new Bn(l)}evaluate(t){return new di(this.sections.map((r=>{const n=r.content.evaluate(t);return At(n)===rr?new Aa("",n,null,null,null):new Aa(Qs(n),null,r.scale?r.scale.evaluate(t):null,r.font?r.font.evaluate(t).join(","):null,r.textColor?r.textColor.evaluate(t):null)})))}eachChild(t){for(const r of this.sections)t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor)}outputDefined(){return!1}}class Da{constructor(t){this.type=rr,this.input=t}static parse(t,r){if(t.length!==2)return r.error("Expected two arguments.");const n=r.parse(t[1],1,$e);return n?new Da(n):r.error("No image name provided.")}evaluate(t){const r=this.input.evaluate(t),n=fi.fromString(r);return n&&t.availableImages&&(n.available=t.availableImages.indexOf(r)>-1),n}eachChild(t){t(this.input)}outputDefined(){return!1}}class La{constructor(t){this.type=_e,this.input=t}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);const n=r.parse(t[1],1);return n?n.type.kind!=="array"&&n.type.kind!=="string"&&n.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${P(n.type)} instead.`):new La(n):null}evaluate(t){const r=this.input.evaluate(t);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new St(`Expected value to be of type string or array, but found ${P(At(r))} instead.`)}eachChild(t){t(this.input)}outputDefined(){return!1}}const sr=8192;function Gl(i,t){const r=(180+i[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,l=Math.pow(2,t.z);return[Math.round(r*l*sr),Math.round(n*l*sr)]}function Ra(i,t){const r=Math.pow(2,t.z);return[(l=(i[0]/sr+t.x)/r,360*l-180),(n=(i[1]/sr+t.y)/r,360/Math.PI*Math.atan(Math.exp((180-360*n)*Math.PI/180))-90)];var n,l}function Hr(i,t){i[0]=Math.min(i[0],t[0]),i[1]=Math.min(i[1],t[1]),i[2]=Math.max(i[2],t[0]),i[3]=Math.max(i[3],t[1])}function kr(i,t){return!(i[0]<=t[0]||i[2]>=t[2]||i[1]<=t[1]||i[3]>=t[3])}function it(i,t,r){const n=i[0]-t[0],l=i[1]-t[1],u=i[0]-r[0],d=i[1]-r[1];return n*d-u*l==0&&n*u<=0&&l*d<=0}function Fn(i,t,r,n){return(l=[n[0]-r[0],n[1]-r[1]])[0]*(u=[t[0]-i[0],t[1]-i[1]])[1]-l[1]*u[0]!=0&&!(!$o(i,t,r,n)||!$o(r,n,i,t));var l,u}function Hl(i,t,r){for(const n of r)for(let l=0;l<n.length-1;++l)if(Fn(i,t,n[l],n[l+1]))return!0;return!1}function gs(i,t,r=!1){let n=!1;for(const f of t)for(let _=0;_<f.length-1;_++){if(it(i,f[_],f[_+1]))return r;(u=f[_])[1]>(l=i)[1]!=(d=f[_+1])[1]>l[1]&&l[0]<(d[0]-u[0])*(l[1]-u[1])/(d[1]-u[1])+u[0]&&(n=!n)}var l,u,d;return n}function Xl(i,t){for(const r of t)if(gs(i,r))return!0;return!1}function Uo(i,t){for(const r of i)if(!gs(r,t))return!1;for(let r=0;r<i.length-1;++r)if(Hl(i[r],i[r+1],t))return!1;return!0}function Wl(i,t){for(const r of t)if(Uo(i,r))return!0;return!1}function $o(i,t,r,n){const l=n[0]-r[0],u=n[1]-r[1],d=(i[0]-r[0])*u-l*(i[1]-r[1]),f=(t[0]-r[0])*u-l*(t[1]-r[1]);return d>0&&f<0||d<0&&f>0}function Ba(i,t,r){const n=[];for(let l=0;l<i.length;l++){const u=[];for(let d=0;d<i[l].length;d++){const f=Gl(i[l][d],r);Hr(t,f),u.push(f)}n.push(u)}return n}function qo(i,t,r){const n=[];for(let l=0;l<i.length;l++){const u=Ba(i[l],t,r);n.push(u)}return n}function Zo(i,t,r,n){if(i[0]<r[0]||i[0]>r[2]){const l=.5*n;let u=i[0]-r[0]>l?-n:r[0]-i[0]>l?n:0;u===0&&(u=i[0]-r[2]>l?-n:r[2]-i[0]>l?n:0),i[0]+=u}Hr(t,i)}function Go(i,t,r,n){const l=Math.pow(2,n.z)*sr,u=[n.x*sr,n.y*sr],d=[];for(const f of i)for(const _ of f){const x=[_.x+u[0],_.y+u[1]];Zo(x,t,r,l),d.push(x)}return d}function Ho(i,t,r,n){const l=Math.pow(2,n.z)*sr,u=[n.x*sr,n.y*sr],d=[];for(const _ of i){const x=[];for(const v of _){const w=[v.x+u[0],v.y+u[1]];Hr(t,w),x.push(w)}d.push(x)}if(t[2]-t[0]<=l/2){(f=t)[0]=f[1]=1/0,f[2]=f[3]=-1/0;for(const _ of d)for(const x of _)Zo(x,t,r,l)}var f;return d}class Xr{constructor(t,r){this.type=Be,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(qr(t[1])){const n=t[1];if(n.type==="FeatureCollection"){const l=[];for(const u of n.features){const{type:d,coordinates:f}=u.geometry;d==="Polygon"&&l.push(f),d==="MultiPolygon"&&l.push(...f)}if(l.length)return new Xr(n,{type:"MultiPolygon",coordinates:l})}else if(n.type==="Feature"){const l=n.geometry.type;if(l==="Polygon"||l==="MultiPolygon")return new Xr(n,n.geometry)}else if(n.type==="Polygon"||n.type==="MultiPolygon")return new Xr(n,n)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return(function(r,n){const l=[1/0,1/0,-1/0,-1/0],u=[1/0,1/0,-1/0,-1/0],d=r.canonicalID();if(n.type==="Polygon"){const f=Ba(n.coordinates,u,d),_=Go(r.geometry(),l,u,d);if(!kr(l,u))return!1;for(const x of _)if(!gs(x,f))return!1}if(n.type==="MultiPolygon"){const f=qo(n.coordinates,u,d),_=Go(r.geometry(),l,u,d);if(!kr(l,u))return!1;for(const x of _)if(!Xl(x,f))return!1}return!0})(t,this.geometries);if(t.geometryType()==="LineString")return(function(r,n){const l=[1/0,1/0,-1/0,-1/0],u=[1/0,1/0,-1/0,-1/0],d=r.canonicalID();if(n.type==="Polygon"){const f=Ba(n.coordinates,u,d),_=Ho(r.geometry(),l,u,d);if(!kr(l,u))return!1;for(const x of _)if(!Uo(x,f))return!1}if(n.type==="MultiPolygon"){const f=qo(n.coordinates,u,d),_=Ho(r.geometry(),l,u,d);if(!kr(l,u))return!1;for(const x of _)if(!Wl(x,f))return!1}return!0})(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Xo=class{constructor(i=[],t=((r,n)=>r<n?-1:r>n?1:0)){if(this.data=i,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(i){this.data.push(i),this._up(this.length++)}pop(){if(this.length===0)return;const i=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),i}peek(){return this.data[0]}_up(i){const{data:t,compare:r}=this,n=t[i];for(;i>0;){const l=i-1>>1,u=t[l];if(r(n,u)>=0)break;t[i]=u,i=l}t[i]=n}_down(i){const{data:t,compare:r}=this,n=this.length>>1,l=t[i];for(;i<n;){let u=1+(i<<1);const d=u+1;if(d<this.length&&r(t[d],t[u])<0&&(u=d),r(t[u],l)>=0)break;t[i]=t[u],i=u}t[i]=l}};function Kl(i,t,r,n,l){Wo(i,t,r,n||i.length-1,l||Jl)}function Wo(i,t,r,n,l){for(;n>r;){if(n-r>600){var u=n-r+1,d=t-r+1,f=Math.log(u),_=.5*Math.exp(2*f/3),x=.5*Math.sqrt(f*_*(u-_)/u)*(d-u/2<0?-1:1);Wo(i,t,Math.max(r,Math.floor(t-d*_/u+x)),Math.min(n,Math.floor(t+(u-d)*_/u+x)),l)}var v=i[t],w=r,I=n;for(sn(i,r,t),l(i[n],v)>0&&sn(i,r,n);w<I;){for(sn(i,w,I),w++,I--;l(i[w],v)<0;)w++;for(;l(i[I],v)>0;)I--}l(i[r],v)===0?sn(i,r,I):sn(i,++I,n),I<=t&&(r=I+1),t<=I&&(n=I-1)}}function sn(i,t,r){var n=i[t];i[t]=i[r],i[r]=n}function Jl(i,t){return i<t?-1:i>t?1:0}function On(i,t){if(i.length<=1)return[i];const r=[];let n,l;for(const u of i){const d=Ql(u);d!==0&&(u.area=Math.abs(d),l===void 0&&(l=d<0),l===d<0?(n&&r.push(n),n=[u]):n.push(u))}if(n&&r.push(n),t>1)for(let u=0;u<r.length;u++)r[u].length<=t||(Kl(r[u],t,1,r[u].length-1,Yl),r[u]=r[u].slice(0,t));return r}function Yl(i,t){return t.area-i.area}function Ql(i){let t=0;for(let r,n,l=0,u=i.length,d=u-1;l<u;d=l++)r=i[l],n=i[d],t+=(n.x-r.x)*(r.y+n.y);return t}const Ko=1/298.257223563,Jo=Ko*(2-Ko),Yo=Math.PI/180;class Fa{constructor(t){const r=6378.137*Yo*1e3,n=Math.cos(t*Yo),l=1/(1-Jo*(1-n*n)),u=Math.sqrt(l);this.kx=r*u*n,this.ky=r*u*l*(1-Jo)}distance(t,r){const n=this.wrap(t[0]-r[0])*this.kx,l=(t[1]-r[1])*this.ky;return Math.sqrt(n*n+l*l)}pointOnLine(t,r){let n,l,u,d,f=1/0;for(let _=0;_<t.length-1;_++){let x=t[_][0],v=t[_][1],w=this.wrap(t[_+1][0]-x)*this.kx,I=(t[_+1][1]-v)*this.ky,M=0;w===0&&I===0||(M=(this.wrap(r[0]-x)*this.kx*w+(r[1]-v)*this.ky*I)/(w*w+I*I),M>1?(x=t[_+1][0],v=t[_+1][1]):M>0&&(x+=w/this.kx*M,v+=I/this.ky*M)),w=this.wrap(r[0]-x)*this.kx,I=(r[1]-v)*this.ky;const k=w*w+I*I;k<f&&(f=k,n=x,l=v,u=_,d=M)}return{point:[n,l],index:u,t:Math.max(0,Math.min(1,d))}}wrap(t){for(;t<-180;)t+=360;for(;t>180;)t-=360;return t}}function Qo(i,t){return t[0]-i[0]}function Vn(i){return i[1]-i[0]+1}function _r(i,t){return i[1]>=i[0]&&i[1]<t}function Oa(i,t){if(i[0]>i[1])return[null,null];const r=Vn(i);if(t){if(r===2)return[i,null];const l=Math.floor(r/2);return[[i[0],i[0]+l],[i[0]+l,i[1]]]}if(r===1)return[i,null];const n=Math.floor(r/2)-1;return[[i[0],i[0]+n],[i[0]+n+1,i[1]]]}function Va(i,t){if(!_r(t,i.length))return[1/0,1/0,-1/0,-1/0];const r=[1/0,1/0,-1/0,-1/0];for(let n=t[0];n<=t[1];++n)Hr(r,i[n]);return r}function Na(i){const t=[1/0,1/0,-1/0,-1/0];for(const r of i)for(const n of r)Hr(t,n);return t}function Nn(i){return i[0]!==-1/0&&i[1]!==-1/0&&i[2]!==1/0&&i[3]!==1/0}function ja(i,t,r){if(!Nn(i)||!Nn(t))return NaN;let n=0,l=0;return i[2]<t[0]&&(n=t[0]-i[2]),i[0]>t[2]&&(n=i[0]-t[2]),i[1]>t[3]&&(l=i[1]-t[3]),i[3]<t[1]&&(l=t[1]-i[3]),r.distance([0,0],[n,l])}function Wr(i,t,r){const n=r.pointOnLine(t,i);return r.distance(i,n.point)}function Ua(i,t,r,n,l){const u=Math.min(Wr(i,[r,n],l),Wr(t,[r,n],l)),d=Math.min(Wr(r,[i,t],l),Wr(n,[i,t],l));return Math.min(u,d)}function ec(i,t,r,n,l){if(!_r(t,i.length)||!_r(n,r.length))return 1/0;let u=1/0;for(let d=t[0];d<t[1];++d){const f=i[d],_=i[d+1];for(let x=n[0];x<n[1];++x){const v=r[x],w=r[x+1];if(Fn(f,_,v,w))return 0;u=Math.min(u,Ua(f,_,v,w,l))}}return u}function bt(i,t,r,n,l){if(!_r(t,i.length)||!_r(n,r.length))return NaN;let u=1/0;for(let d=t[0];d<=t[1];++d)for(let f=n[0];f<=n[1];++f)if(u=Math.min(u,l.distance(i[d],r[f])),u===0)return u;return u}function tc(i,t,r){if(gs(i,t,!0))return 0;let n=1/0;for(const l of t){const u=l[0],d=l[l.length-1];if(u!==d&&(n=Math.min(n,Wr(i,[d,u],r)),n===0))return n;const f=r.pointOnLine(l,i);if(n=Math.min(n,r.distance(i,f.point)),n===0)return n}return n}function Ze(i,t,r,n){if(!_r(t,i.length))return NaN;for(let u=t[0];u<=t[1];++u)if(gs(i[u],r,!0))return 0;let l=1/0;for(let u=t[0];u<t[1];++u){const d=i[u],f=i[u+1];for(const _ of r)for(let x=0,v=_.length,w=v-1;x<v;w=x++){const I=_[w],M=_[x];if(Fn(d,f,I,M))return 0;l=Math.min(l,Ua(d,f,I,M,n))}}return l}function jn(i,t){for(const r of i)for(const n of r)if(gs(n,t,!0))return!0;return!1}function ht(i,t,r,n=1/0){const l=Na(i),u=Na(t);if(n!==1/0&&ja(l,u,r)>=n)return n;if(kr(l,u)){if(jn(i,t))return 0}else if(jn(t,i))return 0;let d=1/0;for(const f of i)for(let _=0,x=f.length,v=x-1;_<x;v=_++){const w=f[v],I=f[_];for(const M of t)for(let k=0,z=M.length,F=z-1;k<z;F=k++){const j=M[F],Q=M[k];if(Fn(w,I,j,Q))return 0;d=Math.min(d,Ua(w,I,j,Q,r))}}return d}function at(i,t,r,n,l,u){if(!u)return;const d=ja(Va(n,u),l,r);d<t&&i.push([d,u,[0,0]])}function Kr(i,t,r,n,l,u,d){if(!u||!d)return;const f=ja(Va(n,u),Va(l,d),r);f<t&&i.push([f,u,d])}function nn(i,t,r,n,l=1/0){let u=Math.min(n.distance(i[0],r[0][0]),l);if(u===0)return u;const d=new Xo([[0,[0,i.length-1],[0,0]]],Qo),f=Na(r);for(;d.length>0;){const _=d.pop();if(_[0]>=u)continue;const x=_[1],v=t?50:100;if(Vn(x)<=v){if(!_r(x,i.length))return NaN;if(t){const w=Ze(i,x,r,n);if(isNaN(w)||w===0)return w;u=Math.min(u,w)}else for(let w=x[0];w<=x[1];++w){const I=tc(i[w],r,n);if(u=Math.min(u,I),u===0)return 0}}else{const w=Oa(x,t);at(d,u,n,i,f,w[0]),at(d,u,n,i,f,w[1])}}return u}function an(i,t,r,n,l,u=1/0){let d=Math.min(u,l.distance(i[0],r[0]));if(d===0)return d;const f=new Xo([[0,[0,i.length-1],[0,r.length-1]]],Qo);for(;f.length>0;){const _=f.pop();if(_[0]>=d)continue;const x=_[1],v=_[2],w=t?50:100,I=n?50:100;if(Vn(x)<=w&&Vn(v)<=I){if(!_r(x,i.length)&&_r(v,r.length))return NaN;let M;if(t&&n)M=ec(i,x,r,v,l),d=Math.min(d,M);else if(t&&!n){const k=i.slice(x[0],x[1]+1);for(let z=v[0];z<=v[1];++z)if(M=Wr(r[z],k,l),d=Math.min(d,M),d===0)return d}else if(!t&&n){const k=r.slice(v[0],v[1]+1);for(let z=x[0];z<=x[1];++z)if(M=Wr(i[z],k,l),d=Math.min(d,M),d===0)return d}else M=bt(i,x,r,v,l),d=Math.min(d,M)}else{const M=Oa(x,t),k=Oa(v,n);Kr(f,d,l,i,r,M[0],k[0]),Kr(f,d,l,i,r,M[0],k[1]),Kr(f,d,l,i,r,M[1],k[0]),Kr(f,d,l,i,r,M[1],k[1])}}return d}function $a(i){return i.type==="MultiPolygon"?i.coordinates.map((t=>({type:"Polygon",coordinates:t}))):i.type==="MultiLineString"?i.coordinates.map((t=>({type:"LineString",coordinates:t}))):i.type==="MultiPoint"?i.coordinates.map((t=>({type:"Point",coordinates:t}))):[i]}class Jr{constructor(t,r){this.type=_e,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(qr(t[1])){const n=t[1];if(n.type==="FeatureCollection")return new Jr(n,n.features.map((l=>$a(l.geometry))).flat());if(n.type==="Feature")return new Jr(n,$a(n.geometry));if("type"in n&&"coordinates"in n)return new Jr(n,$a(n))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return(function(r,n){const l=r.geometry(),u=l.flat().map((_=>Ra([_.x,_.y],r.canonical)));if(l.length===0)return NaN;const d=new Fa(u[0][1]);let f=1/0;for(const _ of n){switch(_.type){case"Point":f=Math.min(f,an(u,!1,[_.coordinates],!1,d,f));break;case"LineString":f=Math.min(f,an(u,!1,_.coordinates,!0,d,f));break;case"Polygon":f=Math.min(f,nn(u,!1,_.coordinates,d,f))}if(f===0)return f}return f})(t,this.geometries);if(t.geometryType()==="LineString")return(function(r,n){const l=r.geometry(),u=l.flat().map((_=>Ra([_.x,_.y],r.canonical)));if(l.length===0)return NaN;const d=new Fa(u[0][1]);let f=1/0;for(const _ of n){switch(_.type){case"Point":f=Math.min(f,an(u,!0,[_.coordinates],!1,d,f));break;case"LineString":f=Math.min(f,an(u,!0,_.coordinates,!0,d,f));break;case"Polygon":f=Math.min(f,nn(u,!0,_.coordinates,d,f))}if(f===0)return f}return f})(t,this.geometries);if(t.geometryType()==="Polygon")return(function(r,n){const l=r.geometry();if(l.length===0||l[0].length===0)return NaN;const u=On(l,0).map((_=>_.map((x=>x.map((v=>Ra([v.x,v.y],r.canonical))))))),d=new Fa(u[0][0][0][1]);let f=1/0;for(const _ of n)for(const x of u){switch(_.type){case"Point":f=Math.min(f,nn([_.coordinates],!1,x,d,f));break;case"LineString":f=Math.min(f,nn(_.coordinates,!0,x,d,f));break;case"Polygon":f=Math.min(f,ht(x,_.coordinates,d,f))}if(f===0)return f}return f})(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}const ys={"==":$l,"!=":Vo,">":ql,"<":No,">=":jo,"<=":Zl,array:Fi,at:Ca,boolean:Fi,case:zn,coalesce:Ln,collator:rn,format:Bn,image:Da,in:ka,"index-of":fs,interpolate:ri,"interpolate-hcl":ri,"interpolate-lab":ri,length:La,let:Cr,literal:Bi,match:za,number:Fi,"number-format":Ea,object:Fi,slice:en,step:ms,string:Fi,"to-boolean":Oi,"to-color":Oi,"to-number":Oi,"to-string":Oi,var:tt,within:Xr,distance:Jr};class Ti{constructor(t,r,n,l){this.name=t,this.type=r,this._evaluate=n,this.args=l}evaluate(t){return this._evaluate(t,this.args)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,r){const n=t[0],l=Ti.definitions[n];if(!l)return r.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const u=Array.isArray(l)?l[0]:l.type,d=Array.isArray(l)?[[l[1],l[2]]]:l.overloads,f=d.filter((([x])=>!Array.isArray(x)||x.length===t.length-1));let _=null;for(const[x,v]of f){_=new Zr(r.registry,on,r.path,null,r.scope);const w=[];let I=!1;for(let M=1;M<t.length;M++){const k=t[M],z=Array.isArray(x)?x[M-1]:x.type,F=_.parse(k,1+w.length,z);if(!F){I=!0;break}w.push(F)}if(!I)if(Array.isArray(x)&&x.length!==w.length)_.error(`Expected ${x.length} arguments, but found ${w.length} instead.`);else{for(let M=0;M<w.length;M++){const k=Array.isArray(x)?x[M]:x.type,z=w[M];_.concat(M+1).checkSubtype(k,z.type)}if(_.errors.length===0)return new Ti(n,u,v,w)}}if(f.length===1)r.errors.push(..._.errors);else{const x=(f.length?f:d).map((([w])=>{return I=w,Array.isArray(I)?`(${I.map(P).join(", ")})`:`(${P(I.type)}...)`;var I})).join(" | "),v=[];for(let w=1;w<t.length;w++){const I=r.parse(t[w],1+v.length);if(!I)return null;v.push(P(I.type))}r.error(`Expected arguments of type ${x}, but found (${v.join(", ")}) instead.`)}return null}static register(t,r){Ti.definitions=r;for(const n in r)t[n]=Ti}}function qa(i,[t,r,n,l]){t=t.evaluate(i),r=r.evaluate(i),n=n.evaluate(i);const u=l?l.evaluate(i):1,d=ps(t,r,n,u);if(d)throw new St(d);return new st(t/255,r/255,n/255,u,!1)}function Za(i,t){return i in t}function Ga(i,t){const r=t[i];return r===void 0?null:r}function Yr(i){return{type:i}}function on(i){if(i instanceof tt)return on(i.boundExpression);if(i instanceof Ti&&i.name==="error"||i instanceof rn||i instanceof Xr||i instanceof Jr)return!1;const t=i instanceof Oi||i instanceof Fi;let r=!0;return i.eachChild((n=>{r=t?r&&on(n):r&&n instanceof Bi})),!!r&&ln(i)&&cn(i,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function ln(i){if(i instanceof Ti&&(i.name==="get"&&i.args.length===1||i.name==="feature-state"||i.name==="has"&&i.args.length===1||i.name==="properties"||i.name==="geometry-type"||i.name==="id"||/^filter-/.test(i.name))||i instanceof Xr||i instanceof Jr)return!1;let t=!0;return i.eachChild((r=>{t&&!ln(r)&&(t=!1)})),t}function xs(i){if(i instanceof Ti&&i.name==="feature-state")return!1;let t=!0;return i.eachChild((r=>{t&&!xs(r)&&(t=!1)})),t}function cn(i,t){if(i instanceof Ti&&t.indexOf(i.name)>=0)return!1;let r=!0;return i.eachChild((n=>{r&&!cn(n,t)&&(r=!1)})),r}function Un(i){return{result:"success",value:i}}function vs(i){return{result:"error",value:i}}function bs(i){return i["property-type"]==="data-driven"||i["property-type"]==="cross-faded-data-driven"}function el(i){return!!i.expression&&i.expression.parameters.indexOf("zoom")>-1}function Ha(i){return!!i.expression&&i.expression.interpolated}function Ye(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}function $n(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function ic(i){return i}function tl(i,t){const r=t.type==="color",n=i.stops&&typeof i.stops[0][0]=="object",l=n||!(n||i.property!==void 0),u=i.type||(Ha(t)?"exponential":"interval");if(r||t.type==="padding"){const v=r?st.parse:pi.parse;(i=er({},i)).stops&&(i.stops=i.stops.map((w=>[w[0],v(w[1])]))),i.default=v(i.default?i.default:t.default)}if(i.colorSpace&&(d=i.colorSpace)!=="rgb"&&d!=="hcl"&&d!=="lab")throw new Error(`Unknown color space: "${i.colorSpace}"`);var d;let f,_,x;if(u==="exponential")f=rl;else if(u==="interval")f=qn;else if(u==="categorical"){f=il,_=Object.create(null);for(const v of i.stops)_[v[0]]=v[1];x=typeof i.stops[0][0]}else{if(u!=="identity")throw new Error(`Unknown function type "${u}"`);f=sl}if(n){const v={},w=[];for(let k=0;k<i.stops.length;k++){const z=i.stops[k],F=z[0].zoom;v[F]===void 0&&(v[F]={zoom:F,type:i.type,property:i.property,default:i.default,stops:[]},w.push(F)),v[F].stops.push([z[0].value,z[1]])}const I=[];for(const k of w)I.push([v[k].zoom,tl(v[k],t)]);const M={name:"linear"};return{kind:"composite",interpolationType:M,interpolationFactor:ri.interpolationFactor.bind(void 0,M),zoomStops:I.map((k=>k[0])),evaluate:({zoom:k},z)=>rl({stops:I,base:i.base},t,k).evaluate(k,z)}}if(l){const v=u==="exponential"?{name:"exponential",base:i.base!==void 0?i.base:1}:null;return{kind:"camera",interpolationType:v,interpolationFactor:ri.interpolationFactor.bind(void 0,v),zoomStops:i.stops.map((w=>w[0])),evaluate:({zoom:w})=>f(i,t,w,_,x)}}return{kind:"source",evaluate(v,w){const I=w&&w.properties?w.properties[i.property]:void 0;return I===void 0?ws(i.default,t.default):f(i,t,I,_,x)}}}function ws(i,t,r){return i!==void 0?i:t!==void 0?t:r!==void 0?r:void 0}function il(i,t,r,n,l){return ws(typeof r===l?n[r]:void 0,i.default,t.default)}function qn(i,t,r){if(Ye(r)!=="number")return ws(i.default,t.default);const n=i.stops.length;if(n===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[n-1][0])return i.stops[n-1][1];const l=En(i.stops.map((u=>u[0])),r);return i.stops[l][1]}function rl(i,t,r){const n=i.base!==void 0?i.base:1;if(Ye(r)!=="number")return ws(i.default,t.default);const l=i.stops.length;if(l===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[l-1][0])return i.stops[l-1][1];const u=En(i.stops.map((v=>v[0])),r),d=(function(v,w,I,M){const k=M-I,z=v-I;return k===0?0:w===1?z/k:(Math.pow(w,z)-1)/(Math.pow(w,k)-1)})(r,n,i.stops[u][0],i.stops[u+1][0]),f=i.stops[u][1],_=i.stops[u+1][1],x=ii[t.type]||ic;return typeof f.evaluate=="function"?{evaluate(...v){const w=f.evaluate.apply(void 0,v),I=_.evaluate.apply(void 0,v);if(w!==void 0&&I!==void 0)return x(w,I,d,i.colorSpace)}}:x(f,_,d,i.colorSpace)}function sl(i,t,r){switch(t.type){case"color":r=st.parse(r);break;case"formatted":r=di.fromString(r.toString());break;case"resolvedImage":r=fi.fromString(r.toString());break;case"padding":r=pi.parse(r);break;default:Ye(r)===t.type||t.type==="enum"&&t.values[r]||(r=void 0)}return ws(r,i.default,t.default)}Ti.register(ys,{error:[{kind:"error"},[$e],(i,[t])=>{throw new St(t.evaluate(i))}],typeof:[$e,[Ne],(i,[t])=>P(At(t.evaluate(i)))],"to-rgba":[A(_e,4),[ti],(i,[t])=>{const[r,n,l,u]=t.evaluate(i).rgb;return[255*r,255*n,255*l,u]}],rgb:[ti,[_e,_e,_e],qa],rgba:[ti,[_e,_e,_e,_e],qa],has:{type:Be,overloads:[[[$e],(i,[t])=>Za(t.evaluate(i),i.properties())],[[$e,Ri],(i,[t,r])=>Za(t.evaluate(i),r.evaluate(i))]]},get:{type:Ne,overloads:[[[$e],(i,[t])=>Ga(t.evaluate(i),i.properties())],[[$e,Ri],(i,[t,r])=>Ga(t.evaluate(i),r.evaluate(i))]]},"feature-state":[Ne,[$e],(i,[t])=>Ga(t.evaluate(i),i.featureState||{})],properties:[Ri,[],i=>i.properties()],"geometry-type":[$e,[],i=>i.geometryType()],id:[Ne,[],i=>i.id()],zoom:[_e,[],i=>i.globals.zoom],"heatmap-density":[_e,[],i=>i.globals.heatmapDensity||0],"line-progress":[_e,[],i=>i.globals.lineProgress||0],accumulated:[Ne,[],i=>i.globals.accumulated===void 0?null:i.globals.accumulated],"+":[_e,Yr(_e),(i,t)=>{let r=0;for(const n of t)r+=n.evaluate(i);return r}],"*":[_e,Yr(_e),(i,t)=>{let r=1;for(const n of t)r*=n.evaluate(i);return r}],"-":{type:_e,overloads:[[[_e,_e],(i,[t,r])=>t.evaluate(i)-r.evaluate(i)],[[_e],(i,[t])=>-t.evaluate(i)]]},"/":[_e,[_e,_e],(i,[t,r])=>t.evaluate(i)/r.evaluate(i)],"%":[_e,[_e,_e],(i,[t,r])=>t.evaluate(i)%r.evaluate(i)],ln2:[_e,[],()=>Math.LN2],pi:[_e,[],()=>Math.PI],e:[_e,[],()=>Math.E],"^":[_e,[_e,_e],(i,[t,r])=>Math.pow(t.evaluate(i),r.evaluate(i))],sqrt:[_e,[_e],(i,[t])=>Math.sqrt(t.evaluate(i))],log10:[_e,[_e],(i,[t])=>Math.log(t.evaluate(i))/Math.LN10],ln:[_e,[_e],(i,[t])=>Math.log(t.evaluate(i))],log2:[_e,[_e],(i,[t])=>Math.log(t.evaluate(i))/Math.LN2],sin:[_e,[_e],(i,[t])=>Math.sin(t.evaluate(i))],cos:[_e,[_e],(i,[t])=>Math.cos(t.evaluate(i))],tan:[_e,[_e],(i,[t])=>Math.tan(t.evaluate(i))],asin:[_e,[_e],(i,[t])=>Math.asin(t.evaluate(i))],acos:[_e,[_e],(i,[t])=>Math.acos(t.evaluate(i))],atan:[_e,[_e],(i,[t])=>Math.atan(t.evaluate(i))],min:[_e,Yr(_e),(i,t)=>Math.min(...t.map((r=>r.evaluate(i))))],max:[_e,Yr(_e),(i,t)=>Math.max(...t.map((r=>r.evaluate(i))))],abs:[_e,[_e],(i,[t])=>Math.abs(t.evaluate(i))],round:[_e,[_e],(i,[t])=>{const r=t.evaluate(i);return r<0?-Math.round(-r):Math.round(r)}],floor:[_e,[_e],(i,[t])=>Math.floor(t.evaluate(i))],ceil:[_e,[_e],(i,[t])=>Math.ceil(t.evaluate(i))],"filter-==":[Be,[$e,Ne],(i,[t,r])=>i.properties()[t.value]===r.value],"filter-id-==":[Be,[Ne],(i,[t])=>i.id()===t.value],"filter-type-==":[Be,[$e],(i,[t])=>i.geometryType()===t.value],"filter-<":[Be,[$e,Ne],(i,[t,r])=>{const n=i.properties()[t.value],l=r.value;return typeof n==typeof l&&n<l}],"filter-id-<":[Be,[Ne],(i,[t])=>{const r=i.id(),n=t.value;return typeof r==typeof n&&r<n}],"filter->":[Be,[$e,Ne],(i,[t,r])=>{const n=i.properties()[t.value],l=r.value;return typeof n==typeof l&&n>l}],"filter-id->":[Be,[Ne],(i,[t])=>{const r=i.id(),n=t.value;return typeof r==typeof n&&r>n}],"filter-<=":[Be,[$e,Ne],(i,[t,r])=>{const n=i.properties()[t.value],l=r.value;return typeof n==typeof l&&n<=l}],"filter-id-<=":[Be,[Ne],(i,[t])=>{const r=i.id(),n=t.value;return typeof r==typeof n&&r<=n}],"filter->=":[Be,[$e,Ne],(i,[t,r])=>{const n=i.properties()[t.value],l=r.value;return typeof n==typeof l&&n>=l}],"filter-id->=":[Be,[Ne],(i,[t])=>{const r=i.id(),n=t.value;return typeof r==typeof n&&r>=n}],"filter-has":[Be,[Ne],(i,[t])=>t.value in i.properties()],"filter-has-id":[Be,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[Be,[A($e)],(i,[t])=>t.value.indexOf(i.geometryType())>=0],"filter-id-in":[Be,[A(Ne)],(i,[t])=>t.value.indexOf(i.id())>=0],"filter-in-small":[Be,[$e,A(Ne)],(i,[t,r])=>r.value.indexOf(i.properties()[t.value])>=0],"filter-in-large":[Be,[$e,A(Ne)],(i,[t,r])=>(function(n,l,u,d){for(;u<=d;){const f=u+d>>1;if(l[f]===n)return!0;l[f]>n?d=f-1:u=f+1}return!1})(i.properties()[t.value],r.value,0,r.value.length-1)],all:{type:Be,overloads:[[[Be,Be],(i,[t,r])=>t.evaluate(i)&&r.evaluate(i)],[Yr(Be),(i,t)=>{for(const r of t)if(!r.evaluate(i))return!1;return!0}]]},any:{type:Be,overloads:[[[Be,Be],(i,[t,r])=>t.evaluate(i)||r.evaluate(i)],[Yr(Be),(i,t)=>{for(const r of t)if(r.evaluate(i))return!0;return!1}]]},"!":[Be,[Be],(i,[t])=>!t.evaluate(i)],"is-supported-script":[Be,[$e],(i,[t])=>{const r=i.globals&&i.globals.isSupportedScript;return!r||r(t.evaluate(i))}],upcase:[$e,[$e],(i,[t])=>t.evaluate(i).toUpperCase()],downcase:[$e,[$e],(i,[t])=>t.evaluate(i).toLowerCase()],concat:[$e,Yr(Ne),(i,t)=>t.map((r=>Qs(r.evaluate(i)))).join("")],"resolved-locale":[$e,[ir],(i,[t])=>t.evaluate(i).resolvedLocale()]});class Zn{constructor(t,r){var n;this.expression=t,this._warningHistory={},this._evaluator=new kn,this._defaultValue=r?(n=r).type==="color"&&$n(n.default)?new st(0,0,0,0):n.type==="color"?st.parse(n.default)||null:n.type==="padding"?pi.parse(n.default)||null:n.type==="variableAnchorOffsetCollection"?wi.parse(n.default)||null:n.default===void 0?null:n.default:null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(t,r,n,l,u,d){return this._evaluator.globals=t,this._evaluator.feature=r,this._evaluator.featureState=n,this._evaluator.canonical=l,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=d,this.expression.evaluate(this._evaluator)}evaluate(t,r,n,l,u,d){this._evaluator.globals=t,this._evaluator.feature=r||null,this._evaluator.featureState=n||null,this._evaluator.canonical=l,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=d||null;try{const f=this.expression.evaluate(this._evaluator);if(f==null||typeof f=="number"&&f!=f)return this._defaultValue;if(this._enumValues&&!(f in this._enumValues))throw new St(`Expected value to be one of ${Object.keys(this._enumValues).map((_=>JSON.stringify(_))).join(", ")}, but found ${JSON.stringify(f)} instead.`);return f}catch(f){return this._warningHistory[f.message]||(this._warningHistory[f.message]=!0,typeof console<"u"&&console.warn(f.message)),this._defaultValue}}}function Gn(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in ys}function Ts(i,t){const r=new Zr(ys,on,[],t?(function(l){const u={color:ti,string:$e,number:_e,enum:$e,boolean:Be,formatted:mr,padding:Mr,resolvedImage:rr,variableAnchorOffsetCollection:N};return l.type==="array"?A(u[l.value]||Ne,l.length):u[l.type]})(t):void 0),n=r.parse(i,void 0,void 0,void 0,t&&t.type==="string"?{typeAnnotation:"coerce"}:void 0);return n?Un(new Zn(n,t)):vs(r.errors)}class Ss{constructor(t,r){this.kind=t,this._styleExpression=r,this.isStateDependent=t!=="constant"&&!xs(r.expression)}evaluateWithoutErrorHandling(t,r,n,l,u,d){return this._styleExpression.evaluateWithoutErrorHandling(t,r,n,l,u,d)}evaluate(t,r,n,l,u,d){return this._styleExpression.evaluate(t,r,n,l,u,d)}}class Is{constructor(t,r,n,l){this.kind=t,this.zoomStops=n,this._styleExpression=r,this.isStateDependent=t!=="camera"&&!xs(r.expression),this.interpolationType=l}evaluateWithoutErrorHandling(t,r,n,l,u,d){return this._styleExpression.evaluateWithoutErrorHandling(t,r,n,l,u,d)}evaluate(t,r,n,l,u,d){return this._styleExpression.evaluate(t,r,n,l,u,d)}interpolationFactor(t,r,n){return this.interpolationType?ri.interpolationFactor(this.interpolationType,t,r,n):0}}function Xa(i,t){const r=Ts(i,t);if(r.result==="error")return r;const n=r.value.expression,l=ln(n);if(!l&&!bs(t))return vs([new Xt("","data expressions not supported")]);const u=cn(n,["zoom"]);if(!u&&!el(t))return vs([new Xt("","zoom expressions not supported")]);const d=hn(n);return d||u?d instanceof Xt?vs([d]):d instanceof ri&&!Ha(t)?vs([new Xt("",'"interpolate" expressions cannot be used with this property')]):Un(d?new Is(l?"camera":"composite",r.value,d.labels,d instanceof ri?d.interpolation:void 0):new Ss(l?"constant":"source",r.value)):vs([new Xt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Ps{constructor(t,r){this._parameters=t,this._specification=r,er(this,tl(this._parameters,this._specification))}static deserialize(t){return new Ps(t._parameters,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification}}}function hn(i){let t=null;if(i instanceof Cr)t=hn(i.result);else if(i instanceof Ln){for(const r of i.args)if(t=hn(r),t)break}else(i instanceof ms||i instanceof ri)&&i.input instanceof Ti&&i.input.name==="zoom"&&(t=i);return t instanceof Xt||i.eachChild((r=>{const n=hn(r);n instanceof Xt?t=n:!t&&n?t=new Xt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&n&&t!==n&&(t=new Xt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}function Hn(i){if(i===!0||i===!1)return!0;if(!Array.isArray(i)||i.length===0)return!1;switch(i[0]){case"has":return i.length>=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const t of i.slice(1))if(!Hn(t)&&typeof t!="boolean")return!1;return!0;default:return!0}}const Xn={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Wa(i){if(i==null)return{filter:()=>!0,needGeometry:!1};Hn(i)||(i=Wn(i));const t=Ts(i,Xn);if(t.result==="error")throw new Error(t.value.map((r=>`${r.key}: ${r.message}`)).join(", "));return{filter:(r,n,l)=>t.value.evaluate(r,n,{},l),needGeometry:nl(i)}}function rc(i,t){return i<t?-1:i>t?1:0}function nl(i){if(!Array.isArray(i))return!1;if(i[0]==="within"||i[0]==="distance")return!0;for(let t=1;t<i.length;t++)if(nl(i[t]))return!0;return!1}function Wn(i){if(!i)return!0;const t=i[0];return i.length<=1?t!=="any":t==="=="?Ka(i[1],i[2],"=="):t==="!="?Ot(Ka(i[1],i[2],"==")):t==="<"||t===">"||t==="<="||t===">="?Ka(i[1],i[2],t):t==="any"?(r=i.slice(1),["any"].concat(r.map(Wn))):t==="all"?["all"].concat(i.slice(1).map(Wn)):t==="none"?["all"].concat(i.slice(1).map(Wn).map(Ot)):t==="in"?un(i[1],i.slice(2)):t==="!in"?Ot(un(i[1],i.slice(2))):t==="has"?dn(i[1]):t!=="!has"||Ot(dn(i[1]));var r}function Ka(i,t,r){switch(i){case"$type":return[`filter-type-${r}`,t];case"$id":return[`filter-id-${r}`,t];default:return[`filter-${r}`,i,t]}}function un(i,t){if(t.length===0)return!1;switch(i){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((r=>typeof r!=typeof t[0]))?["filter-in-large",i,["literal",t.sort(rc)]]:["filter-in-small",i,["literal",t]]}}function dn(i){switch(i){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",i]}}function Ot(i){return["!",i]}function Qr(i){const t=typeof i;if(t==="number"||t==="boolean"||t==="string"||i==null)return JSON.stringify(i);if(Array.isArray(i)){let l="[";for(const u of i)l+=`${Qr(u)},`;return`${l}]`}const r=Object.keys(i).sort();let n="{";for(let l=0;l<r.length;l++)n+=`${JSON.stringify(r[l])}:${Qr(i[r[l]])},`;return`${n}}`}function al(i){let t="";for(const r of $r)t+=`/${Qr(i[r])}`;return t}function ol(i){const t=i.value;return t?[new ue(i.key,t,"constants have been deprecated as of v8")]:[]}function wt(i){return i instanceof Number||i instanceof String||i instanceof Boolean?i.valueOf():i}function Vi(i){if(Array.isArray(i))return i.map(Vi);if(i instanceof Object&&!(i instanceof Number||i instanceof String||i instanceof Boolean)){const t={};for(const r in i)t[r]=Vi(i[r]);return t}return wt(i)}function mi(i){const t=i.key,r=i.value,n=i.valueSpec||{},l=i.objectElementValidators||{},u=i.style,d=i.styleSpec,f=i.validateSpec;let _=[];const x=Ye(r);if(x!=="object")return[new ue(t,r,`object expected, ${x} found`)];for(const v in r){const w=v.split(".")[0],I=n[w]||n["*"];let M;if(l[w])M=l[w];else if(n[w])M=f;else if(l["*"])M=l["*"];else{if(!n["*"]){_.push(new ue(t,r[v],`unknown property "${v}"`));continue}M=f}_=_.concat(M({key:(t&&`${t}.`)+v,value:r[v],valueSpec:I,style:u,styleSpec:d,object:r,objectKey:v,validateSpec:f},r))}for(const v in n)l[v]||n[v].required&&n[v].default===void 0&&r[v]===void 0&&_.push(new ue(t,r,`missing required property "${v}"`));return _}function pn(i){const t=i.value,r=i.valueSpec,n=i.style,l=i.styleSpec,u=i.key,d=i.arrayElementValidator||i.validateSpec;if(Ye(t)!=="array")return[new ue(u,t,`array expected, ${Ye(t)} found`)];if(r.length&&t.length!==r.length)return[new ue(u,t,`array length ${r.length} expected, length ${t.length} found`)];if(r["min-length"]&&t.length<r["min-length"])return[new ue(u,t,`array length at least ${r["min-length"]} expected, length ${t.length} found`)];let f={type:r.value,values:r.values};l.$version<7&&(f.function=r.function),Ye(r.value)==="object"&&(f=r.value);let _=[];for(let x=0;x<t.length;x++)_=_.concat(d({array:t,arrayIndex:x,value:t[x],valueSpec:f,validateSpec:i.validateSpec,style:n,styleSpec:l,key:`${u}[${x}]`}));return _}function Ja(i){const t=i.key,r=i.value,n=i.valueSpec;let l=Ye(r);return l==="number"&&r!=r&&(l="NaN"),l!=="number"?[new ue(t,r,`number expected, ${l} found`)]:"minimum"in n&&r<n.minimum?[new ue(t,r,`${r} is less than the minimum value ${n.minimum}`)]:"maximum"in n&&r>n.maximum?[new ue(t,r,`${r} is greater than the maximum value ${n.maximum}`)]:[]}function Kn(i){const t=i.valueSpec,r=wt(i.value.type);let n,l,u,d={};const f=r!=="categorical"&&i.value.property===void 0,_=!f,x=Ye(i.value.stops)==="array"&&Ye(i.value.stops[0])==="array"&&Ye(i.value.stops[0][0])==="object",v=mi({key:i.key,value:i.value,valueSpec:i.styleSpec.function,validateSpec:i.validateSpec,style:i.style,styleSpec:i.styleSpec,objectElementValidators:{stops:function(M){if(r==="identity")return[new ue(M.key,M.value,'identity function may not have a "stops" property')];let k=[];const z=M.value;return k=k.concat(pn({key:M.key,value:z,valueSpec:M.valueSpec,validateSpec:M.validateSpec,style:M.style,styleSpec:M.styleSpec,arrayElementValidator:w})),Ye(z)==="array"&&z.length===0&&k.push(new ue(M.key,z,"array must have at least one stop")),k},default:function(M){return M.validateSpec({key:M.key,value:M.value,valueSpec:t,validateSpec:M.validateSpec,style:M.style,styleSpec:M.styleSpec})}}});return r==="identity"&&f&&v.push(new ue(i.key,i.value,'missing required property "property"')),r==="identity"||i.value.stops||v.push(new ue(i.key,i.value,'missing required property "stops"')),r==="exponential"&&i.valueSpec.expression&&!Ha(i.valueSpec)&&v.push(new ue(i.key,i.value,"exponential functions not supported")),i.styleSpec.$version>=8&&(_&&!bs(i.valueSpec)?v.push(new ue(i.key,i.value,"property functions not supported")):f&&!el(i.valueSpec)&&v.push(new ue(i.key,i.value,"zoom functions not supported"))),r!=="categorical"&&!x||i.value.property!==void 0||v.push(new ue(i.key,i.value,'"property" property is required')),v;function w(M){let k=[];const z=M.value,F=M.key;if(Ye(z)!=="array")return[new ue(F,z,`array expected, ${Ye(z)} found`)];if(z.length!==2)return[new ue(F,z,`array length 2 expected, length ${z.length} found`)];if(x){if(Ye(z[0])!=="object")return[new ue(F,z,`object expected, ${Ye(z[0])} found`)];if(z[0].zoom===void 0)return[new ue(F,z,"object stop key must have zoom")];if(z[0].value===void 0)return[new ue(F,z,"object stop key must have value")];if(u&&u>wt(z[0].zoom))return[new ue(F,z[0].zoom,"stop zoom values must appear in ascending order")];wt(z[0].zoom)!==u&&(u=wt(z[0].zoom),l=void 0,d={}),k=k.concat(mi({key:`${F}[0]`,value:z[0],valueSpec:{zoom:{}},validateSpec:M.validateSpec,style:M.style,styleSpec:M.styleSpec,objectElementValidators:{zoom:Ja,value:I}}))}else k=k.concat(I({key:`${F}[0]`,value:z[0],valueSpec:{},validateSpec:M.validateSpec,style:M.style,styleSpec:M.styleSpec},z));return Gn(Vi(z[1]))?k.concat([new ue(`${F}[1]`,z[1],"expressions are not allowed in function stops.")]):k.concat(M.validateSpec({key:`${F}[1]`,value:z[1],valueSpec:t,validateSpec:M.validateSpec,style:M.style,styleSpec:M.styleSpec}))}function I(M,k){const z=Ye(M.value),F=wt(M.value),j=M.value!==null?M.value:k;if(n){if(z!==n)return[new ue(M.key,j,`${z} stop domain type must match previous stop domain type ${n}`)]}else n=z;if(z!=="number"&&z!=="string"&&z!=="boolean")return[new ue(M.key,j,"stop domain value must be a number, string, or boolean")];if(z!=="number"&&r!=="categorical"){let Q=`number expected, ${z} found`;return bs(t)&&r===void 0&&(Q+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ue(M.key,j,Q)]}return r!=="categorical"||z!=="number"||isFinite(F)&&Math.floor(F)===F?r!=="categorical"&&z==="number"&&l!==void 0&&F<l?[new ue(M.key,j,"stop domain values must appear in ascending order")]:(l=F,r==="categorical"&&F in d?[new ue(M.key,j,"stop domain values must be unique")]:(d[F]=!0,[])):[new ue(M.key,j,`integer expected, found ${F}`)]}}function As(i){const t=(i.expressionContext==="property"?Xa:Ts)(Vi(i.value),i.valueSpec);if(t.result==="error")return t.value.map((n=>new ue(`${i.key}${n.key}`,i.value,n.message)));const r=t.value.expression||t.value._styleExpression.expression;if(i.expressionContext==="property"&&i.propertyKey==="text-font"&&!r.outputDefined())return[new ue(i.key,i.value,`Invalid data expression for "${i.propertyKey}". Output values must be contained as literals within the expression.`)];if(i.expressionContext==="property"&&i.propertyType==="layout"&&!xs(r))return[new ue(i.key,i.value,'"feature-state" data expressions are not supported with layout properties.')];if(i.expressionContext==="filter"&&!xs(r))return[new ue(i.key,i.value,'"feature-state" data expressions are not supported with filters.')];if(i.expressionContext&&i.expressionContext.indexOf("cluster")===0){if(!cn(r,["zoom","feature-state"]))return[new ue(i.key,i.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(i.expressionContext==="cluster-initial"&&!ln(r))return[new ue(i.key,i.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function gr(i){const t=i.key,r=i.value,n=i.valueSpec,l=[];return Array.isArray(n.values)?n.values.indexOf(wt(r))===-1&&l.push(new ue(t,r,`expected one of [${n.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(n.values).indexOf(wt(r))===-1&&l.push(new ue(t,r,`expected one of [${Object.keys(n.values).join(", ")}], ${JSON.stringify(r)} found`)),l}function Ya(i){return Hn(Vi(i.value))?As(er({},i,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Jn(i)}function Jn(i){const t=i.value,r=i.key;if(Ye(t)!=="array")return[new ue(r,t,`array expected, ${Ye(t)} found`)];const n=i.styleSpec;let l,u=[];if(t.length<1)return[new ue(r,t,"filter array must have at least 1 element")];switch(u=u.concat(gr({key:`${r}[0]`,value:t[0],valueSpec:n.filter_operator,style:i.style,styleSpec:i.styleSpec})),wt(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&wt(t[1])==="$type"&&u.push(new ue(r,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":t.length!==3&&u.push(new ue(r,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(l=Ye(t[1]),l!=="string"&&u.push(new ue(`${r}[1]`,t[1],`string expected, ${l} found`)));for(let d=2;d<t.length;d++)l=Ye(t[d]),wt(t[1])==="$type"?u=u.concat(gr({key:`${r}[${d}]`,value:t[d],valueSpec:n.geometry_type,style:i.style,styleSpec:i.styleSpec})):l!=="string"&&l!=="number"&&l!=="boolean"&&u.push(new ue(`${r}[${d}]`,t[d],`string, number, or boolean expected, ${l} found`));break;case"any":case"all":case"none":for(let d=1;d<t.length;d++)u=u.concat(Jn({key:`${r}[${d}]`,value:t[d],style:i.style,styleSpec:i.styleSpec}));break;case"has":case"!has":l=Ye(t[1]),t.length!==2?u.push(new ue(r,t,`filter array for "${t[0]}" operator must have 2 elements`)):l!=="string"&&u.push(new ue(`${r}[1]`,t[1],`string expected, ${l} found`))}return u}function Qa(i,t){const r=i.key,n=i.validateSpec,l=i.style,u=i.styleSpec,d=i.value,f=i.objectKey,_=u[`${t}_${i.layerType}`];if(!_)return[];const x=f.match(/^(.*)-transition$/);if(t==="paint"&&x&&_[x[1]]&&_[x[1]].transition)return n({key:r,value:d,valueSpec:u.transition,style:l,styleSpec:u});const v=i.valueSpec||_[f];if(!v)return[new ue(r,d,`unknown property "${f}"`)];let w;if(Ye(d)==="string"&&bs(v)&&!v.tokens&&(w=/^{([^}]+)}$/.exec(d)))return[new ue(r,d,`"${f}" does not support interpolation syntax
@@ -1,4 +1,4 @@
1
- export declare const OrderLabels: string[];
1
+ export declare const OrderLabels: readonly ["Low to High", "High to Low"];
2
2
  interface OrderPickerProps {
3
3
  onChange: (p: number) => void;
4
4
  className?: string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-ByCESzuH.js");exports.A=a.A;exports.ATarget=a.ATarget;exports.AddButton=a.AddButton;exports.AlertWrap=a.AlertWrap;exports.ArenaTag=a.ArenaTag;exports.Autocomplete=a.Autocomplete;exports.Avatar=a.Avatar;exports.AvatarTag=a.AvatarTag;exports.Button=a.Button;exports.CacheButton=a.CacheButton;exports.CalendarTag=a.CalendarTag;exports.Carousel=a.Carousel;exports.CategoryTag=a.CategoryTag;exports.ChatTag=a.ChatTag;exports.CheckboxGroup=a.CheckboxGroup;exports.ClickableDiv=a.ClickableDiv;exports.CloseIcon=a.CloseIcon;exports.CoachTag=a.CoachTag;exports.CollectionTag=a.CollectionsTag;exports.Column=a.Column;exports.CommentEditor=a.CommentEditor;exports.CommentTag=a.CommentTag;exports.Container=a.Container;exports.CopyTag=a.CopyTag;exports.Copyright=a.Copyright;exports.CreatePostTag=a.CreatePostTag;exports.CreateTag=a.CreateTag;exports.DateDisplay=a.DateDisplay;exports.DatePicker=a.DatePicker;exports.DateRange=a.DateRange;exports.DateTimePicker=a.DateTimePicker;exports.Deletable=a.Deletable;exports.DuelVersus=a.DuelVersus;exports.EditIcon=a.EditIcon;exports.EditableBlock=a.EditableBlock;exports.EmailInput=a.EmailInput;exports.ErrorBoundary=a.ErrorBoundary;exports.ErrorMessage=a.ErrorMessage;exports.EventTag=a.EventTag;exports.ExpandableContainer=a.ExpandableContainer;exports.ExploreTag=a.ExploreTag;exports.Form=a.Form;exports.GameScore=a.GameScore;exports.GameTag=a.GameTag;exports.H1=a.H1;exports.HomeTag=a.HomeTag;exports.ImageTag=a.ImageTag;exports.Img=a.Img;exports.InterestIconTooltip=a.InterestIconTooltip;exports.InterestTag=a.InterestTag;exports.LazyErrorBoundary=a.LazyErrorBoundary;exports.LeaderboardTag=a.LeaderboardTag;exports.LikeSection=a.LikeSection;exports.List=a.List;exports.LoadingIcon=a.LoadingIcon;exports.LoadingIndicator=a.LoadingIndicator;exports.LocationTag=a.LocationTag;exports.LogoutTag=a.LogoutTag;exports.MapTag=a.MapTag;exports.MarketTag=a.MarketTag;exports.MenuTooltip=a.MenuTooltip;exports.MiddleDot=a.MiddleDot;exports.Modal=a.Modal;exports.ModalButton=a.ModalButton;exports.ModalItem=a.ModalItem;exports.MonthPicker=a.MonthPicker;exports.NavArrows=a.NavArrows;exports.Navbar=a.Navbar;exports.NavigationControlPosition=a.NavigationControlPosition;exports.NewsfeedTag=a.NewsfeedTag;exports.NotFound=a.NotFound;exports.NotificationTag=a.NotificationTag;exports.OrderLabels=a.OrderLabels;exports.OrderPicker=a.OrderPicker;exports.OsmMap=a.OsmMap;exports.P=a.P;exports.PartnersTag=a.PartnersTag;exports.PasswordInput=a.PasswordInput;exports.Picker=a.Picker;exports.PollTag=a.PollTag;exports.PrivateTag=a.PrivateTag;exports.Row=a.Row;exports.SaveCancelButtons=a.SaveCancelButtons;exports.SearchBar=a.SearchBar;exports.SendIcon=a.SendIcon;exports.SocialMediaIcon=a.SocialMediaIcon;exports.Span=a.Span;exports.StaticColumn=a.StaticColumn;exports.StaticGameScore=a.StaticGameScore;exports.StaticImg=a.StaticImg;exports.StaticRow=a.StaticRow;exports.StyledButton=a.StyledButton;exports.SubjectReactionSection=a.SubjectReactionSection;exports.SubjectReactionType=a.SubjectReactionType;exports.SvgButton=a.SvgButton;exports.SvgSize=a.l;exports.SvgTooltip=a.SvgTooltip;exports.Tabs=a.Tabs;exports.Tag=a.Tag;exports.Tags=a.Tags;exports.TeamTag=a.TeamTag;exports.TextInput=a.TextInput;exports.TextPostTag=a.TextPostTag;exports.TextUpdater=a.TextUpdater;exports.Textarea=a.Textarea;exports.TextareaAutosize=a.TextareaAutosize;exports.TimeAgo=a.TimeAgo;exports.TimePicker=a.TimePicker;exports.ToggleButton=a.ToggleButton;exports.Tooltip=a.Tooltip;exports.UpArrowTag=a.UpArrowTag;exports.UserTag=a.UserTag;exports.VerticalLine=a.VerticalLine;exports.VerticalStaticInterestTag=a.VerticalStaticInterestTag;exports.formatDate=a.formatDate;exports.formatDateTime=a.formatDateTime;exports.formatDateTimeRange=a.formatDateTimeRange;exports.formatTime=a.formatTime;exports.isSameDate=a.isSameDate;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-KkD8kIGu.js");exports.A=a.A;exports.ATarget=a.ATarget;exports.AddButton=a.AddButton;exports.AlertWrap=a.AlertWrap;exports.ArenaTag=a.ArenaTag;exports.Autocomplete=a.Autocomplete;exports.Avatar=a.Avatar;exports.AvatarTag=a.AvatarTag;exports.Button=a.Button;exports.CacheButton=a.CacheButton;exports.CalendarTag=a.CalendarTag;exports.Carousel=a.Carousel;exports.CategoryTag=a.CategoryTag;exports.ChatTag=a.ChatTag;exports.CheckboxGroup=a.CheckboxGroup;exports.ClickableDiv=a.ClickableDiv;exports.CloseIcon=a.CloseIcon;exports.CoachTag=a.CoachTag;exports.CollectionTag=a.CollectionsTag;exports.Column=a.Column;exports.CommentEditor=a.CommentEditor;exports.CommentTag=a.CommentTag;exports.Container=a.Container;exports.CopyTag=a.CopyTag;exports.Copyright=a.Copyright;exports.CreatePostTag=a.CreatePostTag;exports.CreateTag=a.CreateTag;exports.DateDisplay=a.DateDisplay;exports.DatePicker=a.DatePicker;exports.DateRange=a.DateRange;exports.DateTimePicker=a.DateTimePicker;exports.Deletable=a.Deletable;exports.DuelVersus=a.DuelVersus;exports.EditIcon=a.EditIcon;exports.EditableBlock=a.EditableBlock;exports.EmailInput=a.EmailInput;exports.ErrorBoundary=a.ErrorBoundary;exports.ErrorMessage=a.ErrorMessage;exports.EventTag=a.EventTag;exports.ExpandableContainer=a.ExpandableContainer;exports.ExploreTag=a.ExploreTag;exports.Form=a.Form;exports.GameScore=a.GameScore;exports.GameTag=a.GameTag;exports.H1=a.H1;exports.HomeTag=a.HomeTag;exports.ImageTag=a.ImageTag;exports.Img=a.Img;exports.InterestIconTooltip=a.InterestIconTooltip;exports.InterestTag=a.InterestTag;exports.LazyErrorBoundary=a.LazyErrorBoundary;exports.LeaderboardTag=a.LeaderboardTag;exports.LikeSection=a.LikeSection;exports.List=a.List;exports.LoadingIcon=a.LoadingIcon;exports.LoadingIndicator=a.LoadingIndicator;exports.LocationTag=a.LocationTag;exports.LogoutTag=a.LogoutTag;exports.MapTag=a.MapTag;exports.MarketTag=a.MarketTag;exports.MenuTooltip=a.MenuTooltip;exports.MiddleDot=a.MiddleDot;exports.Modal=a.Modal;exports.ModalButton=a.ModalButton;exports.ModalItem=a.ModalItem;exports.MonthPicker=a.MonthPicker;exports.NavArrows=a.NavArrows;exports.Navbar=a.Navbar;exports.NavigationControlPosition=a.NavigationControlPosition;exports.NewsfeedTag=a.NewsfeedTag;exports.NotFound=a.NotFound;exports.NotificationTag=a.NotificationTag;exports.OrderLabels=a.OrderLabels;exports.OrderPicker=a.OrderPicker;exports.OsmMap=a.OsmMap;exports.P=a.P;exports.PartnersTag=a.PartnersTag;exports.PasswordInput=a.PasswordInput;exports.Picker=a.Picker;exports.PollTag=a.PollTag;exports.PrivateTag=a.PrivateTag;exports.Row=a.Row;exports.SaveCancelButtons=a.SaveCancelButtons;exports.SearchBar=a.SearchBar;exports.SendIcon=a.SendIcon;exports.SocialMediaIcon=a.SocialMediaIcon;exports.Span=a.Span;exports.StaticColumn=a.StaticColumn;exports.StaticGameScore=a.StaticGameScore;exports.StaticImg=a.StaticImg;exports.StaticRow=a.StaticRow;exports.StyledButton=a.StyledButton;exports.SubjectReactionSection=a.SubjectReactionSection;exports.SubjectReactionType=a.SubjectReactionType;exports.SvgButton=a.SvgButton;exports.SvgSize=a.l;exports.SvgTooltip=a.SvgTooltip;exports.Tabs=a.Tabs;exports.Tag=a.Tag;exports.Tags=a.Tags;exports.TeamTag=a.TeamTag;exports.TextInput=a.TextInput;exports.TextPostTag=a.TextPostTag;exports.TextUpdater=a.TextUpdater;exports.Textarea=a.Textarea;exports.TextareaAutosize=a.TextareaAutosize;exports.TimeAgo=a.TimeAgo;exports.TimePicker=a.TimePicker;exports.ToggleButton=a.ToggleButton;exports.Tooltip=a.Tooltip;exports.UpArrowTag=a.UpArrowTag;exports.UserTag=a.UserTag;exports.VerticalLine=a.VerticalLine;exports.VerticalStaticInterestTag=a.VerticalStaticInterestTag;exports.formatDate=a.formatDate;exports.formatDateTime=a.formatDateTime;exports.formatDateTimeRange=a.formatDateTimeRange;exports.formatTime=a.formatTime;exports.isSameDate=a.isSameDate;
package/dist/wacomm.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, a as t, b as o, c as r, d as i, e as n, f as T, h as g, B as c, C as l, i as m, j as d, k as u, l as p, m as C, n as S, o as I, p as P, q as b, r as D, s as v, t as B, u as k, v as A, w as M, x as E, y as L, D as x, z as y, E as f, F as h, G as w, H as N, I as R, J as G, K as z, L as O, M as U, N as V, O as j, P as F, Q as H, R as W, S as q, T as J, U as K, V as Q, W as X, X as Y, Y as Z, Z as _, _ as $, $ as aa, a0 as sa, a1 as ea, a2 as ta, a3 as oa, a4 as ra, a5 as ia, a6 as na, a7 as Ta, a8 as ga, a9 as ca, aa as la, ab as ma, ac as da, ad as ua, ae as pa, af as Ca, ag as Sa, ah as Ia, ai as Pa, aj as ba, ak as Da, al as va, am as Ba, an as ka, ao as Aa, ap as Ma, aq as Ea, ar as La, as as xa, at as ya, au as fa, av as ha, aw as wa, ax as Na, ay as Ra, az as Ga, aA as za, aB as Oa, aC as Ua, aD as Va, aE as ja, aF as Fa, aG as Ha, aH as Wa, aI as qa, aJ as Ja, aK as Ka, aL as Qa, aM as Xa, aN as Ya, aO as Za, aP as _a, aQ as $a, aR as as, aS as ss, aT as es, aU as ts, aV as os, aW as rs, aX as is, aY as ns, aZ as Ts, a_ as gs, a$ as cs, b0 as ls, b1 as ms } from "./index-Cy0AcX8W.mjs";
1
+ import { A as e, a as t, b as o, c as r, d as i, e as n, f as T, h as g, B as c, C as l, i as m, j as d, k as u, l as p, m as C, n as S, o as I, p as P, q as b, r as D, s as v, t as B, u as k, v as A, w as M, x as E, y as L, D as x, z as y, E as f, F as h, G as w, H as N, I as R, J as G, K as z, L as O, M as U, N as V, O as j, P as F, Q as H, R as W, S as q, T as J, U as K, V as Q, W as X, X as Y, Y as Z, Z as _, _ as $, $ as aa, a0 as sa, a1 as ea, a2 as ta, a3 as oa, a4 as ra, a5 as ia, a6 as na, a7 as Ta, a8 as ga, a9 as ca, aa as la, ab as ma, ac as da, ad as ua, ae as pa, af as Ca, ag as Sa, ah as Ia, ai as Pa, aj as ba, ak as Da, al as va, am as Ba, an as ka, ao as Aa, ap as Ma, aq as Ea, ar as La, as as xa, at as ya, au as fa, av as ha, aw as wa, ax as Na, ay as Ra, az as Ga, aA as za, aB as Oa, aC as Ua, aD as Va, aE as ja, aF as Fa, aG as Ha, aH as Wa, aI as qa, aJ as Ja, aK as Ka, aL as Qa, aM as Xa, aN as Ya, aO as Za, aP as _a, aQ as $a, aR as as, aS as ss, aT as es, aU as ts, aV as os, aW as rs, aX as is, aY as ns, aZ as Ts, a_ as gs, a$ as cs, b0 as ls, b1 as ms } from "./index-B3FzcAVO.mjs";
2
2
  export {
3
3
  e as A,
4
4
  t as ATarget,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wacomm",
3
- "version": "1.87.0",
3
+ "version": "1.87.2",
4
4
  "main": "dist/wacomm.cjs.js",
5
5
  "module": "dist/wacomm.es.js",
6
6
  "types": "dist/index.d.ts",