diff --git a/govuk_step2/assets/About-1c252dce.js b/govuk_step2/assets/About-75317461.js similarity index 61% rename from govuk_step2/assets/About-1c252dce.js rename to govuk_step2/assets/About-75317461.js index b719fcfc1..9798bfd67 100644 --- a/govuk_step2/assets/About-1c252dce.js +++ b/govuk_step2/assets/About-75317461.js @@ -1,15 +1,15 @@ -import{S as K,i as N,s as Q,c as Ce,e as _,r as j,d as k,u as Ae,g as Ie,f as Me,t as m,j as d,k as b,p as c,q as E,ai as we,aA as X,v as a,l as ve,aD as Te,w as Ee,aj as je,ak as Pe,B as Se,C as We,G as C,H as A,J as I,D as De,E as Ge,I as Le}from"./maplibre_helpers-e26a4314.js";const st="/atip/govuk_step2/assets/authorities-80e824dc.geojson";function Re(l){let e,t;const n=l[2].default,s=Ce(n,l,l[1],null);return{c(){e=_("a"),s&&s.c(),j(e,"href",l[0]),j(e,"target","_blank"),j(e,"rel","noreferrer")},m(o,i){k(o,e,i),s&&s.m(e,null),t=!0},p(o,[i]){s&&s.p&&(!t||i&2)&&Ae(s,n,o,o[1],t?Me(n,o[1],i,null):Ie(o[1]),null),(!t||i&1)&&j(e,"href",o[0])},i(o){t||(m(s,o),t=!0)},o(o){d(s,o),t=!1},d(o){o&&b(e),s&&s.d(o)}}}function Ue(l,e,t){let{$$slots:n={},$$scope:s}=e,{href:o}=e;return l.$$set=i=>{"href"in i&&t(0,o=i.href),"$$scope"in i&&t(1,s=i.$$scope)},[o,s,n]}class T extends K{constructor(e){super(),N(this,e,Ue,Re,Q,{href:0})}}function Be(l){let e,t;return e=new We({props:{$$slots:{default:[qe]},$$scope:{ctx:l}}}),e.$on("click",l[5]),{c(){C(e.$$.fragment)},m(n,s){A(e,n,s),t=!0},p(n,s){const o={};s&128&&(o.$$scope={dirty:s,ctx:n}),e.$set(o)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){d(e.$$.fragment,n),t=!1},d(n){I(e,n)}}}function qe(l){let e;return{c(){e=c("X")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function He(l){let e,t,n,s,o,i,g,$,w,P,f=l[2]&&Be(l);const M=l[4].default,h=Ce(M,l,l[7],null);return{c(){e=_("div"),t=_("div"),n=_("div"),s=_("h1"),o=c(l[1]),i=E(),f&&f.c(),g=E(),h&&h.c(),j(s,"class","govuk-heading-l"),we(n,"display","flex"),we(n,"justify-content","space-between"),j(t,"class","content centered-fullscreen svelte-stcgp5"),j(e,"class","background svelte-stcgp5"),X(e,"open",l[0]),X(e,"closed",!l[0])},m(u,B){k(u,e,B),a(e,t),a(t,n),a(n,s),a(s,o),a(n,i),f&&f.m(n,null),a(t,g),h&&h.m(t,null),$=!0,w||(P=[ve(t,"click",Te(Je)),ve(e,"click",l[6])],w=!0)},p(u,[B]){(!$||B&2)&&Ee(o,u[1]),u[2]?f?(f.p(u,B),B&4&&m(f,1)):(f=Be(u),f.c(),m(f,1),f.m(n,null)):f&&(je(),d(f,1,1,()=>{f=null}),Pe()),h&&h.p&&(!$||B&128)&&Ae(h,M,u,u[7],$?Me(M,u[7],B,null):Ie(u[7]),null),(!$||B&1)&&X(e,"open",u[0]),(!$||B&1)&&X(e,"closed",!u[0])},i(u){$||(m(f),m(h,u),$=!0)},o(u){d(f),d(h,u),$=!1},d(u){u&&b(e),f&&f.d(),h&&h.d(u),w=!1,Se(P)}}}const Je=()=>null;function Xe(l,e,t){let{$$slots:n={},$$scope:s}=e,{title:o}=e,{open:i=!1}=e,{displayEscapeButton:g=!0}=e,{canCloseByClickingBackground:$=!0}=e;const w=()=>t(0,i=!1),P=()=>{$&&t(0,i=!1)};return l.$$set=f=>{"title"in f&&t(1,o=f.title),"open"in f&&t(0,i=f.open),"displayEscapeButton"in f&&t(2,g=f.displayEscapeButton),"canCloseByClickingBackground"in f&&t(3,$=f.canCloseByClickingBackground),"$$scope"in f&&t(7,s=f.$$scope)},[i,o,g,$,n,w,P,s]}class ze extends K{constructor(e){super(),N(this,e,Xe,He,Q,{title:1,open:0,displayEscapeButton:2,canCloseByClickingBackground:3})}}function Oe(l){let e;return{c(){e=c("open source project")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Fe(l){let e;return{c(){e=c("Dustin Carlino")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ke(l){let e;return{c(){e=c("Madison Wang")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ne(l){let e;return{c(){e=c("Ben Ritter")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Qe(l){let e;return{c(){e=c("OpenStreetMap")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ve(l){let e;return{c(){e=c("MapLibre")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ye(l){let e;return{c(){e=c("GeoRust")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ze(l){let e;return{c(){e=c("osm2streets")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function xe(l){let e;return{c(){e=c("Material icons")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function ye(l){let e;return{c(){e=c("start an issue on Github")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function et(l){let e,t,n,s,o,i,g,$,w,P,f,M,h,u,B,S,V,z,Y,v,Z,W,x,D,y,G,ee,L,te,R,ne,le,U,se,q,ae,H,oe,re,ie,fe,O,ue,F,J;return s=new T({props:{href:"https://github.com/acteng/atip",$$slots:{default:[Oe]},$$scope:{ctx:l}}}),w=new T({props:{href:"https://www.turing.ac.uk/people/researchers/dustin-carlino",$$slots:{default:[Fe]},$$scope:{ctx:l}}}),u=new T({props:{href:"https://www.linkedin.com/in/madison-wang-841977bb/",$$slots:{default:[Ke]},$$scope:{ctx:l}}}),S=new T({props:{href:"https://github.com/BudgieInWA",$$slots:{default:[Ne]},$$scope:{ctx:l}}}),W=new T({props:{href:"https://www.openstreetmap.org/about",$$slots:{default:[Qe]},$$scope:{ctx:l}}}),D=new T({props:{href:"https://maplibre.org/",$$slots:{default:[Ve]},$$scope:{ctx:l}}}),G=new T({props:{href:"https://georust.org/",$$slots:{default:[Ye]},$$scope:{ctx:l}}}),L=new T({props:{href:"https://github.com/a-b-street/osm2streets",$$slots:{default:[Ze]},$$scope:{ctx:l}}}),R=new T({props:{href:"https://material.io/resources/icons/",$$slots:{default:[xe]},$$scope:{ctx:l}}}),q=new T({props:{href:"https://github.com/acteng/atip/issues/new",$$slots:{default:[ye]},$$scope:{ctx:l}}}),{c(){e=_("div"),t=_("p"),n=c(`ATIP v2 is an +import{S as F,i as N,s as Q,c as Ce,e as _,r as j,d as k,u as Ae,g as Ie,f as Me,t as m,j as d,k as b,p as c,q as E,aj as we,aB as X,v as a,l as ve,aE as Te,w as Ee,ak as je,al as Pe,B as Se,C as We,H as C,I as A,K as I,D as Le,E as Re,J as Ue}from"./maplibre_helpers-5d84afaa.js";const st="/atip/govuk_step2/assets/authorities-80e824dc.geojson";function qe(l){let e,t;const n=l[2].default,s=Ce(n,l,l[1],null);return{c(){e=_("a"),s&&s.c(),j(e,"href",l[0]),j(e,"target","_blank"),j(e,"rel","noreferrer")},m(o,i){k(o,e,i),s&&s.m(e,null),t=!0},p(o,[i]){s&&s.p&&(!t||i&2)&&Ae(s,n,o,o[1],t?Me(n,o[1],i,null):Ie(o[1]),null),(!t||i&1)&&j(e,"href",o[0])},i(o){t||(m(s,o),t=!0)},o(o){d(s,o),t=!1},d(o){o&&b(e),s&&s.d(o)}}}function De(l,e,t){let{$$slots:n={},$$scope:s}=e,{href:o}=e;return l.$$set=i=>{"href"in i&&t(0,o=i.href),"$$scope"in i&&t(1,s=i.$$scope)},[o,s,n]}class T extends F{constructor(e){super(),N(this,e,De,qe,Q,{href:0})}}function Be(l){let e,t;return e=new We({props:{$$slots:{default:[Ge]},$$scope:{ctx:l}}}),e.$on("click",l[5]),{c(){C(e.$$.fragment)},m(n,s){A(e,n,s),t=!0},p(n,s){const o={};s&128&&(o.$$scope={dirty:s,ctx:n}),e.$set(o)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){d(e.$$.fragment,n),t=!1},d(n){I(e,n)}}}function Ge(l){let e;return{c(){e=c("X")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function He(l){let e,t,n,s,o,i,g,$,w,P,f=l[2]&&Be(l);const M=l[4].default,h=Ce(M,l,l[7],null);return{c(){e=_("div"),t=_("div"),n=_("div"),s=_("h1"),o=c(l[1]),i=E(),f&&f.c(),g=E(),h&&h.c(),j(s,"class","govuk-heading-l"),we(n,"display","flex"),we(n,"justify-content","space-between"),j(t,"class","content centered-fullscreen svelte-stcgp5"),j(e,"class","background svelte-stcgp5"),X(e,"open",l[0]),X(e,"closed",!l[0])},m(u,B){k(u,e,B),a(e,t),a(t,n),a(n,s),a(s,o),a(n,i),f&&f.m(n,null),a(t,g),h&&h.m(t,null),$=!0,w||(P=[ve(t,"click",Te(Je)),ve(e,"click",l[6])],w=!0)},p(u,[B]){(!$||B&2)&&Ee(o,u[1]),u[2]?f?(f.p(u,B),B&4&&m(f,1)):(f=Be(u),f.c(),m(f,1),f.m(n,null)):f&&(je(),d(f,1,1,()=>{f=null}),Pe()),h&&h.p&&(!$||B&128)&&Ae(h,M,u,u[7],$?Me(M,u[7],B,null):Ie(u[7]),null),(!$||B&1)&&X(e,"open",u[0]),(!$||B&1)&&X(e,"closed",!u[0])},i(u){$||(m(f),m(h,u),$=!0)},o(u){d(f),d(h,u),$=!1},d(u){u&&b(e),f&&f.d(),h&&h.d(u),w=!1,Se(P)}}}const Je=()=>null;function Xe(l,e,t){let{$$slots:n={},$$scope:s}=e,{title:o}=e,{open:i=!1}=e,{displayEscapeButton:g=!0}=e,{canCloseByClickingBackground:$=!0}=e;const w=()=>t(0,i=!1),P=()=>{$&&t(0,i=!1)};return l.$$set=f=>{"title"in f&&t(1,o=f.title),"open"in f&&t(0,i=f.open),"displayEscapeButton"in f&&t(2,g=f.displayEscapeButton),"canCloseByClickingBackground"in f&&t(3,$=f.canCloseByClickingBackground),"$$scope"in f&&t(7,s=f.$$scope)},[i,o,g,$,n,w,P,s]}class ze extends F{constructor(e){super(),N(this,e,Xe,He,Q,{title:1,open:0,displayEscapeButton:2,canCloseByClickingBackground:3})}}function Ke(l){let e;return{c(){e=c("open source project")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Oe(l){let e;return{c(){e=c("Dustin Carlino")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Fe(l){let e;return{c(){e=c("Madison Wang")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ne(l){let e;return{c(){e=c("Ben Ritter")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Qe(l){let e;return{c(){e=c("OpenStreetMap")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ve(l){let e;return{c(){e=c("MapLibre")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ye(l){let e;return{c(){e=c("GeoRust")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ze(l){let e;return{c(){e=c("osm2streets")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function xe(l){let e;return{c(){e=c("Material icons")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function ye(l){let e;return{c(){e=c("start an issue on Github")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function et(l){let e,t,n,s,o,i,g,$,w,P,f,M,h,u,B,S,V,z,Y,v,Z,W,x,L,y,R,ee,U,te,q,ne,le,D,se,G,ae,H,oe,re,ie,fe,K,ue,O,J;return s=new T({props:{href:"https://github.com/acteng/atip",$$slots:{default:[Ke]},$$scope:{ctx:l}}}),w=new T({props:{href:"https://www.turing.ac.uk/people/researchers/dustin-carlino",$$slots:{default:[Oe]},$$scope:{ctx:l}}}),u=new T({props:{href:"https://www.linkedin.com/in/madison-wang-841977bb/",$$slots:{default:[Fe]},$$scope:{ctx:l}}}),S=new T({props:{href:"https://github.com/BudgieInWA",$$slots:{default:[Ne]},$$scope:{ctx:l}}}),W=new T({props:{href:"https://www.openstreetmap.org/about",$$slots:{default:[Qe]},$$scope:{ctx:l}}}),L=new T({props:{href:"https://maplibre.org/",$$slots:{default:[Ve]},$$scope:{ctx:l}}}),R=new T({props:{href:"https://georust.org/",$$slots:{default:[Ye]},$$scope:{ctx:l}}}),U=new T({props:{href:"https://github.com/a-b-street/osm2streets",$$slots:{default:[Ze]},$$scope:{ctx:l}}}),q=new T({props:{href:"https://material.io/resources/icons/",$$slots:{default:[xe]},$$scope:{ctx:l}}}),G=new T({props:{href:"https://github.com/acteng/atip/issues/new",$$slots:{default:[ye]},$$scope:{ctx:l}}}),{c(){e=_("div"),t=_("p"),n=c(`ATIP v2 is an `),C(s.$$.fragment),o=c(" supported by Active Travel England and developed by:"),i=E(),g=_("ul"),$=_("li"),C(w.$$.fragment),P=c(": lead developer, from The Alan Turing Institute"),f=E(),M=_("li"),h=c(`With UX help from `),C(u.$$.fragment),B=c(` and CSS help from `),C(S.$$.fragment),V=E(),z=_("li"),z.textContent=`With great thanks to ATIP's various users for feedback, testing, and ideas`,Y=E(),v=_("p"),Z=c(`ATIP builds on `),C(W.$$.fragment),x=c(` contributors, - `),C(D.$$.fragment),y=c(`, - `),C(G.$$.fragment),ee=c(`, - `),C(L.$$.fragment),te=c(`, - `),C(R.$$.fragment),ne=c(", and other open source projects."),le=E(),U=_("p"),se=c("We want your feedback about ATIP! Please "),C(q.$$.fragment),ae=c(` + `),C(L.$$.fragment),y=c(`, + `),C(R.$$.fragment),ee=c(`, + `),C(U.$$.fragment),te=c(`, + `),C(q.$$.fragment),ne=c(", and other open source projects."),le=E(),D=_("p"),se=c("We want your feedback about ATIP! Please "),C(G.$$.fragment),ae=c(` or email - `),H=_("a"),H.textContent="dcarlino@turing.ac.uk",oe=c("."),re=E(),ie=_("hr"),fe=E(),O=_("h2"),O.textContent="Recent changes",ue=E(),F=_("ul"),F.innerHTML=`
>>0,typeof i[u]=="object"?i[u].baseVal=c.join(" "):i[u]=c.join(" "),E())},a.remove=function(){b.apply(a,f=arguments);for(var f,g={},v=0,T=[];v >>0,typeof i[u]=="object"?i[u].baseVal=c.join(" "):i[u]=c.join(" "),E())},a.remove=function(){y.apply(a,f=arguments);for(var f,g={},v=0,T=[];v 0;)P--}l(i[r],b)===0?ao(i,r,P):ao(i,++P,s),P<=e&&(r=P+1),e<=P&&(s=P-1)}}function ao(i,e,r){var s=i[e];i[e]=i[r],i[r]=s}function $d(i,e){return i =c&&t.y":[Ye,[Qe,He],(i,[e,r])=>{const s=i.properties()[e.value],l=r.value;return typeof s==typeof l&&s>l}],"filter-id->":[Ye,[He],(i,[e])=>{const r=i.id(),s=e.value;return typeof r==typeof s&&r>s}],"filter-<=":[Ye,[Qe,He],(i,[e,r])=>{const s=i.properties()[e.value],l=r.value;return typeof s==typeof l&&s<=l}],"filter-id-<=":[Ye,[He],(i,[e])=>{const r=i.id(),s=e.value;return typeof r==typeof s&&r<=s}],"filter->=":[Ye,[Qe,He],(i,[e,r])=>{const s=i.properties()[e.value],l=r.value;return typeof s==typeof l&&s>=l}],"filter-id->=":[Ye,[He],(i,[e])=>{const r=i.id(),s=e.value;return typeof r==typeof s&&r>=s}],"filter-has":[Ye,[He],(i,[e])=>e.value in i.properties()],"filter-has-id":[Ye,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[Ye,[ui(Qe)],(i,[e])=>e.value.indexOf(i.geometryType())>=0],"filter-id-in":[Ye,[ui(He)],(i,[e])=>e.value.indexOf(i.id())>=0],"filter-in-small":[Ye,[Qe,ui(He)],(i,[e,r])=>r.value.indexOf(i.properties()[e.value])>=0],"filter-in-large":[Ye,[Qe,ui(He)],(i,[e,r])=>function(s,l,u,d){for(;u<=d;){const f=u+d>>1;if(l[f]===s)return!0;l[f]>s?d=f-1:u=f+1}return!1}(i.properties()[e.value],r.value,0,r.value.length-1)],all:{type:Ye,overloads:[[[Ye,Ye],(i,[e,r])=>e.evaluate(i)&&r.evaluate(i)],[tn(Ye),(i,e)=>{for(const r of e)if(!r.evaluate(i))return!1;return!0}]]},any:{type:Ye,overloads:[[[Ye,Ye],(i,[e,r])=>e.evaluate(i)||r.evaluate(i)],[tn(Ye),(i,e)=>{for(const r of e)if(r.evaluate(i))return!0;return!1}]]},"!":[Ye,[Ye],(i,[e])=>!e.evaluate(i)],"is-supported-script":[Ye,[Qe],(i,[e])=>{const r=i.globals&&i.globals.isSupportedScript;return!r||r(e.evaluate(i))}],upcase:[Qe,[Qe],(i,[e])=>e.evaluate(i).toUpperCase()],downcase:[Qe,[Qe],(i,[e])=>e.evaluate(i).toLowerCase()],concat:[Qe,tn(He),(i,e)=>e.map(r=>Gn(r.evaluate(i))).join("")],"resolved-locale":[Qe,[Tr],(i,[e])=>e.evaluate(i).resolvedLocale()]});class za{constructor(e,r){var s;this.expression=e,this._warningHistory={},this._evaluator=new ys,this._defaultValue=r?(s=r).type==="color"&&Ms(s.default)?new je(0,0,0,0):s.type==="color"?je.parse(s.default)||null:s.type==="padding"?Li.parse(s.default)||null:s.default===void 0?null:s.default:null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(e,r,s,l,u,d){return this._evaluator.globals=e,this._evaluator.feature=r,this._evaluator.featureState=s,this._evaluator.canonical=l,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=d,this.expression.evaluate(this._evaluator)}evaluate(e,r,s,l,u,d){this._evaluator.globals=e,this._evaluator.feature=r||null,this._evaluator.featureState=s||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 Nt(`Expected value to be one of ${Object.keys(this._enumValues).map(g=>JSON.stringify(g)).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 Cs(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in An}function Dt(i,e){const r=new Nr(An,bs,[],e?function(l){const u={color:Pi,string:Qe,number:be,enum:Qe,boolean:Ye,formatted:Er,padding:er,resolvedImage:Sr};return l.type==="array"?ui(u[l.value]||He,l.length):u[l.type]}(e):void 0),s=r.parse(i,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return s?Fo(new za(s,e)):Pn(r.errors)}class Da{constructor(e,r){this.kind=e,this._styleExpression=r,this.isStateDependent=e!=="constant"&&!Tn(r.expression)}evaluateWithoutErrorHandling(e,r,s,l,u,d){return this._styleExpression.evaluateWithoutErrorHandling(e,r,s,l,u,d)}evaluate(e,r,s,l,u,d){return this._styleExpression.evaluate(e,r,s,l,u,d)}}class st{constructor(e,r,s,l){this.kind=e,this.zoomStops=s,this._styleExpression=r,this.isStateDependent=e!=="camera"&&!Tn(r.expression),this.interpolationType=l}evaluateWithoutErrorHandling(e,r,s,l,u,d){return this._styleExpression.evaluateWithoutErrorHandling(e,r,s,l,u,d)}evaluate(e,r,s,l,u,d){return this._styleExpression.evaluate(e,r,s,l,u,d)}interpolationFactor(e,r,s){return this.interpolationType?Ri.interpolationFactor(this.interpolationType,e,r,s):0}}function ks(i,e){const r=Dt(i,e);if(r.result==="error")return r;const s=r.value.expression,l=Wn(s);if(!l&&!Mn(e))return Pn([new fi("","data expressions not supported")]);const u=ws(s,["zoom"]);if(!u&&!Oo(e))return Pn([new fi("","zoom expressions not supported")]);const d=Et(s);return d||u?d instanceof fi?Pn([d]):d instanceof Ri&&!Ca(e)?Pn([new fi("",'"interpolate" expressions cannot be used with this property')]):Fo(d?new st(l?"camera":"composite",r.value,d.labels,d instanceof Ri?d.interpolation:void 0):new Da(l?"constant":"source",r.value)):Pn([new fi("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class It{constructor(e,r){this._parameters=e,this._specification=r,lr(this,Uo(this._parameters,this._specification))}static deserialize(e){return new It(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Et(i){let e=null;if(i instanceof Is)e=Et(i.result);else if(i instanceof Ss){for(const r of i.args)if(e=Et(r),e)break}else(i instanceof En||i instanceof Ri)&&i.input instanceof Hi&&i.input.name==="zoom"&&(e=i);return e instanceof fi||i.eachChild(r=>{const s=Et(r);s instanceof fi?e=s:!e&&s?e=new fi("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&s&&e!==s&&(e=new fi("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function Cn(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 e of i.slice(1))if(!Cn(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}const No={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function La(i){if(i==null)return{filter:()=>!0,needGeometry:!1};Cn(i)||(i=zs(i));const e=Dt(i,No);if(e.result==="error")throw new Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));return{filter:(r,s,l)=>e.value.evaluate(r,s,{},l),needGeometry:$o(i)}}function Jl(i,e){return ii>=128&&i<=255,Arabic:i=>i>=1536&&i<=1791,"Arabic Supplement":i=>i>=1872&&i<=1919,"Arabic Extended-A":i=>i>=2208&&i<=2303,"Hangul Jamo":i=>i>=4352&&i<=4607,"Unified Canadian Aboriginal Syllabics":i=>i>=5120&&i<=5759,Khmer:i=>i>=6016&&i<=6143,"Unified Canadian Aboriginal Syllabics Extended":i=>i>=6320&&i<=6399,"General Punctuation":i=>i>=8192&&i<=8303,"Letterlike Symbols":i=>i>=8448&&i<=8527,"Number Forms":i=>i>=8528&&i<=8591,"Miscellaneous Technical":i=>i>=8960&&i<=9215,"Control Pictures":i=>i>=9216&&i<=9279,"Optical Character Recognition":i=>i>=9280&&i<=9311,"Enclosed Alphanumerics":i=>i>=9312&&i<=9471,"Geometric Shapes":i=>i>=9632&&i<=9727,"Miscellaneous Symbols":i=>i>=9728&&i<=9983,"Miscellaneous Symbols and Arrows":i=>i>=11008&&i<=11263,"CJK Radicals Supplement":i=>i>=11904&&i<=12031,"Kangxi Radicals":i=>i>=12032&&i<=12255,"Ideographic Description Characters":i=>i>=12272&&i<=12287,"CJK Symbols and Punctuation":i=>i>=12288&&i<=12351,Hiragana:i=>i>=12352&&i<=12447,Katakana:i=>i>=12448&&i<=12543,Bopomofo:i=>i>=12544&&i<=12591,"Hangul Compatibility Jamo":i=>i>=12592&&i<=12687,Kanbun:i=>i>=12688&&i<=12703,"Bopomofo Extended":i=>i>=12704&&i<=12735,"CJK Strokes":i=>i>=12736&&i<=12783,"Katakana Phonetic Extensions":i=>i>=12784&&i<=12799,"Enclosed CJK Letters and Months":i=>i>=12800&&i<=13055,"CJK Compatibility":i=>i>=13056&&i<=13311,"CJK Unified Ideographs Extension A":i=>i>=13312&&i<=19903,"Yijing Hexagram Symbols":i=>i>=19904&&i<=19967,"CJK Unified Ideographs":i=>i>=19968&&i<=40959,"Yi Syllables":i=>i>=40960&&i<=42127,"Yi Radicals":i=>i>=42128&&i<=42191,"Hangul Jamo Extended-A":i=>i>=43360&&i<=43391,"Hangul Syllables":i=>i>=44032&&i<=55215,"Hangul Jamo Extended-B":i=>i>=55216&&i<=55295,"Private Use Area":i=>i>=57344&&i<=63743,"CJK Compatibility Ideographs":i=>i>=63744&&i<=64255,"Arabic Presentation Forms-A":i=>i>=64336&&i<=65023,"Vertical Forms":i=>i>=65040&&i<=65055,"CJK Compatibility Forms":i=>i>=65072&&i<=65103,"Small Form Variants":i=>i>=65104&&i<=65135,"Arabic Presentation Forms-B":i=>i>=65136&&i<=65279,"Halfwidth and Fullwidth Forms":i=>i>=65280&&i<=65519};function Os(i){for(const e of i)if(Us(e.charCodeAt(0)))return!0;return!1}function Va(i){for(const e of i)if(!Qo(e.charCodeAt(0)))return!1;return!0}function Qo(i){return!(Ae.Arabic(i)||Ae["Arabic Supplement"](i)||Ae["Arabic Extended-A"](i)||Ae["Arabic Presentation Forms-A"](i)||Ae["Arabic Presentation Forms-B"](i))}function Us(i){return!(i!==746&&i!==747&&(i<4352||!(Ae["Bopomofo Extended"](i)||Ae.Bopomofo(i)||Ae["CJK Compatibility Forms"](i)&&!(i>=65097&&i<=65103)||Ae["CJK Compatibility Ideographs"](i)||Ae["CJK Compatibility"](i)||Ae["CJK Radicals Supplement"](i)||Ae["CJK Strokes"](i)||!(!Ae["CJK Symbols and Punctuation"](i)||i>=12296&&i<=12305||i>=12308&&i<=12319||i===12336)||Ae["CJK Unified Ideographs Extension A"](i)||Ae["CJK Unified Ideographs"](i)||Ae["Enclosed CJK Letters and Months"](i)||Ae["Hangul Compatibility Jamo"](i)||Ae["Hangul Jamo Extended-A"](i)||Ae["Hangul Jamo Extended-B"](i)||Ae["Hangul Jamo"](i)||Ae["Hangul Syllables"](i)||Ae.Hiragana(i)||Ae["Ideographic Description Characters"](i)||Ae.Kanbun(i)||Ae["Kangxi Radicals"](i)||Ae["Katakana Phonetic Extensions"](i)||Ae.Katakana(i)&&i!==12540||!(!Ae["Halfwidth and Fullwidth Forms"](i)||i===65288||i===65289||i===65293||i>=65306&&i<=65310||i===65339||i===65341||i===65343||i>=65371&&i<=65503||i===65507||i>=65512&&i<=65519)||!(!Ae["Small Form Variants"](i)||i>=65112&&i<=65118||i>=65123&&i<=65126)||Ae["Unified Canadian Aboriginal Syllabics"](i)||Ae["Unified Canadian Aboriginal Syllabics Extended"](i)||Ae["Vertical Forms"](i)||Ae["Yijing Hexagram Symbols"](i)||Ae["Yi Syllables"](i)||Ae["Yi Radicals"](i))))}function el(i){return!(Us(i)||function(e){return!!(Ae["Latin-1 Supplement"](e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||Ae["General Punctuation"](e)&&(e===8214||e===8224||e===8225||e===8240||e===8241||e===8251||e===8252||e===8258||e===8263||e===8264||e===8265||e===8273)||Ae["Letterlike Symbols"](e)||Ae["Number Forms"](e)||Ae["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||e===9003||e>=9085&&e<=9114||e>=9150&&e<=9165||e===9167||e>=9169&&e<=9179||e>=9186&&e<=9215)||Ae["Control Pictures"](e)&&e!==9251||Ae["Optical Character Recognition"](e)||Ae["Enclosed Alphanumerics"](e)||Ae["Geometric Shapes"](e)||Ae["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Ae["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Ae["CJK Symbols and Punctuation"](e)||Ae.Katakana(e)||Ae["Private Use Area"](e)||Ae["CJK Compatibility Forms"](e)||Ae["Small Form Variants"](e)||Ae["Halfwidth and Fullwidth Forms"](e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(i))}function Vs(i){return i>=1424&&i<=2303||Ae["Arabic Presentation Forms-A"](i)||Ae["Arabic Presentation Forms-B"](i)}function Ns(i,e){return!(!e&&Vs(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||Ae.Khmer(i))}function tl(i){for(const e of i)if(Vs(e.charCodeAt(0)))return!0;return!1}const Na="deferred",$s="loading",$a="loaded";let ss=null,Mi="unavailable",jr=null;const il=function(i){i&&typeof i=="string"&&i.indexOf("NetworkError")>-1&&(Mi="error"),ss&&ss(i)};function qa(){qs.fire(new wr("pluginStateChange",{pluginStatus:Mi,pluginURL:jr}))}const qs=new xn,ja=function(){return Mi},rl=function(){if(Mi!==Na||!jr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Mi=$s,qa(),jr&&yn({url:jr},i=>{i?il(i):(Mi=$a,qa())})},Ji={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Mi===$a||Ji.applyArabicShaping!=null,isLoading:()=>Mi===$s,setState(i){if(!Zi())throw new Error("Cannot set the state of the rtl-text-plugin when not in the web-worker context");Mi=i.pluginStatus,jr=i.pluginURL},isParsed(){if(!Zi())throw new Error("rtl-text-plugin is only parsed on the worker-threads");return Ji.applyArabicShaping!=null&&Ji.processBidirectionalText!=null&&Ji.processStyledBidirectionalText!=null},getPluginURL(){if(!Zi())throw new Error("rtl-text-plugin url can only be queried from the worker threads");return jr}};class kt{constructor(e,r){this.zoom=e,r?(this.now=r.now,this.fadeDuration=r.fadeDuration,this.zoomHistory=r.zoomHistory,this.transition=r.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Jo,this.transition={})}isSupportedScript(e){return function(r,s){for(const l of r)if(!Ns(l.charCodeAt(0),s))return!1;return!0}(e,Ji.isLoaded())}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const e=this.zoom,r=e-Math.floor(e),s=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:r+(1-r)*s}:{fromScale:.5,toScale:1,t:1-(1-s)*r}}}class js{constructor(e,r){this.property=e,this.value=r,this.expression=function(s,l){if(Ms(s))return new It(s,l);if(Cs(s)){const u=ks(s,l);if(u.result==="error")throw new Error(u.value.map(d=>`${d.key}: ${d.message}`).join(", "));return u.value}{let u=s;return l.type==="color"&&typeof s=="string"?u=je.parse(s):l.type!=="padding"||typeof s!="number"&&!Array.isArray(s)||(u=Li.parse(s)),{kind:"constant",evaluate:()=>u}}}(r===void 0?e.specification.default:r,e.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,r,s){return this.property.possiblyEvaluate(this,e,r,s)}}class Za{constructor(e){this.property=e,this.value=new js(e,void 0)}transitioned(e,r){return new as(this.property,this.value,r,pt({},e.transition,this.transition),e.now)}untransitioned(){return new as(this.property,this.value,null,{},0)}}class nl{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return Ct(this._values[e].value.value)}setValue(e,r){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new Za(this._values[e].property)),this._values[e].value=new js(this._values[e].property,r===null?void 0:Ct(r))}getTransition(e){return Ct(this._values[e].transition)}setTransition(e,r){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new Za(this._values[e].property)),this._values[e].transition=Ct(r)||void 0}serialize(){const e={};for(const r of Object.keys(this._values)){const s=this.getValue(r);s!==void 0&&(e[r]=s);const l=this.getTransition(r);l!==void 0&&(e[`${r}-transition`]=l)}return e}transitioned(e,r){const s=new sl(this._properties);for(const l of Object.keys(this._values))s._values[l]=this._values[l].transitioned(e,r._values[l]);return s}untransitioned(){const e=new sl(this._properties);for(const r of Object.keys(this._values))e._values[r]=this._values[r].untransitioned();return e}}class as{constructor(e,r,s,l,u){this.property=e,this.value=r,this.begin=u+l.delay||0,this.end=this.begin+l.duration||0,e.specification.transition&&(l.delay||l.duration)&&(this.prior=s)}possiblyEvaluate(e,r,s){const l=e.now||0,u=this.value.possiblyEvaluate(e,r,s),d=this.prior;if(d){if(l>this.end)return this.prior=null,u;if(this.value.isDataDriven())return this.prior=null,u;if(l>>16)*d&65535)<<16)&4294967295)<<15|g>>>17))*f+(((g>>>16)*f&65535)<<16)&4294967295)<<13|l>>>19))+((5*(l>>>16)&65535)<<16)&4294967295))+((58964+(u>>>16)&65535)<<16);switch(g=0,r){case 3:g^=(255&i.charCodeAt(v+2))<<16;case 2:g^=(255&i.charCodeAt(v+1))<<8;case 1:l^=g=(65535&(g=(g=(65535&(g^=255&i.charCodeAt(v)))*d+(((g>>>16)*d&65535)<<16)&4294967295)<<15|g>>>17))*f+(((g>>>16)*f&65535)<<16)&4294967295}return l^=i.length,l=2246822507*(65535&(l^=l>>>16))+((2246822507*(l>>>16)&65535)<<16)&4294967295,l=3266489909*(65535&(l^=l>>>13))+((3266489909*(l>>>16)&65535)<<16)&4294967295,(l^=l>>>16)>>>0};var dt=qt.exports,Je={exports:{}};Je.exports=function(i,e){for(var r,s=i.length,l=e^s,u=0;s>=4;)r=1540483477*(65535&(r=255&i.charCodeAt(u)|(255&i.charCodeAt(++u))<<8|(255&i.charCodeAt(++u))<<16|(255&i.charCodeAt(++u))<<24))+((1540483477*(r>>>16)&65535)<<16),l=1540483477*(65535&l)+((1540483477*(l>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),s-=4,++u;switch(s){case 3:l^=(255&i.charCodeAt(u+2))<<16;case 2:l^=(255&i.charCodeAt(u+1))<<8;case 1:l=1540483477*(65535&(l^=255&i.charCodeAt(u)))+((1540483477*(l>>>16)&65535)<<16)}return l=1540483477*(65535&(l^=l>>>13))+((1540483477*(l>>>16)&65535)<<16),(l^=l>>>15)>>>0};var Ot=dt,wi=Je.exports;ut.exports=Ot,ut.exports.murmur3=Ot,ut.exports.murmur2=wi;var jt=ue(ut.exports);class si{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,r,s,l){this.ids.push(Fi(e)),this.positions.push(r,s,l)}getPositions(e){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");const r=Fi(e);let s=0,l=this.ids.length-1;for(;s>1];let u=r-1,d=s+1;for(;;){do u++;while(i[u]80*r){s=u=i[0],l=d=i[1];for(var z=r;z= z; overscaledZ = ${e}; z = ${s}`);this.overscaledZ=e,this.wrap=r,this.canonical=new Bc(s,+l,+u),this.key=fo(r,e,s,l,u)}clone(){return new sr(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);const r=this.canonical.z-e;return e>this.canonical.z?new sr(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new sr(e,this.wrap,e,this.canonical.x>>r,this.canonical.y>>r)}calculateScaledKey(e,r){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);const s=this.canonical.z-e;return e>this.canonical.z?fo(this.wrap*+r,e,this.canonical.z,this.canonical.x,this.canonical.y):fo(this.wrap*+r,e,e,this.canonical.x>>s,this.canonical.y>>s)}isChildOf(e){if(e.wrap!==this.wrap)return!1;const r=this.canonical.z-e.canonical.z;return e.overscaledZ===0||e.overscaledZ1;let he,fe,pe;if(ee)he=Kr(M,G,this.clusterProps),fe=M[G],pe=M[G+1];else{const Le=this.points[M[G+bi]];he=Le.properties;const[Oe,Ze]=Le.geometry.coordinates;fe=Rr(Oe),pe=br(Ze)}const Ne={type:1,geometry:[[Math.round(this.options.extent*(fe*Z-L)),Math.round(this.options.extent*(pe*Z-q))]],tags:he};let Xe;Xe=ee||this.options.generateId?M[G+bi]:this.points[M[G+bi]].id,Xe!==void 0&&(Ne.id=Xe),J.features.push(Ne)}}_limitZoom(I){return Math.max(this.options.minZoom,Math.min(Math.floor(+I),this.options.maxZoom+1))}_cluster(I,M){const{radius:L,extent:q,reduce:Z,minPoints:J}=this.options,H=L/(q*Math.pow(2,M)),G=I.data,ee=[],he=this.stride;for(let fe=0;fe