searchsmartly-ui 1.0.27 → 1.0.28
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.
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -16,12 +16,12 @@ function Xt(e,t,i){const n=document.createElement(t);return e&&(n.className=e),i
|
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/function Tn(){if(un)return hn;un=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;return hn=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,r){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))t.call(o,c)&&(a[c]=o[c]);if(e){s=e(o);for(var h=0;h<s.length;h++)i.call(o,s[h])&&(a[s[h]]=o[s[h]])}}return a},hn}function En(){if(pn)return dn;pn=1;return dn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Sn(){return mn?fn:(mn=1,fn=Function.call.bind(Object.prototype.hasOwnProperty))}function In(){if(yn)return An;yn=1;var e=Cn(),t=Tn(),i=En(),n=Sn(),r=function(){if(_n)return gn;_n=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=En(),i={},n=Sn();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,o,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in r)if(n(r,c)){var h;try{if("function"!=typeof r[c]){var u=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}h=r[c](o,c,a,s,null,t)}catch(e){h=e}if(!h||h instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in i)){i[h.message]=!0;var d=l?l():"";e("Failed "+s+" type: "+h.message+(null!=d?d:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(i={})},gn=r}(),o=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),An=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var h="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(s),arrayOf:function(e){return f(function(t,n,r,o,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new p("Invalid "+o+" `"+s+"` of type `"+A(a)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,r,o,s+"["+l+"]",i);if(c instanceof Error)return c}return null})},element:f(function(e,t,i,n,r){var o=e[t];return a(o)?null:new p("Invalid "+n+" `"+r+"` of type `"+A(o)+"` supplied to `"+i+"`, expected a single ReactElement.")}),elementType:f(function(t,i,n,r,o){var s=t[i];return e.isValidElementType(s)?null:new p("Invalid "+r+" `"+o+"` of type `"+A(s)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return f(function(t,i,n,r,o){if(!(t[i]instanceof e)){var s=e.name||h;return new p("Invalid "+r+" `"+o+"` of type `"+(((a=t[i]).constructor&&a.constructor.name?a.constructor.name:h)+"` supplied to `")+n+"`, expected instance of `"+s+"`.")}var a;return null})},node:f(function(e,t,i,n,r){return _(e[t])?null:new p("Invalid "+n+" `"+r+"` supplied to `"+i+"`, expected a ReactNode.")}),objectOf:function(e){return f(function(t,r,o,s,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=t[r],c=A(l);if("object"!==c)return new p("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var h in l)if(n(l,h)){var u=e(l,h,o,s,a+"."+h,i);if(u instanceof Error)return u}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;return f(function(t,i,n,r,o){for(var s=t[i],a=0;a<e.length;a++)if(d(s,e[a]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===y(t)?String(t):t});return new p("Invalid "+r+" `"+o+"` of value `"+String(s)+"` supplied to `"+n+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(r)+" at index "+t+"."),s}return f(function(t,r,o,s,a){for(var l=[],c=0;c<e.length;c++){var h=(0,e[c])(t,r,o,s,a,i);if(null==h)return null;h.data&&n(h.data,"expectedType")&&l.push(h.data.expectedType)}return new p("Invalid "+s+" `"+a+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return f(function(t,n,r,o,s){var a=t[n],l=A(a);if("object"!==l)return new p("Invalid "+o+" `"+s+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var h=e[c];if("function"!=typeof h)return g(r,o,s,c,y(h));var u=h(a,c,r,o,s+"."+c,i);if(u)return u}return null})},exact:function(e){return f(function(r,o,s,a,l){var c=r[o],h=A(c);if("object"!==h)return new p("Invalid "+a+" `"+l+"` of type `"+h+"` supplied to `"+s+"`, expected `object`.");var u=t({},r[o],e);for(var d in u){var f=e[d];if(n(e,d)&&"function"!=typeof f)return g(s,a,l,d,y(f));if(!f)return new p("Invalid "+a+" `"+l+"` key `"+d+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(r[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,d,s,a,l+"."+d,i);if(m)return m}return null})}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function r(r,s,a,c,u,d,f){if(c=c||h,d=d||a,f!==i){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,n++)}}return null==s[a]?r?null===s[a]?new p("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,d)}var s=r.bind(null,!1);return s.isRequired=r.bind(null,!0),s}function m(e){return f(function(t,i,n,r,o,s){var a=t[i];return A(a)!==e?new p("Invalid "+r+" `"+o+"` of type `"+y(a)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null})}function g(e,t,i,n,r){return new p((e||"React class")+": "+t+" type `"+i+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function _(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(_);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var i,n=t.call(e);if(t!==e.entries){for(;!(i=n.next()).done;)if(!_(i.value))return!1}else for(;!(i=n.next()).done;){var r=i.value;if(r&&!_(r[1]))return!1}return!0;default:return!1}}function A(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=A(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=r,u.resetWarningCache=r.resetWarningCache,u.PropTypes=u,u},An}var Mn=tn(function(){if(bn)return on.exports;if(bn=1,"production"!==process.env.NODE_ENV){var e=Cn();on.exports=In()(e.isElement,!0)}else on.exports=function(){if(xn)return vn;xn=1;var e=En();function t(){}function i(){}return i.resetWarningCache=t,vn=function(){function n(t,i,n,r,o,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function r(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:t};return o.PropTypes=o,o}}()();return on.exports}());function Pn(e){return Object.entries(e).map(([e,t])=>t?`${e}=${t}`:e).join("&")}function Dn(e){return e.split("&").reduce((e,t)=>{const[i,n]=t.split("=");return i&&(e[i]=n),e},{})}function Ln(e){const t=Dn(e);return delete t.gid,delete t.pid,Pn(t)}function zn(){return window.location.hash.substring(1)}function On(){return`${window.location.pathname}${window.location.search}`}const Rn=e=>{const t=Dn(e);return Boolean(t.gid)&&Boolean(t.pid)};function kn(e,t){return null!==e?e:t?parseInt(t,10)-1:0}const Bn=Ae({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{},close:()=>{},isRefRegistered:()=>!1});class Fn{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var Nn=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};const Vn=(e,t)=>{var i;const{width:n,height:r,original:o,originalSrcset:s,thumbnail:a,cropped:l,content:c,id:h}=e,u=Nn(e,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);return Object.assign(Object.assign(Object.assign({w:n?Number(n):void 0,h:r?Number(r):void 0,src:o,srcset:s,msrc:a,element:null!==(i=null==t?void 0:t.current)&&void 0!==i?i:void 0,thumbCropped:l,content:c},void 0!==c?{type:"html"}:{}),void 0!==h?{pid:h}:{}),u)};class jn extends Error{constructor(e=""){super(),this.message=`\n ${e}\n\n No \`sourceId\` provided.\n You should add \`sourceId\` prop to Item component during using \`dataSource\` prop at Gallery component.\n Also you should add \`sourceId\` property to each item of \`dataSource\` array at Gallery component.\n Example:\n <Gallery dataSource={[{sourceId: 1, src: 'a.jpg'}]}>\n <Item sourceId={1}>{({ ref }) => <div ref={ref}></div>}</Item>\n </Gallery>\n`}}var Un=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};class Hn extends Error{constructor(e=""){super(),this.message=`\n ${e}\n No valid \`ref\` provided.\n You should use \`ref\` from render prop of Item component.\n Example:\n <Item>{({ ref }) => <div ref={ref}></div>}</Item>\n`}}const Gn=e=>e[0].current instanceof Element,Zn=e=>{if(Gn(e))return e;throw new Hn};let Wn=null;const qn=({children:e,dataSource:t,options:i,plugins:n,uiElements:r,id:o,onBeforeOpen:s,onOpen:a,withCaption:l,withDownloadButton:c})=>{const[h,u]=pe(null),d=ge(new Map),p=ge(null),f=ye((e,h,p,f)=>{if(Wn)return;const{slides:m,index:g}=t?((e,t,i,n,r)=>{const o=Array.from(t.current).reduce((e,[t,{sourceId:i}])=>{if(void 0===i)throw new jn("sourceId is missed on Item component");return e.set(i,t),e},new Map),{slides:s,index:a}=e.reduce((e,t,r)=>{const{sourceId:s}=t,a=Un(t,["sourceId"]);if(void 0===s)throw new jn("sourceId is missed in dataSource item");const l=o.has(s)?o.get(s):void 0;return(i===l||void 0!==a.id&&String(a.id)===n)&&(e.index=r),e.slides.push(Vn(a,l)),e},{slides:[],index:r||null});return{slides:s,index:a}})(t,d,e,h,p):((e,t,i,n)=>{const r=Array.from(e.current);if("number"==typeof n&&(void 0===r[n]||!Gn(r[n])))throw new Hn(`Failed to open at index ${n}`);const{slides:o,index:s}=r.map(Zn).sort(([{current:e}],[{current:t}])=>function(e,t){return e===t?0:2&e.compareDocumentPosition(t)?1:-1}(e,t)).reduce((e,n,r)=>{const[o,s]=n;return(t===o||void 0!==s.id&&String(s.id)===i)&&(e.index=r),e.slides.push(Vn(s,o)),e},{slides:[],index:n||null});return{slides:o,index:s}})(d,e,h,p),_=f&&void 0!==f.clientX&&void 0!==f.clientY?{x:f.clientX,y:f.clientY}:null,A=new Ji(Object.assign({dataSource:m,index:kn(g,h),initialPointerPos:_},i||{}));Wn=A,A.on("contentActivate",({content:e})=>{e.data.content?u(Ne(e.data.content,e.element)):u(null)}),A.on("close",()=>{u(null)}),c&&A.on("uiRegister",()=>{var e;null===(e=A.ui)||void 0===e||e.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'<path d="M20.5 14.3 17.1 18V10h-2.2v7.9l-3.4-3.6L10 16l6 6.1 6-6.1ZM23 23H9v2h14Z" id="pswp__icn-download"/>',outlineID:"pswp__icn-download"},onInit:(e,t)=>{e.setAttribute("download",""),e.setAttribute("target","_blank"),e.setAttribute("rel","noopener"),A.on("change",()=>{var i;if(!(null===(i=t.currSlide)||void 0===i?void 0:i.data.src))return;e.href=t.currSlide.data.src})}})}),l&&A.on("uiRegister",()=>{var e;null===(e=A.ui)||void 0===e||e.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(e,t)=>{e.style.position="absolute",e.style.bottom="15px",e.style.left="0",e.style.right="0",e.style.padding="0 20px",e.style.color="var(--pswp-icon-color)",e.style.textAlign="center",e.style.fontSize="14px",e.style.lineHeight="1.5",e.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",A.on("change",()=>{if(!t.currSlide)return;const{caption:i,alt:n}=t.currSlide.data;e.innerHTML=i||n||""})}})}),Array.isArray(r)&&r.forEach(e=>{A.on("uiRegister",()=>{var t;null===(t=A.ui)||void 0===t||t.registerElement(e)})}),"function"==typeof n&&n(new Fn(A)),"function"==typeof s&&s(A);const y=()=>({gallery:{galleryUID:o}});A.on("beforeOpen",()=>{var e;if(void 0===o)return;if(!Rn(zn()))return void window.history.pushState(y(),document.title);if(Boolean(null===(e=window.history.state)||void 0===e?void 0:e.gallery))return;const t=On(),i=zn(),n=Ln(i),r=`${t}${n?`#${n}`:""}`,s=`${t}#${i}`;window.history.replaceState(window.history.state,document.title,r),window.history.pushState(y(),document.title,s)}),A.on("change",()=>{var e;if(void 0===o)return;const t=(null===(e=A.currSlide)||void 0===e?void 0:e.data.pid)||A.currIndex+1,i=`${On()}#${Ln(zn())}&${Pn({gid:o,pid:t})}`;window.history.replaceState(y(),document.title,i)});const v=()=>{void 0!==o&&null!==Wn&&Wn.close()};window.addEventListener("popstate",v),A.on("destroy",()=>{void 0!==o&&(window.removeEventListener("popstate",v),Rn(zn())&&window.history.back()),Wn=null}),A.init(),"function"==typeof a&&a(A)},[i,n,r,o,s,a,l,c]);fe(()=>()=>{Wn&&Wn.close()},[]);const m=ye(()=>{if(void 0===o)return;if(null!==Wn)return;const e=zn();if(e.length<5)return;const t=Dn(e),{pid:i,gid:n}=t;i&&n&&(0!==d.current.size?i&&n===String(o)&&f(null,i):p.current=i)},[f,o]);fe(()=>(m(),window.addEventListener("popstate",m),()=>{window.removeEventListener("popstate",m)}),[m]);const g=ye(e=>{d.current.delete(e)},[]),_=ye((e,t)=>{if(d.current.set(e,t),null===p.current)return;const{id:i}=t;if(i===p.current)return f(e),void(p.current=null);if(!i){const e=parseInt(p.current,10)-1,t=Array.from(d.current.keys())[e];t&&(f(t),p.current=null)}},[f]),A=ye(e=>d.current.has(e),[]),y=ye(e=>{f(null,null,e)},[f]),v=ye(()=>{Wn&&Wn.close()},[]),x=ve(()=>({remove:g,set:_,handleClick:f,open:y,close:v,isRefRegistered:A}),[g,_,f,y,v,A]);return ue.createElement(Bn.Provider,{value:x},e,h)};qn.propTypes={children:Mn.any,options:Mn.object,plugins:Mn.func,uiElements:Mn.array,id:Mn.oneOfType([Mn.string,Mn.number]),onBeforeOpen:Mn.func,onOpen:Mn.func,withCaption:Mn.bool,withDownloadButton:Mn.bool,dataSource:Mn.array};var Xn=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};const $n=e=>{var{children:t}=e,i=Xn(e,["children"]);const n=ge(null),{remove:r,set:o,handleClick:s,close:a,isRefRegistered:l}=de(Bn),c=ye(e=>{n.current=e,o(n,i)},[o,...Object.values(i)]),h=ye(e=>{if(!l(n))throw new Hn;s(n,null,null,e)},[s,l]),u=ve(()=>({ref:c,open:h,close:a}),[c,h,a]);return fe(()=>()=>{null===n.current&&r(n)},[r]),t(u)};$n.propTypes={children:Mn.func.isRequired,original:Mn.string,originalSrcset:Mn.string,thumbnail:Mn.string,width:Mn.oneOfType([Mn.number,Mn.string]),height:Mn.oneOfType([Mn.number,Mn.string]),alt:Mn.string,caption:Mn.string,content:Mn.element,html:Mn.string,id:Mn.oneOfType([Mn.number,Mn.string]),cropped:Mn.bool,sourceId:Mn.oneOfType([Mn.number,Mn.string])};const Yn=e=>{let{disableThumbnail:t=!1,index:i,height:n="100%",image:r,originalImage:o,showCount:l}=e;const c=ve(()=>{const e=o||r;return t?`${e} 1600w, ${r} 800w, ${r} 400w`:e},[r,o]);return s($n,{id:`${i}-pic`,original:o||r,thumbnail:t?void 0:r,originalSrcset:c,width:"1600",height:"1066",children:e=>{let{ref:t,open:i}=e;return a(M,{ref:t,component:u,sx:e=>({p:0,height:"100%",width:"100%",backgroundColor:"rgba(51, 51, 51, 0.1)",[e.breakpoints.down("md")]:{borderRadius:0}}),elevation:0,onClick:i,children:[s(P,{component:"img",height:n,width:"100%",image:r,alt:""}),!!l&&s(g,{m:"auto",width:"100%",height:"100%",position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",onClick:i,sx:{left:0,right:0,top:0,textAlign:"center",backgroundColor:"rgba(51, 51, 51, 0.8)",color:"white"},children:a(v,{variant:"h2",children:["+",l]})})]})}})};var Qn,Kn={exports:{}};var Jn=(Qn||(Qn=1,(()=>{var e={296:(e,t,i)=>{var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,c="object"==typeof self&&self&&self.Object===Object&&self,h=l||c||Function("return this")(),u=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return h.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var i=o.test(e);return i||s.test(e)?a(e.slice(2),i?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,i){var n,r,o,s,a,l,c=0,h=!1,u=!1,_=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function A(t){var i=n,o=r;return n=r=void 0,c=t,s=e.apply(o,i)}function y(e){var i=e-l;return void 0===l||i>=t||i<0||u&&e-c>=o}function v(){var e=f();if(y(e))return x(e);a=setTimeout(v,function(e){var i=t-(e-l);return u?p(i,o-(e-c)):i}(e))}function x(e){return a=void 0,_&&n?A(e):(n=r=void 0,s)}function b(){var e=f(),i=y(e);if(n=arguments,r=this,l=e,i){if(void 0===a)return function(e){return c=e,a=setTimeout(v,t),h?A(e):s}(l);if(u)return a=setTimeout(v,t),A(l)}return void 0===a&&(a=setTimeout(v,t)),s}return t=g(t)||0,m(i)&&(h=!!i.leading,o=(u="maxWait"in i)?d(g(i.maxWait)||0,t):o,_="trailing"in i?!!i.trailing:_),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=r=a=void 0},b.flush=function(){return void 0===a?s:x(f())},b}},96:(e,t,i)=>{var n="Expected a function",r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,h="object"==typeof self&&self&&self.Object===Object&&self,u=c||h||Function("return this")(),d=Object.prototype.toString,p=Math.max,f=Math.min,m=function(){return u.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var i=s.test(e);return i||a.test(e)?l(e.slice(2),i?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,i){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return g(i)&&(r="leading"in i?!!i.leading:r,o="trailing"in i?!!i.trailing:o),function(e,t,i){var r,o,s,a,l,c,h=0,u=!1,d=!1,A=!0;if("function"!=typeof e)throw new TypeError(n);function y(t){var i=r,n=o;return r=o=void 0,h=t,a=e.apply(n,i)}function v(e){var i=e-c;return void 0===c||i>=t||i<0||d&&e-h>=s}function x(){var e=m();if(v(e))return b(e);l=setTimeout(x,function(e){var i=t-(e-c);return d?f(i,s-(e-h)):i}(e))}function b(e){return l=void 0,A&&r?y(e):(r=o=void 0,a)}function w(){var e=m(),i=v(e);if(r=arguments,o=this,c=e,i){if(void 0===l)return function(e){return h=e,l=setTimeout(x,t),u?y(e):a}(c);if(d)return l=setTimeout(x,t),y(c)}return void 0===l&&(l=setTimeout(x,t)),a}return t=_(t)||0,g(i)&&(u=!!i.leading,s=(d="maxWait"in i)?p(_(i.maxWait)||0,t):s,A="trailing"in i?!!i.trailing:A),w.cancel=function(){void 0!==l&&clearTimeout(l),h=0,r=c=o=l=void 0},w.flush=function(){return void 0===l?a:b(m())},w}(e,t,{leading:r,maxWait:t,trailing:o})}},703:(e,t,i)=>{var n=i(414);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,i,r,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return i.PropTypes=i,i}},697:(e,t,i)=>{e.exports=i(703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{i.r(n),i.d(n,{LazyLoadComponent:()=>H,LazyLoadImage:()=>ee,trackWindowScroll:()=>L});const e=ue;var t=i.n(e),r=i(697);function o(){return"undefined"!=typeof window&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function l(e,t,i){return(t=h(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){e.forEach(function(e){e.isIntersecting&&e.target.onVisible()})},f={},m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(g,e);var i,n,r,h,m=(r=g,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=d(r);if(h){var i=d(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function g(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),(t=m.call(this,e)).supportsObserver=!e.scrollPosition&&e.useIntersectionObserver&&o(),t.supportsObserver){var i=e.threshold;t.observer=function(e){return f[e]=f[e]||new IntersectionObserver(p,{rootMargin:e+"px"}),f[e]}(i)}return t}return i=g,n=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollPosition,t=this.placeholder.getBoundingClientRect(),i=this.placeholder.style,n=parseInt(i.getPropertyValue("margin-left"),10)||0,r=parseInt(i.getPropertyValue("margin-top"),10)||0;return{bottom:e.y+t.bottom+r,left:e.x+t.left+n,right:e.x+t.right+n,top:e.y+t.top+r}}},{key:"isPlaceholderInViewport",value:function(){if("undefined"==typeof window||!this.placeholder)return!1;var e=this.props,t=e.scrollPosition,i=e.threshold,n=this.getPlaceholderBoundingBox(t),r=t.y+window.innerHeight,o=t.x,s=t.x+window.innerWidth,a=t.y;return Boolean(a-i<=n.bottom&&r+i>=n.top&&o-i<=n.right&&s+i>=n.left)}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var e=this,i=this.props,n=i.className,r=i.height,o=i.placeholder,s=i.style,c=i.width;if(o&&"function"!=typeof o.type)return t().cloneElement(o,{ref:function(t){return e.placeholder=t}});var h=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach(function(t){l(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({display:"inline-block"},s);return void 0!==c&&(h.width=c),void 0!==r&&(h.height=r),t().createElement("span",{className:n,ref:function(t){return e.placeholder=t},style:h},o)}}],n&&c(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),g}(t().Component);m.propTypes={onVisible:r.PropTypes.func.isRequired,className:r.PropTypes.string,height:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),placeholder:r.PropTypes.element,threshold:r.PropTypes.number,useIntersectionObserver:r.PropTypes.bool,scrollPosition:r.PropTypes.shape({x:r.PropTypes.number.isRequired,y:r.PropTypes.number.isRequired}),width:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string])},m.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const g=m;var _=i(296),A=i.n(_),y=i(96),v=i.n(y),x=function(e){var t=getComputedStyle(e,null);return t.getPropertyValue("overflow")+t.getPropertyValue("overflow-y")+t.getPropertyValue("overflow-x")};const b=function(e){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t instanceof HTMLElement;){if(/(scroll|auto)/.test(x(t)))return t;t=t.parentNode}return window};function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var C=["delayMethod","delayTime"];function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},T.apply(this,arguments)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function S(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var P=function(){return"undefined"==typeof window?0:window.scrollX||window.pageXOffset},D=function(){return"undefined"==typeof window?0:window.scrollY||window.pageYOffset};const L=function(e){var i=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(c,i);var n,r,s,a,l=(s=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=M(s);if(a){var i=M(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return S(this,e)});function c(e){var i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(i=l.call(this,e)).useIntersectionObserver=e.useIntersectionObserver&&o(),i.useIntersectionObserver)return S(i);var n=i.onChangeScroll.bind(I(i));return"debounce"===e.delayMethod?i.delayedScroll=A()(n,e.delayTime):"throttle"===e.delayMethod&&(i.delayedScroll=v()(n,e.delayTime)),i.state={scrollPosition:{x:P(),y:D()}},i.baseComponentRef=t().createRef(),i}return n=c,(r=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){"undefined"==typeof window||this.useIntersectionObserver||b(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement=b(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:P(),y:D()}})}},{key:"render",value:function(){var i=this.props,n=(i.delayMethod,i.delayTime,function(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(i,C)),r=this.useIntersectionObserver?null:this.state.scrollPosition;return t().createElement(e,T({forwardRef:this.baseComponentRef,scrollPosition:r},n))}}])&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=function(e){if("object"!==w(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==w(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===w(r)?r:String(r)),n)}var r}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),c}(t().Component);return i.propTypes={delayMethod:r.PropTypes.oneOf(["debounce","throttle"]),delayTime:r.PropTypes.number,useIntersectionObserver:r.PropTypes.bool},i.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},i};function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(a,e);var i,n,r,o,s=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=R(r);if(o){var i=R(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),s.call(this,e)}return i=a,(n=[{key:"render",value:function(){return t().createElement(g,this.props)}}])&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=function(e){if("object"!==z(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==z(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===z(r)?r:String(r)),n)}var r}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),a}(t().Component);const B=L(k);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(l,e);var i,n,r,s,a=(r=l,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=j(r);if(s){var i=j(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}(this,e)});function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=a.call(this,e);var i=e.afterLoad,n=e.beforeLoad,r=e.scrollPosition,o=e.visibleByDefault;return t.state={visible:o},o&&(n(),i()),t.onVisible=t.onVisible.bind(V(t)),t.isScrollTracked=Boolean(r&&Number.isFinite(r.x)&&r.x>=0&&Number.isFinite(r.y)&&r.y>=0),t}return i=l,(n=[{key:"componentDidUpdate",value:function(e,t){t.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var e=this.props,i=e.className,n=e.delayMethod,r=e.delayTime,s=e.height,a=e.placeholder,l=e.scrollPosition,c=e.style,h=e.threshold,u=e.useIntersectionObserver,d=e.width;return this.isScrollTracked||u&&o()?t().createElement(g,{className:i,height:s,onVisible:this.onVisible,placeholder:a,scrollPosition:l,style:c,threshold:h,useIntersectionObserver:u,width:d}):t().createElement(B,{className:i,delayMethod:n,delayTime:r,height:s,onVisible:this.onVisible,placeholder:a,style:c,threshold:h,width:d})}}])&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=function(e){if("object"!==F(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==F(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===F(r)?r:String(r)),n)}var r}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),l}(t().Component);U.propTypes={afterLoad:r.PropTypes.func,beforeLoad:r.PropTypes.func,useIntersectionObserver:r.PropTypes.bool,visibleByDefault:r.PropTypes.bool},U.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const H=U;function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}var Z=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function W(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function q(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?W(Object(i),!0).forEach(function(t){X(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):W(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function X(e,t,i){return(t=Y(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},$.apply(this,arguments)}function Y(e){var t=function(e){if("object"!==G(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==G(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===G(t)?t:String(t)}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}var J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(a,e);var i,n,r,o,s=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=K(r);if(o){var i=K(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=s.call(this,e)).state={loaded:!1},t}return i=a,(n=[{key:"onImageLoad",value:function(){var e=this;return this.state.loaded?null:function(t){e.props.onLoad(t),e.props.afterLoad(),e.setState({loaded:!0})}}},{key:"getImg",value:function(){var e=this.props,i=(e.afterLoad,e.beforeLoad,e.delayMethod,e.delayTime,e.effect,e.placeholder,e.placeholderSrc,e.scrollPosition,e.threshold,e.useIntersectionObserver,e.visibleByDefault,e.wrapperClassName,e.wrapperProps,function(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(e,Z));return t().createElement("img",$({},i,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var e=this.props,i=e.beforeLoad,n=e.className,r=e.delayMethod,o=e.delayTime,s=e.height,a=e.placeholder,l=e.scrollPosition,c=e.style,h=e.threshold,u=e.useIntersectionObserver,d=e.visibleByDefault,p=e.width;return t().createElement(H,{beforeLoad:i,className:n,delayMethod:r,delayTime:o,height:s,placeholder:a,scrollPosition:l,style:c,threshold:h,useIntersectionObserver:u,visibleByDefault:d,width:p},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(e){var i=this.props,n=i.effect,r=i.height,o=i.placeholderSrc,s=i.width,a=i.wrapperClassName,l=i.wrapperProps,c=this.state.loaded,h=c?" lazy-load-image-loaded":"",u=c||!o?{}:{backgroundImage:"url(".concat(o,")"),backgroundSize:"100% 100%"};return t().createElement("span",$({className:a+" lazy-load-image-background "+n+h,style:q(q({},u),{},{color:"transparent",display:"inline-block",height:r,width:s})},l),e)}},{key:"render",value:function(){var e=this.props,t=e.effect,i=e.placeholderSrc,n=e.visibleByDefault,r=e.wrapperClassName,o=e.wrapperProps,s=this.getLazyLoadImage();return(t||i)&&!n||r||o?this.getWrappedLazyLoadImage(s):s}}])&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y(n.key),n)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),a}(t().Component);J.propTypes={onLoad:r.PropTypes.func,afterLoad:r.PropTypes.func,beforeLoad:r.PropTypes.func,delayMethod:r.PropTypes.string,delayTime:r.PropTypes.number,effect:r.PropTypes.string,placeholderSrc:r.PropTypes.string,threshold:r.PropTypes.number,useIntersectionObserver:r.PropTypes.bool,visibleByDefault:r.PropTypes.bool,wrapperClassName:r.PropTypes.string,wrapperProps:r.PropTypes.object},J.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const ee=J})(),Kn.exports=n})()),Kn.exports);function er(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}er(".lazy-load-image-background.blur {\n filter: blur(15px);\n}\n\n.lazy-load-image-background.blur.lazy-load-image-loaded {\n filter: blur(0);\n transition: filter .3s;\n}\n\n.lazy-load-image-background.blur > img {\n opacity: 0;\n}\n\n.lazy-load-image-background.blur.lazy-load-image-loaded > img {\n opacity: 1;\n transition: opacity .3s;\n}\n");er(".lazy-load-image-background.opacity {\n opacity: 0;\n}\n\n.lazy-load-image-background.opacity.lazy-load-image-loaded {\n opacity: 1;\n transition: opacity .3s;\n}\n");const tr=e=>{let{src:t,height:i,placeholderSrc:n,visibleByDefault:r=!1,sx:o={},imageSX:a={},onLoad:l=()=>{},...c}=e;const[h,u]=pe(r);return t?s(g,{sx:{width:"100%",height:"100%","& img":{objectFit:"cover",objectPosition:"center",width:"100%",height:"100%",minHeight:"100%",...a},...o},children:s(Jn.LazyLoadImage,{visibleByDefault:h,src:h?t:n||t,height:i||"100%",width:"100%",effect:"opacity",placeholderSrc:n||t,onLoad:()=>{u(!0),l?.()},...c})}):null};er("/* Slider */\n.slick-slider\n{\n position: relative;\n\n display: block;\n box-sizing: border-box;\n\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n\n -webkit-touch-callout: none;\n -khtml-user-select: none;\n -ms-touch-action: pan-y;\n touch-action: pan-y;\n -webkit-tap-highlight-color: transparent;\n}\n\n.slick-list\n{\n position: relative;\n\n display: block;\n overflow: hidden;\n\n margin: 0;\n padding: 0;\n}\n.slick-list:focus\n{\n outline: none;\n}\n.slick-list.dragging\n{\n cursor: pointer;\n cursor: hand;\n}\n\n.slick-slider .slick-track,\n.slick-slider .slick-list\n{\n -webkit-transform: translate3d(0, 0, 0);\n -moz-transform: translate3d(0, 0, 0);\n -ms-transform: translate3d(0, 0, 0);\n -o-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n\n.slick-track\n{\n position: relative;\n top: 0;\n left: 0;\n\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.slick-track:before,\n.slick-track:after\n{\n display: table;\n\n content: '';\n}\n.slick-track:after\n{\n clear: both;\n}\n.slick-loading .slick-track\n{\n visibility: hidden;\n}\n\n.slick-slide\n{\n display: none;\n float: left;\n\n height: 100%;\n min-height: 1px;\n}\n[dir='rtl'] .slick-slide\n{\n float: right;\n}\n.slick-slide img\n{\n display: block;\n}\n.slick-slide.slick-loading img\n{\n display: none;\n}\n.slick-slide.dragging img\n{\n pointer-events: none;\n}\n.slick-initialized .slick-slide\n{\n display: block;\n}\n.slick-loading .slick-slide\n{\n visibility: hidden;\n}\n.slick-vertical .slick-slide\n{\n display: block;\n\n height: auto;\n\n border: 1px solid transparent;\n}\n.slick-arrow.slick-hidden {\n display: none;\n}\n");er("@charset 'UTF-8';\n/* Slider */\n.slick-loading .slick-list\n{\n background: #fff url('./ajax-loader.gif') center center no-repeat;\n}\n\n/* Icons */\n@font-face\n{\n font-family: 'slick';\n font-weight: normal;\n font-style: normal;\n\n src: url('./fonts/slick.eot');\n src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');\n}\n/* Arrows */\n.slick-prev,\n.slick-next\n{\n font-size: 0;\n line-height: 0;\n\n position: absolute;\n top: 50%;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 0;\n -webkit-transform: translate(0, -50%);\n -ms-transform: translate(0, -50%);\n transform: translate(0, -50%);\n\n cursor: pointer;\n\n color: transparent;\n border: none;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover,\n.slick-prev:focus,\n.slick-next:hover,\n.slick-next:focus\n{\n color: transparent;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover:before,\n.slick-prev:focus:before,\n.slick-next:hover:before,\n.slick-next:focus:before\n{\n opacity: 1;\n}\n.slick-prev.slick-disabled:before,\n.slick-next.slick-disabled:before\n{\n opacity: .25;\n}\n\n.slick-prev:before,\n.slick-next:before\n{\n font-family: 'slick';\n font-size: 20px;\n line-height: 1;\n\n opacity: .75;\n color: white;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.slick-prev\n{\n left: -25px;\n}\n[dir='rtl'] .slick-prev\n{\n right: -25px;\n left: auto;\n}\n.slick-prev:before\n{\n content: '←';\n}\n[dir='rtl'] .slick-prev:before\n{\n content: '→';\n}\n\n.slick-next\n{\n right: -25px;\n}\n[dir='rtl'] .slick-next\n{\n right: auto;\n left: -25px;\n}\n.slick-next:before\n{\n content: '→';\n}\n[dir='rtl'] .slick-next:before\n{\n content: '←';\n}\n\n/* Dots */\n.slick-dotted.slick-slider\n{\n margin-bottom: 30px;\n}\n\n.slick-dots\n{\n position: absolute;\n bottom: -25px;\n\n display: block;\n\n width: 100%;\n padding: 0;\n margin: 0;\n\n list-style: none;\n\n text-align: center;\n}\n.slick-dots li\n{\n position: relative;\n\n display: inline-block;\n\n width: 20px;\n height: 20px;\n margin: 0 5px;\n padding: 0;\n\n cursor: pointer;\n}\n.slick-dots li button\n{\n font-size: 0;\n line-height: 0;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 5px;\n\n cursor: pointer;\n\n color: transparent;\n border: 0;\n outline: none;\n background: transparent;\n}\n.slick-dots li button:hover,\n.slick-dots li button:focus\n{\n outline: none;\n}\n.slick-dots li button:hover:before,\n.slick-dots li button:focus:before\n{\n opacity: 1;\n}\n.slick-dots li button:before\n{\n font-family: 'slick';\n font-size: 6px;\n line-height: 20px;\n\n position: absolute;\n top: 0;\n left: 0;\n\n width: 20px;\n height: 20px;\n\n content: '•';\n text-align: center;\n\n opacity: .25;\n color: black;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.slick-dots li.slick-active button:before\n{\n opacity: .75;\n color: black;\n}\n");const ir=e=>{let{isNext:t,children:i,onClick:n}=e;return s(g,{className:"slick-arrow "+(t?"slick-next":"slick-prev"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n?.()},children:i})},nr=e=>{let{image:t,index:i,imageSX:n}=e;const{open:r}=(()=>{const{open:e,close:t}=de(Bn);return{open:e,close:t}})();return s(g,{component:"img",alt:`Image ${i}`,src:t,onClick:()=>r(i),sx:{objectFit:"cover",objectPosition:"center",width:"100%",height:"100%",minHeight:"100%",cursor:"pointer",...n}})};const rr=e=>{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IMADAAAAAAAAQIAADwAAAAAAAAABAjwAAAAAAAAABAjwAAAAAAAAABAgwAMAAAAAAABAgAAPAAAAAAAAAAECPP9pz44FAAAAAAb5W09iZ2kEAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMAgscPFnOeLKwIAAAAASUVORK5CYII=",sx:{height:"100%",width:"100%",...t}})};var or,sr,ar,lr={},cr={},hr={},ur={};function dr(){if(ar)return sr;ar=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,n=/^0o[0-7]+$/i,r=parseInt,o="object"==typeof en&&en&&en.Object===Object&&en,s="object"==typeof self&&self&&self.Object===Object&&self,a=o||s||Function("return this")(),l=Object.prototype.toString,c=Math.max,h=Math.min,u=function(){return a.Date.now()};function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(o){if("number"==typeof o)return o;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(o))return NaN;if(d(o)){var s="function"==typeof o.valueOf?o.valueOf():o;o=d(s)?s+"":s}if("string"!=typeof o)return 0===o?o:+o;o=o.replace(e,"");var a=i.test(o);return a||n.test(o)?r(o.slice(2),a?2:8):t.test(o)?NaN:+o}return sr=function(e,t,i){var n,r,o,s,a,l,f=0,m=!1,g=!1,_=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function A(t){var i=n,o=r;return n=r=void 0,f=t,s=e.apply(o,i)}function y(e){var i=e-l;return void 0===l||i>=t||i<0||g&&e-f>=o}function v(){var e=u();if(y(e))return x(e);a=setTimeout(v,function(e){var i=t-(e-l);return g?h(i,o-(e-f)):i}(e))}function x(e){return a=void 0,_&&n?A(e):(n=r=void 0,s)}function b(){var e=u(),i=y(e);if(n=arguments,r=this,l=e,i){if(void 0===a)return function(e){return f=e,a=setTimeout(v,t),m?A(e):s}(l);if(g)return a=setTimeout(v,t),A(l)}return void 0===a&&(a=setTimeout(v,t)),s}return t=p(t)||0,d(i)&&(m=!!i.leading,o=(g="maxWait"in i)?c(p(i.maxWait)||0,t):o,_="trailing"in i?!!i.trailing:_),b.cancel=function(){void 0!==a&&clearTimeout(a),f=0,n=l=r=a=void 0},b.flush=function(){return void 0===a?s:x(u())},b},sr}var pr,fr={exports:{}};
|
|
19
|
+
*/function Tn(){if(un)return hn;un=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;return hn=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,r){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))t.call(o,c)&&(a[c]=o[c]);if(e){s=e(o);for(var h=0;h<s.length;h++)i.call(o,s[h])&&(a[s[h]]=o[s[h]])}}return a},hn}function En(){if(pn)return dn;pn=1;return dn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Sn(){return mn?fn:(mn=1,fn=Function.call.bind(Object.prototype.hasOwnProperty))}function In(){if(yn)return An;yn=1;var e=Cn(),t=Tn(),i=En(),n=Sn(),r=function(){if(_n)return gn;_n=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=En(),i={},n=Sn();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,o,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in r)if(n(r,c)){var h;try{if("function"!=typeof r[c]){var u=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}h=r[c](o,c,a,s,null,t)}catch(e){h=e}if(!h||h instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in i)){i[h.message]=!0;var d=l?l():"";e("Failed "+s+" type: "+h.message+(null!=d?d:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(i={})},gn=r}(),o=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),An=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var h="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(s),arrayOf:function(e){return f(function(t,n,r,o,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new p("Invalid "+o+" `"+s+"` of type `"+A(a)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,r,o,s+"["+l+"]",i);if(c instanceof Error)return c}return null})},element:f(function(e,t,i,n,r){var o=e[t];return a(o)?null:new p("Invalid "+n+" `"+r+"` of type `"+A(o)+"` supplied to `"+i+"`, expected a single ReactElement.")}),elementType:f(function(t,i,n,r,o){var s=t[i];return e.isValidElementType(s)?null:new p("Invalid "+r+" `"+o+"` of type `"+A(s)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return f(function(t,i,n,r,o){if(!(t[i]instanceof e)){var s=e.name||h;return new p("Invalid "+r+" `"+o+"` of type `"+(((a=t[i]).constructor&&a.constructor.name?a.constructor.name:h)+"` supplied to `")+n+"`, expected instance of `"+s+"`.")}var a;return null})},node:f(function(e,t,i,n,r){return _(e[t])?null:new p("Invalid "+n+" `"+r+"` supplied to `"+i+"`, expected a ReactNode.")}),objectOf:function(e){return f(function(t,r,o,s,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=t[r],c=A(l);if("object"!==c)return new p("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var h in l)if(n(l,h)){var u=e(l,h,o,s,a+"."+h,i);if(u instanceof Error)return u}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;return f(function(t,i,n,r,o){for(var s=t[i],a=0;a<e.length;a++)if(d(s,e[a]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===y(t)?String(t):t});return new p("Invalid "+r+" `"+o+"` of value `"+String(s)+"` supplied to `"+n+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(r)+" at index "+t+"."),s}return f(function(t,r,o,s,a){for(var l=[],c=0;c<e.length;c++){var h=(0,e[c])(t,r,o,s,a,i);if(null==h)return null;h.data&&n(h.data,"expectedType")&&l.push(h.data.expectedType)}return new p("Invalid "+s+" `"+a+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return f(function(t,n,r,o,s){var a=t[n],l=A(a);if("object"!==l)return new p("Invalid "+o+" `"+s+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var h=e[c];if("function"!=typeof h)return g(r,o,s,c,y(h));var u=h(a,c,r,o,s+"."+c,i);if(u)return u}return null})},exact:function(e){return f(function(r,o,s,a,l){var c=r[o],h=A(c);if("object"!==h)return new p("Invalid "+a+" `"+l+"` of type `"+h+"` supplied to `"+s+"`, expected `object`.");var u=t({},r[o],e);for(var d in u){var f=e[d];if(n(e,d)&&"function"!=typeof f)return g(s,a,l,d,y(f));if(!f)return new p("Invalid "+a+" `"+l+"` key `"+d+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(r[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,d,s,a,l+"."+d,i);if(m)return m}return null})}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function r(r,s,a,c,u,d,f){if(c=c||h,d=d||a,f!==i){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,n++)}}return null==s[a]?r?null===s[a]?new p("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,d)}var s=r.bind(null,!1);return s.isRequired=r.bind(null,!0),s}function m(e){return f(function(t,i,n,r,o,s){var a=t[i];return A(a)!==e?new p("Invalid "+r+" `"+o+"` of type `"+y(a)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null})}function g(e,t,i,n,r){return new p((e||"React class")+": "+t+" type `"+i+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function _(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(_);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var i,n=t.call(e);if(t!==e.entries){for(;!(i=n.next()).done;)if(!_(i.value))return!1}else for(;!(i=n.next()).done;){var r=i.value;if(r&&!_(r[1]))return!1}return!0;default:return!1}}function A(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=A(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=r,u.resetWarningCache=r.resetWarningCache,u.PropTypes=u,u},An}var Mn=tn(function(){if(bn)return on.exports;if(bn=1,"production"!==process.env.NODE_ENV){var e=Cn();on.exports=In()(e.isElement,!0)}else on.exports=function(){if(xn)return vn;xn=1;var e=En();function t(){}function i(){}return i.resetWarningCache=t,vn=function(){function n(t,i,n,r,o,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function r(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:t};return o.PropTypes=o,o}}()();return on.exports}());function Pn(e){return Object.entries(e).map(([e,t])=>t?`${e}=${t}`:e).join("&")}function Dn(e){return e.split("&").reduce((e,t)=>{const[i,n]=t.split("=");return i&&(e[i]=n),e},{})}function Ln(e){const t=Dn(e);return delete t.gid,delete t.pid,Pn(t)}function zn(){return window.location.hash.substring(1)}function On(){return`${window.location.pathname}${window.location.search}`}const Rn=e=>{const t=Dn(e);return Boolean(t.gid)&&Boolean(t.pid)};function kn(e,t){return null!==e?e:t?parseInt(t,10)-1:0}const Bn=Ae({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{},close:()=>{},isRefRegistered:()=>!1});class Fn{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var Nn=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};const Vn=(e,t)=>{var i;const{width:n,height:r,original:o,originalSrcset:s,thumbnail:a,cropped:l,content:c,id:h}=e,u=Nn(e,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);return Object.assign(Object.assign(Object.assign({w:n?Number(n):void 0,h:r?Number(r):void 0,src:o,srcset:s,msrc:a,element:null!==(i=null==t?void 0:t.current)&&void 0!==i?i:void 0,thumbCropped:l,content:c},void 0!==c?{type:"html"}:{}),void 0!==h?{pid:h}:{}),u)};class jn extends Error{constructor(e=""){super(),this.message=`\n ${e}\n\n No \`sourceId\` provided.\n You should add \`sourceId\` prop to Item component during using \`dataSource\` prop at Gallery component.\n Also you should add \`sourceId\` property to each item of \`dataSource\` array at Gallery component.\n Example:\n <Gallery dataSource={[{sourceId: 1, src: 'a.jpg'}]}>\n <Item sourceId={1}>{({ ref }) => <div ref={ref}></div>}</Item>\n </Gallery>\n`}}var Un=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};class Hn extends Error{constructor(e=""){super(),this.message=`\n ${e}\n No valid \`ref\` provided.\n You should use \`ref\` from render prop of Item component.\n Example:\n <Item>{({ ref }) => <div ref={ref}></div>}</Item>\n`}}const Gn=e=>e[0].current instanceof Element,Zn=e=>{if(Gn(e))return e;throw new Hn};let Wn=null;const qn=({children:e,dataSource:t,options:i,plugins:n,uiElements:r,id:o,onBeforeOpen:s,onOpen:a,withCaption:l,withDownloadButton:c})=>{const[h,u]=pe(null),d=ge(new Map),p=ge(null),f=ye((e,h,p,f)=>{if(Wn)return;const{slides:m,index:g}=t?((e,t,i,n,r)=>{const o=Array.from(t.current).reduce((e,[t,{sourceId:i}])=>{if(void 0===i)throw new jn("sourceId is missed on Item component");return e.set(i,t),e},new Map),{slides:s,index:a}=e.reduce((e,t,r)=>{const{sourceId:s}=t,a=Un(t,["sourceId"]);if(void 0===s)throw new jn("sourceId is missed in dataSource item");const l=o.has(s)?o.get(s):void 0;return(i===l||void 0!==a.id&&String(a.id)===n)&&(e.index=r),e.slides.push(Vn(a,l)),e},{slides:[],index:r||null});return{slides:s,index:a}})(t,d,e,h,p):((e,t,i,n)=>{const r=Array.from(e.current);if("number"==typeof n&&(void 0===r[n]||!Gn(r[n])))throw new Hn(`Failed to open at index ${n}`);const{slides:o,index:s}=r.map(Zn).sort(([{current:e}],[{current:t}])=>function(e,t){return e===t?0:2&e.compareDocumentPosition(t)?1:-1}(e,t)).reduce((e,n,r)=>{const[o,s]=n;return(t===o||void 0!==s.id&&String(s.id)===i)&&(e.index=r),e.slides.push(Vn(s,o)),e},{slides:[],index:n||null});return{slides:o,index:s}})(d,e,h,p),_=f&&void 0!==f.clientX&&void 0!==f.clientY?{x:f.clientX,y:f.clientY}:null,A=new Ji(Object.assign({dataSource:m,index:kn(g,h),initialPointerPos:_},i||{}));Wn=A,A.on("contentActivate",({content:e})=>{e.data.content?u(Ne(e.data.content,e.element)):u(null)}),A.on("close",()=>{u(null)}),c&&A.on("uiRegister",()=>{var e;null===(e=A.ui)||void 0===e||e.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'<path d="M20.5 14.3 17.1 18V10h-2.2v7.9l-3.4-3.6L10 16l6 6.1 6-6.1ZM23 23H9v2h14Z" id="pswp__icn-download"/>',outlineID:"pswp__icn-download"},onInit:(e,t)=>{e.setAttribute("download",""),e.setAttribute("target","_blank"),e.setAttribute("rel","noopener"),A.on("change",()=>{var i;if(!(null===(i=t.currSlide)||void 0===i?void 0:i.data.src))return;e.href=t.currSlide.data.src})}})}),l&&A.on("uiRegister",()=>{var e;null===(e=A.ui)||void 0===e||e.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(e,t)=>{e.style.position="absolute",e.style.bottom="15px",e.style.left="0",e.style.right="0",e.style.padding="0 20px",e.style.color="var(--pswp-icon-color)",e.style.textAlign="center",e.style.fontSize="14px",e.style.lineHeight="1.5",e.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",A.on("change",()=>{if(!t.currSlide)return;const{caption:i,alt:n}=t.currSlide.data;e.innerHTML=i||n||""})}})}),Array.isArray(r)&&r.forEach(e=>{A.on("uiRegister",()=>{var t;null===(t=A.ui)||void 0===t||t.registerElement(e)})}),"function"==typeof n&&n(new Fn(A)),"function"==typeof s&&s(A);const y=()=>({gallery:{galleryUID:o}});A.on("beforeOpen",()=>{var e;if(void 0===o)return;if(!Rn(zn()))return void window.history.pushState(y(),document.title);if(Boolean(null===(e=window.history.state)||void 0===e?void 0:e.gallery))return;const t=On(),i=zn(),n=Ln(i),r=`${t}${n?`#${n}`:""}`,s=`${t}#${i}`;window.history.replaceState(window.history.state,document.title,r),window.history.pushState(y(),document.title,s)}),A.on("change",()=>{var e;if(void 0===o)return;const t=(null===(e=A.currSlide)||void 0===e?void 0:e.data.pid)||A.currIndex+1,i=`${On()}#${Ln(zn())}&${Pn({gid:o,pid:t})}`;window.history.replaceState(y(),document.title,i)});const v=()=>{void 0!==o&&null!==Wn&&Wn.close()};window.addEventListener("popstate",v),A.on("destroy",()=>{void 0!==o&&(window.removeEventListener("popstate",v),Rn(zn())&&window.history.back()),Wn=null}),A.init(),"function"==typeof a&&a(A)},[i,n,r,o,s,a,l,c]);fe(()=>()=>{Wn&&Wn.close()},[]);const m=ye(()=>{if(void 0===o)return;if(null!==Wn)return;const e=zn();if(e.length<5)return;const t=Dn(e),{pid:i,gid:n}=t;i&&n&&(0!==d.current.size?i&&n===String(o)&&f(null,i):p.current=i)},[f,o]);fe(()=>(m(),window.addEventListener("popstate",m),()=>{window.removeEventListener("popstate",m)}),[m]);const g=ye(e=>{d.current.delete(e)},[]),_=ye((e,t)=>{if(d.current.set(e,t),null===p.current)return;const{id:i}=t;if(i===p.current)return f(e),void(p.current=null);if(!i){const e=parseInt(p.current,10)-1,t=Array.from(d.current.keys())[e];t&&(f(t),p.current=null)}},[f]),A=ye(e=>d.current.has(e),[]),y=ye(e=>{f(null,null,e)},[f]),v=ye(()=>{Wn&&Wn.close()},[]),x=ve(()=>({remove:g,set:_,handleClick:f,open:y,close:v,isRefRegistered:A}),[g,_,f,y,v,A]);return ue.createElement(Bn.Provider,{value:x},e,h)};qn.propTypes={children:Mn.any,options:Mn.object,plugins:Mn.func,uiElements:Mn.array,id:Mn.oneOfType([Mn.string,Mn.number]),onBeforeOpen:Mn.func,onOpen:Mn.func,withCaption:Mn.bool,withDownloadButton:Mn.bool,dataSource:Mn.array};var Xn=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};const $n=e=>{var{children:t}=e,i=Xn(e,["children"]);const n=ge(null),{remove:r,set:o,handleClick:s,close:a,isRefRegistered:l}=de(Bn),c=ye(e=>{n.current=e,o(n,i)},[o,...Object.values(i)]),h=ye(e=>{if(!l(n))throw new Hn;s(n,null,null,e)},[s,l]),u=ve(()=>({ref:c,open:h,close:a}),[c,h,a]);return fe(()=>()=>{null===n.current&&r(n)},[r]),t(u)};$n.propTypes={children:Mn.func.isRequired,original:Mn.string,originalSrcset:Mn.string,thumbnail:Mn.string,width:Mn.oneOfType([Mn.number,Mn.string]),height:Mn.oneOfType([Mn.number,Mn.string]),alt:Mn.string,caption:Mn.string,content:Mn.element,html:Mn.string,id:Mn.oneOfType([Mn.number,Mn.string]),cropped:Mn.bool,sourceId:Mn.oneOfType([Mn.number,Mn.string])};const Yn=e=>{let{disableThumbnail:t=!1,index:i,height:n="100%",image:r,originalImage:o,showCount:l}=e;const c=ve(()=>{const e=o||r;return t?`${e} 1600w, ${r} 800w, ${r} 400w`:e},[r,o]);return s($n,{id:`${i}-pic`,original:o||r,thumbnail:t?void 0:r,originalSrcset:c,width:"1600",height:"1066",children:e=>{let{ref:t,open:i}=e;return a(M,{ref:t,component:u,sx:e=>({p:0,height:"100%",width:"100%",backgroundColor:"rgba(51, 51, 51, 0.1)",[e.breakpoints.down("md")]:{borderRadius:0}}),elevation:0,onClick:i,children:[s(P,{component:"img",height:n,width:"100%",image:r,alt:""}),!!l&&s(g,{m:"auto",width:"100%",height:"100%",position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",onClick:i,sx:{left:0,right:0,top:0,textAlign:"center",backgroundColor:"rgba(51, 51, 51, 0.8)",color:"white"},children:a(v,{variant:"h2",children:["+",l]})})]})}})};var Qn,Kn={exports:{}};var Jn=(Qn||(Qn=1,(()=>{var e={296:(e,t,i)=>{var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,c="object"==typeof self&&self&&self.Object===Object&&self,h=l||c||Function("return this")(),u=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return h.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var i=o.test(e);return i||s.test(e)?a(e.slice(2),i?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,i){var n,r,o,s,a,l,c=0,h=!1,u=!1,_=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function A(t){var i=n,o=r;return n=r=void 0,c=t,s=e.apply(o,i)}function y(e){var i=e-l;return void 0===l||i>=t||i<0||u&&e-c>=o}function v(){var e=f();if(y(e))return x(e);a=setTimeout(v,function(e){var i=t-(e-l);return u?p(i,o-(e-c)):i}(e))}function x(e){return a=void 0,_&&n?A(e):(n=r=void 0,s)}function b(){var e=f(),i=y(e);if(n=arguments,r=this,l=e,i){if(void 0===a)return function(e){return c=e,a=setTimeout(v,t),h?A(e):s}(l);if(u)return a=setTimeout(v,t),A(l)}return void 0===a&&(a=setTimeout(v,t)),s}return t=g(t)||0,m(i)&&(h=!!i.leading,o=(u="maxWait"in i)?d(g(i.maxWait)||0,t):o,_="trailing"in i?!!i.trailing:_),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=r=a=void 0},b.flush=function(){return void 0===a?s:x(f())},b}},96:(e,t,i)=>{var n="Expected a function",r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,h="object"==typeof self&&self&&self.Object===Object&&self,u=c||h||Function("return this")(),d=Object.prototype.toString,p=Math.max,f=Math.min,m=function(){return u.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var i=s.test(e);return i||a.test(e)?l(e.slice(2),i?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,i){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return g(i)&&(r="leading"in i?!!i.leading:r,o="trailing"in i?!!i.trailing:o),function(e,t,i){var r,o,s,a,l,c,h=0,u=!1,d=!1,A=!0;if("function"!=typeof e)throw new TypeError(n);function y(t){var i=r,n=o;return r=o=void 0,h=t,a=e.apply(n,i)}function v(e){var i=e-c;return void 0===c||i>=t||i<0||d&&e-h>=s}function x(){var e=m();if(v(e))return b(e);l=setTimeout(x,function(e){var i=t-(e-c);return d?f(i,s-(e-h)):i}(e))}function b(e){return l=void 0,A&&r?y(e):(r=o=void 0,a)}function w(){var e=m(),i=v(e);if(r=arguments,o=this,c=e,i){if(void 0===l)return function(e){return h=e,l=setTimeout(x,t),u?y(e):a}(c);if(d)return l=setTimeout(x,t),y(c)}return void 0===l&&(l=setTimeout(x,t)),a}return t=_(t)||0,g(i)&&(u=!!i.leading,s=(d="maxWait"in i)?p(_(i.maxWait)||0,t):s,A="trailing"in i?!!i.trailing:A),w.cancel=function(){void 0!==l&&clearTimeout(l),h=0,r=c=o=l=void 0},w.flush=function(){return void 0===l?a:b(m())},w}(e,t,{leading:r,maxWait:t,trailing:o})}},703:(e,t,i)=>{var n=i(414);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,i,r,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return i.PropTypes=i,i}},697:(e,t,i)=>{e.exports=i(703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{i.r(n),i.d(n,{LazyLoadComponent:()=>H,LazyLoadImage:()=>ee,trackWindowScroll:()=>L});const e=ue;var t=i.n(e),r=i(697);function o(){return"undefined"!=typeof window&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function l(e,t,i){return(t=h(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){e.forEach(function(e){e.isIntersecting&&e.target.onVisible()})},f={},m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(g,e);var i,n,r,h,m=(r=g,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=d(r);if(h){var i=d(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function g(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),(t=m.call(this,e)).supportsObserver=!e.scrollPosition&&e.useIntersectionObserver&&o(),t.supportsObserver){var i=e.threshold;t.observer=function(e){return f[e]=f[e]||new IntersectionObserver(p,{rootMargin:e+"px"}),f[e]}(i)}return t}return i=g,n=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollPosition,t=this.placeholder.getBoundingClientRect(),i=this.placeholder.style,n=parseInt(i.getPropertyValue("margin-left"),10)||0,r=parseInt(i.getPropertyValue("margin-top"),10)||0;return{bottom:e.y+t.bottom+r,left:e.x+t.left+n,right:e.x+t.right+n,top:e.y+t.top+r}}},{key:"isPlaceholderInViewport",value:function(){if("undefined"==typeof window||!this.placeholder)return!1;var e=this.props,t=e.scrollPosition,i=e.threshold,n=this.getPlaceholderBoundingBox(t),r=t.y+window.innerHeight,o=t.x,s=t.x+window.innerWidth,a=t.y;return Boolean(a-i<=n.bottom&&r+i>=n.top&&o-i<=n.right&&s+i>=n.left)}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var e=this,i=this.props,n=i.className,r=i.height,o=i.placeholder,s=i.style,c=i.width;if(o&&"function"!=typeof o.type)return t().cloneElement(o,{ref:function(t){return e.placeholder=t}});var h=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach(function(t){l(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({display:"inline-block"},s);return void 0!==c&&(h.width=c),void 0!==r&&(h.height=r),t().createElement("span",{className:n,ref:function(t){return e.placeholder=t},style:h},o)}}],n&&c(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),g}(t().Component);m.propTypes={onVisible:r.PropTypes.func.isRequired,className:r.PropTypes.string,height:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),placeholder:r.PropTypes.element,threshold:r.PropTypes.number,useIntersectionObserver:r.PropTypes.bool,scrollPosition:r.PropTypes.shape({x:r.PropTypes.number.isRequired,y:r.PropTypes.number.isRequired}),width:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string])},m.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const g=m;var _=i(296),A=i.n(_),y=i(96),v=i.n(y),x=function(e){var t=getComputedStyle(e,null);return t.getPropertyValue("overflow")+t.getPropertyValue("overflow-y")+t.getPropertyValue("overflow-x")};const b=function(e){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t instanceof HTMLElement;){if(/(scroll|auto)/.test(x(t)))return t;t=t.parentNode}return window};function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var C=["delayMethod","delayTime"];function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},T.apply(this,arguments)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function S(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var P=function(){return"undefined"==typeof window?0:window.scrollX||window.pageXOffset},D=function(){return"undefined"==typeof window?0:window.scrollY||window.pageYOffset};const L=function(e){var i=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(c,i);var n,r,s,a,l=(s=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=M(s);if(a){var i=M(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return S(this,e)});function c(e){var i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(i=l.call(this,e)).useIntersectionObserver=e.useIntersectionObserver&&o(),i.useIntersectionObserver)return S(i);var n=i.onChangeScroll.bind(I(i));return"debounce"===e.delayMethod?i.delayedScroll=A()(n,e.delayTime):"throttle"===e.delayMethod&&(i.delayedScroll=v()(n,e.delayTime)),i.state={scrollPosition:{x:P(),y:D()}},i.baseComponentRef=t().createRef(),i}return n=c,(r=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){"undefined"==typeof window||this.useIntersectionObserver||b(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement=b(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:P(),y:D()}})}},{key:"render",value:function(){var i=this.props,n=(i.delayMethod,i.delayTime,function(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(i,C)),r=this.useIntersectionObserver?null:this.state.scrollPosition;return t().createElement(e,T({forwardRef:this.baseComponentRef,scrollPosition:r},n))}}])&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=function(e){if("object"!==w(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==w(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===w(r)?r:String(r)),n)}var r}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),c}(t().Component);return i.propTypes={delayMethod:r.PropTypes.oneOf(["debounce","throttle"]),delayTime:r.PropTypes.number,useIntersectionObserver:r.PropTypes.bool},i.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},i};function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(a,e);var i,n,r,o,s=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=R(r);if(o){var i=R(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),s.call(this,e)}return i=a,(n=[{key:"render",value:function(){return t().createElement(g,this.props)}}])&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=function(e){if("object"!==z(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==z(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===z(r)?r:String(r)),n)}var r}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),a}(t().Component);const B=L(k);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(l,e);var i,n,r,s,a=(r=l,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=j(r);if(s){var i=j(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}(this,e)});function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=a.call(this,e);var i=e.afterLoad,n=e.beforeLoad,r=e.scrollPosition,o=e.visibleByDefault;return t.state={visible:o},o&&(n(),i()),t.onVisible=t.onVisible.bind(V(t)),t.isScrollTracked=Boolean(r&&Number.isFinite(r.x)&&r.x>=0&&Number.isFinite(r.y)&&r.y>=0),t}return i=l,(n=[{key:"componentDidUpdate",value:function(e,t){t.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var e=this.props,i=e.className,n=e.delayMethod,r=e.delayTime,s=e.height,a=e.placeholder,l=e.scrollPosition,c=e.style,h=e.threshold,u=e.useIntersectionObserver,d=e.width;return this.isScrollTracked||u&&o()?t().createElement(g,{className:i,height:s,onVisible:this.onVisible,placeholder:a,scrollPosition:l,style:c,threshold:h,useIntersectionObserver:u,width:d}):t().createElement(B,{className:i,delayMethod:n,delayTime:r,height:s,onVisible:this.onVisible,placeholder:a,style:c,threshold:h,width:d})}}])&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=function(e){if("object"!==F(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==F(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===F(r)?r:String(r)),n)}var r}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),l}(t().Component);U.propTypes={afterLoad:r.PropTypes.func,beforeLoad:r.PropTypes.func,useIntersectionObserver:r.PropTypes.bool,visibleByDefault:r.PropTypes.bool},U.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const H=U;function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}var Z=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function W(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function q(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?W(Object(i),!0).forEach(function(t){X(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):W(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function X(e,t,i){return(t=Y(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},$.apply(this,arguments)}function Y(e){var t=function(e){if("object"!==G(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==G(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===G(t)?t:String(t)}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}var J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(a,e);var i,n,r,o,s=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=K(r);if(o){var i=K(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=s.call(this,e)).state={loaded:!1},t}return i=a,(n=[{key:"onImageLoad",value:function(){var e=this;return this.state.loaded?null:function(t){e.props.onLoad(t),e.props.afterLoad(),e.setState({loaded:!0})}}},{key:"getImg",value:function(){var e=this.props,i=(e.afterLoad,e.beforeLoad,e.delayMethod,e.delayTime,e.effect,e.placeholder,e.placeholderSrc,e.scrollPosition,e.threshold,e.useIntersectionObserver,e.visibleByDefault,e.wrapperClassName,e.wrapperProps,function(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(e,Z));return t().createElement("img",$({},i,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var e=this.props,i=e.beforeLoad,n=e.className,r=e.delayMethod,o=e.delayTime,s=e.height,a=e.placeholder,l=e.scrollPosition,c=e.style,h=e.threshold,u=e.useIntersectionObserver,d=e.visibleByDefault,p=e.width;return t().createElement(H,{beforeLoad:i,className:n,delayMethod:r,delayTime:o,height:s,placeholder:a,scrollPosition:l,style:c,threshold:h,useIntersectionObserver:u,visibleByDefault:d,width:p},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(e){var i=this.props,n=i.effect,r=i.height,o=i.placeholderSrc,s=i.width,a=i.wrapperClassName,l=i.wrapperProps,c=this.state.loaded,h=c?" lazy-load-image-loaded":"",u=c||!o?{}:{backgroundImage:"url(".concat(o,")"),backgroundSize:"100% 100%"};return t().createElement("span",$({className:a+" lazy-load-image-background "+n+h,style:q(q({},u),{},{color:"transparent",display:"inline-block",height:r,width:s})},l),e)}},{key:"render",value:function(){var e=this.props,t=e.effect,i=e.placeholderSrc,n=e.visibleByDefault,r=e.wrapperClassName,o=e.wrapperProps,s=this.getLazyLoadImage();return(t||i)&&!n||r||o?this.getWrappedLazyLoadImage(s):s}}])&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y(n.key),n)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),a}(t().Component);J.propTypes={onLoad:r.PropTypes.func,afterLoad:r.PropTypes.func,beforeLoad:r.PropTypes.func,delayMethod:r.PropTypes.string,delayTime:r.PropTypes.number,effect:r.PropTypes.string,placeholderSrc:r.PropTypes.string,threshold:r.PropTypes.number,useIntersectionObserver:r.PropTypes.bool,visibleByDefault:r.PropTypes.bool,wrapperClassName:r.PropTypes.string,wrapperProps:r.PropTypes.object},J.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const ee=J})(),Kn.exports=n})()),Kn.exports);function er(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}er(".lazy-load-image-background.blur {\n filter: blur(15px);\n}\n\n.lazy-load-image-background.blur.lazy-load-image-loaded {\n filter: blur(0);\n transition: filter .3s;\n}\n\n.lazy-load-image-background.blur > img {\n opacity: 0;\n}\n\n.lazy-load-image-background.blur.lazy-load-image-loaded > img {\n opacity: 1;\n transition: opacity .3s;\n}\n");er(".lazy-load-image-background.opacity {\n opacity: 0;\n}\n\n.lazy-load-image-background.opacity.lazy-load-image-loaded {\n opacity: 1;\n transition: opacity .3s;\n}\n");const tr=e=>{let{src:t,height:i,placeholderSrc:n,visibleByDefault:r=!1,sx:o={},imageSX:a={},onLoad:l=()=>{},...c}=e;const[h,u]=pe(r);return t?s(g,{sx:{width:"100%",height:"100%","& img":{objectFit:"cover",objectPosition:"center",width:"100%",height:"100%",minHeight:"100%",...a},...o},children:s(Jn.LazyLoadImage,{visibleByDefault:h,src:h?t:n||t,height:i||"100%",width:"100%",effect:"opacity",placeholderSrc:n||t,onLoad:()=>{u(!0),l?.()},...c})}):null};er("/* Slider */\n.slick-slider\n{\n position: relative;\n\n display: block;\n box-sizing: border-box;\n\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n\n -webkit-touch-callout: none;\n -khtml-user-select: none;\n -ms-touch-action: pan-y;\n touch-action: pan-y;\n -webkit-tap-highlight-color: transparent;\n}\n\n.slick-list\n{\n position: relative;\n\n display: block;\n overflow: hidden;\n\n margin: 0;\n padding: 0;\n}\n.slick-list:focus\n{\n outline: none;\n}\n.slick-list.dragging\n{\n cursor: pointer;\n cursor: hand;\n}\n\n.slick-slider .slick-track,\n.slick-slider .slick-list\n{\n -webkit-transform: translate3d(0, 0, 0);\n -moz-transform: translate3d(0, 0, 0);\n -ms-transform: translate3d(0, 0, 0);\n -o-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n\n.slick-track\n{\n position: relative;\n top: 0;\n left: 0;\n\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.slick-track:before,\n.slick-track:after\n{\n display: table;\n\n content: '';\n}\n.slick-track:after\n{\n clear: both;\n}\n.slick-loading .slick-track\n{\n visibility: hidden;\n}\n\n.slick-slide\n{\n display: none;\n float: left;\n\n height: 100%;\n min-height: 1px;\n}\n[dir='rtl'] .slick-slide\n{\n float: right;\n}\n.slick-slide img\n{\n display: block;\n}\n.slick-slide.slick-loading img\n{\n display: none;\n}\n.slick-slide.dragging img\n{\n pointer-events: none;\n}\n.slick-initialized .slick-slide\n{\n display: block;\n}\n.slick-loading .slick-slide\n{\n visibility: hidden;\n}\n.slick-vertical .slick-slide\n{\n display: block;\n\n height: auto;\n\n border: 1px solid transparent;\n}\n.slick-arrow.slick-hidden {\n display: none;\n}\n");er("@charset 'UTF-8';\n/* Slider */\n.slick-loading .slick-list\n{\n background: #fff url('./ajax-loader.gif') center center no-repeat;\n}\n\n/* Icons */\n@font-face\n{\n font-family: 'slick';\n font-weight: normal;\n font-style: normal;\n\n src: url('./fonts/slick.eot');\n src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');\n}\n/* Arrows */\n.slick-prev,\n.slick-next\n{\n font-size: 0;\n line-height: 0;\n\n position: absolute;\n top: 50%;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 0;\n -webkit-transform: translate(0, -50%);\n -ms-transform: translate(0, -50%);\n transform: translate(0, -50%);\n\n cursor: pointer;\n\n color: transparent;\n border: none;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover,\n.slick-prev:focus,\n.slick-next:hover,\n.slick-next:focus\n{\n color: transparent;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover:before,\n.slick-prev:focus:before,\n.slick-next:hover:before,\n.slick-next:focus:before\n{\n opacity: 1;\n}\n.slick-prev.slick-disabled:before,\n.slick-next.slick-disabled:before\n{\n opacity: .25;\n}\n\n.slick-prev:before,\n.slick-next:before\n{\n font-family: 'slick';\n font-size: 20px;\n line-height: 1;\n\n opacity: .75;\n color: white;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.slick-prev\n{\n left: -25px;\n}\n[dir='rtl'] .slick-prev\n{\n right: -25px;\n left: auto;\n}\n.slick-prev:before\n{\n content: '←';\n}\n[dir='rtl'] .slick-prev:before\n{\n content: '→';\n}\n\n.slick-next\n{\n right: -25px;\n}\n[dir='rtl'] .slick-next\n{\n right: auto;\n left: -25px;\n}\n.slick-next:before\n{\n content: '→';\n}\n[dir='rtl'] .slick-next:before\n{\n content: '←';\n}\n\n/* Dots */\n.slick-dotted.slick-slider\n{\n margin-bottom: 30px;\n}\n\n.slick-dots\n{\n position: absolute;\n bottom: -25px;\n\n display: block;\n\n width: 100%;\n padding: 0;\n margin: 0;\n\n list-style: none;\n\n text-align: center;\n}\n.slick-dots li\n{\n position: relative;\n\n display: inline-block;\n\n width: 20px;\n height: 20px;\n margin: 0 5px;\n padding: 0;\n\n cursor: pointer;\n}\n.slick-dots li button\n{\n font-size: 0;\n line-height: 0;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 5px;\n\n cursor: pointer;\n\n color: transparent;\n border: 0;\n outline: none;\n background: transparent;\n}\n.slick-dots li button:hover,\n.slick-dots li button:focus\n{\n outline: none;\n}\n.slick-dots li button:hover:before,\n.slick-dots li button:focus:before\n{\n opacity: 1;\n}\n.slick-dots li button:before\n{\n font-family: 'slick';\n font-size: 6px;\n line-height: 20px;\n\n position: absolute;\n top: 0;\n left: 0;\n\n width: 20px;\n height: 20px;\n\n content: '•';\n text-align: center;\n\n opacity: .25;\n color: black;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.slick-dots li.slick-active button:before\n{\n opacity: .75;\n color: black;\n}\n");const ir=e=>{let{isNext:t,children:i,onClick:n}=e;return s(g,{className:"slick-arrow "+(t?"slick-next":"slick-prev"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n?.()},children:i})},nr=e=>{let{image:t,index:i,imageSX:n}=e;const r=(()=>{const{open:e,close:t}=de(Bn);return{open:e,close:t}})();return s(g,{component:"img",alt:`Image ${i}`,src:t,onClick:()=>{console.log("CarouselSlide clicked, index:",i,"gallery:",r),r?.open(i)},sx:{objectFit:"cover",objectPosition:"center",width:"100%",height:"100%",minHeight:"100%",cursor:"pointer",...n}})};const rr=e=>{let{sx:t={}}=e;return s(g,{component:"img",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACoAAAAbmCAIAAAATjndlAAAgAElEQVR4nOzZQQ3AIADAQMC/Uj5YQMSakCx3Cvrv3PsMAAAAAAAAAOCb9ToAAAAAAAAAAP7AgAcAAAAAAACAgAEPAAAAAAAAAAEDHgAAAAAAAAACBjwAAAAAAAAABAx4AAAAAAAAAAgY8AAAAAAAAAAQMOABAAAAAAAAIGDAAwAAAAAAAEDAgAcAAAAAAACAgAEPAAAAAAAAAAEDHgAAAAAAAAACBjwAAAAAAAAABAx4AAAAAAAAAAgY8AAAAAAAAAAQMOABAAAAAAAAIGDAAwAAAAAAAEDAgAcAAAAAAACAgAEPAAAAAAAAAAEDHgAAAAAAAAACBjw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ADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMBAwAMAAAAAAADAQMADAAAAAAAAwEDAAwAAAAAAAMAgscPFnOeLKwIAAAAASUVORK5CYII=",sx:{height:"100%",width:"100%",...t}})};var or,sr,ar,lr={},cr={},hr={},ur={};function dr(){if(ar)return sr;ar=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,n=/^0o[0-7]+$/i,r=parseInt,o="object"==typeof en&&en&&en.Object===Object&&en,s="object"==typeof self&&self&&self.Object===Object&&self,a=o||s||Function("return this")(),l=Object.prototype.toString,c=Math.max,h=Math.min,u=function(){return a.Date.now()};function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(o){if("number"==typeof o)return o;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(o))return NaN;if(d(o)){var s="function"==typeof o.valueOf?o.valueOf():o;o=d(s)?s+"":s}if("string"!=typeof o)return 0===o?o:+o;o=o.replace(e,"");var a=i.test(o);return a||n.test(o)?r(o.slice(2),a?2:8):t.test(o)?NaN:+o}return sr=function(e,t,i){var n,r,o,s,a,l,f=0,m=!1,g=!1,_=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function A(t){var i=n,o=r;return n=r=void 0,f=t,s=e.apply(o,i)}function y(e){var i=e-l;return void 0===l||i>=t||i<0||g&&e-f>=o}function v(){var e=u();if(y(e))return x(e);a=setTimeout(v,function(e){var i=t-(e-l);return g?h(i,o-(e-f)):i}(e))}function x(e){return a=void 0,_&&n?A(e):(n=r=void 0,s)}function b(){var e=u(),i=y(e);if(n=arguments,r=this,l=e,i){if(void 0===a)return function(e){return f=e,a=setTimeout(v,t),m?A(e):s}(l);if(g)return a=setTimeout(v,t),A(l)}return void 0===a&&(a=setTimeout(v,t)),s}return t=p(t)||0,d(i)&&(m=!!i.leading,o=(g="maxWait"in i)?c(p(i.maxWait)||0,t):o,_="trailing"in i?!!i.trailing:_),b.cancel=function(){void 0!==a&&clearTimeout(a),f=0,n=l=r=a=void 0},b.flush=function(){return void 0===a?s:x(u())},b},sr}var pr,fr={exports:{}};
|
|
20
20
|
/*!
|
|
21
21
|
Copyright (c) 2018 Jed Watson.
|
|
22
22
|
Licensed under the MIT License (MIT), see
|
|
23
23
|
http://jedwatson.github.io/classnames
|
|
24
|
-
*/function mr(){return pr||(pr=1,e=fr,function(){var t={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=r(e,n(i)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)t.call(e,o)&&e[o]&&(n=r(n,o));return n}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):window.classNames=i}()),fr.exports;var e}var gr,_r,Ar={},yr={};function vr(){return gr||(gr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,i=(t=ue)&&t.__esModule?t:{default:t};var n={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return i.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return i.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};e.default=n}(yr)),yr}function xr(){if(_r)return Ar;_r=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.checkSpecKeys=Ar.checkNavigable=Ar.changeSlide=Ar.canUseDOM=Ar.canGoNext=void 0,Ar.clamp=a,Ar.extractObject=void 0,Ar.filterSettings=function(e){return D.reduce(function(t,i){return e.hasOwnProperty(i)&&(t[i]=e[i]),t},{})},Ar.validSettings=Ar.swipeStart=Ar.swipeMove=Ar.swipeEnd=Ar.slidesOnRight=Ar.slidesOnLeft=Ar.slideHandler=Ar.siblingDirection=Ar.safePreventDefault=Ar.lazyStartIndex=Ar.lazySlidesOnRight=Ar.lazySlidesOnLeft=Ar.lazyEndIndex=Ar.keyHandler=Ar.initializedState=Ar.getWidth=Ar.getTrackLeft=Ar.getTrackCSS=Ar.getTrackAnimateCSS=Ar.getTotalSlides=Ar.getSwipeDirection=Ar.getSlideCount=Ar.getRequiredLazySlides=Ar.getPreClones=Ar.getPostClones=Ar.getOnDemandLazySlides=Ar.getNavigableIndexes=Ar.getHeight=void 0;var e=i(ue),t=i(vr());function i(e){return e&&e.__esModule?e:{default:e}}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach(function(t){s(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function s(e,t,i){var r;return r=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t);if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==n(r)?r:String(r))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e,t,i){return Math.max(t,Math.min(e,i))}var l=Ar.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},c=Ar.getOnDemandLazySlides=function(e){for(var t=[],i=h(e),n=u(e),r=i;r<n;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t};Ar.getRequiredLazySlides=function(e){for(var t=[],i=h(e),n=u(e),r=i;r<n;r++)t.push(r);return t};var h=Ar.lazyStartIndex=function(e){return e.currentSlide-d(e)},u=Ar.lazyEndIndex=function(e){return e.currentSlide+p(e)},d=Ar.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},p=Ar.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},f=Ar.getWidth=function(e){return e&&e.offsetWidth||0},m=Ar.getHeight=function(e){return e&&e.offsetHeight||0},g=Ar.getSwipeDirection=function(e){var t,i,n,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,i=e.startY-e.curY,n=Math.atan2(i,t),(r=Math.round(180*n/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===o?r>=35&&r<=135?"up":"down":"vertical"},_=Ar.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};Ar.extractObject=function(e,t){var i={};return t.forEach(function(t){return i[t]=e[t]}),i},Ar.initializedState=function(t){var i,n=e.default.Children.count(t.children),r=t.listRef,s=Math.ceil(f(r)),a=t.trackRef&&t.trackRef.node,l=Math.ceil(f(a));if(t.vertical)i=s;else{var h=t.centerMode&&2*parseInt(t.centerPadding);"string"==typeof t.centerPadding&&"%"===t.centerPadding.slice(-1)&&(h*=s/100),i=Math.ceil((s-h)/t.slidesToShow)}var u=r&&m(r.querySelector('[data-index="0"]')),d=u*t.slidesToShow,p=void 0===t.currentSlide?t.initialSlide:t.currentSlide;t.rtl&&void 0===t.currentSlide&&(p=n-1-t.initialSlide);var g=t.lazyLoadedList||[],_=c(o(o({},t),{},{currentSlide:p,lazyLoadedList:g})),A={slideCount:n,slideWidth:i,listWidth:s,trackWidth:l,currentSlide:p,slideHeight:u,listHeight:d,lazyLoadedList:g=g.concat(_)};return null===t.autoplaying&&t.autoplay&&(A.autoplaying="playing"),A},Ar.slideHandler=function(e){var t=e.waitForAnimate,i=e.animating,n=e.fade,r=e.infinite,s=e.index,l=e.slideCount,h=e.lazyLoad,u=e.currentSlide,d=e.centerMode,p=e.slidesToScroll,f=e.slidesToShow,m=e.useCSS,g=e.lazyLoadedList;if(t&&i)return{};var A,y,v,x=s,T={},E={},S=r?s:a(s,0,l-1);if(n){if(!r&&(s<0||s>=l))return{};s<0?x=s+l:s>=l&&(x=s-l),h&&g.indexOf(x)<0&&(g=g.concat(x)),T={animating:!0,currentSlide:x,lazyLoadedList:g,targetSlide:x},E={animating:!1,targetSlide:x}}else A=x,x<0?(A=x+l,r?l%p!==0&&(A=l-l%p):A=0):!_(e)&&x>u?x=A=u:d&&x>=l?(x=r?l:l-1,A=r?0:l-1):x>=l&&(A=x-l,r?l%p!==0&&(A=0):A=l-f),!r&&x+f>=l&&(A=l-f),y=C(o(o({},e),{},{slideIndex:x})),v=C(o(o({},e),{},{slideIndex:A})),r||(y===v&&(x=A),y=v),h&&(g=g.concat(c(o(o({},e),{},{currentSlide:x})))),m?(T={animating:!0,currentSlide:A,trackStyle:w(o(o({},e),{},{left:y})),lazyLoadedList:g,targetSlide:S},E={animating:!1,currentSlide:A,trackStyle:b(o(o({},e),{},{left:v})),swipeLeft:null,targetSlide:S}):T={currentSlide:A,trackStyle:b(o(o({},e),{},{left:v})),lazyLoadedList:g,targetSlide:S};return{state:T,nextState:E}},Ar.changeSlide=function(e,t){var i,n,r,s,a=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,h=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,p=e.infinite;if(i=c%a!==0?0:(c-h)%a,"previous"===t.message)s=h-(r=0===i?a:l-i),d&&!p&&(s=-1===(n=h-r)?c-1:n),p||(s=u-a);else if("next"===t.message)s=h+(r=0===i?a:i),d&&!p&&(s=(h+a)%c+i),p||(s=u+a);else if("dots"===t.message)s=t.index*t.slidesToScroll;else if("children"===t.message){if(s=t.index,p){var f=I(o(o({},e),{},{targetSlide:s}));s>t.currentSlide&&"left"===f?s-=c:s<t.currentSlide&&"right"===f&&(s+=c)}}else"index"===t.message&&(s=Number(t.index));return s},Ar.keyHandler=function(e,t,i){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?i?"next":"previous":39===e.keyCode?i?"previous":"next":""},Ar.swipeStart=function(e,t,i){return"IMG"===e.target.tagName&&l(e),!t||!i&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},Ar.swipeMove=function(e,t){var i=t.scrolling,n=t.animating,r=t.vertical,s=t.swipeToSlide,a=t.verticalSwiping,c=t.rtl,h=t.currentSlide,u=t.edgeFriction,d=t.edgeDragged,p=t.onEdge,f=t.swiped,m=t.swiping,A=t.slideCount,y=t.slidesToScroll,v=t.infinite,x=t.touchObject,w=t.swipeEvent,T=t.listHeight,E=t.listWidth;if(!i){if(n)return l(e);r&&s&&a&&l(e);var S,I={},M=C(t);x.curX=e.touches?e.touches[0].pageX:e.clientX,x.curY=e.touches?e.touches[0].pageY:e.clientY,x.swipeLength=Math.round(Math.sqrt(Math.pow(x.curX-x.startX,2)));var P=Math.round(Math.sqrt(Math.pow(x.curY-x.startY,2)));if(!a&&!m&&P>10)return{scrolling:!0};a&&(x.swipeLength=P);var D=(c?-1:1)*(x.curX>x.startX?1:-1);a&&(D=x.curY>x.startY?1:-1);var L=Math.ceil(A/y),z=g(t.touchObject,a),O=x.swipeLength;return v||(0===h&&("right"===z||"down"===z)||h+1>=L&&("left"===z||"up"===z)||!_(t)&&("left"===z||"up"===z))&&(O=x.swipeLength*u,!1===d&&p&&(p(z),I.edgeDragged=!0)),!f&&w&&(w(z),I.swiped=!0),S=r?M+O*(T/E)*D:c?M-O*D:M+O*D,a&&(S=M+O*D),I=o(o({},I),{},{touchObject:x,swipeLeft:S,trackStyle:b(o(o({},t),{},{left:S}))}),Math.abs(x.curX-x.startX)<.8*Math.abs(x.curY-x.startY)?I:(x.swipeLength>10&&(I.swiping=!0,l(e)),I)}},Ar.swipeEnd=function(e,t){var i=t.dragging,n=t.swipe,r=t.touchObject,s=t.listWidth,a=t.touchThreshold,c=t.verticalSwiping,h=t.listHeight,u=t.swipeToSlide,d=t.scrolling,p=t.onSwipe,f=t.targetSlide,m=t.currentSlide,_=t.infinite;if(!i)return n&&l(e),{};var A=c?h/a:s/a,x=g(r,c),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return b;if(!r.swipeLength)return b;if(r.swipeLength>A){var T,E;l(e),p&&p(x);var S=_?m:f;switch(x){case"left":case"up":E=S+v(t),T=u?y(t,E):E,b.currentDirection=0;break;case"right":case"down":E=S-v(t),T=u?y(t,E):E,b.currentDirection=1;break;default:T=S}b.triggerSlideHandler=T}else{var I=C(t);b.trackStyle=w(o(o({},t),{},{left:I}))}return b};var A=Ar.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,i=e.infinite?-1*e.slidesToShow:0,n=e.infinite?-1*e.slidesToShow:0,r=[];i<t;)r.push(i),i=n+e.slidesToScroll,n+=Math.min(e.slidesToScroll,e.slidesToShow);return r},y=Ar.checkNavigable=function(e,t){var i=A(e),n=0;if(t>i[i.length-1])t=i[i.length-1];else for(var r in i){if(t<i[r]){t=n;break}n=i[r]}return t},v=Ar.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var i,n=e.listRef,r=n.querySelectorAll&&n.querySelectorAll(".slick-slide")||[];if(Array.from(r).every(function(n){if(e.vertical){if(n.offsetTop+m(n)/2>-1*e.swipeLeft)return i=n,!1}else if(n.offsetLeft-t+f(n)/2>-1*e.swipeLeft)return i=n,!1;return!0}),!i)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(i.dataset.index-o)||1}return e.slidesToScroll},x=Ar.checkSpecKeys=function(e,t){return t.reduce(function(t,i){return t&&e.hasOwnProperty(i)},!0)?null:console.error("Keys Missing:",e)},b=Ar.getTrackCSS=function(e){var t,i;x(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n=e.slideCount+2*e.slidesToShow;e.vertical?i=n*e.slideHeight:t=S(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=o(o({},r),{},{WebkitTransform:s,transform:a,msTransform:l})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),i&&(r.height=i),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},w=Ar.getTrackAnimateCSS=function(e){x(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=b(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},C=Ar.getTrackLeft=function(e){if(e.unslick)return 0;x(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,i,n=e.slideIndex,r=e.trackRef,o=e.infinite,s=e.centerMode,a=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,h=e.slideWidth,u=e.listWidth,d=e.variableWidth,p=e.slideHeight,f=e.fade,m=e.vertical;if(f||1===e.slideCount)return 0;var g=0;if(o?(g=-T(e),a%c!==0&&n+c>a&&(g=-(n>a?l-(n-a):a%c)),s&&(g+=parseInt(l/2))):(a%c!==0&&n+c>a&&(g=l-a%c),s&&(g=parseInt(l/2))),t=m?n*p*-1+g*p:n*h*-1+g*h,!0===d){var _,A=r&&r.node;if(_=n+T(e),t=(i=A&&A.childNodes[_])?-1*i.offsetLeft:0,!0===s){_=o?n+T(e):n,i=A&&A.children[_],t=0;for(var y=0;y<_;y++)t-=A&&A.children[y]&&A.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=i&&(u-i.offsetWidth)/2}}return t},T=Ar.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},E=Ar.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},S=Ar.getTotalSlides=function(e){return 1===e.slideCount?1:T(e)+e.slideCount+E(e)},I=Ar.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+M(e)?"left":"right":e.targetSlide<e.currentSlide-P(e)?"right":"left"},M=Ar.slidesOnRight=function(e){var t=e.slidesToShow,i=e.centerMode,n=e.rtl,r=e.centerPadding;if(i){var o=(t-1)/2+1;return parseInt(r)>0&&(o+=1),n&&t%2==0&&(o+=1),o}return n?0:t-1},P=Ar.slidesOnLeft=function(e){var t=e.slidesToShow,i=e.centerMode,n=e.rtl,r=e.centerPadding;if(i){var o=(t-1)/2+1;return parseInt(r)>0&&(o+=1),n||t%2!=0||(o+=1),o}return n?t-1:0};Ar.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};var D=Ar.validSettings=Object.keys(t.default);return Ar}var br,wr={};function Cr(){if(br)return wr;br=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.Track=void 0;var e=n(ue),t=n(mr()),i=xr();function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(this,arguments)}function s(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e){var t=h();return function(){var i,n=u(e);if(t){var o=u(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}(this,i)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function p(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach(function(t){f(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function f(e,t,i){return(t=m(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function m(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t);if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:String(t)}var g=function(e){var t,i,n,r,o;return n=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),i=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-r-1&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":i,"slick-cloned":n,"slick-current":o===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},_=function(e,t){return e.key||t},A=function(n){var r,o=[],s=[],a=[],l=e.default.Children.count(n.children),c=(0,i.lazyStartIndex)(n),h=(0,i.lazyEndIndex)(n);return e.default.Children.forEach(n.children,function(u,d){var f,m={message:"children",index:d,slidesToScroll:n.slidesToScroll,currentSlide:n.currentSlide};f=!n.lazyLoad||n.lazyLoad&&n.lazyLoadedList.indexOf(d)>=0?u:e.default.createElement("div",null);var A=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(p(p({},n),{},{index:d})),y=f.props.className||"",v=g(p(p({},n),{},{index:d}));if(o.push(e.default.cloneElement(f,{key:"original"+_(f,d),"data-index":d,className:(0,t.default)(v,y),tabIndex:"-1","aria-hidden":!v["slick-active"],style:p(p({outline:"none"},f.props.style||{}),A),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),n.focusOnSelect&&n.focusOnSelect(m)}})),n.infinite&&!1===n.fade){var x=l-d;x<=(0,i.getPreClones)(n)&&((r=-x)>=c&&(f=u),v=g(p(p({},n),{},{index:r})),s.push(e.default.cloneElement(f,{key:"precloned"+_(f,r),"data-index":r,tabIndex:"-1",className:(0,t.default)(v,y),"aria-hidden":!v["slick-active"],style:p(p({},f.props.style||{}),A),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),n.focusOnSelect&&n.focusOnSelect(m)}}))),(r=l+d)<h&&(f=u),v=g(p(p({},n),{},{index:r})),a.push(e.default.cloneElement(f,{key:"postcloned"+_(f,r),"data-index":r,tabIndex:"-1",className:(0,t.default)(v,y),"aria-hidden":!v["slick-active"],style:p(p({},f.props.style||{}),A),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),n.focusOnSelect&&n.focusOnSelect(m)}}))}}),n.rtl?s.concat(o,a).reverse():s.concat(o,a)};return wr.Track=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(n,t);var i=l(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return f(c(e=i.call.apply(i,[this].concat(r))),"node",null),f(c(e),"handleRef",function(t){e.node=t}),e}return s(n,[{key:"render",value:function(){var t=A(this.props),i=this.props,n={onMouseEnter:i.onMouseEnter,onMouseOver:i.onMouseOver,onMouseLeave:i.onMouseLeave};return e.default.createElement("div",o({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),t)}}]),n}(e.default.PureComponent),wr}var Tr,Er={};function Sr(){if(Tr)return Er;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}Tr=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.Dots=void 0;var t=r(ue),i=r(mr()),n=xr();function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function s(e,t,i){return(t=l(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(t){var i=function(t,i){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,i);if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==e(i)?i:String(i)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function h(t){var i=u();return function(){var n,r=d(t);if(i){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,i){if(i&&("object"===e(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,n)}}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}return Er.Dots=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(l,e);var r=h(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.apply(this,arguments)}return a(l,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,r=this.props,a=r.onMouseEnter,l=r.onMouseOver,c=r.onMouseLeave,h=r.infinite,u=r.slidesToScroll,d=r.slidesToShow,p=r.slideCount,f=r.currentSlide,m=(e={slideCount:p,slidesToScroll:u,slidesToShow:d,infinite:h}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,g={onMouseEnter:a,onMouseOver:l,onMouseLeave:c},_=[],A=0;A<m;A++){var y=(A+1)*u-1,v=h?y:(0,n.clamp)(y,0,p-1),x=v-(u-1),b=h?x:(0,n.clamp)(x,0,p-1),w=(0,i.default)({"slick-active":h?f>=b&&f<=v:f===b}),C={message:"dots",index:A,slidesToScroll:u,currentSlide:f},T=this.clickHandler.bind(this,C);_=_.concat(t.default.createElement("li",{key:A,className:w},t.default.cloneElement(this.props.customPaging(A),{onClick:T})))}return t.default.cloneElement(this.props.appendDots(_),function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach(function(t){s(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({className:this.props.dotsClass},g))}}]),l}(t.default.PureComponent),Er}var Ir,Mr={};function Pr(){if(Ir)return Mr;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}Ir=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.PrevArrow=Mr.NextArrow=void 0;var t=r(ue),i=r(mr()),n=xr();function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(this,arguments)}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach(function(t){l(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function l(e,t,i){return(t=u(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(t){var i=function(t,i){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,i);if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==e(i)?i:String(i)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(t){var i=m();return function(){var n,r=g(t);if(i){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,i){if(i&&("object"===e(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,n)}}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}return Mr.PrevArrow=function(e){d(r,e);var n=f(r);function r(){return c(this,r),n.apply(this,arguments)}return h(r,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},n=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,n=null);var r={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:n},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?t.default.cloneElement(this.props.prevArrow,a(a({},r),s)):t.default.createElement("button",o({key:"0",type:"button"},r)," ","Previous")}}]),r}(t.default.PureComponent),Mr.NextArrow=function(e){d(s,e);var r=f(s);function s(){return c(this,s),r.apply(this,arguments)}return h(s,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},r=this.clickHandler.bind(this,{message:"next"});(0,n.canGoNext)(this.props)||(e["slick-disabled"]=!0,r=null);var s={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:r},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?t.default.cloneElement(this.props.nextArrow,a(a({},s),l)):t.default.createElement("button",o({key:"1",type:"button"},s)," ","Next")}}]),s}(t.default.PureComponent),Mr}var Dr=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var i=-1;return e.some(function(e,n){return e[0]===t&&(i=n,!0)}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),n=this.__entries__[i];return n&&n[1]},t.prototype.set=function(t,i){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,n=e(i,t);~n&&i.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,n=this.__entries__;i<n.length;i++){var r=n[i];e.call(t,r[1],r[0])}},t}()}(),Lr="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,zr="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Or="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(zr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var Rr=["top","right","bottom","left","width","height","size","weight"],kr="undefined"!=typeof MutationObserver,Br=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,n=!1,r=0;function o(){i&&(i=!1,e()),n&&a()}function s(){Or(o)}function a(){var e=Date.now();if(i){if(e-r<2)return;n=!0}else i=!0,n=!1,setTimeout(s,t);r=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Lr&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),kr?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Lr&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;Rr.some(function(e){return!!~i.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Fr=function(e,t){for(var i=0,n=Object.keys(t);i<n.length;i++){var r=n[i];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Nr=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||zr},Vr=Wr(0,0,0,0);function jr(e){return parseFloat(e)||0}function Ur(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce(function(t,i){return t+jr(e["border-"+i+"-width"])},0)}function Hr(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return Vr;var n=Nr(e).getComputedStyle(e),r=function(e){for(var t={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var r=n[i],o=e["padding-"+r];t[r]=jr(o)}return t}(n),o=r.left+r.right,s=r.top+r.bottom,a=jr(n.width),l=jr(n.height);if("border-box"===n.boxSizing&&(Math.round(a+o)!==t&&(a-=Ur(n,"left","right")+o),Math.round(l+s)!==i&&(l-=Ur(n,"top","bottom")+s)),!function(e){return e===Nr(e).document.documentElement}(e)){var c=Math.round(a+o)-t,h=Math.round(l+s)-i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(h)&&(l-=h)}return Wr(r.left,r.top,a,l)}var Gr="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Nr(e).SVGGraphicsElement}:function(e){return e instanceof Nr(e).SVGElement&&"function"==typeof e.getBBox};function Zr(e){return Lr?Gr(e)?function(e){var t=e.getBBox();return Wr(0,0,t.width,t.height)}(e):Hr(e):Vr}function Wr(e,t,i,n){return{x:e,y:t,width:i,height:n}}var qr=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Wr(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Zr(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Xr=function(e,t){var i,n,r,o,s,a,l,c=(n=(i=t).x,r=i.y,o=i.width,s=i.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),Fr(l,{x:n,y:r,width:o,height:s,top:r,right:n+o,bottom:s+r,left:n}),l);Fr(this,{target:e,contentRect:c})},$r=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new Dr,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Nr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new qr(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Nr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new Xr(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Yr="undefined"!=typeof WeakMap?new WeakMap:new Dr,Qr=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Br.getInstance(),n=new $r(t,i,this);Yr.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){Qr.prototype[e]=function(){var t;return(t=Yr.get(this))[e].apply(t,arguments)}});var Kr,Jr,eo,to,io,no,ro,oo,so,ao,lo,co,ho,uo,po,fo,mo,go=void 0!==zr.ResizeObserver?zr.ResizeObserver:Qr,_o=nn(Object.freeze({__proto__:null,default:go}));function Ao(){if(Kr)return hr;Kr=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.InnerSlider=void 0;var e,t=h(ue),i=h((or||(or=1,e=ur,Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}),ur)),n=h(dr()),r=h(mr()),o=xr(),s=Cr(),a=Sr(),l=Pr(),c=h(_o);function h(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},d.apply(this,arguments)}function p(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function f(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function m(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?f(Object(i),!0).forEach(function(t){b(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):f(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function g(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function A(e){var t=v();return function(){var i,n=x(e);if(t){var r=x(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}(this,i)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function b(e,t,i){return(t=w(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function w(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t);if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:String(t)}return hr.InnerSlider=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(f,e);var h=A(f);function f(e){var u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),b(y(u=h.call(this,e)),"listRefHandler",function(e){return u.list=e}),b(y(u),"trackRefHandler",function(e){return u.track=e}),b(y(u),"adaptHeight",function(){if(u.props.adaptiveHeight&&u.list){var e=u.list.querySelector('[data-index="'.concat(u.state.currentSlide,'"]'));u.list.style.height=(0,o.getHeight)(e)+"px"}}),b(y(u),"componentDidMount",function(){if(u.props.onInit&&u.props.onInit(),u.props.lazyLoad){var e=(0,o.getOnDemandLazySlides)(m(m({},u.props),u.state));e.length>0&&(u.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),u.props.onLazyLoad&&u.props.onLazyLoad(e))}var t=m({listRef:u.list,trackRef:u.track},u.props);u.updateState(t,!0,function(){u.adaptHeight(),u.props.autoplay&&u.autoPlay("update")}),"progressive"===u.props.lazyLoad&&(u.lazyLoadTimer=setInterval(u.progressiveLazyLoad,1e3)),u.ro=new c.default(function(){u.state.animating?(u.onWindowResized(!1),u.callbackTimers.push(setTimeout(function(){return u.onWindowResized()},u.props.speed))):u.onWindowResized()}),u.ro.observe(u.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=u.props.pauseOnFocus?u.onSlideFocus:null,e.onblur=u.props.pauseOnFocus?u.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",u.onWindowResized):window.attachEvent("onresize",u.onWindowResized)}),b(y(u),"componentWillUnmount",function(){u.animationEndCallback&&clearTimeout(u.animationEndCallback),u.lazyLoadTimer&&clearInterval(u.lazyLoadTimer),u.callbackTimers.length&&(u.callbackTimers.forEach(function(e){return clearTimeout(e)}),u.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",u.onWindowResized):window.detachEvent("onresize",u.onWindowResized),u.autoplayTimer&&clearInterval(u.autoplayTimer),u.ro.disconnect()}),b(y(u),"componentDidUpdate",function(e){if(u.checkImagesLoad(),u.props.onReInit&&u.props.onReInit(),u.props.lazyLoad){var i=(0,o.getOnDemandLazySlides)(m(m({},u.props),u.state));i.length>0&&(u.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(i)}}),u.props.onLazyLoad&&u.props.onLazyLoad(i))}u.adaptHeight();var n=m(m({listRef:u.list,trackRef:u.track},u.props),u.state),r=u.didPropsChange(e);r&&u.updateState(n,r,function(){u.state.currentSlide>=t.default.Children.count(u.props.children)&&u.changeSlide({message:"index",index:t.default.Children.count(u.props.children)-u.props.slidesToShow,currentSlide:u.state.currentSlide}),u.props.autoplay?u.autoPlay("update"):u.pause("paused")})}),b(y(u),"onWindowResized",function(e){u.debouncedResize&&u.debouncedResize.cancel(),u.debouncedResize=(0,n.default)(function(){return u.resizeWindow(e)},50),u.debouncedResize()}),b(y(u),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(u.track&&u.track.node)){var t=m(m({listRef:u.list,trackRef:u.track},u.props),u.state);u.updateState(t,e,function(){u.props.autoplay?u.autoPlay("update"):u.pause("paused")}),u.setState({animating:!1}),clearTimeout(u.animationEndCallback),delete u.animationEndCallback}}),b(y(u),"updateState",function(e,i,n){var r=(0,o.initializedState)(e);e=m(m(m({},e),r),{},{slideIndex:r.currentSlide});var s=(0,o.getTrackLeft)(e);e=m(m({},e),{},{left:s});var a=(0,o.getTrackCSS)(e);(i||t.default.Children.count(u.props.children)!==t.default.Children.count(e.children))&&(r.trackStyle=a),u.setState(r,n)}),b(y(u),"ssrInit",function(){if(u.props.variableWidth){var e=0,i=0,n=[],r=(0,o.getPreClones)(m(m(m({},u.props),u.state),{},{slideCount:u.props.children.length})),s=(0,o.getPostClones)(m(m(m({},u.props),u.state),{},{slideCount:u.props.children.length}));u.props.children.forEach(function(t){n.push(t.props.style.width),e+=t.props.style.width});for(var a=0;a<r;a++)i+=n[n.length-1-a],e+=n[n.length-1-a];for(var l=0;l<s;l++)e+=n[l];for(var c=0;c<u.state.currentSlide;c++)i+=n[c];var h={width:e+"px",left:-i+"px"};if(u.props.centerMode){var d="".concat(n[u.state.currentSlide],"px");h.left="calc(".concat(h.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:h}}var p=t.default.Children.count(u.props.children),f=m(m(m({},u.props),u.state),{},{slideCount:p}),g=(0,o.getPreClones)(f)+(0,o.getPostClones)(f)+p,_=100/u.props.slidesToShow*g,A=100/g,y=-A*((0,o.getPreClones)(f)+u.state.currentSlide)*_/100;return u.props.centerMode&&(y+=(100-A*_/100)/2),{slideWidth:A+"%",trackStyle:{width:_+"%",left:y+"%"}}}),b(y(u),"checkImagesLoad",function(){var e=u.list&&u.list.querySelectorAll&&u.list.querySelectorAll(".slick-slide img")||[],t=e.length,i=0;Array.prototype.forEach.call(e,function(e){var n=function(){return++i&&i>=t&&u.onWindowResized()};if(e.onclick){var r=e.onclick;e.onclick=function(t){r(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(u.props.lazyLoad?e.onload=function(){u.adaptHeight(),u.callbackTimers.push(setTimeout(u.onWindowResized,u.props.speed))}:(e.onload=n,e.onerror=function(){n(),u.props.onLazyLoadError&&u.props.onLazyLoadError()}))})}),b(y(u),"progressiveLazyLoad",function(){for(var e=[],t=m(m({},u.props),u.state),i=u.state.currentSlide;i<u.state.slideCount+(0,o.getPostClones)(t);i++)if(u.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}for(var n=u.state.currentSlide-1;n>=-(0,o.getPreClones)(t);n--)if(u.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(u.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),u.props.onLazyLoad&&u.props.onLazyLoad(e)):u.lazyLoadTimer&&(clearInterval(u.lazyLoadTimer),delete u.lazyLoadTimer)}),b(y(u),"slideHandler",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=u.props,n=i.asNavFor,r=i.beforeChange,s=i.onLazyLoad,a=i.speed,l=i.afterChange,c=u.state.currentSlide,h=(0,o.slideHandler)(m(m(m({index:e},u.props),u.state),{},{trackRef:u.track,useCSS:u.props.useCSS&&!t})),d=h.state,f=h.nextState;if(d){r&&r(c,d.currentSlide);var g=d.lazyLoadedList.filter(function(e){return u.state.lazyLoadedList.indexOf(e)<0});s&&g.length>0&&s(g),!u.props.waitForAnimate&&u.animationEndCallback&&(clearTimeout(u.animationEndCallback),l&&l(c),delete u.animationEndCallback),u.setState(d,function(){n&&u.asNavForIndex!==e&&(u.asNavForIndex=e,n.innerSlider.slideHandler(e)),f&&(u.animationEndCallback=setTimeout(function(){var e=f.animating,t=p(f,["animating"]);u.setState(t,function(){u.callbackTimers.push(setTimeout(function(){return u.setState({animating:e})},10)),l&&l(d.currentSlide),delete u.animationEndCallback})},a))})}}),b(y(u),"changeSlide",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=m(m({},u.props),u.state),n=(0,o.changeSlide)(i,e);if((0===n||n)&&(!0===t?u.slideHandler(n,t):u.slideHandler(n),u.props.autoplay&&u.autoPlay("update"),u.props.focusOnSelect)){var r=u.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}}),b(y(u),"clickHandler",function(e){!1===u.clickable&&(e.stopPropagation(),e.preventDefault()),u.clickable=!0}),b(y(u),"keyHandler",function(e){var t=(0,o.keyHandler)(e,u.props.accessibility,u.props.rtl);""!==t&&u.changeSlide({message:t})}),b(y(u),"selectHandler",function(e){u.changeSlide(e)}),b(y(u),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),b(y(u),"enableBodyScroll",function(){window.ontouchmove=null}),b(y(u),"swipeStart",function(e){u.props.verticalSwiping&&u.disableBodyScroll();var t=(0,o.swipeStart)(e,u.props.swipe,u.props.draggable);""!==t&&u.setState(t)}),b(y(u),"swipeMove",function(e){var t=(0,o.swipeMove)(e,m(m(m({},u.props),u.state),{},{trackRef:u.track,listRef:u.list,slideIndex:u.state.currentSlide}));t&&(t.swiping&&(u.clickable=!1),u.setState(t))}),b(y(u),"swipeEnd",function(e){var t=(0,o.swipeEnd)(e,m(m(m({},u.props),u.state),{},{trackRef:u.track,listRef:u.list,slideIndex:u.state.currentSlide}));if(t){var i=t.triggerSlideHandler;delete t.triggerSlideHandler,u.setState(t),void 0!==i&&(u.slideHandler(i),u.props.verticalSwiping&&u.enableBodyScroll())}}),b(y(u),"touchEnd",function(e){u.swipeEnd(e),u.clickable=!0}),b(y(u),"slickPrev",function(){u.callbackTimers.push(setTimeout(function(){return u.changeSlide({message:"previous"})},0))}),b(y(u),"slickNext",function(){u.callbackTimers.push(setTimeout(function(){return u.changeSlide({message:"next"})},0))}),b(y(u),"slickGoTo",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";u.callbackTimers.push(setTimeout(function(){return u.changeSlide({message:"index",index:e,currentSlide:u.state.currentSlide},t)},0))}),b(y(u),"play",function(){var e;if(u.props.rtl)e=u.state.currentSlide-u.props.slidesToScroll;else{if(!(0,o.canGoNext)(m(m({},u.props),u.state)))return!1;e=u.state.currentSlide+u.props.slidesToScroll}u.slideHandler(e)}),b(y(u),"autoPlay",function(e){u.autoplayTimer&&clearInterval(u.autoplayTimer);var t=u.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;u.autoplayTimer=setInterval(u.play,u.props.autoplaySpeed+50),u.setState({autoplaying:"playing"})}),b(y(u),"pause",function(e){u.autoplayTimer&&(clearInterval(u.autoplayTimer),u.autoplayTimer=null);var t=u.state.autoplaying;"paused"===e?u.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||u.setState({autoplaying:"focused"}):"playing"===t&&u.setState({autoplaying:"hovered"})}),b(y(u),"onDotsOver",function(){return u.props.autoplay&&u.pause("hovered")}),b(y(u),"onDotsLeave",function(){return u.props.autoplay&&"hovered"===u.state.autoplaying&&u.autoPlay("leave")}),b(y(u),"onTrackOver",function(){return u.props.autoplay&&u.pause("hovered")}),b(y(u),"onTrackLeave",function(){return u.props.autoplay&&"hovered"===u.state.autoplaying&&u.autoPlay("leave")}),b(y(u),"onSlideFocus",function(){return u.props.autoplay&&u.pause("focused")}),b(y(u),"onSlideBlur",function(){return u.props.autoplay&&"focused"===u.state.autoplaying&&u.autoPlay("blur")}),b(y(u),"render",function(){var e,i,n,c=(0,r.default)("slick-slider",u.props.className,{"slick-vertical":u.props.vertical,"slick-initialized":!0}),h=m(m({},u.props),u.state),p=(0,o.extractObject)(h,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),f=u.props.pauseOnHover;if(p=m(m({},p),{},{onMouseEnter:f?u.onTrackOver:null,onMouseLeave:f?u.onTrackLeave:null,onMouseOver:f?u.onTrackOver:null,focusOnSelect:u.props.focusOnSelect&&u.clickable?u.selectHandler:null}),!0===u.props.dots&&u.state.slideCount>=u.props.slidesToShow){var g=(0,o.extractObject)(h,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),_=u.props.pauseOnDotsHover;g=m(m({},g),{},{clickHandler:u.changeSlide,onMouseEnter:_?u.onDotsLeave:null,onMouseOver:_?u.onDotsOver:null,onMouseLeave:_?u.onDotsLeave:null}),e=t.default.createElement(a.Dots,g)}var A=(0,o.extractObject)(h,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);A.clickHandler=u.changeSlide,u.props.arrows&&(i=t.default.createElement(l.PrevArrow,A),n=t.default.createElement(l.NextArrow,A));var y=null;u.props.vertical&&(y={height:u.state.listHeight});var v=null;!1===u.props.vertical?!0===u.props.centerMode&&(v={padding:"0px "+u.props.centerPadding}):!0===u.props.centerMode&&(v={padding:u.props.centerPadding+" 0px"});var x=m(m({},y),v),b=u.props.touchMove,w={className:"slick-list",style:x,onClick:u.clickHandler,onMouseDown:b?u.swipeStart:null,onMouseMove:u.state.dragging&&b?u.swipeMove:null,onMouseUp:b?u.swipeEnd:null,onMouseLeave:u.state.dragging&&b?u.swipeEnd:null,onTouchStart:b?u.swipeStart:null,onTouchMove:u.state.dragging&&b?u.swipeMove:null,onTouchEnd:b?u.touchEnd:null,onTouchCancel:u.state.dragging&&b?u.swipeEnd:null,onKeyDown:u.props.accessibility?u.keyHandler:null},C={className:c,dir:"ltr",style:u.props.style};return u.props.unslick&&(w={className:"slick-list"},C={className:c}),t.default.createElement("div",C,u.props.unslick?"":i,t.default.createElement("div",d({ref:u.listRefHandler},w),t.default.createElement(s.Track,d({ref:u.trackRefHandler},p),u.props.children)),u.props.unslick?"":n,u.props.unslick?"":e)}),u.list=null,u.track=null,u.state=m(m({},i.default),{},{currentSlide:u.props.initialSlide,targetSlide:u.props.initialSlide?u.props.initialSlide:0,slideCount:t.default.Children.count(u.props.children)}),u.callbackTimers=[],u.clickable=!0,u.debouncedResize=null;var g=u.ssrInit();return u.state=m(m({},u.state),g),u}return g(f,[{key:"didPropsChange",value:function(e){for(var i=!1,n=0,r=Object.keys(this.props);n<r.length;n++){var o=r[n];if(!e.hasOwnProperty(o)){i=!0;break}if("object"!==u(e[o])&&"function"!=typeof e[o]&&!isNaN(e[o])&&e[o]!==this.props[o]){i=!0;break}}return i||t.default.Children.count(this.props.children)!==t.default.Children.count(e.children)}}]),f}(t.default.Component),hr}function yo(){if(io)return to;io=1;var e=eo?Jr:(eo=1,Jr=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}),t=function(t){var i="",n=Object.keys(t);return n.forEach(function(r,o){var s=t[r];(function(e){return/[height|width]$/.test(e)})(r=e(r))&&"number"==typeof s&&(s+="px"),i+=!0===s?r:!1===s?"not "+r:"("+r+": "+s+")",o<n.length-1&&(i+=" and ")}),i};return to=function(e){var i="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){i+=t(n),r<e.length-1&&(i+=", ")}),i):t(e)},to}function vo(){if(so)return oo;return so=1,oo={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var i=0,n=e.length;i<n&&!1!==t(e[i],i);i++);}}}function xo(){if(lo)return ao;lo=1;var e=function(){if(ro)return no;function e(e){this.options=e,!e.deferSetup&&this.setup()}return ro=1,e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},no=e}(),t=vo().each;function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var i=this;this.listener=function(e){i.mql=e.currentTarget||e,i.assess()},this.mql.addListener(this.listener)}return i.prototype={constuctor:i,addHandler:function(t){var i=new e(t);this.handlers.push(i),this.matches()&&i.on()},removeHandler:function(e){var i=this.handlers;t(i,function(t,n){if(t.equals(e))return t.destroy(),!i.splice(n,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";t(this.handlers,function(t){t[e]()})}},ao=i}function bo(){if(po)return uo;po=1;var e=function(){if(ho)return co;ho=1;var e=xo(),t=vo(),i=t.each,n=t.isFunction,r=t.isArray;function o(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return o.prototype={constructor:o,register:function(t,o,s){var a=this.queries,l=s&&this.browserIsIncapable;return a[t]||(a[t]=new e(t,l)),n(o)&&(o={match:o}),r(o)||(o=[o]),i(o,function(e){n(e)&&(e={match:e}),a[t].addHandler(e)}),this},unregister:function(e,t){var i=this.queries[e];return i&&(t?i.removeHandler(t):(i.clear(),delete this.queries[e])),this}},co=o}();return uo=new e}function wo(){return fo||(fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=s(ue),i=Ao(),n=s(yo()),r=s(vr()),o=xr();function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},l.apply(this,arguments)}function c(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?c(Object(i),!0).forEach(function(t){_(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function u(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=m();return function(){var i,n=g(e);if(t){var r=g(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,i)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function _(e,t,i){return(t=A(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function A(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t);if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:String(t)}var y=(0,o.canUseDOM)()&&bo();e.default=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(a,e);var s=p(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),_(f(t=s.call(this,e)),"innerSliderRefHandler",function(e){return t.innerSlider=e}),_(f(t),"slickPrev",function(){return t.innerSlider.slickPrev()}),_(f(t),"slickNext",function(){return t.innerSlider.slickNext()}),_(f(t),"slickGoTo",function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,i)}),_(f(t),"slickPause",function(){return t.innerSlider.pause("paused")}),_(f(t),"slickPlay",function(){return t.innerSlider.autoPlay("play")}),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return u(a,[{key:"media",value:function(e,t){y.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(i,r){var s;s=0===r?(0,n.default)({minWidth:0,maxWidth:i}):(0,n.default)({minWidth:t[r-1]+1,maxWidth:i}),(0,o.canUseDOM)()&&e.media(s,function(){e.setState({breakpoint:i})})});var i=(0,n.default)({minWidth:t.slice(-1)[0]});(0,o.canUseDOM)()&&this.media(i,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){y.unregister(e.query,e.handler)})}},{key:"render",value:function(){var e,n,s=this;(e=this.state.breakpoint?"unslick"===(n=this.props.responsive.filter(function(e){return e.breakpoint===s.state.breakpoint}))[0].settings?"unslick":h(h(h({},r.default),this.props),n[0].settings):h(h({},r.default),this.props)).centerMode&&(e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(e.slidesToScroll)),e.slidesToScroll=1),e.fade&&(e.slidesToShow>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(e.slidesToShow)),e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(e.slidesToScroll)),e.slidesToShow=1,e.slidesToScroll=1);var a=t.default.Children.toArray(this.props.children);a=a.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var c=[],u=null,d=0;d<a.length;d+=e.rows*e.slidesPerRow){for(var p=[],f=d;f<d+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var m=[],g=f;g<f+e.slidesPerRow&&(e.variableWidth&&a[g].props.style&&(u=a[g].props.style.width),!(g>=a.length));g+=1)m.push(t.default.cloneElement(a[g],{key:100*d+10*f+g,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));p.push(t.default.createElement("div",{key:10*d+f},m))}e.variableWidth?c.push(t.default.createElement("div",{key:d,style:{width:u}},p)):c.push(t.default.createElement("div",{key:d},p))}if("unslick"===e){var _="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:_},a)}return c.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),t.default.createElement(i.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},(0,o.filterSettings)(e)),c)}}]),a}(t.default.Component)}(cr)),cr}const Co=D(tn((mo||(mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,i=(t=wo())&&t.__esModule?t:{default:t};e.default=i.default}(lr)),lr)))(()=>({overflow:"hidden !important",height:"100% !important",width:"100% !important",".slick-list, .slick-track, .slick-slide > div":{height:"100% !important"},".slick-arrow":{zIndex:"1 !important",display:"flex !important",flexDirection:"column !important",alignItems:"center !important",justifyContent:"center !important",color:"rgba(255, 255, 255, 0.8) !important","&:hover":{color:"rgba(255, 255, 255, 1) !important"},"&:before":{display:"none !important"},"&.slick-prev":{left:"0!important"},"&.slick-next":{right:"0!important"}},".slick-dots":{bottom:"10px !important",zIndex:"1 !important",position:"absolute",height:"24px !important",overflow:"auto !important",overflowY:"hidden !important",display:"flex !important",alignItems:"center !important",justifyContent:"flex-start !important",left:"50% !important",transform:"translateX(-50%) !important",whiteSpace:"nowrap !important",maxWidth:"72px !important",scrollbarWidth:"none !important",msOverflowStyle:"none !important","&::-webkit-scrollbar":{display:"none !important"},"& li":{margin:"0 1px !important",width:"12px !important",transition:"all 0.3s ease !important",display:"inline-block !important"},"& li, & li button, & li button:before":{width:"12px !important",height:"12px !important"},"& button:before":{fontSize:"10px !important",lineHeight:"14px !important",color:"rgba(145, 158, 171, 0.9) !important",opacity:"1!important"},".slick-active":{"& button:before":{color:"white !important"}}},"& div.slick-prev, & div.slick-next":{height:"100% !important",borderRadius:"0!important",margin:"0!important",width:"65px !important",transition:"opacity .15s ease !important"},"& div.slick-next":{background:"linear-gradient(90deg, transparent 0, rgba(0,0,0,.15)) !important"},"& div.slick-prev":{background:"linear-gradient(270deg, transparent 0, rgba(0,0,0,.15)) !important"}})),To=xe(e=>{let{disableThumbnail:t=!1,id:i,imageSX:n,fullSizeImages:r=[],lazyLoad:o,images:c=[],onSlideClick:u,...d}=e;const[p,f]=pe(!1),m=h(e=>e.breakpoints.down("sm")),_=ye(e=>{u?.(e),!p||c.length<=5||setTimeout(()=>{const e=i?document.getElementById(i):document;if(!e)return;const t=e.querySelector(".slick-dots");if(!t)return;const n=t.querySelector(".slick-active");n&&n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},50)},[p,c.length,i,u]),A={dots:p&&c?.length>1,arrows:p&&c?.length>1,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,initialSlide:0,lazyLoad:o,nextArrow:s(ir,{isNext:!0,children:s(Me,{fontSize:m?"medium":"large"})}),prevArrow:s(ir,{children:s(Ie,{fontSize:m?"medium":"large"})}),afterChange:_},y=ye(()=>{setTimeout(()=>{f(!0)},1e3)},[]),v=ve(()=>c.map((e,i)=>{const n=r[i]||e;return t?`${n} 1600w, ${e} 800w, ${e} 400w`:n}),[c,r,t]);return a(g,{id:i,width:"100%",height:"100%",overflow:"hidden",position:"relative",sx:{...d?.sx||{},".slick-frame":{visibility:p?"visible":"hidden"},".slick-initialized":{visibility:"visible",background:"none","& > .generic-item-wrap-class":{visibility:"visible"}},"& > .generic-item-wrap-class":{visibility:"hidden"}},children:[r?.length>0&&s(g,{sx:{display:"none"},children:c.map((e,i)=>s($n,{id:`carousel-${i}-pic`,original:r[i]||e,thumbnail:t?void 0:e,originalSrcset:v[i],width:"1600",height:"1066",children:e=>{let{ref:t}=e;return s("span",{ref:t})}},`gallery-item-${i}`))}),c?.length?a(l,{children:[!p&&s(tr,{visibleByDefault:!0,src:c?.[0],sx:{zIndex:2,position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),s(Co,{...A,sx:{...n,...p?{}:{backgroundImage:`url(${c?.[0]})`}},onInit:y,children:c?.map((e,t)=>r?.length>0?s(nr,{image:e,index:t,imageSX:n},e):s(g,{component:"img",alt:`Image ${t}`,src:e,sx:{objectFit:"cover",objectPosition:"center",width:"100%",height:"100%",minHeight:"100%"}},e))})]}):s(rr,{sx:d?.sx||{}})]})}),Eo=xe(function(e){let{fontSize:t=12,maxHeight:i=24,bgcolor:n="",icon:r,label:o,color:a="default",TypographyProps:l={},...c}=e;return s(L,{color:a,icon:r,sx:[e=>({transition:e.transitions.create("backgroundColor"),"& .MuiChip-label":{lineHeight:0},backgroundColor:n,maxHeight:i}),...Array.isArray(c?.sx)?c.sx:[c?.sx]],label:s(v,{noWrap:!0,fontFamily:"inherit",fontSize:t,variant:"subtitle1",...l,children:o}),...c})}),So=e=>s(Eo,{fontSize:16,sx:e=>({backgroundColor:e.palette.common.white,"& .MuiChip-label":{pl:.75}}),...e}),Io={"green-spaces":{icon:s(_t,{}),name:"parks"},"food-and-drink":{icon:s(At,{}),name:"restaurants"},shopping:{icon:s(bt,{}),name:"shopping"},education:{icon:s(yt,{}),name:"schools"},fitness:{icon:s(wt,{}),name:"gyms"},"public-transport":{icon:s(Rt,{}),name:"public transport"},landform:{icon:s(vt,{}),name:"beaches"}},Mo={OUTSTANDING:{threshold:9,getCopy:e=>`Ideal for ${e}`},GREAT:{threshold:7,getCopy:e=>`Great for ${e}`},GOOD:{threshold:5,getCopy:e=>`Good for ${e}`}},Po=e=>{const t=Object.keys(e);if(!t.length)return[];const i=Object.keys(Mo);return t.filter(t=>e[t]>=Mo.GOOD.threshold).map(t=>{const n=e[t],r=i.find(e=>n>=Mo[e].threshold),{getCopy:o}=Mo[r||"GOOD"],s=Io[t];return{id:t,icon:s?.icon,label:s?.name?o(s?.name):`${t} (Unknown)`,score:n}}).sort((e,t)=>t.score-e.score)},Do=e=>{let{scores:t}=e;const i=Po(t);return i.length?s(b,{gap:1,direction:"row",flexWrap:"wrap",children:i.map((e,t)=>s(Eo,{fontSize:14,...e,sx:{maxWidth:"fit-content"}},`${e?.label}-${t}`))}):s(l,{})},Lo=(e,t)=>`${t} ${e}${t<2?"":"s"}`,zo=e=>{let t,{bedrooms:i=0,isShared:n=!1,disablePlural:r=!1,isShort:o=!1,disableText:s=!1}=e;return t=n?"Room":i?s?`${i}`:r?`${i} ${o?"Bed":"Bedroom"}`:Lo(o?"Bed":"Bedroom",i):s?"St":"Studio",t},Oo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"AED",i="";return i=e>0?new Intl.NumberFormat("en-Gb",{style:"currency",currency:t,minimumFractionDigits:0,maximumFractionDigits:0}).format(e):"POA",i};var Ro;!function(e){e.Rent="rent",e.Sale="sale"}(Ro||(Ro={}));const ko=e=>{let{property:t,loading:i,currency:n,id:r,disableCarousel:o=!1,isPopover:c=!1,isMapPopover:h=!1,children:u,header:d,tagColor:p="success",sx:f,onClick:m}=e;const _=t?.listing_type===Ro.Rent,A=0!==t?.price;return a(g,{id:r,sx:[e=>({display:"flex",flexDirection:"column",overflow:"hidden",borderRadius:c&&!h?0:h?"10px":"20px",transition:e.transitions.create("boxShadow"),textDecoration:"none",WebkitTapHighlightColor:"transparent !important",...m&&{cursor:"pointer"},"&:hover":{boxShadow:"0px 11px 30px rgba(82, 78, 183, 0.08)"}}),...Array.isArray(f)?f:[f]],...m?{onClick:m}:{},children:[s(g,{position:"relative",display:"flex",flexDirection:"column",overflow:"hidden",children:i?s(z,{variant:"rectangular",width:"100%",height:"200px"}):a(l,{children:[c||o||1===t?.images.length||t?.image_url?s(g,t?.images?.[0]??t?.image_url?{component:"img",src:t?.images?.[0]??t?.image_url,sx:{objectFit:"cover",aspectRatio:"16/9"}}:{position:"relative",sx:{objectFit:"cover",aspectRatio:"16/9",overflow:"hidden"},children:s(rr,{})}):s(g,{id:r,position:"relative",sx:{objectFit:"cover",aspectRatio:"16/9",overflow:"hidden"},children:s(To,{id:r,lazyLoad:"progressive",images:t?.images||[],sx:{width:"100%",height:"100%"},imageSX:{backgroundColor:"rgba(51, 51, 51, 0.1)"}})}),d&&s(b,{direction:"row",sx:{position:"absolute",top:10,left:10,right:10,gap:1,zIndex:2,lineHeight:"27px"},flexWrap:"nowrap",justifyContent:"space-between",alignItems:"flex-start",children:d})]})}),a(b,{direction:"column",gap:"10px",padding:c?"10px 12px 12px":"10px 12px 24px",children:[i?s(z,{variant:"rectangular",width:"100%",height:"18"}):a(b,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[a(v,{noWrap:c,variant:"h5",sx:c?{maxWidth:"60%",fontSize:16,fontWeight:400}:{fontSize:18},children:["string"==typeof t?.price?t?.price:Oo(t?.price||0,n),_&&A&&!c?" Yearly":""]}),s(Eo,{fontSize:14,color:p,icon:s(Ct,{}),variant:"outlined",label:zo({bedrooms:t?.num_bedrooms,isShared:t?.is_shared,isShort:!0,disableText:h}),sx:e=>({border:"none",backgroundColor:O(e.palette[p].main,.1)})})]}),i?s(z,{variant:"rectangular",width:"100%",height:"18"}):s(v,{noWrap:!0,variant:"body2",color:"text.secondary",sx:e=>({[e.breakpoints.down("sm")]:{fontSize:"16px"}}),children:t?.displayable_address}),i?s(z,{variant:"rectangular",width:"100%",height:"18"}):u]})]})},Bo=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s";return`${e?.toLocaleString?.()} ${t}${1!==e?i:""}`},Fo=e=>e?.length>0?e[0].toUpperCase()+e.slice(1).toLowerCase():"",No=e=>{const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})},Vo=e=>{let{loading:t=!1,sortValue:i,totalCount:n,badgeContent:r,small:o=!1,showSortMenu:l=!1,title:c,onClickFilters:u,updateSortingValue:d}=e;const p=h(e=>e.breakpoints.down("lg"));return s(g,{pt:[3,4,5],px:[2,4.5,3],pl:[2,4.5,4.5],pb:1,bgcolor:"white",position:"sticky",sx:{top:0,zIndex:5},children:a(b,{direction:"row",alignItems:"center",sx:e=>({gap:2,paddingBottom:"6px",borderBottom:[`1px solid ${e.palette.grey[400]}`,"none"]}),children:[s(v,{flex:1,variant:"h3",sx:{display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical",overflow:"hidden"},children:c}),a(b,{gap:1,children:[a(g,{display:"flex",alignItems:"center",children:[s(kt,{badgeContent:r,small:p||o,onClick:u}),l&&s(Vt,{small:p||o,sortValue:i,updateSortingValue:d})]}),!t&&!(p||o)&&s(v,{component:"div",mt:1,mr:1.5,textAlign:"right",children:void 0!==n&&`${Bo(n,1!==n?"Propert":"Property","ies")}`})]})]})})},jo=new Array(4).fill(void 0),Uo=e=>{let{title:t,loading:i,sortValue:n,showSortMenu:r,badgeContent:o,properties:c,loadMoreLoading:h,onLoadMore:u,totalCount:d,onClickMapButton:p,renderItem:f,onClickFilters:m,updateSortingValue:_}=e;return a(b,{flex:1,children:[s(Vo,{showSortMenu:r,sortValue:n,totalCount:d,badgeContent:o,title:t,loading:i,onClickFilters:m,updateSortingValue:_}),a(b,{flex:1,overflow:"auto",p:[2,2,1],pr:[2,2,1],pt:0,children:[!i&&!c?.length&&s(g,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",mt:2,pb:10,children:a(v,{variant:"h4",align:"center",children:["Oops! ",s("br",{}),"Looks like we don't have properties matching your needs"]})}),s(g,{sx:{display:"grid",gap:3,gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gridAutoRows:"min-content",mb:3,px:[0,2]},children:i?jo.map((e,t)=>s(ko,{loading:!0},t)):c?.map((e,t)=>s(_e,{children:f?.({property:e},t)||s(l,{})},e?.id))}),u&&s(at,{shape:"srect",variant:"outlined",disabled:h,onClick:u,sx:{margin:"0 auto",marginBottom:["100px",0]},children:h?s(R,{size:24}):"Load More"})]}),s(at,{color:"success",shape:"srect",sx:{position:"sticky",bottom:14,left:"50%",transform:"translateX(-50%)",display:["flex","none"],zIndex:2},onClick:p,children:"Show Map"})]})},Ho=[void 0,1,2,3,4],Go=e=>{let{selected:t,onClick:i}=e;return a(Fe,{children:[s(Re,{variant:"h4",color:"text.secondary",mb:1,children:"Bedrooms"}),s(Be,{direction:"row",justifyContent:"space-between",flexWrap:"wrap",gap:.5,children:Ho.map(e=>s(at,{shape:"square",onClick:()=>i(e),variant:e===t?"contained":"outlined",children:void 0===e?"Studio+":`${e}+`},e??"studio"))})]})},Zo=e=>e.replace(/,/g,""),Wo=e=>{const t=parseInt(Zo(e));return isNaN(t)?void 0:t},qo=e=>{if(""===e)return"";const t="number"==typeof e?e:parseFloat(e);return new Intl.NumberFormat("en-US").format(t)},Xo=e=>{let{title:t="Price",minPrice:i,maxPrice:n,onSubmit:r}=e;const[o,l]=pe(i?.toString()??""),[c,h]=pe(n?.toString()??"");fe(()=>{l(i?.toString()??""),h(n?.toString()??"")},[i,n]);const u=e=>{const t=Zo(e.target.value),i=parseInt(t);isNaN(i)&&""!==e.target.value||("min-price"===e.target.name?l(t):h(t))},d=()=>{const e=o?Wo(o):void 0,t=c?Wo(c):void 0;if(e&&t&&e>t)return l(t.toString()),h(e.toString()),void r(t,e);r(e,t)};return a(g,{width:"100%",textAlign:"left",children:[a(v,{variant:"h4",color:"text.secondary",mb:.5,children:[t," (",process.env.NEXT_PUBLIC_CURRENCY,")"]}),a(Be,{direction:"row",gap:[.5,2],children:[a(g,{flex:1,children:[s(v,{variant:"body1",fontSize:"14px",color:"#767676",children:"Min"}),s(Ve,{value:qo(o),onChange:u,onBlur:d,fullWidth:!0,color:"secondary",placeholder:"0",name:"min-price",autoComplete:"min-price"})]}),s(g,{sx:{width:"18px",marginBottom:"26px",borderBottom:"1px solid #6D747C"}}),a(g,{flex:1,children:[s(v,{variant:"body1",fontSize:"14px",color:"#767676",children:"Max"}),s(Ve,{value:qo(c),onChange:u,onBlur:d,fullWidth:!0,color:"secondary",placeholder:"Any",name:"max-price",autoComplete:"max-price"})]})]})]})},$o=[{label:"Rent",value:"rent"},{label:"Buy",value:"sale"}],Yo=e=>{let{selected:t,options:i=$o,title:n="Purpose",onChange:r}=e;return a(g,{children:[s(Re,{variant:"h4",color:"text.secondary",mb:1,children:n}),s(b,{direction:"row",gap:1.5,children:i?.map(e=>s(at,{variant:t===e.value?"contained":"outlined",sx:{maxWidth:100},onClick:()=>r(e.value),children:e.label},e.label))})]})},Qo=[{label:"Apartment",value:"apartment"},{label:"Villa",value:"villa"},{label:"Townhouse",value:"townhouse"},{label:"Penthouse",value:"penthouse"},{label:"Hotel Apartment",value:"hotel_apartment"},{label:"Villa Compound",value:"villa_compound"},{label:"Residential Floor",value:"residential_floor"},{label:"Residential Building",value:"residential_building"}],Ko=e=>{let{selected:t=[],options:i=Qo,title:n="Property Type",onChange:r}=e;return a(g,{children:[s(Re,{variant:"h4",color:"text.secondary",mb:1.5,children:n}),s(b,{direction:"row",alignItems:"center",flexWrap:"wrap",gap:1,children:i?.map(e=>s(je,{invisible:!t?.includes(e.value),badgeContent:s(De,{color:"primary",sx:{fontSize:20}}),sx:{"& .MuiBadge-badge":{p:0,width:18,height:18,top:5,right:5,backgroundColor:"white"}},children:s(at,{variant:"outlined",sx:i=>({...t?.includes(e.value)?{borderColor:i.palette.primary.main+"!important"}:{},"&:hover":{borderColor:i.palette.primary.main+"!important"},"&:active":{borderColor:i.palette.primary.main+"!important"}}),onClick:()=>{return i=e.value,void(t&&t?.includes(i)?r(t?.filter(e=>e!==i)||[]):r([...t||[],i]));var i},children:s(g,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",component:"span",children:s(Re,{variant:"subtitle2",children:e?.label})})})},e.value))})]})},Jo=[{icon:e=>{let{sx:t={},...i}=e;return s(d,{width:"40",height:"40",viewBox:"0 0 40 40",sx:{fill:"none",...t},...i,children:s("path",{d:"M2.36975 38H37.8698M10.3698 18V38M8 23L10.3698 25.5M12 19L10.3698 21M32.8698 27.5V38M16.3698 10.5C15.8698 7.5 18.3698 6 19.8698 5.99997C20.9878 5.99995 20.3698 2 24.3698 2C27.5698 2 28.3698 4.66665 28.3698 5.99997C29.3698 5.99997 30.8698 6.49997 31.3698 7.5C31.8698 8.50003 31.8698 9.5 31.3698 10.5C32.7031 11.1667 34.6698 12.8 33.8698 16C33.0698 19.2 32.156 18.7632 31.656 19.1632M18.3698 21C19.3698 22.5 21.3698 22.5 22.3698 22C23.1698 21.6 24.0364 20.8333 24.3698 20.5C25.0364 21.3333 26.4149 22.4 28.4149 22M24.3698 14V38M24.3698 18.5L22.5 16.5M10.3697 29C4.86975 29 -0.630255 24 3.36974 12.5C5.97844 5 7.86975 2 10.3697 2C12.8697 2 15.3698 7 17.3698 13.5C20.3471 23.1765 15.3698 29 10.3697 29ZM37.8698 24.5C37.8698 27.5376 35.6312 30 32.8698 30C30.1083 30 27.8698 27.5376 27.8698 24.5C27.8698 21.4624 30.1083 19 32.8698 19C35.6312 19 37.8698 21.4624 37.8698 24.5Z",stroke:"#2E3841",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})},title:"Green Spaces",display_name:"Green Spaces",slug:"green-spaces"},{icon:e=>{let{sx:t={},...i}=e;return s(d,{width:"32",height:"38",viewBox:"0 0 32 38",sx:{fill:"none",...t},...i,children:s("path",{d:"M16.2728 20.2681L16.2852 20.3H16.3194H18.0154H18.0891L18.0619 20.2315L13.5499 8.88753L13.5373 8.85601H13.5034H11.6954H11.6615L11.649 8.88753L7.13695 20.2315L7.10971 20.3H7.18341H8.86341H8.89794L8.91017 20.2677L10.0979 17.132H15.0532L16.2728 20.2681ZM23.9092 19.3709C23.9158 19.686 23.9421 19.9817 23.9882 20.2582L23.9952 20.3H24.0375H25.5095H25.5686L25.5589 20.2418C25.4954 19.8609 25.4635 19.4424 25.4635 18.986V15.13C25.4635 14.2971 25.1981 13.612 24.6651 13.0789C24.1295 12.5324 23.3087 12.264 22.2135 12.264C21.3716 12.264 20.6458 12.5017 20.0389 12.9785C19.431 13.4454 19.0879 14.0551 19.0118 14.805L19.0074 14.8487L19.0502 14.8587L20.4902 15.1947L20.5449 15.2075L20.5512 15.1517C20.6034 14.6922 20.775 14.3306 21.0636 14.0627L21.0642 14.062C21.3515 13.785 21.7433 13.644 22.2455 13.644C22.7934 13.644 23.1951 13.7705 23.4596 14.0147C23.7259 14.2605 23.8595 14.5775 23.8595 14.97C23.8595 15.1248 23.8138 15.2414 23.7267 15.3262C23.6384 15.412 23.5021 15.4706 23.3108 15.4965L23.3103 15.4965L21.2308 15.8005C21.2307 15.8005 21.2306 15.8005 21.2305 15.8005C20.5186 15.8976 19.943 16.1518 19.5073 16.5655C19.0692 16.971 18.8515 17.513 18.8515 18.186C18.8515 18.8298 19.0977 19.3866 19.587 19.8542L19.5874 19.8546C20.0781 20.3125 20.7096 20.54 21.4775 20.54C22.1028 20.54 22.6246 20.4107 23.0399 20.1485C23.04 20.1484 23.0401 20.1483 23.0402 20.1483L23.9092 19.3709ZM5.4801 0.95C4.47371 0.95 3.33722 1.23956 2.44028 2.02222C1.52232 2.82322 0.95 4.05825 0.95 5.75V33.25C0.95 34.5782 1.21072 35.7409 2.08983 36.5321C2.94415 37.301 4.20211 37.55 5.75 37.55H30.75C31.1918 37.55 31.55 37.1918 31.55 36.75C31.55 36.3082 31.1918 35.95 30.75 35.95H5.75C4.29788 35.95 3.55585 35.699 3.16017 35.3429C2.78921 35.009 2.55 34.4217 2.55 33.25V32.75C2.55 31.7398 2.94244 31.0921 3.44409 30.6817C3.97071 30.2508 4.66007 30.05 5.25 30.05H30.75C31.1918 30.05 31.55 29.6918 31.55 29.25V1.75C31.55 1.30817 31.1918 0.95 30.75 0.95H5.4801ZM5.4801 2.55H29.95V28.45H5.25C4.38204 28.45 3.37712 28.7222 2.55 29.3495V5.75C2.55 4.44182 2.97763 3.67682 3.49224 3.22778C4.02787 2.76041 4.75645 2.55 5.4801 2.55ZM14.4545 15.576H10.6959L12.5598 10.6776L14.4545 15.576ZM23.2682 18.6447C22.8741 18.9974 22.3483 19.176 21.6855 19.176C21.3232 19.176 21.0324 19.0678 20.8085 18.8542C20.5935 18.6391 20.4875 18.3904 20.4875 18.106C20.4875 17.7863 20.5851 17.5391 20.7759 17.3583C20.9696 17.1748 21.2314 17.0556 21.565 17.0035C21.5651 17.0034 21.5652 17.0034 21.5653 17.0034L23.8595 16.66V16.954C23.8595 17.7357 23.6589 18.2952 23.2682 18.6447Z",fill:"#2E3841",stroke:"#2E3841",strokeWidth:"0.1"})})},title:"Schools",display_name:"Schools",slug:"education"},{icon:e=>{let{sx:t={},...i}=e;return a(d,{width:"36",height:"37",viewBox:"0 0 36 37",sx:{fill:"none",...t},...i,children:[s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.4737 26.4677C20.0177 26.4286 17.1728 26.3964 14.2632 28.9422C13.9511 29.2153 13.4767 29.1837 13.2036 28.8716C12.9305 28.5595 12.9621 28.0851 13.2743 27.812C16.639 24.8678 20.0683 24.9157 23.5051 24.9637C23.9405 24.9698 24.3761 24.9759 24.8116 24.9759H33.2042C33.619 24.9759 33.9552 25.3121 33.9552 25.7268C33.9552 26.1415 33.619 26.4777 33.2042 26.4777H24.8116C24.355 26.4777 23.9095 26.4727 23.4737 26.4677Z",fill:"#414141"}),s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5312 15.7247L25.5066 25.4425L24.1166 26.0111L20.1412 16.2934L21.5312 15.7247Z",fill:"#414141"}),s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.3832 7.67001C24.502 6.41616 20.8505 5.76275 17.5661 6.99438C13.9403 8.35405 11.5255 11.2746 10.2288 13.9937C9.58079 15.3525 9.22994 16.6249 9.13862 17.5779C9.09263 18.0578 9.11618 18.4191 9.17544 18.6566C9.2125 18.8051 9.25163 18.8639 9.26508 18.8808L9.28753 18.892L9.3052 18.9038C9.3198 18.9074 9.3731 18.9201 9.48679 18.9217C9.66453 18.9241 9.91499 18.8989 10.2464 18.8364C10.9075 18.7116 11.7831 18.4597 12.8394 18.1102C14.25 17.6434 15.9195 17.0243 17.7444 16.3476C18.6551 16.0099 19.6045 15.6579 20.5796 15.3033C21.8088 14.8563 23.1736 14.4108 24.5187 13.9762C24.6768 13.9251 24.8346 13.8742 24.9919 13.8234C26.1781 13.4407 27.3352 13.0673 28.3741 12.7049C29.5571 12.2923 30.5502 11.9061 31.239 11.5521C31.5866 11.3734 31.8184 11.222 31.953 11.1034C31.9674 11.0908 31.9796 11.0794 31.99 11.0694C31.9859 11.0582 31.9811 11.0458 31.9753 11.0321C31.9396 10.948 31.8777 10.8375 31.7799 10.7023C31.5833 10.4308 31.2754 10.1065 30.857 9.75402C30.0225 9.05109 28.8166 8.29381 27.3832 7.67001ZM32.9963 9.82161C33.2709 10.2008 33.5135 10.6637 33.5135 11.1501C33.5135 11.6508 33.1915 12.0139 32.9457 12.2304C32.6749 12.469 32.3166 12.6868 31.9256 12.8878C31.1375 13.2929 30.0601 13.7074 28.8688 14.1229C27.8119 14.4916 26.6365 14.8709 25.4529 15.2528C25.2955 15.3036 25.1379 15.3544 24.9804 15.4053C23.6338 15.8404 22.2931 16.2783 21.0928 16.7147C20.143 17.0601 19.2068 17.4072 18.3018 17.7428C16.4597 18.4258 14.7469 19.0609 13.3112 19.536C12.2398 19.8905 11.2873 20.1682 10.5249 20.3121C10.1446 20.3839 9.78445 20.4278 9.4659 20.4234C9.17919 20.4194 8.83226 20.3762 8.53421 20.1936C8.05761 19.936 7.82647 19.4538 7.71828 19.0201C7.60323 18.559 7.58826 18.0124 7.64363 17.4346C7.75503 16.2721 8.16646 14.8292 8.87324 13.3472C10.2861 10.3845 12.9511 7.12106 17.0388 5.58816C20.8219 4.16951 24.9005 4.9517 27.9824 6.29293C29.5306 6.96668 30.8646 7.79681 31.8245 8.60537C32.3033 9.00868 32.7064 9.42108 32.9963 9.82161Z",fill:"#414141"}),s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3271 2.85143C16.7143 2.70304 17.1486 2.89669 17.2969 3.28396L18.3571 6.05092L16.9547 6.58827L15.8945 3.82131C15.7461 3.43405 15.9398 2.99981 16.3271 2.85143Z",fill:"#414141"}),s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.3933 30.2796C27.7242 30.2492 28.0357 30.44 28.1591 30.7485C28.295 31.0882 29.13 32.485 33.2042 32.485C33.619 32.485 33.9552 32.8212 33.9552 33.236C33.9552 33.6507 33.619 33.9869 33.2042 33.9869C29.9879 33.9869 28.2775 33.1623 27.412 32.2764C27.0703 32.5578 26.6304 32.8348 26.1413 33.0794C25.1512 33.5745 23.8571 33.9869 22.6031 33.9869C21.3457 33.9869 20.0864 33.5725 19.1146 33.0766C18.6247 32.8267 18.1875 32.5458 17.843 32.2654C17.8004 32.2307 17.7575 32.1947 17.7148 32.1574C17.6695 32.1958 17.6234 32.2336 17.5767 32.2707C17.2323 32.5446 16.8049 32.8234 16.3242 33.0737C15.3707 33.5704 14.1462 33.9869 12.8853 33.9869C10.8744 33.9869 9.31825 32.9358 8.43344 32.0921C8.06493 32.4098 7.57502 32.7678 6.91622 33.0845C5.84329 33.6003 4.36739 33.9869 2.28412 33.9869C1.8694 33.9869 1.5332 33.6507 1.5332 33.236C1.5332 32.8212 1.8694 32.485 2.28412 32.485C4.1763 32.485 5.42431 32.1354 6.26548 31.731C7.10397 31.3279 7.58286 30.8507 7.93717 30.4964C8.0882 30.3454 8.2964 30.2658 8.50967 30.2776C8.72294 30.2894 8.92108 30.3915 9.05451 30.5583C9.57707 31.2115 11.0038 32.485 12.8853 32.485C13.833 32.485 14.8171 32.1654 15.6304 31.7417C16.0332 31.532 16.3787 31.3046 16.6418 31.0954C16.9189 30.8749 17.0581 30.7112 17.1003 30.641C17.2471 30.3964 17.5198 30.2561 17.8042 30.2789C18.0885 30.3016 18.3354 30.4836 18.4414 30.7485C18.4413 30.7483 18.4416 30.7487 18.4421 30.7496C18.4506 30.7628 18.5317 30.8895 18.7911 31.1007C19.0402 31.3034 19.3851 31.5287 19.7971 31.7388C20.6289 32.1632 21.6518 32.485 22.6031 32.485C23.5576 32.485 24.6193 32.1613 25.4697 31.7361C25.8913 31.5253 26.2352 31.3022 26.4705 31.1062C26.5884 31.0079 26.6658 30.9274 26.7106 30.8702C26.7229 30.8545 26.731 30.8428 26.736 30.8351C26.8162 30.532 27.0778 30.3086 27.3933 30.2796Z",fill:"#414141"})]})},title:"Beaches",display_name:"Beaches",slug:"landform"},{icon:Lt,title:"Public Transport",display_name:"Public Transport",slug:"public-transport"},{icon:e=>{let{sx:t={},...i}=e;return s(d,{width:"41",height:"41",viewBox:"0 0 41 41",sx:{fill:"none",...t},...i,children:s("path",{d:"M14.1362 4.35739V11.4797M16.9851 4.35739V11.4797M11.2872 4.83223C14.1362 3.88259 16.5103 3.88259 19.3592 4.83223C20.3088 8.15597 20.7836 14.8034 19.834 16.2279C18.8844 17.6524 16.9851 17.6524 16.9851 19.5516C16.9851 20.5013 17.4599 28.0984 17.4599 29.9977C17.4599 31.897 17.4599 37.12 15.5606 37.12C13.6613 37.12 13.6613 33.3214 13.6613 29.9977C13.6613 26.674 14.1362 20.0265 14.1362 19.5516C14.1362 19.0768 14.611 18.602 11.7621 16.7027C8.91315 14.8034 11.2872 5.78187 11.2872 4.83223ZM24.5822 4.35739V21.9257C24.5822 23.3502 23.6326 37.12 24.5822 37.12C25.5318 37.12 27.9059 35.6955 27.9059 30.4725C27.9059 25.2495 26.4815 24.2998 26.4815 21.9257C26.4815 19.5516 29.8052 16.7027 29.8052 12.9041C29.8052 7.65959 26.4815 5.62357 24.5822 4.35739Z",stroke:"#2E3841",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})},title:"Restaurants & Cafes",display_name:"Restaurants & Cafes",slug:"food-and-drink"},{icon:e=>{let{sx:t={},...i}=e;return a(d,{width:"41",height:"41",viewBox:"0 0 41 41",sx:{fill:"none",...t},...i,children:[s("g",{clipPath:"url(#clip0_2157_1693)",children:s("path",{d:"M16.4908 17.1047C16.0214 17.1047 15.6408 17.4852 15.6408 17.9547C15.6408 18.4241 16.0214 18.8047 16.4908 18.8047V17.1047ZM24.7727 18.8047C25.2421 18.8047 25.6227 18.4241 25.6227 17.9547C25.6227 17.4852 25.2421 17.1047 24.7727 17.1047V18.8047ZM16.184 22.2808C15.7146 22.2808 15.334 22.6614 15.334 23.1308C15.334 23.6003 15.7146 23.9808 16.184 23.9808V22.2808ZM24.7727 23.9808C25.2421 23.9808 25.6227 23.6003 25.6227 23.1308C25.6227 22.6614 25.2421 22.2808 24.7727 22.2808V23.9808ZM26.9467 8.97H29.8453V7.27H26.9467V8.97ZM30.6517 9.77636V31.3092H32.3517V9.77636H30.6517ZM29.8453 32.1155H26.9467V33.8155H29.8453V32.1155ZM26.1403 31.3092V9.77636H24.4403V31.3092H26.1403ZM26.9467 32.1155C26.5013 32.1155 26.1403 31.7545 26.1403 31.3092H24.4403C24.4403 32.6934 25.5624 33.8155 26.9467 33.8155V32.1155ZM30.6517 31.3092C30.6517 31.7545 30.2906 32.1155 29.8453 32.1155V33.8155C31.2295 33.8155 32.3517 32.6934 32.3517 31.3092H30.6517ZM29.8453 8.97C30.2906 8.97 30.6517 9.33102 30.6517 9.77636H32.3517C32.3517 8.39213 31.2295 7.27 29.8453 7.27V8.97ZM26.9467 7.27C25.5624 7.27 24.4403 8.39213 24.4403 9.77636H26.1403C26.1403 9.33102 26.5013 8.97 26.9467 8.97V7.27ZM31.5017 12.0757H34.9179V10.3757H31.5017V12.0757ZM35.7243 12.8821V28.2035H37.4243V12.8821H35.7243ZM34.9179 29.0098H31.5017V30.7098H34.9179V29.0098ZM35.7243 28.2035C35.7243 28.6488 35.3633 29.0098 34.9179 29.0098V30.7098C36.3022 30.7098 37.4243 29.5877 37.4243 28.2035H35.7243ZM34.9179 12.0757C35.3633 12.0757 35.7243 12.4367 35.7243 12.8821H37.4243C37.4243 11.4978 36.3022 10.3757 34.9179 10.3757V12.0757ZM36.6778 18.2871H38.0236V16.5871H36.6778V18.2871ZM38.83 19.0934V21.9921H40.53V19.0934H38.83ZM38.0236 22.7985H36.6778V24.4985H38.0236V22.7985ZM38.83 21.9921C38.83 22.4374 38.469 22.7985 38.0236 22.7985V24.4985C39.4078 24.4985 40.53 23.3763 40.53 21.9921H38.83ZM38.0236 18.2871C38.469 18.2871 38.83 18.6481 38.83 19.0934H40.53C40.53 17.7092 39.4078 16.5871 38.0236 16.5871V18.2871ZM14.2133 7.27H11.3147V8.97H14.2133V7.27ZM8.8083 9.77636V31.3092H10.5083V9.77636H8.8083ZM11.3147 33.8155H14.2133V32.1155H11.3147V33.8155ZM16.7197 31.3092V9.77636H15.0197V31.3092H16.7197ZM14.2133 33.8155C15.5975 33.8155 16.7197 32.6934 16.7197 31.3092H15.0197C15.0197 31.7545 14.6587 32.1155 14.2133 32.1155V33.8155ZM8.8083 31.3092C8.8083 32.6934 9.93044 33.8155 11.3147 33.8155V32.1155C10.8693 32.1155 10.5083 31.7545 10.5083 31.3092H8.8083ZM11.3147 7.27C9.93044 7.27 8.8083 8.39213 8.8083 9.77636H10.5083C10.5083 9.33102 10.8693 8.97 11.3147 8.97V7.27ZM14.2133 8.97C14.6587 8.97 15.0197 9.33102 15.0197 9.77636H16.7197C16.7197 8.39213 15.5975 7.27 14.2133 7.27V8.97ZM9.6583 10.3757H6.24204V12.0757H9.6583V10.3757ZM3.73567 12.8821V28.2035H5.43567V12.8821H3.73567ZM6.24204 30.7098H9.6583V29.0098H6.24204V30.7098ZM3.73567 28.2035C3.73567 29.5877 4.85781 30.7098 6.24204 30.7098V29.0098C5.7967 29.0098 5.43567 28.6488 5.43567 28.2035H3.73567ZM6.24204 10.3757C4.85781 10.3757 3.73567 11.4978 3.73567 12.8821H5.43567C5.43567 12.4367 5.7967 12.0757 6.24204 12.0757V10.3757ZM4.48215 16.5871H3.13635V18.2871H4.48215V16.5871ZM0.62998 19.0934V21.9921H2.32998V19.0934H0.62998ZM3.13635 24.4985H4.48215V22.7985H3.13635V24.4985ZM0.62998 21.9921C0.62998 23.3763 1.75212 24.4985 3.13635 24.4985V22.7985C2.691 22.7985 2.32998 22.4374 2.32998 21.9921H0.62998ZM3.13635 16.5871C1.75212 16.5871 0.62998 17.7092 0.62998 19.0934H2.32998C2.32998 18.6481 2.691 18.2871 3.13635 18.2871V16.5871ZM16.4908 18.8047H24.7727V17.1047H16.4908V18.8047ZM16.184 23.9808H24.7727V22.2808H16.184V23.9808Z",fill:"#2E3841"})}),s("defs",{children:s("clipPath",{id:"clip0_2157_1693",children:s("rect",{width:"40",height:"40",fill:"white",transform:"translate(0.47998 0.119995)"})})})]})},title:"Fitness",display_name:"Fitness",slug:"fitness"},{icon:e=>{let{sx:t={},...i}=e;return s(d,{width:"41",height:"41",viewBox:"0 0 41 41",sx:{fill:"none",...t},...i,children:s("path",{d:"M4.33076 8.31819V4.12H36.8668V8.31819H20.5988H4.33076ZM4.33076 8.31819C3.45614 11.4668 2.65148 17.7641 6.42985 17.7641C7.47941 17.7641 9.05373 17.2394 9.05373 16.7146C10.1033 18.2889 13.7767 18.2889 14.8263 16.7146C15.8758 18.2889 19.5492 18.2889 20.5988 16.7146C22.1731 19.3385 25.8465 17.7641 26.3713 16.7146C26.8961 18.2889 31.0943 18.8137 32.1438 16.7146M36.8707 8.31819C37.7453 11.4668 38.5461 18.079 34.7677 18.079C33.7181 18.079 32.1438 17.2394 32.1438 16.1898M4.33076 17.2394V36.656H36.8668V17.2394M25.3218 36.1313V21.9623H32.6686V36.1313M8.52896 21.9623V31.9331H21.1236V21.9623H8.52896Z",stroke:"#2E3841",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})},title:"Shops & Supermarkets",display_name:"Shops & Supermarkets",slug:"shopping"}],es=e=>{let{disableTitle:t,selected:i=[],options:n=Jo,title:r="Lifestyle Preferences",onChange:o,...l}=e;return a(g,{children:[!t&&s(Re,{variant:"h4",color:"text.secondary",mb:1.5,children:r}),s(b,{direction:"row",alignItems:"center",flexWrap:"wrap",gap:[3,1.3,1.3],sx:e=>({[e.breakpoints.down("sm")]:{maxWidth:"84%",margin:"0 auto"},"@media (max-width: 430px)":{maxWidth:"81%"},"@media (max-width: 415px)":{maxWidth:"84%"},"@media (max-width: 400px)":{maxWidth:"94%"},"@media (max-width: 360px)":{maxWidth:"100%"},"@media (max-width: 320px)":{maxWidth:"97.5%"},"@media (max-width: 280px)":{maxWidth:"50%"}}),...l,children:n?.map((e,t)=>{let{icon:n,...r}=e;return s(je,{invisible:!i?.includes(r.slug),badgeContent:s(De,{color:"primary",sx:{fontSize:30}}),sx:{"& .MuiBadge-badge":{p:0,width:25,height:25,top:5,right:5,backgroundColor:"white"}},children:s(at,{variant:"outlined",sx:e=>({width:107,px:.5,height:97,color:e.palette.text.primary,...i?.includes(r.slug)?{borderColor:e.palette.primary.main+"!important"}:{},"&:hover":{borderColor:e.palette.primary.main+"!important"},[e.breakpoints.down("sm")]:{width:132,height:121},"@media (max-width: 320px)":{width:110,height:97}}),onClick:()=>{return e=r.slug,void(i&&i?.includes(e)?o(i?.filter(t=>t!==e)||[]):o([...i||[],e]));var e},children:a(g,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",component:"span",children:["string"==typeof n&&n?.length>0&&s(g,{component:"span",width:35,height:35,dangerouslySetInnerHTML:{__html:n}}),"string"!=typeof n&&s(n,{sx:{fontSize:35}}),s(Re,{variant:"subtitle2",children:r?.display_name||r?.title})]})})},`${r.title}-${t}`)})})]})},ts=i(e=>{let{className:t,...i}=e;return s(k,{...i,arrow:!0,classes:{popper:t}})})(e=>{let{theme:t,maxWidth:i,placement:n}=e;return{[`& .${B.arrow}`]:{color:"#2E3841",[t.breakpoints.down("md")]:"bottom"===n?{marginLeft:t.spacing(-1.25)+" !important"}:{}},[`& .${B.tooltip}`]:{padding:t.spacing(1.5,2),backgroundColor:"#2E3841",borderRadius:"15px",...i?{maxWidth:i}:{},[t.breakpoints.down("md")]:"bottom"===n||"top"===n?{marginLeft:t.spacing(5.5)+" !important"}:{},[t.breakpoints.down("sm")]:"bottom"===n||"top"===n?{marginLeft:t.spacing(3)+" !important"}:{},"@media (max-width: 320px)":{maxWidth:270}}}}),is=e=>{let{disableTooltip:t=!1,placement:i="right",open:n=!1,maxWidth:r=292,title:o,children:a,closeTooltip:l,sx:c={},boxSx:h={},...u}=e;const[d,p]=pe(n),f=()=>{p(!1),l?.()},_=e=>{e.preventDefault(),e.stopPropagation(),p(!0)};return fe(()=>{t||(n?(p(!0),setTimeout(()=>{p(!1),l?.()},3500)):p(!1))},[n]),t?a:s(ts,{open:d,title:o,leaveTouchDelay:4e3,enterTouchDelay:50,placement:i,onClose:f,onOpen:_,maxWidth:r,sx:c,...u,children:s(g,{component:"span",maxWidth:"fit-content",sx:[...Array.isArray(h)?h:[h]],onClick:_,children:s(m,{disableReactTree:!0,onClickAway:f,children:a})})})},ns=e=>{let{sx:t={},children:i}=e;return s(v,{component:g,variant:"h6",sx:t,children:i})},rs=e=>{let{error:t}=e;return t?s(v,{align:"center",color:"error",fontSize:12,lineHeight:"15.6px",sx:{pt:.5},children:t}):null},os=D(F)(e=>{let{multiline:t}=e;return{fontFamily:"Poppins","& input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},'& input[type="number"]':{MozAppearance:"textfield"},".MuiOutlinedInput-root":{fontFamily:"Poppins",borderRadius:t?"20px":"100px","input::-webkit-outer-spin-button, input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},'input[type="number"]':{MozAppearance:"textfield"}},".MuiFormHelperText-root":{textAlign:"center"}}}),ss=be((e,t)=>{let{minWidth:i,isClearable:r=!1,disabled:o=!1,fullWidth:l=!0,showTooltip:c=!1,openTooltip:u=!1,closeTooltip:d,tooltipTitle:p,type:f="text",label:m=null,sublabel:_=null,helperText:A,error:y,name:x="",defaultValue:C,onChange:T,InputProps:E={},wrapperSx:S={},...I}=e;const M=n(),P=h(M.breakpoints.down("sm")),D=h(M.breakpoints.between("sm","md")),[L,z]=pe(C),O=ge(!1);return fe(()=>{C&&!L&&z(`${C}`)},[C]),a(b,{gap:.5,flex:1,sx:S,children:[m&&s(is,{disableTooltip:!c&&!p,open:u,closeTooltip:d,placement:D?"bottom":P?"top":"right",maxWidth:D?498:P?310:292,title:s(ns,{children:p}),children:a(g,{display:"inline-flex",alignItems:"center",children:[s(v,{variant:"h5",sx:{mr:1},children:m}),c&&!!p&&s(We,{color:"disabled",sx:{fontSize:19,mb:-.25}})]})}),_,s(os,{value:L,fullWidth:l,disabled:o,error:y,type:f,name:x,onChange:e=>{O.current=!0;let t=e.target.value;"number"===f&&t.length>1&&t.startsWith("0")&&(t=t.slice(1)),z(t),T?.(e)},InputProps:{...E,...!E.endAdornment&&r&&!!L&&{endAdornment:s(N,{position:"end",children:s(w,{size:"small",color:y?"error":"default",onClick:()=>{z(void 0),T?.({event:{target:{value:void 0}}})},children:s(Ze,{})})})},sx:{py:I?.multiline?1:.25,"&.MuiOutlinedInput-root":{fontFamily:"CircularStd, sans-serif !important"},"&.MuiInput-root:before":{borderBottomStyle:"solid",borderBottomColor:M.palette.text.primary},...E?.sx||{}}},sx:{minWidth:i,...I.sx},InputLabelProps:{sx:{"&.MuiInputLabel-root":{color:M.palette.text.primary},"&.Mui-focused":{color:M.palette.primary.main}}},...I,ref:t}),A&&s(rs,{error:A})]})});function as(e){let{name:t,label:i,disabled:n=!1,showTooltip:r=!1,openTooltip:o=!1,tooltipTitle:l,closeTooltip:c,width:h=300,placeholder:u="Please select",value:d,inputValue:p,onChange:f,toggleError:m,onNeedFetch:g,..._}=e;const A=ge(!1),[y,v]=pe(!1),[x,b]=pe(null),[w,C]=pe([]),[T,E]=pe(null),[S,I]=pe(""),[M,P]=pe(!1),[D,L]=pe(""),[z,O]=pe(o),k=y&&!M,B=e=>{let{search:t="",loadedOptions:i=[]}=e;g({search:t,loadedOptions:i}).then(e=>{let{options:i}=e;if(C(i),P(!0),t&&0===i.length&&!z){const e=setTimeout(()=>{z||localStorage.getItem("tooltipShown")||O(!0)},500);return()=>clearTimeout(e)}})},F=ye(qe(e=>{let{search:t,loadedOptions:i}=e;B({search:t,loadedOptions:i})},600),[]);return fe(()=>{z&&localStorage.setItem("tooltipShown","true")},[z]),fe(()=>{k&&B({search:"",loadedOptions:[]})},[k]),fe(()=>{"clear"===D&&P(!1),x||"selectOption"!==D||f?.(T)},[x,D,T]),fe(()=>{y||(C([]),P(!1))},[y]),fe(()=>{d&&!T&&(E(d),I(p||""))},[d,p]),fe(()=>{A.current&&(S&&T||(b("Please select a city from the list"),m?.(!0)),S&&T&&(b(null),m?.(!1)))},[A.current,T,S]),s(V,{openOnFocus:!0,open:y,disabled:n,onOpen:()=>v(!0),onClose:()=>v(!1),isOptionEqualToValue:(e,t)=>Xe(e,t),onInputChange:(e,t,i)=>{e&&(L("input"!==i?$e(i)?i:"selectOption":""),"change"===e.type&&F({search:t}),I(t),A.current=!0)},onChange:(e,t,i)=>{L(i),E(t)},value:T,options:w,loading:k,inputValue:S,componentsProps:{paper:{sx:{borderRadius:"20px"}}},sx:{width:["100%",h,h],"&.MuiAutocomplete-root .MuiFormControl-root .MuiInputBase-root":{height:50,fontSize:"16px !important",fontFamily:"CircularStd, sans-serif",flexWrap:"nowrap",overflow:"hidden"}},renderInput:e=>s(ss,{...e,name:t,value:d||T||null,label:i,tooltipTitle:l,showTooltip:r,openTooltip:o||z,closeTooltip:c,error:!!x,helperText:x||null,placeholder:u,InputProps:{...e.InputProps,endAdornment:a(_e,{children:[k?s(R,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})}}),..._})}const ls=be((e,t)=>{let{apiKey:i,location:n,onChange:r,city:o,disabled:l,reset:c,isInvalid:h,isDefault:u,restrictionOptions:d,showLocationIcon:p,helperText:f="Please select commute destination from the list",onPlaceClick:m,sx:_={},disableComponentRestrictions:A,...y}=e;const v=ge(null),[x,b]=pe(n?.name||""),[w,C]=pe([]),T=ge(null),E=ge(null),[S,I]=pe(!1),[M,P]=pe(!1),D=ye(()=>{if(window.google?.maps?.places)return L(),void I(!0);const e="google-maps-script";if(document.getElementById(e)){const e=setInterval(()=>{window.google?.maps?.places&&(clearInterval(e),L(),I(!0))},100);return}const t=document.createElement("script");t.id=e,t.src=`https://maps.googleapis.com/maps/api/js?key=${i}&libraries=places`,t.async=!0,document.head.appendChild(t),t.onload=()=>{L(),I(!0)}},[i]),L=ye(()=>{T.current=new google.maps.places.AutocompleteService,E.current=new google.maps.places.PlacesService(document.createElement("div"))},[]),z=ve(()=>Ke(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;T?.current?.getPlacePredictions?.({input:o&&o?.length>0&&e?.length>0?`${e} ${o}`:e,...A?{}:{componentRestrictions:{country:"ae"}},...d||{}},t)},300),[o,A,d]),O=ye(function(){z(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1?arguments[1]:void 0)},[z]),R=ye(e=>{E.current&&e&&e.place_id&&E.current.getDetails({placeId:e?.place_id},(t,i)=>{i===google.maps.places.PlacesServiceStatus.OK&&t&&(P(!0),r({lat:t?.geometry?.location?.lat()||0,lng:t?.geometry?.location?.lng()||0,name:e?.description||t.formatted_address||t.name}))})},[r,E.current]),k=ye(e=>{e&&E.current?R(e):r(void 0)},[r,R]),B=ye((e,t)=>{t===google.maps.places.PlacesServiceStatus.OK&&e?(C(e),!M&&u&&k(e[0])):C([])},[M,k,u]),F=ye(()=>{const e=v.current?.getElementsByClassName?.("MuiAutocomplete-clearIndicator")?.[0];b(""),k(null),C([]),O("",()=>e?.click?.())},[k,O,v]);return we(t,()=>({reset:F})),fe(()=>{D()},[i]),fe(()=>{S&&L()},[S]),fe(()=>{S&&x.length>1&&T.current&&O(x,B)},[x,S,T.current]),fe(()=>{S&&!M&&n?.name!==x&&b(n?.name||"")},[n?.name,S]),fe(()=>{c&&F()},[c]),s(Ye,{freeSolo:!0,ref:v,disabled:l,options:w,getOptionLabel:e=>"string"==typeof e?e:e.description,inputValue:x,filterOptions:e=>e,filterSelectedOptions:!0,onInputChange:(e,t)=>{t||F(),b(t)},onChange:(e,t)=>k(t),renderInput:e=>s(Ve,{...e,placeholder:"Enter your workplace, school, or station",error:h,helperText:h?f:" ",FormHelperTextProps:{sx:{textAlign:"center"}}}),renderOption:(e,t)=>Ce("li",{...e,key:t.place_id,onClick:i=>{e?.onClick?.(i),m?.(t.description)}},a(g,{children:[p&&s(Qe,{sx:{color:"text.secondary"}}),a(Re,{component:"span",color:"text.secondary",fontWeight:"bold",children:[t.structured_formatting.main_text,","]}),s(Re,{component:"span",variant:"body2",ml:.5,color:"#767676",children:t.structured_formatting.secondary_text})]})),sx:_||{},...y})}),cs=10,hs=120,us=30,ds=(e,t)=>{const i=e??0,n=i%60,r=n>0?` ${n} ${t?"mins":"minutes"}`:"";if(i<60)return t?`${r}`:`Under ${r}`;const o=Math.floor(i/60);return 1===o&&60===i?t?"1 h":`Under 1 hour${r}`:t?`${o} h ${r}`:`Under ${o} hours${r}`},ps=e=>{let t=Math.floor(e/60),i=e%60;return i=i<10?`0${i}`:i,0!==t&&"00"!==i?t>1?`${t} hrs ${i} mins`:`${t} hr ${i} mins`:"00"!==i&&0===t?`${i} mins`:"00"===i&&0!==t?t>1?`${t} hours`:`${t} hour`:"-"},fs=(e,t)=>{const i=e?.[t]?.split("|");return i?.reduce((e,t)=>{const i=t?.split(":");return i&&2===i.length&&(e[i[0]]=i[1]),e},{})};var ms;!function(e){e.public_transport="public_transport",e.driving="driving",e.walking="walking",e.cycling="cycling"}(ms||(ms={}));const gs={public_transport:e=>{let{sx:t={},...i}=e;return a(d,{width:"24",height:"24",viewBox:"0 0 24 24",sx:{fill:"none",...t},...i,children:[s("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"white"}),s("path",{d:"M10.7707 6.62693H13.6721M17.2058 7.64509L18.3392 8.21308V10.027M7.18558 7.64509L6.05225 8.21308V10.027M7.16707 6.9597C7.07467 5.70306 11.269 5.33335 12.2861 5.33333C13.746 5.3333 17.2017 5.9986 17.2017 6.70083V16.8278C17.2017 17.604 16.8137 17.9551 15.8527 18.1214C14.8917 18.2878 13.5981 18.4541 12.2861 18.4171C10.974 18.3802 8.60854 18.3987 7.75846 17.9552C7.14862 17.637 7.16709 17.0127 7.16709 16.2735L7.16707 6.9597ZM9.12597 13.058H15.1874C15.5548 13.058 15.8527 12.7601 15.8527 12.3927V8.62278C15.8527 8.25536 15.5548 7.9575 15.1874 7.9575H9.12597C8.75855 7.9575 8.46069 8.25536 8.46069 8.62278V12.3927C8.46069 12.7601 8.75855 13.058 9.12597 13.058ZM9.97606 15.9778C9.97606 16.4269 9.61202 16.7909 9.16294 16.7909C8.71387 16.7909 8.34982 16.4269 8.34982 15.9778C8.34982 15.5287 8.71387 15.1647 9.16294 15.1647C9.61202 15.1647 9.97606 15.5287 9.97606 15.9778ZM15.9266 15.9778C15.9266 16.4269 15.5626 16.7909 15.1135 16.7909C14.6644 16.7909 14.3004 16.4269 14.3004 15.9778C14.3004 15.5287 14.6644 15.1647 15.1135 15.1647C15.5626 15.1647 15.9266 15.5287 15.9266 15.9778Z",stroke:"#2E3841",strokeWidth:"0.866667",strokeLinecap:"round",strokeLinejoin:"round"})]})},driving:e=>{let{sx:t={},...i}=e;return a(d,{width:"18",height:"18",viewBox:"0 0 18 18",sx:{fill:"none",...t},...i,children:[s("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"white"}),s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.40724 5.08476L4.8924 7.14411H13.2078L12.693 5.08476C12.6467 5.0708 12.5909 5.05428 12.5262 5.03582C12.3181 4.97634 12.0198 4.89678 11.6615 4.81718C10.9429 4.65748 9.99314 4.4999 9.05011 4.4999C8.10708 4.4999 7.15736 4.65748 6.43868 4.81718C6.08047 4.89678 5.78217 4.97634 5.57399 5.03582C5.50937 5.05428 5.45349 5.0708 5.40724 5.08476ZM12.9432 4.84874L13.0381 4.56414C13.1354 4.59657 13.2094 4.67647 13.2343 4.77598L13.8606 7.28141L14.664 7.9952C15.1083 8.38992 15.2968 9.00008 15.1523 9.57692M15.1523 9.57692L14.5409 12.0229V12.9593C14.5409 13.304 14.2612 13.5837 13.9165 13.5837H12.6188C12.274 13.5837 11.9944 13.304 11.9944 12.9593V12.286H6.10586V12.9593C6.10586 13.304 5.8262 13.5837 5.48144 13.5837H4.18374C3.83897 13.5837 3.55931 13.304 3.55931 12.9593V12.0229L2.94802 9.57713C2.80349 9.00029 2.99194 8.38992 3.4362 7.9952L4.2396 7.28141L4.86597 4.77598C4.89085 4.67647 4.96484 4.59657 5.06214 4.56414L5.15701 4.84874C5.06214 4.56414 5.06209 4.56416 5.06214 4.56414L5.06424 4.56344L5.06915 4.56183L5.08725 4.55594C5.10294 4.55088 5.12579 4.5436 5.15534 4.53441C5.21442 4.51603 5.3003 4.49001 5.40916 4.4589C5.62679 4.39673 5.93678 4.31407 6.30853 4.23147C7.04977 4.06675 8.04659 3.8999 9.05011 3.8999C10.0536 3.8999 11.0505 4.06675 11.7917 4.23147C12.1634 4.31407 12.4734 4.39673 12.6911 4.4589C12.7999 4.49001 12.8858 4.51603 12.9449 4.53441C12.9744 4.5436 12.9973 4.55088 13.013 4.55594L13.0311 4.56183L13.036 4.56344L13.0381 4.56414C13.0381 4.56416 13.0381 4.56414 12.9432 4.84874M4.62218 7.74411L3.83471 8.44374C3.55751 8.69003 3.43975 9.0712 3.53001 9.43122L4.09356 11.686H14.0067L14.5702 9.43143C14.6604 9.07141 14.5427 8.69003 14.2655 8.44374L13.478 7.74411H4.62218ZM4.15931 12.286V12.9593C4.15931 12.9726 4.17034 12.9837 4.18374 12.9837H5.48144C5.49484 12.9837 5.50586 12.9726 5.50586 12.9593V12.286H4.15931ZM12.5944 12.286V12.9593C12.5944 12.9726 12.6054 12.9837 12.6188 12.9837H13.9165C13.9299 12.9837 13.9409 12.9726 13.9409 12.9593V12.286H12.5944ZM5.00786 9.71462C5.00771 9.71708 5.0079 9.72058 5.01072 9.72622C5.21424 10.1322 5.62943 10.3883 6.08292 10.3883H6.45471C6.64784 10.3883 6.80356 10.2326 6.80356 10.0395C6.80356 9.84635 6.64784 9.69063 6.45471 9.69063H5.03308C5.02655 9.69063 5.02322 9.69208 5.02104 9.69334C5.01818 9.695 5.01479 9.69799 5.012 9.70249C5.00921 9.707 5.00806 9.71136 5.00786 9.71462ZM4.47407 9.99455C4.26656 9.57954 4.56884 9.09063 5.03308 9.09063H6.45471C6.97921 9.09063 7.40356 9.51497 7.40356 10.0395C7.40356 10.564 6.97921 10.9883 6.45471 10.9883H6.08292C5.40222 10.9883 4.77925 10.6034 4.47407 9.99455ZM11.6456 9.69063C11.4525 9.69063 11.2968 9.84635 11.2968 10.0395C11.2968 10.2326 11.4525 10.3883 11.6456 10.3883H12.0174C12.471 10.3883 12.8861 10.1319 13.089 9.72622C13.0918 9.72058 13.092 9.71706 13.0918 9.71456C13.0916 9.71126 13.0905 9.70687 13.0877 9.70233C13.0849 9.69779 13.0815 9.69483 13.0787 9.69321C13.0766 9.692 13.0735 9.69063 13.0673 9.69063H11.6456ZM10.6968 10.0395C10.6968 9.51497 11.1211 9.09063 11.6456 9.09063H13.0673C13.5314 9.09063 13.8329 9.57998 13.6256 9.99455C13.3211 10.6037 12.6981 10.9883 12.0174 10.9883H11.6456C11.1211 10.9883 10.6968 10.564 10.6968 10.0395Z",fill:"#2E3841"})]})},walking:e=>{let{sx:t={},...i}=e;return a(d,{width:"18",height:"18",viewBox:"0 0 18 18",sx:{fill:"none",...t},...i,children:[s("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"white"}),s("path",{d:"M6.5 14L7.99995 12.5L8.49993 10.5M8.49993 10.5L8.99991 7M8.49993 10.5L9.99988 12L10.4999 14M8.99991 7L9.99988 9.5L11.4998 10M8.99991 7L7.49996 8.5L6.99998 10.5M10.4999 5C10.4999 5.552 10.0519 6 9.4999 6C8.94791 6 8.49993 5.552 8.49993 5C8.49993 4.448 8.94791 4 9.4999 4C10.0519 4 10.4999 4.448 10.4999 5Z",stroke:"#2E3841",strokeWidth:"0.65",strokeLinecap:"round",strokeLinejoin:"round"})]})},cycling:e=>{let{sx:t={},...i}=e;return s(d,{width:"18",height:"18",viewBox:"0 0 18 18",sx:{fill:"none",...t},...i,children:a("g",{id:"Method/Cycling",children:[s("path",{id:"Ellipse 287",d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"white"}),s("path",{id:"bike_icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M9.85001 5C9.85001 4.83432 9.98433 4.7 10.15 4.7H11.45C11.6157 4.7 11.75 4.83432 11.75 5V6.90132L12.3293 8.63925C12.4656 8.61348 12.6062 8.6 12.75 8.6C13.9927 8.6 15 9.60727 15 10.85C15 12.0927 13.9927 13.1 12.75 13.1C11.5073 13.1 10.5 12.0927 10.5 10.85C10.5 9.96249 11.0137 9.19508 11.7601 8.82887L11.3398 7.56801L9.08427 10.3874C9.0381 10.4451 8.97224 10.4838 8.89933 10.4959L7.19892 10.7793C7.19965 10.8028 7.20001 10.8264 7.20001 10.85C7.20001 12.0927 6.19275 13.1 4.95001 13.1C3.70728 13.1 2.70001 12.0927 2.70001 10.85C2.70001 9.60727 3.70728 8.6 4.95001 8.6C4.97366 8.6 4.99722 8.60037 5.02069 8.60109L5.30409 6.90068C5.3282 6.75602 5.45336 6.65 5.60001 6.65H11.15V5.3H10.15C9.98433 5.3 9.85001 5.16569 9.85001 5ZM10.8258 7.25H6.32428L8.82514 9.75086L10.8258 7.25ZM8.22567 9.99992L5.80009 7.57435L5.61263 8.69914C6.32244 8.91752 6.8825 9.47758 7.10088 10.1874L8.22567 9.99992ZM6.50159 10.2873C6.33525 9.82864 5.97137 9.46477 5.51275 9.29842L5.31498 10.485L6.50159 10.2873ZM4.92083 9.20025C4.02293 9.21582 3.30001 9.94838 3.30001 10.85C3.30001 11.7614 4.03865 12.5 4.95001 12.5C5.85163 12.5 6.58419 11.7771 6.59976 10.8792L4.99933 11.1459C4.90376 11.1618 4.80639 11.1306 4.73788 11.0621C4.66937 10.9936 4.63817 10.8962 4.65409 10.8007L4.92083 9.20025ZM11.9522 9.4053C11.444 9.68649 11.1 10.228 11.1 10.85C11.1 11.7614 11.8386 12.5 12.75 12.5C13.6614 12.5 14.4 11.7614 14.4 10.85C14.4 9.93864 13.6614 9.2 12.75 9.2C12.6725 9.2 12.5962 9.20535 12.5215 9.2157L13.0346 10.7551C13.087 10.9123 13.0021 11.0822 12.8449 11.1346C12.6877 11.187 12.5178 11.1021 12.4654 10.9449L11.9522 9.4053Z",fill:"#2E3841"})]})})}},_s=[{icon:Pt,id:ms.driving},{icon:Lt,id:ms.public_transport},{icon:Dt,id:ms.walking},{icon:Mt,id:ms.cycling}],As=(e,t)=>{switch(e){case ms.cycling:case ms.driving:return{width:"35px",height:"auto",...t&&{path:{fill:"white"}}};case ms.public_transport:return{width:"auto",height:"36px",...t&&{path:{fill:"white"}}};case ms.walking:return{width:"auto",height:"31px",...t&&{path:{stroke:"white"}}};default:return}},ys=e=>{let{disableCheck:t=!1,multiple:i=!1,commute:n,variant:r,isInvalid:o,googleAutocompleteApiKey:l,onChange:c}=e;const h=ve(()=>ds(n.time),[n.time]),u=e=>()=>{if(!i)return c({...n,methods:[e.id]});const t=n.methods.includes(e.id);t&&1===n.methods.length||c({...n,methods:t?n.methods.filter(t=>t!==e.id):n.methods.concat(e.id)})};return a(Be,{children:[s(ls,{location:n?.location,isInvalid:o,apiKey:l,onChange:e=>{c({...n,location:e})}}),a(Be,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[s(Re,{variant:"h4",mb:1,mt:2,children:"Commute Time"}),h]}),s(Fe,{sx:{px:2},children:s(Ge,{value:n.time,onChange:(e,t)=>{c({...n,time:t})},min:10,max:120,step:10,color:"secondary"})}),s(Re,{variant:"h4",mb:1,mt:2,children:"Commute Method(s)"}),s(Be,{direction:"row",justifyContent:"space-between",gap:.5,children:_s.map(e=>a(Fe,{sx:{position:"relative"},children:[!t&&n.methods.includes(e.id)&&s(He,{fontSize:"small",color:"primary",sx:{position:"absolute",right:"-8px",top:"-8px",backgroundColor:"white",zIndex:1}}),s(at,{shape:"square",variant:r&&n.methods.includes(e.id)?r:"outlined",color:r?"primary":n.methods.includes(e.id)?"success":"inherit",onClick:u(e),sx:n.methods.includes(e.id)?[e=>({"&&":{borderColor:e.palette.primary.main,"&:hover":{borderColor:e.palette.primary.main}}}),n.methods.includes(e.id)&&1===n.methods.length&&{cursor:"default"}]:void 0,children:s(e.icon,{sx:As(e.id,n.methods.includes(e.id))})})]},e.id))})]})},vs=e=>{let{scrollIntoSecondCommute:t,disableCheck:i,multiple:n=!1,commutes:r,googleAutocompleteApiKey:o,onChange:l,onAdd:c,variant:h,onRemove:u,boxProps:d={}}=e;return fe(()=>{if(t){const e=document.getElementById("commute-title-2");e&&setTimeout(()=>{e?.scrollIntoView({inline:"center",block:"start",behavior:"smooth"})},0)}},[t]),a(g,{...d,children:[s(b,{gap:"50px",children:r.map((e,t)=>a(_e,{children:[a(g,{children:[a(b,{id:`commute-title-${t+1}`,direction:"row",justifyContent:"space-between",children:[a(Re,{variant:"h4",mb:1,children:["Commute Location ",r.length>1?t+1:""]}),r.length>0&&t>0&&s(w,{onClick:u(e),size:"small",children:s(ze,{})})]}),s(ys,{variant:h,multiple:n,disableCheck:i,commute:e,onChange:l(e),isInvalid:!1,googleAutocompleteApiKey:o})]}),r.length>1&&t!==r.length-1&&s(j,{})]},e.id))}),r.length<2&&s(at,{onClick:c,startIcon:s(Ue,{}),variant:"outlined",shape:"mrect",sx:{mt:"30px"},children:"Second Commute"})]})},xs=e=>{let{areas:t,area:i,isInvalid:n,errorText:r="Please select an area from the list",onChange:o}=e;const[a,l]=pe("");return s(Ye,{value:i,disableClearable:0===i.length||0===a.length,onChange:(e,t)=>{o(t??"")},inputValue:a,onInputChange:(e,t)=>{l(t)},options:t,renderInput:e=>s(Ve,{...e,placeholder:"Location, borough, neighborhood, etc.",error:n,helperText:n?r:" ",FormHelperTextProps:{sx:{textAlign:"center"}}})})},bs=e=>{let{scrollIntoArea:t=!1,index:i=0,allAreas:n,areas:r,onRemove:o,onChange:l,onAdd:c,boxProps:h={}}=e;const u=e=>t=>{l(e)(t)},d=e=>n.filter(t=>!r.some((i,n)=>n!==e&&i.name===t));return fe(()=>{if(t){const e=document.getElementById(`area-title-${i+1}`);e&&setTimeout(()=>{e?.scrollIntoView({inline:"center",block:"start",behavior:"smooth"})},0)}},[t]),a(g,{...h,children:[s(b,{gap:2.5,children:r.map((e,t)=>a(_e,{children:[a(g,{children:[a(b,{id:`area-title-${t+1}`,direction:"row",justifyContent:"space-between",children:[a(Re,{variant:"h4",mb:1,children:["Area Name ",r.length>1?t+1:""]}),r.length>0&&t>0&&s(w,{onClick:o(e),size:"small",children:s(ze,{})})]}),s(xs,{areas:d(t),area:e.name,onChange:u(e)})]}),r.length>1&&t!==r.length-1&&s(j,{sx:{mb:"10px"}})]},e.id))}),r.length<4&&s(at,{onClick:c,startIcon:s(Ue,{}),variant:"outlined",shape:"srect",sx:{mt:"30px"},children:"Add Area"})]})},ws=e=>{let{title:t="See My Matches",isValid:i=!0,isSubmitting:n=!1,onSubmit:r}=e;return a(b,{position:"sticky",sx:e=>({bottom:0,background:e.palette.background.paper,borderTop:`1px solid ${e.palette.grey[300]}`,py:2,px:1,zIndex:2}),children:[s(at,{fullWidth:!0,disabled:!i||n,onClick:r,children:n?s(R,{}):t}),s(b,{direction:"row",justifyContent:"center",pt:.5,children:s(Zt,{})})]})},Cs=e=>{let{DialogProps:t,handleModalReject:i,handleModalResolve:n,payload:{Form:r,filters:o,...l}}=e;const c=h(e=>e.breakpoints.down("sm"));return a(U,{scroll:"body",...t,fullScreen:c,PaperProps:{sx:{position:"relative",width:"100%",maxWidth:["unset",550],height:["unset",650,550],maxHeight:"100%",pb:0,overflow:"hidden",display:"flex",flexDirection:"column"}},children:[a(H,{sx:{position:"relative",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:["center","flex-end"],padding:0,px:[1,2],pt:[2,1]},children:[a(v,{component:"div",variant:"h3",display:["initial","none"],width:"100%",textAlign:"center",children:["Filters",s(j,{sx:{mt:2}})]}),s(w,{onClick:i,size:"small",sx:e=>({[e.breakpoints.up("sm")]:{mr:e.spacing(-2)},[e.breakpoints.down("sm")]:{position:"absolute",top:0,right:0}}),children:s(Pe,{})})]}),s(G,{sx:{position:"relative",p:0,px:[1,2],height:"100%"},children:s(b,{gap:5,pt:3,children:s(r,{filters:o,onSubmit:e=>{n?.(e)},...l,children:e=>s(ws,{onSubmit:e.onSubmit})})})})]})},Ts=e=>{let{loading:t=!1,render:i,color:n="#fff",sx:r={}}=e;return t?s(Z,{sx:{color:n,backgroundColor:"transparent",zIndex:e=>e.zIndex.drawer+1,...r},open:t,children:s(R,{color:"primary"})}):s(l,{children:i()})};class Es extends Te{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?a(g,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",width:"100%",p:3,children:[s(g,{pb:1,children:s(Ts,{color:"error",render:()=>s(d,{color:"warning",fontSize:"large",children:s(Je,{})})})}),s(v,{gutterBottom:!0,variant:"h3",color:"error",children:"Something went wrong."}),s(v,{variant:"subtitle1",color:"error",children:"We know about the error, and are already actively working on its solution."})]}):this.props.children}}const Ss=be(function(e,t){return s(W,{direction:"up",ref:t,...e})}),Is=e=>{let{modalID:t,open:i,payload:n={},ModalComponent:r,DialogProps:o,onModalResolved:a=()=>{},onModalRejected:l=()=>{},onModalExited:u=()=>{},fullHeight:d}=e;const p=c(),f=h(p.breakpoints.down("sm")),[m,g]=pe(i),[_,A]=pe(!1),y=e=>{g(!1),A(!1),l(e),u(t)};return fe(()=>{g(i)},[i]),s(Es,{children:s(r,{isModalEntered:_,payload:n,DialogProps:{disableEscapeKeyDown:!0,TransitionComponent:f?Ss:void 0,sx:{[p.breakpoints.up("sm")]:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column","& > .MuiDialog-container":{width:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[p.breakpoints.down("sm")]:{"& > .MuiDialog-container > .MuiPaper-root":{position:"absolute",left:0,right:0,bottom:0,m:0,[p.breakpoints.down("sm")]:{height:"100%",maxHeight:d?"auto":400},"@media (max-width: 320px)":{minHeight:436}}}},PaperProps:{elevation:0,sx:{overflow:"hidden",[p.breakpoints.up("sm")]:{borderRadius:"20px",width:483,maxWidth:483}}},...o,open:m,onClose:y,TransitionProps:{onExited:()=>{u(t),A(!1)},onEntered:()=>{A(!0)}}},handleModalResolve:e=>{g(!1),A(!1),a(e),u(t)},handleModalReject:y})})},Ms=Ae({globalValues:null,modals:[],setGlobalValues:e=>{},updateGlobalValues:e=>{},deleteModal:e=>{},addModal:e=>{},openModal:e=>{}}),Ps=e=>{let{pathname:t,children:i}=e;const n=ge(0),[r,o]=pe({}),[l,c]=pe([]),h=ye(e=>{c(t=>t.filter(t=>t?.modalID!==e)),n.current--},[]);fe(()=>{c([])},[t]);const u={modals:l,deleteModal:h,globalValues:r,setGlobalValues:o,updateGlobalValues:e=>{o(e)},addModal:e=>{c(t=>t.concat({...e,modalID:n.current++,onModalExited:h}))},openModal:e=>{c([{...e,modalID:n.current++,onModalExited:h}])}};return a(Ms.Provider,{value:u,children:[i,l?.map(e=>s(Is,{open:!0,...e},e?.modalID))]})},Ds=()=>de(Ms),Ls=e=>{let{disableTypography:t=!1,icon:i,sx:n={},children:r,onClose:o,iconFontSize:l=30}=e;return a(g,{display:"flex",alignItems:"center",pl:[2,3,3],pr:2,sx:n,...t?{}:{component:v,fontSize:23,fontWeight:500},children:[!!r&&a(g,{display:"flex",flexGrow:1,color:"inherit",mr:1,children:[i&&s(g,{display:"flex",alignItems:"center",mr:1,children:i}),r]}),!!o&&s(k,{title:"Close modal",children:s(w,{color:"inherit",edge:"end",onClick:o,children:s(ze,{color:"inherit",sx:{fontSize:l}})})})]})},zs=e=>{let{children:t,sx:i={}}=e;return s(b,{position:"sticky",sx:{bottom:0,backgroundColor:"white",zIndex:1,...i},children:s(b,{direction:"row",alignItems:"center",justifyContent:"flex-end",gap:[1,2],py:2,sx:e=>({px:[2,3,3],borderTop:`1px solid ${e.palette.divider}`}),children:t})})},Os=e=>{let{className:t="",component:i=g,children:n,...r}=e;return s(i,{className:t,sx:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},...r,children:n})},Rs=e=>{let{message:t,open:i,onClose:n}=e;const r=h(e=>e.breakpoints.down("sm"));return s(q,{open:i,onClose:n,anchorOrigin:{vertical:"top",horizontal:r?"center":"right"},message:t,action:s(l,{children:s(w,{color:"inherit",sx:{p:.5},onClick:n,children:s(ze,{})})}),sx:e=>({".MuiSnackbarContent-root":{backgroundColor:e.palette.text.secondary,alignItems:"flex-start",flexWrap:"nowrap"}})})};var ks,Bs={exports:{}};var Fs=(ks||(ks=1,Bs.exports=function(){var e,t,i;function n(n,r){if(e)if(t){var o="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk); self.onerror = null;",s={};e(s),i=r(s),"undefined"!=typeof window&&window&&window.URL&&window.URL.createObjectURL&&(i.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else t=r;else e=r}return n(["exports"],function(e){var t=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array;function n(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i*o-r*n;return s?(e[0]=o*(s=1/s),e[1]=-n*s,e[2]=-r*s,e[3]=i*s,e):null}function r(){var e=new i(9);return i!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function o(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],h=t[8];return e[0]=s*h-a*c,e[1]=r*c-n*h,e[2]=n*a-r*s,e[3]=a*l-o*h,e[4]=i*h-r*l,e[5]=r*o-i*a,e[6]=o*c-s*l,e[7]=n*l-i*c,e[8]=i*s-n*o,e}function s(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],d=i[0],p=i[1],f=i[2],m=i[3],g=i[4],_=i[5],A=i[6],y=i[7],v=i[8];return e[0]=d*n+p*s+f*c,e[1]=d*r+p*a+f*h,e[2]=d*o+p*l+f*u,e[3]=m*n+g*s+_*c,e[4]=m*r+g*a+_*h,e[5]=m*o+g*l+_*u,e[6]=A*n+y*s+v*c,e[7]=A*r+y*a+v*h,e[8]=A*o+y*l+v*u,e}function a(){var e=new i(16);return i!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function l(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function c(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],h=t[8],u=t[9],d=t[10],p=t[11],f=t[12],m=t[13],g=t[14],_=t[15],A=i*a-n*s,y=i*l-r*s,v=i*c-o*s,x=n*l-r*a,b=n*c-o*a,w=r*c-o*l,C=h*m-u*f,T=h*g-d*f,E=h*_-p*f,S=u*g-d*m,I=u*_-p*m,M=d*_-p*g,P=A*M-y*I+v*S+x*E-b*T+w*C;return P?(e[0]=(a*M-l*I+c*S)*(P=1/P),e[1]=(r*I-n*M-o*S)*P,e[2]=(m*w-g*b+_*x)*P,e[3]=(d*b-u*w-p*x)*P,e[4]=(l*E-s*M-c*T)*P,e[5]=(i*M-r*E+o*T)*P,e[6]=(g*v-f*w-_*y)*P,e[7]=(h*w-d*v+p*y)*P,e[8]=(s*I-a*E+c*C)*P,e[9]=(n*E-i*I-o*C)*P,e[10]=(f*b-m*v+_*A)*P,e[11]=(u*v-h*b-p*A)*P,e[12]=(a*T-s*S-l*C)*P,e[13]=(i*S-n*T+r*C)*P,e[14]=(m*y-f*x-g*A)*P,e[15]=(h*x-u*y+d*A)*P,e):null}function h(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],d=t[9],p=t[10],f=t[11],m=t[12],g=t[13],_=t[14],A=t[15],y=i[0],v=i[1],x=i[2],b=i[3];return e[0]=y*n+v*a+x*u+b*m,e[1]=y*r+v*l+x*d+b*g,e[2]=y*o+v*c+x*p+b*_,e[3]=y*s+v*h+x*f+b*A,e[4]=(y=i[4])*n+(v=i[5])*a+(x=i[6])*u+(b=i[7])*m,e[5]=y*r+v*l+x*d+b*g,e[6]=y*o+v*c+x*p+b*_,e[7]=y*s+v*h+x*f+b*A,e[8]=(y=i[8])*n+(v=i[9])*a+(x=i[10])*u+(b=i[11])*m,e[9]=y*r+v*l+x*d+b*g,e[10]=y*o+v*c+x*p+b*_,e[11]=y*s+v*h+x*f+b*A,e[12]=(y=i[12])*n+(v=i[13])*a+(x=i[14])*u+(b=i[15])*m,e[13]=y*r+v*l+x*d+b*g,e[14]=y*o+v*c+x*p+b*_,e[15]=y*s+v*h+x*f+b*A,e}function u(e,t,i){var n,r,o,s,a,l,c,h,u,d,p,f,m=i[0],g=i[1],_=i[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*_+t[12],e[13]=t[1]*m+t[5]*g+t[9]*_+t[13],e[14]=t[2]*m+t[6]*g+t[10]*_+t[14],e[15]=t[3]*m+t[7]*g+t[11]*_+t[15]):(r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],d=t[9],p=t[10],f=t[11],e[0]=n=t[0],e[1]=r,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e[6]=c,e[7]=h,e[8]=u,e[9]=d,e[10]=p,e[11]=f,e[12]=n*m+a*g+u*_+t[12],e[13]=r*m+l*g+d*_+t[13],e[14]=o*m+c*g+p*_+t[14],e[15]=s*m+h*g+f*_+t[15]),e}function d(e,t,i){var n=i[0],r=i[1],o=i[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,i){var n=Math.sin(i),r=Math.cos(i),o=t[4],s=t[5],a=t[6],l=t[7],c=t[8],h=t[9],u=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*r+c*n,e[5]=s*r+h*n,e[6]=a*r+u*n,e[7]=l*r+d*n,e[8]=c*r-o*n,e[9]=h*r-s*n,e[10]=u*r-a*n,e[11]=d*r-l*n,e}function f(e,t,i){var n=Math.sin(i),r=Math.cos(i),o=t[0],s=t[1],a=t[2],l=t[3],c=t[8],h=t[9],u=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*r-c*n,e[1]=s*r-h*n,e[2]=a*r-u*n,e[3]=l*r-d*n,e[8]=o*n+c*r,e[9]=s*n+h*r,e[10]=a*n+u*r,e[11]=l*n+d*r,e}function m(e,t,i){var n=Math.sin(i),r=Math.cos(i),o=t[0],s=t[1],a=t[2],l=t[3],c=t[4],h=t[5],u=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*r+c*n,e[1]=s*r+h*n,e[2]=a*r+u*n,e[3]=l*r+d*n,e[4]=c*r-o*n,e[5]=h*r-s*n,e[6]=u*r-a*n,e[7]=d*r-l*n,e}function g(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function _(e,i,n){var r,o,s,a=n[0],l=n[1],c=n[2],h=Math.hypot(a,l,c);return h<t?null:(a*=h=1/h,l*=h,c*=h,r=Math.sin(i),o=Math.cos(i),e[0]=a*a*(s=1-o)+o,e[1]=l*a*s+c*r,e[2]=c*a*s-l*r,e[3]=0,e[4]=a*l*s-c*r,e[5]=l*l*s+o,e[6]=c*l*s+a*r,e[7]=0,e[8]=a*c*s+l*r,e[9]=l*c*s-a*r,e[10]=c*c*s+o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function A(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i+i,a=n+n,l=r+r,c=i*s,h=n*s,u=n*a,d=r*s,p=r*a,f=r*l,m=o*s,g=o*a,_=o*l;return e[0]=1-u-f,e[1]=h+_,e[2]=d-g,e[3]=0,e[4]=h-_,e[5]=1-c-f,e[6]=p+m,e[7]=0,e[8]=d+g,e[9]=p-m,e[10]=1-c-u,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var y=h;function v(){var e=new i(3);return i!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function x(e){var t=new i(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function b(e){return Math.hypot(e[0],e[1],e[2])}function w(e,t,n){var r=new i(3);return r[0]=e,r[1]=t,r[2]=n,r}function C(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function T(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function E(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function S(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function I(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function M(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function P(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e}function D(e,t){var i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return i*i+n*n+r*r}function L(e){var t=e[0],i=e[1],n=e[2];return t*t+i*i+n*n}function z(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function O(e,t){var i=t[0],n=t[1],r=t[2],o=i*i+n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function R(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function k(e,t,i){var n=t[0],r=t[1],o=t[2],s=i[0],a=i[1],l=i[2];return e[0]=r*l-o*a,e[1]=o*s-n*l,e[2]=n*a-r*s,e}function B(e,t,i,n){var r=t[0],o=t[1],s=t[2];return e[0]=r+n*(i[0]-r),e[1]=o+n*(i[1]-o),e[2]=s+n*(i[2]-s),e}function F(e,t,i){var n=t[0],r=t[1],o=t[2],s=i[3]*n+i[7]*r+i[11]*o+i[15];return e[0]=(i[0]*n+i[4]*r+i[8]*o+i[12])/(s=s||1),e[1]=(i[1]*n+i[5]*r+i[9]*o+i[13])/s,e[2]=(i[2]*n+i[6]*r+i[10]*o+i[14])/s,e}function N(e,t,i){var n=t[0],r=t[1],o=t[2];return e[0]=n*i[0]+r*i[3]+o*i[6],e[1]=n*i[1]+r*i[4]+o*i[7],e[2]=n*i[2]+r*i[5]+o*i[8],e}function V(e,t,i){var n=i[0],r=i[1],o=i[2],s=t[0],a=t[1],l=t[2],c=r*l-o*a,h=o*s-n*l,u=n*a-r*s,d=r*u-o*h,p=o*c-n*u,f=n*h-r*c,m=2*i[3];return h*=m,u*=m,p*=2,f*=2,e[0]=s+(c*=m)+(d*=2),e[1]=a+h+p,e[2]=l+u+f,e}function j(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}var U=T,H=E,G=b;function Z(){var e=new i(4);return i!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function W(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e}function q(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i*i+n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s)),e[0]=i*s,e[1]=n*s,e[2]=r*s,e[3]=o*s,e}function X(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3];return e[0]=i[0]*n+i[4]*r+i[8]*o+i[12]*s,e[1]=i[1]*n+i[5]*r+i[9]*o+i[13]*s,e[2]=i[2]*n+i[6]*r+i[10]*o+i[14]*s,e[3]=i[3]*n+i[7]*r+i[11]*o+i[15]*s,e}function $(){var e=new i(4);return i!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function Y(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}function Q(e,t,i){i*=.5;var n=t[0],r=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);return e[0]=n*l+s*a,e[1]=r*l+o*a,e[2]=o*l-r*a,e[3]=s*l-n*a,e}function K(e,t,i){i*=.5;var n=t[0],r=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);return e[0]=n*l-o*a,e[1]=r*l+s*a,e[2]=o*l+n*a,e[3]=s*l-r*a,e}v(),Z();var J,ee,te,ie,ne,re=q,oe=(J=v(),ee=w(1,0,0),te=w(0,1,0),function(e,t,i){var n=R(t,i);return n<-.999999?(k(J,ee,t),G(J)<1e-6&&k(J,te,t),O(J,J),function(e,t,i){i*=.5;var n=Math.sin(i);e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(i)}(e,J,Math.PI),e):n>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):(k(J,t,i),e[0]=J[0],e[1]=J[1],e[2]=J[2],e[3]=1+n,re(e,e))});function se(){var e=new i(2);return i!=Float32Array&&(e[0]=0,e[1]=0),e}function ae(e,t){var n=new i(2);return n[0]=e,n[1]=t,n}function le(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e}function ce(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e}function he(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e}function ue(e){return Math.hypot(e[0],e[1])}function de(e,t){var i=t[0],n=t[1],r=i*i+n*n;return r>0&&(r=1/Math.sqrt(r)),e[0]=t[0]*r,e[1]=t[1]*r,e}function pe(e,t){return e[0]*t[0]+e[1]*t[1]}function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(),$(),r(),se();var me,ge,_e=function(){if(ne)return ie;function e(e,t,i,n){this.cx=3*e,this.bx=3*(i-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=t,this.p2x=i,this.p2y=n}return ne=1,ie=e,e.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,t){if(void 0===t&&(t=1e-6),e<0)return 0;if(e>1)return 1;for(var i=e,n=0;n<8;n++){var r=this.sampleCurveX(i)-e;if(Math.abs(r)<t)return i;var o=this.sampleCurveDerivativeX(i);if(Math.abs(o)<1e-6)break;i-=r/o}var s=0,a=1;for(i=e,n=0;n<20&&(r=this.sampleCurveX(i),!(Math.abs(r-e)<t));n++)e>r?s=i:a=i,i=.5*(a-s)+s;return i},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}},ie}(),Ae=fe(_e);function ye(){if(ge)return me;function e(e,t){this.x=e,this.y=t}return ge=1,me=e,e.prototype={clone:function(){return new e(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},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(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,i=e.y-this.y;return t*t+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),i=Math.sin(e),n=i*this.x+t*this.y;return this.x=t*this.x-i*this.y,this.y=n,this},_rotateAround:function(e,t){var i=Math.cos(e),n=Math.sin(e),r=t.y+n*(this.x-t.x)+i*(this.y-t.y);return this.x=t.x+i*(this.x-t.x)-n*(this.y-t.y),this.y=r,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},e.convert=function(t){return t instanceof e?t:Array.isArray(t)?new e(t[0],t[1]):t},me}var ve=fe(ye());function xe(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!xe(e[i],t[i]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!xe(e[i],t[i]))return!1;return!0}return e===t}const be=Math.PI/180,we=180/Math.PI;function Ce(e){return e*be}function Te(e){return e*we}const Ee=[[0,0],[1,0],[1,1],[0,1]];function Se(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,i=t*e;return 4*(e<.5?i:3*(e-t)+i-.75)}function Ie(e,t,i,n){const r=new Ae(e,t,i,n);return function(e){return r.solve(e)}}const Me=Ie(.25,.1,.25,1);function Pe(e,t,i){return Math.min(i,Math.max(t,e))}function De(e,t,i){return(i=Pe((i-e)/(t-e),0,1))*i*(3-2*i)}function Le(e,t,i){const n=i-t,r=((e-t)%n+n)%n+t;return r===t?i:r}function ze(e,t,i){if(!e.length)return i(null,[]);let n=e.length;const r=new Array(e.length);let o=null;e.forEach((e,s)=>{t(e,(e,t)=>{e&&(o=e),r[s]=t,0==--n&&i(o,r)})})}function Oe(e,...t){for(const i of t)for(const t in i)e[t]=i[t];return e}let Re=1;function ke(){return Re++}function Be(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function Fe(e,t){e.forEach(e=>{t[e]&&(t[e]=t[e].bind(t))})}function Ne(e,t,i){const n={};for(const i in e)n[i]=t.call(this,e[i],i,e);return n}function Ve(e,t,i){const n={};for(const i in e)t.call(this,e[i],i,e)&&(n[i]=e[i]);return n}function je(e){return Array.isArray(e)?e.map(je):"object"==typeof e&&e?Ne(e,je):e}function Ue(e,t){for(let i=0;i<e.length;i++)if(t.indexOf(e[i])>=0)return!0;return!1}const He={};function Ge(e){He[e]||("undefined"!=typeof console&&console.warn(e),He[e]=!0)}function Ze(e,t,i){return(i.y-e.y)*(t.x-e.x)>(t.y-e.y)*(i.x-e.x)}function We(e){let t=0;for(let i,n,r=0,o=e.length,s=o-1;r<o;s=r++)i=e[r],n=e[s],t+=(n.x-i.x)*(i.y+n.y);return t}function qe([e,t,i]){const n=Ce(t+90),r=Ce(i);return{x:e*Math.cos(n)*Math.sin(r),y:e*Math.sin(n)*Math.sin(r),z:e*Math.cos(r),azimuthal:t,polar:i}}function Xe(e){return("undefined"!=typeof self||void 0!==e)&&"undefined"!=typeof WorkerGlobalScope&&(void 0!==e?e:self)instanceof WorkerGlobalScope}function $e(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(e,i,n,r)=>{const o=n||r;return t[i]=!o||o.toLowerCase(),""}),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let Ye=null;function Qe(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]}function Ke(e,t,i,n){for(;t<i;){const r=t+i>>1;e[r]<n?t=r+1:i=r}return t}function Je(e,t,i,n){for(;t<i;){const r=t+i>>1;e[r]<=n?t=r+1:i=r}return t}function et(e){return e>0?1/(1.001-e):1+e}function tt(e){return e>0?1-1/(1.001-e):-e}function it(e,t,i){return(e-t.min)*(i.max-i.min)/(t.max-t.min)+i.min}const nt={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!nt.API_URL)return null;try{const e=new URL(nt.API_URL);return"api.mapbox.cn"===e.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===e.hostname?"https://events.mapbox.com/events/v2":null}catch(e){return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"https://api.mapbox.com/mapbox-gl-js/building-gen/building_gen_v0.3.0.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function rt(e){return nt.API_URL_REGEX.test(e)}function ot(e){return nt.API_SPRITE_REGEX.test(e)}let st,at,lt,ct,ht,ut;function dt(){return null==st&&(st=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof self.createImageBitmap),st}const pt={now:()=>void 0!==ct?ct:performance.now(),setNow(e){ct=e},restoreNow(){ct=void 0},frame(e){const t=requestAnimationFrame(e);return{cancel:()=>cancelAnimationFrame(t)}},getImageData(e,t=0){const{width:i,height:n}=e;ht||(ht=document.createElement("canvas"));const r=ht.getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("failed to create canvas 2d context");return(i>ht.width||n>ht.height)&&(ht.width=i,ht.height=n),r.clearRect(-t,-t,i+2*t,n+2*t),r.drawImage(e,0,0,i,n),r.getImageData(-t,-t,i+2*t,n+2*t)},resolveURL:e=>(at||(at=document.createElement("a")),at.href=e,at.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(null==lt&&(lt=window.matchMedia("(prefers-reduced-motion: reduce)")),lt.matches)},hasCanvasFingerprintNoise(){if(void 0!==ut)return ut;if(!dt())return ut=!1,!1;const e=new OffscreenCanvas(85,1),t=e.getContext("2d",{willReadFrequently:!0});let i=0;for(let n=0;n<e.width;++n)t.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,t.fillRect(n,0,1,1);const n=t.getImageData(0,0,e.width,e.height);i=0;for(let e=0;e<n.data.length;++e)if(e%4!=3&&i++!==n.data[e])return ut=!0,!0;return ut=!1,!1}};function ft(e,t){const i=e.indexOf("?");if(i<0)return`${e}?${new URLSearchParams(t).toString()}`;const n=new URLSearchParams(e.slice(i));for(const e in t)n.set(e,t[e]);return`${e.slice(0,i)}?${n.toString()}`}function mt(e,t={persistentParams:[]}){const i=e.indexOf("?");if(i<0)return e;const n=new URLSearchParams,r=new URLSearchParams(e.slice(i));for(const e of t.persistentParams){const t=r.get(e);t&&n.set(e,t)}const o=n.toString();return`${e.slice(0,i)}${o.length>0?`?${o}`:""}`}const gt="mapbox-tiles";let _t=500,At=50;const yt=["language","worldview","jobid"];let vt,xt;function bt(){try{return caches}catch(e){}}function wt(){const e=bt();e&&null==vt&&(vt=e.open(gt))}let Ct=1/0;const Tt={supported:!1,testSupport:function(e){!It&&St&&(Mt?Dt(e):Et=e)}};let Et,St,It=!1,Mt=!1;const Pt="undefined"!=typeof self?self:{};function Dt(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,St),e.isContextLost())return;Tt.supported=!0}catch(e){}e.deleteTexture(t),It=!0}Pt.document&&(St=Pt.document.createElement("img"),St.onload=function(){Et&&Dt(Et),Et=null,Mt=!0},St.onerror=function(){It=!0,Et=null},St.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Lt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};"function"==typeof Object.freeze&&Object.freeze(Lt);class zt extends Error{constructor(e,t,i){401===t&&rt(i)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=i}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ot=Xe()?()=>self.worker.referrer:()=>("blob:"===location.protocol?parent:self).location.href,Rt=function(e,t){if(!(/^file:/.test(i=e.url)||/^file:/.test(Ot())&&!/^\w+:/.test(i))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(e,t){const i=new AbortController,n=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:Ot(),referrerPolicy:e.referrerPolicy,signal:i.signal});let r=!1,o=!1;const s=(a=n.url).indexOf("sku=")>0&&rt(a);var a;"json"===e.type&&n.headers.set("Accept","application/json");const l=(i,r,a)=>{if(o)return;if(i&&"SecurityError"!==i.message&&Ge(i.toString()),r&&a)return c(r);const l=Date.now();fetch(n).then(i=>{if(i.ok){const e=s?i.clone():null;return c(i,e,l)}return t(new zt(i.statusText,i.status,e.url))}).catch(i=>{"AbortError"!==i.name&&t(new Error(`${i.message} ${e.url}`))})},c=(i,s,a)=>{("arrayBuffer"===e.type?i.arrayBuffer():"json"===e.type?i.json():i.text()).then(e=>{o||(s&&a&&function(e,t,i){if(wt(),null==vt)return;const n=$e(t.headers.get("Cache-Control")||"");if(n["no-store"])return;const r={status:t.status,statusText:t.statusText,headers:new Headers};t.headers.forEach((e,t)=>r.headers.set(t,e)),n["max-age"]&&r.headers.set("Expires",new Date(i+1e3*n["max-age"]).toUTCString());const o=r.headers.get("Expires");if(!o)return;if(new Date(o).getTime()-i<42e4)return;let s=mt(e.url,{persistentParams:yt});if(206===t.status){const t=e.headers.get("Range");if(!t)return;r.status=200,s=ft(s,{range:t})}!function(e,t){if(void 0===xt)try{new Response(new ReadableStream),xt=!0}catch(e){xt=!1}xt?t(e.body):e.blob().then(t).catch(e=>Ge(e.message))}(t,e=>{const i=new Response(200!==(n=t.status)&&404!==n&&[101,103,204,205,304].includes(n)?null:e,r);var n;wt(),null!=vt&&vt.then(e=>e.put(s,i)).catch(e=>Ge(e.message))})}(n,s,a),r=!0,t(null,e,i.headers.get("Cache-Control"),i.headers.get("Expires")))}).catch(e=>{o||t(new Error(e.message))})};return s?function(e,t){if(wt(),null==vt)return t(null);vt.then(i=>{let n=mt(e.url,{persistentParams:yt});const r=e.headers.get("Range");r&&(n=ft(n,{range:r})),i.match(n).then(e=>{const r=function(e){if(!e)return!1;const t=new Date(e.headers.get("Expires")||0),i=$e(e.headers.get("Cache-Control")||"");return Number(t)>Date.now()&&!i["no-cache"]}(e);i.delete(n).catch(t),r&&i.put(n,e.clone()).catch(t),t(null,e,r)}).catch(t)}).catch(t)}(n,l):l(null,null),{cancel:()=>{o=!0,r||i.abort()}}}(e,t);if(Xe(self)&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var i;return function(e,t){const i=new XMLHttpRequest;i.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(i.responseType="arraybuffer");for(const t in e.headers)i.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(i.responseType="text",i.setRequestHeader("Accept","application/json")),i.withCredentials="include"===e.credentials,i.onerror=()=>{t(new Error(i.statusText))},i.onload=()=>{if((i.status>=200&&i.status<300||0===i.status)&&null!==i.response){let n=i.response;if("json"===e.type)try{n=JSON.parse(i.response)}catch(e){return t(e)}t(null,n,i.getResponseHeader("Cache-Control"),i.getResponseHeader("Expires"))}else t(new zt(i.statusText,i.status,e.url))},i.send(e.body),{cancel:()=>i.abort()}}(e,t)},kt=function(e,t){return Rt(Oe(e,{type:"arrayBuffer"}),t)};function Bt(e){const t=document.createElement("a");return t.href=e,t.protocol===location.protocol&&t.host===location.host}const Ft="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Nt,Vt;Nt=[],Vt=0;const jt=function(e,t){if(Tt.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),Vt>=nt.MAX_PARALLEL_IMAGE_REQUESTS){const i={requestParameters:e,callback:t,cancelled:!1,cancel(){this.cancelled=!0}};return Nt.push(i),i}Vt++;let i=!1;const n=()=>{if(!i)for(i=!0,Vt--;Nt.length&&Vt<nt.MAX_PARALLEL_IMAGE_REQUESTS;){const e=Nt.shift(),{requestParameters:t,callback:i,cancelled:n}=e;n||(e.cancel=jt(t,i).cancel)}},r=kt(e,(e,i,r,o)=>{n(),e?t(e):i&&(self.createImageBitmap?function(e,t){const i=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(i).then(e=>{t(null,e)}).catch(e=>{t(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(i,(e,i)=>t(e,i,r,o)):function(e,t){const i=new Image;i.onload=()=>{t(null,i),URL.revokeObjectURL(i.src),i.onload=null,requestAnimationFrame(()=>{i.src=Ft})},i.onerror=()=>t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const n=new Blob([new Uint8Array(e)],{type:"image/png"});i.src=e.byteLength?URL.createObjectURL(n):Ft}(i,(e,i)=>t(e,i,r,o)))});return{cancel:()=>{r.cancel(),n()}}};var Ut,Ht,Gt,Zt={exports:{}},Wt={exports:{}},qt={exports:{}},Xt=function(){if(Gt)return Zt.exports;Gt=1;var e=(Ut||(Ut=1,Wt.exports=function(e,t){var i,n,r,o,s,a,l,c;for(n=e.length-(i=3&e.length),r=t,s=3432918353,a=461845907,c=0;c<n;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,r=27492+(65535&(o=5*(65535&(r=(r^=l=(65535&(l=(l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,i){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:r^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295}return r^=e.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0}),Wt.exports),t=(Ht||(Ht=1,qt.exports=function(e,t){for(var i,n=e.length,r=t^n,o=0;n>=4;)i=1540483477*(65535&(i=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(i>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}),qt.exports);return Zt.exports=e,Zt.exports.murmur3=e,Zt.exports.murmur2=t,Zt.exports}(),$t=fe(Xt);class Yt{constructor(e,...t){Oe(this,t[0]||{}),this.type=e}}class Qt extends Yt{constructor(e,t={}){super("error",Oe({error:e},t))}}function Kt(e,t,i){i[e]&&-1!==i[e].indexOf(t)||(i[e]=i[e]||[],i[e].push(t))}function Jt(e,t,i){if(i&&i[e]){const n=i[e].indexOf(t);-1!==n&&i[e].splice(n,1)}}class ei{on(e,t){return this._listeners=this._listeners||{},Kt(e,t,this._listeners),this}off(e,t){return Jt(e,t,this._listeners),Jt(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},Kt(e,t,this._oneTimeListeners),this):new Promise(t=>{this.once(e,t)})}fire(e,t){const i="string"==typeof e?new Yt(e,t):e,n=i.type;if(this.listens(n)){i.target=this;const e=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const t of e)t.call(this,i);const t=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const e of t)Jt(n,e,this._oneTimeListeners),e.call(this,i);const r=this._eventedParent;r&&(Oe(i,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),r.fire(i))}else i instanceof Qt&&console.error(i.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}class ti{constructor(e){"string"==typeof e?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new ti(e)}static toString(e){return e.iconsetId?`${e.name}${e.iconsetId}`:e.name}static parse(e){const[t,i]=e.split("");return new ti({name:t,iconsetId:i})}static isEqual(e,t){return e.name===t.name&&e.iconsetId===t.iconsetId}toString(){return ti.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var ii,ni={},ri=function(){if(ii)return ni;ii=1;var e={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function t(e){return(e=Math.round(e))<0?0:e>255?255:e}function i(e){return t("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function n(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function r(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}try{ni.parseCSSColor=function(o){var s,a=o.replace(/ /g,"").toLowerCase();if(a in e)return e[a].slice();if("#"===a[0])return 4===a.length?(s=parseInt(a.substr(1),16))>=0&&s<=4095?[(3840&s)>>4|(3840&s)>>8,240&s|(240&s)>>4,15&s|(15&s)<<4,1]:null:7===a.length&&(s=parseInt(a.substr(1),16))>=0&&s<=16777215?[(16711680&s)>>16,(65280&s)>>8,255&s,1]:null;var l=a.indexOf("("),c=a.indexOf(")");if(-1!==l&&c+1===a.length){var h=a.substr(0,l),u=a.substr(l+1,c-(l+1)).split(","),d=1;switch(h){case"rgba":if(4!==u.length)return null;d=n(u.pop());case"rgb":return 3!==u.length?null:[i(u[0]),i(u[1]),i(u[2]),d];case"hsla":if(4!==u.length)return null;d=n(u.pop());case"hsl":if(3!==u.length)return null;var p=(parseFloat(u[0])%360+360)%360/360,f=n(u[1]),m=n(u[2]),g=m<=.5?m*(f+1):m+f-m*f,_=2*m-g;return[t(255*r(_,g,p+1/3)),t(255*r(_,g,p)),t(255*r(_,g,p-1/3)),d];default:return null}}return null}}catch(e){}return ni}();class oi{constructor(e,t,i,n=1){this.r=e,this.g=t,this.b=i,this.a=n}static parse(e){if(!e)return;if(e instanceof oi)return e;if("string"!=typeof e)return;const t=ri.parseCSSColor(e);return t?new oi(t[0]/255,t[1]/255,t[2]/255,t[3]):void 0}toString(){const[e,t,i,n]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*t)},${Math.round(255*i)},${n})`}toNonPremultipliedRenderColor(e){const{r:t,g:i,b:n,a:r}=this;return new ai(e,t,i,n,r)}toPremultipliedRenderColor(e){const{r:t,g:i,b:n,a:r}=this;return new li(e,t*r,i*r,n*r,r)}clone(){return new oi(this.r,this.g,this.b,this.a)}}class si{constructor(e,t,i,n,r,o=!1){if(this.premultiplied=!1,this.premultiplied=o,e){const o=e.image.height,s=o*o;this.premultiplied?(t=0===r?0:t/r*(o-1),i=0===r?0:i/r*(o-1),n=0===r?0:n/r*(o-1)):(t*=o-1,i*=o-1,n*=o-1);const a=Math.floor(t),l=Math.floor(i),c=Math.floor(n),h=Math.ceil(t),u=Math.ceil(i),d=Math.ceil(n),p=t-a,f=i-l,m=n-c,g=e.image.data,_=4*(a+l*s+c*o),A=4*(a+l*s+d*o),y=4*(a+u*s+c*o),v=4*(a+u*s+d*o),x=4*(h+l*s+c*o),b=4*(h+l*s+d*o),w=4*(h+u*s+c*o),C=4*(h+u*s+d*o);if(_<0||C>=g.length)throw new Error("out of range");this.r=ci(ci(ci(g[_],g[A],m),ci(g[y],g[v],m),f),ci(ci(g[x],g[b],m),ci(g[w],g[C],m),f),p)/255*(this.premultiplied?r:1),this.g=ci(ci(ci(g[_+1],g[A+1],m),ci(g[y+1],g[v+1],m),f),ci(ci(g[x+1],g[b+1],m),ci(g[w+1],g[C+1],m),f),p)/255*(this.premultiplied?r:1),this.b=ci(ci(ci(g[_+2],g[A+2],m),ci(g[y+2],g[v+2],m),f),ci(ci(g[x+2],g[b+2],m),ci(g[w+2],g[C+2],m),f),p)/255*(this.premultiplied?r:1),this.a=r}else this.r=t,this.g=i,this.b=n,this.a=r}toArray(){const{r:e,g:t,b:i,a:n}=this;return[255*e,255*t,255*i,n]}toHslaArray(){let{r:e,g:t,b:i,a:n}=this;if(this.premultiplied){if(0===n)return[0,0,0,0];e/=n,t/=n,i/=n}const r=Math.min(Math.max(e,0),1),o=Math.min(Math.max(t,0),1),s=Math.min(Math.max(i,0),1),a=Math.min(r,o,s),l=Math.max(r,o,s),c=(a+l)/2;if(a===l)return[0,0,100*c,n];const h=l-a,u=c>.5?h/(2-l-a):h/(l+a);let d=0;return l===r?d=(o-s)/h+(o<s?6:0):l===o?d=(s-r)/h+2:l===s&&(d=(r-o)/h+4),d*=60,[Math.min(Math.max(d,0),360),Math.min(Math.max(100*u,0),100),Math.min(Math.max(100*c,0),100),n]}toArray01(){const{r:e,g:t,b:i,a:n}=this;return[e,t,i,n]}toArray01Scaled(e){const{r:t,g:i,b:n}=this;return[t*e,i*e,n*e]}toArray01Linear(){const{r:e,g:t,b:i,a:n}=this;return[Math.pow(e,2.2),Math.pow(t,2.2),Math.pow(i,2.2),n]}}class ai extends si{constructor(e,t,i,n,r){super(e,t,i,n,r,!1)}}class li extends si{constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}}function ci(e,t,i){return e*(1-i)+t*i}function hi(e,t,i){return e.map((e,n)=>ci(e,t[n],i))}oi.black=new oi(0,0,0,1),oi.white=new oi(1,1,1,1),oi.transparent=new oi(0,0,0,0),oi.red=new oi(1,0,0,1),oi.blue=new oi(0,0,1,1);var ui=Object.freeze({__proto__:null,array:hi,color:function(e,t,i){return new oi(ci(e.r,t.r,i),ci(e.g,t.g,i),ci(e.b,t.b,i),ci(e.a,t.a,i))},number:ci});function di(e,...t){for(const i of t)for(const t in i)e[t]=i[t];return e}class pi extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class fi{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[e,i]of t)this.bindings[e]=i}concat(e){return new fi(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const mi={kind:"null"},gi={kind:"number"},_i={kind:"string"},Ai={kind:"boolean"},yi={kind:"color"},vi={kind:"object"},xi={kind:"value"},bi={kind:"collator"},wi={kind:"formatted"},Ci={kind:"resolvedImage"};function Ti(e,t){return{kind:"array",itemType:e,N:t}}function Ei(e){if("array"===e.kind){const t=Ei(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const Si=[mi,gi,_i,Ai,yi,wi,vi,Ti(xi),Ci];function Ii(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Ii(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of Si)if(!Ii(e,t))return null}return`Expected ${Ei(e)} but found ${Ei(t)} instead.`}function Mi(e,t){return t.some(t=>t.kind===e.kind)}function Pi(e,t){return t.some(t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e)}function Di(e,t){return"array"===e.kind&&"array"===t.kind?e.N===t.N&&Di(e.itemType,t.itemType):e.kind===t.kind}class Li{constructor(e,t,i){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=i,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class zi{constructor(e,t,i,n,r){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=i,this.fontStack=n,this.textColor=r}}class Oi{constructor(e){this.sections=e}static fromString(e){return new Oi([new zi(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||!!e.image&&e.image.hasPrimary())}static factory(e){return e instanceof Oi?e:Oi.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){const i=t.image.getPrimary().id.toString();e.push(["image",i]);continue}e.push(t.text);const i={};t.fontStack&&(i["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(i["font-scale"]=t.scale),t.textColor&&(i["text-color"]=["rgba"].concat(t.textColor.toNonPremultipliedRenderColor(null).toArray())),e.push(i)}return e}}class Ri{constructor(e,t={}){if(this.id=ti.from(e),this.options=Object.assign({},t),t.transform){const{a:e,b:i,c:n,d:r,e:o,f:s}=t.transform;this.options.transform=new DOMMatrix([e,i,n,r,o,s])}else this.options.transform=new DOMMatrix([1,0,0,1,0,0])}toString(){const{a:e,b:t,c:i,d:n,e:r,f:o}=this.options.transform;return JSON.stringify({name:this.id.name,iconsetId:this.id.iconsetId,params:this.options.params,transform:{a:e,b:t,c:i,d:n,e:r,f:o}})}static parse(e){let t,i,n,r;try{({name:t,iconsetId:i,params:n,transform:r}=JSON.parse(e)||{})}catch(e){return null}if(!t)return null;const{a:o,b:s,c:a,d:l,e:c,f:h}=r||{};return new Ri({name:t,iconsetId:i},{params:n,transform:new DOMMatrix([o,s,a,l,c,h])})}scaleSelf(e,t){return this.options.transform.scaleSelf(e,t),this}}class ki{constructor(e,t,i,n,r=!1){this.primaryId=ti.from(e),this.primaryOptions=t,i&&(this.secondaryId=ti.from(i)),this.secondaryOptions=n,this.available=r}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new Ri(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new Ri(this.secondaryId,this.secondaryOptions):null}static from(e){return"string"==typeof e?ki.build({name:e}):e}static build(e,t,i,n){return!e||"object"==typeof e&&!("name"in e)?null:new ki(e,i,t,n)}}function Bi(e,t,i,n){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:`Invalid rgba value [${[e,t,i,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof n?[e,t,i,n]:[e,t,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Fi(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof oi)return!0;if(e instanceof Li)return!0;if(e instanceof Oi)return!0;if(e instanceof ki)return!0;if(Array.isArray(e)){for(const t of e)if(!Fi(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!Fi(e[t]))return!1;return!0}return!1}function Ni(e){if(null===e)return mi;if("string"==typeof e)return _i;if("boolean"==typeof e)return Ai;if("number"==typeof e)return gi;if(e instanceof oi)return yi;if(e instanceof Li)return bi;if(e instanceof Oi)return wi;if(e instanceof ki)return Ci;if(Array.isArray(e)){const t=e.length;let i;for(const t of e){const e=Ni(t);if(i){if(i===e)continue;i=xi;break}i=e}return Ti(i||xi,t)}return vi}function Vi(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Oi||e instanceof ki||e instanceof oi?e.toString():JSON.stringify(e)}class ji{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Fi(e[1]))return t.error("invalid value");const i=e[1];let n=Ni(i);const r=t.expectedType;return"array"!==n.kind||0!==n.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(n=r),new ji(n,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof oi?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof Oi?this.value.serialize():this.value}}class Ui{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const Hi={string:_i,number:gi,boolean:Ai,object:vi};class Gi{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let i,n=1;const r=e[0];if("array"===r){let r,o;if(e.length>2){const i=e[1];if("string"!=typeof i||!(i in Hi)||"object"===i)return t.error('The item type argument of "array" must be one of string, number, boolean',1);r=Hi[i],n++}else r=xi;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],n++}i=Ti(r,o)}else i=Hi[r];const o=[];for(;n<e.length;n++){const i=t.parse(e[n],n,xi);if(!i)return null;o.push(i)}return new Gi(i,o)}evaluate(e){for(let t=0;t<this.args.length;t++){const i=this.args[t].evaluate(e);if(!Ii(this.type,Ni(i)))return i;if(t===this.args.length-1)throw new Ui(`The expression ${JSON.stringify(this.args[t].serialize())} evaluated to ${Ei(Ni(i))} but was expected to be of type ${Ei(this.type)}.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const i=e.itemType;if("string"===i.kind||"number"===i.kind||"boolean"===i.kind){t.push(i.kind);const n=e.N;("number"==typeof n||this.args.length>1)&&t.push(n)}}return t.concat(this.args.map(e=>e.serialize()))}}class Zi{constructor(e){this.type=wi,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const i=e[1];if(!Array.isArray(i)&&"object"==typeof i)return t.error("First argument must be an image or text section.");const n=[];let r=!1;for(let i=1;i<=e.length-1;++i){const o=e[i];if(r&&"object"==typeof o&&!Array.isArray(o)){r=!1;let e=null;if(o["font-scale"]&&(e=t.parseObjectValue(o["font-scale"],i,"font-scale",gi),!e))return null;let s=null;if(o["text-font"]&&(s=t.parseObjectValue(o["text-font"],i,"text-font",Ti(_i)),!s))return null;let a=null;if(o["text-color"]&&(a=t.parseObjectValue(o["text-color"],i,"text-color",yi),!a))return null;const l=n[n.length-1];l.scale=e,l.font=s,l.textColor=a}else{const o=t.parse(e[i],i,xi);if(!o)return null;const s=o.type.kind;if("string"!==s&&"value"!==s&&"null"!==s&&"resolvedImage"!==s)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");r=!0,n.push({content:o,scale:null,font:null,textColor:null})}}return new Zi(n)}evaluate(e){return new Oi(this.sections.map(t=>{const i=t.content.evaluate(e);return Di(Ni(i),Ci)?new zi("",i,null,null,null):new zi(Vi(i),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)}))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const i={};t.scale&&(i["font-scale"]=t.scale.serialize()),t.font&&(i["text-font"]=t.font.serialize()),t.textColor&&(i["text-color"]=t.textColor.serialize()),e.push(i)}return e}}class Wi{constructor(e,t,i,n){this._imageWarnHistory={},this.type=Ci,this.namePrimary=e,this.nameSecondary=t,i&&(this.paramsPrimary=i.params,this.iconsetIdPrimary=i.iconset?i.iconset.id:void 0),n&&(this.paramsSecondary=n.params,this.iconsetIdSecondary=n.iconset?n.iconset.id:void 0)}static parse(e,t){if(e.length<2)return t.error("Expected two or more arguments.");let i=1;const n=[];function r(){if(i<e.length){const r=t.parse(e[i],i++,_i);return r?(n.push({image:r,options:{}}),!0):(t.error(n.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function o(){if(i<e.length){const o=e[i];if(null===(r=o)||"object"!=typeof r||Array.isArray(r))return!0;const s=o.params,a=o.iconset,l=t.concat(i);if(!s&&!a)return i++,!0;if(s){if("object"!=typeof s||s.constructor!==Object)return l.error('Image options "params" should be an object'),!1;const e={},t=l.concat(void 0,"params");for(const i in s){if(!i)return t.error("Image parameter name should be non-empty"),!1;const n=t.concat(void 0,i).parse(s[i],void 0,yi,void 0,{typeAnnotation:"coerce"});if(!n)return!1;e[i]=n}n[n.length-1].options.params=e}if(a){if("object"!=typeof a||a.constructor!==Object)return l.error('Image options "iconset" should be an object'),!1;if(!a.id)return l.error('Image options "iconset" should have an "id" property'),!1;n[n.length-1].options.iconset=a}return i++,!0}var r;return!0}for(let e=0;e<2;e++)if(!r()||!o())return;return new Wi(n[0].image,n[1]?n[1].image:void 0,n[0].options,n[1]?n[1].options:void 0)}evaluateParams(e,t){const i={};if(t){for(const n in t)if(t[n])try{i[n]=t[n].evaluate(e)}catch(e){continue}if(0!==Object.keys(i).length)return{params:i}}}evaluate(e){const t={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},i=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,n=ki.build(t,i,this.paramsPrimary?this.evaluateParams(e,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(e,this.paramsSecondary):void 0);if(n&&e.availableImages){const t=n.getPrimary().id;if(n.available=e.availableImages.some(e=>ti.isEqual(e,t)),n.available){const t=n.getSecondary()?n.getSecondary().id:null;t&&(n.available=e.availableImages.some(e=>ti.isEqual(e,t)))}}return n}eachChild(e){if(e(this.namePrimary),this.paramsPrimary)for(const t in this.paramsPrimary)this.paramsPrimary[t]&&e(this.paramsPrimary[t]);if(this.nameSecondary&&(e(this.nameSecondary),this.paramsSecondary))for(const t in this.paramsSecondary)this.paramsSecondary[t]&&e(this.paramsSecondary[t])}outputDefined(){return!1}serializeOptions(e,t){const i={};if(t&&(i.iconset={id:t}),e){i.params={};for(const t in e)e[t]&&(i.params[t]=e[t].serialize())}return Object.keys(i).length>0?i:void 0}serialize(){const e=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const t=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);t&&e.push(t)}if(this.nameSecondary&&(e.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const t=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);t&&e.push(t)}return e}}function qi(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}const Xi={"to-boolean":Ai,"to-color":yi,"to-number":gi,"to-string":_i};class $i{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const i=e[0],n=[];let r=mi;if("to-array"===i){if(!Array.isArray(e[1]))return null;const i=e[1].length;if(t.expectedType){if("array"!==t.expectedType.kind)return t.error(`Expected ${t.expectedType.kind} but found array.`);r=Ti(t.expectedType.itemType,i)}else{if(!(i>0&&Fi(e[1][0])))return null;r=Ti(Ni(e[1][0]),i)}for(let o=0;o<i;o++){const i=e[1][o];let s;if("array"===qi(i))s=t.parse(i,void 0,r.itemType);else{const e=qi(i);if(e!==r.itemType.kind)return t.error(`Expected ${r.itemType.kind} but found ${e}.`);s=t.registry.literal.parse(["literal",void 0===i?null:i],t)}if(!s)return null;n.push(s)}}else{if(("to-boolean"===i||"to-string"===i)&&2!==e.length)return t.error("Expected one argument.");r=Xi[i];for(let i=1;i<e.length;i++){const r=t.parse(e[i],i,xi);if(!r)return null;n.push(r)}}return new $i(r,n)}evaluate(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){let t,i;for(const n of this.args){if(t=n.evaluate(e),i=null,t instanceof oi)return t;if("string"==typeof t){const i=e.parseColor(t);if(i)return i}else if(Array.isArray(t)&&(i=t.length<3||t.length>4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:Bi(t[0],t[1],t[2],t[3]),!i))return new oi(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new Ui(i||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const i of this.args){if(t=i.evaluate(e),null===t)return 0;const n=Number(t);if(!isNaN(n))return n}throw new Ui(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?Oi.fromString(Vi(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?ki.build(Vi(this.args[0].evaluate(e))):"array"===this.type.kind?this.args.map(t=>t.evaluate(e)):Vi(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if("formatted"===this.type.kind)return new Zi([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Wi(this.args[0]).serialize();const e="array"===this.type.kind?[]:[`to-${this.type.kind}`];return this.eachChild(t=>{e.push(t.serialize())}),e}}const Yi=["Unknown","Point","LineString","Polygon"];class Qi{constructor(e,t){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=e,this.options=t}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Yi[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:i,y:n}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(i*t-e[0])+this.featureDistanceData.bearing[1]*(n*t-e[1])}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=oi.parse(e)),t}getConfig(e){return this.options?this.options.get(e):null}}class Ki{constructor(e,t,i,n,r){this.name=e,this.type=t,this._evaluate=i,this.args=n,this._overloadIndex=r}evaluate(e){if(!this._evaluate){const e=Ki.definitions[this.name];this._evaluate=Array.isArray(e)?e[2]:e.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,t){const i=e[0],n=Ki.definitions[i];if(!n)return t.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);const r=Array.isArray(n)?n[0]:n.type,o=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,s=[];let a=null,l=-1;for(const[n,c]of o){if(Array.isArray(n)&&n.length!==e.length-1)continue;s.push(n),l++,a=new vr(t.registry,t.path,null,t.scope,void 0,t._scope,t.options);const o=[];let h=!1;for(let t=1;t<e.length;t++){const i=e[t],r=Array.isArray(n)?n[t-1]:n.type,s=a.parse(i,1+o.length,r);if(!s){h=!0;break}o.push(s)}if(!h)if(Array.isArray(n)&&n.length!==o.length)a.error(`Expected ${n.length} arguments, but found ${o.length} instead.`);else{for(let e=0;e<o.length;e++){const t=Array.isArray(n)?n[e]:n.type,i=o[e];a.concat(e+1).checkSubtype(t,i.type)}if(0===a.errors.length)return new Ki(i,r,c,o,l)}}if(1===s.length)t.errors.push(...a.errors);else{const i=(s.length?s:o.map(([e])=>e)).map(Ji).join(" | "),n=[];for(let i=1;i<e.length;i++){const r=t.parse(e[i],1+n.length);if(!r)return null;n.push(Ei(r.type))}t.error(`Expected arguments of type ${i}, but found (${n.join(", ")}) instead.`)}return null}static register(e,t){Ki.definitions=t;for(const i in t)e[i]=Ki}}function Ji(e){return Array.isArray(e)?`(${e.map(Ei).join(", ")})`:`(${Ei(e.type)}...)`}class en{constructor(e,t,i){this.type=bi,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");const i=e[1];if("object"!=typeof i||Array.isArray(i))return t.error("Collator options argument must be an object.");const n=void 0===i["case-sensitive"]?t.parse(!1,1,Ai):t.parseObjectValue(i["case-sensitive"],1,"case-sensitive",Ai);if(!n)return null;const r=void 0===i["diacritic-sensitive"]?t.parse(!1,1,Ai):t.parseObjectValue(i["diacritic-sensitive"],1,"diacritic-sensitive",Ai);if(!r)return null;let o=null;return i.locale&&(o=t.parseObjectValue(i.locale,1,"locale",_i),!o)?null:new en(n,r,o)}evaluate(e){return new Li(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}function tn(e,t,i=0,n=e.length-1,r=rn){for(;n>i;){if(n-i>600){const o=n-i+1,s=t-i+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);tn(e,t,Math.max(i,Math.floor(t-s*l/o+c)),Math.min(n,Math.floor(t+(o-s)*l/o+c)),r)}const o=e[t];let s=i,a=n;for(nn(e,i,t),r(e[n],o)>0&&nn(e,i,n);s<a;){for(nn(e,s,a),s++,a--;r(e[s],o)<0;)s++;for(;r(e[a],o)>0;)a--}0===r(e[i],o)?nn(e,i,a):(a++,nn(e,a,n)),a<=t&&(i=a+1),t<=a&&(n=a-1)}}function nn(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}function rn(e,t){return e<t?-1:e>t?1:0}function on(e){let t=0;for(let i,n,r=0,o=e.length,s=o-1;r<o;s=r++)i=e[r],n=e[s],t+=(n.x-i.x)*(i.y+n.y);return t}function sn(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function an(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function ln(e,t,i){const n=e[0]-t[0],r=e[1]-t[1],o=e[0]-i[0],s=e[1]-i[1];return n*s-o*r==0&&n*o<=0&&r*s<=0}function cn(e,t,i=!1){let n=!1;for(let a=0,l=t.length;a<l;a++){const l=t[a];for(let t=0,a=l.length,c=a-1;t<a;c=t++){const a=l[c],h=l[t];if(ln(e,a,h))return i;(o=a)[1]>(r=e)[1]!=(s=h)[1]>r[1]&&r[0]<(s[0]-o[0])*(r[1]-o[1])/(s[1]-o[1])+o[0]&&(n=!n)}}var r,o,s;return n}function hn(e,t,i,n){const r=n[0]-i[0],o=n[1]-i[1],s=(e[0]-i[0])*o-r*(e[1]-i[1]),a=(t[0]-i[0])*o-r*(t[1]-i[1]);return s>0&&a<0||s<0&&a>0}function un(e,t,i,n){return 0!=(r=[n[0]-i[0],n[1]-i[1]])[0]*(o=[t[0]-e[0],t[1]-e[1]])[1]-r[1]*o[0]&&!(!hn(e,t,i,n)||!hn(i,n,e,t));var r,o}function dn(e){const t=new ve(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new ve(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const n of e[0])t.x>n.x&&(t.x=n.x),t.y>n.y&&(t.y=n.y),i.x<n.x&&(i.x=n.x),i.y<n.y&&(i.y=n.y);return{min:t,max:i}}const pn=8192;function fn(e,t){const i=(180+e[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,r=Math.pow(2,t.z);return[Math.round(i*r*pn),Math.round(n*r*pn)]}function mn(e,t){for(let i=0;i<t.length;i++)if(cn(e,t[i]))return!0;return!1}function gn(e,t,i){for(const n of i)for(let i=0,r=n.length,o=r-1;i<r;o=i++)if(un(e,t,n[o],n[i]))return!0;return!1}function _n(e,t){for(let i=0;i<e.length;++i)if(!cn(e[i],t))return!1;for(let i=0;i<e.length-1;++i)if(gn(e[i],e[i+1],t))return!1;return!0}function An(e,t){for(let i=0;i<t.length;i++)if(_n(e,t[i]))return!0;return!1}function yn(e,t,i){const n=[];for(let r=0;r<e.length;r++){const o=[];for(let n=0;n<e[r].length;n++){const s=fn(e[r][n],i);sn(t,s),o.push(s)}n.push(o)}return n}function vn(e,t,i){const n=[];for(let r=0;r<e.length;r++){const o=yn(e[r],t,i);n.push(o)}return n}function xn(e,t,i,n){if(e[0]<i[0]||e[0]>i[2]){const t=.5*n;let r=e[0]-i[0]>t?-n:i[0]-e[0]>t?n:0;0===r&&(r=e[0]-i[2]>t?-n:i[2]-e[0]>t?n:0),e[0]+=r}sn(t,e)}function bn(e,t,i,n){const r=Math.pow(2,n.z)*pn,o=[n.x*pn,n.y*pn],s=[];if(!e)return s;for(const n of e)for(const e of n){const n=[e.x+o[0],e.y+o[1]];xn(n,t,i,r),s.push(n)}return s}function wn(e,t,i,n){const r=Math.pow(2,n.z)*pn,o=[n.x*pn,n.y*pn],s=[];if(!e)return s;for(const i of e){const e=[];for(const n of i){const i=[n.x+o[0],n.y+o[1]];sn(t,i),e.push(i)}s.push(e)}if(t[2]-t[0]<=r/2){(a=t)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(const e of s)for(const n of e)xn(n,t,i,r)}var a;return s}class Cn{constructor(e,t){this.type=Ai,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Fi(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const i=t.features[e].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Cn(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new Cn(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new Cn(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const i=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],r=e.canonicalID();if(!r)return!1;if("Polygon"===t.type){const o=yn(t.coordinates,n,r),s=bn(e.geometry(),i,n,r);if(!an(i,n))return!1;for(const e of s)if(!cn(e,o))return!1}if("MultiPolygon"===t.type){const o=vn(t.coordinates,n,r),s=bn(e.geometry(),i,n,r);if(!an(i,n))return!1;for(const e of s)if(!mn(e,o))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const i=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],r=e.canonicalID();if(!r)return!1;if("Polygon"===t.type){const o=yn(t.coordinates,n,r),s=wn(e.geometry(),i,n,r);if(!an(i,n))return!1;for(const e of s)if(!_n(e,o))return!1}if("MultiPolygon"===t.type){const o=vn(t.coordinates,n,r),s=wn(e.geometry(),i,n,r);if(!an(i,n))return!1;for(const e of s)if(!An(e,o))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const Tn={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},En=1/298.257223563,Sn=En*(2-En),In=Math.PI/180;class Mn{static fromTile(e,t,i){const n=Math.PI*(1-2*(e+.5)/Math.pow(2,t)),r=Math.atan(.5*(Math.exp(n)-Math.exp(-n)))/In;return new Mn(r,i)}static get units(){return Tn}constructor(e,t){if(void 0===e)throw new Error("No latitude given.");if(t&&!Tn[t])throw new Error(`Unknown unit ${t}. Use one of: ${Object.keys(Tn).join(", ")}`);const i=6378.137*In*(t?Tn[t]:1),n=Math.cos(e*In),r=1/(1-Sn*(1-n*n)),o=Math.sqrt(r);this.kx=i*o*n,this.ky=i*o*r*(1-Sn)}distance(e,t){const i=Ln(e[0]-t[0])*this.kx,n=(e[1]-t[1])*this.ky;return Math.sqrt(i*i+n*n)}bearing(e,t){const i=Ln(t[0]-e[0])*this.kx;return Math.atan2(i,(t[1]-e[1])*this.ky)/In}destination(e,t,i){const n=i*In;return this.offset(e,Math.sin(n)*t,Math.cos(n)*t)}offset(e,t,i){return[e[0]+t/this.kx,e[1]+i/this.ky]}lineDistance(e){let t=0;for(let i=0;i<e.length-1;i++)t+=this.distance(e[i],e[i+1]);return t}area(e){let t=0;for(let i=0;i<e.length;i++){const n=e[i];for(let e=0,r=n.length,o=r-1;e<r;o=e++)t+=Ln(n[e][0]-n[o][0])*(n[e][1]+n[o][1])*(i?-1:1)}return Math.abs(t)/2*this.kx*this.ky}along(e,t){let i=0;if(t<=0)return e[0];for(let n=0;n<e.length-1;n++){const r=e[n],o=e[n+1],s=this.distance(r,o);if(i+=s,i>t)return Dn(r,o,(t-(i-s))/s)}return e[e.length-1]}pointToSegmentDistance(e,t,i){let[n,r]=t,o=Ln(i[0]-n)*this.kx,s=(i[1]-r)*this.ky;if(0!==o||0!==s){const t=(Ln(e[0]-n)*this.kx*o+(e[1]-r)*this.ky*s)/(o*o+s*s);t>1?(n=i[0],r=i[1]):t>0&&(n+=o/this.kx*t,r+=s/this.ky*t)}return o=Ln(e[0]-n)*this.kx,s=(e[1]-r)*this.ky,Math.sqrt(o*o+s*s)}pointOnLine(e,t){let i=1/0,n=e[0][0],r=e[0][1],o=0,s=0;for(let a=0;a<e.length-1;a++){let l=e[a][0],c=e[a][1],h=Ln(e[a+1][0]-l)*this.kx,u=(e[a+1][1]-c)*this.ky,d=0;0===h&&0===u||(d=(Ln(t[0]-l)*this.kx*h+(t[1]-c)*this.ky*u)/(h*h+u*u),d>1?(l=e[a+1][0],c=e[a+1][1]):d>0&&(l+=h/this.kx*d,c+=u/this.ky*d)),h=Ln(t[0]-l)*this.kx,u=(t[1]-c)*this.ky;const p=h*h+u*u;p<i&&(i=p,n=l,r=c,o=a,s=d)}return{point:[n,r],index:o,t:Math.max(0,Math.min(1,s))}}lineSlice(e,t,i){let n=this.pointOnLine(i,e),r=this.pointOnLine(i,t);if(n.index>r.index||n.index===r.index&&n.t>r.t){const e=n;n=r,r=e}const o=[n.point],s=n.index+1,a=r.index;!Pn(i[s],o[0])&&s<=a&&o.push(i[s]);for(let e=s+1;e<=a;e++)o.push(i[e]);return Pn(i[a],r.point)||o.push(r.point),o}lineSliceAlong(e,t,i){let n=0;const r=[];for(let o=0;o<i.length-1;o++){const s=i[o],a=i[o+1],l=this.distance(s,a);if(n+=l,n>e&&0===r.length&&r.push(Dn(s,a,(e-(n-l))/l)),n>=t)return r.push(Dn(s,a,(t-(n-l))/l)),r;n>e&&r.push(a)}return r}bufferPoint(e,t){const i=t/this.ky,n=t/this.kx;return[e[0]-n,e[1]-i,e[0]+n,e[1]+i]}bufferBBox(e,t){const i=t/this.ky,n=t/this.kx;return[e[0]-n,e[1]-i,e[2]+n,e[3]+i]}insideBBox(e,t){return Ln(e[0]-t[0])>=0&&Ln(e[0]-t[2])<=0&&e[1]>=t[1]&&e[1]<=t[3]}}function Pn(e,t){return e[0]===t[0]&&e[1]===t[1]}function Dn(e,t,i){const n=Ln(t[0]-e[0]);return[e[0]+n*i,e[1]+(t[1]-e[1])*i]}function Ln(e){for(;e<-180;)e+=360;for(;e>180;)e-=360;return e}class zn{constructor(e=[],t=(e,t)=>e<t?-1:e>t?1:0){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:i}=this,n=t[e];for(;e>0;){const r=e-1>>1,o=t[r];if(i(n,o)>=0)break;t[e]=o,e=r}t[e]=n}_down(e){const{data:t,compare:i}=this,n=this.length>>1,r=t[e];for(;e<n;){let n=1+(e<<1);const o=n+1;if(o<this.length&&i(t[o],t[n])<0&&(n=o),i(t[n],r)>=0)break;t[e]=t[n],e=n}t[e]=r}}var On=8192;function Rn(e,t){return t.dist-e.dist}const kn=100,Bn=50;function Fn(e){const t=[1/0,1/0,-1/0,-1/0];if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}function Nn(e){return e[1]-e[0]+1}function Vn(e,t){const i=e[1]>=e[0]&&e[1]<t;return i||console.warn("Distance Expression: Index is out of range"),i}function jn(e,t){if(e[0]>e[1])return[null,null];const i=Nn(e);if(t){if(2===i)return[e,null];const t=Math.floor(i/2);return[[e[0],e[0]+t],[e[0]+t,e[1]]]}{if(1===i)return[e,null];const t=Math.floor(i/2)-1;return[[e[0],e[0]+t],[e[0]+t+1,e[1]]]}}function Un(e,t){const i=[1/0,1/0,-1/0,-1/0];if(!Vn(t,e.length))return i;for(let n=t[0];n<=t[1];++n)sn(i,e[n]);return i}function Hn(e){const t=[1/0,1/0,-1/0,-1/0];for(let i=0;i<e.length;++i)for(let n=0;n<e[i].length;++n)sn(t,e[i][n]);return t}function Gn(e,t,i){if(Fn(e)||Fn(t))return NaN;let n=0,r=0;return e[2]<t[0]&&(n=t[0]-e[2]),e[0]>t[2]&&(n=e[0]-t[2]),e[1]>t[3]&&(r=e[1]-t[3]),e[3]<t[1]&&(r=t[1]-e[3]),i.distance([0,0],[n,r])}function Zn(e){return 360*e-180}function Wn(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}function qn(e,t){const i=Math.pow(2,t.z),n=(e.y/On+t.y)/i;return[Zn((e.x/On+t.x)/i),Wn(n)]}function Xn(e,t){const i=[];for(let n=0;n<e.length;++n)i.push(qn(e[n],t));return i}function $n(e,t,i){const n=i.pointOnLine(t,e).point;return i.distance(e,n)}function Yn(e,t,i,n,r){const o=i.slice(n[0],n[1]+1);let s=1/0;for(let i=t[0];i<=t[1];++i)if(0===(s=Math.min(s,$n(e[i],o,r))))return 0;return s}function Qn(e,t,i,n,r){const o=Math.min(r.pointToSegmentDistance(e,i,n),r.pointToSegmentDistance(t,i,n)),s=Math.min(r.pointToSegmentDistance(i,e,t),r.pointToSegmentDistance(n,e,t));return Math.min(o,s)}function Kn(e,t,i,n,r){if(!Vn(t,e.length)||!Vn(n,i.length))return NaN;let o=1/0;for(let s=t[0];s<t[1];++s)for(let t=n[0];t<n[1];++t){if(un(e[s],e[s+1],i[t],i[t+1]))return 0;o=Math.min(o,Qn(e[s],e[s+1],i[t],i[t+1],r))}return o}function Jn(e,t,i,n,r){if(!Vn(t,e.length)||!Vn(n,i.length))return NaN;let o=1/0;for(let s=t[0];s<=t[1];++s)for(let t=n[0];t<=n[1];++t)if(0===(o=Math.min(o,r.distance(e[s],i[t]))))return o;return o}function er(e,t,i){if(cn(e,t,!0))return 0;let n=1/0;for(const r of t){const t=r.length;if(t<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(r[0]!==r[t-1]&&0===(n=Math.min(n,i.pointToSegmentDistance(e,r[t-1],r[0]))))return n;if(0===(n=Math.min(n,$n(e,r,i))))return n}return n}function tr(e,t,i,n){if(!Vn(t,e.length))return NaN;for(let n=t[0];n<=t[1];++n)if(cn(e[n],i,!0))return 0;let r=1/0;for(let o=t[0];o<t[1];++o)for(const t of i)for(let i=0,s=t.length,a=s-1;i<s;a=i++){if(un(e[o],e[o+1],t[a],t[i]))return 0;r=Math.min(r,Qn(e[o],e[o+1],t[a],t[i],n))}return r}function ir(e,t){for(const i of e)for(let e=0;e<=i.length-1;++e)if(cn(i[e],t,!0))return!0;return!1}function nr(e,t,i,n=1/0){const r=Hn(e),o=Hn(t);if(n!==1/0&&Gn(r,o,i)>=n)return n;if(an(r,o)){if(ir(e,t))return 0}else if(ir(t,e))return 0;let s=n;for(const n of e)for(let e=0,r=n.length,o=r-1;e<r;o=e++)for(const r of t)for(let t=0,a=r.length,l=a-1;t<a;l=t++){if(un(n[o],n[e],r[l],r[t]))return 0;s=Math.min(s,Qn(n[o],n[e],r[l],r[t],i))}return s}function rr(e,t,i,n,r,o,s){if(null===o||null===s)return;const a=Gn(Un(n,o),Un(r,s),i);a<t&&e.push({dist:a,range1:o,range2:s})}function or(e,t,i,n,r=1/0){let o=Math.min(n.distance(e[0],i[0][0]),r);if(0===o)return o;const s=new zn([{dist:0,range1:[0,e.length-1],range2:[0,0]}],Rn),a=t?Bn:kn,l=Hn(i);for(;s.length;){const r=s.pop();if(r.dist>=o)continue;const c=r.range1;if(Nn(c)<=a){if(!Vn(c,e.length))return NaN;if(t){const t=tr(e,c,i,n);if(0===(o=Math.min(o,t)))return o}else for(let t=c[0];t<=c[1];++t){const r=er(e[t],i,n);if(0===(o=Math.min(o,r)))return o}}else{const i=jn(c,t);if(null!==i[0]){const t=Gn(Un(e,i[0]),l,n);t<o&&s.push({dist:t,range1:i[0],range2:[0,0]})}if(null!==i[1]){const t=Gn(Un(e,i[1]),l,n);t<o&&s.push({dist:t,range1:i[1],range2:[0,0]})}}}return o}function sr(e,t,i,n,r,o=1/0){let s=Math.min(o,r.distance(e[0],i[0]));if(0===s)return s;const a=new zn([{dist:0,range1:[0,e.length-1],range2:[0,i.length-1]}],Rn),l=t?Bn:kn,c=n?Bn:kn;for(;a.length;){const o=a.pop();if(o.dist>=s)continue;const h=o.range1,u=o.range2;if(Nn(h)<=l&&Nn(u)<=c){if(!Vn(h,e.length)||!Vn(u,i.length))return NaN;if(t&&n?s=Math.min(s,Kn(e,h,i,u,r)):t||n?t&&!n?s=Math.min(s,Yn(i,u,e,h,r)):!t&&n&&(s=Math.min(s,Yn(e,h,i,u,r))):s=Math.min(s,Jn(e,h,i,u,r)),0===s)return s}else{const o=jn(h,t),l=jn(u,n);rr(a,s,r,e,i,o[0],l[0]),rr(a,s,r,e,i,o[0],l[1]),rr(a,s,r,e,i,o[1],l[0]),rr(a,s,r,e,i,o[1],l[1])}}return s}function ar(e,t,i,n,r=1/0){let o=r;const s=Un(e,[0,e.length-1]);for(const r of i)if(!(o!==1/0&&Gn(s,Un(r,[0,r.length-1]),n)>=o)&&(o=Math.min(o,sr(e,t,r,!0,n,o)),0===o))return o;return o}function lr(e,t,i,n,r=1/0){let o=r;const s=Un(e,[0,e.length-1]);for(const r of i){if(o!==1/0&&Gn(s,Hn(r),n)>=o)continue;const i=or(e,t,r,n,o);if(isNaN(i))return i;if(0===(o=Math.min(o,i)))return o}return o}function cr(e){return"Point"===e||"MultiPoint"===e||"LineString"===e||"MultiLineString"===e||"Polygon"===e||"MultiPolygon"===e}class hr{constructor(e,t){this.type=gi,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(Fi(e[1])){const t=e[1];if("FeatureCollection"===t.type){for(let e=0;e<t.features.length;++e)if(cr(t.features[e].geometry.type))return new hr(t,t.features[e].geometry)}else if("Feature"===t.type){if(cr(t.geometry.type))return new hr(t,t.geometry)}else if(cr(t.type))return new hr(t,t)}return t.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const t=e.geometry(),i=e.canonicalID();if(null!=t&&null!=i){if("Point"===e.geometryType())return function(e,t,i){const n=[];for(const i of e)for(const e of i)n.push(qn(e,t));const r=new Mn(n[0][1],"meters");return"Point"===i.type||"MultiPoint"===i.type||"LineString"===i.type?sr(n,!1,"Point"===i.type?[i.coordinates]:i.coordinates,"LineString"===i.type,r):"MultiLineString"===i.type?ar(n,!1,i.coordinates,r):"Polygon"===i.type||"MultiPolygon"===i.type?lr(n,!1,"Polygon"===i.type?[i.coordinates]:i.coordinates,r):null}(t,i,this.geometries);if("LineString"===e.geometryType())return function(e,t,i){const n=[];for(const i of e){const e=[];for(const n of i)e.push(qn(n,t));n.push(e)}const r=new Mn(n[0][0][1],"meters");if("Point"===i.type||"MultiPoint"===i.type||"LineString"===i.type)return ar("Point"===i.type?[i.coordinates]:i.coordinates,"LineString"===i.type,n,r);if("MultiLineString"===i.type){let e=1/0;for(let t=0;t<i.coordinates.length;t++){const o=ar(i.coordinates[t],!0,n,r,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}if("Polygon"===i.type||"MultiPolygon"===i.type){let e=1/0;for(let t=0;t<n.length;t++){const o=lr(n[t],!0,"Polygon"===i.type?[i.coordinates]:i.coordinates,r,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}return null}(t,i,this.geometries);if("Polygon"===e.geometryType())return function(e,t,i){const n=[];for(const i of function(e){const t=e.length;if(t<=1)return[e];const i=[];let n,r;for(let o=0;o<t;o++){const t=on(e[o]);0!==t&&(e[o].area=Math.abs(t),void 0===r&&(r=t<0),r===t<0?(n&&i.push(n),n=[e[o]]):n.push(e[o]))}return n&&i.push(n),i}(e)){const e=[];for(let n=0;n<i.length;++n)e.push(Xn(i[n],t));n.push(e)}const r=new Mn(n[0][0][0][1],"meters");if("Point"===i.type||"MultiPoint"===i.type||"LineString"===i.type)return lr("Point"===i.type?[i.coordinates]:i.coordinates,"LineString"===i.type,n,r);if("MultiLineString"===i.type){let e=1/0;for(let t=0;t<i.coordinates.length;t++){const o=lr(i.coordinates[t],!0,n,r,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}return"Polygon"===i.type||"MultiPolygon"===i.type?function(e,t,i){let n=1/0;for(const r of e)for(const e of t){const t=nr(r,e,i,n);if(isNaN(t))return t;if(0===(n=Math.min(n,t)))return n}return n}("Polygon"===i.type?[i.coordinates]:i.coordinates,n,r):null}(t,i,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function ur(e){if(e instanceof Ki){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof Cn)return!1;if(e instanceof hr)return!1;if(e instanceof Ar)return e.featureConstant;let t=!0;return e.eachChild(e=>{t&&!ur(e)&&(t=!1)}),t}function dr(e){if(e instanceof Ki&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild(e=>{t&&!dr(e)&&(t=!1)}),t}function pr(e){if(e instanceof Ar)return new Set([e.key]);let t=new Set;return e.eachChild(e=>{t=new Set([...t,...pr(e)])}),t}function fr(e,t){if(e instanceof Ki&&t.indexOf(e.name)>=0)return!1;let i=!0;return e.eachChild(e=>{i&&!fr(e,t)&&(i=!1)}),i}function mr(e,t,i){return[e,t,i].filter(Boolean).join("")}function gr(e,t){switch(e){case"string":return Vi(t);case"number":return+t;case"boolean":return!!t;case"color":return oi.parse(t);case"formatted":return Oi.fromString(Vi(t));case"resolvedImage":return ki.build(Vi(t))}return t}function _r(e,t,i,n){return void 0!==n&&(e=n*Math.round(e/n)),void 0!==t&&e<t&&(e=t),void 0!==i&&e>i&&(e=i),e}class Ar{constructor(e,t,i,n=!1){this.type=e,this.key=t,this.scope=i,this.featureConstant=n}static parse(e,t){let i=t.expectedType;if(null==i&&(i=xi),e.length<2||e.length>3)return t.error("Invalid number of arguments for 'config' expression.");const n=t.parse(e[1],1);if(!(n instanceof ji))return t.error("Key name of 'config' expression must be a string literal.");let r,o=!0;const s=Vi(n.value);if(e.length>=3){const i=t.parse(e[2],2);if(!(i instanceof ji))return t.error("Scope of 'config' expression must be a string literal.");r=Vi(i.value)}if(t.options){const e=mr(s,r,t._scope),i=t.options.get(e);i&&(o=ur(i.value||i.default))}return new Ar(i,s,r,o)}evaluate(e){const t=mr(this.key,this.scope,e.scope),i=e.getConfig(t);if(!i)return null;const{type:n,value:r,values:o,minValue:s,maxValue:a,stepValue:l}=i,c=i.default.evaluate(e);let h=c;if(r){const t=e.scope;e.scope=(t||"").split("").slice(1).join(""),h=r.evaluate(e),e.scope=t}return n&&(h=gr(n,h)),void 0===h||void 0===s&&void 0===a&&void 0===l||("number"==typeof h?h=_r(h,s,a,l):Array.isArray(h)&&(h=h.map(e=>"number"==typeof e?_r(e,s,a,l):e))),void 0!==r&&void 0!==h&&o&&!o.includes(h)&&(h=c,n&&(h=gr(n,h))),(n&&n!==this.type||void 0!==h&&!Di(Ni(h),this.type))&&(h=gr(this.type.kind,h)),h}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.scope),e}}class yr{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const i=e[1];return t.scope.has(i)?new yr(i,t.scope.get(i)):t.error(`Unknown variable "${i}". Make sure "${i}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class vr{constructor(e,t=[],i,n=new fi,r=[],o,s){this.registry=e,this.path=t,this.key=t.map(e=>"string"==typeof e?`['${e}']`:`[${e}]`).join(""),this.scope=n,this.errors=r,this.expectedType=i,this._scope=o,this.options=s}parse(e,t,i,n,r={}){return t||i?this.concat(t,null,i,n)._parse(e,r):this._parse(e,r)}parseObjectValue(e,t,i,n,r,o={}){return this.concat(t,i,n,r)._parse(e,o)}_parse(e,t){function i(e,t,i){return"assert"===i?new Gi(t,[e]):"coerce"===i?new $i(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const n="string"==typeof e[0]?this.registry[e[0]]:void 0;if(n){let r=n.parse(e,this);if(!r)return null;if(this.expectedType){const e=this.expectedType,n=r.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==n.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==n.kind&&"string"!==n.kind){if(this.checkSubtype(e,n))return null}else r=i(r,e,t.typeAnnotation||"coerce");else r=i(r,e,t.typeAnnotation||"assert")}if(!(r instanceof ji)&&"resolvedImage"!==r.type.kind&&xr(r)){const t=new Qi(this._scope,this.options);try{r=new ji(r.type,r.evaluate(t))}catch(e){return this.error(e.message),null}}return r}return $i.parse(["to-array",e],this)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,i,n){let r="number"==typeof e?this.path.concat(e):this.path;r="string"==typeof t?r.concat(t):r;const o=n?this.scope.concat(n):this.scope;return new vr(this.registry,r,i||null,o,this.errors,this._scope,this.options)}error(e,...t){const i=`${this.key}${t.map(e=>`[${e}]`).join("")}`;this.errors.push(new pi(i,e))}checkSubtype(e,t){const i=Ii(e,t);return i&&this.error(i),i}}function xr(e){if(e instanceof yr)return xr(e.boundExpression);if(e instanceof Ki&&"error"===e.name)return!1;if(e instanceof en)return!1;if(e instanceof Cn)return!1;if(e instanceof hr)return!1;if(e instanceof Ar)return!1;const t=e instanceof $i||e instanceof Gi;let i=!0;return e.eachChild(e=>{i=t?i&&xr(e):i&&e instanceof ji}),!!i&&ur(e)&&fr(e,["zoom","heatmap-density","worldview","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function br(e,t){const i=e.length-1;let n,r,o=0,s=i,a=0;for(;o<=s;)if(a=Math.floor((o+s)/2),n=e[a],r=e[a+1],n<=t){if(a===i||t<r)return a;o=a+1}else{if(!(n>t))throw new Ui("Input is not a number.");s=a-1}return 0}class wr{constructor(e,t,i){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of i)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const i=t.parse(e[1],1,gi);if(!i)return null;const n=[];let r=null;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(let i=1;i<e.length;i+=2){const o=1===i?-1/0:e[i],s=e[i+1],a=i,l=i+1;if("number"!=typeof o)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',a);if(n.length&&n[n.length-1][0]>=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const c=t.parse(s,l,r);if(!c)return null;r=r||c.type,n.push([o,c])}return new wr(r,i,n)}evaluate(e){const t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);const n=this.input.evaluate(e);if(n<=t[0])return i[0].evaluate(e);const r=t.length;return n>=t[r-1]?i[r-1].evaluate(e):i[br(t,n)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}const Cr=.95047,Tr=1.08883,Er=4/29,Sr=6/29,Ir=3*Sr*Sr,Mr=Sr*Sr*Sr,Pr=Math.PI/180,Dr=180/Math.PI;function Lr(e){return e>Mr?Math.pow(e,1/3):e/Ir+Er}function zr(e){return e>Sr?e*e*e:Ir*(e-Er)}function Or(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Rr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kr(e){const t=Rr(e.r),i=Rr(e.g),n=Rr(e.b),r=Lr((.4124564*t+.3575761*i+.1804375*n)/Cr),o=Lr((.2126729*t+.7151522*i+.072175*n)/1);return{l:116*o-16,a:500*(r-o),b:200*(o-Lr((.0193339*t+.119192*i+.9503041*n)/Tr)),alpha:e.a}}function Br(e){let t=(e.l+16)/116,i=isNaN(e.a)?t:t+e.a/500,n=isNaN(e.b)?t:t-e.b/200;return t=1*zr(t),i=Cr*zr(i),n=Tr*zr(n),new oi(Or(3.2404542*i-1.5371385*t-.4985314*n),Or(-.969266*i+1.8760108*t+.041556*n),Or(.0556434*i-.2040259*t+1.0572252*n),e.alpha)}function Fr(e,t,i){const n=t-e;return e+i*(n>180||n<-180?n-360*Math.round(n/360):n)}const Nr={forward:kr,reverse:Br,interpolate:function(e,t,i){return{l:ci(e.l,t.l,i),a:ci(e.a,t.a,i),b:ci(e.b,t.b,i),alpha:ci(e.alpha,t.alpha,i)}}},Vr={forward:function(e){const{l:t,a:i,b:n}=kr(e),r=Math.atan2(n,i)*Dr;return{h:r<0?r+360:r,c:Math.sqrt(i*i+n*n),l:t,alpha:e.a}},reverse:function(e){const t=e.h*Pr,i=e.c;return Br({l:e.l,a:Math.cos(t)*i,b:Math.sin(t)*i,alpha:e.alpha})},interpolate:function(e,t,i){return{h:Fr(e.h,t.h,i),c:ci(e.c,t.c,i),l:ci(e.l,t.l,i),alpha:ci(e.alpha,t.alpha,i)}}};var jr=Object.freeze({__proto__:null,hcl:Vr,lab:Nr});class Ur{constructor(e,t,i,n,r){this.type=e,this.operator=t,this.interpolation=i,this.input=n,this.labels=[],this.outputs=[];for(const[e,t]of r)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,i,n){let r=0;if("exponential"===e.name)r=Hr(t,e.base,i,n);else if("linear"===e.name)r=Hr(t,1,i,n);else if("cubic-bezier"===e.name){const o=e.controlPoints;r=new Ae(o[0],o[1],o[2],o[3]).solve(Hr(t,1,i,n))}return r}static parse(e,t){let[i,n,r,...o]=e;if(!Array.isArray(n)||0===n.length)return t.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){const e=n[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:e}}else{if("cubic-bezier"!==n[0])return t.error(`Unknown interpolation type ${String(n[0])}`,1,0);{const e=n.slice(1);if(4!==e.length||e.some(e=>"number"!=typeof e||e<0||e>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length-1>3&&(e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(r=t.parse(r,2,gi),!r)return null;const s=[];let a=null;"interpolate-hcl"===i||"interpolate-lab"===i?a=yi:t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(let e=0;e<o.length;e+=2){const i=o[e],n=o[e+1],r=e+3,l=e+4;if("number"!=typeof i)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',r);if(s.length&&s[s.length-1][0]>=i)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',r);const c=t.parse(n,l,a);if(!c)return null;a=a||c.type,s.push([i,c])}return"number"===a.kind||"color"===a.kind||"array"===a.kind&&"number"===a.itemType.kind&&"number"==typeof a.N?new Ur(a,i,n,r,s):t.error(`Type ${Ei(a)} is not interpolatable.`)}evaluate(e){const t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);const n=this.input.evaluate(e);if(n<=t[0])return i[0].evaluate(e);const r=t.length;if(n>=t[r-1])return i[r-1].evaluate(e);const o=br(t,n),s=Ur.interpolationFactor(this.interpolation,n,t[o],t[o+1]),a=i[o].evaluate(e),l=i[o+1].evaluate(e);return"interpolate"===this.operator?ui[this.type.kind.toLowerCase()](a,l,s):"interpolate-hcl"===this.operator?Vr.reverse(Vr.interpolate(Vr.forward(a),Vr.forward(l),s)):Nr.reverse(Nr.interpolate(Nr.forward(a),Nr.forward(l),s))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier",...this.interpolation.controlPoints];const t=[this.operator,e,this.input.serialize()];for(let e=0;e<this.labels.length;e++)t.push(this.labels[e],this.outputs[e].serialize());return t}}function Hr(e,t,i,n){const r=n-i,o=e-i;return 0===r?0:1===t?o/r:(Math.pow(t,o)-1)/(Math.pow(t,r)-1)}class Gr{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let i=null;const n=t.expectedType;n&&"value"!==n.kind&&(i=n);const r=[];for(const n of e.slice(1)){const e=t.parse(n,1+r.length,i,void 0,{typeAnnotation:"omit"});if(!e)return null;i=i||e.type,r.push(e)}const o=n&&r.some(e=>Ii(n,e.type));return new Gr(o?xi:i,r)}evaluate(e){let t,i=null,n=0;for(const r of this.args){if(n++,i=r.evaluate(e),i&&i instanceof ki&&!i.available&&(t||(t=i),i=null,n===this.args.length))return t;if(null!==i)break}return i}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class Zr{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const i=[];for(let n=1;n<e.length-1;n+=2){const r=e[n];if("string"!=typeof r)return t.error(`Expected string, but found ${typeof r} instead.`,n);if(/[^a-zA-Z0-9_]/.test(r))return t.error("Variable names must contain only alphanumeric characters or '_'.",n);const o=t.parse(e[n+1],n+1);if(!o)return null;i.push([r,o])}const n=t.parse(e[e.length-1],e.length-1,t.expectedType,i);return n?new Zr(i,n):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[t,i]of this.bindings)e.push(t,i.serialize());return e.push(this.result.serialize()),e}}class Wr{constructor(e,t,i){this.type=e,this.index=t,this.input=i}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,gi),n=t.parse(e[2],2,Ti(t.expectedType||xi));return i&&n?new Wr(n.type.itemType,i,n):null}evaluate(e){const t=this.index.evaluate(e),i=this.input.evaluate(e);if(t<0)throw new Ui(`Array index out of bounds: ${t} < 0.`);if(t>=i.length)throw new Ui(`Array index out of bounds: ${t} > ${i.length-1}.`);if(t!==Math.floor(t))throw new Ui(`Array index must be an integer, but found ${t} instead. Use at-interpolated to retrieve interpolated result with a fractional index.`);return i[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class qr{constructor(e,t,i){this.type=e,this.index=t,this.input=i}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,gi),n=t.parse(e[2],2,Ti(t.expectedType||xi));return i&&n?new qr(n.type.itemType,i,n):null}evaluate(e){const t=this.index.evaluate(e),i=this.input.evaluate(e);if(t<0)throw new Ui(`Array index out of bounds: ${t} < 0.`);if(t>i.length-1)throw new Ui(`Array index out of bounds: ${t} > ${i.length-1}.`);if(t===Math.floor(t))return i[t];const n=Math.floor(t),r=Math.ceil(t),o=i[n],s=i[r];if("number"!=typeof o||"number"!=typeof s)throw new Ui(`Cannot interpolate between non-number values at index ${t}.`);const a=t-n;return o*(1-a)+s*a}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Xr{constructor(e,t){this.type=Ai,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,xi),n=t.parse(e[2],2,xi);return i&&n?Mi(i.type,[Ai,_i,gi,mi,xi])?new Xr(i,n):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ei(i.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(null==i)return!1;if(!Pi(t,["boolean","string","number","null"]))throw new Ui(`Expected first argument to be of type boolean, string, number or null, but found ${Ei(Ni(t))} instead.`);if(!Pi(i,["string","array"]))throw new Ui(`Expected second argument to be of type array or string, but found ${Ei(Ni(i))} instead.`);return i.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class $r{constructor(e,t,i){this.type=gi,this.needle=e,this.haystack=t,this.fromIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,xi),n=t.parse(e[2],2,xi);if(!i||!n)return null;if(!Mi(i.type,[Ai,_i,gi,mi,xi]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ei(i.type)} instead`);if(4===e.length){const r=t.parse(e[3],3,gi);return r?new $r(i,n,r):null}return new $r(i,n)}evaluate(e){const t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!Pi(t,["boolean","string","number","null"]))throw new Ui(`Expected first argument to be of type boolean, string, number or null, but found ${Ei(Ni(t))} instead.`);if(!Pi(i,["string","array"]))throw new Ui(`Expected second argument to be of type array or string, but found ${Ei(Ni(i))} instead.`);if(this.fromIndex){const n=this.fromIndex.evaluate(e);return i.indexOf(t,n)}return i.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Yr{constructor(e,t,i,n,r,o){this.inputType=e,this.type=t,this.input=i,this.cases=n,this.outputs=r,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let i,n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const r={},o=[];for(let s=2;s<e.length-1;s+=2){let a=e[s];const l=e[s+1];Array.isArray(a)||(a=[a]);const c=t.concat(s);if(0===a.length)return c.error("Expected at least one branch label.");for(const e of a){if("number"!=typeof e&&"string"!=typeof e)return c.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(i){if(c.checkSubtype(i,Ni(e)))return null}else i=Ni(e);if(void 0!==r[String(e)])return c.error("Branch labels must be unique.");r[String(e)]=o.length}const h=t.parse(l,s,n);if(!h)return null;n=n||h.type,o.push(h)}const s=t.parse(e[1],1,xi);if(!s)return null;const a=t.parse(e[e.length-1],e.length-1,n);return a?"value"!==s.type.kind&&t.concat(1).checkSubtype(i,s.type)?null:new Yr(i,n,s,r,o,a):null}evaluate(e){const t=this.input.evaluate(e);return(Di(Ni(t),this.inputType)&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),i=[],n={};for(const e of t){const t=n[this.cases[e]];void 0===t?(n[this.cases[e]]=i.length,i.push([this.cases[e],[e]])):i[t][1].push(e)}const r=e=>"number"===this.inputType.kind?Number(e):e;for(const[t,n]of i)e.push(1===n.length?r(n[0]):n.map(r)),e.push(this.outputs[t].serialize());return e.push(this.otherwise.serialize()),e}}class Qr{constructor(e,t,i){this.type=e,this.branches=t,this.otherwise=i}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let i;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);const n=[];for(let r=1;r<e.length-1;r+=2){const o=t.parse(e[r],r,Ai);if(!o)return null;const s=t.parse(e[r+1],r+1,i);if(!s)return null;n.push([o,s]),i=i||s.type}const r=t.parse(e[e.length-1],e.length-1,i);return r?new Qr(i,n,r):null}evaluate(e){for(const[t,i]of this.branches)if(t.evaluate(e))return i.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,i]of this.branches)e(t),e(i);e(this.otherwise)}outputDefined(){return this.branches.every(([e,t])=>t.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class Kr{constructor(e,t,i,n){this.type=e,this.input=t,this.beginIndex=i,this.endIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,xi),n=t.parse(e[2],2,gi);if(!i||!n)return null;if(!Mi(i.type,[Ti(xi),_i,xi]))return t.error(`Expected first argument to be of type array or string, but found ${Ei(i.type)} instead`);if(4===e.length){const r=t.parse(e[3],3,gi);return r?new Kr(i.type,i,n,r):null}return new Kr(i.type,i,n)}evaluate(e){const t=this.input.evaluate(e),i=this.beginIndex.evaluate(e);if(!Pi(t,["string","array"]))throw new Ui(`Expected first argument to be of type array or string, but found ${Ei(Ni(t))} instead.`);if(this.endIndex){const n=this.endIndex.evaluate(e);return t.slice(i,n)}return t.slice(i)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function Jr(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function eo(e,t,i,n){return 0===n.compare(t,i)}function to(e,t,i){const n="=="!==e&&"!="!==e;return class r{constructor(e,t,i){this.type=Ai,this.lhs=e,this.rhs=t,this.collator=i,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const i=e[0];let o=t.parse(e[1],1,xi);if(!o)return null;if(!Jr(i,o.type))return t.concat(1).error(`"${i}" comparisons are not supported for type '${Ei(o.type)}'.`);let s=t.parse(e[2],2,xi);if(!s)return null;if(!Jr(i,s.type))return t.concat(2).error(`"${i}" comparisons are not supported for type '${Ei(s.type)}'.`);if(o.type.kind!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return t.error(`Cannot compare types '${Ei(o.type)}' and '${Ei(s.type)}'.`);n&&("value"===o.type.kind&&"value"!==s.type.kind?o=new Gi(s.type,[o]):"value"!==o.type.kind&&"value"===s.type.kind&&(s=new Gi(o.type,[s])));let a=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return t.error("Cannot use collator to compare non-string types.");if(a=t.parse(e[3],3,bi),!a)return null}return new r(o,s,a)}evaluate(r){const o=this.lhs.evaluate(r),s=this.rhs.evaluate(r);if(n&&this.hasUntypedArgument){const t=Ni(o),i=Ni(s);if(t.kind!==i.kind||"string"!==t.kind&&"number"!==t.kind)throw new Ui(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${i.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const e=Ni(o),i=Ni(s);if("string"!==e.kind||"string"!==i.kind)return t(r,o,s)}return this.collator?i(r,o,s,this.collator.evaluate(r)):t(r,o,s)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild(e=>{t.push(e.serialize())}),t}}}const io=to("==",function(e,t,i){return t===i},eo),no=to("!=",function(e,t,i){return t!==i},function(e,t,i,n){return!eo(0,t,i,n)}),ro=to("<",function(e,t,i){return t<i},function(e,t,i,n){return n.compare(t,i)<0}),oo=to(">",function(e,t,i){return t>i},function(e,t,i,n){return n.compare(t,i)>0}),so=to("<=",function(e,t,i){return t<=i},function(e,t,i,n){return n.compare(t,i)<=0}),ao=to(">=",function(e,t,i){return t>=i},function(e,t,i,n){return n.compare(t,i)>=0});class lo{constructor(e,t,i,n,r,o){this.type=_i,this.number=e,this.locale=t,this.currency=i,this.unit=n,this.minFractionDigits=r,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const i=t.parse(e[1],1,gi);if(!i)return null;const n=e[2];if("object"!=typeof n||Array.isArray(n))return t.error("NumberFormat options argument must be an object.");let r=null;if(n.locale&&(r=t.parseObjectValue(n.locale,2,"locale",_i),!r))return null;let o=null;if(n.currency&&(o=t.parseObjectValue(n.currency,2,"currency",_i),!o))return null;let s=null;if(n.unit&&(s=t.parseObjectValue(n.unit,2,"unit",_i),!s))return null;let a=null;if(n["min-fraction-digits"]&&(a=t.parseObjectValue(n["min-fraction-digits"],2,"min-fraction-digits",gi),!a))return null;let l=null;return n["max-fraction-digits"]&&(l=t.parseObjectValue(n["max-fraction-digits"],2,"max-fraction-digits",gi),!l)?null:new lo(i,r,o,s,a,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class co{constructor(e){this.type=gi,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const i=t.parse(e[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?t.error(`Expected argument of type string or array, but found ${Ei(i.type)} instead.`):new co(i):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Ui(`Expected value to be of type string or array, but found ${Ei(Ni(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(t=>{e.push(t.serialize())}),e}}function ho(e){return function(){e=1831565813+(e|=0)|0;let t=Math.imul(e^e>>>15,1|e);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296}}const uo={"==":io,"!=":no,">":oo,"<":ro,">=":ao,"<=":so,array:Gi,at:Wr,"at-interpolated":qr,boolean:Gi,case:Qr,coalesce:Gr,collator:en,format:Zi,image:Wi,in:Xr,"index-of":$r,interpolate:Ur,"interpolate-hcl":Ur,"interpolate-lab":Ur,length:co,let:Zr,literal:ji,match:Yr,number:Gi,"number-format":lo,object:Gi,slice:Kr,step:wr,string:Gi,"to-boolean":$i,"to-color":$i,"to-number":$i,"to-string":$i,var:yr,within:Cn,distance:hr,config:Ar};function po(e,[t,i,n,r]){t=t.evaluate(e),i=i.evaluate(e),n=n.evaluate(e);const o=r?r.evaluate(e):1,s=Bi(t,i,n,o);if(s)throw new Ui(s);return new oi(t/255,i/255,n/255,o)}function fo(e,[t,i,n,r]){t=t.evaluate(e),i=i.evaluate(e),n=n.evaluate(e);const o=r?r.evaluate(e):1,s=function(e,t,i,n){return"number"==typeof e&&e>=0&&e<=360?"number"==typeof t&&t>=0&&t<=100&&"number"==typeof i&&i>=0&&i<=100?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:`Invalid hsla value [${[e,t,i,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${("number"==typeof n?[e,t,i,n]:[e,t,i]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${("number"==typeof n?[e,t,i,n]:[e,t,i]).join(", ")}]: 'h' must be between 0 and 360.`}(t,i,n,o);if(s)throw new Ui(s);const a=`hsla(${t}, ${i}%, ${n}%, ${o})`,l=oi.parse(a);if(!l)throw new Ui(`Failed to parse HSLA color: ${a}`);return l}function mo(e,t){return e in t}function go(e,t){const i=t[e];return void 0===i?null:i}function _o(e){return{type:e}}function Ao(e){return{result:"success",value:e}}function yo(e){return{result:"error",value:e}}function vo(e,t){return!!e&&!!e.parameters&&e.parameters.indexOf(t)>-1}function xo(e){return"data-driven"===e["property-type"]}function bo(e){return vo(e.expression,"measure-light")}function wo(e){return vo(e.expression,"zoom")}function Co(e){return!!e.expression&&e.expression.interpolated}function To(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Eo(e){return e}function So(e,t){const i="color"===t.type,n=e.stops&&"object"==typeof e.stops[0][0],r=n||!(n||void 0!==e.property),o=e.type||(Co(t)?"exponential":"interval");if(i&&((e=di({},e)).stops&&(e.stops=e.stops.map(e=>[e[0],oi.parse(e[1])])),e.default=oi.parse(e.default?e.default:t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!jr[e.colorSpace])throw new Error(`Unknown color space: ${e.colorSpace}`);let s,a,l;if("exponential"===o)s=Do;else if("interval"===o)s=Po;else if("categorical"===o){s=Mo,a=Object.create(null);for(const t of e.stops)a[t[0]]=t[1];l=typeof e.stops[0][0]}else{if("identity"!==o)throw new Error(`Unknown function type "${o}"`);s=Lo}if(n){const i={},n=[];for(let t=0;t<e.stops.length;t++){const r=e.stops[t],o=r[0].zoom;void 0===i[o]&&(i[o]={zoom:o,type:e.type,property:e.property,default:e.default,stops:[]},n.push(o)),i[o].stops.push([r[0].value,r[1]])}const r=[];for(const e of n)r.push([i[e].zoom,So(i[e],t)]);const o={name:"linear"};return{kind:"composite",interpolationType:o,interpolationFactor:Ur.interpolationFactor.bind(void 0,o),zoomStops:r.map(e=>e[0]),evaluate:({zoom:i},n)=>Do({stops:r,base:e.base},t,i).evaluate(i,n)}}if(r){const i="exponential"===o?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:i,interpolationFactor:Ur.interpolationFactor.bind(void 0,i),zoomStops:e.stops.map(e=>e[0]),evaluate:({zoom:i})=>s(e,t,i,a,l)}}return{kind:"source",evaluate(i,n){const r=n&&n.properties?n.properties[e.property]:void 0;return void 0===r?Io(e.default,t.default):s(e,t,r,a,l)}}}function Io(e,t,i){return void 0!==e?e:void 0!==t?t:void 0!==i?i:void 0}function Mo(e,t,i,n,r){return Io(typeof i===r?n[i]:void 0,e.default,t.default)}function Po(e,t,i){if("number"!==qi(i))return Io(e.default,t.default);const n=e.stops.length;if(1===n)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[n-1][0])return e.stops[n-1][1];const r=br(e.stops.map(e=>e[0]),i);return e.stops[r][1]}function Do(e,t,i){const n=void 0!==e.base?e.base:1;if("number"!==qi(i))return Io(e.default,t.default);const r=e.stops.length;if(1===r)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[r-1][0])return e.stops[r-1][1];const o=br(e.stops.map(e=>e[0]),i),s=function(e,t,i,n){const r=n-i,o=e-i;return 0===r?0:1===t?o/r:(Math.pow(t,o)-1)/(Math.pow(t,r)-1)}(i,n,e.stops[o][0],e.stops[o+1][0]),a=e.stops[o][1],l=e.stops[o+1][1];let c=ui[t.type]||Eo;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=jr[e.colorSpace];c=(e,i)=>t.reverse(t.interpolate(t.forward(e),t.forward(i),s))}return"function"==typeof a.evaluate?{evaluate(...e){const t=a.evaluate.apply(void 0,e),i=l.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==i)return c(t,i,s)}}:c(a,l,s)}function Lo(e,t,i){return"color"===t.type?i=oi.parse(i):"formatted"===t.type?i=Oi.fromString(i.toString()):"resolvedImage"===t.type?i=ki.build(i.toString()):qi(i)===t.type||"enum"===t.type&&t.values[i]||(i=void 0),Io(i,e.default,t.default)}Ki.register(uo,{error:[{kind:"error"},[_i],(e,[t])=>{throw new Ui(t.evaluate(e))}],typeof:[_i,[xi],(e,[t])=>Ei(Ni(t.evaluate(e)))],"to-rgba":[Ti(gi,4),[yi],(e,[t])=>t.evaluate(e).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Ti(gi,4),[yi],(e,[t])=>t.evaluate(e).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[yi,[gi,gi,gi],po],rgba:[yi,[gi,gi,gi,gi],po],hsl:[yi,[gi,gi,gi],fo],hsla:[yi,[gi,gi,gi,gi],fo],has:{type:Ai,overloads:[[[_i],(e,[t])=>mo(t.evaluate(e),e.properties())],[[_i,vi],(e,[t,i])=>mo(t.evaluate(e),i.evaluate(e))]]},get:{type:xi,overloads:[[[_i],(e,[t])=>go(t.evaluate(e),e.properties())],[[_i,vi],(e,[t,i])=>go(t.evaluate(e),i.evaluate(e))]]},"feature-state":[xi,[_i],(e,[t])=>go(t.evaluate(e),e.featureState||{})],properties:[vi,[],e=>e.properties()],"geometry-type":[_i,[],e=>e.geometryType()],worldview:[_i,[],e=>e.globals.worldview||""],id:[xi,[],e=>e.id()],zoom:[gi,[],e=>e.globals.zoom],pitch:[gi,[],e=>e.globals.pitch||0],"distance-from-center":[gi,[],e=>e.distanceFromCenter()],"measure-light":[gi,[_i],(e,[t])=>e.measureLight(t.evaluate(e))],"heatmap-density":[gi,[],e=>e.globals.heatmapDensity||0],"line-progress":[gi,[],e=>e.globals.lineProgress||0],"raster-value":[gi,[],e=>e.globals.rasterValue||0],"raster-particle-speed":[gi,[],e=>e.globals.rasterParticleSpeed||0],"sky-radial-progress":[gi,[],e=>e.globals.skyRadialProgress||0],accumulated:[xi,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[gi,_o(gi),(e,t)=>{let i=0;for(const n of t)i+=n.evaluate(e);return i}],"*":[gi,_o(gi),(e,t)=>{let i=1;for(const n of t)i*=n.evaluate(e);return i}],"-":{type:gi,overloads:[[[gi,gi],(e,[t,i])=>t.evaluate(e)-i.evaluate(e)],[[gi],(e,[t])=>-t.evaluate(e)]]},"/":[gi,[gi,gi],(e,[t,i])=>t.evaluate(e)/i.evaluate(e)],"%":[gi,[gi,gi],(e,[t,i])=>t.evaluate(e)%i.evaluate(e)],ln2:[gi,[],()=>Math.LN2],pi:[gi,[],()=>Math.PI],e:[gi,[],()=>Math.E],"^":[gi,[gi,gi],(e,[t,i])=>Math.pow(t.evaluate(e),i.evaluate(e))],sqrt:[gi,[gi],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[gi,[gi],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[gi,[gi],(e,[t])=>Math.log(t.evaluate(e))],log2:[gi,[gi],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[gi,[gi],(e,[t])=>Math.sin(t.evaluate(e))],cos:[gi,[gi],(e,[t])=>Math.cos(t.evaluate(e))],tan:[gi,[gi],(e,[t])=>Math.tan(t.evaluate(e))],asin:[gi,[gi],(e,[t])=>Math.asin(t.evaluate(e))],acos:[gi,[gi],(e,[t])=>Math.acos(t.evaluate(e))],atan:[gi,[gi],(e,[t])=>Math.atan(t.evaluate(e))],min:[gi,_o(gi),(e,t)=>Math.min(...t.map(t=>t.evaluate(e)))],max:[gi,_o(gi),(e,t)=>Math.max(...t.map(t=>t.evaluate(e)))],abs:[gi,[gi],(e,[t])=>Math.abs(t.evaluate(e))],round:[gi,[gi],(e,[t])=>{const i=t.evaluate(e);return i<0?-Math.round(-i):Math.round(i)}],floor:[gi,[gi],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[gi,[gi],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Ai,[_i,xi],(e,[t,i])=>e.properties()[t.value]===i.value],"filter-id-==":[Ai,[xi],(e,[t])=>e.id()===t.value],"filter-type-==":[Ai,[_i],(e,[t])=>e.geometryType()===t.value],"filter-<":[Ai,[_i,xi],(e,[t,i])=>{const n=e.properties()[t.value],r=i.value;return typeof n==typeof r&&n<r}],"filter-id-<":[Ai,[xi],(e,[t])=>{const i=e.id(),n=t.value;return typeof i==typeof n&&i<n}],"filter->":[Ai,[_i,xi],(e,[t,i])=>{const n=e.properties()[t.value],r=i.value;return typeof n==typeof r&&n>r}],"filter-id->":[Ai,[xi],(e,[t])=>{const i=e.id(),n=t.value;return typeof i==typeof n&&i>n}],"filter-<=":[Ai,[_i,xi],(e,[t,i])=>{const n=e.properties()[t.value],r=i.value;return typeof n==typeof r&&n<=r}],"filter-id-<=":[Ai,[xi],(e,[t])=>{const i=e.id(),n=t.value;return typeof i==typeof n&&i<=n}],"filter->=":[Ai,[_i,xi],(e,[t,i])=>{const n=e.properties()[t.value],r=i.value;return typeof n==typeof r&&n>=r}],"filter-id->=":[Ai,[xi],(e,[t])=>{const i=e.id(),n=t.value;return typeof i==typeof n&&i>=n}],"filter-has":[Ai,[xi],(e,[t])=>t.value in e.properties()],"filter-has-id":[Ai,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[Ai,[Ti(_i)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[Ai,[Ti(xi)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[Ai,[_i,Ti(xi)],(e,[t,i])=>i.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[Ai,[_i,Ti(xi)],(e,[t,i])=>function(e,t,i,n){for(;i<=n;){const r=i+n>>1;if(t[r]===e)return!0;t[r]>e?n=r-1:i=r+1}return!1}(e.properties()[t.value],i.value,0,i.value.length-1)],all:{type:Ai,overloads:[[[Ai,Ai],(e,[t,i])=>t.evaluate(e)&&i.evaluate(e)],[_o(Ai),(e,t)=>{for(const i of t)if(!i.evaluate(e))return!1;return!0}]]},any:{type:Ai,overloads:[[[Ai,Ai],(e,[t,i])=>t.evaluate(e)||i.evaluate(e)],[_o(Ai),(e,t)=>{for(const i of t)if(i.evaluate(e))return!0;return!1}]]},"!":[Ai,[Ai],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Ai,[_i],(e,[t])=>{const i=e.globals&&e.globals.isSupportedScript;return!i||i(t.evaluate(e))}],upcase:[_i,[_i],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[_i,[_i],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[_i,_o(xi),(e,t)=>t.map(t=>Vi(t.evaluate(e))).join("")],"resolved-locale":[_i,[bi],(e,[t])=>t.evaluate(e).resolvedLocale()],random:[gi,[gi,gi,xi],(e,t)=>{const[i,n,r]=t.map(t=>t.evaluate(e));if(i>n)return i;if(i===n)return i;let o;if("string"==typeof r)o=function(e){let t=0;if(0===e.length)return t;for(let i=0;i<e.length;i++)t=(t<<5)-t+e.charCodeAt(i),t|=0;return t}(r);else{if("number"!=typeof r)throw new Ui(`Invalid seed input: ${r}`);o=r}return i+ho(o)()*(n-i)}]});class zo{constructor(e,t,i,n){this.expression=e,this._warningHistory={},this._evaluator=new Qi(i,n),this._defaultValue=t?function(e){return"color"===e.type&&(To(e.default)||Array.isArray(e.default))?new oi(0,0,0,0):"color"===e.type?oi.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null,this.configDependencies=pr(e)}evaluateWithoutErrorHandling(e,t,i,n,r,o,s,a){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=i,this._evaluator.canonical=n||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,i,n,r,o,s,a){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=i||null,this._evaluator.canonical=n||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new Ui(`Expected value to be one of ${Object.keys(this._enumValues).map(e=>JSON.stringify(e)).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${e.message}`)),this._defaultValue}}}function Oo(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in uo}function Ro(e,t,i,n){const r=new vr(uo,[],t?function(e){const t={color:yi,string:_i,number:gi,enum:_i,boolean:Ai,formatted:wi,resolvedImage:Ci};return"array"===e.type?Ti(t[e.value]||xi,e.length):t[e.type]}(t):void 0,void 0,void 0,i,n),o=r.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return o?Ao(new zo(o,t,i,n)):yo(r.errors)}class ko{constructor(e,t,i,n){this.kind=e,this._styleExpression=t,this.isLightConstant=i,this.isLineProgressConstant=n,this.isStateDependent="constant"!==e&&!dr(t.expression),this.configDependencies=pr(t.expression)}evaluateWithoutErrorHandling(e,t,i,n,r,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,n,r,o)}evaluate(e,t,i,n,r,o){return this._styleExpression.evaluate(e,t,i,n,r,o)}}class Bo{constructor(e,t,i,n,r,o){this.kind=e,this.zoomStops=i,this._styleExpression=t,this.isStateDependent="camera"!==e&&!dr(t.expression),this.isLightConstant=r,this.isLineProgressConstant=o,this.configDependencies=pr(t.expression),this.interpolationType=n}evaluateWithoutErrorHandling(e,t,i,n,r,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,n,r,o)}evaluate(e,t,i,n,r,o){return this._styleExpression.evaluate(e,t,i,n,r,o)}interpolationFactor(e,t,i){return this.interpolationType?Ur.interpolationFactor(this.interpolationType,e,t,i):0}}function Fo(e,t,i,n){if("error"===(e=Ro(e,t,i,n)).result)return e;const r=e.value.expression,o=ur(r);if(!o&&!xo(t))return yo([new pi("","data expressions not supported")]);const s=fr(r,["zoom","pitch","distance-from-center"]);if(!s&&!wo(t))return yo([new pi("","zoom expressions not supported")]);const a=fr(r,["measure-light"]);if(!a&&!bo(t))return yo([new pi("","measure-light expression not supported")]);const l=fr(r,["line-progress"]);if(!l&&!function(e){return vo(e.expression,"line-progress")}(t))return yo([new pi("","line-progress expression not supported")]);const c=t.expression&&t.expression.relaxZoomRestriction,h=Vo(r);return h||s||c?h instanceof pi?yo([h]):h instanceof Ur&&!Co(t)?yo([new pi("",'"interpolate" expressions cannot be used with this property')]):Ao(h?new Bo(o&&l?"camera":"composite",e.value,h.labels,h instanceof Ur?h.interpolation:void 0,a,l):new ko(o&&l?"constant":"source",e.value,a,l)):yo([new pi("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class No{constructor(e,t){this._parameters=e,this._specification=t,di(this,So(this._parameters,this._specification))}static deserialize(e){return new No(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Vo(e){let t=null;if(e instanceof Zr)t=Vo(e.result);else if(e instanceof Gr){for(const i of e.args)if(t=Vo(i),t)break}else(e instanceof wr||e instanceof Ur)&&e.input instanceof Ki&&"zoom"===e.input.name&&(t=e);return t instanceof pi||e.eachChild(e=>{const i=Vo(e);i instanceof pi?t=i:t&&i&&t!==i&&(t=new pi("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}var jo,Uo,Ho=function(){if(Uo)return jo;Uo=1,jo=t;var e=3;function t(t,i,n){var r=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var o=new Int32Array(this.arrayBuffer);t=o[0],this.d=(i=o[1])+2*(n=o[2]);for(var s=0;s<this.d*this.d;s++){var a=o[e+s],l=o[e+s+1];r.push(a===l?null:o.subarray(a,l))}var c=o[e+r.length+1];this.keys=o.subarray(o[e+r.length],c),this.bboxes=o.subarray(c),this.insert=this._insertReadonly}else{this.d=i+2*n;for(var h=0;h<this.d*this.d;h++)r.push([]);this.keys=[],this.bboxes=[]}this.n=i,this.extent=t,this.padding=n,this.scale=i/t,this.uid=0;var u=n/i*t;this.min=-u,this.max=t+u}return t.prototype.insert=function(e,t,i,n,r){this._forEachCell(t,i,n,r,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(r)},t.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},t.prototype._insertCell=function(e,t,i,n,r,o){this.cells[r].push(o)},t.prototype.query=function(e,t,i,n,r){var o=this.min,s=this.max;if(e<=o&&t<=o&&s<=i&&s<=n&&!r)return Array.prototype.slice.call(this.keys);var a=[];return this._forEachCell(e,t,i,n,this._queryCell,a,{},r),a},t.prototype._queryCell=function(e,t,i,n,r,o,s,a){var l=this.cells[r];if(null!==l)for(var c=this.keys,h=this.bboxes,u=0;u<l.length;u++){var d=l[u];if(void 0===s[d]){var p=4*d;(a?a(h[p+0],h[p+1],h[p+2],h[p+3]):e<=h[p+2]&&t<=h[p+3]&&i>=h[p+0]&&n>=h[p+1])?(s[d]=!0,o.push(c[d])):s[d]=!1}}},t.prototype._forEachCell=function(e,t,i,n,r,o,s,a){for(var l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),h=this._convertToCellCoord(i),u=this._convertToCellCoord(n),d=l;d<=h;d++)for(var p=c;p<=u;p++){var f=this.d*p+d;if((!a||a(this._convertFromCellCoord(d),this._convertFromCellCoord(p),this._convertFromCellCoord(d+1),this._convertFromCellCoord(p+1)))&&r.call(this,e,t,i,n,f,o,s,a))return}},t.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},t.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},t.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,i=e+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var o=new Int32Array(i+n+this.keys.length+this.bboxes.length);o[0]=this.extent,o[1]=this.n,o[2]=this.padding;for(var s=i,a=0;a<t.length;a++){var l=t[a];o[e+a]=s,o.set(l,s),s+=l.length}return o[e+t.length]=s,o.set(this.keys,s),o[e+t.length+1]=s+=this.keys.length,o.set(this.bboxes,s),s+=this.bboxes.length,o.buffer},jo}(),Go=fe(Ho);const Zo={};function Wo(e,t,i={}){Object.defineProperty(e,"_classRegistryKey",{value:t,writable:!1}),Zo[t]={klass:e,omit:i.omit||[]}}Wo(Object,"Object"),Go.serialize=function(e,t){const i=e.toArrayBuffer();return t&&t.add(i),{buffer:i}},Go.deserialize=function(e){return new Go(e.buffer)},Object.defineProperty(Go,"name",{value:"Grid"}),Wo(Go,"Grid"),"undefined"!=typeof DOMMatrix&&Wo(DOMMatrix,"DOMMatrix"),Wo(oi,"Color"),Wo(Error,"Error"),Wo(Oi,"Formatted"),Wo(zi,"FormattedSection"),Wo(zt,"AJAXError"),Wo(ki,"ResolvedImage"),Wo(No,"StylePropertyFunction"),Wo(zo,"StyleExpression",{omit:["_evaluator"]}),Wo(ti,"ImageId"),Wo(Ri,"ImageVariant"),Wo(Bo,"ZoomDependentExpression"),Wo(ko,"ZoomConstantExpression"),Wo(Ki,"CompoundExpression",{omit:["_evaluate"]});for(const e in uo)Zo[uo[e]._classRegistryKey]||Wo(uo[e],`Expression${e}`);function qo(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Xo(e){return self.ImageBitmap&&e instanceof ImageBitmap}function $o(e,t){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(qo(e)||Xo(e))return t&&t.add(e),e;if(ArrayBuffer.isView(e))return t&&t.add(e.buffer),e;if(e instanceof ImageData)return t&&t.add(e.data.buffer),e;if(Array.isArray(e)){const i=[];for(const n of e)i.push($o(n,t));return i}if(e instanceof Map){const i={$name:"Map",entries:[]};for(const[n,r]of e.entries())i.entries.push($o(n),$o(r,t));return i}if(e instanceof Set){const t={$name:"Set"};let i=0;for(const n of e.values())t[++i]=$o(n);return t}if(e instanceof DOMMatrix){const t={$name:"DOMMatrix"},i=["is2D","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","a","b","c","d","e","f"];for(const n of i)t[n]=e[n];return t}if("bigint"==typeof e)return{$name:"BigInt",value:e.toString()};if("object"==typeof e){const i=e.constructor,n=i._classRegistryKey;if(!n)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const r=i.serialize?i.serialize(e,t):{};if(!i.serialize){for(const i in e)e.hasOwnProperty(i)&&(Zo[n].omit.indexOf(i)>=0||(r[i]=$o(e[i],t)));e instanceof Error&&(r.message=e.message)}if(r.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==n&&(r.$name=n),r}throw new Error("can't serialize object of type "+typeof e)}function Yo(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||qo(e)||Xo(e)||ArrayBuffer.isView(e)||e instanceof ImageData)return e;if(Array.isArray(e))return e.map(Yo);if("object"==typeof e){const t=e.$name||"Object";if("Map"===t){const t=e.entries||[],i=new Map;for(let e=0;e<t.length;e+=2)i.set(Yo(t[e]),Yo(t[e+1]));return i}if("Set"===t){const t=new Set;for(const i of Object.keys(e))"$name"!==i&&t.add(Yo(e[i]));return t}if("DOMMatrix"===t){let t;return t=e.is2D?[e.a,e.b,e.c,e.d,e.e,e.f]:[e.m11,e.m12,e.m13,e.m14,e.m21,e.m22,e.m23,e.m24,e.m31,e.m32,e.m33,e.m34,e.m41,e.m42,e.m43,e.m44],new DOMMatrix(t)}if("BigInt"===t)return BigInt(e.value);const{klass:i}=Zo[t];if(!i)throw new Error(`Can't deserialize unregistered class "${t}".`);if(i.deserialize)return i.deserialize(e);const n=Object.create(i.prototype);for(const t of Object.keys(e))"$name"!==t&&(n[t]=Yo(e[t]));return n}throw new Error("can't deserialize object of type "+typeof e)}const Qo={"Latin-1 Supplement":e=>e>=128&&e<=255,Arabic:e=>e>=1536&&e<=1791,"Arabic Supplement":e=>e>=1872&&e<=1919,"Arabic Extended-A":e=>e>=2208&&e<=2303,"Hangul Jamo":e=>e>=4352&&e<=4607,"Unified Canadian Aboriginal Syllabics":e=>e>=5120&&e<=5759,Khmer:e=>e>=6016&&e<=6143,"Unified Canadian Aboriginal Syllabics Extended":e=>e>=6320&&e<=6399,"General Punctuation":e=>e>=8192&&e<=8303,"Letterlike Symbols":e=>e>=8448&&e<=8527,"Number Forms":e=>e>=8528&&e<=8591,"Miscellaneous Technical":e=>e>=8960&&e<=9215,"Control Pictures":e=>e>=9216&&e<=9279,"Optical Character Recognition":e=>e>=9280&&e<=9311,"Enclosed Alphanumerics":e=>e>=9312&&e<=9471,"Geometric Shapes":e=>e>=9632&&e<=9727,"Miscellaneous Symbols":e=>e>=9728&&e<=9983,"Miscellaneous Symbols and Arrows":e=>e>=11008&&e<=11263,"CJK Radicals Supplement":e=>e>=11904&&e<=12031,"Kangxi Radicals":e=>e>=12032&&e<=12255,"Ideographic Description Characters":e=>e>=12272&&e<=12287,"CJK Symbols and Punctuation":e=>e>=12288&&e<=12351,Hiragana:e=>e>=12352&&e<=12447,Katakana:e=>e>=12448&&e<=12543,Bopomofo:e=>e>=12544&&e<=12591,"Hangul Compatibility Jamo":e=>e>=12592&&e<=12687,Kanbun:e=>e>=12688&&e<=12703,"Bopomofo Extended":e=>e>=12704&&e<=12735,"CJK Strokes":e=>e>=12736&&e<=12783,"Katakana Phonetic Extensions":e=>e>=12784&&e<=12799,"Enclosed CJK Letters and Months":e=>e>=12800&&e<=13055,"CJK Compatibility":e=>e>=13056&&e<=13311,"CJK Unified Ideographs Extension A":e=>e>=13312&&e<=19903,"Yijing Hexagram Symbols":e=>e>=19904&&e<=19967,"CJK Unified Ideographs":e=>e>=19968&&e<=40959,"Yi Syllables":e=>e>=40960&&e<=42127,"Yi Radicals":e=>e>=42128&&e<=42191,"Hangul Jamo Extended-A":e=>e>=43360&&e<=43391,"Hangul Syllables":e=>e>=44032&&e<=55215,"Hangul Jamo Extended-B":e=>e>=55216&&e<=55295,"Private Use Area":e=>e>=57344&&e<=63743,"CJK Compatibility Ideographs":e=>e>=63744&&e<=64255,"Arabic Presentation Forms-A":e=>e>=64336&&e<=65023,"Vertical Forms":e=>e>=65040&&e<=65055,"CJK Compatibility Forms":e=>e>=65072&&e<=65103,"Small Form Variants":e=>e>=65104&&e<=65135,"Arabic Presentation Forms-B":e=>e>=65136&&e<=65279,"Halfwidth and Fullwidth Forms":e=>e>=65280&&e<=65519,Osage:e=>e>=66736&&e<=66815,"CJK Unified Ideographs Extension B":e=>e>=131072&&e<=173791};function Ko(e){for(const t of e)if(ts(t.charCodeAt(0)))return!0;return!1}function Jo(e){for(const t of e)if(!es(t.charCodeAt(0)))return!1;return!0}function es(e){return!(Qo.Arabic(e)||Qo["Arabic Supplement"](e)||Qo["Arabic Extended-A"](e)||Qo["Arabic Presentation Forms-A"](e)||Qo["Arabic Presentation Forms-B"](e))}function ts(e){return!(746!==e&&747!==e&&(e<4352||!(Qo["Bopomofo Extended"](e)||Qo.Bopomofo(e)||Qo["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||Qo["CJK Compatibility Ideographs"](e)||Qo["CJK Compatibility"](e)||Qo["CJK Radicals Supplement"](e)||Qo["CJK Strokes"](e)||!(!Qo["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||Qo["CJK Unified Ideographs Extension A"](e)||Qo["CJK Unified Ideographs"](e)||Qo["Enclosed CJK Letters and Months"](e)||Qo["Hangul Compatibility Jamo"](e)||Qo["Hangul Jamo Extended-A"](e)||Qo["Hangul Jamo Extended-B"](e)||Qo["Hangul Jamo"](e)||Qo["Hangul Syllables"](e)||Qo.Hiragana(e)||Qo["Ideographic Description Characters"](e)||Qo.Kanbun(e)||Qo["Kangxi Radicals"](e)||Qo["Katakana Phonetic Extensions"](e)||Qo.Katakana(e)&&12540!==e||!(!Qo["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!Qo["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Qo["Unified Canadian Aboriginal Syllabics"](e)||Qo["Unified Canadian Aboriginal Syllabics Extended"](e)||Qo["Vertical Forms"](e)||Qo["Yijing Hexagram Symbols"](e)||Qo["Yi Syllables"](e)||Qo["Yi Radicals"](e))))}function is(e){return!(ts(e)||function(e){return!!(Qo["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Qo["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||Qo["Letterlike Symbols"](e)||Qo["Number Forms"](e)||Qo["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||Qo["Control Pictures"](e)&&9251!==e||Qo["Optical Character Recognition"](e)||Qo["Enclosed Alphanumerics"](e)||Qo["Geometric Shapes"](e)||Qo["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Qo["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Qo["CJK Symbols and Punctuation"](e)||Qo.Katakana(e)||Qo["Private Use Area"](e)||Qo["CJK Compatibility Forms"](e)||Qo["Small Form Variants"](e)||Qo["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function ns(e){return Qo.Arabic(e)||Qo["Arabic Supplement"](e)||Qo["Arabic Extended-A"](e)||Qo["Arabic Presentation Forms-A"](e)||Qo["Arabic Presentation Forms-B"](e)}function rs(e){return e>=1424&&e<=2303||Qo["Arabic Presentation Forms-A"](e)||Qo["Arabic Presentation Forms-B"](e)}function os(e,t){return!(!t&&rs(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||Qo.Khmer(e))}function ss(e){for(const t of e)if(rs(t.charCodeAt(0)))return!0;return!1}const as={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let ls=null,cs=as.unavailable,hs=null;const us=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(cs=as.error),ls&&ls(e)};function ds(){ps.fire(new Yt("pluginStateChange",{pluginStatus:cs,pluginURL:hs}))}const ps=new ei,fs=function(){return cs},ms=function(){if(cs!==as.deferred||!hs)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");cs=as.loading,ds(),hs&&kt({url:hs},e=>{e?us(e):(cs=as.loaded,ds())})},gs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>cs===as.loaded||null!=gs.applyArabicShaping,isLoading:()=>cs===as.loading,setState(e){cs=e.pluginStatus,hs=e.pluginURL},isParsing:()=>cs===as.parsing,isParsed:()=>cs===as.parsed,getPluginURL:()=>hs};class _s{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.transition=t.transition,this.pitch=t.pitch,this.brightness=t.brightness,this.worldview=t.worldview):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(e,t){for(const i of e)if(!os(i.charCodeAt(0),t))return!1;return!0}(e,gs.isLoaded())}}class As{constructor(e,t,i,n){this.property=e,this.value=t,this.expression=function(e,t,i,n){if(To(e))return new No(e,t);if(Oo(e)||Array.isArray(e)&&e.length>0){const r=Fo(e,t,i,n);if("error"===r.result)throw new Error(r.value.map(e=>`${e.key}: ${e.message}`).join(", "));return r.value}{let i=e;return"string"==typeof e&&"color"===t.type&&(i=oi.parse(e)),{kind:"constant",configDependencies:new Set,evaluate:()=>i}}}(void 0===t?e.specification.default:t,e.specification,i,n)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,i){return this.property.possiblyEvaluate(this,e,t,i)}}class ys{constructor(e,t,i){this.property=e,this.value=new As(e,void 0,t,i)}transitioned(e,t){return new xs(this.property,this.value,t,Oe({},e.transition,this.transition),e.now)}untransitioned(){return new xs(this.property,this.value,null,{},0)}}class vs{constructor(e,t,i){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=t,this._options=i,this.configDependencies=new Set}getValue(e){return je(this._values[e].value.value)}setValue(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ys(this._values[e].property,this._scope,this._options)),this._values[e].value=new As(this._values[e].property,null===t?void 0:je(t),this._scope,this._options),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]))}setTransitionOrValue(e,t){t&&(this._options=t);const i=this._properties.properties;if(e)for(const t in e){const n=e[t];if(t.endsWith("-transition")){const e=t.slice(0,-11);i[e]&&this.setTransition(e,n)}else i.hasOwnProperty(t)&&this.setValue(t,n)}}getTransition(e){return je(this._values[e].transition)}setTransition(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ys(this._values[e].property)),this._values[e].transition=je(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const i=this.getValue(t);void 0!==i&&(e[t]=i);const n=this.getTransition(t);void 0!==n&&(e[`${t}-transition`]=n)}return e}transitioned(e,t){const i=new bs(this._properties);for(const n of Object.keys(this._values))i._values[n]=this._values[n].transitioned(e,t._values[n]);return i}untransitioned(){const e=new bs(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class xs{constructor(e,t,i,n,r){const o=n.delay||0,s=n.duration||0;r=r||0,this.property=e,this.value=t,this.begin=r+o,this.end=this.begin+s,e.specification.transition&&(n.delay||n.duration)&&(this.prior=i)}possiblyEvaluate(e,t,i){const n=e.now||0,r=this.value.possiblyEvaluate(e,t,i),o=this.prior;if(o){if(n>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(n<this.begin)return o.possiblyEvaluate(e,t,i);{const s=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,i),r,Se(s))}}return r}}class bs{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,i){const n=new Ts(this._properties);for(const r of Object.keys(this._values))n._values[r]=this._values[r].possiblyEvaluate(e,t,i);return n}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class ws{constructor(e,t,i){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=t,this._options=i,this.configDependencies=new Set}getValue(e){return je(this._values[e].value)}setValue(e,t){this._values[e]=new As(this._values[e].property,null===t?void 0:je(t),this._scope,this._options),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]))}serialize(){const e={};for(const t of Object.keys(this._values)){const i=this.getValue(t);void 0!==i&&(e[t]=i)}return e}possiblyEvaluate(e,t,i){const n=new Ts(this._properties);for(const r of Object.keys(this._values))n._values[r]=this._values[r].possiblyEvaluate(e,t,i);return n}}class Cs{constructor(e,t,i){this.property=e,this.value=t,this.parameters=i}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,i,n){return this.property.evaluate(this.value,this.parameters,e,t,i,n)}}class Ts{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Es{constructor(e){this.specification=e}possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,i){const n=ui[this.specification.type];return n?n(e,t,i):e}}class Ss{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,i,n){return new Cs(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},i,n)}:e.expression,t)}interpolate(e,t,i){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new Cs(this,{kind:"constant",value:void 0},e.parameters);const n=ui[this.specification.type];return n?new Cs(this,{kind:"constant",value:n(e.value.value,t.value.value,i)},e.parameters):e}evaluate(e,t,i,n,r,o){return"constant"===e.kind?e.value:e.evaluate(t,i,n,r,o)}}class Is{constructor(e){this.specification=e}possiblyEvaluate(e,t,i,n){return!!e.expression.evaluate(t,null,{},i,n)}interpolate(){return!1}}class Ms{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const t=new _s(0,{});for(const i in e){const n=e[i];n.specification.overridable&&this.overridableProperties.push(i);const r=this.defaultPropertyValues[i]=new As(n,void 0),o=this.defaultTransitionablePropertyValues[i]=new ys(n);this.defaultTransitioningPropertyValues[i]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=r.possiblyEvaluate(t)}}}Wo(Ss,"DataDrivenProperty"),Wo(Es,"DataConstantProperty"),Wo(Is,"ColorRampProperty");var Ps=JSON.parse('{"$version":8,"$root":{"version":{"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow"},"rain":{"type":"rain"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor"},"imports":{"type":"array","value":"import"},"iconsets":{"type":"iconsets"},"schema":{"type":"schema"},"sources":{"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"type":"featuresets"}},"featuresets":{"*":{"type":"featureset"}},"featureset":{"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"layer":{"type":"string"},"properties":{"type":"selectorProperty"},"featureNamespace":{"type":"string"},"_uniqueFeatureID":{"type":"boolean"}},"selectorProperty":{"*":{"type":"*"}},"model":{"type":"string"},"import":{"id":{"type":"string"},"url":{"type":"string"},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","expression":{}},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string"},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false},"shadow-quality":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]}},"shadow-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"iconsets":{"*":{"type":"iconset"}},"iconset":["iconset_sprite","iconset_source"],"iconset_sprite":{"type":{"type":"enum","values":{"sprite":1}},"url":{"type":"string"}},"iconset_source":{"type":{"type":"enum","values":{"source":1}},"source":{"type":"string"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"type":"enum","values":{"video":1}},"urls":{"type":"array","value":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"type":"enum","values":{"image":1}},"url":{"type":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string"},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"building":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{},"clip":{}}},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_building","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{}},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"default":"none","expression":{}},"fill-construct-bridge-guard-rail":{"type":"boolean","default":"true","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"circle-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-markup":1},"default":"none","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-extrusion-edge-radius":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}}},"layout_building":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"building-roof-shape":{"type":"enum","values":{"flat":1,"hipped":1,"gabled":1,"parapet":1,"mansard":1,"skillion":1,"pyramidal":1},"default":"flat","expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","default":0,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"default":"none","expression":{}},"line-cross-slope":{"type":"number","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"line-width-unit":{"type":"enum","values":{"pixels":1,"meters":1},"default":"pixels","expression":{"parameters":["zoom"]}}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]}},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]}},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{"parameters":["zoom"]}},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":0.1,"maximum":10,"expression":{}},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":0.1,"maximum":10,"expression":{}},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]}},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]}},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_hillshade":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster-particle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_clip":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_model":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_building":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*"}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"horizon-blend":{"type":"number","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"snow":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.4,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"flake-size":{"type":"number","default":0.71,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"rain":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.57,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"distortion-strength":{"type":"number","default":0.7,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective"}},"colorTheme":{"data":{"type":"string","expression":{}}},"indoor":{"floorplanFeaturesetId":{"type":"string","expression":{}},"buildingFeaturesetId":{"type":"string","expression":{}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator"},"center":{"type":"array","length":2,"value":"number","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string"},"exaggeration":{"type":"number","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_building","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-bridge-guard-rail-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"},"fill-tunnel-structure-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-height-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"flat"},"fill-extrusion-base-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"terrain"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true}},"paint_building":{"building-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-ambient-occlusion-wall-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-cast-shadows":{"type":"boolean","default":true},"building-color":{"type":"color","default":"rgba(193, 154, 127, 1)","use-theme":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light","line-progress"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-gradient":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["line-progress"]}},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1]},"line-trim-fade-range":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-trim-color":{"type":"color","default":"transparent","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-border-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"use-theme":true,"expression":{"interpolated":true,"parameters":["heatmap-density"]}},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-image-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{}},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-value"]}},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"raster-array-band":{"type":"string"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-particle-speed"]}},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-shadow-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]}},"background-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]}},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]}},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"use-theme":true,"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white","use-theme":true},"sky-atmosphere-color":{"type":"color","default":"white","use-theme":true},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"property-type":"data-driven"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"use-theme":true,"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d"},"model-cast-shadows":{"type":"boolean","default":true},"model-receive-shadows":{"type":"boolean","default":true},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"model-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function Ds(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Ls(e){if(Array.isArray(e))return e.map(Ls);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const i in e)t[i]=Ls(e[i]);return t}return Ds(e)}function zs(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!zs(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function Os(e,t="",i=null,n="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};zs(e)||(e=js(e));const r=e;let o=!0;try{o=function(e){if(!Bs(e))return e;let t=Ls(e);return ks(t),t=Rs(t),t}(r)}catch(e){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(r,null,2)}\n `)}let s=null,a=null;if("background"!==n&&"sky"!==n&&"slot"!==n){a=Ps[`filter_${n}`];const e=Ro(o,a,t,i);if("error"===e.result)throw new Error(e.value.map(e=>`${e.key}: ${e.message}`).join(", "));s=(t,i,n)=>e.value.evaluate(t,i,{},n)}let l=null,c=null;if(o!==r){const e=Ro(r,a,t,i);if("error"===e.result)throw new Error(e.value.map(e=>`${e.key}: ${e.message}`).join(", "));l=(t,i,n,r,o)=>e.value.evaluate(t,i,{},n,void 0,void 0,r,o),c=!ur(e.value.expression)}return{filter:s,dynamicFilter:l||void 0,needGeometry:Vs(o),needFeature:!!c}}function Rs(e){if(!Array.isArray(e))return e;const t=function(e){if(Fs.has(e[0]))for(let t=1;t<e.length;t++)if(Bs(e[t]))return!0;return e}(e);return!0===t?t:t.map(e=>Rs(e))}function ks(e){let t=!1;const i=[];if("case"===e[0]){for(let n=1;n<e.length-1;n+=2)t=t||Bs(e[n]),i.push(e[n+1]);i.push(e[e.length-1])}else if("match"===e[0]){t=t||Bs(e[1]);for(let t=2;t<e.length-1;t+=2)i.push(e[t+1]);i.push(e[e.length-1])}else if("step"===e[0]){t=t||Bs(e[1]);for(let t=1;t<e.length-1;t+=2)i.push(e[t+1])}t&&(e.length=0,e.push("any",...i));for(let t=1;t<e.length;t++)ks(e[t])}function Bs(e){if(!Array.isArray(e))return!1;if("pitch"===(t=e[0])||"distance-from-center"===t)return!0;var t;for(let t=1;t<e.length;t++)if(Bs(e[t]))return!0;return!1}const Fs=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Ns(e,t){return e<t?-1:e>t?1:0}function Vs(e){if(!Array.isArray(e))return!1;if("within"===e[0]||"distance"===e[0])return!0;for(let t=1;t<e.length;t++)if(Vs(e[t]))return!0;return!1}function js(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?Us(e[1],e[2],"=="):"!="===t?Zs(Us(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?Us(e[1],e[2],t):"any"===t?(i=e.slice(1),["any"].concat(i.map(js))):"all"===t?["all"].concat(e.slice(1).map(js)):"none"===t?["all"].concat(e.slice(1).map(js).map(Zs)):"in"===t?Hs(e[1],e.slice(2)):"!in"===t?Zs(Hs(e[1],e.slice(2))):"has"===t?Gs(e[1]):"!has"!==t||Zs(Gs(e[1]));var i}function Us(e,t,i){switch(e){case"$type":return[`filter-type-${i}`,t];case"$id":return[`filter-id-${i}`,t];default:return[`filter-${i}`,e,t]}}function Hs(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(e=>typeof e!=typeof t[0])?["filter-in-large",e,["literal",t.sort(Ns)]]:["filter-in-small",e,["literal",t]]}}function Gs(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Zs(e){return["!",e]}const Ws="";function qs(e,t){return t?`${e}${Ws}${t}`:e}const Xs="-transition",$s=new Set(["fill","line","background","hillshade","raster"]);class Ys extends ei{constructor(e,t,i,n,r){if(super(),this.id=e.id,this.fqid=qs(this.id,i),this.type=e.type,this.scope=i,this.lut=n,this.options=r,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,this.configDependencies=new Set,"custom"!==e.type){if(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type&&"background"!==e.type&&"sky"!==e.type&&"slot"!==e.type){this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter;const t=Ro(this.filter,Ps[`filter_${e.type}`]);"error"!==t.result&&(this.configDependencies=new Set([...this.configDependencies,...t.value.configDependencies]))}if(e.slot&&(this.slot=e.slot),t.layout&&(this._unevaluatedLayout=new ws(t.layout,this.scope,r),this.configDependencies=new Set([...this.configDependencies,...this._unevaluatedLayout.configDependencies])),t.paint){this._transitionablePaint=new vs(t.paint,this.scope,r);for(const t in e.paint)this.setPaintProperty(t,e.paint[t]);for(const t in e.layout)this.setLayoutProperty(t,e.layout[t]);this.configDependencies=new Set([...this.configDependencies,...this._transitionablePaint.configDependencies]),this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ts(t.paint)}}}onAdd(e){}onRemove(e){}isDraped(e){return!this.is3D(!0)&&$s.has(this.type)}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t){if("custom"===this.type&&"visibility"===e)return void(this.visibility=t);const i=this._unevaluatedLayout;i._properties.properties[e]&&(i.setValue(e,t),this.configDependencies=new Set([...this.configDependencies,...i.configDependencies]),"visibility"===e&&this.possiblyEvaluateVisibility())}possiblyEvaluateVisibility(){this._unevaluatedLayout._values.visibility&&(this.visibility=this._unevaluatedLayout._values.visibility.possiblyEvaluate({zoom:0}))}getPaintProperty(e){return e.endsWith(Xs)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t){const i=this._transitionablePaint,n=i._properties.properties;if(e.endsWith(Xs)){const r=e.slice(0,-11);return n[r]&&i.setTransition(r,t||void 0),!1}if(!n[e])return!1;const r=i._values[e],o=r.value.isDataDriven(),s=r.value;i.setValue(e,t),this.configDependencies=new Set([...this.configDependencies,...i.configDependencies]),this._handleSpecialPaintPropertyUpdate(e);const a=i._values[e].value,l=a.isDataDriven(),c=e.endsWith("pattern")||"line-dasharray"===e;return l||o||c||this._handleOverridablePaintPropertyUpdate(e,s,a)}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getDefaultProgramParams(e,t,i){return null}_handleOverridablePaintPropertyUpdate(e,t,i){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){return Ve({id:this.id,type:this.type,slot:this.slot,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()},(e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length))}is3D(e){return!1}hasElevation(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}hasShadowPass(){return!1}canCastShadows(){return!1}hasLightBeamPass(){return!1}cutoffRange(){return 0}tileCoverLift(){return 0}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof Cs&&xo(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}compileFilter(e){this._filterCompiled||(this._featureFilter=Os(this.filter,this.scope,e),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}getLayerRenderingStats(){return this._stats}resetLayerRenderingStats(e){this._stats&&("shadow"===e.renderPass?this._stats.numRenderedVerticesInShadowPass=0:this._stats.numRenderedVerticesInTransparentPass=0)}queryRadius(e){}queryIntersectsFeature(e,t,i,n,r,o,s,a,l){}}const Qs={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Ks{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Js{constructor(){this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&t.add(e.arrayBuffer),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("StructArray#_refreshViews() must be implemented by each concrete StructArray layout")}emplace(...e){throw new Error("StructArray#emplace() must be implemented by each concrete StructArray layout")}emplaceBack(...e){throw new Error("StructArray#emplaceBack() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function ea(e,t=1){let i=0,n=0;return{members:e.map(e=>{const r=Qs[e.type].BYTES_PER_ELEMENT,o=i=ta(i,Math.max(t,r)),s=e.components||1;return n=Math.max(n,r),i+=r*s,{name:e.name,type:e.type,components:s,offset:o}}),size:ta(i,Math.max(n,t)),alignment:t}}function ta(e,t){return Math.ceil(e/t)*t}class ia extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const n=2*e;return this.int16[n+0]=t,this.int16[n+1]=i,e}}ia.prototype.bytesPerElement=4,Wo(ia,"StructArrayLayout2i4");class na extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i)}emplace(e,t,i,n){const r=3*e;return this.int16[r+0]=t,this.int16[r+1]=i,this.int16[r+2]=n,e}}na.prototype.bytesPerElement=6,Wo(na,"StructArrayLayout3i6");class ra extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,n)}emplace(e,t,i,n,r){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=i,this.int16[o+2]=n,this.int16[o+3]=r,e}}ra.prototype.bytesPerElement=8,Wo(ra,"StructArrayLayout4i8");class oa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}oa.prototype.bytesPerElement=4,Wo(oa,"StructArrayLayout1f4");class sa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i)}emplace(e,t,i,n){const r=4*e,o=2*e;return this.int16[r+0]=t,this.int16[r+1]=i,this.float32[o+1]=n,e}}sa.prototype.bytesPerElement=8,Wo(sa,"StructArrayLayout2i1f8");class aa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i)}emplace(e,t,i,n){const r=4*e;return this.int16[r+0]=t,this.int16[r+1]=i,this.int16[r+2]=n,e}}aa.prototype.bytesPerElement=8,Wo(aa,"StructArrayLayout3i8");class la extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,n,r)}emplace(e,t,i,n,r,o){const s=5*e;return this.int16[s+0]=t,this.int16[s+1]=i,this.int16[s+2]=n,this.int16[s+3]=r,this.int16[s+4]=o,e}}la.prototype.bytesPerElement=10,Wo(la,"StructArrayLayout5i10");class ca extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,n,r,o,s)}emplace(e,t,i,n,r,o,s,a){const l=6*e,c=12*e,h=3*e;return this.int16[l+0]=t,this.int16[l+1]=i,this.uint8[c+4]=n,this.uint8[c+5]=r,this.uint8[c+6]=o,this.uint8[c+7]=s,this.float32[h+2]=a,e}}ca.prototype.bytesPerElement=12,Wo(ca,"StructArrayLayout2i4ub1f12");class ha extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i)}emplace(e,t,i,n){const r=3*e;return this.float32[r+0]=t,this.float32[r+1]=i,this.float32[r+2]=n,e}}ha.prototype.bytesPerElement=12,Wo(ha,"StructArrayLayout3f12");class ua extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,n,r)}emplace(e,t,i,n,r,o){const s=6*e,a=3*e;return this.uint16[s+0]=t,this.uint16[s+1]=i,this.uint16[s+2]=n,this.uint16[s+3]=r,this.float32[a+2]=o,e}}ua.prototype.bytesPerElement=12,Wo(ua,"StructArrayLayout4ui1f12");class da extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,n)}emplace(e,t,i,n,r){const o=4*e;return this.uint16[o+0]=t,this.uint16[o+1]=i,this.uint16[o+2]=n,this.uint16[o+3]=r,e}}da.prototype.bytesPerElement=8,Wo(da,"StructArrayLayout4ui8");class pa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,n,r,o)}emplace(e,t,i,n,r,o,s){const a=6*e;return this.int16[a+0]=t,this.int16[a+1]=i,this.int16[a+2]=n,this.int16[a+3]=r,this.int16[a+4]=o,this.int16[a+5]=s,e}}pa.prototype.bytesPerElement=12,Wo(pa,"StructArrayLayout6i12");class fa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h,u){const d=this.length;return this.resize(d+1),this.emplace(d,e,t,i,n,r,o,s,a,l,c,h,u)}emplace(e,t,i,n,r,o,s,a,l,c,h,u,d){const p=12*e;return this.int16[p+0]=t,this.int16[p+1]=i,this.int16[p+2]=n,this.int16[p+3]=r,this.uint16[p+4]=o,this.uint16[p+5]=s,this.uint16[p+6]=a,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=h,this.int16[p+10]=u,this.int16[p+11]=d,e}}fa.prototype.bytesPerElement=24,Wo(fa,"StructArrayLayout4i4ui4i24");class ma extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,n,r,o)}emplace(e,t,i,n,r,o,s){const a=10*e,l=5*e;return this.int16[a+0]=t,this.int16[a+1]=i,this.int16[a+2]=n,this.float32[l+2]=r,this.float32[l+3]=o,this.float32[l+4]=s,e}}ma.prototype.bytesPerElement=20,Wo(ma,"StructArrayLayout3i3f20");class ga extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,n)}emplace(e,t,i,n,r){const o=4*e;return this.float32[o+0]=t,this.float32[o+1]=i,this.float32[o+2]=n,this.float32[o+3]=r,e}}ga.prototype.bytesPerElement=16,Wo(ga,"StructArrayLayout4f16");class _a extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}_a.prototype.bytesPerElement=4,Wo(_a,"StructArrayLayout1ul4");class Aa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const n=2*e;return this.uint16[n+0]=t,this.uint16[n+1]=i,e}}Aa.prototype.bytesPerElement=4,Wo(Aa,"StructArrayLayout2ui4");class ya extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h,u,d){const p=this.length;return this.resize(p+1),this.emplace(p,e,t,i,n,r,o,s,a,l,c,h,u,d)}emplace(e,t,i,n,r,o,s,a,l,c,h,u,d,p){const f=20*e,m=10*e;return this.int16[f+0]=t,this.int16[f+1]=i,this.int16[f+2]=n,this.int16[f+3]=r,this.int16[f+4]=o,this.float32[m+3]=s,this.float32[m+4]=a,this.float32[m+5]=l,this.float32[m+6]=c,this.int16[f+14]=h,this.uint32[m+8]=u,this.uint16[f+18]=d,this.uint16[f+19]=p,e}}ya.prototype.bytesPerElement=40,Wo(ya,"StructArrayLayout5i4f1i1ul2ui40");class va extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,n,r,o,s)}emplace(e,t,i,n,r,o,s,a){const l=8*e;return this.int16[l+0]=t,this.int16[l+1]=i,this.int16[l+2]=n,this.int16[l+4]=r,this.int16[l+5]=o,this.int16[l+6]=s,this.int16[l+7]=a,e}}va.prototype.bytesPerElement=16,Wo(va,"StructArrayLayout3i2i2i16");class xa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,n,r)}emplace(e,t,i,n,r,o){const s=4*e,a=8*e;return this.float32[s+0]=t,this.float32[s+1]=i,this.float32[s+2]=n,this.int16[a+6]=r,this.int16[a+7]=o,e}}xa.prototype.bytesPerElement=16,Wo(xa,"StructArrayLayout2f1f2i16");class ba extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,n,r,o)}emplace(e,t,i,n,r,o,s){const a=20*e,l=5*e;return this.uint8[a+0]=t,this.uint8[a+1]=i,this.float32[l+1]=n,this.float32[l+2]=r,this.float32[l+3]=o,this.float32[l+4]=s,e}}ba.prototype.bytesPerElement=20,Wo(ba,"StructArrayLayout2ub4f20");class wa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i)}emplace(e,t,i,n){const r=3*e;return this.uint16[r+0]=t,this.uint16[r+1]=i,this.uint16[r+2]=n,e}}wa.prototype.bytesPerElement=6,Wo(wa,"StructArrayLayout3ui6");class Ca extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v){const x=this.length;return this.resize(x+1),this.emplace(x,e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v)}emplace(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v,x){const b=30*e,w=15*e,C=60*e;return this.int16[b+0]=t,this.int16[b+1]=i,this.int16[b+2]=n,this.float32[w+2]=r,this.float32[w+3]=o,this.uint16[b+8]=s,this.uint16[b+9]=a,this.uint32[w+5]=l,this.uint32[w+6]=c,this.uint32[w+7]=h,this.uint16[b+16]=u,this.uint16[b+17]=d,this.uint16[b+18]=p,this.float32[w+10]=f,this.float32[w+11]=m,this.uint8[C+48]=g,this.uint8[C+49]=_,this.uint8[C+50]=A,this.uint32[w+13]=y,this.int16[b+28]=v,this.uint8[C+58]=x,e}}Ca.prototype.bytesPerElement=60,Wo(Ca,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class Ta extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v,x,b,w,C,T,E,S,I,M,P,D,L){const z=this.length;return this.resize(z+1),this.emplace(z,e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v,x,b,w,C,T,E,S,I,M,P,D,L)}emplace(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v,x,b,w,C,T,E,S,I,M,P,D,L,z){const O=20*e,R=40*e,k=80*e;return this.float32[O+0]=t,this.float32[O+1]=i,this.int16[R+4]=n,this.int16[R+5]=r,this.int16[R+6]=o,this.int16[R+7]=s,this.int16[R+8]=a,this.int16[R+9]=l,this.int16[R+10]=c,this.int16[R+11]=h,this.int16[R+12]=u,this.uint16[R+13]=d,this.uint16[R+14]=p,this.uint16[R+15]=f,this.uint16[R+16]=m,this.uint16[R+17]=g,this.uint16[R+18]=_,this.uint16[R+19]=A,this.uint16[R+20]=y,this.uint16[R+21]=v,this.uint16[R+22]=x,this.uint16[R+23]=b,this.uint16[R+24]=w,this.uint16[R+25]=C,this.uint16[R+26]=T,this.uint16[R+27]=E,this.uint32[O+14]=S,this.float32[O+15]=I,this.float32[O+16]=M,this.float32[O+17]=P,this.float32[O+18]=D,this.uint8[k+76]=L,this.uint16[R+39]=z,e}}Ta.prototype.bytesPerElement=80,Wo(Ta,"StructArrayLayout2f9i15ui1ul4f1ub1ui80");class Ea extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,n,r,o)}emplace(e,t,i,n,r,o,s){const a=6*e;return this.float32[a+0]=t,this.float32[a+1]=i,this.float32[a+2]=n,this.float32[a+3]=r,this.float32[a+4]=o,this.float32[a+5]=s,e}}Ea.prototype.bytesPerElement=24,Wo(Ea,"StructArrayLayout6f24");class Sa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,n,r)}emplace(e,t,i,n,r,o){const s=5*e;return this.float32[s+0]=t,this.float32[s+1]=i,this.float32[s+2]=n,this.float32[s+3]=r,this.float32[s+4]=o,e}}Sa.prototype.bytesPerElement=20,Wo(Sa,"StructArrayLayout5f20");class Ia extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,n,r,o,s)}emplace(e,t,i,n,r,o,s,a){const l=7*e;return this.float32[l+0]=t,this.float32[l+1]=i,this.float32[l+2]=n,this.float32[l+3]=r,this.float32[l+4]=o,this.float32[l+5]=s,this.float32[l+6]=a,e}}Ia.prototype.bytesPerElement=28,Wo(Ia,"StructArrayLayout7f28");class Ma extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h){const u=this.length;return this.resize(u+1),this.emplace(u,e,t,i,n,r,o,s,a,l,c,h)}emplace(e,t,i,n,r,o,s,a,l,c,h,u){const d=11*e;return this.float32[d+0]=t,this.float32[d+1]=i,this.float32[d+2]=n,this.float32[d+3]=r,this.float32[d+4]=o,this.float32[d+5]=s,this.float32[d+6]=a,this.float32[d+7]=l,this.float32[d+8]=c,this.float32[d+9]=h,this.float32[d+10]=u,e}}Ma.prototype.bytesPerElement=44,Wo(Ma,"StructArrayLayout11f44");class Pa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l){const c=this.length;return this.resize(c+1),this.emplace(c,e,t,i,n,r,o,s,a,l)}emplace(e,t,i,n,r,o,s,a,l,c){const h=9*e;return this.float32[h+0]=t,this.float32[h+1]=i,this.float32[h+2]=n,this.float32[h+3]=r,this.float32[h+4]=o,this.float32[h+5]=s,this.float32[h+6]=a,this.float32[h+7]=l,this.float32[h+8]=c,e}}Pa.prototype.bytesPerElement=36,Wo(Pa,"StructArrayLayout9f36");class Da extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const n=2*e;return this.float32[n+0]=t,this.float32[n+1]=i,e}}Da.prototype.bytesPerElement=8,Wo(Da,"StructArrayLayout2f8");class La extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,n)}emplace(e,t,i,n,r){const o=6*e;return this.uint32[3*e+0]=t,this.uint16[o+2]=i,this.uint16[o+3]=n,this.uint16[o+4]=r,e}}La.prototype.bytesPerElement=12,Wo(La,"StructArrayLayout1ul3ui12");class za extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}za.prototype.bytesPerElement=2,Wo(za,"StructArrayLayout1ui2");class Oa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m)}emplace(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g){const _=16*e;return this.float32[_+0]=t,this.float32[_+1]=i,this.float32[_+2]=n,this.float32[_+3]=r,this.float32[_+4]=o,this.float32[_+5]=s,this.float32[_+6]=a,this.float32[_+7]=l,this.float32[_+8]=c,this.float32[_+9]=h,this.float32[_+10]=u,this.float32[_+11]=d,this.float32[_+12]=p,this.float32[_+13]=f,this.float32[_+14]=m,this.float32[_+15]=g,e}}Oa.prototype.bytesPerElement=64,Wo(Oa,"StructArrayLayout16f64");class Ra extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,n,r,o,s)}emplace(e,t,i,n,r,o,s,a){const l=10*e,c=5*e;return this.uint16[l+0]=t,this.uint16[l+1]=i,this.uint16[l+2]=n,this.uint16[l+3]=r,this.float32[c+2]=o,this.float32[c+3]=s,this.float32[c+4]=a,e}}Ra.prototype.bytesPerElement=20,Wo(Ra,"StructArrayLayout4ui3f20");class ka extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.int16[1*e+0]=t,e}}ka.prototype.bytesPerElement=2,Wo(ka,"StructArrayLayout1i2");class Ba extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint8[1*e+0]=t,e}}Ba.prototype.bytesPerElement=1,Wo(Ba,"StructArrayLayout1ub1");class Fa extends Ks{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}Fa.prototype.size=40;class Na extends ya{get(e){return new Fa(this,e)}}Wo(Na,"CollisionBoxArray");class Va extends Ks{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}Va.prototype.size=60;class ja extends Ca{get(e){return new Va(this,e)}}Wo(ja,"PlacedSymbolArray");class Ua extends Ks{get tileAnchorX(){return this._structArray.float32[this._pos4+0]}get tileAnchorY(){return this._structArray.float32[this._pos4+1]}get projectedAnchorX(){return this._structArray.int16[this._pos2+4]}get projectedAnchorY(){return this._structArray.int16[this._pos2+5]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+6]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+7]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+11]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get key(){return this._structArray.uint16[this._pos2+13]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+14]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+15]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+17]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+19]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+21]}get featureIndex(){return this._structArray.uint16[this._pos2+22]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+23]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numIconVertices(){return this._structArray.uint16[this._pos2+25]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+26]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+27]}get crossTileID(){return this._structArray.uint32[this._pos4+14]}set crossTileID(e){this._structArray.uint32[this._pos4+14]=e}get textOffset0(){return this._structArray.float32[this._pos4+15]}get textOffset1(){return this._structArray.float32[this._pos4+16]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+17]}get zOffset(){return this._structArray.float32[this._pos4+18]}set zOffset(e){this._structArray.float32[this._pos4+18]=e}get hasIconTextFit(){return this._structArray.uint8[this._pos1+76]}get elevationFeatureIndex(){return this._structArray.uint16[this._pos2+39]}}Ua.prototype.size=80;class Ha extends Ta{get(e){return new Ua(this,e)}}Wo(Ha,"SymbolInstanceArray");class Ga extends oa{getoffsetX(e){return this.float32[1*e+0]}}Wo(Ga,"GlyphOffsetArray");class Za extends ia{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}Wo(Za,"SymbolLineVertexArray");class Wa extends Ks{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Wa.prototype.size=12;class qa extends La{get(e){return new Wa(this,e)}}Wo(qa,"FeatureIndexArray");class Xa extends Aa{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}Wo(Xa,"FillExtrusionCentroidArray");class $a extends Ks{get a_join_normal_inside0(){return this._structArray.int16[this._pos2+0]}get a_join_normal_inside1(){return this._structArray.int16[this._pos2+1]}get a_join_normal_inside2(){return this._structArray.int16[this._pos2+2]}}$a.prototype.size=6;class Ya extends na{get(e){return new $a(this,e)}}Wo(Ya,"FillExtrusionWallArray");const Qa=ea([{name:"a_pos",components:2,type:"Int16"}],4),Ka=ea([{name:"a_circle_z_offset",components:1,type:"Float32"}],4),Ja=ea([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class el{constructor(e=[]){this.segments=e}_prepareSegment(e,t,i,n){let r=this.segments[this.segments.length-1];return e>el.MAX_VERTEX_ARRAY_LENGTH&&Ge(`Max vertices per segment is ${el.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!r||r.vertexLength+e>el.MAX_VERTEX_ARRAY_LENGTH||r.sortKey!==n)&&(r={vertexOffset:t,primitiveOffset:i,vertexLength:0,primitiveLength:0},void 0!==n&&(r.sortKey=n),this.segments.push(r)),r}prepareSegment(e,t,i,n){return this._prepareSegment(e,t.length,i.length,n)}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,i,n){return new el([{vertexOffset:e,primitiveOffset:t,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}}function tl(e,t){return 256*(e=Pe(Math.floor(e),0,255))+Pe(Math.floor(t),0,255)}el.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Wo(el,"SegmentVector");const il=ea([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),nl=ea([{name:"a_pattern_b",components:4,type:"Uint16"}]),rl=ea([{name:"a_dash",components:4,type:"Uint16"}]);class ol{constructor(){this.ids=[],this.uniqueIds=[],this.positions=[],this.indexed=!1}add(e,t,i,n){this.ids.push(sl(e)),this.positions.push(t,i,n)}eachPosition(e,t){const i=sl(e);let n=0,r=this.ids.length-1;for(;n<r;){const e=n+r>>1;this.ids[e]>=i?r=e:n=e+1}for(;this.ids[n]===i;)t(this.positions[3*n],this.positions[3*n+1],this.positions[3*n+2]),n++}static serialize(e,t){const i=new Float64Array(e.ids),n=new Uint32Array(e.positions);return al(i,n,0,i.length-1),t&&(t.add(i.buffer),t.add(n.buffer)),{ids:i,positions:n}}static deserialize(e){const t=new ol;let i;t.ids=e.ids,t.positions=e.positions;for(const e of t.ids)e!==i&&t.uniqueIds.push(e),i=e;return t.indexed=!0,t}}function sl(e){const t=+e;return!isNaN(t)&&Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER?t:$t(String(e))}function al(e,t,i,n){for(;i<n;){const r=e[i+n>>1];let o=i-1,s=n+1;for(;;){do{o++}while(e[o]<r);do{s--}while(e[s]>r);if(o>=s)break;ll(e,o,s),ll(t,3*o,3*s),ll(t,3*o+1,3*s+1),ll(t,3*o+2,3*s+2)}s-i<n-s?(al(e,t,i,s),i=s+1):(al(e,t,s+1,n),n=s)}}function ll(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}Wo(ol,"FeaturePositionMap");class cl{constructor(e){this.gl=e.gl,this.initialized=!1}fetchUniformLocation(e,t){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(e,t),this.initialized=!0),!!this.location}set(e,t,i){throw new Error("Uniform#set() must be implemented by each concrete Uniform")}}class hl extends cl{constructor(e){super(e),this.current=0}set(e,t,i){this.fetchUniformLocation(e,t)&&this.current!==i&&(this.current=i,this.gl.uniform1i(this.location,i))}}class ul extends cl{constructor(e){super(e),this.current=0}set(e,t,i){this.fetchUniformLocation(e,t)&&this.current!==i&&(this.current=i,this.gl.uniform1f(this.location,i))}}class dl extends cl{constructor(e){super(e),this.current=[0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]||(this.current=i,this.gl.uniform2f(this.location,i[0],i[1])))}}class pl extends cl{constructor(e){super(e),this.current=[0,0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]||(this.current=i,this.gl.uniform3f(this.location,i[0],i[1],i[2])))}}class fl extends cl{constructor(e){super(e),this.current=[0,0,0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]&&i[3]===this.current[3]||(this.current=i,this.gl.uniform4f(this.location,i[0],i[1],i[2],i[3])))}}class ml extends cl{constructor(e){super(e),this.current=oi.transparent.toPremultipliedRenderColor(null)}set(e,t,i){this.fetchUniformLocation(e,t)&&(i.r===this.current.r&&i.g===this.current.g&&i.b===this.current.b&&i.a===this.current.a||(this.current=i,this.gl.uniform4f(this.location,i.r,i.g,i.b,i.a)))}}const gl=new Float32Array(16);class _l extends cl{constructor(e){super(e),this.current=gl}set(e,t,i){if(this.fetchUniformLocation(e,t)){if(i[12]!==this.current[12]||i[0]!==this.current[0])return this.current=i,void this.gl.uniformMatrix4fv(this.location,!1,i);for(let e=1;e<16;e++)if(i[e]!==this.current[e]){this.current=i,this.gl.uniformMatrix4fv(this.location,!1,i);break}}}}const Al=new Float32Array(9),yl=new Float32Array(4);class vl extends cl{constructor(e){super(e),this.current=yl}set(e,t,i){if(this.fetchUniformLocation(e,t))for(let e=0;e<4;e++)if(i[e]!==this.current[e]){this.current=i,this.gl.uniformMatrix2fv(this.location,!1,i);break}}}function xl(e){return[tl(255*e.r,255*e.g),tl(255*e.b,255*e.a)]}class bl{constructor(e,t,i,n){this.value=e,this.uniformNames=t.map(e=>`u_${e}`),this.type=i,this.context=n}setUniform(e,t,i,n,r){const o=n.constantOr(this.value);t.set(e,r,o instanceof oi?o.toPremultipliedRenderColor(this.lutExpression&&"none"===this.lutExpression.value?null:this.context.lut):o)}getBinding(e,t){return"color"===this.type?new ml(e):new ul(e)}}class wl{constructor(e,t){this.uniformNames=t.map(e=>`u_${e}`),this.pattern=null,this.patternTransition=null,this.pixelRatio=1}setConstantPatternPositions(e,t){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br),this.patternTransition=t?t.tl.concat(t.br):this.pattern}setUniform(e,t,i,n,r){let o=null;"u_pattern"!==r&&"u_dash"!==r||(o=this.pattern),"u_pattern_b"===r&&(o=this.patternTransition),"u_pixel_ratio"===r&&(o=this.pixelRatio),o&&t.set(e,r,o)}getBinding(e,t){return"u_pattern"===t||"u_pattern_b"===t||"u_dash"===t?new fl(e):new ul(e)}}class Cl{constructor(e,t,i,n){this.expression=e,this.type=i,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===i?2:1,offset:0})),this.paintVertexArray=new n}populatePaintArray(e,t,i,n,r,o,s,a){const l=this.paintVertexArray.length,c="composite"===this.expression.kind||"source"===this.expression.kind?this.expression.evaluate(new _s(0,{brightness:o,worldview:a}),t,{},r,n,s):"constant"===this.expression.kind&&this.expression.value,h=!!this.lutExpression&&"none"===("composite"===this.lutExpression.kind||"source"===this.lutExpression.kind?this.lutExpression.evaluate(new _s(0,{brightness:o,worldview:a}),t,{},r,n,s):this.lutExpression.value);this.paintVertexArray.resize(e),this._setPaintValue(l,e,c,h?null:this.context.lut)}updatePaintArray(e,t,i,n,r,o,s,a){const l="composite"===this.expression.kind||"source"===this.expression.kind?this.expression.evaluate({zoom:0,brightness:s,worldview:a},i,n,void 0,r):"constant"===this.expression.kind&&this.expression.value,c=!!this.lutExpression&&"none"===("composite"===this.lutExpression.kind||"source"===this.lutExpression.kind?this.lutExpression.evaluate(new _s(0,{brightness:s,worldview:a}),i,n,void 0,r):this.lutExpression.value);this._setPaintValue(e,t,l,c?null:this.context.lut)}_setPaintValue(e,t,i,n){if("color"===this.type){const r=xl(i.toPremultipliedRenderColor(n));for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,r[0],r[1])}else{for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,i);this.maxValue=Math.max(this.maxValue,Math.abs(i))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.lutExpression&&"constant"!==this.lutExpression.kind&&(this.lutExpression.isStateDependent||!this.lutExpression.isLightConstant)||"constant"!==this.expression.kind&&(this.expression.isStateDependent||!this.expression.isLightConstant)))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Tl{constructor(e,t,i,n,r,o){this.expression=e,this.uniformNames=t.map(e=>`u_${e}_t`),this.type=i,this.useIntegerZoom=n,this.context=r,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===i?4:2,offset:0})),this.paintVertexArray=new o}populatePaintArray(e,t,i,n,r,o,s,a){const l=this.expression.evaluate(new _s(this.context.zoom,{brightness:o,worldview:a}),t,{},r,n,s),c=this.expression.evaluate(new _s(this.context.zoom+1,{brightness:o,worldview:a}),t,{},r,n,s),h=!!this.lutExpression&&"none"===("composite"===this.lutExpression.kind||"source"===this.lutExpression.kind?this.lutExpression.evaluate(new _s(0,{brightness:o,worldview:a}),t,{},r,n,s):this.lutExpression.value),u=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(u,e,l,c,h?null:this.context.lut)}updatePaintArray(e,t,i,n,r,o,s,a){const l=this.expression.evaluate({zoom:this.context.zoom,brightness:s,worldview:a},i,n,void 0,r),c=this.expression.evaluate({zoom:this.context.zoom+1,brightness:s,worldview:a},i,n,void 0,r),h=!!this.lutExpression&&"none"===("composite"===this.lutExpression.kind||"source"===this.lutExpression.kind?this.lutExpression.evaluate(new _s(0,{brightness:s,worldview:a}),i,n,void 0,r):this.lutExpression.value);this._setPaintValue(e,t,l,c,h?null:this.context.lut)}_setPaintValue(e,t,i,n,r){if("color"===this.type){const n=xl(i.toPremultipliedRenderColor(r)),o=xl(i.toPremultipliedRenderColor(r));for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,n[0],n[1],o[0],o[1])}else{for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,i,n);this.maxValue=Math.max(this.maxValue,Math.abs(i),Math.abs(n))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t,i,n,r){const o=this.useIntegerZoom?Math.floor(i.zoom):i.zoom,s=Pe(this.expression.interpolationFactor(o,this.context.zoom,this.context.zoom+1),0,1);t.set(e,r,s)}getBinding(e,t){return new ul(e)}}class El{constructor(e,t,i,n,r){this.expression=e,this.layerId=r,this.paintVertexAttributes=("array"===i?rl:il).members;for(let e=0;e<t.length;++e);this.paintVertexArray=new n,this.paintTransitionVertexArray=new da}populatePaintArray(e,t,i,n){const r=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValues(r,e,t.patterns&&t.patterns[this.layerId],i)}updatePaintArray(e,t,i,n,r,o,s){this._setPaintValues(e,t,i.patterns&&i.patterns[this.layerId],o)}_setPaintValues(e,t,i,n){if(!n||!i)return;const r=n[i[0]],o=n[i[1]];if(r){if(r){const{tl:i,br:n,pixelRatio:o}=r;for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,i[0],i[1],n[0],n[1],o)}if(o){this.paintTransitionVertexArray.resize(this.paintVertexArray.length);const{tl:i,br:n}=o;for(let r=e;r<t;r++)this.paintTransitionVertexArray.emplace(r,i[0],i[1],n[0],n[1])}}}upload(e){const t=this.expression.isStateDependent||!this.expression.isLightConstant;this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,t)),this.paintTransitionVertexArray&&this.paintTransitionVertexArray.length&&(this.paintTransitionVertexBuffer=e.createVertexBuffer(this.paintTransitionVertexArray,nl.members,t))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy(),this.paintTransitionVertexBuffer&&this.paintTransitionVertexBuffer.destroy()}}class Sl{constructor(e,t,i=()=>!0){this.binders={},this._buffers=[],this.context=t;const n=[];for(const r in e.paint._values){const o=e.paint.get(r);if(r.endsWith("-use-theme"))continue;if(!i(r))continue;if(!(o instanceof Cs&&xo(o.property.specification)))continue;const s=Pl(r,e.type),a=o.value,l=o.property.specification.type,c=!!o.property.useIntegerZoom,h="line-dasharray"===r||r.endsWith("pattern"),u=e.paint.get(`${r}-use-theme`),d="line-dasharray"===r&&"constant"!==e.layout.get("line-cap").value.kind||u&&"constant"!==u.value.kind;if("constant"!==a.kind||d)if("source"===a.kind||d||h){const t=zl(r,l,"source");this.binders[r]=h?new El(a,s,l,t,e.id):new Cl(a,s,l,t),n.push(`/a_${r}`)}else{const e=zl(r,l,"composite");this.binders[r]=new Tl(a,s,l,c,t,e),n.push(`/z_${r}`)}else this.binders[r]=h?new wl(a.value,s):new bl(a.value,s,l,t),n.push(`/u_${r}`);u&&(this.binders[r].lutExpression=u.value)}this.cacheKey=n.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof Cl||t instanceof Tl?t.maxValue:0}populatePaintArrays(e,t,i,n,r,o,s,a){for(const l in this.binders){const c=this.binders[l];c.context=this.context,(c instanceof Cl||c instanceof Tl||c instanceof El)&&c.populatePaintArray(e,t,i,n,r,o,s,a)}}setConstantPatternPositions(e,t){for(const i in this.binders){const n=this.binders[i];n instanceof wl&&n.setConstantPatternPositions(e,t)}}getPatternTransitionVertexBuffer(e){const t=this.binders[e];return t instanceof El?t.paintTransitionVertexBuffer:null}updatePaintArrays(e,t,i,n,r,o,s,a,l,c){let h=!1;const u=Object.keys(e),d=0!==u.length&&!a,p=d?u:t.uniqueIds;this.context.lut=r.lut;for(const a in this.binders){const u=this.binders[a];if(u.context=this.context,(u instanceof Cl||u instanceof Tl||u instanceof El)&&u.expression&&u.expression.kind&&"constant"!==u.expression.kind&&(!0===u.expression.isStateDependent||!1===u.expression.isLightConstant)){const f=r.paint.get(a);u.expression=f.value;for(const i of p){const r=e[i.toString()];t.eachPosition(i,(e,t,i)=>{const a=n.feature(e);u.updatePaintArray(t,i,a,r,o,s,l,c)})}if(!d)for(const t of i.uniqueIds){const r=e[t.toString()];i.eachPosition(t,(e,t,i)=>{const a=n.feature(e);u.updatePaintArray(t,i,a,r,o,s,l,c)})}h=!0}}return h}defines(){const e=[];for(const t in this.binders){const i=this.binders[t];(i instanceof bl||i instanceof wl)&&e.push(...i.uniformNames.map(e=>`#define HAS_UNIFORM_${e}`))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const i=this.binders[t];if(i instanceof Cl||i instanceof Tl||i instanceof El)for(let t=0;t<i.paintVertexAttributes.length;t++)e.push(i.paintVertexAttributes[t].name);if(i instanceof El)for(let t=0;t<nl.members.length;t++)e.push(nl.members[t].name)}return e}getBinderUniforms(){const e=[];for(const t in this.binders){const i=this.binders[t];if(i instanceof bl||i instanceof wl||i instanceof Tl)for(const t of i.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e){const t=[];for(const i in this.binders){const n=this.binders[i];if(n instanceof bl||n instanceof wl||n instanceof Tl)for(const r of n.uniformNames)t.push({name:r,property:i,binding:n.getBinding(e,r)})}return t}setUniforms(e,t,i,n,r){for(const{name:t,property:o,binding:s}of i)this.binders[o].setUniform(e,s,r,n.get(o),t)}updatePaintBuffers(){this._buffers=[];for(const e in this.binders){const t=this.binders[e];(t instanceof Cl||t instanceof Tl||t instanceof El)&&t.paintVertexBuffer&&this._buffers.push(t.paintVertexBuffer),t instanceof El&&t.paintTransitionVertexBuffer&&this._buffers.push(t.paintTransitionVertexBuffer)}}upload(e){for(const t in this.binders){const i=this.binders[t];(i instanceof Cl||i instanceof Tl||i instanceof El)&&i.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof Cl||t instanceof Tl||t instanceof El)&&t.destroy()}}}class Il{constructor(e,t,i=()=>!0){this.programConfigurations={};for(const n of e)this.programConfigurations[n.id]=new Sl(n,t,i);this.needsUpload=!1,this._featureMap=new ol,this._featureMapWithoutIds=new ol,this._bufferOffset=0,this._idlessCounter=0}populatePaintArrays(e,t,i,n,r,o,s,a,l){for(const i in this.programConfigurations)this.programConfigurations[i].populatePaintArrays(e,t,n,r,o,s,a,l);void 0!==t.id?this._featureMap.add(t.id,i,this._bufferOffset,e):(this._featureMapWithoutIds.add(this._idlessCounter,i,this._bufferOffset,e),this._idlessCounter+=1),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,i,n,r,o,s,a){for(const l of i)this.needsUpload=this.programConfigurations[l.id].updatePaintArrays(e,this._featureMap,this._featureMapWithoutIds,t,l,n,r,o,s||0,a)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const Ml={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-occlusion-opacity":["occlusion_opacity"],"icon-occlusion-opacity":["occlusion_opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-emissive-strength":["emissive_strength"],"icon-emissive-strength":["emissive_strength"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"symbol-z-offset":["z_offset"],"line-gap-width":["gapwidth"],"line-pattern":["pattern","pixel_ratio","pattern_b"],"fill-pattern":["pattern","pixel_ratio","pattern_b"],"fill-extrusion-pattern":["pattern","pixel_ratio","pattern_b"],"line-dasharray":["dash"],"fill-bridge-guard-rail-color":["structure_color"],"fill-tunnel-structure-color":["structure_color"]};function Pl(e,t){return Ml[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}const Dl={"line-pattern":{source:ua,composite:ua},"fill-pattern":{source:ua,composite:ua},"fill-extrusion-pattern":{source:ua,composite:ua},"line-dasharray":{source:da,composite:da}},Ll={color:{source:Da,composite:ga},number:{source:oa,composite:Da}};function zl(e,t,i){const n=Dl[e];return n&&n[i]||Ll[t][i]}Wo(bl,"ConstantBinder"),Wo(wl,"PatternConstantBinder"),Wo(Cl,"SourceExpressionBinder"),Wo(El,"PatternCompositeBinder"),Wo(Tl,"CompositeExpressionBinder"),Wo(Sl,"ProgramConfiguration",{omit:["_buffers"]}),Wo(Il,"ProgramConfigurationSet");const Ol=On/Math.PI/2,Rl=5,kl=6,Bl=16383,Fl=64,Nl=[Fl,32,16],Vl=-Ol,jl=Ol;function Ul(e,t,i,n=Ol){return i=Ce(i),[e*Math.sin(i)*n,-t*n,e*Math.cos(i)*n]}function Hl(e,t,i){return Ul(Math.cos(Ce(e)),Math.sin(Ce(e)),t,i)}const Gl=6371008.8,Zl=2*Math.PI*Gl;class Wl{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Wl(Le(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,i=this.lat*t,n=e.lat*t,r=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((e.lng-this.lng)*t);return Gl*Math.acos(Math.min(r,1))}toBounds(e=0){const t=360*e/40075017,i=t/Math.cos(Math.PI/180*this.lat);return new ql({lng:this.lng-i,lat:this.lat-t},{lng:this.lng+i,lat:this.lat+t})}toEcef(e){return Hl(this.lat,this.lng,Ol+e*Ol/Gl)}static convert(e){if(e instanceof Wl)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Wl(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Wl(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}class ql{constructor(e,t){if(e)if(t)this.setSouthWest(e).setNorthEast(t);else if(4===e.length){const t=e;this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]])}else{const t=e;this.setSouthWest(t[0]).setNorthEast(t[1])}}setNorthEast(e){return this._ne=e instanceof Wl?new Wl(e.lng,e.lat):Wl.convert(e),this}setSouthWest(e){return this._sw=e instanceof Wl?new Wl(e.lng,e.lat):Wl.convert(e),this}extend(e){const t=this._sw,i=this._ne;let n,r;if(e instanceof Wl)n=e,r=e;else{if(!(e instanceof ql))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(ql.convert(e)):this.extend(Wl.convert(e)):"object"==typeof e&&null!==e&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(Wl.convert(e)):this;if(n=e._sw,r=e._ne,!n||!r)return this}return t||i?(t.lng=Math.min(n.lng,t.lng),t.lat=Math.min(n.lat,t.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Wl(n.lng,n.lat),this._ne=new Wl(r.lng,r.lat)),this}getCenter(){return new Wl((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Wl(this.getWest(),this.getNorth())}getSouthEast(){return new Wl(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:i}=Wl.convert(e);let n=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(n=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=i&&i<=this._ne.lat&&n}static convert(e){if(e)return e instanceof ql?e:new ql(e)}}const Xl=0,$l=25.5;function Yl(e){return Zl*Math.cos(e*Math.PI/180)}function Ql(e){return(180+e)/360}function Kl(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Jl(e,t){return e/Yl(t)}function ec(e){return 360*e-180}function tc(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}function ic(e,t){return e*Yl(tc(t))}const nc=85.051129;function rc(e){return Math.cos(Ce(Pe(e,-85.051129,nc)))}function oc(e,t){const i=Pe(t,Xl,$l),n=Math.pow(2,i);return rc(e)*Zl/(512*n)}function sc(e){return 1/Math.cos(e*Math.PI/180)}function ac(e,t=0){const i=Math.exp(Math.PI*(1-(e.y+t/On)/(1<<e.z)*2));return 80150034*i/(i*i+1)/On/(1<<e.z)}class lc{constructor(e,t,i=0){this.x=+e,this.y=+t,this.z=+i}static fromLngLat(e,t=0){const i=Wl.convert(e);return new lc(Ql(i.lng),Kl(i.lat),Jl(t,i.lat))}toLngLat(){return new Wl(ec(this.x),tc(this.y))}toAltitude(){return ic(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Zl*sc(tc(this.y))}}function cc(e,t,i,n,r,o,s,a,l){const c=(t+n)/2,h=(i+r)/2,u=new ve(c,h);a(u),function(e,t,i,n,r,o){const s=i-r,a=n-o;return Math.abs((n-t)*s-(i-e)*a)/Math.hypot(s,a)}(u.x,u.y,o.x,o.y,s.x,s.y)>=l?(cc(e,t,i,c,h,o,u,a,l),cc(e,c,h,n,r,u,s,a,l)):e.push(s)}function hc(e,t,i){let n=e[0],r=n.x,o=n.y;t(n);const s=[n];for(let a=1;a<e.length;a++){const l=e[a],{x:c,y:h}=l;t(l),cc(s,r,o,c,h,n,l,t,i),r=c,o=h,n=l}return s}function uc(e,t,i,n){if(n(t,i)){const r=t.add(i)._mult(.5);uc(e,t,r,n),uc(e,r,i,n)}else e.push(i)}function dc(e,t){let i=e[0];const n=[i];for(let r=1;r<e.length;r++){const o=e[r];uc(n,i,o,t),i=o}return n}const pc=Math.pow(2,14)-1,fc=-pc-1;function mc(e,t){const i=Math.round(e.x*t),n=Math.round(e.y*t);return e.x=Pe(i,fc,pc),e.y=Pe(n,fc,pc),(i<e.x||i>e.x+1||n<e.y||n>e.y+1)&&Ge("Geometry exceeds allowed extent, reduce your vector tile buffer size"),e}function gc(e,t,i){const n=e.loadGeometry(),r=e.extent,o=On/r;if(t&&i&&i.projection.isReprojectedInTileSpace){const o=1<<t.z,{scale:s,x:a,y:l,projection:c}=i,h=e=>{const i=ec((t.x+e.x/r)/o),n=tc((t.y+e.y/r)/o),h=c.project(i,n);e.x=(h.x*s-a)*r,e.y=(h.y*s-l)*r};for(let t=0;t<n.length;t++)if(1!==e.type)n[t]=hc(n[t],h,1);else{const e=[];for(const i of n[t])i.x<0||i.x>=r||i.y<0||i.y>=r||(h(i),e.push(i));n[t]=e}}for(const e of n)for(const t of e)mc(t,o);return n}function _c(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?gc(e):[]}}var Ac,yc,vc,xc,bc,wc,Cc,Tc={};function Ec(){if(yc)return Ac;yc=1;var e=ye();function t(e,t,n,r,o){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=o,e.readFields(i,this,t)}function i(e,t,i){1==e?t.id=i.readVarint():2==e?function(e,t){for(var i=e.readVarint()+e.pos;e.pos<i;){var n=t._keys[e.readVarint()],r=t._values[e.readVarint()];t.properties[n]=r}}(i,t):3==e?t.type=i.readVarint():4==e&&(t._geometry=i.pos)}function n(e){for(var t,i,n=0,r=0,o=e.length,s=o-1;r<o;s=r++)n+=((i=e[s]).x-(t=e[r]).x)*(t.y+i.y);return n}return Ac=t,t.types=["Unknown","Point","LineString","Polygon"],t.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var i,n=t.readVarint()+t.pos,r=1,o=0,s=0,a=0,l=[];t.pos<n;){if(o<=0){var c=t.readVarint();r=7&c,o=c>>3}if(o--,1===r||2===r)s+=t.readSVarint(),a+=t.readSVarint(),1===r&&(i&&l.push(i),i=[]),i.push(new e(s,a));else{if(7!==r)throw new Error("unknown command "+r);i&&i.push(i[0].clone())}}return i&&l.push(i),l},t.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,i=1,n=0,r=0,o=0,s=1/0,a=-1/0,l=1/0,c=-1/0;e.pos<t;){if(n<=0){var h=e.readVarint();i=7&h,n=h>>3}if(n--,1===i||2===i)(r+=e.readSVarint())<s&&(s=r),r>a&&(a=r),(o+=e.readSVarint())<l&&(l=o),o>c&&(c=o);else if(7!==i)throw new Error("unknown command "+i)}return[s,l,a,c]},t.prototype.toGeoJSON=function(e,i,r){var o,s,a=this.extent*Math.pow(2,r),l=this.extent*e,c=this.extent*i,h=this.loadGeometry(),u=t.types[this.type];function d(e){for(var t=0;t<e.length;t++){var i=e[t];e[t]=[360*(i.x+l)/a-180,360/Math.PI*Math.atan(Math.exp((180-360*(i.y+c)/a)*Math.PI/180))-90]}}switch(this.type){case 1:var p=[];for(o=0;o<h.length;o++)p[o]=h[o][0];d(h=p);break;case 2:for(o=0;o<h.length;o++)d(h[o]);break;case 3:for(h=function(e){var t=e.length;if(t<=1)return[e];for(var i,r,o=[],s=0;s<t;s++){var a=n(e[s]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(i&&o.push(i),i=[e[s]]):i.push(e[s]))}return i&&o.push(i),o}(h),o=0;o<h.length;o++)for(s=0;s<h[o].length;s++)d(h[o][s])}1===h.length?h=h[0]:u="Multi"+u;var f={type:"Feature",geometry:{type:u,coordinates:h},properties:this.properties};return"id"in this&&(f.id=this.id),f},Ac}function Sc(){if(xc)return vc;xc=1;var e=Ec();function t(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(i,this,t),this.length=this._features.length}function i(e,t,i){15===e?t.version=i.readVarint():1===e?t.name=i.readString():5===e?t.extent=i.readVarint():2===e?t._features.push(i.pos):3===e?t._keys.push(i.readString()):4===e&&t._values.push(function(e){for(var t=null,i=e.readVarint()+e.pos;e.pos<i;){var n=e.readVarint()>>3;t=1===n?e.readString():2===n?e.readFloat():3===n?e.readDouble():4===n?e.readVarint64():5===n?e.readVarint():6===n?e.readSVarint():7===n?e.readBoolean():null}return t}(i))}return vc=t,t.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var i=this._pbf.readVarint()+this._pbf.pos;return new e(this._pbf,i,this.extent,this._keys,this._values)},vc}function Ic(){return Cc||(Cc=1,Tc.VectorTile=function(){if(wc)return bc;wc=1;var e=Sc();function t(t,i,n){if(3===t){var r=new e(n,n.readVarint()+n.pos);r.length&&(i[r.name]=r)}}return bc=function(e,i){this.layers=e.readFields(t,{},i)},bc}(),Tc.VectorTileFeature=Ec(),Tc.VectorTileLayer=Sc()),Tc}var Mc=Ic();const Pc="3d_elevation_id",Dc="level";class Lc{constructor(){this._valid=!1}reset(e){return this.feature=e,this._valid=!0,this._geometry=e.loadGeometry(),0!==this._geometry.length&&0!==this._geometry[0].length||(this._valid=!1),this}geometry(e,t){return this._valid&&e(t(this._geometry)),this}require(e,t,i){return this.get(e,!0,t,i)}optional(e,t,i){return this.get(e,!1,t,i)}success(){return this._valid}get(e,t,i,n){const r=this.feature.properties.hasOwnProperty(e)?+this.feature.properties[e]:void 0;return this._valid&&void 0!==r&&!Number.isNaN(r)?i(n?n(r):r):t&&(this._valid=!1),this}}class zc{constructor(e,t){this.featureFunc=e,this.vertexFunc=t}parseFeature(e,t,i){return this.featureFunc(e,t,i)}parseVertex(e,t,i){return this.vertexFunc(e,t,i)}}const Oc=new zc((e,t,i)=>e.reset(t).require(Pc,e=>{i.id=e}).optional("fixed_height_relative",e=>{i.constantHeight=e},kc.decodeRelativeHeight).geometry(e=>{i.bounds=e},dn).success(),(e,t,i)=>e.reset(t).require(Pc,e=>{i.id=e}).require("elevation_idx",e=>{i.idx=e}).require("extent",e=>{i.extent=e}).require("height_relative",e=>{i.height=e},kc.decodeRelativeHeight).geometry(e=>{i.position=e},kc.getPoint).success()),Rc=new zc((e,t,i)=>e.reset(t).require(Pc,e=>{i.id=e}).optional("fixed_height",e=>{i.constantHeight=e},kc.decodeMetricHeight).geometry(e=>{i.bounds=e},dn).success(),(e,t,i)=>e.reset(t).require(Pc,e=>{i.id=e}).require("elevation_idx",e=>{i.idx=e}).require("extent",e=>{i.extent=e}).require("height",e=>{i.height=e},kc.decodeMetricHeight).geometry(e=>{i.position=e},kc.getPoint).success());class kc{static getPoint(e){return ae(e[0][0].x,e[0][0].y)}static decodeRelativeHeight(e){return 1e-4*e*5}static decodeMetricHeight(e){return 1e-4*e}static parse(e){const t=[],i=[],n=e.length,r=new Lc;for(let s=0;s<n;s++){const n=e.feature(s),a=n.properties.hasOwnProperty("version")?String(n.properties.version):void 0,l=(o=a)?"1.0.1"===o?Rc:void 0:Oc;if(void 0===l){Ge(`Unknown elevation feature version number ${a||"(unknown)"}`);continue}const c=n.properties.hasOwnProperty("type")?n.properties.type:void 0;if(c)if("Point"===Mc.VectorTileFeature.types[n.type]&&"curve_point"===c){const e={};l.parseVertex(r,n,e)&&t.push(e)}else if("Polygon"===Mc.VectorTileFeature.types[n.type]&&"curve_meta"===c){const e={};l.parseFeature(r,n,e)&&i.push(e)}}var o;return{vertices:t,features:i}}}class Bc{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,i){const n=pe(t,this.dir);if(Math.abs(n)<1e-6)return!1;const r=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1])/n;return i[0]=this.pos[0]+this.dir[0]*r,i[1]=this.pos[1]+this.dir[1]*r,!0}}class Fc{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,i){const n=R(t,this.dir);if(Math.abs(n)<1e-6)return!1;const r=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1]+(e[2]-this.pos[2])*t[2])/n;return i[0]=this.pos[0]+this.dir[0]*r,i[1]=this.pos[1]+this.dir[1]*r,i[2]=this.pos[2]+this.dir[2]*r,!0}closestPointOnSphere(e,i,n){if(function(e,i){var n=e[0],r=e[1],o=e[2],s=i[0],a=i[1],l=i[2];return Math.abs(n-s)<=t*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=t*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=t*Math.max(1,Math.abs(o),Math.abs(l))}(this.pos,e)||0===i)return n[0]=n[1]=n[2]=0,!1;const[r,o,s]=this.dir,a=this.pos[0]-e[0],l=this.pos[1]-e[1],c=this.pos[2]-e[2],h=r*r+o*o+s*s,u=2*(a*r+l*o+c*s),d=u*u-4*h*(a*a+l*l+c*c-i*i);if(d<0){const e=Math.max(-u/2,0),t=a+r*e,h=l+o*e,d=c+s*e,p=Math.hypot(t,h,d);return n[0]=t*i/p,n[1]=h*i/p,n[2]=d*i/p,!1}{const e=(-u-Math.sqrt(d))/(2*h);if(e<0){const e=Math.hypot(a,l,c);return n[0]=a*i/e,n[1]=l*i/e,n[2]=c*i/e,!1}return n[0]=a+r*e,n[1]=l+o*e,n[2]=c+s*e,!0}}}class Nc{constructor(e,t,i,n,r){this.TL=e,this.TR=t,this.BR=i,this.BL=n,this.horizon=r}static fromInvProjectionMatrix(e,t,i){const n=[-1,1,1],r=[1,1,1],o=[1,-1,1],s=[-1,-1,1],a=F(n,n,e),l=F(r,r,e),c=F(o,o,e),h=F(s,s,e);return new Nc(a,l,c,h,t/i)}}function Vc(e,t,i){let n=1/0,r=-1/0;const o=[];for(const s of e){U(o,s,t);const e=R(o,i);n=Math.min(n,e),r=Math.max(r,e)}return[n,r]}function jc(e,t){let i=!0;for(let n=0;n<e.planes.length;n++){const r=e.planes[n];let o=0;for(let e=0;e<t.length;e++)o+=R(r,t[e])+r[3]>=0;if(0===o)return 0;o!==t.length&&(i=!1)}return i?2:1}function Uc(e,t){for(const i of e.projections){const n=Vc(t,e.points[0],i.axis);if(i.projection[1]<n[0]||i.projection[0]>n[1])return 0}return 1}function Hc(e,t){let i=0;const n=[0,0,0,0];for(let s=0;s<e.length;s++)n[0]=e[s][0],n[1]=e[s][1],n[2]=e[s][2],n[3]=1,(r=n)[0]*(o=t)[0]+r[1]*o[1]+r[2]*o[2]+r[3]*o[3]>=0&&i++;var r,o;return i}class Gc{constructor(e,t){this.points=e||new Array(8).fill([0,0,0]),this.planes=t||new Array(6).fill([0,0,0,0]),this.bounds=Zc.fromPoints(this.points),this.projections=[],this.frustumEdges=[U([],this.points[2],this.points[3]),U([],this.points[0],this.points[3]),U([],this.points[4],this.points[0]),U([],this.points[5],this.points[1]),U([],this.points[6],this.points[2]),U([],this.points[7],this.points[3])];for(const e of this.frustumEdges){const t=[0,-e[2],e[1]],i=[e[2],0,-e[0]];this.projections.push({axis:t,projection:Vc(this.points,this.points[0],t)}),this.projections.push({axis:i,projection:Vc(this.points,this.points[0],i)})}}static fromInvProjectionMatrix(e,t,i,n){const r=Math.pow(2,i),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(i=>{const o=X([],i,e),s=1/o[3]/t*r;return(a=o)[0]=(l=o)[0]*(c=[s,s,n?1/o[3]:s,s])[0],a[1]=l[1]*c[1],a[2]=l[2]*c[2],a[3]=l[3]*c[3],a;var a,l,c}),s=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(e=>{const t=O([],k([],U([],o[e[0]],o[e[1]]),U([],o[e[2]],o[e[1]]))),i=-R(t,o[e[1]]);return t.concat(i)}),a=[];for(let e=0;e<o.length;e++)a.push([o[e][0],o[e][1],o[e][2]]);return new Gc(a,s)}intersectsPrecise(e,t,i){for(let i=0;i<t.length;i++)if(!Hc(e,t[i]))return 0;for(let t=0;t<this.planes.length;t++)if(!Hc(e,this.planes[t]))return 0;for(const t of i)for(const i of this.frustumEdges){const n=k([],t,i),r=b(n);if(0===r)continue;M(n,n,1/r);const o=Vc(this.points,this.points[0],n),s=Vc(e,this.points[0],n);if(o[0]>s[1]||s[0]>o[1])return 0}return 1}containsPoint(e){for(const t of this.planes){const i=t[3];if(R([t[0],t[1],t[2]],e)+i<0)return!1}return!0}}class Zc{static fromPoints(e){const t=[1/0,1/0,1/0],i=[-1/0,-1/0,-1/0];for(const n of e)S(t,t,n),I(i,i,n);return new Zc(t,i)}static fromTileIdAndHeight(e,t,i){const n=1<<e.canonical.z,r=e.canonical.x,o=e.canonical.y;return new Zc([r/n,o/n,t],[(r+1)/n,(o+1)/n,i])}static applyTransform(e,t){const i=e.getCorners();for(let e=0;e<i.length;++e)F(i[e],i[e],t);return Zc.fromPoints(i)}static applyTransformFast(e,t){const i=[t[12],t[13],t[14]],n=[...i];for(let r=0;r<3;r++)for(let o=0;o<3;o++){const s=t[4*o+r],a=s*e.min[o],l=s*e.max[o];i[r]+=Math.min(a,l),n[r]+=Math.max(a,l)}return new Zc(i,n)}static projectAabbCorners(e,t){const i=e.getCorners();for(let e=0;e<i.length;++e)F(i[e],i[e],t);return i}constructor(e,t){this.min=e,this.max=t,this.center=M([],C([],this.min,this.max),.5)}quadrant(e){const t=[e%2==0,e<2],i=x(this.min),n=x(this.max);for(let e=0;e<t.length;e++)i[e]=t[e]?this.min[e]:this.center[e],n[e]=t[e]?this.center[e]:this.max[e];return n[2]=this.max[2],new Zc(i,n)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}getCorners(){const e=this.min,t=this.max;return[[e[0],e[1],e[2]],[t[0],e[1],e[2]],[t[0],t[1],e[2]],[e[0],t[1],e[2]],[e[0],e[1],t[2]],[t[0],e[1],t[2]],[t[0],t[1],t[2]],[e[0],t[1],t[2]]]}intersects(e){return this.intersectsAabb(e.bounds)?jc(e,this.getCorners()):0}intersectsFlat(e){return this.intersectsAabb(e.bounds)?jc(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsPrecise(e,t){return t||this.intersects(e)?Uc(e,this.getCorners()):0}intersectsPreciseFlat(e,t){return t||this.intersectsFlat(e)?Uc(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsAabb(e){for(let t=0;t<3;++t)if(this.min[t]>e.max[t]||e.min[t]>this.max[t])return!1;return!0}intersectsAabbXY(e){return!(this.min[0]>e.max[0]||e.min[0]>this.max[0]||this.min[1]>e.max[1]||e.min[1]>this.max[1])}encapsulate(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e.min[t]),this.max[t]=Math.max(this.max[t],e.max[t])}encapsulatePoint(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e[t]),this.max[t]=Math.max(this.max[t],e[t])}closestPoint(e){return[Math.max(Math.min(this.max[0],e[0]),this.min[0]),Math.max(Math.min(this.max[1],e[1]),this.min[1]),Math.max(Math.min(this.max[2],e[2]),this.min[2])]}}Wo(Zc,"Aabb");class Wc{constructor(e,t){this.feature=e,this.metersToTile=t,this.index=0}get(){const e=this.feature.vertices[this.index],t=this.feature.vertexProps[this.index].dir,i=t[1],n=-t[0],r=(e.extent+1)*this.metersToTile;return[new ve(Math.trunc(e.position[0]+i*r),Math.trunc(e.position[1]+n*r)),new ve(Math.trunc(e.position[0]-i*r),Math.trunc(e.position[1]-n*r))]}next(){this.index++}valid(){return this.index<this.feature.vertices.length}}class qc{constructor(e,t,i,n,r,o){if(this.vertices=new Array,this.vertexProps=new Array,this.edges=new Array,this.edgeProps=new Array,this.id=e,this.heightRange={min:i,max:i},this.safeArea=t,this.constantHeight=i,null==this.constantHeight&&(null!=this.constantHeight||0!==n.length)){this.vertices=n,this.edges=r,this.edges=this.edges.filter(e=>{return e.a<this.vertices.length&&e.b<this.vertices.length&&!((t=this.vertices[e.a].position)[0]===(i=this.vertices[e.b].position)[0]&&t[1]===i[1]);var t,i}),this.heightRange={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};for(const e of this.vertices)this.vertexProps.push({dir:ae(0,0)}),this.heightRange.min=Math.min(this.heightRange.min,e.height),this.heightRange.max=Math.max(this.heightRange.max,e.height);for(const e of this.edges){const t=this.vertices[e.a].position,i=this.vertices[e.b].position,n=ce(se(),i,t),r=ue(n),o=he(se(),n,1/r);this.edgeProps.push({vec:n,dir:o,len:r});const s=this.vertexProps[e.a].dir,a=this.vertexProps[e.b].dir;le(s,s,o),le(a,a,o)}for(const e of this.vertexProps)0===e.dir[0]&&0===e.dir[1]||de(e.dir,e.dir);this.tessellate(o)}}pointElevation(e){if(null!=this.constantHeight)return this.constantHeight;const t=this.getClosestEdge(e);if(null==t)return 0;const[i,n]=t;return ci(this.vertices[this.edges[i].a].height,this.vertices[this.edges[i].b].height,n)}computeSlopeNormal(e,t){const i=this.getClosestEdge(e);if(!i)return w(0,0,1);const n=i[0],r=this.edges[n],o=this.edgeProps[n].vec,s=w(o[0],o[1],(this.vertices[r.b].height-this.vertices[r.a].height)*t),a=w(s[1],-s[0],0);k(a,a,s);const l=b(a);return l>0?M(a,a,1/l):w(0,0,1)}getSafeArea(){return this.safeArea}isTunnel(){return this.heightRange.max<=-5}getClosestEdge(e){if(0===this.edges.length)return;let t=0,i=Number.POSITIVE_INFINITY,n=0;const r=ae(e.x,e.y);for(let e=0;e<this.edges.length;e++){const o=this.edges[e],s=this.edgeProps[e].dir,a=new Bc(r,this.edgeProps[e].dir),l=this.vertices[o.a].position,c=this.vertices[o.b].position,h=se(),u=se(),d=a.intersectsPlane(l,this.vertexProps[o.a].dir,h),p=a.intersectsPlane(c,this.vertexProps[o.b].dir,u);if(!d||!p)continue;const f=ce(se(),u,h),m=ce(se(),r,h),g=pe(f,f),_=g>0?pe(m,f)/g:0,A=Pe(_,0,1),y=Math.abs((_-A)*this.edgeProps[e].len),v=ce(se(),r,l),x=y+Math.abs(pe(v,ae(s[1],-s[0])));x<i&&(t=e,i=x,n=A)}return[t,n]}tessellate(e){for(let t=this.edges.length-1;t>=0;--t){const i=this.edges[t].a,n=this.edges[t].b,{position:r,height:o,extent:s}=this.vertices[i],{position:a,height:l,extent:c}=this.vertices[n],h=this.vertexProps[i].dir,u=this.vertexProps[n].dir,d=w(r[0]/e,r[1]/e,o),p=w(a[0]/e,a[1]/e,l),f=w(h[1],-h[0],0);M(f,f,s);const m=w(u[1],-u[0],0);if(M(m,m,c),this.distSqLines(w(d[0]+.5*f[0],d[1]+.5*f[1],d[2]+.5*f[2]),w(p[0]-.5*m[0],p[1]-.5*m[1],p[2]-.5*m[2]),w(d[0]-.5*f[0],d[1]-.5*f[1],d[2]-.5*f[2]),w(p[0]+.5*m[0],p[1]+.5*m[1],p[2]+.5*m[2]))<=.0025000000000000005)continue;const g=this.vertices.length,_=le(se(),r,a);this.vertices.push({position:he(_,_,.5),height:.5*(o+l),extent:.5*(s+c)});const A=le(se(),h,u);this.vertexProps.push({dir:de(A,A)}),this.edges.splice(t,1),this.edgeProps.splice(t,1),this.edges.push({a:i,b:g}),this.edges.push({a:g,b:n});const y=ce(se(),this.vertices[g].position,r),v=ue(y),x={vec:y,dir:he(se(),y,1/v),len:v};this.edgeProps.push(x),this.edgeProps.push(x)}}distSqLines(e,t,i,n){const r=T(v(),t,e),o=T(v(),n,i),s=T(v(),e,i),a=R(r,r),l=R(r,o),c=R(r,s),h=R(o,o),u=R(o,s),d=a*h-l*l;if(0===d){const t=R(s,o)/R(o,o);return D(B(v(),i,n,t),e)}const p=(l*u-c*h)/d,f=(a*u-l*c)/d;return D(B(v(),e,t,p),B(v(),i,n,f))}}class Xc{static parseFrom(e,t){const i=kc.parse(e);if(!i)return[];let{vertices:n,features:r}=i;const o=1/ac(t);r.sort((e,t)=>e.id-t.id),n.sort((e,t)=>e.id-t.id||e.idx-t.idx),n=n.filter((e,t,i)=>t===i.findIndex(t=>t.id===e.id&&t.idx===e.idx));const s=new Array;let a=0;const l=n.length;for(const e of r){if(e.constantHeight){s.push(new qc(e.id,e.bounds,e.constantHeight));continue}for(;a!==l&&n[a].id<e.id;)a++;if(a===l||n[a].id!==e.id)continue;const t=new Array,i=new Array,r=a;for(;a!==l&&n[a].id===e.id;){const e=n[a];if(t.push({position:e.position,height:e.height,extent:e.extent}),a!==r&&n[a-1].idx===e.idx-1){const e=a-r;i.push({a:e-1,b:e})}a++}s.push(new qc(e.id,e.bounds,void 0,t,i,o))}return s}static getElevationFeature(e,t){if(!t)return;const i=+e.properties[Pc];return Number.isNaN(i)?void 0:t.find(e=>e.id===i)}}class $c{constructor(e,t){this.zScale=1,this.xOffset=0,this.yOffset=0,e.equals(t)||(this.zScale=Math.pow(2,t.z-e.z),this.xOffset=(e.x*this.zScale-t.x)*On,this.yOffset=(e.y*this.zScale-t.y)*On)}constantElevation(e,t){if(null!=e.constantHeight)return this.computeBiasedHeight(e.constantHeight,t)}pointElevation(e,t,i){const n=this.constantElevation(t,i);return null!=n?n:(e.x=e.x*this.zScale+this.xOffset,e.y=e.y*this.zScale+this.yOffset,this.computeBiasedHeight(t.pointElevation(e),i))}computeBiasedHeight(e,t){return t<=0?e:e+t*De(0,t,e>=0?e:Math.abs(.5*e))}}Wo(qc,"ElevationFeature");class Yc{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.fqid),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new ia,this.indexArray=new wa,this.segments=new el,this.programConfigurations=new Il(e.layers,{zoom:e.zoom,lut:e.lut}),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.elevationMode=this.layers[0].layout.get("circle-elevation-reference"),this.hasElevation=!1,"none"!==this.elevationMode&&(this.elevatedLayoutVertexArray=new oa),this.worldview=e.worldview}updateFootprints(e,t){}populate(e,t,i,n){const r=this.layers[0],o=[];let s=null;"circle"===r.type&&(s=r.layout.get("circle-sort-key"));for(const{feature:t,id:r,index:a,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,c=_c(t,e);if(!this.layers[0]._featureFilter.filter(new _s(this.zoom,{worldview:this.worldview}),c,i))continue;const h=s?s.evaluate(c,{},i):void 0,u={id:r,properties:t.properties,type:t.type,sourceLayerIndex:l,index:a,geometry:e?c.geometry:gc(t,i,n),patterns:{},sortKey:h};o.push(u)}s&&o.sort((e,t)=>e.sortKey-t.sortKey);let a=null;"globe"===n.projection.name&&(this.globeExtVertexArray=new pa,a=n.projection);for(const n of o){const{geometry:r,index:o,sourceLayerIndex:s}=n,l=e[o].feature;this.addFeature(n,r,o,t.availableImages,i,a,t.brightness,t.elevationFeatures),t.featureIndex.insert(l,r,o,s,this.index)}this.hasElevation||(this.elevatedLayoutVertexArray=void 0)}update(e,t,i,n,r,o,s){this.programConfigurations.updatePaintArrays(e,t,r,i,n,o,s,this.worldview)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Qa.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Ja.members)),this.elevatedLayoutVertexArray&&(this.elevatedLayoutVertexBuffer=e.createVertexBuffer(this.elevatedLayoutVertexArray,Ka.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy(),this.elevatedLayoutVertexBuffer&&this.elevatedLayoutVertexBuffer.destroy())}addFeature(e,t,i,n,r,o,s,a){let l;"none"!==this.elevationMode&&(l=Xc.getElevationFeature(e,a));for(const i of t)for(const t of i){const i=t.x,n=t.y;if(i<0||i>=On||n<0||n>=On)continue;if(o){const e=o.projectTilePoint(i,n,r),t=o.upVector(r,i,n);this.addGlobeExtVertex(e,t),this.addGlobeExtVertex(e,t),this.addGlobeExtVertex(e,t),this.addGlobeExtVertex(e,t)}const s=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),a=s.vertexLength;if(this.addCircleVertex(i,n,-1,-1),this.addCircleVertex(i,n,1,-1),this.addCircleVertex(i,n,1,1),this.addCircleVertex(i,n,-1,1),"none"!==this.elevationMode){const e=l?l.pointElevation(new ve(i,n)):0;this.hasElevation=this.hasElevation||0!==e;for(let t=0;t<4;t++)this.elevatedLayoutVertexArray.emplaceBack(e)}this.indexArray.emplaceBack(a,a+1,a+2),this.indexArray.emplaceBack(a,a+2,a+3),s.vertexLength+=4,s.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,{},n,r,s,void 0,this.worldview)}addCircleVertex(e,t,i,n){this.layoutVertexArray.emplaceBack(2*e+(i+1)/2,2*t+(n+1)/2)}addGlobeExtVertex(e,t){const i=16384;this.globeExtVertexArray.emplaceBack(e.x,e.y,e.z,t[0]*i,t[1]*i,t[2]*i)}}function Qc(e,t){for(let i=0;i<e.length;i++)if(lh(t,e[i]))return!0;for(let i=0;i<t.length;i++)if(lh(e,t[i]))return!0;return!!th(e,t)}function Kc(e,t,i){return!!lh(e,t)||!!oh(t,e,i)}function Jc(e,t){if(1===e.length)return ah(t,e[0]);for(let i=0;i<t.length;i++){const n=t[i];for(let t=0;t<n.length;t++)if(lh(e,n[t]))return!0}for(let i=0;i<e.length;i++)if(ah(t,e[i]))return!0;for(let i=0;i<t.length;i++)if(th(e,t[i]))return!0;return!1}function eh(e,t,i){if(e.length>1){if(th(e,t))return!0;for(let n=0;n<t.length;n++)if(oh(t[n],e,i))return!0}for(let n=0;n<e.length;n++)if(oh(e[n],t,i))return!0;return!1}function th(e,t){if(0===e.length||0===t.length)return!1;for(let i=0;i<e.length-1;i++){const n=e[i],r=e[i+1];for(let e=0;e<t.length-1;e++)if(ih(n,r,t[e],t[e+1]))return!0}return!1}function ih(e,t,i,n){return Ze(e,i,n)!==Ze(t,i,n)&&Ze(e,t,i)!==Ze(e,t,n)}function nh(e,t,i){return(e.x-i.x)*(t.y-i.y)-(e.y-i.y)*(t.x-i.x)}function rh(e,t,i,n){const r=nh(e,t,n),o=nh(e,t,i);if(Math.sign(r)===Math.sign(o))return;const s=nh(i,n,e),a=s+o-r;return Math.sign(s)!==Math.sign(a)?[s/(s-a),o/(o-r)]:void 0}function oh(e,t,i){const n=i*i;if(1===t.length)return e.distSqr(t[0])<n;for(let i=1;i<t.length;i++)if(sh(e,t[i-1],t[i])<n)return!0;return!1}function sh(e,t,i){const n=t.distSqr(i);if(0===n)return e.distSqr(t);const r=((e.x-t.x)*(i.x-t.x)+(e.y-t.y)*(i.y-t.y))/n;return e.distSqr(r<0?t:r>1?i:i.sub(t)._mult(r)._add(t))}function ah(e,t){let i,n,r,o=!1;for(let s=0;s<e.length;s++){i=e[s];for(let e=0,s=i.length-1;e<i.length;s=e++)n=i[e],r=i[s],n.y>t.y!=r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(o=!o)}return o}function lh(e,t){let i=!1;for(let n=0,r=e.length-1;n<e.length;r=n++){const o=e[n],s=e[r];o.y>t.y!=s.y>t.y&&t.x<(s.x-o.x)*(t.y-o.y)/(s.y-o.y)+o.x&&(i=!i)}return i}function ch(e,t,i,n,r){for(const o of e)if(t<=o.x&&i<=o.y&&n>=o.x&&r>=o.y)return!0;const o=[new ve(t,i),new ve(t,r),new ve(n,r),new ve(n,i)];if(e.length>2)for(const t of o)if(lh(e,t))return!0;for(let t=0;t<e.length-1;t++)if(hh(e[t],e[t+1],o))return!0;return!1}function hh(e,t,i){const n=i[0],r=i[2];if(e.x<n.x&&t.x<n.x||e.x>r.x&&t.x>r.x||e.y<n.y&&t.y<n.y||e.y>r.y&&t.y>r.y)return!1;const o=Ze(e,t,i[0]);return o!==Ze(e,t,i[1])||o!==Ze(e,t,i[2])||o!==Ze(e,t,i[3])}function uh(e,t,i,n,r,o){let s=t.y-e.y,a=e.x-t.x;if(o=o||0){const e=s*s+a*a;if(0===e)return!0;const t=Math.sqrt(e);s/=t,a/=t}return!((i.x-e.x)*s+(i.y-e.y)*a-o<0||(n.x-e.x)*s+(n.y-e.y)*a-o<0||(r.x-e.x)*s+(r.y-e.y)*a-o<0)}function dh(e,t,i,n,r,o,s){return!(uh(e,t,n,r,o,s)||uh(t,i,n,r,o,s)||uh(i,e,n,r,o,s)||uh(n,r,e,t,i,s)||uh(r,o,e,t,i,s)||uh(o,n,e,t,i,s))}function ph(e,t,i){const n=t.paint.get(e).value;return"constant"===n.kind?n.value:i.programConfigurations.get(t.id).getMaxValue(e)}function fh(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function mh(e,t,i,n,r){if(!t[0]&&!t[1])return e;const o=ve.convert(t)._mult(r);"viewport"===i&&o._rotate(-n);const s=[];for(let t=0;t<e.length;t++)s.push(e[t].sub(o));return s}function gh(e,t,i,n){const r=ve.convert(e)._mult(n);return"viewport"===t&&r._rotate(-i),r}let _h,Ah;function yh(e,t,i){var n=2*Math.PI*6378137/256/Math.pow(2,i);return[e*n-2*Math.PI*6378137/2,t*n-2*Math.PI*6378137/2]}Wo(Yc,"CircleBucket",{omit:["layers"]});class vh{constructor(e,t,i){this.z=e,this.x=t,this.y=i,this.key=wh(0,e,e,t,i)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t){const i=function(e,t,i){var n=yh(256*e,256*(t=Math.pow(2,i)-t-1),i),r=yh(256*(e+1),256*(t+1),i);return n[0]+","+n[1]+","+r[0]+","+r[1]}(this.x,this.y,this.z),n=function(e,t,i){let n,r="";for(let o=e;o>0;o--)n=1<<o-1,r+=(t&n?1:0)+(i&n?2:0);return r}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",n).replace("{bbox-epsg-3857}",i)}toString(){return`${this.z}/${this.x}/${this.y}`}}class xh{constructor(e,t){this.wrap=e,this.canonical=t,this.key=wh(e,t.z,t.z,t.x,t.y)}}class bh{constructor(e,t,i,n,r){this.overscaledZ=e,this.wrap=t,this.canonical=new vh(i,+n,+r),this.key=0===t&&e===i?this.canonical.key:wh(t,e,i,n,r)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const t=this.canonical.z-e;return e>this.canonical.z?new bh(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new bh(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t=!0){if(this.overscaledZ===e&&t)return this.key;if(e>this.canonical.z)return wh(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const i=this.canonical.z-e;return wh(this.wrap*+t,e,e,this.canonical.x>>i,this.canonical.y>>i)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.z<this.canonical.z&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new bh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,i=2*this.canonical.x,n=2*this.canonical.y;return[new bh(t,this.wrap,t,i,n),new bh(t,this.wrap,t,i+1,n),new bh(t,this.wrap,t,i,n+1),new bh(t,this.wrap,t,i+1,n+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new bh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new bh(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new xh(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function wh(e,t,i,n,r){const o=1<<Math.min(i,22);let s=o*(r%o)+n%o;return e&&i<22&&(s+=o*o*((e<0?-2*e-1:2*e)%(1<<2*(22-i)))),16*(32*s+i)+(t-i)}const Ch=[e=>{let t=e.canonical.x-1,i=e.wrap;return t<0&&(t=(1<<e.canonical.z)-1,i--),new bh(e.overscaledZ,i,e.canonical.z,t,e.canonical.y)},e=>{let t=e.canonical.x+1,i=e.wrap;return t===1<<e.canonical.z&&(t=0,i++),new bh(e.overscaledZ,i,e.canonical.z,t,e.canonical.y)},e=>new bh(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,(0===e.canonical.y?1<<e.canonical.z:e.canonical.y)-1),e=>new bh(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y===(1<<e.canonical.z)-1?0:e.canonical.y+1)];Wo(vh,"CanonicalTileID"),Wo(bh,"OverscaledTileID",{omit:["projMatrix","expandedProjMatrix"]});const Th=ea([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:Eh}=Th,Sh=ea([{name:"a_pos_3",components:3,type:"Int16"}]);var Ih=ea([{name:"a_pos",type:"Int16",components:2}]);function Mh(e){return e*Ol/Gl}const Ph=[new Zc([Vl,Vl,Vl],[jl,jl,jl]),new Zc([Vl,Vl,Vl],[0,0,jl]),new Zc([0,Vl,Vl],[jl,0,jl]),new Zc([Vl,0,Vl],[0,jl,jl]),new Zc([0,0,Vl],[jl,jl,jl])];function Dh(e,t,i,n=!0){const r=M([],e._camera.position,e.worldSize),o=[t,i,1,1];X(o,o,e.pixelMatrixInverse),W(o,o,1/o[3]);const s=O([],U([],o,r)),a=e.globeMatrix,l=[a[12],a[13],a[14]],c=U([],l,r),h=b(c),u=O([],c),d=e.worldSize/(2*Math.PI),p=R(u,s),f=Math.asin(d/h);if(f<Math.acos(p)){if(!n)return null;const e=[],t=[];M(e,s,h/p),O(t,U(t,e,c)),O(s,C(s,c,M(s,t,Math.tan(f)*h)))}const m=[];new Fc(r,s).closestPointOnSphere(l,d,m);const g=O([],Qe(a,0)),_=O([],Qe(a,1)),A=O([],Qe(a,2)),y=R(g,m),v=R(_,m),x=R(A,m),w=Te(Math.asin(-v/d));let T=Te(Math.atan2(y,x));T=e.center.lng+function(e,t){const i=(t-e+180)%360-180;return i<-180?i+360:i}(e.center.lng,T);const E=Ql(T),S=Pe(Kl(w),0,1);return new lc(E,S)}class Lh{constructor(e,t,i){this.a=U([],e,i),this.b=U([],t,i),this.center=i;const n=O([],this.a),r=O([],this.b);this.angle=Math.acos(R(n,r))}}function zh(e,t){if(0===e.angle)return null;let i;return i=0===e.a[t]?1/e.angle*.5*Math.PI:1/e.angle*Math.atan(e.b[t]/e.a[t]/Math.sin(e.angle)-1/Math.tan(e.angle)),i<0||i>1?null:function(e,t,i,n){const r=Math.sin(i);return e*(Math.sin((1-n)*i)/r)+t*(Math.sin(n*i)/r)}(e.a[t],e.b[t],e.angle,Pe(i,0,1))+e.center[t]}function Oh(e){if(e.z<=1)return Ph[e.z+2*e.y+e.x];const t=Nh(Fh(e));return Zc.fromPoints(t)}function Rh(e,t,i){return M(e,e,1-i),P(e,e,t,i)}function kh(e,t,i){for(const n of e)F(n,n,t),M(n,n,i)}function Bh(e,t,i,n){const r=t/e.worldSize,o=e.globeMatrix;if(i.z<=1){const e=Oh(i).getCorners();return kh(e,o,r),Zc.fromPoints(e)}const s=Fh(i,n),a=Nh(s,Ol+Mh(e._tileCoverLift));kh(a,o,r);const l=Number.MAX_VALUE,c=[-l,-l,-l],h=[l,l,l];if(s.contains(e.center)){for(const e of a)S(h,h,e),I(c,c,e);c[2]=0;const t=e.point,i=[t.x*r,t.y*r,0];return S(h,h,i),I(c,c,i),new Zc(h,c)}if(e._tileCoverLift>0){for(const e of a)S(h,h,e),I(c,c,e);return new Zc(h,c)}const u=[o[12]*r,o[13]*r,o[14]*r],d=s.getCenter(),p=Pe(e.center.lat,-85.051129,nc),f=Pe(d.lat,-85.051129,nc),m=Ql(e.center.lng),g=Kl(p);let _=m-Ql(d.lng);const A=g-Kl(f);_>.5?_-=1:_<-.5&&(_+=1);let y=0;Math.abs(_)>Math.abs(A)?y=_>=0?1:3:(y=A>=0?0:2,P(u,u,[o[4]*r,o[5]*r,o[6]*r],-Math.sin(Ce(A>=0?s.getSouth():s.getNorth()))*Ol));const v=a[y],x=a[(y+1)%4],b=new Lh(v,x,u),w=[zh(b,0)||v[0],zh(b,1)||v[1],zh(b,2)||v[2]],T=Xh(e.zoom);if(T>0){const n=function({x:e,y:t,z:i},n,r,o,s){const a=1/(1<<i);let l=e*a,c=l+a,h=t*a,u=h+a,d=0;const p=(l+c)/2-o;return p>.5?d=-1:p<-.5&&(d=1),l=((l+d)*n-(o*=n))*r+o,c=((c+d)*n-o)*r+o,h=(h*n-(s*=n))*r+s,u=(u*n-s)*r+s,[[l,u,0],[c,u,0],[c,h,0],[l,h,0]]}(i,t,e._pixelsPerMercatorPixel,m,g);for(let e=0;e<a.length;e++)Rh(a[e],n[e],T);const r=C([],n[y],n[(y+1)%4]);M(r,r,.5),Rh(w,r,T)}for(const e of a)S(h,h,e),I(c,c,e);return h[2]=Math.min(v[2],x[2]),S(h,h,w),I(c,c,w),new Zc(h,c)}function Fh({x:e,y:t,z:i},n=!1){const r=1/(1<<i),o=new Wl(ec(e*r),t===(1<<i)-1&&n?-90:tc((t+1)*r)),s=new Wl(ec((e+1)*r),0===t&&n?90:tc(t*r));return new ql(o,s)}function Nh(e,t=Ol){const i=Ce(e.getNorth()),n=Ce(e.getSouth()),r=Math.cos(i),o=Math.cos(n),s=Math.sin(i),a=Math.sin(n),l=e.getWest(),c=e.getEast();return[Ul(o,a,l,t),Ul(o,a,c,t),Ul(r,s,c,t),Ul(r,s,l,t)]}function Vh(e,t,i,n){const r=1<<i.z,o=(e/On+i.x)/r;return Hl(tc((t/On+i.y)/r),ec(o),n)}function jh({min:e,max:t}){return Bl/Math.max(t[0]-e[0],t[1]-e[1],t[2]-e[2])}const Uh=new Float64Array(16);function Hh(e){const t=jh(e),i=g(Uh,[t,t,t]);return u(i,i,z([],e.min))}function Gh(e){const t=(n=e.min,(i=Uh)[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=n[0],i[13]=n[1],i[14]=n[2],i[15]=1,i);var i,n;const r=1/jh(e);return d(t,t,[r,r,r])}function Zh(e){const t=On/(2*Math.PI);return e/(2*Math.PI)/t}function Wh(e,t){return On/(512*Math.pow(2,e))*jh(Oh(t))}function qh(e,t,i,n,r){const o=Zh(i),s=[e,t,-i/(2*Math.PI)],a=l(new Float64Array(16));return u(a,a,s),d(a,a,[o,o,o]),p(a,a,Ce(-r)),f(a,a,Ce(-n)),a}function Xh(e){return De(Rl,kl,e)}function $h(e,t){const i=Hl(t.lat,t.lng),n=function(e){const t=Hl(e._center.lat,e._center.lng);let i=k([],w(0,1,0),t);const n=_([],-e.angle,t);i=F(i,i,n),_(n,-e._pitch,i);const r=O([],t);return M(r,r,Mh(e.cameraToCenterDistance/e.pixelsPerMeter)),F(r,r,n),C([],t,r)}(e);return s=(r=T([],n,i))[0],a=r[1],l=r[2],c=(o=i)[0],h=o[1],u=o[2],p=(d=Math.sqrt(s*s+a*a+l*l)*Math.sqrt(c*c+h*h+u*u))&&R(r,o)/d,Math.acos(Math.min(Math.max(p,-1),1));var r,o,s,a,l,c,h,u,d,p}function Yh(e,t){return $h(e,t)>Math.PI/2*1.01}const Qh=Ce(85),Kh=Math.cos(Qh),Jh=Math.sin(Qh),eu=a(),tu=e=>{const t=[];return"map"===e.paint.get("circle-pitch-alignment")&&t.push("PITCH_WITH_MAP"),"map"===e.paint.get("circle-pitch-scale")&&t.push("SCALE_WITH_MAP"),t};function iu(e,t,i,n,r,o,s,a,l){if(o&&e.queryGeometry.isAboveHorizon)return!1;o&&(l*=e.pixelToTileUnitsFactor);const c=e.tileID.canonical,h=i.projection.upVectorScale(c,i.center.lat,i.worldSize).metersToTile;for(const u of t)for(const t of u){const u=t.add(a),d=r&&i.elevation?i.elevation.exaggeration()*r.getElevationAt(u.x,u.y,!0):0,p=i.projection.projectTilePoint(u.x,u.y,c);if(d>0){const e=i.projection.upVector(c,u.x,u.y);p.x+=e[0]*h*d,p.y+=e[1]*h*d,p.z+=e[2]*h*d}const f=o?u:nu(p.x,p.y,p.z,n),m=o?e.tilespaceRays.map(e=>su(e,d)):e.queryGeometry.screenGeometry,g=X([],[p.x,p.y,p.z,1],n);if(!s&&o?l*=g[3]/i.cameraToCenterDistance:s&&!o&&(l*=i.cameraToCenterDistance/g[3]),o){const e=tc((t.y/On+c.y)/(1<<c.z));l/=i.projection.pixelsPerMeter(e,1)/Jl(1,e)}if(Kc(m,f,l))return!0}return!1}function nu(e,t,i,n){const r=X([],[e,t,i,1],n);return new ve(r[0]/r[3],r[1]/r[3])}const ru=w(0,0,0),ou=w(0,0,1);function su(e,t){const i=v();return ru[2]=t,e.intersectsPlane(ru,ou,i),new ve(i[0],i[1])}class au extends Yc{}let lu,cu,hu,uu;function du(e,{width:t,height:i},n,r){if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==t*i*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(t*i*n);return e.width=t,e.height=i,e.data=r,e}function pu(e,t,i){const{width:n,height:r}=t;n===e.width&&r===e.height||(fu(e,t,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,n),height:Math.min(e.height,r)},i,null),e.width=n,e.height=r,e.data=t.data)}function fu(e,t,i,n,r,o,s,a){if(0===r.width||0===r.height)return t;if(r.width>e.width||r.height>e.height||i.x>e.width-r.width||i.y>e.height-r.height)throw new RangeError("out of range source coordinates for image copy");if(r.width>t.width||r.height>t.height||n.x>t.width-r.width||n.y>t.height-r.height)throw new RangeError("out of range destination coordinates for image copy");const l=e.data,c=t.data,h=4===o&&a;for(let a=0;a<r.height;a++){const u=((i.y+a)*e.width+i.x)*o,d=((n.y+a)*t.width+n.x)*o;if(h)for(let e=0;e<r.width;e++){const t=u+e*o+3,i=d+e*o;c[i+0]=255,c[i+1]=255,c[i+2]=255,c[i+3]=l[t]}else if(s)for(let e=0;e<r.width;e++){const t=u+e*o,i=d+e*o,n=new oi(l[t+0]/255,l[t+1]/255,l[t+2]/255,l[t+3]).toNonPremultipliedRenderColor(s).toArray();c[i+0]=n[0],c[i+1]=n[1],c[i+2]=n[2],c[i+3]=n[3]}else for(let e=0;e<r.width*o;e++)c[d+e]=l[u+e]}return t}Wo(au,"HeatmapBucket",{omit:["layers"]});class mu{constructor(e,t){du(this,e,1,t)}resize(e){pu(this,new mu(e),1)}clone(){return new mu({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,i,n,r){fu(e,t,i,n,r,1,null)}}class gu{constructor(e,t){du(this,e,4,t)}resize(e){pu(this,new gu(e),4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new gu({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,i,n,r,o,s){fu(e,t,i,n,r,4,o,s)}}class _u{constructor(e,t){this.width=e.width,this.height=e.height,this.data=t instanceof Uint8Array?new Float32Array(t.buffer):t}}function Au(e){const t={},i=e.resolution||256,n=e.clips?e.clips.length:1,r=e.image||new gu({width:i,height:n}),o=(i,n,o)=>{t[e.evaluationKey]=o;const s=e.expression.evaluate(t),a=s?s.toNonPremultipliedRenderColor(null):null;a&&(r.data[i+n+0]=Math.floor(255*a.r),r.data[i+n+1]=Math.floor(255*a.g),r.data[i+n+2]=Math.floor(255*a.b),r.data[i+n+3]=Math.floor(255*a.a))};if(e.clips)for(let t=0,r=0;t<n;++t,r+=4*i)for(let n=0,s=0;n<i;n++,s+=4){const a=n/(i-1),{start:l,end:c}=e.clips[t];o(r,s,l*(1-a)+c*a)}else for(let e=0,t=0;e<i;e++,t+=4)o(0,t,e/(i-1));return r}Wo(mu,"AlphaImage"),Wo(gu,"RGBAImage");const yu=ea([{name:"a_pos",components:2,type:"Int16"}],4),vu=ea([{name:"a_road_z_offset",components:1,type:"Float32"}],4),xu=ea([{name:"a_pos",components:2,type:"Int16"},{name:"a_height",components:1,type:"Float32"}],4),bu=ea([{name:"a_pos_normal_3",components:3,type:"Int16"}],4);function wu(e,t,i=2){const n=t&&t.length,r=n?t[0]*i:e.length;let o=Cu(e,0,r,i,!0);const s=[];if(!o||o.next===o.prev)return s;let a,l,c;if(n&&(o=function(e,t,i,n){const r=[];for(let i=0,o=t.length;i<o;i++){const s=Cu(e,t[i]*n,i<o-1?t[i+1]*n:e.length,n,!1);s===s.next&&(s.steiner=!0),r.push(Ru(s))}r.sort(Du);for(let e=0;e<r.length;e++)i=Lu(r[e],i);return i}(e,t,o,i)),e.length>80*i){a=1/0,l=1/0;let t=-1/0,n=-1/0;for(let o=i;o<r;o+=i){const i=e[o],r=e[o+1];i<a&&(a=i),r<l&&(l=r),i>t&&(t=i),r>n&&(n=r)}c=Math.max(t-a,n-l),c=0!==c?32767/c:0}return Eu(o,s,i,a,l,c,0),s}function Cu(e,t,i,n,r){let o;if(r===function(e,t,i,n){let r=0;for(let o=t,s=i-n;o<i;o+=n)r+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return r}(e,t,i,n)>0)for(let r=t;r<i;r+=n)o=Wu(r/n|0,e[r],e[r+1],o);else for(let r=i-n;r>=t;r-=n)o=Wu(r/n|0,e[r],e[r+1],o);return o&&Vu(o,o.next)&&(qu(o),o=o.next),o}function Tu(e,t){if(!e)return e;t||(t=e);let i,n=e;do{if(i=!1,n.steiner||!Vu(n,n.next)&&0!==Nu(n.prev,n,n.next))n=n.next;else{if(qu(n),n=t=n.prev,n===n.next)break;i=!0}}while(i||n!==t);return t}function Eu(e,t,i,n,r,o,s){if(!e)return;!s&&o&&function(e,t,i,n){let r=e;do{0===r.z&&(r.z=Ou(r.x,r.y,t,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,function(e){let t,i=1;do{let n,r=e;e=null;let o=null;for(t=0;r;){t++;let s=r,a=0;for(let e=0;e<i&&(a++,s=s.nextZ,s);e++);let l=i;for(;a>0||l>0&&s;)0!==a&&(0===l||!s||r.z<=s.z)?(n=r,r=r.nextZ,a--):(n=s,s=s.nextZ,l--),o?o.nextZ=n:e=n,n.prevZ=o,o=n;r=s}o.nextZ=null,i*=2}while(t>1)}(r)}(e,n,r,o);let a=e;for(;e.prev!==e.next;){const l=e.prev,c=e.next;if(o?Iu(e,n,r,o):Su(e))t.push(l.i,e.i,c.i),qu(e),e=c.next,a=c.next;else if((e=c)===a){s?1===s?Eu(e=Mu(Tu(e),t),t,i,n,r,o,2):2===s&&Pu(e,t,i,n,r,o):Eu(Tu(e),t,i,n,r,o,1);break}}}function Su(e){const t=e.prev,i=e,n=e.next;if(Nu(t,i,n)>=0)return!1;const r=t.x,o=i.x,s=n.x,a=t.y,l=i.y,c=n.y,h=Math.min(r,o,s),u=Math.min(a,l,c),d=Math.max(r,o,s),p=Math.max(a,l,c);let f=n.next;for(;f!==t;){if(f.x>=h&&f.x<=d&&f.y>=u&&f.y<=p&&Bu(r,a,o,l,s,c,f.x,f.y)&&Nu(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function Iu(e,t,i,n){const r=e.prev,o=e,s=e.next;if(Nu(r,o,s)>=0)return!1;const a=r.x,l=o.x,c=s.x,h=r.y,u=o.y,d=s.y,p=Math.min(a,l,c),f=Math.min(h,u,d),m=Math.max(a,l,c),g=Math.max(h,u,d),_=Ou(p,f,t,i,n),A=Ou(m,g,t,i,n);let y=e.prevZ,v=e.nextZ;for(;y&&y.z>=_&&v&&v.z<=A;){if(y.x>=p&&y.x<=m&&y.y>=f&&y.y<=g&&y!==r&&y!==s&&Bu(a,h,l,u,c,d,y.x,y.y)&&Nu(y.prev,y,y.next)>=0)return!1;if(y=y.prevZ,v.x>=p&&v.x<=m&&v.y>=f&&v.y<=g&&v!==r&&v!==s&&Bu(a,h,l,u,c,d,v.x,v.y)&&Nu(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;y&&y.z>=_;){if(y.x>=p&&y.x<=m&&y.y>=f&&y.y<=g&&y!==r&&y!==s&&Bu(a,h,l,u,c,d,y.x,y.y)&&Nu(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;v&&v.z<=A;){if(v.x>=p&&v.x<=m&&v.y>=f&&v.y<=g&&v!==r&&v!==s&&Bu(a,h,l,u,c,d,v.x,v.y)&&Nu(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function Mu(e,t){let i=e;do{const n=i.prev,r=i.next.next;!Vu(n,r)&&ju(n,i,i.next,r)&&Gu(n,r)&&Gu(r,n)&&(t.push(n.i,i.i,r.i),qu(i),qu(i.next),i=e=r),i=i.next}while(i!==e);return Tu(i)}function Pu(e,t,i,n,r,o){let s=e;do{let e=s.next.next;for(;e!==s.prev;){if(s.i!==e.i&&Fu(s,e)){let a=Zu(s,e);return s=Tu(s,s.next),a=Tu(a,a.next),Eu(s,t,i,n,r,o,0),void Eu(a,t,i,n,r,o,0)}e=e.next}s=s.next}while(s!==e)}function Du(e,t){let i=e.x-t.x;return 0===i&&(i=e.y-t.y,0===i)&&(i=(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)),i}function Lu(e,t){const i=function(e,t){let i=t;const n=e.x,r=e.y;let o,s=-1/0;if(Vu(e,i))return i;do{if(Vu(e,i.next))return i.next;if(r<=i.y&&r>=i.next.y&&i.next.y!==i.y){const e=i.x+(r-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(e<=n&&e>s&&(s=e,o=i.x<i.next.x?i:i.next,e===n))return o}i=i.next}while(i!==t);if(!o)return null;const a=o,l=o.x,c=o.y;let h=1/0;i=o;do{if(n>=i.x&&i.x>=l&&n!==i.x&&ku(r<c?n:s,r,l,c,r<c?s:n,r,i.x,i.y)){const t=Math.abs(r-i.y)/(n-i.x);Gu(i,e)&&(t<h||t===h&&(i.x>o.x||i.x===o.x&&zu(o,i)))&&(o=i,h=t)}i=i.next}while(i!==a);return o}(e,t);if(!i)return t;const n=Zu(i,e);return Tu(n,n.next),Tu(i,i.next)}function zu(e,t){return Nu(e.prev,e,t.prev)<0&&Nu(t.next,e,e.next)<0}function Ou(e,t,i,n,r){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Ru(e){let t=e,i=e;do{(t.x<i.x||t.x===i.x&&t.y<i.y)&&(i=t),t=t.next}while(t!==e);return i}function ku(e,t,i,n,r,o,s,a){return(r-s)*(t-a)>=(e-s)*(o-a)&&(e-s)*(n-a)>=(i-s)*(t-a)&&(i-s)*(o-a)>=(r-s)*(n-a)}function Bu(e,t,i,n,r,o,s,a){return!(e===s&&t===a)&&ku(e,t,i,n,r,o,s,a)}function Fu(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&ju(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(Gu(e,t)&&Gu(t,e)&&function(e,t){let i=e,n=!1;const r=(e.x+t.x)/2,o=(e.y+t.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&r<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==e);return n}(e,t)&&(Nu(e.prev,e,t.prev)||Nu(e,t.prev,t))||Vu(e,t)&&Nu(e.prev,e,e.next)>0&&Nu(t.prev,t,t.next)>0)}function Nu(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function Vu(e,t){return e.x===t.x&&e.y===t.y}function ju(e,t,i,n){const r=Hu(Nu(e,t,i)),o=Hu(Nu(e,t,n)),s=Hu(Nu(i,n,e)),a=Hu(Nu(i,n,t));return r!==o&&s!==a||!(0!==r||!Uu(e,i,t))||!(0!==o||!Uu(e,n,t))||!(0!==s||!Uu(i,e,n))||!(0!==a||!Uu(i,t,n))}function Uu(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function Hu(e){return e>0?1:e<0?-1:0}function Gu(e,t){return Nu(e.prev,e,e.next)<0?Nu(e,t,e.next)>=0&&Nu(e,e.prev,t)>=0:Nu(e,t,e.prev)<0||Nu(e,e.next,t)<0}function Zu(e,t){const i=Xu(e.i,e.x,e.y),n=Xu(t.i,t.x,t.y),r=e.next,o=t.prev;return e.next=t,t.prev=e,i.next=r,r.prev=i,n.next=i,i.prev=n,o.next=n,n.prev=o,n}function Wu(e,t,i,n){const r=Xu(e,t,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function qu(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Xu(e,t,i){return{i:e,x:t,y:i,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function $u(e,t){const i=e.length;if(i<=1)return[e];const n=[];let r,o;for(let t=0;t<i;t++){const i=We(e[t]);0!==i&&(e[t].area=Math.abs(i),void 0===o&&(o=i<0),o===i<0?(r&&n.push(r),r=[e[t]]):r.push(e[t]))}if(r&&n.push(r),t>1)for(let e=0;e<n.length;e++)n[e].length<=t||(tn(n[e],t,1,n[e].length-1,Yu),n[e]=n[e].slice(0,t));return n}function Yu(e,t){return t.area-e.area}function Qu(e,t,i=1){if(!e)return null;const n="string"==typeof e?ki.from(e).getPrimary():e.getPrimary(),r="string"==typeof e?null:e.getSecondary();for(const e of[n,r]){if(!e)continue;const n=e.id.toString();t.has(n)||t.set(n,[]),e.scaleSelf(i),t.get(n).push(e)}return{primary:n.toString(),secondary:r?r.toString():null}}function Ku(e,t,i,n){const r=n.patternDependencies;let o=!1;for(const n of t){const t=n.paint.get(`${e}-pattern`);t.isConstant()||(o=!0),Qu(t.constantOr(null),r,i)&&(o=!0)}return o}function Ju(e,t,i,n,r,o){const s=o.patternDependencies;for(const a of t){const t=a.paint.get(`${e}-pattern`).value;if("constant"!==t.kind){let e=t.evaluate({zoom:n},i,{},o.availableImages);e=e&&e.name?e.name:e;const l=Qu(e,s,r);if(!l)continue;const{primary:c,secondary:h}=l;c&&(i.patterns[a.id]=[c,h].filter(Boolean))}}return i}class ed{constructor(){this.polygons=new Map}add(e,...t){this.polygons.has(e)?this.polygons.get(e).push(...t):this.polygons.set(e,t)}merge(e){for(const[t,i]of e.polygons)this.add(t,...i)}}class td{constructor(){this.portals=[]}static evaluate(e){if(0===e.length)return new td;let t=[];for(const i of e)t.push(...i.portals);if(0===t.length)return new td;const i=(e,t)=>e<=0&&t<=0||e>=On&&t>=On;for(const e of t){const t=e.va,n=e.vb;(i(t.x,n.x)||i(t.y,n.y))&&(e.type="border")}const n=t.filter(e=>"unevaluated"!==e.type),r=t.filter(e=>"unevaluated"===e.type);if(0===r.length)return new td;r.sort((e,t)=>e.hash===t.hash?e.isTunnel===t.isTunnel?0:e.isTunnel?-1:1:e.hash<t.hash?1:-1),t=n.concat(r);let o=n.length,s=o,a=o;do{if(s++,s===t.length||t[o].hash!==t[s].hash){if(s-o==2){a<o&&(t[a]=t[o],t[o]=null);const e=t[a],i=t[s-1];e.type=e.isTunnel!==i.isTunnel?"tunnel":"polygon",e.connection={a:e.connection.a,b:i.connection.a},a++}o=s}}while(o!==t.length);return t.splice(a),t.sort((e,t)=>e.hash<t.hash?1:-1),{portals:t}}}Wo(td,"ElevationPortalGraph"),Wo(ed,"ElevationPolygons");class id{constructor(e,t,i){this.outPositions=e,this.outNormals=t,this.outIndices=i,this.vertexLookup=new Map,this.buffer=new ArrayBuffer(4),this.view=new DataView(this.buffer)}addVertex(e,t,i){let n=e[2];null!=i&&(n*=i);const r=this.getVec3Bits(e)<<96n|this.getVec3Bits(t),o=this.vertexLookup.get(r);if(null!=o)return o;const s=this.outPositions.length;this.vertexLookup.set(r,s);const a=Math.trunc(16384*t[0]),l=Math.trunc(16384*t[1]),c=Math.trunc(16384*t[2]);return this.outPositions.emplaceBack(e[0],e[1],n),this.outNormals.emplaceBack(a,l,c),s}addVertices(e,t,...i){const n=[];for(const r of i){const i=this.addVertex(r,e,t);n.push(i)}return n}addTriangles(e,t,i){if(t&&i){const n=1===i.length,r=w(0,0,0);for(let o=0;o<e.length;o+=3){const s=t[e[o+0]],a=t[e[o+1]],l=t[e[o+2]],c=n?i[0]:i[e[o+1]],h=n?i[0]:i[e[o+2]],u=this.addVertex(w(s.x,s.y,n?i[0]:i[e[o+0]]),r),d=this.addVertex(w(a.x,a.y,c),r),p=this.addVertex(w(l.x,l.y,h),r);this.outIndices.emplaceBack(u,d,p)}}else for(let t=0;t<e.length;t+=3)this.outIndices.emplaceBack(e[t+0],e[t+1],e[t+2])}addQuad(e,t){const i=this.addVertices(t,void 0,...e.map(e=>w(e.coord.x,e.coord.y,e.height))),[n,r,o,s]=i;this.addTriangles([n,r,o,o,s,n])}getVertexCount(){return this.outPositions.length}clearVertexLookup(){this.vertexLookup.clear()}getBits(e){return this.view.setFloat32(0,e),BigInt(this.view.getUint32(0))}getVec3Bits(e){return this.getBits(e[0])<<64n|this.getBits(e[1])<<32n|this.getBits(e[2])}}class nd{constructor(e,t,i,n){this.unevaluatedPortals=new td,this.portalPolygons=new ed,this.bridgeFeatureSections=[],this.tunnelFeatureSections=[],this.vertexHashLookup=new Map,this.unevalVertices=[],this.unevalHeights=[],this.unevalTriangles=[],this.unevalTunnelTriangles=[],this.unevalEdges=[],this.vertexPositions=new sa,this.vertexNormals=new aa,this.indexArray=new wa,this.tileToMeters=ac(e),this.bridgeProgramConfigurations=new Il(t,{zoom:i,lut:n},e=>"fill-tunnel-structure-color"!==e),this.tunnelProgramConfigurations=new Il(t,{zoom:i,lut:n},e=>"fill-bridge-guard-rail-color"!==e)}addVertices(e,t){const i=this.unevalVertices.length;for(let i=0;i<e.length;i++)this.unevalVertices.push(e[i]),this.unevalHeights.push(t[i]);return i}addTriangles(e,t,i){const n=i?this.unevalTunnelTriangles:this.unevalTriangles;for(const i of e)n.push(i+t)}addRenderableRing(e,t,i,n,r,o){const s=[new ve(r.min.x,r.min.y),new ve(r.max.x,r.min.y),new ve(r.max.x,r.max.y),new ve(r.min.x,r.max.y)];for(let a=0;a<i-1;a++){const i=t+a,l=i+1,c=this.unevalVertices[i],h=this.unevalVertices[l];if(!(c.x>=r.min.x&&c.x<=r.max.x&&c.y>=r.min.y&&c.y<=r.max.y||h.x>=r.min.x&&h.x<=r.max.x&&h.y>=r.min.y&&h.y<=r.max.y||hh(c,h,s)))continue;if(this.isOnBorder(c.x,h.x)||this.isOnBorder(c.y,h.y))continue;const u=nd.computeEdgeHash(this.unevalVertices[i],this.unevalVertices[l]);let d,p=this.vertexHashLookup.get(nd.computePosHash(c));null!=p?d=p.next:(p=this.vertexHashLookup.get(nd.computePosHash(h)),d=null!=p?p.prev:u),this.unevalEdges.push({polygonIdx:e,a:i,b:l,hash:u,portalHash:d,isTunnel:n,type:"unevaluated",featureInfo:o})}}addPortalCandidates(e,t,i,n,r){if(0===t.length)return;this.portalPolygons.add(e,{geometry:t,zLevel:r});const o=t[0];this.vertexHashLookup.clear();let s=nd.computeEdgeHash(o[o.length-2],o[o.length-1]);for(let t=0;t<o.length-1;t++){const r=o[t+0],a=o[t+1],l=ae(a.x-r.x,a.y-r.y),c=ue(l);if(0===c)continue;let h="unevaluated";const u=n.pointElevation(r),d=n.pointElevation(a);Math.abs(u)<.01&&Math.abs(d)<.01?h="entrance":(this.isOnBorder(r.x,a.x)||this.isOnBorder(r.y,a.y))&&(h="border");const p=nd.computeEdgeHash(r,a);this.unevaluatedPortals.portals.push({connection:{a:e,b:void 0},va:r,vb:a,vab:l,length:c,hash:p,isTunnel:i,type:h});const f=nd.computePosHash(r);this.vertexHashLookup.set(f,{prev:s,next:p}),s=p}}construct(e){if(0===this.unevalVertices.length)return;const t=()=>({vertexOffset:0,primitiveOffset:this.indexArray.length}),i=e=>{e.primitiveLength=this.indexArray.length-e.primitiveOffset},n=new id(this.vertexPositions,this.vertexNormals,this.indexArray);this.prepareEdges(e.portals,this.unevalEdges);const r=t(),o=t(),s=t(),a=(e,t)=>{e.sort((e,i)=>e.type===t&&i.type!==t?-1:e.type!==t&&i.type===t?1:0);const i=e.findIndex(e=>e.type!==t);return i>=0?i:e.length};let l=0;this.unevalEdges.length>0&&(l=a(this.unevalEdges,"none"),this.constructBridgeStructures(n,this.unevalVertices,this.unevalHeights,this.unevalEdges,{min:0,max:l},this.tileToMeters)),i(s);const c=t(),h=t();if(this.unevalEdges.length>0){const e=this.unevalEdges.splice(l),t=a(e,"tunnel")+l;this.unevalEdges.push(...e),this.constructTunnelStructures(n,this.unevalVertices,this.unevalHeights,this.unevalEdges,{min:0,max:l},{min:l,max:t})}i(c),n.addTriangles(this.unevalTriangles,this.unevalVertices,this.unevalHeights),i(h),n.addTriangles(this.unevalTunnelTriangles,this.unevalVertices,this.unevalHeights),i(o),n.addTriangles(this.unevalTunnelTriangles,this.unevalVertices,[-.1]),i(r),this.maskSegments=el.simpleSegment(0,h.primitiveOffset,0,h.primitiveLength),this.depthSegments=el.simpleSegment(0,o.primitiveOffset,0,o.primitiveLength),this.renderableBridgeSegments=el.simpleSegment(0,s.primitiveOffset,0,s.primitiveLength),this.renderableTunnelSegments=el.simpleSegment(0,c.primitiveOffset,0,c.primitiveLength),this.shadowCasterSegments=el.simpleSegment(0,r.primitiveOffset,0,r.primitiveLength)}update(e,t,i,n,r,o,s,a){this.bridgeProgramConfigurations.updatePaintArrays(e,t,r,i,n,o,s,a),this.tunnelProgramConfigurations.updatePaintArrays(e,t,r,i,n,o,s,a)}upload(e){this.vertexBuffer||0===this.vertexPositions.length||0===this.vertexNormals.length||0===this.indexArray.length||(this.vertexBuffer=e.createVertexBuffer(this.vertexPositions,xu.members),this.vertexBufferNormal=e.createVertexBuffer(this.vertexNormals,bu.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.bridgeProgramConfigurations.upload(e),this.tunnelProgramConfigurations.upload(e))}destroy(){this.vertexBuffer&&(this.vertexBuffer.destroy(),this.vertexBufferNormal.destroy(),this.indexBuffer.destroy()),this.maskSegments&&(this.maskSegments.destroy(),this.depthSegments.destroy(),this.renderableBridgeSegments.destroy(),this.renderableTunnelSegments.destroy(),this.shadowCasterSegments.destroy()),this.bridgeProgramConfigurations.destroy(),this.tunnelProgramConfigurations.destroy()}populatePaintArrays(e,t,i,n,r){const o=(o,s)=>{for(let a=0;a<s.length-1;a++){const l=s[a].featureIndex,c=s[a+1].vertexStart,h=e.feature(l);o.populatePaintArrays(c,h,l,{},i,t,n,void 0,r)}};o(this.bridgeProgramConfigurations,this.bridgeFeatureSections),o(this.tunnelProgramConfigurations,this.tunnelFeatureSections)}computeVertexConnections(e,t,i,n,r){const o=new Map;for(let s=n;s<r;s++){const n=i[s],r=n.a,a=n.b,l=nd.computePosHash(e[r]),c=nd.computePosHash(e[a]);o.has(l)||o.set(l,{}),o.has(c)||o.set(c,{});const h=o.get(l),u=o.get(c);t[r]<=0&&t[a]<=0||(h.to=a,u.from=r)}return o}constructBridgeStructures(e,t,i,n,r,o){e.clearVertexLookup();const s=this.computeVertexConnections(t,i,n,r.min,r.max),a=1/o,l=.5*a,c=e=>w(t[e].x,t[e].y,i[e]*a),h=e=>{const i=s.get(nd.computePosHash(t[e])),n=i.from,r=i.to;if(!n||!r)return;const o=c(n),a=c(e),l=c(r),h=w(0,0,0);if(!j(o,a)){const e=U(v(),a,o);C(h,h,O(e,e))}if(!j(l,a)){const e=U(v(),l,a);C(h,h,O(e,e))}const u=G(h);return u>0?M(h,h,1/u):void 0};let u=Number.POSITIVE_INFINITY;this.sortSubarray(n,r.min,r.max,(e,t)=>e.featureInfo.featureIndex-t.featureInfo.featureIndex);for(let s=r.min;s<r.max;s++){const r=n[s];if(!r.featureInfo.guardRailEnabled)continue;const c=this.prepareEdgePoints(t,i,r,(e,t)=>e>t);if(null==c)continue;const d=c[0],p=c[1],f=w(d.coord.x,d.coord.y,a*d.height),m=w(p.coord.x,p.coord.y,a*p.height);if(j(f,m))continue;const g=U(v(),m,f);O(g,g);const _=e=>O(e,e),A=h(r.a)||g,y=h(r.b)||g,x=_(w(A[1],-A[0],0)),b=_(w(y[1],-y[0],0)),T=_(k(v(),x,A)),E=_(k(v(),b,y)),S=v(),I=[C(v(),f,M(S,U(S,x,T),l)),C(v(),f,M(S,C(S,x,T),l)),C(v(),f,M(S,T,l)),f],P=[C(v(),m,M(S,U(S,b,E),l)),C(v(),m,M(S,C(S,b,E),l)),C(v(),m,M(S,E,l)),m];u=this.addFeatureSection(r.featureInfo.featureIndex,u,this.bridgeFeatureSections,e);const[D,L]=e.addVertices(x,o,I[0],I[1]),[R,B]=e.addVertices(b,o,P[0],P[1]);e.addTriangles([D,L,R,L,B,R]);const[F,N]=e.addVertices(T,o,I[1],I[2]),[V,H]=e.addVertices(E,o,P[1],P[2]);e.addTriangles([F,N,V,N,H,V]);const[G,Z]=e.addVertices(z(x,x),o,I[2],I[3]),[W,q]=e.addVertices(z(b,b),o,P[2],P[3]);e.addTriangles([G,Z,W,Z,q,W])}this.bridgeFeatureSections.push({featureIndex:Number.POSITIVE_INFINITY,vertexStart:e.getVertexCount()})}constructTunnelStructures(e,t,i,n,r,o){e.clearVertexLookup();let s=Number.POSITIVE_INFINITY;const a=(e,t)=>e.featureInfo.featureIndex-t.featureInfo.featureIndex;this.sortSubarray(n,r.min,r.max,a),this.sortSubarray(n,o.min,o.max,a);const l=e=>O(e,e);for(let o=r.min;o<r.max;o++){const r=this.prepareEdgePoints(t,i,n[o],(e,t)=>e<t);if(null==r)continue;const[a,c]=r,h=l(w(-(c.coord.y-a.coord.y),c.coord.x-a.coord.x,0));s=this.addFeatureSection(n[o].featureInfo.featureIndex,s,this.tunnelFeatureSections,e),e.addQuad([a,c,{coord:c.coord,height:n[o].isTunnel?-.1:0},{coord:a.coord,height:n[o].isTunnel?-.1:0}],h)}for(let r=o.min;r<o.max;r++){const o=n[r];o.isTunnel&&([o.a,o.b]=[o.b,o.a]);const a=t[o.a],c=t[o.b],h=l(w(-(c.y-a.y),c.x-a.x,0));s=this.addFeatureSection(o.featureInfo.featureIndex,s,this.tunnelFeatureSections,e),e.addQuad([{coord:c,height:0},{coord:a,height:0},{coord:a,height:i[o.a]+4},{coord:c,height:i[o.b]+4}],h),e.addQuad([{coord:a,height:0},{coord:c,height:0},{coord:c,height:i[o.b]+4},{coord:a,height:i[o.a]+4}],h)}this.tunnelFeatureSections.push({featureIndex:Number.POSITIVE_INFINITY,vertexStart:e.getVertexCount()})}prepareEdgePoints(e,t,i,n){let r=t[i.a],o=t[i.b];const s=n(r,0),a=n(o,0);if(s&&a)return[{coord:e[i.a],height:r},{coord:e[i.b],height:o}];if(!s&&!a)return;const l=e[i.a].clone(),c=e[i.b].clone();if(s){if(!a){const e=o/(o-r);c.x=ci(c.x,l.x,e),c.y=ci(c.y,l.y,e),o=ci(o,r,e)}}else{const e=r/(r-o);l.x=ci(l.x,c.x,e),l.y=ci(l.y,c.y,e),r=ci(r,o,e)}return[{coord:l,height:r},{coord:c,height:o}]}prepareEdges(e,t){if(0===t.length)return;t.sort((e,t)=>e.hash===t.hash?t.polygonIdx-e.polygonIdx:t.hash>e.hash?1:-1);let i=0,n=0,r=0,o=t[i].polygonIdx;do{n++,(n===t.length||t[i].hash!==t[n].hash)&&((1==n-i||t[n-1].polygonIdx!==o)&&(r<i&&(t[r]=t[i],t[i]=null),t[r].type="none",r++),i=n,i!==t.length&&(o=t[i].polygonIdx))}while(i!==t.length);if(t.splice(r),0!==t.length&&0!==e.length){t.sort((e,t)=>e.portalHash<t.portalHash?1:-1);let i=0,n=0;for(;i!==t.length&&n!==e.length;){const r=t[i],o=e[n];r.portalHash>o.hash?i++:o.hash>r.portalHash?n++:(r.type=o.type,i++)}}}isOnBorder(e,t){return e<=0&&t<=0||e>=On&&t>=On}addFeatureSection(e,t,i,n){return e!==t&&(t=e,i.push({featureIndex:e,vertexStart:n.getVertexCount()}),n.clearVertexLookup()),t}sortSubarray(e,t,i,n){const r=e.slice(t,i);r.sort(n),e.splice(t,r.length,...r)}static computeEdgeHash(e,t){return(e.y===t.y&&e.x>t.x||e.y>t.y)&&([e,t]=[t,e]),BigInt(nd.computePosHash(e))<<32n|BigInt(nd.computePosHash(t))}static computePosHash(e){return((65535&e.x)<<16|65535&e.y)>>>0}}var rd,od={exports:{}},sd=(rd||(rd=1,function(e,t){!function(e){function t(e,t){return e>t?1:e<t?-1:0}var i=function(e,i){void 0===e&&(e=t),void 0===i&&(i=!1),this._compare=e,this._root=null,this._size=0,this._noDuplicates=!!i},n={size:{configurable:!0}};function r(e,t,i,n,o){var s=o-n;if(s>0){var a=n+Math.floor(s/2),l={key:t[a],data:i[a],parent:e};return l.left=r(l,t,i,n,a),l.right=r(l,t,i,a+1,o),l}return null}function o(e,t,i,n,r){if(!(i>=n)){for(var s=e[i+n>>1],a=i-1,l=n+1;;){do{a++}while(r(e[a],s)<0);do{l--}while(r(e[l],s)>0);if(a>=l)break;var c=e[a];e[a]=e[l],e[l]=c,c=t[a],t[a]=t[l],t[l]=c}o(e,t,i,l,r),o(e,t,l+1,n,r)}}i.prototype.rotateLeft=function(e){var t=e.right;t&&(e.right=t.left,t.left&&(t.left.parent=e),t.parent=e.parent),e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.left=e),e.parent=t},i.prototype.rotateRight=function(e){var t=e.left;t&&(e.left=t.right,t.right&&(t.right.parent=e),t.parent=e.parent),e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.right=e),e.parent=t},i.prototype._splay=function(e){for(;e.parent;){var t=e.parent;t.parent?t.left===e&&t.parent.left===t?(this.rotateRight(t.parent),this.rotateRight(t)):t.right===e&&t.parent.right===t?(this.rotateLeft(t.parent),this.rotateLeft(t)):t.left===e&&t.parent.right===t?(this.rotateRight(t),this.rotateLeft(t)):(this.rotateLeft(t),this.rotateRight(t)):t.left===e?this.rotateRight(t):this.rotateLeft(t)}},i.prototype.splay=function(e){for(var t,i,n,r,o;e.parent;)(i=(t=e.parent).parent)&&i.parent?((n=i.parent).left===i?n.left=e:n.right=e,e.parent=n):(e.parent=null,this._root=e),r=e.left,o=e.right,e===t.left?(i&&(i.left===t?(t.right?(i.left=t.right,i.left.parent=i):i.left=null,t.right=i,i.parent=t):(r?(i.right=r,r.parent=i):i.right=null,e.left=i,i.parent=e)),o?(t.left=o,o.parent=t):t.left=null,e.right=t,t.parent=e):(i&&(i.right===t?(t.left?(i.right=t.left,i.right.parent=i):i.right=null,t.left=i,i.parent=t):(o?(i.left=o,o.parent=i):i.left=null,e.right=i,i.parent=e)),r?(t.right=r,r.parent=t):t.right=null,e.left=t,t.parent=e)},i.prototype.replace=function(e,t){e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.parent=e.parent)},i.prototype.minNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.left;)e=e.left;return e},i.prototype.maxNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.right;)e=e.right;return e},i.prototype.insert=function(e,t){var i=this._root,n=null,r=this._compare;if(this._noDuplicates)for(;i;){if(n=i,0===r(i.key,e))return;i=r(i.key,e)<0?i.right:i.left}else for(;i;)n=i,i=r(i.key,e)<0?i.right:i.left;return i={key:e,data:t,left:null,right:null,parent:n},n?r(n.key,i.key)<0?n.right=i:n.left=i:this._root=i,this.splay(i),this._size++,i},i.prototype.find=function(e){for(var t=this._root,i=this._compare;t;){var n=i(t.key,e);if(n<0)t=t.right;else{if(!(n>0))return t;t=t.left}}return null},i.prototype.contains=function(e){for(var t=this._root,i=this._compare;t;){var n=i(e,t.key);if(0===n)return!0;t=n<0?t.left:t.right}return!1},i.prototype.remove=function(e){var t=this.find(e);if(!t)return!1;if(this.splay(t),t.left)if(t.right){var i=this.minNode(t.right);i.parent!==t&&(this.replace(i,i.right),i.right=t.right,i.right.parent=i),this.replace(t,i),i.left=t.left,i.left.parent=i}else this.replace(t,t.left);else this.replace(t,t.right);return this._size--,!0},i.prototype.removeNode=function(e){if(!e)return!1;if(this.splay(e),e.left)if(e.right){var t=this.minNode(e.right);t.parent!==e&&(this.replace(t,t.right),t.right=e.right,t.right.parent=t),this.replace(e,t),t.left=e.left,t.left.parent=t}else this.replace(e,e.left);else this.replace(e,e.right);return this._size--,!0},i.prototype.erase=function(e){var t=this.find(e);if(t){this.splay(t);var i=t.left,n=t.right,r=null;i&&(i.parent=null,r=this.maxNode(i),this.splay(r),this._root=r),n&&(i?r.right=n:this._root=n,n.parent=r),this._size--}},i.prototype.pop=function(){var e=this._root,t=null;if(e){for(;e.left;)e=e.left;t={key:e.key,data:e.data},this.remove(e.key)}return t},i.prototype.next=function(e){var t=e;if(t)if(t.right)for(t=t.right;t&&t.left;)t=t.left;else for(t=e.parent;t&&t.right===e;)e=t,t=t.parent;return t},i.prototype.prev=function(e){var t=e;if(t)if(t.left)for(t=t.left;t&&t.right;)t=t.right;else for(t=e.parent;t&&t.left===e;)e=t,t=t.parent;return t},i.prototype.forEach=function(e){for(var t=this._root,i=[],n=!1,r=0;!n;)t?(i.push(t),t=t.left):i.length>0?(e(t=i.pop(),r++),t=t.right):n=!0;return this},i.prototype.range=function(e,t,i,n){for(var r=[],o=this._compare,s=this._root;0!==r.length||s;)if(s)r.push(s),s=s.left;else{if(o((s=r.pop()).key,t)>0)break;if(o(s.key,e)>=0&&i.call(n,s))return this;s=s.right}return this},i.prototype.keys=function(){for(var e=this._root,t=[],i=[],n=!1;!n;)e?(t.push(e),e=e.left):t.length>0?(e=t.pop(),i.push(e.key),e=e.right):n=!0;return i},i.prototype.values=function(){for(var e=this._root,t=[],i=[],n=!1;!n;)e?(t.push(e),e=e.left):t.length>0?(e=t.pop(),i.push(e.data),e=e.right):n=!0;return i},i.prototype.at=function(e){for(var t=this._root,i=[],n=!1,r=0;!n;)if(t)i.push(t),t=t.left;else if(i.length>0){if(t=i.pop(),r===e)return t;r++,t=t.right}else n=!0;return null},i.prototype.load=function(e,t,i){if(void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===i&&(i=!1),0!==this._size)throw new Error("bulk-load: tree is not empty");var n=e.length;return i&&o(e,t,0,n-1,this._compare),this._root=r(null,e,t,0,n),this._size=n,this},i.prototype.min=function(){var e=this.minNode(this._root);return e?e.key:null},i.prototype.max=function(){var e=this.maxNode(this._root);return e?e.key:null},i.prototype.isEmpty=function(){return null===this._root},n.size.get=function(){return this._size},i.createTree=function(e,t,n,r,o){return new i(n,o).load(e,t,r)},Object.defineProperties(i.prototype,n);var s=0,a=1,l=2,c=3,h=0,u=1,d=2,p=3;function f(e,t,i){null===t?(e.inOut=!1,e.otherInOut=!0):(e.isSubject===t.isSubject?(e.inOut=!t.inOut,e.otherInOut=t.otherInOut):(e.inOut=!t.otherInOut,e.otherInOut=t.isVertical()?!t.inOut:t.inOut),t&&(e.prevInResult=!m(t,i)||t.isVertical()?t.prevInResult:t));var n=m(e,i);e.resultTransition=n?function(e,t){var i,n=!e.inOut,r=!e.otherInOut;switch(t){case h:i=n&&r;break;case u:i=n||r;break;case p:i=n^r;break;case d:i=e.isSubject?n&&!r:r&&!n}return i?1:-1}(e,i):0}function m(e,t){switch(e.type){case s:switch(t){case h:return!e.otherInOut;case u:return e.otherInOut;case d:return e.isSubject&&e.otherInOut||!e.isSubject&&!e.otherInOut;case p:return!0}break;case l:return t===h||t===u;case c:return t===d;case a:return!1}return!1}var g=function(e,t,i,n,r){this.left=t,this.point=e,this.otherEvent=i,this.isSubject=n,this.type=r||s,this.inOut=!1,this.otherInOut=!1,this.prevInResult=null,this.resultTransition=0,this.otherPos=-1,this.outputContourId=-1,this.isExteriorRing=!0},_={inResult:{configurable:!0}};function A(e,t){return e[0]===t[0]&&e[1]===t[1]}g.prototype.isBelow=function(e){var t=this.point,i=this.otherEvent.point;return this.left?(t[0]-e[0])*(i[1]-e[1])-(i[0]-e[0])*(t[1]-e[1])>0:(i[0]-e[0])*(t[1]-e[1])-(t[0]-e[0])*(i[1]-e[1])>0},g.prototype.isAbove=function(e){return!this.isBelow(e)},g.prototype.isVertical=function(){return this.point[0]===this.otherEvent.point[0]},_.inResult.get=function(){return 0!==this.resultTransition},g.prototype.clone=function(){var e=new g(this.point,this.left,this.otherEvent,this.isSubject,this.type);return e.contourId=this.contourId,e.resultTransition=this.resultTransition,e.prevInResult=this.prevInResult,e.isExteriorRing=this.isExteriorRing,e.inOut=this.inOut,e.otherInOut=this.otherInOut,e},Object.defineProperties(g.prototype,_);var y=11102230246251565e-32,v=134217729,x=(3+8*y)*y;function b(e,t,i,n,r){var o,s,a,l,c=t[0],h=n[0],u=0,d=0;h>c==h>-c?(o=c,c=t[++u]):(o=h,h=n[++d]);var p=0;if(u<e&&d<i)for(h>c==h>-c?(a=o-((s=c+o)-c),c=t[++u]):(a=o-((s=h+o)-h),h=n[++d]),o=s,0!==a&&(r[p++]=a);u<e&&d<i;)h>c==h>-c?(a=o-((s=o+c)-(l=s-o))+(c-l),c=t[++u]):(a=o-((s=o+h)-(l=s-o))+(h-l),h=n[++d]),o=s,0!==a&&(r[p++]=a);for(;u<e;)a=o-((s=o+c)-(l=s-o))+(c-l),c=t[++u],o=s,0!==a&&(r[p++]=a);for(;d<i;)a=o-((s=o+h)-(l=s-o))+(h-l),h=n[++d],o=s,0!==a&&(r[p++]=a);return 0===o&&0!==p||(r[p++]=o),p}function w(e){return new Float64Array(e)}var C=33306690738754716e-32,T=22204460492503146e-32,E=11093356479670487e-47,S=w(4),I=w(8),M=w(12),P=w(16),D=w(4);function L(e,t,i){var n=function(e,t,i,n,r,o){var s=(t-o)*(i-r),a=(e-r)*(n-o),l=s-a;if(0===s||0===a||s>0!=a>0)return l;var c=Math.abs(s+a);return Math.abs(l)>=C*c?l:-function(e,t,i,n,r,o,s){var a,l,c,h,u,d,p,f,m,g,_,A,y,w,C,L,z,O,R=e-r,k=i-r,B=t-o,F=n-o;S[0]=(C=(f=R-(p=(d=v*R)-(d-R)))*(g=F-(m=(d=v*F)-(d-F)))-((w=R*F)-p*m-f*m-p*g))-((_=C-(z=(f=B-(p=(d=v*B)-(d-B)))*(g=k-(m=(d=v*k)-(d-k)))-((L=B*k)-p*m-f*m-p*g)))+(u=C-_))+(u-z),S[1]=(y=w-((A=w+_)-(u=A-w))+(_-u))-((_=y-L)+(u=y-_))+(u-L),S[2]=A-((O=A+_)-(u=O-A))+(_-u),S[3]=O;var N=function(e,t){for(var i=t[0],n=1;n<4;n++)i+=t[n];return i}(0,S),V=T*s;if(N>=V||-N>=V)return N;if(a=e-(R+(u=e-R))+(u-r),c=i-(k+(u=i-k))+(u-r),l=t-(B+(u=t-B))+(u-o),h=n-(F+(u=n-F))+(u-o),0===a&&0===l&&0===c&&0===h)return N;if(V=E*s+x*Math.abs(N),(N+=R*h+F*a-(B*c+k*l))>=V||-N>=V)return N;D[0]=(C=(f=a-(p=(d=v*a)-(d-a)))*(g=F-(m=(d=v*F)-(d-F)))-((w=a*F)-p*m-f*m-p*g))-((_=C-(z=(f=l-(p=(d=v*l)-(d-l)))*(g=k-(m=(d=v*k)-(d-k)))-((L=l*k)-p*m-f*m-p*g)))+(u=C-_))+(u-z),D[1]=(y=w-((A=w+_)-(u=A-w))+(_-u))-((_=y-L)+(u=y-_))+(u-L),D[2]=A-((O=A+_)-(u=O-A))+(_-u),D[3]=O;var j=b(4,S,4,D,I);D[0]=(C=(f=R-(p=(d=v*R)-(d-R)))*(g=h-(m=(d=v*h)-(d-h)))-((w=R*h)-p*m-f*m-p*g))-((_=C-(z=(f=B-(p=(d=v*B)-(d-B)))*(g=c-(m=(d=v*c)-(d-c)))-((L=B*c)-p*m-f*m-p*g)))+(u=C-_))+(u-z),D[1]=(y=w-((A=w+_)-(u=A-w))+(_-u))-((_=y-L)+(u=y-_))+(u-L),D[2]=A-((O=A+_)-(u=O-A))+(_-u),D[3]=O;var U=b(j,I,4,D,M);D[0]=(C=(f=a-(p=(d=v*a)-(d-a)))*(g=h-(m=(d=v*h)-(d-h)))-((w=a*h)-p*m-f*m-p*g))-((_=C-(z=(f=l-(p=(d=v*l)-(d-l)))*(g=c-(m=(d=v*c)-(d-c)))-((L=l*c)-p*m-f*m-p*g)))+(u=C-_))+(u-z),D[1]=(y=w-((A=w+_)-(u=A-w))+(_-u))-((_=y-L)+(u=y-_))+(u-L),D[2]=A-((O=A+_)-(u=O-A))+(_-u),D[3]=O;var H=b(U,M,4,D,P);return P[H-1]}(e,t,i,n,r,o,c)}(e[0],e[1],t[0],t[1],i[0],i[1]);return n>0?-1:n<0?1:0}function z(e,t){var i=e.point,n=t.point;return i[0]>n[0]?1:i[0]<n[0]?-1:i[1]!==n[1]?i[1]>n[1]?1:-1:function(e,t,i){return e.left!==t.left?e.left?1:-1:0!==L(i,e.otherEvent.point,t.otherEvent.point)?e.isBelow(t.otherEvent.point)?-1:1:!e.isSubject&&t.isSubject?1:-1}(e,t,i)}function O(e,t,i){var n=new g(t,!1,e,e.isSubject),r=new g(t,!0,e.otherEvent,e.isSubject);return A(e.point,e.otherEvent.point)&&console.warn("what is that, a collapsed segment?",e),n.contourId=r.contourId=e.contourId,z(r,e.otherEvent)>0&&(e.otherEvent.left=!0,r.left=!1),e.otherEvent.otherEvent=r,e.otherEvent=n,i.push(r),i.push(n),i}function R(e,t){return e[0]*t[1]-e[1]*t[0]}function k(e,t){return e[0]*t[0]+e[1]*t[1]}function B(e,t,i){var n=function(e,t,i,n){var r=[t[0]-e[0],t[1]-e[1]],o=[n[0]-i[0],n[1]-i[1]];function s(e,t,i){return[e[0]+t*i[0],e[1]+t*i[1]]}var a=[i[0]-e[0],i[1]-e[1]],l=R(r,o),c=l*l,h=k(r,r);if(c>0){var u=R(a,o)/l;if(u<0||u>1)return null;var d=R(a,r)/l;return d<0||d>1?null:0===u||1===u?[s(e,u,r)]:0===d||1===d?[s(i,d,o)]:[s(e,u,r)]}if((c=(l=R(a,r))*l)>0)return null;var p=k(r,a)/h,f=p+k(r,o)/h,m=Math.min(p,f),g=Math.max(p,f);return m<=1&&g>=0?1===m?[s(e,m>0?m:0,r)]:0===g?[s(e,g<1?g:1,r)]:[s(e,m>0?m:0,r),s(e,g<1?g:1,r)]:null}(e.point,e.otherEvent.point,t.point,t.otherEvent.point),r=n?n.length:0;if(0===r)return 0;if(1===r&&(A(e.point,t.point)||A(e.otherEvent.point,t.otherEvent.point)))return 0;if(2===r&&e.isSubject===t.isSubject)return 0;if(1===r)return A(e.point,n[0])||A(e.otherEvent.point,n[0])||O(e,n[0],i),A(t.point,n[0])||A(t.otherEvent.point,n[0])||O(t,n[0],i),1;var o=[],s=!1,h=!1;return A(e.point,t.point)?s=!0:1===z(e,t)?o.push(t,e):o.push(e,t),A(e.otherEvent.point,t.otherEvent.point)?h=!0:1===z(e.otherEvent,t.otherEvent)?o.push(t.otherEvent,e.otherEvent):o.push(e.otherEvent,t.otherEvent),s&&h||s?(t.type=a,e.type=t.inOut===e.inOut?l:c,s&&!h&&O(o[1].otherEvent,o[0].point,i),2):h?(O(o[0],o[1].point,i),3):o[0]!==o[3].otherEvent?(O(o[0],o[1].point,i),O(o[1],o[2].point,i),3):(O(o[0],o[1].point,i),O(o[3].otherEvent,o[2].point,i),3)}function F(e,t){if(e===t)return 0;if(0!==L(e.point,e.otherEvent.point,t.point)||0!==L(e.point,e.otherEvent.point,t.otherEvent.point))return A(e.point,t.point)?e.isBelow(t.otherEvent.point)?-1:1:e.point[0]===t.point[0]?e.point[1]<t.point[1]?-1:1:1===z(e,t)?t.isAbove(e.point)?-1:1:e.isBelow(t.point)?-1:1;if(e.isSubject!==t.isSubject)return e.isSubject?-1:1;var i=e.point,n=t.point;return i[0]===n[0]&&i[1]===n[1]?(i=e.otherEvent.point)[0]===(n=t.otherEvent.point)[0]&&i[1]===n[1]?0:e.contourId>t.contourId?1:-1:1===z(e,t)?1:-1}var N=function(){this.points=[],this.holeIds=[],this.holeOf=null,this.depth=null};function V(e,t,i,n){var r,o=e+1,s=t[e].point,a=t.length;for(o<a&&(r=t[o].point);o<a&&r[0]===s[0]&&r[1]===s[1];){if(!i[o])return o;++o<a&&(r=t[o].point)}for(o=e-1;i[o]&&o>n;)o--;return o}N.prototype.isExterior=function(){return null==this.holeOf};var j=H,U=H;function H(e,t){if(!(this instanceof H))return new H(e,t);if(this.data=e||[],this.length=this.data.length,this.compare=t||G,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}function G(e,t){return e<t?-1:e>t?1:0}H.prototype={push:function(e){this.data.push(e),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var e=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),e}},peek:function(){return this.data[0]},_up:function(e){for(var t=this.data,i=this.compare,n=t[e];e>0;){var r=e-1>>1,o=t[r];if(i(n,o)>=0)break;t[e]=o,e=r}t[e]=n},_down:function(e){for(var t=this.data,i=this.compare,n=this.length>>1,r=t[e];e<n;){var o=1+(e<<1),s=o+1,a=t[o];if(s<this.length&&i(t[s],a)<0&&(o=s,a=t[s]),i(a,r)>=0)break;t[e]=a,e=o}t[e]=r}},j.default=U;var Z=Math.max,W=Math.min,q=0;function X(e,t,i,n,r,o){var s,a,l,c,h,u;for(s=0,a=e.length-1;s<a;s++)if(c=e[s+1],h=new g(l=e[s],!1,void 0,t),u=new g(c,!1,h,t),h.otherEvent=u,l[0]!==c[0]||l[1]!==c[1]){h.contourId=u.contourId=i,o||(h.isExteriorRing=!1,u.isExteriorRing=!1),z(h,u)>0?u.left=!0:h.left=!0;var d=l[0],p=l[1];r[0]=W(r[0],d),r[1]=W(r[1],p),r[2]=Z(r[2],d),r[3]=Z(r[3],p),n.push(h),n.push(u)}}var $=[];function Y(e,t,n){"number"==typeof e[0][0][0]&&(e=[e]),"number"==typeof t[0][0][0]&&(t=[t]);var r=function(e,t,i){var n=null;return e.length*t.length==0&&(i===h?n=$:i===d?n=e:i!==u&&i!==p||(n=0===e.length?t:e)),n}(e,t,n);if(r)return r===$?null:r;var o=[1/0,1/0,-1/0,-1/0],s=[1/0,1/0,-1/0,-1/0],a=function(e,t,i,n,r){var o,s,a,l,c,h,u=new j(null,z);for(a=0,l=e.length;a<l;a++)for(c=0,h=(o=e[a]).length;c<h;c++)(s=0===c)&&q++,X(o[c],!0,q,u,i,s);for(a=0,l=t.length;a<l;a++)for(c=0,h=(o=t[a]).length;c<h;c++)s=0===c,r===d&&(s=!1),s&&q++,X(o[c],!1,q,u,n,s);return u}(e,t,o,s,n);if(r=function(e,t,i,n,r){var o=null;return(i[0]>n[2]||n[0]>i[2]||i[1]>n[3]||n[1]>i[3])&&(r===h?o=$:r===d?o=e:r!==u&&r!==p||(o=e.concat(t))),o}(e,t,o,s,n))return r===$?null:r;for(var l=function(e){var t,i,n=function(e){var t,i,n,r,o=[];for(i=0,n=e.length;i<n;i++)((t=e[i]).left&&t.inResult||!t.left&&t.otherEvent.inResult)&&o.push(t);for(var s=!1;!s;)for(s=!0,i=0,n=o.length;i<n;i++)i+1<n&&1===z(o[i],o[i+1])&&(r=o[i],o[i]=o[i+1],o[i+1]=r,s=!1);for(i=0,n=o.length;i<n;i++)(t=o[i]).otherPos=i;for(i=0,n=o.length;i<n;i++)(t=o[i]).left||(r=t.otherPos,t.otherPos=t.otherEvent.otherPos,t.otherEvent.otherPos=r);return o}(e),r={},o=[],s=function(){if(!r[t]){var e=o.length,i=function(e,t,i){var n=new N;if(null!=e.prevInResult){var r=e.prevInResult,o=r.outputContourId;if(r.resultTransition>0){var s=t[o];if(null!=s.holeOf){var a=s.holeOf;t[a].holeIds.push(i),n.holeOf=a,n.depth=t[o].depth}else t[o].holeIds.push(i),n.holeOf=o,n.depth=t[o].depth+1}else n.holeOf=null,n.depth=t[o].depth}else n.holeOf=null,n.depth=0;return n}(n[t],o,e),s=function(t){r[t]=!0,t<n.length&&n[t]&&(n[t].outputContourId=e)},a=t,l=t;for(i.points.push(n[t].point);s(a),s(a=n[a].otherPos),i.points.push(n[a].point),!((a=V(a,n,r,l))==l||a>=n.length)&&n[a];);o.push(i)}};for(t=0,i=n.length;t<i;t++)s();return o}(function(e,t,n,r,o,s){for(var a,l,c,u=new i(F),p=[],m=Math.min(r[2],o[2]);0!==e.length;){var g=e.pop();if(p.push(g),s===h&&g.point[0]>m||s===d&&g.point[0]>r[2])break;if(g.left){l=a=u.insert(g),a=a!==(c=u.minNode())?u.prev(a):null,l=u.next(l);var _=a?a.key:null;if(f(g,_,s),l&&2===B(g,l.key,e)&&(f(g,_,s),f(l.key,g,s)),a&&2===B(a.key,g,e)){var A=a;f(_,(A=A!==c?u.prev(A):null)?A.key:null,s),f(g,_,s)}}else l=a=u.find(g=g.otherEvent),a&&l&&(a=a!==c?u.prev(a):null,l=u.next(l),u.remove(g),l&&a&&B(a.key,l.key,e))}return p}(a,0,0,o,s,n)),c=[],m=0;m<l.length;m++){var g=l[m];if(g.isExterior()){for(var _=[g.points],A=0;A<g.holeIds.length;A++)_.push(l[g.holeIds[A]].points);c.push(_)}}return c}var Q={UNION:u,DIFFERENCE:d,INTERSECTION:h,XOR:p};e.diff=function(e,t){return Y(e,t,d)},e.intersection=function(e,t){return Y(e,t,h)},e.operations=Q,e.union=function(e,t){return Y(e,t,u)},e.xor=function(e,t){return Y(e,t,p)},Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,od.exports)),od.exports);
|
|
24
|
+
*/function mr(){return pr||(pr=1,e=fr,function(){var t={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=r(e,n(i)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)t.call(e,o)&&e[o]&&(n=r(n,o));return n}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):window.classNames=i}()),fr.exports;var e}var gr,_r,Ar={},yr={};function vr(){return gr||(gr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,i=(t=ue)&&t.__esModule?t:{default:t};var n={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return i.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return i.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};e.default=n}(yr)),yr}function xr(){if(_r)return Ar;_r=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.checkSpecKeys=Ar.checkNavigable=Ar.changeSlide=Ar.canUseDOM=Ar.canGoNext=void 0,Ar.clamp=a,Ar.extractObject=void 0,Ar.filterSettings=function(e){return D.reduce(function(t,i){return e.hasOwnProperty(i)&&(t[i]=e[i]),t},{})},Ar.validSettings=Ar.swipeStart=Ar.swipeMove=Ar.swipeEnd=Ar.slidesOnRight=Ar.slidesOnLeft=Ar.slideHandler=Ar.siblingDirection=Ar.safePreventDefault=Ar.lazyStartIndex=Ar.lazySlidesOnRight=Ar.lazySlidesOnLeft=Ar.lazyEndIndex=Ar.keyHandler=Ar.initializedState=Ar.getWidth=Ar.getTrackLeft=Ar.getTrackCSS=Ar.getTrackAnimateCSS=Ar.getTotalSlides=Ar.getSwipeDirection=Ar.getSlideCount=Ar.getRequiredLazySlides=Ar.getPreClones=Ar.getPostClones=Ar.getOnDemandLazySlides=Ar.getNavigableIndexes=Ar.getHeight=void 0;var e=i(ue),t=i(vr());function i(e){return e&&e.__esModule?e:{default:e}}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach(function(t){s(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function s(e,t,i){var r;return r=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t);if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==n(r)?r:String(r))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e,t,i){return Math.max(t,Math.min(e,i))}var l=Ar.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},c=Ar.getOnDemandLazySlides=function(e){for(var t=[],i=h(e),n=u(e),r=i;r<n;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t};Ar.getRequiredLazySlides=function(e){for(var t=[],i=h(e),n=u(e),r=i;r<n;r++)t.push(r);return t};var h=Ar.lazyStartIndex=function(e){return e.currentSlide-d(e)},u=Ar.lazyEndIndex=function(e){return e.currentSlide+p(e)},d=Ar.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},p=Ar.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},f=Ar.getWidth=function(e){return e&&e.offsetWidth||0},m=Ar.getHeight=function(e){return e&&e.offsetHeight||0},g=Ar.getSwipeDirection=function(e){var t,i,n,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,i=e.startY-e.curY,n=Math.atan2(i,t),(r=Math.round(180*n/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===o?r>=35&&r<=135?"up":"down":"vertical"},_=Ar.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};Ar.extractObject=function(e,t){var i={};return t.forEach(function(t){return i[t]=e[t]}),i},Ar.initializedState=function(t){var i,n=e.default.Children.count(t.children),r=t.listRef,s=Math.ceil(f(r)),a=t.trackRef&&t.trackRef.node,l=Math.ceil(f(a));if(t.vertical)i=s;else{var h=t.centerMode&&2*parseInt(t.centerPadding);"string"==typeof t.centerPadding&&"%"===t.centerPadding.slice(-1)&&(h*=s/100),i=Math.ceil((s-h)/t.slidesToShow)}var u=r&&m(r.querySelector('[data-index="0"]')),d=u*t.slidesToShow,p=void 0===t.currentSlide?t.initialSlide:t.currentSlide;t.rtl&&void 0===t.currentSlide&&(p=n-1-t.initialSlide);var g=t.lazyLoadedList||[],_=c(o(o({},t),{},{currentSlide:p,lazyLoadedList:g})),A={slideCount:n,slideWidth:i,listWidth:s,trackWidth:l,currentSlide:p,slideHeight:u,listHeight:d,lazyLoadedList:g=g.concat(_)};return null===t.autoplaying&&t.autoplay&&(A.autoplaying="playing"),A},Ar.slideHandler=function(e){var t=e.waitForAnimate,i=e.animating,n=e.fade,r=e.infinite,s=e.index,l=e.slideCount,h=e.lazyLoad,u=e.currentSlide,d=e.centerMode,p=e.slidesToScroll,f=e.slidesToShow,m=e.useCSS,g=e.lazyLoadedList;if(t&&i)return{};var A,y,v,x=s,T={},E={},S=r?s:a(s,0,l-1);if(n){if(!r&&(s<0||s>=l))return{};s<0?x=s+l:s>=l&&(x=s-l),h&&g.indexOf(x)<0&&(g=g.concat(x)),T={animating:!0,currentSlide:x,lazyLoadedList:g,targetSlide:x},E={animating:!1,targetSlide:x}}else A=x,x<0?(A=x+l,r?l%p!==0&&(A=l-l%p):A=0):!_(e)&&x>u?x=A=u:d&&x>=l?(x=r?l:l-1,A=r?0:l-1):x>=l&&(A=x-l,r?l%p!==0&&(A=0):A=l-f),!r&&x+f>=l&&(A=l-f),y=C(o(o({},e),{},{slideIndex:x})),v=C(o(o({},e),{},{slideIndex:A})),r||(y===v&&(x=A),y=v),h&&(g=g.concat(c(o(o({},e),{},{currentSlide:x})))),m?(T={animating:!0,currentSlide:A,trackStyle:w(o(o({},e),{},{left:y})),lazyLoadedList:g,targetSlide:S},E={animating:!1,currentSlide:A,trackStyle:b(o(o({},e),{},{left:v})),swipeLeft:null,targetSlide:S}):T={currentSlide:A,trackStyle:b(o(o({},e),{},{left:v})),lazyLoadedList:g,targetSlide:S};return{state:T,nextState:E}},Ar.changeSlide=function(e,t){var i,n,r,s,a=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,h=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,p=e.infinite;if(i=c%a!==0?0:(c-h)%a,"previous"===t.message)s=h-(r=0===i?a:l-i),d&&!p&&(s=-1===(n=h-r)?c-1:n),p||(s=u-a);else if("next"===t.message)s=h+(r=0===i?a:i),d&&!p&&(s=(h+a)%c+i),p||(s=u+a);else if("dots"===t.message)s=t.index*t.slidesToScroll;else if("children"===t.message){if(s=t.index,p){var f=I(o(o({},e),{},{targetSlide:s}));s>t.currentSlide&&"left"===f?s-=c:s<t.currentSlide&&"right"===f&&(s+=c)}}else"index"===t.message&&(s=Number(t.index));return s},Ar.keyHandler=function(e,t,i){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?i?"next":"previous":39===e.keyCode?i?"previous":"next":""},Ar.swipeStart=function(e,t,i){return"IMG"===e.target.tagName&&l(e),!t||!i&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},Ar.swipeMove=function(e,t){var i=t.scrolling,n=t.animating,r=t.vertical,s=t.swipeToSlide,a=t.verticalSwiping,c=t.rtl,h=t.currentSlide,u=t.edgeFriction,d=t.edgeDragged,p=t.onEdge,f=t.swiped,m=t.swiping,A=t.slideCount,y=t.slidesToScroll,v=t.infinite,x=t.touchObject,w=t.swipeEvent,T=t.listHeight,E=t.listWidth;if(!i){if(n)return l(e);r&&s&&a&&l(e);var S,I={},M=C(t);x.curX=e.touches?e.touches[0].pageX:e.clientX,x.curY=e.touches?e.touches[0].pageY:e.clientY,x.swipeLength=Math.round(Math.sqrt(Math.pow(x.curX-x.startX,2)));var P=Math.round(Math.sqrt(Math.pow(x.curY-x.startY,2)));if(!a&&!m&&P>10)return{scrolling:!0};a&&(x.swipeLength=P);var D=(c?-1:1)*(x.curX>x.startX?1:-1);a&&(D=x.curY>x.startY?1:-1);var L=Math.ceil(A/y),z=g(t.touchObject,a),O=x.swipeLength;return v||(0===h&&("right"===z||"down"===z)||h+1>=L&&("left"===z||"up"===z)||!_(t)&&("left"===z||"up"===z))&&(O=x.swipeLength*u,!1===d&&p&&(p(z),I.edgeDragged=!0)),!f&&w&&(w(z),I.swiped=!0),S=r?M+O*(T/E)*D:c?M-O*D:M+O*D,a&&(S=M+O*D),I=o(o({},I),{},{touchObject:x,swipeLeft:S,trackStyle:b(o(o({},t),{},{left:S}))}),Math.abs(x.curX-x.startX)<.8*Math.abs(x.curY-x.startY)?I:(x.swipeLength>10&&(I.swiping=!0,l(e)),I)}},Ar.swipeEnd=function(e,t){var i=t.dragging,n=t.swipe,r=t.touchObject,s=t.listWidth,a=t.touchThreshold,c=t.verticalSwiping,h=t.listHeight,u=t.swipeToSlide,d=t.scrolling,p=t.onSwipe,f=t.targetSlide,m=t.currentSlide,_=t.infinite;if(!i)return n&&l(e),{};var A=c?h/a:s/a,x=g(r,c),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return b;if(!r.swipeLength)return b;if(r.swipeLength>A){var T,E;l(e),p&&p(x);var S=_?m:f;switch(x){case"left":case"up":E=S+v(t),T=u?y(t,E):E,b.currentDirection=0;break;case"right":case"down":E=S-v(t),T=u?y(t,E):E,b.currentDirection=1;break;default:T=S}b.triggerSlideHandler=T}else{var I=C(t);b.trackStyle=w(o(o({},t),{},{left:I}))}return b};var A=Ar.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,i=e.infinite?-1*e.slidesToShow:0,n=e.infinite?-1*e.slidesToShow:0,r=[];i<t;)r.push(i),i=n+e.slidesToScroll,n+=Math.min(e.slidesToScroll,e.slidesToShow);return r},y=Ar.checkNavigable=function(e,t){var i=A(e),n=0;if(t>i[i.length-1])t=i[i.length-1];else for(var r in i){if(t<i[r]){t=n;break}n=i[r]}return t},v=Ar.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var i,n=e.listRef,r=n.querySelectorAll&&n.querySelectorAll(".slick-slide")||[];if(Array.from(r).every(function(n){if(e.vertical){if(n.offsetTop+m(n)/2>-1*e.swipeLeft)return i=n,!1}else if(n.offsetLeft-t+f(n)/2>-1*e.swipeLeft)return i=n,!1;return!0}),!i)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(i.dataset.index-o)||1}return e.slidesToScroll},x=Ar.checkSpecKeys=function(e,t){return t.reduce(function(t,i){return t&&e.hasOwnProperty(i)},!0)?null:console.error("Keys Missing:",e)},b=Ar.getTrackCSS=function(e){var t,i;x(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n=e.slideCount+2*e.slidesToShow;e.vertical?i=n*e.slideHeight:t=S(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=o(o({},r),{},{WebkitTransform:s,transform:a,msTransform:l})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),i&&(r.height=i),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},w=Ar.getTrackAnimateCSS=function(e){x(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=b(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},C=Ar.getTrackLeft=function(e){if(e.unslick)return 0;x(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,i,n=e.slideIndex,r=e.trackRef,o=e.infinite,s=e.centerMode,a=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,h=e.slideWidth,u=e.listWidth,d=e.variableWidth,p=e.slideHeight,f=e.fade,m=e.vertical;if(f||1===e.slideCount)return 0;var g=0;if(o?(g=-T(e),a%c!==0&&n+c>a&&(g=-(n>a?l-(n-a):a%c)),s&&(g+=parseInt(l/2))):(a%c!==0&&n+c>a&&(g=l-a%c),s&&(g=parseInt(l/2))),t=m?n*p*-1+g*p:n*h*-1+g*h,!0===d){var _,A=r&&r.node;if(_=n+T(e),t=(i=A&&A.childNodes[_])?-1*i.offsetLeft:0,!0===s){_=o?n+T(e):n,i=A&&A.children[_],t=0;for(var y=0;y<_;y++)t-=A&&A.children[y]&&A.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=i&&(u-i.offsetWidth)/2}}return t},T=Ar.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},E=Ar.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},S=Ar.getTotalSlides=function(e){return 1===e.slideCount?1:T(e)+e.slideCount+E(e)},I=Ar.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+M(e)?"left":"right":e.targetSlide<e.currentSlide-P(e)?"right":"left"},M=Ar.slidesOnRight=function(e){var t=e.slidesToShow,i=e.centerMode,n=e.rtl,r=e.centerPadding;if(i){var o=(t-1)/2+1;return parseInt(r)>0&&(o+=1),n&&t%2==0&&(o+=1),o}return n?0:t-1},P=Ar.slidesOnLeft=function(e){var t=e.slidesToShow,i=e.centerMode,n=e.rtl,r=e.centerPadding;if(i){var o=(t-1)/2+1;return parseInt(r)>0&&(o+=1),n||t%2!=0||(o+=1),o}return n?t-1:0};Ar.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};var D=Ar.validSettings=Object.keys(t.default);return Ar}var br,wr={};function Cr(){if(br)return wr;br=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.Track=void 0;var e=n(ue),t=n(mr()),i=xr();function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(this,arguments)}function s(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e){var t=h();return function(){var i,n=u(e);if(t){var o=u(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}(this,i)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function p(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach(function(t){f(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function f(e,t,i){return(t=m(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function m(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t);if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:String(t)}var g=function(e){var t,i,n,r,o;return n=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),i=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-r-1&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":i,"slick-cloned":n,"slick-current":o===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},_=function(e,t){return e.key||t},A=function(n){var r,o=[],s=[],a=[],l=e.default.Children.count(n.children),c=(0,i.lazyStartIndex)(n),h=(0,i.lazyEndIndex)(n);return e.default.Children.forEach(n.children,function(u,d){var f,m={message:"children",index:d,slidesToScroll:n.slidesToScroll,currentSlide:n.currentSlide};f=!n.lazyLoad||n.lazyLoad&&n.lazyLoadedList.indexOf(d)>=0?u:e.default.createElement("div",null);var A=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(p(p({},n),{},{index:d})),y=f.props.className||"",v=g(p(p({},n),{},{index:d}));if(o.push(e.default.cloneElement(f,{key:"original"+_(f,d),"data-index":d,className:(0,t.default)(v,y),tabIndex:"-1","aria-hidden":!v["slick-active"],style:p(p({outline:"none"},f.props.style||{}),A),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),n.focusOnSelect&&n.focusOnSelect(m)}})),n.infinite&&!1===n.fade){var x=l-d;x<=(0,i.getPreClones)(n)&&((r=-x)>=c&&(f=u),v=g(p(p({},n),{},{index:r})),s.push(e.default.cloneElement(f,{key:"precloned"+_(f,r),"data-index":r,tabIndex:"-1",className:(0,t.default)(v,y),"aria-hidden":!v["slick-active"],style:p(p({},f.props.style||{}),A),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),n.focusOnSelect&&n.focusOnSelect(m)}}))),(r=l+d)<h&&(f=u),v=g(p(p({},n),{},{index:r})),a.push(e.default.cloneElement(f,{key:"postcloned"+_(f,r),"data-index":r,tabIndex:"-1",className:(0,t.default)(v,y),"aria-hidden":!v["slick-active"],style:p(p({},f.props.style||{}),A),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),n.focusOnSelect&&n.focusOnSelect(m)}}))}}),n.rtl?s.concat(o,a).reverse():s.concat(o,a)};return wr.Track=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(n,t);var i=l(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return f(c(e=i.call.apply(i,[this].concat(r))),"node",null),f(c(e),"handleRef",function(t){e.node=t}),e}return s(n,[{key:"render",value:function(){var t=A(this.props),i=this.props,n={onMouseEnter:i.onMouseEnter,onMouseOver:i.onMouseOver,onMouseLeave:i.onMouseLeave};return e.default.createElement("div",o({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),t)}}]),n}(e.default.PureComponent),wr}var Tr,Er={};function Sr(){if(Tr)return Er;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}Tr=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.Dots=void 0;var t=r(ue),i=r(mr()),n=xr();function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function s(e,t,i){return(t=l(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(t){var i=function(t,i){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,i);if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==e(i)?i:String(i)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function h(t){var i=u();return function(){var n,r=d(t);if(i){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,i){if(i&&("object"===e(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,n)}}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}return Er.Dots=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(l,e);var r=h(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.apply(this,arguments)}return a(l,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,r=this.props,a=r.onMouseEnter,l=r.onMouseOver,c=r.onMouseLeave,h=r.infinite,u=r.slidesToScroll,d=r.slidesToShow,p=r.slideCount,f=r.currentSlide,m=(e={slideCount:p,slidesToScroll:u,slidesToShow:d,infinite:h}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,g={onMouseEnter:a,onMouseOver:l,onMouseLeave:c},_=[],A=0;A<m;A++){var y=(A+1)*u-1,v=h?y:(0,n.clamp)(y,0,p-1),x=v-(u-1),b=h?x:(0,n.clamp)(x,0,p-1),w=(0,i.default)({"slick-active":h?f>=b&&f<=v:f===b}),C={message:"dots",index:A,slidesToScroll:u,currentSlide:f},T=this.clickHandler.bind(this,C);_=_.concat(t.default.createElement("li",{key:A,className:w},t.default.cloneElement(this.props.customPaging(A),{onClick:T})))}return t.default.cloneElement(this.props.appendDots(_),function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach(function(t){s(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({className:this.props.dotsClass},g))}}]),l}(t.default.PureComponent),Er}var Ir,Mr={};function Pr(){if(Ir)return Mr;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}Ir=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.PrevArrow=Mr.NextArrow=void 0;var t=r(ue),i=r(mr()),n=xr();function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(this,arguments)}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach(function(t){l(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function l(e,t,i){return(t=u(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(t){var i=function(t,i){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,i);if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==e(i)?i:String(i)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(t){var i=m();return function(){var n,r=g(t);if(i){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,i){if(i&&("object"===e(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,n)}}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}return Mr.PrevArrow=function(e){d(r,e);var n=f(r);function r(){return c(this,r),n.apply(this,arguments)}return h(r,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},n=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,n=null);var r={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:n},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?t.default.cloneElement(this.props.prevArrow,a(a({},r),s)):t.default.createElement("button",o({key:"0",type:"button"},r)," ","Previous")}}]),r}(t.default.PureComponent),Mr.NextArrow=function(e){d(s,e);var r=f(s);function s(){return c(this,s),r.apply(this,arguments)}return h(s,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},r=this.clickHandler.bind(this,{message:"next"});(0,n.canGoNext)(this.props)||(e["slick-disabled"]=!0,r=null);var s={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:r},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?t.default.cloneElement(this.props.nextArrow,a(a({},s),l)):t.default.createElement("button",o({key:"1",type:"button"},s)," ","Next")}}]),s}(t.default.PureComponent),Mr}var Dr=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var i=-1;return e.some(function(e,n){return e[0]===t&&(i=n,!0)}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),n=this.__entries__[i];return n&&n[1]},t.prototype.set=function(t,i){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,n=e(i,t);~n&&i.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,n=this.__entries__;i<n.length;i++){var r=n[i];e.call(t,r[1],r[0])}},t}()}(),Lr="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,zr="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Or="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(zr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var Rr=["top","right","bottom","left","width","height","size","weight"],kr="undefined"!=typeof MutationObserver,Br=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,n=!1,r=0;function o(){i&&(i=!1,e()),n&&a()}function s(){Or(o)}function a(){var e=Date.now();if(i){if(e-r<2)return;n=!0}else i=!0,n=!1,setTimeout(s,t);r=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Lr&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),kr?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Lr&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;Rr.some(function(e){return!!~i.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Fr=function(e,t){for(var i=0,n=Object.keys(t);i<n.length;i++){var r=n[i];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Nr=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||zr},Vr=Wr(0,0,0,0);function jr(e){return parseFloat(e)||0}function Ur(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce(function(t,i){return t+jr(e["border-"+i+"-width"])},0)}function Hr(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return Vr;var n=Nr(e).getComputedStyle(e),r=function(e){for(var t={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var r=n[i],o=e["padding-"+r];t[r]=jr(o)}return t}(n),o=r.left+r.right,s=r.top+r.bottom,a=jr(n.width),l=jr(n.height);if("border-box"===n.boxSizing&&(Math.round(a+o)!==t&&(a-=Ur(n,"left","right")+o),Math.round(l+s)!==i&&(l-=Ur(n,"top","bottom")+s)),!function(e){return e===Nr(e).document.documentElement}(e)){var c=Math.round(a+o)-t,h=Math.round(l+s)-i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(h)&&(l-=h)}return Wr(r.left,r.top,a,l)}var Gr="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Nr(e).SVGGraphicsElement}:function(e){return e instanceof Nr(e).SVGElement&&"function"==typeof e.getBBox};function Zr(e){return Lr?Gr(e)?function(e){var t=e.getBBox();return Wr(0,0,t.width,t.height)}(e):Hr(e):Vr}function Wr(e,t,i,n){return{x:e,y:t,width:i,height:n}}var qr=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Wr(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Zr(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Xr=function(e,t){var i,n,r,o,s,a,l,c=(n=(i=t).x,r=i.y,o=i.width,s=i.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),Fr(l,{x:n,y:r,width:o,height:s,top:r,right:n+o,bottom:s+r,left:n}),l);Fr(this,{target:e,contentRect:c})},$r=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new Dr,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Nr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new qr(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Nr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new Xr(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Yr="undefined"!=typeof WeakMap?new WeakMap:new Dr,Qr=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Br.getInstance(),n=new $r(t,i,this);Yr.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){Qr.prototype[e]=function(){var t;return(t=Yr.get(this))[e].apply(t,arguments)}});var Kr,Jr,eo,to,io,no,ro,oo,so,ao,lo,co,ho,uo,po,fo,mo,go=void 0!==zr.ResizeObserver?zr.ResizeObserver:Qr,_o=nn(Object.freeze({__proto__:null,default:go}));function Ao(){if(Kr)return hr;Kr=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.InnerSlider=void 0;var e,t=h(ue),i=h((or||(or=1,e=ur,Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}),ur)),n=h(dr()),r=h(mr()),o=xr(),s=Cr(),a=Sr(),l=Pr(),c=h(_o);function h(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},d.apply(this,arguments)}function p(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function f(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function m(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?f(Object(i),!0).forEach(function(t){b(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):f(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function g(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function A(e){var t=v();return function(){var i,n=x(e);if(t){var r=x(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}(this,i)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function b(e,t,i){return(t=w(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function w(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t);if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:String(t)}return hr.InnerSlider=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(f,e);var h=A(f);function f(e){var u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),b(y(u=h.call(this,e)),"listRefHandler",function(e){return u.list=e}),b(y(u),"trackRefHandler",function(e){return u.track=e}),b(y(u),"adaptHeight",function(){if(u.props.adaptiveHeight&&u.list){var e=u.list.querySelector('[data-index="'.concat(u.state.currentSlide,'"]'));u.list.style.height=(0,o.getHeight)(e)+"px"}}),b(y(u),"componentDidMount",function(){if(u.props.onInit&&u.props.onInit(),u.props.lazyLoad){var e=(0,o.getOnDemandLazySlides)(m(m({},u.props),u.state));e.length>0&&(u.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),u.props.onLazyLoad&&u.props.onLazyLoad(e))}var t=m({listRef:u.list,trackRef:u.track},u.props);u.updateState(t,!0,function(){u.adaptHeight(),u.props.autoplay&&u.autoPlay("update")}),"progressive"===u.props.lazyLoad&&(u.lazyLoadTimer=setInterval(u.progressiveLazyLoad,1e3)),u.ro=new c.default(function(){u.state.animating?(u.onWindowResized(!1),u.callbackTimers.push(setTimeout(function(){return u.onWindowResized()},u.props.speed))):u.onWindowResized()}),u.ro.observe(u.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=u.props.pauseOnFocus?u.onSlideFocus:null,e.onblur=u.props.pauseOnFocus?u.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",u.onWindowResized):window.attachEvent("onresize",u.onWindowResized)}),b(y(u),"componentWillUnmount",function(){u.animationEndCallback&&clearTimeout(u.animationEndCallback),u.lazyLoadTimer&&clearInterval(u.lazyLoadTimer),u.callbackTimers.length&&(u.callbackTimers.forEach(function(e){return clearTimeout(e)}),u.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",u.onWindowResized):window.detachEvent("onresize",u.onWindowResized),u.autoplayTimer&&clearInterval(u.autoplayTimer),u.ro.disconnect()}),b(y(u),"componentDidUpdate",function(e){if(u.checkImagesLoad(),u.props.onReInit&&u.props.onReInit(),u.props.lazyLoad){var i=(0,o.getOnDemandLazySlides)(m(m({},u.props),u.state));i.length>0&&(u.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(i)}}),u.props.onLazyLoad&&u.props.onLazyLoad(i))}u.adaptHeight();var n=m(m({listRef:u.list,trackRef:u.track},u.props),u.state),r=u.didPropsChange(e);r&&u.updateState(n,r,function(){u.state.currentSlide>=t.default.Children.count(u.props.children)&&u.changeSlide({message:"index",index:t.default.Children.count(u.props.children)-u.props.slidesToShow,currentSlide:u.state.currentSlide}),u.props.autoplay?u.autoPlay("update"):u.pause("paused")})}),b(y(u),"onWindowResized",function(e){u.debouncedResize&&u.debouncedResize.cancel(),u.debouncedResize=(0,n.default)(function(){return u.resizeWindow(e)},50),u.debouncedResize()}),b(y(u),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(u.track&&u.track.node)){var t=m(m({listRef:u.list,trackRef:u.track},u.props),u.state);u.updateState(t,e,function(){u.props.autoplay?u.autoPlay("update"):u.pause("paused")}),u.setState({animating:!1}),clearTimeout(u.animationEndCallback),delete u.animationEndCallback}}),b(y(u),"updateState",function(e,i,n){var r=(0,o.initializedState)(e);e=m(m(m({},e),r),{},{slideIndex:r.currentSlide});var s=(0,o.getTrackLeft)(e);e=m(m({},e),{},{left:s});var a=(0,o.getTrackCSS)(e);(i||t.default.Children.count(u.props.children)!==t.default.Children.count(e.children))&&(r.trackStyle=a),u.setState(r,n)}),b(y(u),"ssrInit",function(){if(u.props.variableWidth){var e=0,i=0,n=[],r=(0,o.getPreClones)(m(m(m({},u.props),u.state),{},{slideCount:u.props.children.length})),s=(0,o.getPostClones)(m(m(m({},u.props),u.state),{},{slideCount:u.props.children.length}));u.props.children.forEach(function(t){n.push(t.props.style.width),e+=t.props.style.width});for(var a=0;a<r;a++)i+=n[n.length-1-a],e+=n[n.length-1-a];for(var l=0;l<s;l++)e+=n[l];for(var c=0;c<u.state.currentSlide;c++)i+=n[c];var h={width:e+"px",left:-i+"px"};if(u.props.centerMode){var d="".concat(n[u.state.currentSlide],"px");h.left="calc(".concat(h.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:h}}var p=t.default.Children.count(u.props.children),f=m(m(m({},u.props),u.state),{},{slideCount:p}),g=(0,o.getPreClones)(f)+(0,o.getPostClones)(f)+p,_=100/u.props.slidesToShow*g,A=100/g,y=-A*((0,o.getPreClones)(f)+u.state.currentSlide)*_/100;return u.props.centerMode&&(y+=(100-A*_/100)/2),{slideWidth:A+"%",trackStyle:{width:_+"%",left:y+"%"}}}),b(y(u),"checkImagesLoad",function(){var e=u.list&&u.list.querySelectorAll&&u.list.querySelectorAll(".slick-slide img")||[],t=e.length,i=0;Array.prototype.forEach.call(e,function(e){var n=function(){return++i&&i>=t&&u.onWindowResized()};if(e.onclick){var r=e.onclick;e.onclick=function(t){r(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(u.props.lazyLoad?e.onload=function(){u.adaptHeight(),u.callbackTimers.push(setTimeout(u.onWindowResized,u.props.speed))}:(e.onload=n,e.onerror=function(){n(),u.props.onLazyLoadError&&u.props.onLazyLoadError()}))})}),b(y(u),"progressiveLazyLoad",function(){for(var e=[],t=m(m({},u.props),u.state),i=u.state.currentSlide;i<u.state.slideCount+(0,o.getPostClones)(t);i++)if(u.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}for(var n=u.state.currentSlide-1;n>=-(0,o.getPreClones)(t);n--)if(u.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(u.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),u.props.onLazyLoad&&u.props.onLazyLoad(e)):u.lazyLoadTimer&&(clearInterval(u.lazyLoadTimer),delete u.lazyLoadTimer)}),b(y(u),"slideHandler",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=u.props,n=i.asNavFor,r=i.beforeChange,s=i.onLazyLoad,a=i.speed,l=i.afterChange,c=u.state.currentSlide,h=(0,o.slideHandler)(m(m(m({index:e},u.props),u.state),{},{trackRef:u.track,useCSS:u.props.useCSS&&!t})),d=h.state,f=h.nextState;if(d){r&&r(c,d.currentSlide);var g=d.lazyLoadedList.filter(function(e){return u.state.lazyLoadedList.indexOf(e)<0});s&&g.length>0&&s(g),!u.props.waitForAnimate&&u.animationEndCallback&&(clearTimeout(u.animationEndCallback),l&&l(c),delete u.animationEndCallback),u.setState(d,function(){n&&u.asNavForIndex!==e&&(u.asNavForIndex=e,n.innerSlider.slideHandler(e)),f&&(u.animationEndCallback=setTimeout(function(){var e=f.animating,t=p(f,["animating"]);u.setState(t,function(){u.callbackTimers.push(setTimeout(function(){return u.setState({animating:e})},10)),l&&l(d.currentSlide),delete u.animationEndCallback})},a))})}}),b(y(u),"changeSlide",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=m(m({},u.props),u.state),n=(0,o.changeSlide)(i,e);if((0===n||n)&&(!0===t?u.slideHandler(n,t):u.slideHandler(n),u.props.autoplay&&u.autoPlay("update"),u.props.focusOnSelect)){var r=u.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}}),b(y(u),"clickHandler",function(e){!1===u.clickable&&(e.stopPropagation(),e.preventDefault()),u.clickable=!0}),b(y(u),"keyHandler",function(e){var t=(0,o.keyHandler)(e,u.props.accessibility,u.props.rtl);""!==t&&u.changeSlide({message:t})}),b(y(u),"selectHandler",function(e){u.changeSlide(e)}),b(y(u),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),b(y(u),"enableBodyScroll",function(){window.ontouchmove=null}),b(y(u),"swipeStart",function(e){u.props.verticalSwiping&&u.disableBodyScroll();var t=(0,o.swipeStart)(e,u.props.swipe,u.props.draggable);""!==t&&u.setState(t)}),b(y(u),"swipeMove",function(e){var t=(0,o.swipeMove)(e,m(m(m({},u.props),u.state),{},{trackRef:u.track,listRef:u.list,slideIndex:u.state.currentSlide}));t&&(t.swiping&&(u.clickable=!1),u.setState(t))}),b(y(u),"swipeEnd",function(e){var t=(0,o.swipeEnd)(e,m(m(m({},u.props),u.state),{},{trackRef:u.track,listRef:u.list,slideIndex:u.state.currentSlide}));if(t){var i=t.triggerSlideHandler;delete t.triggerSlideHandler,u.setState(t),void 0!==i&&(u.slideHandler(i),u.props.verticalSwiping&&u.enableBodyScroll())}}),b(y(u),"touchEnd",function(e){u.swipeEnd(e),u.clickable=!0}),b(y(u),"slickPrev",function(){u.callbackTimers.push(setTimeout(function(){return u.changeSlide({message:"previous"})},0))}),b(y(u),"slickNext",function(){u.callbackTimers.push(setTimeout(function(){return u.changeSlide({message:"next"})},0))}),b(y(u),"slickGoTo",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";u.callbackTimers.push(setTimeout(function(){return u.changeSlide({message:"index",index:e,currentSlide:u.state.currentSlide},t)},0))}),b(y(u),"play",function(){var e;if(u.props.rtl)e=u.state.currentSlide-u.props.slidesToScroll;else{if(!(0,o.canGoNext)(m(m({},u.props),u.state)))return!1;e=u.state.currentSlide+u.props.slidesToScroll}u.slideHandler(e)}),b(y(u),"autoPlay",function(e){u.autoplayTimer&&clearInterval(u.autoplayTimer);var t=u.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;u.autoplayTimer=setInterval(u.play,u.props.autoplaySpeed+50),u.setState({autoplaying:"playing"})}),b(y(u),"pause",function(e){u.autoplayTimer&&(clearInterval(u.autoplayTimer),u.autoplayTimer=null);var t=u.state.autoplaying;"paused"===e?u.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||u.setState({autoplaying:"focused"}):"playing"===t&&u.setState({autoplaying:"hovered"})}),b(y(u),"onDotsOver",function(){return u.props.autoplay&&u.pause("hovered")}),b(y(u),"onDotsLeave",function(){return u.props.autoplay&&"hovered"===u.state.autoplaying&&u.autoPlay("leave")}),b(y(u),"onTrackOver",function(){return u.props.autoplay&&u.pause("hovered")}),b(y(u),"onTrackLeave",function(){return u.props.autoplay&&"hovered"===u.state.autoplaying&&u.autoPlay("leave")}),b(y(u),"onSlideFocus",function(){return u.props.autoplay&&u.pause("focused")}),b(y(u),"onSlideBlur",function(){return u.props.autoplay&&"focused"===u.state.autoplaying&&u.autoPlay("blur")}),b(y(u),"render",function(){var e,i,n,c=(0,r.default)("slick-slider",u.props.className,{"slick-vertical":u.props.vertical,"slick-initialized":!0}),h=m(m({},u.props),u.state),p=(0,o.extractObject)(h,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),f=u.props.pauseOnHover;if(p=m(m({},p),{},{onMouseEnter:f?u.onTrackOver:null,onMouseLeave:f?u.onTrackLeave:null,onMouseOver:f?u.onTrackOver:null,focusOnSelect:u.props.focusOnSelect&&u.clickable?u.selectHandler:null}),!0===u.props.dots&&u.state.slideCount>=u.props.slidesToShow){var g=(0,o.extractObject)(h,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),_=u.props.pauseOnDotsHover;g=m(m({},g),{},{clickHandler:u.changeSlide,onMouseEnter:_?u.onDotsLeave:null,onMouseOver:_?u.onDotsOver:null,onMouseLeave:_?u.onDotsLeave:null}),e=t.default.createElement(a.Dots,g)}var A=(0,o.extractObject)(h,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);A.clickHandler=u.changeSlide,u.props.arrows&&(i=t.default.createElement(l.PrevArrow,A),n=t.default.createElement(l.NextArrow,A));var y=null;u.props.vertical&&(y={height:u.state.listHeight});var v=null;!1===u.props.vertical?!0===u.props.centerMode&&(v={padding:"0px "+u.props.centerPadding}):!0===u.props.centerMode&&(v={padding:u.props.centerPadding+" 0px"});var x=m(m({},y),v),b=u.props.touchMove,w={className:"slick-list",style:x,onClick:u.clickHandler,onMouseDown:b?u.swipeStart:null,onMouseMove:u.state.dragging&&b?u.swipeMove:null,onMouseUp:b?u.swipeEnd:null,onMouseLeave:u.state.dragging&&b?u.swipeEnd:null,onTouchStart:b?u.swipeStart:null,onTouchMove:u.state.dragging&&b?u.swipeMove:null,onTouchEnd:b?u.touchEnd:null,onTouchCancel:u.state.dragging&&b?u.swipeEnd:null,onKeyDown:u.props.accessibility?u.keyHandler:null},C={className:c,dir:"ltr",style:u.props.style};return u.props.unslick&&(w={className:"slick-list"},C={className:c}),t.default.createElement("div",C,u.props.unslick?"":i,t.default.createElement("div",d({ref:u.listRefHandler},w),t.default.createElement(s.Track,d({ref:u.trackRefHandler},p),u.props.children)),u.props.unslick?"":n,u.props.unslick?"":e)}),u.list=null,u.track=null,u.state=m(m({},i.default),{},{currentSlide:u.props.initialSlide,targetSlide:u.props.initialSlide?u.props.initialSlide:0,slideCount:t.default.Children.count(u.props.children)}),u.callbackTimers=[],u.clickable=!0,u.debouncedResize=null;var g=u.ssrInit();return u.state=m(m({},u.state),g),u}return g(f,[{key:"didPropsChange",value:function(e){for(var i=!1,n=0,r=Object.keys(this.props);n<r.length;n++){var o=r[n];if(!e.hasOwnProperty(o)){i=!0;break}if("object"!==u(e[o])&&"function"!=typeof e[o]&&!isNaN(e[o])&&e[o]!==this.props[o]){i=!0;break}}return i||t.default.Children.count(this.props.children)!==t.default.Children.count(e.children)}}]),f}(t.default.Component),hr}function yo(){if(io)return to;io=1;var e=eo?Jr:(eo=1,Jr=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}),t=function(t){var i="",n=Object.keys(t);return n.forEach(function(r,o){var s=t[r];(function(e){return/[height|width]$/.test(e)})(r=e(r))&&"number"==typeof s&&(s+="px"),i+=!0===s?r:!1===s?"not "+r:"("+r+": "+s+")",o<n.length-1&&(i+=" and ")}),i};return to=function(e){var i="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){i+=t(n),r<e.length-1&&(i+=", ")}),i):t(e)},to}function vo(){if(so)return oo;return so=1,oo={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var i=0,n=e.length;i<n&&!1!==t(e[i],i);i++);}}}function xo(){if(lo)return ao;lo=1;var e=function(){if(ro)return no;function e(e){this.options=e,!e.deferSetup&&this.setup()}return ro=1,e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},no=e}(),t=vo().each;function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var i=this;this.listener=function(e){i.mql=e.currentTarget||e,i.assess()},this.mql.addListener(this.listener)}return i.prototype={constuctor:i,addHandler:function(t){var i=new e(t);this.handlers.push(i),this.matches()&&i.on()},removeHandler:function(e){var i=this.handlers;t(i,function(t,n){if(t.equals(e))return t.destroy(),!i.splice(n,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";t(this.handlers,function(t){t[e]()})}},ao=i}function bo(){if(po)return uo;po=1;var e=function(){if(ho)return co;ho=1;var e=xo(),t=vo(),i=t.each,n=t.isFunction,r=t.isArray;function o(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return o.prototype={constructor:o,register:function(t,o,s){var a=this.queries,l=s&&this.browserIsIncapable;return a[t]||(a[t]=new e(t,l)),n(o)&&(o={match:o}),r(o)||(o=[o]),i(o,function(e){n(e)&&(e={match:e}),a[t].addHandler(e)}),this},unregister:function(e,t){var i=this.queries[e];return i&&(t?i.removeHandler(t):(i.clear(),delete this.queries[e])),this}},co=o}();return uo=new e}function wo(){return fo||(fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=s(ue),i=Ao(),n=s(yo()),r=s(vr()),o=xr();function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},l.apply(this,arguments)}function c(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?c(Object(i),!0).forEach(function(t){_(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function u(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=m();return function(){var i,n=g(e);if(t){var r=g(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,i)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function _(e,t,i){return(t=A(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function A(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t);if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:String(t)}var y=(0,o.canUseDOM)()&&bo();e.default=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(a,e);var s=p(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),_(f(t=s.call(this,e)),"innerSliderRefHandler",function(e){return t.innerSlider=e}),_(f(t),"slickPrev",function(){return t.innerSlider.slickPrev()}),_(f(t),"slickNext",function(){return t.innerSlider.slickNext()}),_(f(t),"slickGoTo",function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,i)}),_(f(t),"slickPause",function(){return t.innerSlider.pause("paused")}),_(f(t),"slickPlay",function(){return t.innerSlider.autoPlay("play")}),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return u(a,[{key:"media",value:function(e,t){y.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(i,r){var s;s=0===r?(0,n.default)({minWidth:0,maxWidth:i}):(0,n.default)({minWidth:t[r-1]+1,maxWidth:i}),(0,o.canUseDOM)()&&e.media(s,function(){e.setState({breakpoint:i})})});var i=(0,n.default)({minWidth:t.slice(-1)[0]});(0,o.canUseDOM)()&&this.media(i,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){y.unregister(e.query,e.handler)})}},{key:"render",value:function(){var e,n,s=this;(e=this.state.breakpoint?"unslick"===(n=this.props.responsive.filter(function(e){return e.breakpoint===s.state.breakpoint}))[0].settings?"unslick":h(h(h({},r.default),this.props),n[0].settings):h(h({},r.default),this.props)).centerMode&&(e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(e.slidesToScroll)),e.slidesToScroll=1),e.fade&&(e.slidesToShow>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(e.slidesToShow)),e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(e.slidesToScroll)),e.slidesToShow=1,e.slidesToScroll=1);var a=t.default.Children.toArray(this.props.children);a=a.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var c=[],u=null,d=0;d<a.length;d+=e.rows*e.slidesPerRow){for(var p=[],f=d;f<d+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var m=[],g=f;g<f+e.slidesPerRow&&(e.variableWidth&&a[g].props.style&&(u=a[g].props.style.width),!(g>=a.length));g+=1)m.push(t.default.cloneElement(a[g],{key:100*d+10*f+g,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));p.push(t.default.createElement("div",{key:10*d+f},m))}e.variableWidth?c.push(t.default.createElement("div",{key:d,style:{width:u}},p)):c.push(t.default.createElement("div",{key:d},p))}if("unslick"===e){var _="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:_},a)}return c.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),t.default.createElement(i.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},(0,o.filterSettings)(e)),c)}}]),a}(t.default.Component)}(cr)),cr}const Co=D(tn((mo||(mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,i=(t=wo())&&t.__esModule?t:{default:t};e.default=i.default}(lr)),lr)))(()=>({overflow:"hidden !important",height:"100% !important",width:"100% !important",".slick-list, .slick-track, .slick-slide > div":{height:"100% !important"},".slick-arrow":{zIndex:"1 !important",display:"flex !important",flexDirection:"column !important",alignItems:"center !important",justifyContent:"center !important",color:"rgba(255, 255, 255, 0.8) !important","&:hover":{color:"rgba(255, 255, 255, 1) !important"},"&:before":{display:"none !important"},"&.slick-prev":{left:"0!important"},"&.slick-next":{right:"0!important"}},".slick-dots":{bottom:"10px !important",zIndex:"1 !important",position:"absolute",height:"24px !important",overflow:"auto !important",overflowY:"hidden !important",display:"flex !important",alignItems:"center !important",justifyContent:"flex-start !important",left:"50% !important",transform:"translateX(-50%) !important",whiteSpace:"nowrap !important",maxWidth:"72px !important",scrollbarWidth:"none !important",msOverflowStyle:"none !important","&::-webkit-scrollbar":{display:"none !important"},"& li":{margin:"0 1px !important",width:"12px !important",transition:"all 0.3s ease !important",display:"inline-block !important"},"& li, & li button, & li button:before":{width:"12px !important",height:"12px !important"},"& button:before":{fontSize:"10px !important",lineHeight:"14px !important",color:"rgba(145, 158, 171, 0.9) !important",opacity:"1!important"},".slick-active":{"& button:before":{color:"white !important"}}},"& div.slick-prev, & div.slick-next":{height:"100% !important",borderRadius:"0!important",margin:"0!important",width:"65px !important",transition:"opacity .15s ease !important"},"& div.slick-next":{background:"linear-gradient(90deg, transparent 0, rgba(0,0,0,.15)) !important"},"& div.slick-prev":{background:"linear-gradient(270deg, transparent 0, rgba(0,0,0,.15)) !important"}})),To=xe(e=>{let{disableThumbnail:t=!1,id:i,imageSX:n,fullSizeImages:r=[],lazyLoad:o,images:c=[],onSlideClick:u,...d}=e;const[p,f]=pe(!1),m=h(e=>e.breakpoints.down("sm")),_=ye(e=>{u?.(e),!p||c.length<=5||setTimeout(()=>{const e=i?document.getElementById(i):document;if(!e)return;const t=e.querySelector(".slick-dots");if(!t)return;const n=t.querySelector(".slick-active");n&&n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},50)},[p,c.length,i,u]),A={dots:p&&c?.length>1,arrows:p&&c?.length>1,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,initialSlide:0,lazyLoad:o,nextArrow:s(ir,{isNext:!0,children:s(Me,{fontSize:m?"medium":"large"})}),prevArrow:s(ir,{children:s(Ie,{fontSize:m?"medium":"large"})}),afterChange:_},y=ye(()=>{setTimeout(()=>{f(!0)},1e3)},[]),v=ve(()=>c.map((e,i)=>{const n=r[i]||e;return t?`${n} 1600w, ${e} 800w, ${e} 400w`:n}),[c,r,t]);return a(g,{id:i,width:"100%",height:"100%",overflow:"hidden",position:"relative",sx:{...d?.sx||{},".slick-frame":{visibility:p?"visible":"hidden"},".slick-initialized":{visibility:"visible",background:"none","& > .generic-item-wrap-class":{visibility:"visible"}},"& > .generic-item-wrap-class":{visibility:"hidden"}},children:[r?.length>0&&s(g,{sx:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},children:c.map((e,i)=>s($n,{original:r[i]||e,thumbnail:t?void 0:e,originalSrcset:v[i],width:"1600",height:"1066",children:e=>{let{ref:t}=e;return s("span",{ref:t})}},`gallery-item-${i}`))}),c?.length?a(l,{children:[!p&&s(tr,{visibleByDefault:!0,src:c?.[0],sx:{zIndex:2,position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),s(Co,{...A,sx:{...n,...p?{}:{backgroundImage:`url(${c?.[0]})`}},onInit:y,children:c?.map((e,t)=>r?.length>0?s(nr,{image:e,index:t,imageSX:n},e):s(g,{component:"img",alt:`Image ${t}`,src:e,sx:{objectFit:"cover",objectPosition:"center",width:"100%",height:"100%",minHeight:"100%"}},e))})]}):s(rr,{sx:d?.sx||{}})]})}),Eo=xe(function(e){let{fontSize:t=12,maxHeight:i=24,bgcolor:n="",icon:r,label:o,color:a="default",TypographyProps:l={},...c}=e;return s(L,{color:a,icon:r,sx:[e=>({transition:e.transitions.create("backgroundColor"),"& .MuiChip-label":{lineHeight:0},backgroundColor:n,maxHeight:i}),...Array.isArray(c?.sx)?c.sx:[c?.sx]],label:s(v,{noWrap:!0,fontFamily:"inherit",fontSize:t,variant:"subtitle1",...l,children:o}),...c})}),So=e=>s(Eo,{fontSize:16,sx:e=>({backgroundColor:e.palette.common.white,"& .MuiChip-label":{pl:.75}}),...e}),Io={"green-spaces":{icon:s(_t,{}),name:"parks"},"food-and-drink":{icon:s(At,{}),name:"restaurants"},shopping:{icon:s(bt,{}),name:"shopping"},education:{icon:s(yt,{}),name:"schools"},fitness:{icon:s(wt,{}),name:"gyms"},"public-transport":{icon:s(Rt,{}),name:"public transport"},landform:{icon:s(vt,{}),name:"beaches"}},Mo={OUTSTANDING:{threshold:9,getCopy:e=>`Ideal for ${e}`},GREAT:{threshold:7,getCopy:e=>`Great for ${e}`},GOOD:{threshold:5,getCopy:e=>`Good for ${e}`}},Po=e=>{const t=Object.keys(e);if(!t.length)return[];const i=Object.keys(Mo);return t.filter(t=>e[t]>=Mo.GOOD.threshold).map(t=>{const n=e[t],r=i.find(e=>n>=Mo[e].threshold),{getCopy:o}=Mo[r||"GOOD"],s=Io[t];return{id:t,icon:s?.icon,label:s?.name?o(s?.name):`${t} (Unknown)`,score:n}}).sort((e,t)=>t.score-e.score)},Do=e=>{let{scores:t}=e;const i=Po(t);return i.length?s(b,{gap:1,direction:"row",flexWrap:"wrap",children:i.map((e,t)=>s(Eo,{fontSize:14,...e,sx:{maxWidth:"fit-content"}},`${e?.label}-${t}`))}):s(l,{})},Lo=(e,t)=>`${t} ${e}${t<2?"":"s"}`,zo=e=>{let t,{bedrooms:i=0,isShared:n=!1,disablePlural:r=!1,isShort:o=!1,disableText:s=!1}=e;return t=n?"Room":i?s?`${i}`:r?`${i} ${o?"Bed":"Bedroom"}`:Lo(o?"Bed":"Bedroom",i):s?"St":"Studio",t},Oo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"AED",i="";return i=e>0?new Intl.NumberFormat("en-Gb",{style:"currency",currency:t,minimumFractionDigits:0,maximumFractionDigits:0}).format(e):"POA",i};var Ro;!function(e){e.Rent="rent",e.Sale="sale"}(Ro||(Ro={}));const ko=e=>{let{property:t,loading:i,currency:n,id:r,disableCarousel:o=!1,isPopover:c=!1,isMapPopover:h=!1,children:u,header:d,tagColor:p="success",sx:f,onClick:m}=e;const _=t?.listing_type===Ro.Rent,A=0!==t?.price;return a(g,{id:r,sx:[e=>({display:"flex",flexDirection:"column",overflow:"hidden",borderRadius:c&&!h?0:h?"10px":"20px",transition:e.transitions.create("boxShadow"),textDecoration:"none",WebkitTapHighlightColor:"transparent !important",...m&&{cursor:"pointer"},"&:hover":{boxShadow:"0px 11px 30px rgba(82, 78, 183, 0.08)"}}),...Array.isArray(f)?f:[f]],...m?{onClick:m}:{},children:[s(g,{position:"relative",display:"flex",flexDirection:"column",overflow:"hidden",children:i?s(z,{variant:"rectangular",width:"100%",height:"200px"}):a(l,{children:[c||o||1===t?.images.length||t?.image_url?s(g,t?.images?.[0]??t?.image_url?{component:"img",src:t?.images?.[0]??t?.image_url,sx:{objectFit:"cover",aspectRatio:"16/9"}}:{position:"relative",sx:{objectFit:"cover",aspectRatio:"16/9",overflow:"hidden"},children:s(rr,{})}):s(g,{id:r,position:"relative",sx:{objectFit:"cover",aspectRatio:"16/9",overflow:"hidden"},children:s(To,{id:r,lazyLoad:"progressive",images:t?.images||[],sx:{width:"100%",height:"100%"},imageSX:{backgroundColor:"rgba(51, 51, 51, 0.1)"}})}),d&&s(b,{direction:"row",sx:{position:"absolute",top:10,left:10,right:10,gap:1,zIndex:2,lineHeight:"27px"},flexWrap:"nowrap",justifyContent:"space-between",alignItems:"flex-start",children:d})]})}),a(b,{direction:"column",gap:"10px",padding:c?"10px 12px 12px":"10px 12px 24px",children:[i?s(z,{variant:"rectangular",width:"100%",height:"18"}):a(b,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[a(v,{noWrap:c,variant:"h5",sx:c?{maxWidth:"60%",fontSize:16,fontWeight:400}:{fontSize:18},children:["string"==typeof t?.price?t?.price:Oo(t?.price||0,n),_&&A&&!c?" Yearly":""]}),s(Eo,{fontSize:14,color:p,icon:s(Ct,{}),variant:"outlined",label:zo({bedrooms:t?.num_bedrooms,isShared:t?.is_shared,isShort:!0,disableText:h}),sx:e=>({border:"none",backgroundColor:O(e.palette[p].main,.1)})})]}),i?s(z,{variant:"rectangular",width:"100%",height:"18"}):s(v,{noWrap:!0,variant:"body2",color:"text.secondary",sx:e=>({[e.breakpoints.down("sm")]:{fontSize:"16px"}}),children:t?.displayable_address}),i?s(z,{variant:"rectangular",width:"100%",height:"18"}):u]})]})},Bo=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s";return`${e?.toLocaleString?.()} ${t}${1!==e?i:""}`},Fo=e=>e?.length>0?e[0].toUpperCase()+e.slice(1).toLowerCase():"",No=e=>{const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})},Vo=e=>{let{loading:t=!1,sortValue:i,totalCount:n,badgeContent:r,small:o=!1,showSortMenu:l=!1,title:c,onClickFilters:u,updateSortingValue:d}=e;const p=h(e=>e.breakpoints.down("lg"));return s(g,{pt:[3,4,5],px:[2,4.5,3],pl:[2,4.5,4.5],pb:1,bgcolor:"white",position:"sticky",sx:{top:0,zIndex:5},children:a(b,{direction:"row",alignItems:"center",sx:e=>({gap:2,paddingBottom:"6px",borderBottom:[`1px solid ${e.palette.grey[400]}`,"none"]}),children:[s(v,{flex:1,variant:"h3",sx:{display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical",overflow:"hidden"},children:c}),a(b,{gap:1,children:[a(g,{display:"flex",alignItems:"center",children:[s(kt,{badgeContent:r,small:p||o,onClick:u}),l&&s(Vt,{small:p||o,sortValue:i,updateSortingValue:d})]}),!t&&!(p||o)&&s(v,{component:"div",mt:1,mr:1.5,textAlign:"right",children:void 0!==n&&`${Bo(n,1!==n?"Propert":"Property","ies")}`})]})]})})},jo=new Array(4).fill(void 0),Uo=e=>{let{title:t,loading:i,sortValue:n,showSortMenu:r,badgeContent:o,properties:c,loadMoreLoading:h,onLoadMore:u,totalCount:d,onClickMapButton:p,renderItem:f,onClickFilters:m,updateSortingValue:_}=e;return a(b,{flex:1,children:[s(Vo,{showSortMenu:r,sortValue:n,totalCount:d,badgeContent:o,title:t,loading:i,onClickFilters:m,updateSortingValue:_}),a(b,{flex:1,overflow:"auto",p:[2,2,1],pr:[2,2,1],pt:0,children:[!i&&!c?.length&&s(g,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",mt:2,pb:10,children:a(v,{variant:"h4",align:"center",children:["Oops! ",s("br",{}),"Looks like we don't have properties matching your needs"]})}),s(g,{sx:{display:"grid",gap:3,gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gridAutoRows:"min-content",mb:3,px:[0,2]},children:i?jo.map((e,t)=>s(ko,{loading:!0},t)):c?.map((e,t)=>s(_e,{children:f?.({property:e},t)||s(l,{})},e?.id))}),u&&s(at,{shape:"srect",variant:"outlined",disabled:h,onClick:u,sx:{margin:"0 auto",marginBottom:["100px",0]},children:h?s(R,{size:24}):"Load More"})]}),s(at,{color:"success",shape:"srect",sx:{position:"sticky",bottom:14,left:"50%",transform:"translateX(-50%)",display:["flex","none"],zIndex:2},onClick:p,children:"Show Map"})]})},Ho=[void 0,1,2,3,4],Go=e=>{let{selected:t,onClick:i}=e;return a(Fe,{children:[s(Re,{variant:"h4",color:"text.secondary",mb:1,children:"Bedrooms"}),s(Be,{direction:"row",justifyContent:"space-between",flexWrap:"wrap",gap:.5,children:Ho.map(e=>s(at,{shape:"square",onClick:()=>i(e),variant:e===t?"contained":"outlined",children:void 0===e?"Studio+":`${e}+`},e??"studio"))})]})},Zo=e=>e.replace(/,/g,""),Wo=e=>{const t=parseInt(Zo(e));return isNaN(t)?void 0:t},qo=e=>{if(""===e)return"";const t="number"==typeof e?e:parseFloat(e);return new Intl.NumberFormat("en-US").format(t)},Xo=e=>{let{title:t="Price",minPrice:i,maxPrice:n,onSubmit:r}=e;const[o,l]=pe(i?.toString()??""),[c,h]=pe(n?.toString()??"");fe(()=>{l(i?.toString()??""),h(n?.toString()??"")},[i,n]);const u=e=>{const t=Zo(e.target.value),i=parseInt(t);isNaN(i)&&""!==e.target.value||("min-price"===e.target.name?l(t):h(t))},d=()=>{const e=o?Wo(o):void 0,t=c?Wo(c):void 0;if(e&&t&&e>t)return l(t.toString()),h(e.toString()),void r(t,e);r(e,t)};return a(g,{width:"100%",textAlign:"left",children:[a(v,{variant:"h4",color:"text.secondary",mb:.5,children:[t," (",process.env.NEXT_PUBLIC_CURRENCY,")"]}),a(Be,{direction:"row",gap:[.5,2],children:[a(g,{flex:1,children:[s(v,{variant:"body1",fontSize:"14px",color:"#767676",children:"Min"}),s(Ve,{value:qo(o),onChange:u,onBlur:d,fullWidth:!0,color:"secondary",placeholder:"0",name:"min-price",autoComplete:"min-price"})]}),s(g,{sx:{width:"18px",marginBottom:"26px",borderBottom:"1px solid #6D747C"}}),a(g,{flex:1,children:[s(v,{variant:"body1",fontSize:"14px",color:"#767676",children:"Max"}),s(Ve,{value:qo(c),onChange:u,onBlur:d,fullWidth:!0,color:"secondary",placeholder:"Any",name:"max-price",autoComplete:"max-price"})]})]})]})},$o=[{label:"Rent",value:"rent"},{label:"Buy",value:"sale"}],Yo=e=>{let{selected:t,options:i=$o,title:n="Purpose",onChange:r}=e;return a(g,{children:[s(Re,{variant:"h4",color:"text.secondary",mb:1,children:n}),s(b,{direction:"row",gap:1.5,children:i?.map(e=>s(at,{variant:t===e.value?"contained":"outlined",sx:{maxWidth:100},onClick:()=>r(e.value),children:e.label},e.label))})]})},Qo=[{label:"Apartment",value:"apartment"},{label:"Villa",value:"villa"},{label:"Townhouse",value:"townhouse"},{label:"Penthouse",value:"penthouse"},{label:"Hotel Apartment",value:"hotel_apartment"},{label:"Villa Compound",value:"villa_compound"},{label:"Residential Floor",value:"residential_floor"},{label:"Residential Building",value:"residential_building"}],Ko=e=>{let{selected:t=[],options:i=Qo,title:n="Property Type",onChange:r}=e;return a(g,{children:[s(Re,{variant:"h4",color:"text.secondary",mb:1.5,children:n}),s(b,{direction:"row",alignItems:"center",flexWrap:"wrap",gap:1,children:i?.map(e=>s(je,{invisible:!t?.includes(e.value),badgeContent:s(De,{color:"primary",sx:{fontSize:20}}),sx:{"& .MuiBadge-badge":{p:0,width:18,height:18,top:5,right:5,backgroundColor:"white"}},children:s(at,{variant:"outlined",sx:i=>({...t?.includes(e.value)?{borderColor:i.palette.primary.main+"!important"}:{},"&:hover":{borderColor:i.palette.primary.main+"!important"},"&:active":{borderColor:i.palette.primary.main+"!important"}}),onClick:()=>{return i=e.value,void(t&&t?.includes(i)?r(t?.filter(e=>e!==i)||[]):r([...t||[],i]));var i},children:s(g,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",component:"span",children:s(Re,{variant:"subtitle2",children:e?.label})})})},e.value))})]})},Jo=[{icon:e=>{let{sx:t={},...i}=e;return s(d,{width:"40",height:"40",viewBox:"0 0 40 40",sx:{fill:"none",...t},...i,children:s("path",{d:"M2.36975 38H37.8698M10.3698 18V38M8 23L10.3698 25.5M12 19L10.3698 21M32.8698 27.5V38M16.3698 10.5C15.8698 7.5 18.3698 6 19.8698 5.99997C20.9878 5.99995 20.3698 2 24.3698 2C27.5698 2 28.3698 4.66665 28.3698 5.99997C29.3698 5.99997 30.8698 6.49997 31.3698 7.5C31.8698 8.50003 31.8698 9.5 31.3698 10.5C32.7031 11.1667 34.6698 12.8 33.8698 16C33.0698 19.2 32.156 18.7632 31.656 19.1632M18.3698 21C19.3698 22.5 21.3698 22.5 22.3698 22C23.1698 21.6 24.0364 20.8333 24.3698 20.5C25.0364 21.3333 26.4149 22.4 28.4149 22M24.3698 14V38M24.3698 18.5L22.5 16.5M10.3697 29C4.86975 29 -0.630255 24 3.36974 12.5C5.97844 5 7.86975 2 10.3697 2C12.8697 2 15.3698 7 17.3698 13.5C20.3471 23.1765 15.3698 29 10.3697 29ZM37.8698 24.5C37.8698 27.5376 35.6312 30 32.8698 30C30.1083 30 27.8698 27.5376 27.8698 24.5C27.8698 21.4624 30.1083 19 32.8698 19C35.6312 19 37.8698 21.4624 37.8698 24.5Z",stroke:"#2E3841",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})},title:"Green Spaces",display_name:"Green Spaces",slug:"green-spaces"},{icon:e=>{let{sx:t={},...i}=e;return s(d,{width:"32",height:"38",viewBox:"0 0 32 38",sx:{fill:"none",...t},...i,children:s("path",{d:"M16.2728 20.2681L16.2852 20.3H16.3194H18.0154H18.0891L18.0619 20.2315L13.5499 8.88753L13.5373 8.85601H13.5034H11.6954H11.6615L11.649 8.88753L7.13695 20.2315L7.10971 20.3H7.18341H8.86341H8.89794L8.91017 20.2677L10.0979 17.132H15.0532L16.2728 20.2681ZM23.9092 19.3709C23.9158 19.686 23.9421 19.9817 23.9882 20.2582L23.9952 20.3H24.0375H25.5095H25.5686L25.5589 20.2418C25.4954 19.8609 25.4635 19.4424 25.4635 18.986V15.13C25.4635 14.2971 25.1981 13.612 24.6651 13.0789C24.1295 12.5324 23.3087 12.264 22.2135 12.264C21.3716 12.264 20.6458 12.5017 20.0389 12.9785C19.431 13.4454 19.0879 14.0551 19.0118 14.805L19.0074 14.8487L19.0502 14.8587L20.4902 15.1947L20.5449 15.2075L20.5512 15.1517C20.6034 14.6922 20.775 14.3306 21.0636 14.0627L21.0642 14.062C21.3515 13.785 21.7433 13.644 22.2455 13.644C22.7934 13.644 23.1951 13.7705 23.4596 14.0147C23.7259 14.2605 23.8595 14.5775 23.8595 14.97C23.8595 15.1248 23.8138 15.2414 23.7267 15.3262C23.6384 15.412 23.5021 15.4706 23.3108 15.4965L23.3103 15.4965L21.2308 15.8005C21.2307 15.8005 21.2306 15.8005 21.2305 15.8005C20.5186 15.8976 19.943 16.1518 19.5073 16.5655C19.0692 16.971 18.8515 17.513 18.8515 18.186C18.8515 18.8298 19.0977 19.3866 19.587 19.8542L19.5874 19.8546C20.0781 20.3125 20.7096 20.54 21.4775 20.54C22.1028 20.54 22.6246 20.4107 23.0399 20.1485C23.04 20.1484 23.0401 20.1483 23.0402 20.1483L23.9092 19.3709ZM5.4801 0.95C4.47371 0.95 3.33722 1.23956 2.44028 2.02222C1.52232 2.82322 0.95 4.05825 0.95 5.75V33.25C0.95 34.5782 1.21072 35.7409 2.08983 36.5321C2.94415 37.301 4.20211 37.55 5.75 37.55H30.75C31.1918 37.55 31.55 37.1918 31.55 36.75C31.55 36.3082 31.1918 35.95 30.75 35.95H5.75C4.29788 35.95 3.55585 35.699 3.16017 35.3429C2.78921 35.009 2.55 34.4217 2.55 33.25V32.75C2.55 31.7398 2.94244 31.0921 3.44409 30.6817C3.97071 30.2508 4.66007 30.05 5.25 30.05H30.75C31.1918 30.05 31.55 29.6918 31.55 29.25V1.75C31.55 1.30817 31.1918 0.95 30.75 0.95H5.4801ZM5.4801 2.55H29.95V28.45H5.25C4.38204 28.45 3.37712 28.7222 2.55 29.3495V5.75C2.55 4.44182 2.97763 3.67682 3.49224 3.22778C4.02787 2.76041 4.75645 2.55 5.4801 2.55ZM14.4545 15.576H10.6959L12.5598 10.6776L14.4545 15.576ZM23.2682 18.6447C22.8741 18.9974 22.3483 19.176 21.6855 19.176C21.3232 19.176 21.0324 19.0678 20.8085 18.8542C20.5935 18.6391 20.4875 18.3904 20.4875 18.106C20.4875 17.7863 20.5851 17.5391 20.7759 17.3583C20.9696 17.1748 21.2314 17.0556 21.565 17.0035C21.5651 17.0034 21.5652 17.0034 21.5653 17.0034L23.8595 16.66V16.954C23.8595 17.7357 23.6589 18.2952 23.2682 18.6447Z",fill:"#2E3841",stroke:"#2E3841",strokeWidth:"0.1"})})},title:"Schools",display_name:"Schools",slug:"education"},{icon:e=>{let{sx:t={},...i}=e;return a(d,{width:"36",height:"37",viewBox:"0 0 36 37",sx:{fill:"none",...t},...i,children:[s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.4737 26.4677C20.0177 26.4286 17.1728 26.3964 14.2632 28.9422C13.9511 29.2153 13.4767 29.1837 13.2036 28.8716C12.9305 28.5595 12.9621 28.0851 13.2743 27.812C16.639 24.8678 20.0683 24.9157 23.5051 24.9637C23.9405 24.9698 24.3761 24.9759 24.8116 24.9759H33.2042C33.619 24.9759 33.9552 25.3121 33.9552 25.7268C33.9552 26.1415 33.619 26.4777 33.2042 26.4777H24.8116C24.355 26.4777 23.9095 26.4727 23.4737 26.4677Z",fill:"#414141"}),s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5312 15.7247L25.5066 25.4425L24.1166 26.0111L20.1412 16.2934L21.5312 15.7247Z",fill:"#414141"}),s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.3832 7.67001C24.502 6.41616 20.8505 5.76275 17.5661 6.99438C13.9403 8.35405 11.5255 11.2746 10.2288 13.9937C9.58079 15.3525 9.22994 16.6249 9.13862 17.5779C9.09263 18.0578 9.11618 18.4191 9.17544 18.6566C9.2125 18.8051 9.25163 18.8639 9.26508 18.8808L9.28753 18.892L9.3052 18.9038C9.3198 18.9074 9.3731 18.9201 9.48679 18.9217C9.66453 18.9241 9.91499 18.8989 10.2464 18.8364C10.9075 18.7116 11.7831 18.4597 12.8394 18.1102C14.25 17.6434 15.9195 17.0243 17.7444 16.3476C18.6551 16.0099 19.6045 15.6579 20.5796 15.3033C21.8088 14.8563 23.1736 14.4108 24.5187 13.9762C24.6768 13.9251 24.8346 13.8742 24.9919 13.8234C26.1781 13.4407 27.3352 13.0673 28.3741 12.7049C29.5571 12.2923 30.5502 11.9061 31.239 11.5521C31.5866 11.3734 31.8184 11.222 31.953 11.1034C31.9674 11.0908 31.9796 11.0794 31.99 11.0694C31.9859 11.0582 31.9811 11.0458 31.9753 11.0321C31.9396 10.948 31.8777 10.8375 31.7799 10.7023C31.5833 10.4308 31.2754 10.1065 30.857 9.75402C30.0225 9.05109 28.8166 8.29381 27.3832 7.67001ZM32.9963 9.82161C33.2709 10.2008 33.5135 10.6637 33.5135 11.1501C33.5135 11.6508 33.1915 12.0139 32.9457 12.2304C32.6749 12.469 32.3166 12.6868 31.9256 12.8878C31.1375 13.2929 30.0601 13.7074 28.8688 14.1229C27.8119 14.4916 26.6365 14.8709 25.4529 15.2528C25.2955 15.3036 25.1379 15.3544 24.9804 15.4053C23.6338 15.8404 22.2931 16.2783 21.0928 16.7147C20.143 17.0601 19.2068 17.4072 18.3018 17.7428C16.4597 18.4258 14.7469 19.0609 13.3112 19.536C12.2398 19.8905 11.2873 20.1682 10.5249 20.3121C10.1446 20.3839 9.78445 20.4278 9.4659 20.4234C9.17919 20.4194 8.83226 20.3762 8.53421 20.1936C8.05761 19.936 7.82647 19.4538 7.71828 19.0201C7.60323 18.559 7.58826 18.0124 7.64363 17.4346C7.75503 16.2721 8.16646 14.8292 8.87324 13.3472C10.2861 10.3845 12.9511 7.12106 17.0388 5.58816C20.8219 4.16951 24.9005 4.9517 27.9824 6.29293C29.5306 6.96668 30.8646 7.79681 31.8245 8.60537C32.3033 9.00868 32.7064 9.42108 32.9963 9.82161Z",fill:"#414141"}),s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3271 2.85143C16.7143 2.70304 17.1486 2.89669 17.2969 3.28396L18.3571 6.05092L16.9547 6.58827L15.8945 3.82131C15.7461 3.43405 15.9398 2.99981 16.3271 2.85143Z",fill:"#414141"}),s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.3933 30.2796C27.7242 30.2492 28.0357 30.44 28.1591 30.7485C28.295 31.0882 29.13 32.485 33.2042 32.485C33.619 32.485 33.9552 32.8212 33.9552 33.236C33.9552 33.6507 33.619 33.9869 33.2042 33.9869C29.9879 33.9869 28.2775 33.1623 27.412 32.2764C27.0703 32.5578 26.6304 32.8348 26.1413 33.0794C25.1512 33.5745 23.8571 33.9869 22.6031 33.9869C21.3457 33.9869 20.0864 33.5725 19.1146 33.0766C18.6247 32.8267 18.1875 32.5458 17.843 32.2654C17.8004 32.2307 17.7575 32.1947 17.7148 32.1574C17.6695 32.1958 17.6234 32.2336 17.5767 32.2707C17.2323 32.5446 16.8049 32.8234 16.3242 33.0737C15.3707 33.5704 14.1462 33.9869 12.8853 33.9869C10.8744 33.9869 9.31825 32.9358 8.43344 32.0921C8.06493 32.4098 7.57502 32.7678 6.91622 33.0845C5.84329 33.6003 4.36739 33.9869 2.28412 33.9869C1.8694 33.9869 1.5332 33.6507 1.5332 33.236C1.5332 32.8212 1.8694 32.485 2.28412 32.485C4.1763 32.485 5.42431 32.1354 6.26548 31.731C7.10397 31.3279 7.58286 30.8507 7.93717 30.4964C8.0882 30.3454 8.2964 30.2658 8.50967 30.2776C8.72294 30.2894 8.92108 30.3915 9.05451 30.5583C9.57707 31.2115 11.0038 32.485 12.8853 32.485C13.833 32.485 14.8171 32.1654 15.6304 31.7417C16.0332 31.532 16.3787 31.3046 16.6418 31.0954C16.9189 30.8749 17.0581 30.7112 17.1003 30.641C17.2471 30.3964 17.5198 30.2561 17.8042 30.2789C18.0885 30.3016 18.3354 30.4836 18.4414 30.7485C18.4413 30.7483 18.4416 30.7487 18.4421 30.7496C18.4506 30.7628 18.5317 30.8895 18.7911 31.1007C19.0402 31.3034 19.3851 31.5287 19.7971 31.7388C20.6289 32.1632 21.6518 32.485 22.6031 32.485C23.5576 32.485 24.6193 32.1613 25.4697 31.7361C25.8913 31.5253 26.2352 31.3022 26.4705 31.1062C26.5884 31.0079 26.6658 30.9274 26.7106 30.8702C26.7229 30.8545 26.731 30.8428 26.736 30.8351C26.8162 30.532 27.0778 30.3086 27.3933 30.2796Z",fill:"#414141"})]})},title:"Beaches",display_name:"Beaches",slug:"landform"},{icon:Lt,title:"Public Transport",display_name:"Public Transport",slug:"public-transport"},{icon:e=>{let{sx:t={},...i}=e;return s(d,{width:"41",height:"41",viewBox:"0 0 41 41",sx:{fill:"none",...t},...i,children:s("path",{d:"M14.1362 4.35739V11.4797M16.9851 4.35739V11.4797M11.2872 4.83223C14.1362 3.88259 16.5103 3.88259 19.3592 4.83223C20.3088 8.15597 20.7836 14.8034 19.834 16.2279C18.8844 17.6524 16.9851 17.6524 16.9851 19.5516C16.9851 20.5013 17.4599 28.0984 17.4599 29.9977C17.4599 31.897 17.4599 37.12 15.5606 37.12C13.6613 37.12 13.6613 33.3214 13.6613 29.9977C13.6613 26.674 14.1362 20.0265 14.1362 19.5516C14.1362 19.0768 14.611 18.602 11.7621 16.7027C8.91315 14.8034 11.2872 5.78187 11.2872 4.83223ZM24.5822 4.35739V21.9257C24.5822 23.3502 23.6326 37.12 24.5822 37.12C25.5318 37.12 27.9059 35.6955 27.9059 30.4725C27.9059 25.2495 26.4815 24.2998 26.4815 21.9257C26.4815 19.5516 29.8052 16.7027 29.8052 12.9041C29.8052 7.65959 26.4815 5.62357 24.5822 4.35739Z",stroke:"#2E3841",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})},title:"Restaurants & Cafes",display_name:"Restaurants & Cafes",slug:"food-and-drink"},{icon:e=>{let{sx:t={},...i}=e;return a(d,{width:"41",height:"41",viewBox:"0 0 41 41",sx:{fill:"none",...t},...i,children:[s("g",{clipPath:"url(#clip0_2157_1693)",children:s("path",{d:"M16.4908 17.1047C16.0214 17.1047 15.6408 17.4852 15.6408 17.9547C15.6408 18.4241 16.0214 18.8047 16.4908 18.8047V17.1047ZM24.7727 18.8047C25.2421 18.8047 25.6227 18.4241 25.6227 17.9547C25.6227 17.4852 25.2421 17.1047 24.7727 17.1047V18.8047ZM16.184 22.2808C15.7146 22.2808 15.334 22.6614 15.334 23.1308C15.334 23.6003 15.7146 23.9808 16.184 23.9808V22.2808ZM24.7727 23.9808C25.2421 23.9808 25.6227 23.6003 25.6227 23.1308C25.6227 22.6614 25.2421 22.2808 24.7727 22.2808V23.9808ZM26.9467 8.97H29.8453V7.27H26.9467V8.97ZM30.6517 9.77636V31.3092H32.3517V9.77636H30.6517ZM29.8453 32.1155H26.9467V33.8155H29.8453V32.1155ZM26.1403 31.3092V9.77636H24.4403V31.3092H26.1403ZM26.9467 32.1155C26.5013 32.1155 26.1403 31.7545 26.1403 31.3092H24.4403C24.4403 32.6934 25.5624 33.8155 26.9467 33.8155V32.1155ZM30.6517 31.3092C30.6517 31.7545 30.2906 32.1155 29.8453 32.1155V33.8155C31.2295 33.8155 32.3517 32.6934 32.3517 31.3092H30.6517ZM29.8453 8.97C30.2906 8.97 30.6517 9.33102 30.6517 9.77636H32.3517C32.3517 8.39213 31.2295 7.27 29.8453 7.27V8.97ZM26.9467 7.27C25.5624 7.27 24.4403 8.39213 24.4403 9.77636H26.1403C26.1403 9.33102 26.5013 8.97 26.9467 8.97V7.27ZM31.5017 12.0757H34.9179V10.3757H31.5017V12.0757ZM35.7243 12.8821V28.2035H37.4243V12.8821H35.7243ZM34.9179 29.0098H31.5017V30.7098H34.9179V29.0098ZM35.7243 28.2035C35.7243 28.6488 35.3633 29.0098 34.9179 29.0098V30.7098C36.3022 30.7098 37.4243 29.5877 37.4243 28.2035H35.7243ZM34.9179 12.0757C35.3633 12.0757 35.7243 12.4367 35.7243 12.8821H37.4243C37.4243 11.4978 36.3022 10.3757 34.9179 10.3757V12.0757ZM36.6778 18.2871H38.0236V16.5871H36.6778V18.2871ZM38.83 19.0934V21.9921H40.53V19.0934H38.83ZM38.0236 22.7985H36.6778V24.4985H38.0236V22.7985ZM38.83 21.9921C38.83 22.4374 38.469 22.7985 38.0236 22.7985V24.4985C39.4078 24.4985 40.53 23.3763 40.53 21.9921H38.83ZM38.0236 18.2871C38.469 18.2871 38.83 18.6481 38.83 19.0934H40.53C40.53 17.7092 39.4078 16.5871 38.0236 16.5871V18.2871ZM14.2133 7.27H11.3147V8.97H14.2133V7.27ZM8.8083 9.77636V31.3092H10.5083V9.77636H8.8083ZM11.3147 33.8155H14.2133V32.1155H11.3147V33.8155ZM16.7197 31.3092V9.77636H15.0197V31.3092H16.7197ZM14.2133 33.8155C15.5975 33.8155 16.7197 32.6934 16.7197 31.3092H15.0197C15.0197 31.7545 14.6587 32.1155 14.2133 32.1155V33.8155ZM8.8083 31.3092C8.8083 32.6934 9.93044 33.8155 11.3147 33.8155V32.1155C10.8693 32.1155 10.5083 31.7545 10.5083 31.3092H8.8083ZM11.3147 7.27C9.93044 7.27 8.8083 8.39213 8.8083 9.77636H10.5083C10.5083 9.33102 10.8693 8.97 11.3147 8.97V7.27ZM14.2133 8.97C14.6587 8.97 15.0197 9.33102 15.0197 9.77636H16.7197C16.7197 8.39213 15.5975 7.27 14.2133 7.27V8.97ZM9.6583 10.3757H6.24204V12.0757H9.6583V10.3757ZM3.73567 12.8821V28.2035H5.43567V12.8821H3.73567ZM6.24204 30.7098H9.6583V29.0098H6.24204V30.7098ZM3.73567 28.2035C3.73567 29.5877 4.85781 30.7098 6.24204 30.7098V29.0098C5.7967 29.0098 5.43567 28.6488 5.43567 28.2035H3.73567ZM6.24204 10.3757C4.85781 10.3757 3.73567 11.4978 3.73567 12.8821H5.43567C5.43567 12.4367 5.7967 12.0757 6.24204 12.0757V10.3757ZM4.48215 16.5871H3.13635V18.2871H4.48215V16.5871ZM0.62998 19.0934V21.9921H2.32998V19.0934H0.62998ZM3.13635 24.4985H4.48215V22.7985H3.13635V24.4985ZM0.62998 21.9921C0.62998 23.3763 1.75212 24.4985 3.13635 24.4985V22.7985C2.691 22.7985 2.32998 22.4374 2.32998 21.9921H0.62998ZM3.13635 16.5871C1.75212 16.5871 0.62998 17.7092 0.62998 19.0934H2.32998C2.32998 18.6481 2.691 18.2871 3.13635 18.2871V16.5871ZM16.4908 18.8047H24.7727V17.1047H16.4908V18.8047ZM16.184 23.9808H24.7727V22.2808H16.184V23.9808Z",fill:"#2E3841"})}),s("defs",{children:s("clipPath",{id:"clip0_2157_1693",children:s("rect",{width:"40",height:"40",fill:"white",transform:"translate(0.47998 0.119995)"})})})]})},title:"Fitness",display_name:"Fitness",slug:"fitness"},{icon:e=>{let{sx:t={},...i}=e;return s(d,{width:"41",height:"41",viewBox:"0 0 41 41",sx:{fill:"none",...t},...i,children:s("path",{d:"M4.33076 8.31819V4.12H36.8668V8.31819H20.5988H4.33076ZM4.33076 8.31819C3.45614 11.4668 2.65148 17.7641 6.42985 17.7641C7.47941 17.7641 9.05373 17.2394 9.05373 16.7146C10.1033 18.2889 13.7767 18.2889 14.8263 16.7146C15.8758 18.2889 19.5492 18.2889 20.5988 16.7146C22.1731 19.3385 25.8465 17.7641 26.3713 16.7146C26.8961 18.2889 31.0943 18.8137 32.1438 16.7146M36.8707 8.31819C37.7453 11.4668 38.5461 18.079 34.7677 18.079C33.7181 18.079 32.1438 17.2394 32.1438 16.1898M4.33076 17.2394V36.656H36.8668V17.2394M25.3218 36.1313V21.9623H32.6686V36.1313M8.52896 21.9623V31.9331H21.1236V21.9623H8.52896Z",stroke:"#2E3841",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})},title:"Shops & Supermarkets",display_name:"Shops & Supermarkets",slug:"shopping"}],es=e=>{let{disableTitle:t,selected:i=[],options:n=Jo,title:r="Lifestyle Preferences",onChange:o,...l}=e;return a(g,{children:[!t&&s(Re,{variant:"h4",color:"text.secondary",mb:1.5,children:r}),s(b,{direction:"row",alignItems:"center",flexWrap:"wrap",gap:[3,1.3,1.3],sx:e=>({[e.breakpoints.down("sm")]:{maxWidth:"84%",margin:"0 auto"},"@media (max-width: 430px)":{maxWidth:"81%"},"@media (max-width: 415px)":{maxWidth:"84%"},"@media (max-width: 400px)":{maxWidth:"94%"},"@media (max-width: 360px)":{maxWidth:"100%"},"@media (max-width: 320px)":{maxWidth:"97.5%"},"@media (max-width: 280px)":{maxWidth:"50%"}}),...l,children:n?.map((e,t)=>{let{icon:n,...r}=e;return s(je,{invisible:!i?.includes(r.slug),badgeContent:s(De,{color:"primary",sx:{fontSize:30}}),sx:{"& .MuiBadge-badge":{p:0,width:25,height:25,top:5,right:5,backgroundColor:"white"}},children:s(at,{variant:"outlined",sx:e=>({width:107,px:.5,height:97,color:e.palette.text.primary,...i?.includes(r.slug)?{borderColor:e.palette.primary.main+"!important"}:{},"&:hover":{borderColor:e.palette.primary.main+"!important"},[e.breakpoints.down("sm")]:{width:132,height:121},"@media (max-width: 320px)":{width:110,height:97}}),onClick:()=>{return e=r.slug,void(i&&i?.includes(e)?o(i?.filter(t=>t!==e)||[]):o([...i||[],e]));var e},children:a(g,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",component:"span",children:["string"==typeof n&&n?.length>0&&s(g,{component:"span",width:35,height:35,dangerouslySetInnerHTML:{__html:n}}),"string"!=typeof n&&s(n,{sx:{fontSize:35}}),s(Re,{variant:"subtitle2",children:r?.display_name||r?.title})]})})},`${r.title}-${t}`)})})]})},ts=i(e=>{let{className:t,...i}=e;return s(k,{...i,arrow:!0,classes:{popper:t}})})(e=>{let{theme:t,maxWidth:i,placement:n}=e;return{[`& .${B.arrow}`]:{color:"#2E3841",[t.breakpoints.down("md")]:"bottom"===n?{marginLeft:t.spacing(-1.25)+" !important"}:{}},[`& .${B.tooltip}`]:{padding:t.spacing(1.5,2),backgroundColor:"#2E3841",borderRadius:"15px",...i?{maxWidth:i}:{},[t.breakpoints.down("md")]:"bottom"===n||"top"===n?{marginLeft:t.spacing(5.5)+" !important"}:{},[t.breakpoints.down("sm")]:"bottom"===n||"top"===n?{marginLeft:t.spacing(3)+" !important"}:{},"@media (max-width: 320px)":{maxWidth:270}}}}),is=e=>{let{disableTooltip:t=!1,placement:i="right",open:n=!1,maxWidth:r=292,title:o,children:a,closeTooltip:l,sx:c={},boxSx:h={},...u}=e;const[d,p]=pe(n),f=()=>{p(!1),l?.()},_=e=>{e.preventDefault(),e.stopPropagation(),p(!0)};return fe(()=>{t||(n?(p(!0),setTimeout(()=>{p(!1),l?.()},3500)):p(!1))},[n]),t?a:s(ts,{open:d,title:o,leaveTouchDelay:4e3,enterTouchDelay:50,placement:i,onClose:f,onOpen:_,maxWidth:r,sx:c,...u,children:s(g,{component:"span",maxWidth:"fit-content",sx:[...Array.isArray(h)?h:[h]],onClick:_,children:s(m,{disableReactTree:!0,onClickAway:f,children:a})})})},ns=e=>{let{sx:t={},children:i}=e;return s(v,{component:g,variant:"h6",sx:t,children:i})},rs=e=>{let{error:t}=e;return t?s(v,{align:"center",color:"error",fontSize:12,lineHeight:"15.6px",sx:{pt:.5},children:t}):null},os=D(F)(e=>{let{multiline:t}=e;return{fontFamily:"Poppins","& input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},'& input[type="number"]':{MozAppearance:"textfield"},".MuiOutlinedInput-root":{fontFamily:"Poppins",borderRadius:t?"20px":"100px","input::-webkit-outer-spin-button, input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},'input[type="number"]':{MozAppearance:"textfield"}},".MuiFormHelperText-root":{textAlign:"center"}}}),ss=be((e,t)=>{let{minWidth:i,isClearable:r=!1,disabled:o=!1,fullWidth:l=!0,showTooltip:c=!1,openTooltip:u=!1,closeTooltip:d,tooltipTitle:p,type:f="text",label:m=null,sublabel:_=null,helperText:A,error:y,name:x="",defaultValue:C,onChange:T,InputProps:E={},wrapperSx:S={},...I}=e;const M=n(),P=h(M.breakpoints.down("sm")),D=h(M.breakpoints.between("sm","md")),[L,z]=pe(C),O=ge(!1);return fe(()=>{C&&!L&&z(`${C}`)},[C]),a(b,{gap:.5,flex:1,sx:S,children:[m&&s(is,{disableTooltip:!c&&!p,open:u,closeTooltip:d,placement:D?"bottom":P?"top":"right",maxWidth:D?498:P?310:292,title:s(ns,{children:p}),children:a(g,{display:"inline-flex",alignItems:"center",children:[s(v,{variant:"h5",sx:{mr:1},children:m}),c&&!!p&&s(We,{color:"disabled",sx:{fontSize:19,mb:-.25}})]})}),_,s(os,{value:L,fullWidth:l,disabled:o,error:y,type:f,name:x,onChange:e=>{O.current=!0;let t=e.target.value;"number"===f&&t.length>1&&t.startsWith("0")&&(t=t.slice(1)),z(t),T?.(e)},InputProps:{...E,...!E.endAdornment&&r&&!!L&&{endAdornment:s(N,{position:"end",children:s(w,{size:"small",color:y?"error":"default",onClick:()=>{z(void 0),T?.({event:{target:{value:void 0}}})},children:s(Ze,{})})})},sx:{py:I?.multiline?1:.25,"&.MuiOutlinedInput-root":{fontFamily:"CircularStd, sans-serif !important"},"&.MuiInput-root:before":{borderBottomStyle:"solid",borderBottomColor:M.palette.text.primary},...E?.sx||{}}},sx:{minWidth:i,...I.sx},InputLabelProps:{sx:{"&.MuiInputLabel-root":{color:M.palette.text.primary},"&.Mui-focused":{color:M.palette.primary.main}}},...I,ref:t}),A&&s(rs,{error:A})]})});function as(e){let{name:t,label:i,disabled:n=!1,showTooltip:r=!1,openTooltip:o=!1,tooltipTitle:l,closeTooltip:c,width:h=300,placeholder:u="Please select",value:d,inputValue:p,onChange:f,toggleError:m,onNeedFetch:g,..._}=e;const A=ge(!1),[y,v]=pe(!1),[x,b]=pe(null),[w,C]=pe([]),[T,E]=pe(null),[S,I]=pe(""),[M,P]=pe(!1),[D,L]=pe(""),[z,O]=pe(o),k=y&&!M,B=e=>{let{search:t="",loadedOptions:i=[]}=e;g({search:t,loadedOptions:i}).then(e=>{let{options:i}=e;if(C(i),P(!0),t&&0===i.length&&!z){const e=setTimeout(()=>{z||localStorage.getItem("tooltipShown")||O(!0)},500);return()=>clearTimeout(e)}})},F=ye(qe(e=>{let{search:t,loadedOptions:i}=e;B({search:t,loadedOptions:i})},600),[]);return fe(()=>{z&&localStorage.setItem("tooltipShown","true")},[z]),fe(()=>{k&&B({search:"",loadedOptions:[]})},[k]),fe(()=>{"clear"===D&&P(!1),x||"selectOption"!==D||f?.(T)},[x,D,T]),fe(()=>{y||(C([]),P(!1))},[y]),fe(()=>{d&&!T&&(E(d),I(p||""))},[d,p]),fe(()=>{A.current&&(S&&T||(b("Please select a city from the list"),m?.(!0)),S&&T&&(b(null),m?.(!1)))},[A.current,T,S]),s(V,{openOnFocus:!0,open:y,disabled:n,onOpen:()=>v(!0),onClose:()=>v(!1),isOptionEqualToValue:(e,t)=>Xe(e,t),onInputChange:(e,t,i)=>{e&&(L("input"!==i?$e(i)?i:"selectOption":""),"change"===e.type&&F({search:t}),I(t),A.current=!0)},onChange:(e,t,i)=>{L(i),E(t)},value:T,options:w,loading:k,inputValue:S,componentsProps:{paper:{sx:{borderRadius:"20px"}}},sx:{width:["100%",h,h],"&.MuiAutocomplete-root .MuiFormControl-root .MuiInputBase-root":{height:50,fontSize:"16px !important",fontFamily:"CircularStd, sans-serif",flexWrap:"nowrap",overflow:"hidden"}},renderInput:e=>s(ss,{...e,name:t,value:d||T||null,label:i,tooltipTitle:l,showTooltip:r,openTooltip:o||z,closeTooltip:c,error:!!x,helperText:x||null,placeholder:u,InputProps:{...e.InputProps,endAdornment:a(_e,{children:[k?s(R,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})}}),..._})}const ls=be((e,t)=>{let{apiKey:i,location:n,onChange:r,city:o,disabled:l,reset:c,isInvalid:h,isDefault:u,restrictionOptions:d,showLocationIcon:p,helperText:f="Please select commute destination from the list",onPlaceClick:m,sx:_={},disableComponentRestrictions:A,...y}=e;const v=ge(null),[x,b]=pe(n?.name||""),[w,C]=pe([]),T=ge(null),E=ge(null),[S,I]=pe(!1),[M,P]=pe(!1),D=ye(()=>{if(window.google?.maps?.places)return L(),void I(!0);const e="google-maps-script";if(document.getElementById(e)){const e=setInterval(()=>{window.google?.maps?.places&&(clearInterval(e),L(),I(!0))},100);return}const t=document.createElement("script");t.id=e,t.src=`https://maps.googleapis.com/maps/api/js?key=${i}&libraries=places`,t.async=!0,document.head.appendChild(t),t.onload=()=>{L(),I(!0)}},[i]),L=ye(()=>{T.current=new google.maps.places.AutocompleteService,E.current=new google.maps.places.PlacesService(document.createElement("div"))},[]),z=ve(()=>Ke(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;T?.current?.getPlacePredictions?.({input:o&&o?.length>0&&e?.length>0?`${e} ${o}`:e,...A?{}:{componentRestrictions:{country:"ae"}},...d||{}},t)},300),[o,A,d]),O=ye(function(){z(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1?arguments[1]:void 0)},[z]),R=ye(e=>{E.current&&e&&e.place_id&&E.current.getDetails({placeId:e?.place_id},(t,i)=>{i===google.maps.places.PlacesServiceStatus.OK&&t&&(P(!0),r({lat:t?.geometry?.location?.lat()||0,lng:t?.geometry?.location?.lng()||0,name:e?.description||t.formatted_address||t.name}))})},[r,E.current]),k=ye(e=>{e&&E.current?R(e):r(void 0)},[r,R]),B=ye((e,t)=>{t===google.maps.places.PlacesServiceStatus.OK&&e?(C(e),!M&&u&&k(e[0])):C([])},[M,k,u]),F=ye(()=>{const e=v.current?.getElementsByClassName?.("MuiAutocomplete-clearIndicator")?.[0];b(""),k(null),C([]),O("",()=>e?.click?.())},[k,O,v]);return we(t,()=>({reset:F})),fe(()=>{D()},[i]),fe(()=>{S&&L()},[S]),fe(()=>{S&&x.length>1&&T.current&&O(x,B)},[x,S,T.current]),fe(()=>{S&&!M&&n?.name!==x&&b(n?.name||"")},[n?.name,S]),fe(()=>{c&&F()},[c]),s(Ye,{freeSolo:!0,ref:v,disabled:l,options:w,getOptionLabel:e=>"string"==typeof e?e:e.description,inputValue:x,filterOptions:e=>e,filterSelectedOptions:!0,onInputChange:(e,t)=>{t||F(),b(t)},onChange:(e,t)=>k(t),renderInput:e=>s(Ve,{...e,placeholder:"Enter your workplace, school, or station",error:h,helperText:h?f:" ",FormHelperTextProps:{sx:{textAlign:"center"}}}),renderOption:(e,t)=>Ce("li",{...e,key:t.place_id,onClick:i=>{e?.onClick?.(i),m?.(t.description)}},a(g,{children:[p&&s(Qe,{sx:{color:"text.secondary"}}),a(Re,{component:"span",color:"text.secondary",fontWeight:"bold",children:[t.structured_formatting.main_text,","]}),s(Re,{component:"span",variant:"body2",ml:.5,color:"#767676",children:t.structured_formatting.secondary_text})]})),sx:_||{},...y})}),cs=10,hs=120,us=30,ds=(e,t)=>{const i=e??0,n=i%60,r=n>0?` ${n} ${t?"mins":"minutes"}`:"";if(i<60)return t?`${r}`:`Under ${r}`;const o=Math.floor(i/60);return 1===o&&60===i?t?"1 h":`Under 1 hour${r}`:t?`${o} h ${r}`:`Under ${o} hours${r}`},ps=e=>{let t=Math.floor(e/60),i=e%60;return i=i<10?`0${i}`:i,0!==t&&"00"!==i?t>1?`${t} hrs ${i} mins`:`${t} hr ${i} mins`:"00"!==i&&0===t?`${i} mins`:"00"===i&&0!==t?t>1?`${t} hours`:`${t} hour`:"-"},fs=(e,t)=>{const i=e?.[t]?.split("|");return i?.reduce((e,t)=>{const i=t?.split(":");return i&&2===i.length&&(e[i[0]]=i[1]),e},{})};var ms;!function(e){e.public_transport="public_transport",e.driving="driving",e.walking="walking",e.cycling="cycling"}(ms||(ms={}));const gs={public_transport:e=>{let{sx:t={},...i}=e;return a(d,{width:"24",height:"24",viewBox:"0 0 24 24",sx:{fill:"none",...t},...i,children:[s("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"white"}),s("path",{d:"M10.7707 6.62693H13.6721M17.2058 7.64509L18.3392 8.21308V10.027M7.18558 7.64509L6.05225 8.21308V10.027M7.16707 6.9597C7.07467 5.70306 11.269 5.33335 12.2861 5.33333C13.746 5.3333 17.2017 5.9986 17.2017 6.70083V16.8278C17.2017 17.604 16.8137 17.9551 15.8527 18.1214C14.8917 18.2878 13.5981 18.4541 12.2861 18.4171C10.974 18.3802 8.60854 18.3987 7.75846 17.9552C7.14862 17.637 7.16709 17.0127 7.16709 16.2735L7.16707 6.9597ZM9.12597 13.058H15.1874C15.5548 13.058 15.8527 12.7601 15.8527 12.3927V8.62278C15.8527 8.25536 15.5548 7.9575 15.1874 7.9575H9.12597C8.75855 7.9575 8.46069 8.25536 8.46069 8.62278V12.3927C8.46069 12.7601 8.75855 13.058 9.12597 13.058ZM9.97606 15.9778C9.97606 16.4269 9.61202 16.7909 9.16294 16.7909C8.71387 16.7909 8.34982 16.4269 8.34982 15.9778C8.34982 15.5287 8.71387 15.1647 9.16294 15.1647C9.61202 15.1647 9.97606 15.5287 9.97606 15.9778ZM15.9266 15.9778C15.9266 16.4269 15.5626 16.7909 15.1135 16.7909C14.6644 16.7909 14.3004 16.4269 14.3004 15.9778C14.3004 15.5287 14.6644 15.1647 15.1135 15.1647C15.5626 15.1647 15.9266 15.5287 15.9266 15.9778Z",stroke:"#2E3841",strokeWidth:"0.866667",strokeLinecap:"round",strokeLinejoin:"round"})]})},driving:e=>{let{sx:t={},...i}=e;return a(d,{width:"18",height:"18",viewBox:"0 0 18 18",sx:{fill:"none",...t},...i,children:[s("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"white"}),s("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.40724 5.08476L4.8924 7.14411H13.2078L12.693 5.08476C12.6467 5.0708 12.5909 5.05428 12.5262 5.03582C12.3181 4.97634 12.0198 4.89678 11.6615 4.81718C10.9429 4.65748 9.99314 4.4999 9.05011 4.4999C8.10708 4.4999 7.15736 4.65748 6.43868 4.81718C6.08047 4.89678 5.78217 4.97634 5.57399 5.03582C5.50937 5.05428 5.45349 5.0708 5.40724 5.08476ZM12.9432 4.84874L13.0381 4.56414C13.1354 4.59657 13.2094 4.67647 13.2343 4.77598L13.8606 7.28141L14.664 7.9952C15.1083 8.38992 15.2968 9.00008 15.1523 9.57692M15.1523 9.57692L14.5409 12.0229V12.9593C14.5409 13.304 14.2612 13.5837 13.9165 13.5837H12.6188C12.274 13.5837 11.9944 13.304 11.9944 12.9593V12.286H6.10586V12.9593C6.10586 13.304 5.8262 13.5837 5.48144 13.5837H4.18374C3.83897 13.5837 3.55931 13.304 3.55931 12.9593V12.0229L2.94802 9.57713C2.80349 9.00029 2.99194 8.38992 3.4362 7.9952L4.2396 7.28141L4.86597 4.77598C4.89085 4.67647 4.96484 4.59657 5.06214 4.56414L5.15701 4.84874C5.06214 4.56414 5.06209 4.56416 5.06214 4.56414L5.06424 4.56344L5.06915 4.56183L5.08725 4.55594C5.10294 4.55088 5.12579 4.5436 5.15534 4.53441C5.21442 4.51603 5.3003 4.49001 5.40916 4.4589C5.62679 4.39673 5.93678 4.31407 6.30853 4.23147C7.04977 4.06675 8.04659 3.8999 9.05011 3.8999C10.0536 3.8999 11.0505 4.06675 11.7917 4.23147C12.1634 4.31407 12.4734 4.39673 12.6911 4.4589C12.7999 4.49001 12.8858 4.51603 12.9449 4.53441C12.9744 4.5436 12.9973 4.55088 13.013 4.55594L13.0311 4.56183L13.036 4.56344L13.0381 4.56414C13.0381 4.56416 13.0381 4.56414 12.9432 4.84874M4.62218 7.74411L3.83471 8.44374C3.55751 8.69003 3.43975 9.0712 3.53001 9.43122L4.09356 11.686H14.0067L14.5702 9.43143C14.6604 9.07141 14.5427 8.69003 14.2655 8.44374L13.478 7.74411H4.62218ZM4.15931 12.286V12.9593C4.15931 12.9726 4.17034 12.9837 4.18374 12.9837H5.48144C5.49484 12.9837 5.50586 12.9726 5.50586 12.9593V12.286H4.15931ZM12.5944 12.286V12.9593C12.5944 12.9726 12.6054 12.9837 12.6188 12.9837H13.9165C13.9299 12.9837 13.9409 12.9726 13.9409 12.9593V12.286H12.5944ZM5.00786 9.71462C5.00771 9.71708 5.0079 9.72058 5.01072 9.72622C5.21424 10.1322 5.62943 10.3883 6.08292 10.3883H6.45471C6.64784 10.3883 6.80356 10.2326 6.80356 10.0395C6.80356 9.84635 6.64784 9.69063 6.45471 9.69063H5.03308C5.02655 9.69063 5.02322 9.69208 5.02104 9.69334C5.01818 9.695 5.01479 9.69799 5.012 9.70249C5.00921 9.707 5.00806 9.71136 5.00786 9.71462ZM4.47407 9.99455C4.26656 9.57954 4.56884 9.09063 5.03308 9.09063H6.45471C6.97921 9.09063 7.40356 9.51497 7.40356 10.0395C7.40356 10.564 6.97921 10.9883 6.45471 10.9883H6.08292C5.40222 10.9883 4.77925 10.6034 4.47407 9.99455ZM11.6456 9.69063C11.4525 9.69063 11.2968 9.84635 11.2968 10.0395C11.2968 10.2326 11.4525 10.3883 11.6456 10.3883H12.0174C12.471 10.3883 12.8861 10.1319 13.089 9.72622C13.0918 9.72058 13.092 9.71706 13.0918 9.71456C13.0916 9.71126 13.0905 9.70687 13.0877 9.70233C13.0849 9.69779 13.0815 9.69483 13.0787 9.69321C13.0766 9.692 13.0735 9.69063 13.0673 9.69063H11.6456ZM10.6968 10.0395C10.6968 9.51497 11.1211 9.09063 11.6456 9.09063H13.0673C13.5314 9.09063 13.8329 9.57998 13.6256 9.99455C13.3211 10.6037 12.6981 10.9883 12.0174 10.9883H11.6456C11.1211 10.9883 10.6968 10.564 10.6968 10.0395Z",fill:"#2E3841"})]})},walking:e=>{let{sx:t={},...i}=e;return a(d,{width:"18",height:"18",viewBox:"0 0 18 18",sx:{fill:"none",...t},...i,children:[s("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"white"}),s("path",{d:"M6.5 14L7.99995 12.5L8.49993 10.5M8.49993 10.5L8.99991 7M8.49993 10.5L9.99988 12L10.4999 14M8.99991 7L9.99988 9.5L11.4998 10M8.99991 7L7.49996 8.5L6.99998 10.5M10.4999 5C10.4999 5.552 10.0519 6 9.4999 6C8.94791 6 8.49993 5.552 8.49993 5C8.49993 4.448 8.94791 4 9.4999 4C10.0519 4 10.4999 4.448 10.4999 5Z",stroke:"#2E3841",strokeWidth:"0.65",strokeLinecap:"round",strokeLinejoin:"round"})]})},cycling:e=>{let{sx:t={},...i}=e;return s(d,{width:"18",height:"18",viewBox:"0 0 18 18",sx:{fill:"none",...t},...i,children:a("g",{id:"Method/Cycling",children:[s("path",{id:"Ellipse 287",d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"white"}),s("path",{id:"bike_icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M9.85001 5C9.85001 4.83432 9.98433 4.7 10.15 4.7H11.45C11.6157 4.7 11.75 4.83432 11.75 5V6.90132L12.3293 8.63925C12.4656 8.61348 12.6062 8.6 12.75 8.6C13.9927 8.6 15 9.60727 15 10.85C15 12.0927 13.9927 13.1 12.75 13.1C11.5073 13.1 10.5 12.0927 10.5 10.85C10.5 9.96249 11.0137 9.19508 11.7601 8.82887L11.3398 7.56801L9.08427 10.3874C9.0381 10.4451 8.97224 10.4838 8.89933 10.4959L7.19892 10.7793C7.19965 10.8028 7.20001 10.8264 7.20001 10.85C7.20001 12.0927 6.19275 13.1 4.95001 13.1C3.70728 13.1 2.70001 12.0927 2.70001 10.85C2.70001 9.60727 3.70728 8.6 4.95001 8.6C4.97366 8.6 4.99722 8.60037 5.02069 8.60109L5.30409 6.90068C5.3282 6.75602 5.45336 6.65 5.60001 6.65H11.15V5.3H10.15C9.98433 5.3 9.85001 5.16569 9.85001 5ZM10.8258 7.25H6.32428L8.82514 9.75086L10.8258 7.25ZM8.22567 9.99992L5.80009 7.57435L5.61263 8.69914C6.32244 8.91752 6.8825 9.47758 7.10088 10.1874L8.22567 9.99992ZM6.50159 10.2873C6.33525 9.82864 5.97137 9.46477 5.51275 9.29842L5.31498 10.485L6.50159 10.2873ZM4.92083 9.20025C4.02293 9.21582 3.30001 9.94838 3.30001 10.85C3.30001 11.7614 4.03865 12.5 4.95001 12.5C5.85163 12.5 6.58419 11.7771 6.59976 10.8792L4.99933 11.1459C4.90376 11.1618 4.80639 11.1306 4.73788 11.0621C4.66937 10.9936 4.63817 10.8962 4.65409 10.8007L4.92083 9.20025ZM11.9522 9.4053C11.444 9.68649 11.1 10.228 11.1 10.85C11.1 11.7614 11.8386 12.5 12.75 12.5C13.6614 12.5 14.4 11.7614 14.4 10.85C14.4 9.93864 13.6614 9.2 12.75 9.2C12.6725 9.2 12.5962 9.20535 12.5215 9.2157L13.0346 10.7551C13.087 10.9123 13.0021 11.0822 12.8449 11.1346C12.6877 11.187 12.5178 11.1021 12.4654 10.9449L11.9522 9.4053Z",fill:"#2E3841"})]})})}},_s=[{icon:Pt,id:ms.driving},{icon:Lt,id:ms.public_transport},{icon:Dt,id:ms.walking},{icon:Mt,id:ms.cycling}],As=(e,t)=>{switch(e){case ms.cycling:case ms.driving:return{width:"35px",height:"auto",...t&&{path:{fill:"white"}}};case ms.public_transport:return{width:"auto",height:"36px",...t&&{path:{fill:"white"}}};case ms.walking:return{width:"auto",height:"31px",...t&&{path:{stroke:"white"}}};default:return}},ys=e=>{let{disableCheck:t=!1,multiple:i=!1,commute:n,variant:r,isInvalid:o,googleAutocompleteApiKey:l,onChange:c}=e;const h=ve(()=>ds(n.time),[n.time]),u=e=>()=>{if(!i)return c({...n,methods:[e.id]});const t=n.methods.includes(e.id);t&&1===n.methods.length||c({...n,methods:t?n.methods.filter(t=>t!==e.id):n.methods.concat(e.id)})};return a(Be,{children:[s(ls,{location:n?.location,isInvalid:o,apiKey:l,onChange:e=>{c({...n,location:e})}}),a(Be,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[s(Re,{variant:"h4",mb:1,mt:2,children:"Commute Time"}),h]}),s(Fe,{sx:{px:2},children:s(Ge,{value:n.time,onChange:(e,t)=>{c({...n,time:t})},min:10,max:120,step:10,color:"secondary"})}),s(Re,{variant:"h4",mb:1,mt:2,children:"Commute Method(s)"}),s(Be,{direction:"row",justifyContent:"space-between",gap:.5,children:_s.map(e=>a(Fe,{sx:{position:"relative"},children:[!t&&n.methods.includes(e.id)&&s(He,{fontSize:"small",color:"primary",sx:{position:"absolute",right:"-8px",top:"-8px",backgroundColor:"white",zIndex:1}}),s(at,{shape:"square",variant:r&&n.methods.includes(e.id)?r:"outlined",color:r?"primary":n.methods.includes(e.id)?"success":"inherit",onClick:u(e),sx:n.methods.includes(e.id)?[e=>({"&&":{borderColor:e.palette.primary.main,"&:hover":{borderColor:e.palette.primary.main}}}),n.methods.includes(e.id)&&1===n.methods.length&&{cursor:"default"}]:void 0,children:s(e.icon,{sx:As(e.id,n.methods.includes(e.id))})})]},e.id))})]})},vs=e=>{let{scrollIntoSecondCommute:t,disableCheck:i,multiple:n=!1,commutes:r,googleAutocompleteApiKey:o,onChange:l,onAdd:c,variant:h,onRemove:u,boxProps:d={}}=e;return fe(()=>{if(t){const e=document.getElementById("commute-title-2");e&&setTimeout(()=>{e?.scrollIntoView({inline:"center",block:"start",behavior:"smooth"})},0)}},[t]),a(g,{...d,children:[s(b,{gap:"50px",children:r.map((e,t)=>a(_e,{children:[a(g,{children:[a(b,{id:`commute-title-${t+1}`,direction:"row",justifyContent:"space-between",children:[a(Re,{variant:"h4",mb:1,children:["Commute Location ",r.length>1?t+1:""]}),r.length>0&&t>0&&s(w,{onClick:u(e),size:"small",children:s(ze,{})})]}),s(ys,{variant:h,multiple:n,disableCheck:i,commute:e,onChange:l(e),isInvalid:!1,googleAutocompleteApiKey:o})]}),r.length>1&&t!==r.length-1&&s(j,{})]},e.id))}),r.length<2&&s(at,{onClick:c,startIcon:s(Ue,{}),variant:"outlined",shape:"mrect",sx:{mt:"30px"},children:"Second Commute"})]})},xs=e=>{let{areas:t,area:i,isInvalid:n,errorText:r="Please select an area from the list",onChange:o}=e;const[a,l]=pe("");return s(Ye,{value:i,disableClearable:0===i.length||0===a.length,onChange:(e,t)=>{o(t??"")},inputValue:a,onInputChange:(e,t)=>{l(t)},options:t,renderInput:e=>s(Ve,{...e,placeholder:"Location, borough, neighborhood, etc.",error:n,helperText:n?r:" ",FormHelperTextProps:{sx:{textAlign:"center"}}})})},bs=e=>{let{scrollIntoArea:t=!1,index:i=0,allAreas:n,areas:r,onRemove:o,onChange:l,onAdd:c,boxProps:h={}}=e;const u=e=>t=>{l(e)(t)},d=e=>n.filter(t=>!r.some((i,n)=>n!==e&&i.name===t));return fe(()=>{if(t){const e=document.getElementById(`area-title-${i+1}`);e&&setTimeout(()=>{e?.scrollIntoView({inline:"center",block:"start",behavior:"smooth"})},0)}},[t]),a(g,{...h,children:[s(b,{gap:2.5,children:r.map((e,t)=>a(_e,{children:[a(g,{children:[a(b,{id:`area-title-${t+1}`,direction:"row",justifyContent:"space-between",children:[a(Re,{variant:"h4",mb:1,children:["Area Name ",r.length>1?t+1:""]}),r.length>0&&t>0&&s(w,{onClick:o(e),size:"small",children:s(ze,{})})]}),s(xs,{areas:d(t),area:e.name,onChange:u(e)})]}),r.length>1&&t!==r.length-1&&s(j,{sx:{mb:"10px"}})]},e.id))}),r.length<4&&s(at,{onClick:c,startIcon:s(Ue,{}),variant:"outlined",shape:"srect",sx:{mt:"30px"},children:"Add Area"})]})},ws=e=>{let{title:t="See My Matches",isValid:i=!0,isSubmitting:n=!1,onSubmit:r}=e;return a(b,{position:"sticky",sx:e=>({bottom:0,background:e.palette.background.paper,borderTop:`1px solid ${e.palette.grey[300]}`,py:2,px:1,zIndex:2}),children:[s(at,{fullWidth:!0,disabled:!i||n,onClick:r,children:n?s(R,{}):t}),s(b,{direction:"row",justifyContent:"center",pt:.5,children:s(Zt,{})})]})},Cs=e=>{let{DialogProps:t,handleModalReject:i,handleModalResolve:n,payload:{Form:r,filters:o,...l}}=e;const c=h(e=>e.breakpoints.down("sm"));return a(U,{scroll:"body",...t,fullScreen:c,PaperProps:{sx:{position:"relative",width:"100%",maxWidth:["unset",550],height:["unset",650,550],maxHeight:"100%",pb:0,overflow:"hidden",display:"flex",flexDirection:"column"}},children:[a(H,{sx:{position:"relative",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:["center","flex-end"],padding:0,px:[1,2],pt:[2,1]},children:[a(v,{component:"div",variant:"h3",display:["initial","none"],width:"100%",textAlign:"center",children:["Filters",s(j,{sx:{mt:2}})]}),s(w,{onClick:i,size:"small",sx:e=>({[e.breakpoints.up("sm")]:{mr:e.spacing(-2)},[e.breakpoints.down("sm")]:{position:"absolute",top:0,right:0}}),children:s(Pe,{})})]}),s(G,{sx:{position:"relative",p:0,px:[1,2],height:"100%"},children:s(b,{gap:5,pt:3,children:s(r,{filters:o,onSubmit:e=>{n?.(e)},...l,children:e=>s(ws,{onSubmit:e.onSubmit})})})})]})},Ts=e=>{let{loading:t=!1,render:i,color:n="#fff",sx:r={}}=e;return t?s(Z,{sx:{color:n,backgroundColor:"transparent",zIndex:e=>e.zIndex.drawer+1,...r},open:t,children:s(R,{color:"primary"})}):s(l,{children:i()})};class Es extends Te{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?a(g,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",width:"100%",p:3,children:[s(g,{pb:1,children:s(Ts,{color:"error",render:()=>s(d,{color:"warning",fontSize:"large",children:s(Je,{})})})}),s(v,{gutterBottom:!0,variant:"h3",color:"error",children:"Something went wrong."}),s(v,{variant:"subtitle1",color:"error",children:"We know about the error, and are already actively working on its solution."})]}):this.props.children}}const Ss=be(function(e,t){return s(W,{direction:"up",ref:t,...e})}),Is=e=>{let{modalID:t,open:i,payload:n={},ModalComponent:r,DialogProps:o,onModalResolved:a=()=>{},onModalRejected:l=()=>{},onModalExited:u=()=>{},fullHeight:d}=e;const p=c(),f=h(p.breakpoints.down("sm")),[m,g]=pe(i),[_,A]=pe(!1),y=e=>{g(!1),A(!1),l(e),u(t)};return fe(()=>{g(i)},[i]),s(Es,{children:s(r,{isModalEntered:_,payload:n,DialogProps:{disableEscapeKeyDown:!0,TransitionComponent:f?Ss:void 0,sx:{[p.breakpoints.up("sm")]:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column","& > .MuiDialog-container":{width:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[p.breakpoints.down("sm")]:{"& > .MuiDialog-container > .MuiPaper-root":{position:"absolute",left:0,right:0,bottom:0,m:0,[p.breakpoints.down("sm")]:{height:"100%",maxHeight:d?"auto":400},"@media (max-width: 320px)":{minHeight:436}}}},PaperProps:{elevation:0,sx:{overflow:"hidden",[p.breakpoints.up("sm")]:{borderRadius:"20px",width:483,maxWidth:483}}},...o,open:m,onClose:y,TransitionProps:{onExited:()=>{u(t),A(!1)},onEntered:()=>{A(!0)}}},handleModalResolve:e=>{g(!1),A(!1),a(e),u(t)},handleModalReject:y})})},Ms=Ae({globalValues:null,modals:[],setGlobalValues:e=>{},updateGlobalValues:e=>{},deleteModal:e=>{},addModal:e=>{},openModal:e=>{}}),Ps=e=>{let{pathname:t,children:i}=e;const n=ge(0),[r,o]=pe({}),[l,c]=pe([]),h=ye(e=>{c(t=>t.filter(t=>t?.modalID!==e)),n.current--},[]);fe(()=>{c([])},[t]);const u={modals:l,deleteModal:h,globalValues:r,setGlobalValues:o,updateGlobalValues:e=>{o(e)},addModal:e=>{c(t=>t.concat({...e,modalID:n.current++,onModalExited:h}))},openModal:e=>{c([{...e,modalID:n.current++,onModalExited:h}])}};return a(Ms.Provider,{value:u,children:[i,l?.map(e=>s(Is,{open:!0,...e},e?.modalID))]})},Ds=()=>de(Ms),Ls=e=>{let{disableTypography:t=!1,icon:i,sx:n={},children:r,onClose:o,iconFontSize:l=30}=e;return a(g,{display:"flex",alignItems:"center",pl:[2,3,3],pr:2,sx:n,...t?{}:{component:v,fontSize:23,fontWeight:500},children:[!!r&&a(g,{display:"flex",flexGrow:1,color:"inherit",mr:1,children:[i&&s(g,{display:"flex",alignItems:"center",mr:1,children:i}),r]}),!!o&&s(k,{title:"Close modal",children:s(w,{color:"inherit",edge:"end",onClick:o,children:s(ze,{color:"inherit",sx:{fontSize:l}})})})]})},zs=e=>{let{children:t,sx:i={}}=e;return s(b,{position:"sticky",sx:{bottom:0,backgroundColor:"white",zIndex:1,...i},children:s(b,{direction:"row",alignItems:"center",justifyContent:"flex-end",gap:[1,2],py:2,sx:e=>({px:[2,3,3],borderTop:`1px solid ${e.palette.divider}`}),children:t})})},Os=e=>{let{className:t="",component:i=g,children:n,...r}=e;return s(i,{className:t,sx:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},...r,children:n})},Rs=e=>{let{message:t,open:i,onClose:n}=e;const r=h(e=>e.breakpoints.down("sm"));return s(q,{open:i,onClose:n,anchorOrigin:{vertical:"top",horizontal:r?"center":"right"},message:t,action:s(l,{children:s(w,{color:"inherit",sx:{p:.5},onClick:n,children:s(ze,{})})}),sx:e=>({".MuiSnackbarContent-root":{backgroundColor:e.palette.text.secondary,alignItems:"flex-start",flexWrap:"nowrap"}})})};var ks,Bs={exports:{}};var Fs=(ks||(ks=1,Bs.exports=function(){var e,t,i;function n(n,r){if(e)if(t){var o="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk); self.onerror = null;",s={};e(s),i=r(s),"undefined"!=typeof window&&window&&window.URL&&window.URL.createObjectURL&&(i.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else t=r;else e=r}return n(["exports"],function(e){var t=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array;function n(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i*o-r*n;return s?(e[0]=o*(s=1/s),e[1]=-n*s,e[2]=-r*s,e[3]=i*s,e):null}function r(){var e=new i(9);return i!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function o(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],h=t[8];return e[0]=s*h-a*c,e[1]=r*c-n*h,e[2]=n*a-r*s,e[3]=a*l-o*h,e[4]=i*h-r*l,e[5]=r*o-i*a,e[6]=o*c-s*l,e[7]=n*l-i*c,e[8]=i*s-n*o,e}function s(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],d=i[0],p=i[1],f=i[2],m=i[3],g=i[4],_=i[5],A=i[6],y=i[7],v=i[8];return e[0]=d*n+p*s+f*c,e[1]=d*r+p*a+f*h,e[2]=d*o+p*l+f*u,e[3]=m*n+g*s+_*c,e[4]=m*r+g*a+_*h,e[5]=m*o+g*l+_*u,e[6]=A*n+y*s+v*c,e[7]=A*r+y*a+v*h,e[8]=A*o+y*l+v*u,e}function a(){var e=new i(16);return i!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function l(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function c(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],h=t[8],u=t[9],d=t[10],p=t[11],f=t[12],m=t[13],g=t[14],_=t[15],A=i*a-n*s,y=i*l-r*s,v=i*c-o*s,x=n*l-r*a,b=n*c-o*a,w=r*c-o*l,C=h*m-u*f,T=h*g-d*f,E=h*_-p*f,S=u*g-d*m,I=u*_-p*m,M=d*_-p*g,P=A*M-y*I+v*S+x*E-b*T+w*C;return P?(e[0]=(a*M-l*I+c*S)*(P=1/P),e[1]=(r*I-n*M-o*S)*P,e[2]=(m*w-g*b+_*x)*P,e[3]=(d*b-u*w-p*x)*P,e[4]=(l*E-s*M-c*T)*P,e[5]=(i*M-r*E+o*T)*P,e[6]=(g*v-f*w-_*y)*P,e[7]=(h*w-d*v+p*y)*P,e[8]=(s*I-a*E+c*C)*P,e[9]=(n*E-i*I-o*C)*P,e[10]=(f*b-m*v+_*A)*P,e[11]=(u*v-h*b-p*A)*P,e[12]=(a*T-s*S-l*C)*P,e[13]=(i*S-n*T+r*C)*P,e[14]=(m*y-f*x-g*A)*P,e[15]=(h*x-u*y+d*A)*P,e):null}function h(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],d=t[9],p=t[10],f=t[11],m=t[12],g=t[13],_=t[14],A=t[15],y=i[0],v=i[1],x=i[2],b=i[3];return e[0]=y*n+v*a+x*u+b*m,e[1]=y*r+v*l+x*d+b*g,e[2]=y*o+v*c+x*p+b*_,e[3]=y*s+v*h+x*f+b*A,e[4]=(y=i[4])*n+(v=i[5])*a+(x=i[6])*u+(b=i[7])*m,e[5]=y*r+v*l+x*d+b*g,e[6]=y*o+v*c+x*p+b*_,e[7]=y*s+v*h+x*f+b*A,e[8]=(y=i[8])*n+(v=i[9])*a+(x=i[10])*u+(b=i[11])*m,e[9]=y*r+v*l+x*d+b*g,e[10]=y*o+v*c+x*p+b*_,e[11]=y*s+v*h+x*f+b*A,e[12]=(y=i[12])*n+(v=i[13])*a+(x=i[14])*u+(b=i[15])*m,e[13]=y*r+v*l+x*d+b*g,e[14]=y*o+v*c+x*p+b*_,e[15]=y*s+v*h+x*f+b*A,e}function u(e,t,i){var n,r,o,s,a,l,c,h,u,d,p,f,m=i[0],g=i[1],_=i[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*_+t[12],e[13]=t[1]*m+t[5]*g+t[9]*_+t[13],e[14]=t[2]*m+t[6]*g+t[10]*_+t[14],e[15]=t[3]*m+t[7]*g+t[11]*_+t[15]):(r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],d=t[9],p=t[10],f=t[11],e[0]=n=t[0],e[1]=r,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e[6]=c,e[7]=h,e[8]=u,e[9]=d,e[10]=p,e[11]=f,e[12]=n*m+a*g+u*_+t[12],e[13]=r*m+l*g+d*_+t[13],e[14]=o*m+c*g+p*_+t[14],e[15]=s*m+h*g+f*_+t[15]),e}function d(e,t,i){var n=i[0],r=i[1],o=i[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,i){var n=Math.sin(i),r=Math.cos(i),o=t[4],s=t[5],a=t[6],l=t[7],c=t[8],h=t[9],u=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*r+c*n,e[5]=s*r+h*n,e[6]=a*r+u*n,e[7]=l*r+d*n,e[8]=c*r-o*n,e[9]=h*r-s*n,e[10]=u*r-a*n,e[11]=d*r-l*n,e}function f(e,t,i){var n=Math.sin(i),r=Math.cos(i),o=t[0],s=t[1],a=t[2],l=t[3],c=t[8],h=t[9],u=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*r-c*n,e[1]=s*r-h*n,e[2]=a*r-u*n,e[3]=l*r-d*n,e[8]=o*n+c*r,e[9]=s*n+h*r,e[10]=a*n+u*r,e[11]=l*n+d*r,e}function m(e,t,i){var n=Math.sin(i),r=Math.cos(i),o=t[0],s=t[1],a=t[2],l=t[3],c=t[4],h=t[5],u=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*r+c*n,e[1]=s*r+h*n,e[2]=a*r+u*n,e[3]=l*r+d*n,e[4]=c*r-o*n,e[5]=h*r-s*n,e[6]=u*r-a*n,e[7]=d*r-l*n,e}function g(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function _(e,i,n){var r,o,s,a=n[0],l=n[1],c=n[2],h=Math.hypot(a,l,c);return h<t?null:(a*=h=1/h,l*=h,c*=h,r=Math.sin(i),o=Math.cos(i),e[0]=a*a*(s=1-o)+o,e[1]=l*a*s+c*r,e[2]=c*a*s-l*r,e[3]=0,e[4]=a*l*s-c*r,e[5]=l*l*s+o,e[6]=c*l*s+a*r,e[7]=0,e[8]=a*c*s+l*r,e[9]=l*c*s-a*r,e[10]=c*c*s+o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function A(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i+i,a=n+n,l=r+r,c=i*s,h=n*s,u=n*a,d=r*s,p=r*a,f=r*l,m=o*s,g=o*a,_=o*l;return e[0]=1-u-f,e[1]=h+_,e[2]=d-g,e[3]=0,e[4]=h-_,e[5]=1-c-f,e[6]=p+m,e[7]=0,e[8]=d+g,e[9]=p-m,e[10]=1-c-u,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var y=h;function v(){var e=new i(3);return i!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function x(e){var t=new i(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function b(e){return Math.hypot(e[0],e[1],e[2])}function w(e,t,n){var r=new i(3);return r[0]=e,r[1]=t,r[2]=n,r}function C(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function T(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function E(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function S(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function I(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function M(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function P(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e}function D(e,t){var i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return i*i+n*n+r*r}function L(e){var t=e[0],i=e[1],n=e[2];return t*t+i*i+n*n}function z(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function O(e,t){var i=t[0],n=t[1],r=t[2],o=i*i+n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function R(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function k(e,t,i){var n=t[0],r=t[1],o=t[2],s=i[0],a=i[1],l=i[2];return e[0]=r*l-o*a,e[1]=o*s-n*l,e[2]=n*a-r*s,e}function B(e,t,i,n){var r=t[0],o=t[1],s=t[2];return e[0]=r+n*(i[0]-r),e[1]=o+n*(i[1]-o),e[2]=s+n*(i[2]-s),e}function F(e,t,i){var n=t[0],r=t[1],o=t[2],s=i[3]*n+i[7]*r+i[11]*o+i[15];return e[0]=(i[0]*n+i[4]*r+i[8]*o+i[12])/(s=s||1),e[1]=(i[1]*n+i[5]*r+i[9]*o+i[13])/s,e[2]=(i[2]*n+i[6]*r+i[10]*o+i[14])/s,e}function N(e,t,i){var n=t[0],r=t[1],o=t[2];return e[0]=n*i[0]+r*i[3]+o*i[6],e[1]=n*i[1]+r*i[4]+o*i[7],e[2]=n*i[2]+r*i[5]+o*i[8],e}function V(e,t,i){var n=i[0],r=i[1],o=i[2],s=t[0],a=t[1],l=t[2],c=r*l-o*a,h=o*s-n*l,u=n*a-r*s,d=r*u-o*h,p=o*c-n*u,f=n*h-r*c,m=2*i[3];return h*=m,u*=m,p*=2,f*=2,e[0]=s+(c*=m)+(d*=2),e[1]=a+h+p,e[2]=l+u+f,e}function j(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}var U=T,H=E,G=b;function Z(){var e=new i(4);return i!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function W(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e}function q(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i*i+n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s)),e[0]=i*s,e[1]=n*s,e[2]=r*s,e[3]=o*s,e}function X(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3];return e[0]=i[0]*n+i[4]*r+i[8]*o+i[12]*s,e[1]=i[1]*n+i[5]*r+i[9]*o+i[13]*s,e[2]=i[2]*n+i[6]*r+i[10]*o+i[14]*s,e[3]=i[3]*n+i[7]*r+i[11]*o+i[15]*s,e}function $(){var e=new i(4);return i!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function Y(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}function Q(e,t,i){i*=.5;var n=t[0],r=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);return e[0]=n*l+s*a,e[1]=r*l+o*a,e[2]=o*l-r*a,e[3]=s*l-n*a,e}function K(e,t,i){i*=.5;var n=t[0],r=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);return e[0]=n*l-o*a,e[1]=r*l+s*a,e[2]=o*l+n*a,e[3]=s*l-r*a,e}v(),Z();var J,ee,te,ie,ne,re=q,oe=(J=v(),ee=w(1,0,0),te=w(0,1,0),function(e,t,i){var n=R(t,i);return n<-.999999?(k(J,ee,t),G(J)<1e-6&&k(J,te,t),O(J,J),function(e,t,i){i*=.5;var n=Math.sin(i);e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(i)}(e,J,Math.PI),e):n>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):(k(J,t,i),e[0]=J[0],e[1]=J[1],e[2]=J[2],e[3]=1+n,re(e,e))});function se(){var e=new i(2);return i!=Float32Array&&(e[0]=0,e[1]=0),e}function ae(e,t){var n=new i(2);return n[0]=e,n[1]=t,n}function le(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e}function ce(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e}function he(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e}function ue(e){return Math.hypot(e[0],e[1])}function de(e,t){var i=t[0],n=t[1],r=i*i+n*n;return r>0&&(r=1/Math.sqrt(r)),e[0]=t[0]*r,e[1]=t[1]*r,e}function pe(e,t){return e[0]*t[0]+e[1]*t[1]}function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(),$(),r(),se();var me,ge,_e=function(){if(ne)return ie;function e(e,t,i,n){this.cx=3*e,this.bx=3*(i-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=t,this.p2x=i,this.p2y=n}return ne=1,ie=e,e.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,t){if(void 0===t&&(t=1e-6),e<0)return 0;if(e>1)return 1;for(var i=e,n=0;n<8;n++){var r=this.sampleCurveX(i)-e;if(Math.abs(r)<t)return i;var o=this.sampleCurveDerivativeX(i);if(Math.abs(o)<1e-6)break;i-=r/o}var s=0,a=1;for(i=e,n=0;n<20&&(r=this.sampleCurveX(i),!(Math.abs(r-e)<t));n++)e>r?s=i:a=i,i=.5*(a-s)+s;return i},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}},ie}(),Ae=fe(_e);function ye(){if(ge)return me;function e(e,t){this.x=e,this.y=t}return ge=1,me=e,e.prototype={clone:function(){return new e(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},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(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,i=e.y-this.y;return t*t+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),i=Math.sin(e),n=i*this.x+t*this.y;return this.x=t*this.x-i*this.y,this.y=n,this},_rotateAround:function(e,t){var i=Math.cos(e),n=Math.sin(e),r=t.y+n*(this.x-t.x)+i*(this.y-t.y);return this.x=t.x+i*(this.x-t.x)-n*(this.y-t.y),this.y=r,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},e.convert=function(t){return t instanceof e?t:Array.isArray(t)?new e(t[0],t[1]):t},me}var ve=fe(ye());function xe(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!xe(e[i],t[i]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!xe(e[i],t[i]))return!1;return!0}return e===t}const be=Math.PI/180,we=180/Math.PI;function Ce(e){return e*be}function Te(e){return e*we}const Ee=[[0,0],[1,0],[1,1],[0,1]];function Se(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,i=t*e;return 4*(e<.5?i:3*(e-t)+i-.75)}function Ie(e,t,i,n){const r=new Ae(e,t,i,n);return function(e){return r.solve(e)}}const Me=Ie(.25,.1,.25,1);function Pe(e,t,i){return Math.min(i,Math.max(t,e))}function De(e,t,i){return(i=Pe((i-e)/(t-e),0,1))*i*(3-2*i)}function Le(e,t,i){const n=i-t,r=((e-t)%n+n)%n+t;return r===t?i:r}function ze(e,t,i){if(!e.length)return i(null,[]);let n=e.length;const r=new Array(e.length);let o=null;e.forEach((e,s)=>{t(e,(e,t)=>{e&&(o=e),r[s]=t,0==--n&&i(o,r)})})}function Oe(e,...t){for(const i of t)for(const t in i)e[t]=i[t];return e}let Re=1;function ke(){return Re++}function Be(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function Fe(e,t){e.forEach(e=>{t[e]&&(t[e]=t[e].bind(t))})}function Ne(e,t,i){const n={};for(const i in e)n[i]=t.call(this,e[i],i,e);return n}function Ve(e,t,i){const n={};for(const i in e)t.call(this,e[i],i,e)&&(n[i]=e[i]);return n}function je(e){return Array.isArray(e)?e.map(je):"object"==typeof e&&e?Ne(e,je):e}function Ue(e,t){for(let i=0;i<e.length;i++)if(t.indexOf(e[i])>=0)return!0;return!1}const He={};function Ge(e){He[e]||("undefined"!=typeof console&&console.warn(e),He[e]=!0)}function Ze(e,t,i){return(i.y-e.y)*(t.x-e.x)>(t.y-e.y)*(i.x-e.x)}function We(e){let t=0;for(let i,n,r=0,o=e.length,s=o-1;r<o;s=r++)i=e[r],n=e[s],t+=(n.x-i.x)*(i.y+n.y);return t}function qe([e,t,i]){const n=Ce(t+90),r=Ce(i);return{x:e*Math.cos(n)*Math.sin(r),y:e*Math.sin(n)*Math.sin(r),z:e*Math.cos(r),azimuthal:t,polar:i}}function Xe(e){return("undefined"!=typeof self||void 0!==e)&&"undefined"!=typeof WorkerGlobalScope&&(void 0!==e?e:self)instanceof WorkerGlobalScope}function $e(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(e,i,n,r)=>{const o=n||r;return t[i]=!o||o.toLowerCase(),""}),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let Ye=null;function Qe(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]}function Ke(e,t,i,n){for(;t<i;){const r=t+i>>1;e[r]<n?t=r+1:i=r}return t}function Je(e,t,i,n){for(;t<i;){const r=t+i>>1;e[r]<=n?t=r+1:i=r}return t}function et(e){return e>0?1/(1.001-e):1+e}function tt(e){return e>0?1-1/(1.001-e):-e}function it(e,t,i){return(e-t.min)*(i.max-i.min)/(t.max-t.min)+i.min}const nt={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!nt.API_URL)return null;try{const e=new URL(nt.API_URL);return"api.mapbox.cn"===e.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===e.hostname?"https://events.mapbox.com/events/v2":null}catch(e){return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"https://api.mapbox.com/mapbox-gl-js/building-gen/building_gen_v0.3.0.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function rt(e){return nt.API_URL_REGEX.test(e)}function ot(e){return nt.API_SPRITE_REGEX.test(e)}let st,at,lt,ct,ht,ut;function dt(){return null==st&&(st=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof self.createImageBitmap),st}const pt={now:()=>void 0!==ct?ct:performance.now(),setNow(e){ct=e},restoreNow(){ct=void 0},frame(e){const t=requestAnimationFrame(e);return{cancel:()=>cancelAnimationFrame(t)}},getImageData(e,t=0){const{width:i,height:n}=e;ht||(ht=document.createElement("canvas"));const r=ht.getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("failed to create canvas 2d context");return(i>ht.width||n>ht.height)&&(ht.width=i,ht.height=n),r.clearRect(-t,-t,i+2*t,n+2*t),r.drawImage(e,0,0,i,n),r.getImageData(-t,-t,i+2*t,n+2*t)},resolveURL:e=>(at||(at=document.createElement("a")),at.href=e,at.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(null==lt&&(lt=window.matchMedia("(prefers-reduced-motion: reduce)")),lt.matches)},hasCanvasFingerprintNoise(){if(void 0!==ut)return ut;if(!dt())return ut=!1,!1;const e=new OffscreenCanvas(85,1),t=e.getContext("2d",{willReadFrequently:!0});let i=0;for(let n=0;n<e.width;++n)t.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,t.fillRect(n,0,1,1);const n=t.getImageData(0,0,e.width,e.height);i=0;for(let e=0;e<n.data.length;++e)if(e%4!=3&&i++!==n.data[e])return ut=!0,!0;return ut=!1,!1}};function ft(e,t){const i=e.indexOf("?");if(i<0)return`${e}?${new URLSearchParams(t).toString()}`;const n=new URLSearchParams(e.slice(i));for(const e in t)n.set(e,t[e]);return`${e.slice(0,i)}?${n.toString()}`}function mt(e,t={persistentParams:[]}){const i=e.indexOf("?");if(i<0)return e;const n=new URLSearchParams,r=new URLSearchParams(e.slice(i));for(const e of t.persistentParams){const t=r.get(e);t&&n.set(e,t)}const o=n.toString();return`${e.slice(0,i)}${o.length>0?`?${o}`:""}`}const gt="mapbox-tiles";let _t=500,At=50;const yt=["language","worldview","jobid"];let vt,xt;function bt(){try{return caches}catch(e){}}function wt(){const e=bt();e&&null==vt&&(vt=e.open(gt))}let Ct=1/0;const Tt={supported:!1,testSupport:function(e){!It&&St&&(Mt?Dt(e):Et=e)}};let Et,St,It=!1,Mt=!1;const Pt="undefined"!=typeof self?self:{};function Dt(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,St),e.isContextLost())return;Tt.supported=!0}catch(e){}e.deleteTexture(t),It=!0}Pt.document&&(St=Pt.document.createElement("img"),St.onload=function(){Et&&Dt(Et),Et=null,Mt=!0},St.onerror=function(){It=!0,Et=null},St.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Lt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};"function"==typeof Object.freeze&&Object.freeze(Lt);class zt extends Error{constructor(e,t,i){401===t&&rt(i)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=i}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ot=Xe()?()=>self.worker.referrer:()=>("blob:"===location.protocol?parent:self).location.href,Rt=function(e,t){if(!(/^file:/.test(i=e.url)||/^file:/.test(Ot())&&!/^\w+:/.test(i))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(e,t){const i=new AbortController,n=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:Ot(),referrerPolicy:e.referrerPolicy,signal:i.signal});let r=!1,o=!1;const s=(a=n.url).indexOf("sku=")>0&&rt(a);var a;"json"===e.type&&n.headers.set("Accept","application/json");const l=(i,r,a)=>{if(o)return;if(i&&"SecurityError"!==i.message&&Ge(i.toString()),r&&a)return c(r);const l=Date.now();fetch(n).then(i=>{if(i.ok){const e=s?i.clone():null;return c(i,e,l)}return t(new zt(i.statusText,i.status,e.url))}).catch(i=>{"AbortError"!==i.name&&t(new Error(`${i.message} ${e.url}`))})},c=(i,s,a)=>{("arrayBuffer"===e.type?i.arrayBuffer():"json"===e.type?i.json():i.text()).then(e=>{o||(s&&a&&function(e,t,i){if(wt(),null==vt)return;const n=$e(t.headers.get("Cache-Control")||"");if(n["no-store"])return;const r={status:t.status,statusText:t.statusText,headers:new Headers};t.headers.forEach((e,t)=>r.headers.set(t,e)),n["max-age"]&&r.headers.set("Expires",new Date(i+1e3*n["max-age"]).toUTCString());const o=r.headers.get("Expires");if(!o)return;if(new Date(o).getTime()-i<42e4)return;let s=mt(e.url,{persistentParams:yt});if(206===t.status){const t=e.headers.get("Range");if(!t)return;r.status=200,s=ft(s,{range:t})}!function(e,t){if(void 0===xt)try{new Response(new ReadableStream),xt=!0}catch(e){xt=!1}xt?t(e.body):e.blob().then(t).catch(e=>Ge(e.message))}(t,e=>{const i=new Response(200!==(n=t.status)&&404!==n&&[101,103,204,205,304].includes(n)?null:e,r);var n;wt(),null!=vt&&vt.then(e=>e.put(s,i)).catch(e=>Ge(e.message))})}(n,s,a),r=!0,t(null,e,i.headers.get("Cache-Control"),i.headers.get("Expires")))}).catch(e=>{o||t(new Error(e.message))})};return s?function(e,t){if(wt(),null==vt)return t(null);vt.then(i=>{let n=mt(e.url,{persistentParams:yt});const r=e.headers.get("Range");r&&(n=ft(n,{range:r})),i.match(n).then(e=>{const r=function(e){if(!e)return!1;const t=new Date(e.headers.get("Expires")||0),i=$e(e.headers.get("Cache-Control")||"");return Number(t)>Date.now()&&!i["no-cache"]}(e);i.delete(n).catch(t),r&&i.put(n,e.clone()).catch(t),t(null,e,r)}).catch(t)}).catch(t)}(n,l):l(null,null),{cancel:()=>{o=!0,r||i.abort()}}}(e,t);if(Xe(self)&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var i;return function(e,t){const i=new XMLHttpRequest;i.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(i.responseType="arraybuffer");for(const t in e.headers)i.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(i.responseType="text",i.setRequestHeader("Accept","application/json")),i.withCredentials="include"===e.credentials,i.onerror=()=>{t(new Error(i.statusText))},i.onload=()=>{if((i.status>=200&&i.status<300||0===i.status)&&null!==i.response){let n=i.response;if("json"===e.type)try{n=JSON.parse(i.response)}catch(e){return t(e)}t(null,n,i.getResponseHeader("Cache-Control"),i.getResponseHeader("Expires"))}else t(new zt(i.statusText,i.status,e.url))},i.send(e.body),{cancel:()=>i.abort()}}(e,t)},kt=function(e,t){return Rt(Oe(e,{type:"arrayBuffer"}),t)};function Bt(e){const t=document.createElement("a");return t.href=e,t.protocol===location.protocol&&t.host===location.host}const Ft="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Nt,Vt;Nt=[],Vt=0;const jt=function(e,t){if(Tt.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),Vt>=nt.MAX_PARALLEL_IMAGE_REQUESTS){const i={requestParameters:e,callback:t,cancelled:!1,cancel(){this.cancelled=!0}};return Nt.push(i),i}Vt++;let i=!1;const n=()=>{if(!i)for(i=!0,Vt--;Nt.length&&Vt<nt.MAX_PARALLEL_IMAGE_REQUESTS;){const e=Nt.shift(),{requestParameters:t,callback:i,cancelled:n}=e;n||(e.cancel=jt(t,i).cancel)}},r=kt(e,(e,i,r,o)=>{n(),e?t(e):i&&(self.createImageBitmap?function(e,t){const i=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(i).then(e=>{t(null,e)}).catch(e=>{t(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(i,(e,i)=>t(e,i,r,o)):function(e,t){const i=new Image;i.onload=()=>{t(null,i),URL.revokeObjectURL(i.src),i.onload=null,requestAnimationFrame(()=>{i.src=Ft})},i.onerror=()=>t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const n=new Blob([new Uint8Array(e)],{type:"image/png"});i.src=e.byteLength?URL.createObjectURL(n):Ft}(i,(e,i)=>t(e,i,r,o)))});return{cancel:()=>{r.cancel(),n()}}};var Ut,Ht,Gt,Zt={exports:{}},Wt={exports:{}},qt={exports:{}},Xt=function(){if(Gt)return Zt.exports;Gt=1;var e=(Ut||(Ut=1,Wt.exports=function(e,t){var i,n,r,o,s,a,l,c;for(n=e.length-(i=3&e.length),r=t,s=3432918353,a=461845907,c=0;c<n;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,r=27492+(65535&(o=5*(65535&(r=(r^=l=(65535&(l=(l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,i){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:r^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295}return r^=e.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0}),Wt.exports),t=(Ht||(Ht=1,qt.exports=function(e,t){for(var i,n=e.length,r=t^n,o=0;n>=4;)i=1540483477*(65535&(i=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(i>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}),qt.exports);return Zt.exports=e,Zt.exports.murmur3=e,Zt.exports.murmur2=t,Zt.exports}(),$t=fe(Xt);class Yt{constructor(e,...t){Oe(this,t[0]||{}),this.type=e}}class Qt extends Yt{constructor(e,t={}){super("error",Oe({error:e},t))}}function Kt(e,t,i){i[e]&&-1!==i[e].indexOf(t)||(i[e]=i[e]||[],i[e].push(t))}function Jt(e,t,i){if(i&&i[e]){const n=i[e].indexOf(t);-1!==n&&i[e].splice(n,1)}}class ei{on(e,t){return this._listeners=this._listeners||{},Kt(e,t,this._listeners),this}off(e,t){return Jt(e,t,this._listeners),Jt(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},Kt(e,t,this._oneTimeListeners),this):new Promise(t=>{this.once(e,t)})}fire(e,t){const i="string"==typeof e?new Yt(e,t):e,n=i.type;if(this.listens(n)){i.target=this;const e=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const t of e)t.call(this,i);const t=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const e of t)Jt(n,e,this._oneTimeListeners),e.call(this,i);const r=this._eventedParent;r&&(Oe(i,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),r.fire(i))}else i instanceof Qt&&console.error(i.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}class ti{constructor(e){"string"==typeof e?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new ti(e)}static toString(e){return e.iconsetId?`${e.name}${e.iconsetId}`:e.name}static parse(e){const[t,i]=e.split("");return new ti({name:t,iconsetId:i})}static isEqual(e,t){return e.name===t.name&&e.iconsetId===t.iconsetId}toString(){return ti.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var ii,ni={},ri=function(){if(ii)return ni;ii=1;var e={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function t(e){return(e=Math.round(e))<0?0:e>255?255:e}function i(e){return t("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function n(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function r(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}try{ni.parseCSSColor=function(o){var s,a=o.replace(/ /g,"").toLowerCase();if(a in e)return e[a].slice();if("#"===a[0])return 4===a.length?(s=parseInt(a.substr(1),16))>=0&&s<=4095?[(3840&s)>>4|(3840&s)>>8,240&s|(240&s)>>4,15&s|(15&s)<<4,1]:null:7===a.length&&(s=parseInt(a.substr(1),16))>=0&&s<=16777215?[(16711680&s)>>16,(65280&s)>>8,255&s,1]:null;var l=a.indexOf("("),c=a.indexOf(")");if(-1!==l&&c+1===a.length){var h=a.substr(0,l),u=a.substr(l+1,c-(l+1)).split(","),d=1;switch(h){case"rgba":if(4!==u.length)return null;d=n(u.pop());case"rgb":return 3!==u.length?null:[i(u[0]),i(u[1]),i(u[2]),d];case"hsla":if(4!==u.length)return null;d=n(u.pop());case"hsl":if(3!==u.length)return null;var p=(parseFloat(u[0])%360+360)%360/360,f=n(u[1]),m=n(u[2]),g=m<=.5?m*(f+1):m+f-m*f,_=2*m-g;return[t(255*r(_,g,p+1/3)),t(255*r(_,g,p)),t(255*r(_,g,p-1/3)),d];default:return null}}return null}}catch(e){}return ni}();class oi{constructor(e,t,i,n=1){this.r=e,this.g=t,this.b=i,this.a=n}static parse(e){if(!e)return;if(e instanceof oi)return e;if("string"!=typeof e)return;const t=ri.parseCSSColor(e);return t?new oi(t[0]/255,t[1]/255,t[2]/255,t[3]):void 0}toString(){const[e,t,i,n]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*t)},${Math.round(255*i)},${n})`}toNonPremultipliedRenderColor(e){const{r:t,g:i,b:n,a:r}=this;return new ai(e,t,i,n,r)}toPremultipliedRenderColor(e){const{r:t,g:i,b:n,a:r}=this;return new li(e,t*r,i*r,n*r,r)}clone(){return new oi(this.r,this.g,this.b,this.a)}}class si{constructor(e,t,i,n,r,o=!1){if(this.premultiplied=!1,this.premultiplied=o,e){const o=e.image.height,s=o*o;this.premultiplied?(t=0===r?0:t/r*(o-1),i=0===r?0:i/r*(o-1),n=0===r?0:n/r*(o-1)):(t*=o-1,i*=o-1,n*=o-1);const a=Math.floor(t),l=Math.floor(i),c=Math.floor(n),h=Math.ceil(t),u=Math.ceil(i),d=Math.ceil(n),p=t-a,f=i-l,m=n-c,g=e.image.data,_=4*(a+l*s+c*o),A=4*(a+l*s+d*o),y=4*(a+u*s+c*o),v=4*(a+u*s+d*o),x=4*(h+l*s+c*o),b=4*(h+l*s+d*o),w=4*(h+u*s+c*o),C=4*(h+u*s+d*o);if(_<0||C>=g.length)throw new Error("out of range");this.r=ci(ci(ci(g[_],g[A],m),ci(g[y],g[v],m),f),ci(ci(g[x],g[b],m),ci(g[w],g[C],m),f),p)/255*(this.premultiplied?r:1),this.g=ci(ci(ci(g[_+1],g[A+1],m),ci(g[y+1],g[v+1],m),f),ci(ci(g[x+1],g[b+1],m),ci(g[w+1],g[C+1],m),f),p)/255*(this.premultiplied?r:1),this.b=ci(ci(ci(g[_+2],g[A+2],m),ci(g[y+2],g[v+2],m),f),ci(ci(g[x+2],g[b+2],m),ci(g[w+2],g[C+2],m),f),p)/255*(this.premultiplied?r:1),this.a=r}else this.r=t,this.g=i,this.b=n,this.a=r}toArray(){const{r:e,g:t,b:i,a:n}=this;return[255*e,255*t,255*i,n]}toHslaArray(){let{r:e,g:t,b:i,a:n}=this;if(this.premultiplied){if(0===n)return[0,0,0,0];e/=n,t/=n,i/=n}const r=Math.min(Math.max(e,0),1),o=Math.min(Math.max(t,0),1),s=Math.min(Math.max(i,0),1),a=Math.min(r,o,s),l=Math.max(r,o,s),c=(a+l)/2;if(a===l)return[0,0,100*c,n];const h=l-a,u=c>.5?h/(2-l-a):h/(l+a);let d=0;return l===r?d=(o-s)/h+(o<s?6:0):l===o?d=(s-r)/h+2:l===s&&(d=(r-o)/h+4),d*=60,[Math.min(Math.max(d,0),360),Math.min(Math.max(100*u,0),100),Math.min(Math.max(100*c,0),100),n]}toArray01(){const{r:e,g:t,b:i,a:n}=this;return[e,t,i,n]}toArray01Scaled(e){const{r:t,g:i,b:n}=this;return[t*e,i*e,n*e]}toArray01Linear(){const{r:e,g:t,b:i,a:n}=this;return[Math.pow(e,2.2),Math.pow(t,2.2),Math.pow(i,2.2),n]}}class ai extends si{constructor(e,t,i,n,r){super(e,t,i,n,r,!1)}}class li extends si{constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}}function ci(e,t,i){return e*(1-i)+t*i}function hi(e,t,i){return e.map((e,n)=>ci(e,t[n],i))}oi.black=new oi(0,0,0,1),oi.white=new oi(1,1,1,1),oi.transparent=new oi(0,0,0,0),oi.red=new oi(1,0,0,1),oi.blue=new oi(0,0,1,1);var ui=Object.freeze({__proto__:null,array:hi,color:function(e,t,i){return new oi(ci(e.r,t.r,i),ci(e.g,t.g,i),ci(e.b,t.b,i),ci(e.a,t.a,i))},number:ci});function di(e,...t){for(const i of t)for(const t in i)e[t]=i[t];return e}class pi extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class fi{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[e,i]of t)this.bindings[e]=i}concat(e){return new fi(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const mi={kind:"null"},gi={kind:"number"},_i={kind:"string"},Ai={kind:"boolean"},yi={kind:"color"},vi={kind:"object"},xi={kind:"value"},bi={kind:"collator"},wi={kind:"formatted"},Ci={kind:"resolvedImage"};function Ti(e,t){return{kind:"array",itemType:e,N:t}}function Ei(e){if("array"===e.kind){const t=Ei(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const Si=[mi,gi,_i,Ai,yi,wi,vi,Ti(xi),Ci];function Ii(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Ii(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of Si)if(!Ii(e,t))return null}return`Expected ${Ei(e)} but found ${Ei(t)} instead.`}function Mi(e,t){return t.some(t=>t.kind===e.kind)}function Pi(e,t){return t.some(t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e)}function Di(e,t){return"array"===e.kind&&"array"===t.kind?e.N===t.N&&Di(e.itemType,t.itemType):e.kind===t.kind}class Li{constructor(e,t,i){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=i,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class zi{constructor(e,t,i,n,r){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=i,this.fontStack=n,this.textColor=r}}class Oi{constructor(e){this.sections=e}static fromString(e){return new Oi([new zi(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||!!e.image&&e.image.hasPrimary())}static factory(e){return e instanceof Oi?e:Oi.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){const i=t.image.getPrimary().id.toString();e.push(["image",i]);continue}e.push(t.text);const i={};t.fontStack&&(i["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(i["font-scale"]=t.scale),t.textColor&&(i["text-color"]=["rgba"].concat(t.textColor.toNonPremultipliedRenderColor(null).toArray())),e.push(i)}return e}}class Ri{constructor(e,t={}){if(this.id=ti.from(e),this.options=Object.assign({},t),t.transform){const{a:e,b:i,c:n,d:r,e:o,f:s}=t.transform;this.options.transform=new DOMMatrix([e,i,n,r,o,s])}else this.options.transform=new DOMMatrix([1,0,0,1,0,0])}toString(){const{a:e,b:t,c:i,d:n,e:r,f:o}=this.options.transform;return JSON.stringify({name:this.id.name,iconsetId:this.id.iconsetId,params:this.options.params,transform:{a:e,b:t,c:i,d:n,e:r,f:o}})}static parse(e){let t,i,n,r;try{({name:t,iconsetId:i,params:n,transform:r}=JSON.parse(e)||{})}catch(e){return null}if(!t)return null;const{a:o,b:s,c:a,d:l,e:c,f:h}=r||{};return new Ri({name:t,iconsetId:i},{params:n,transform:new DOMMatrix([o,s,a,l,c,h])})}scaleSelf(e,t){return this.options.transform.scaleSelf(e,t),this}}class ki{constructor(e,t,i,n,r=!1){this.primaryId=ti.from(e),this.primaryOptions=t,i&&(this.secondaryId=ti.from(i)),this.secondaryOptions=n,this.available=r}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new Ri(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new Ri(this.secondaryId,this.secondaryOptions):null}static from(e){return"string"==typeof e?ki.build({name:e}):e}static build(e,t,i,n){return!e||"object"==typeof e&&!("name"in e)?null:new ki(e,i,t,n)}}function Bi(e,t,i,n){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:`Invalid rgba value [${[e,t,i,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof n?[e,t,i,n]:[e,t,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Fi(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof oi)return!0;if(e instanceof Li)return!0;if(e instanceof Oi)return!0;if(e instanceof ki)return!0;if(Array.isArray(e)){for(const t of e)if(!Fi(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!Fi(e[t]))return!1;return!0}return!1}function Ni(e){if(null===e)return mi;if("string"==typeof e)return _i;if("boolean"==typeof e)return Ai;if("number"==typeof e)return gi;if(e instanceof oi)return yi;if(e instanceof Li)return bi;if(e instanceof Oi)return wi;if(e instanceof ki)return Ci;if(Array.isArray(e)){const t=e.length;let i;for(const t of e){const e=Ni(t);if(i){if(i===e)continue;i=xi;break}i=e}return Ti(i||xi,t)}return vi}function Vi(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Oi||e instanceof ki||e instanceof oi?e.toString():JSON.stringify(e)}class ji{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Fi(e[1]))return t.error("invalid value");const i=e[1];let n=Ni(i);const r=t.expectedType;return"array"!==n.kind||0!==n.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(n=r),new ji(n,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof oi?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof Oi?this.value.serialize():this.value}}class Ui{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const Hi={string:_i,number:gi,boolean:Ai,object:vi};class Gi{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let i,n=1;const r=e[0];if("array"===r){let r,o;if(e.length>2){const i=e[1];if("string"!=typeof i||!(i in Hi)||"object"===i)return t.error('The item type argument of "array" must be one of string, number, boolean',1);r=Hi[i],n++}else r=xi;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],n++}i=Ti(r,o)}else i=Hi[r];const o=[];for(;n<e.length;n++){const i=t.parse(e[n],n,xi);if(!i)return null;o.push(i)}return new Gi(i,o)}evaluate(e){for(let t=0;t<this.args.length;t++){const i=this.args[t].evaluate(e);if(!Ii(this.type,Ni(i)))return i;if(t===this.args.length-1)throw new Ui(`The expression ${JSON.stringify(this.args[t].serialize())} evaluated to ${Ei(Ni(i))} but was expected to be of type ${Ei(this.type)}.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const i=e.itemType;if("string"===i.kind||"number"===i.kind||"boolean"===i.kind){t.push(i.kind);const n=e.N;("number"==typeof n||this.args.length>1)&&t.push(n)}}return t.concat(this.args.map(e=>e.serialize()))}}class Zi{constructor(e){this.type=wi,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const i=e[1];if(!Array.isArray(i)&&"object"==typeof i)return t.error("First argument must be an image or text section.");const n=[];let r=!1;for(let i=1;i<=e.length-1;++i){const o=e[i];if(r&&"object"==typeof o&&!Array.isArray(o)){r=!1;let e=null;if(o["font-scale"]&&(e=t.parseObjectValue(o["font-scale"],i,"font-scale",gi),!e))return null;let s=null;if(o["text-font"]&&(s=t.parseObjectValue(o["text-font"],i,"text-font",Ti(_i)),!s))return null;let a=null;if(o["text-color"]&&(a=t.parseObjectValue(o["text-color"],i,"text-color",yi),!a))return null;const l=n[n.length-1];l.scale=e,l.font=s,l.textColor=a}else{const o=t.parse(e[i],i,xi);if(!o)return null;const s=o.type.kind;if("string"!==s&&"value"!==s&&"null"!==s&&"resolvedImage"!==s)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");r=!0,n.push({content:o,scale:null,font:null,textColor:null})}}return new Zi(n)}evaluate(e){return new Oi(this.sections.map(t=>{const i=t.content.evaluate(e);return Di(Ni(i),Ci)?new zi("",i,null,null,null):new zi(Vi(i),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)}))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const i={};t.scale&&(i["font-scale"]=t.scale.serialize()),t.font&&(i["text-font"]=t.font.serialize()),t.textColor&&(i["text-color"]=t.textColor.serialize()),e.push(i)}return e}}class Wi{constructor(e,t,i,n){this._imageWarnHistory={},this.type=Ci,this.namePrimary=e,this.nameSecondary=t,i&&(this.paramsPrimary=i.params,this.iconsetIdPrimary=i.iconset?i.iconset.id:void 0),n&&(this.paramsSecondary=n.params,this.iconsetIdSecondary=n.iconset?n.iconset.id:void 0)}static parse(e,t){if(e.length<2)return t.error("Expected two or more arguments.");let i=1;const n=[];function r(){if(i<e.length){const r=t.parse(e[i],i++,_i);return r?(n.push({image:r,options:{}}),!0):(t.error(n.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function o(){if(i<e.length){const o=e[i];if(null===(r=o)||"object"!=typeof r||Array.isArray(r))return!0;const s=o.params,a=o.iconset,l=t.concat(i);if(!s&&!a)return i++,!0;if(s){if("object"!=typeof s||s.constructor!==Object)return l.error('Image options "params" should be an object'),!1;const e={},t=l.concat(void 0,"params");for(const i in s){if(!i)return t.error("Image parameter name should be non-empty"),!1;const n=t.concat(void 0,i).parse(s[i],void 0,yi,void 0,{typeAnnotation:"coerce"});if(!n)return!1;e[i]=n}n[n.length-1].options.params=e}if(a){if("object"!=typeof a||a.constructor!==Object)return l.error('Image options "iconset" should be an object'),!1;if(!a.id)return l.error('Image options "iconset" should have an "id" property'),!1;n[n.length-1].options.iconset=a}return i++,!0}var r;return!0}for(let e=0;e<2;e++)if(!r()||!o())return;return new Wi(n[0].image,n[1]?n[1].image:void 0,n[0].options,n[1]?n[1].options:void 0)}evaluateParams(e,t){const i={};if(t){for(const n in t)if(t[n])try{i[n]=t[n].evaluate(e)}catch(e){continue}if(0!==Object.keys(i).length)return{params:i}}}evaluate(e){const t={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},i=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,n=ki.build(t,i,this.paramsPrimary?this.evaluateParams(e,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(e,this.paramsSecondary):void 0);if(n&&e.availableImages){const t=n.getPrimary().id;if(n.available=e.availableImages.some(e=>ti.isEqual(e,t)),n.available){const t=n.getSecondary()?n.getSecondary().id:null;t&&(n.available=e.availableImages.some(e=>ti.isEqual(e,t)))}}return n}eachChild(e){if(e(this.namePrimary),this.paramsPrimary)for(const t in this.paramsPrimary)this.paramsPrimary[t]&&e(this.paramsPrimary[t]);if(this.nameSecondary&&(e(this.nameSecondary),this.paramsSecondary))for(const t in this.paramsSecondary)this.paramsSecondary[t]&&e(this.paramsSecondary[t])}outputDefined(){return!1}serializeOptions(e,t){const i={};if(t&&(i.iconset={id:t}),e){i.params={};for(const t in e)e[t]&&(i.params[t]=e[t].serialize())}return Object.keys(i).length>0?i:void 0}serialize(){const e=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const t=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);t&&e.push(t)}if(this.nameSecondary&&(e.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const t=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);t&&e.push(t)}return e}}function qi(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}const Xi={"to-boolean":Ai,"to-color":yi,"to-number":gi,"to-string":_i};class $i{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const i=e[0],n=[];let r=mi;if("to-array"===i){if(!Array.isArray(e[1]))return null;const i=e[1].length;if(t.expectedType){if("array"!==t.expectedType.kind)return t.error(`Expected ${t.expectedType.kind} but found array.`);r=Ti(t.expectedType.itemType,i)}else{if(!(i>0&&Fi(e[1][0])))return null;r=Ti(Ni(e[1][0]),i)}for(let o=0;o<i;o++){const i=e[1][o];let s;if("array"===qi(i))s=t.parse(i,void 0,r.itemType);else{const e=qi(i);if(e!==r.itemType.kind)return t.error(`Expected ${r.itemType.kind} but found ${e}.`);s=t.registry.literal.parse(["literal",void 0===i?null:i],t)}if(!s)return null;n.push(s)}}else{if(("to-boolean"===i||"to-string"===i)&&2!==e.length)return t.error("Expected one argument.");r=Xi[i];for(let i=1;i<e.length;i++){const r=t.parse(e[i],i,xi);if(!r)return null;n.push(r)}}return new $i(r,n)}evaluate(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){let t,i;for(const n of this.args){if(t=n.evaluate(e),i=null,t instanceof oi)return t;if("string"==typeof t){const i=e.parseColor(t);if(i)return i}else if(Array.isArray(t)&&(i=t.length<3||t.length>4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:Bi(t[0],t[1],t[2],t[3]),!i))return new oi(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new Ui(i||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const i of this.args){if(t=i.evaluate(e),null===t)return 0;const n=Number(t);if(!isNaN(n))return n}throw new Ui(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?Oi.fromString(Vi(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?ki.build(Vi(this.args[0].evaluate(e))):"array"===this.type.kind?this.args.map(t=>t.evaluate(e)):Vi(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if("formatted"===this.type.kind)return new Zi([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Wi(this.args[0]).serialize();const e="array"===this.type.kind?[]:[`to-${this.type.kind}`];return this.eachChild(t=>{e.push(t.serialize())}),e}}const Yi=["Unknown","Point","LineString","Polygon"];class Qi{constructor(e,t){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=e,this.options=t}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Yi[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:i,y:n}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(i*t-e[0])+this.featureDistanceData.bearing[1]*(n*t-e[1])}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=oi.parse(e)),t}getConfig(e){return this.options?this.options.get(e):null}}class Ki{constructor(e,t,i,n,r){this.name=e,this.type=t,this._evaluate=i,this.args=n,this._overloadIndex=r}evaluate(e){if(!this._evaluate){const e=Ki.definitions[this.name];this._evaluate=Array.isArray(e)?e[2]:e.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,t){const i=e[0],n=Ki.definitions[i];if(!n)return t.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);const r=Array.isArray(n)?n[0]:n.type,o=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,s=[];let a=null,l=-1;for(const[n,c]of o){if(Array.isArray(n)&&n.length!==e.length-1)continue;s.push(n),l++,a=new vr(t.registry,t.path,null,t.scope,void 0,t._scope,t.options);const o=[];let h=!1;for(let t=1;t<e.length;t++){const i=e[t],r=Array.isArray(n)?n[t-1]:n.type,s=a.parse(i,1+o.length,r);if(!s){h=!0;break}o.push(s)}if(!h)if(Array.isArray(n)&&n.length!==o.length)a.error(`Expected ${n.length} arguments, but found ${o.length} instead.`);else{for(let e=0;e<o.length;e++){const t=Array.isArray(n)?n[e]:n.type,i=o[e];a.concat(e+1).checkSubtype(t,i.type)}if(0===a.errors.length)return new Ki(i,r,c,o,l)}}if(1===s.length)t.errors.push(...a.errors);else{const i=(s.length?s:o.map(([e])=>e)).map(Ji).join(" | "),n=[];for(let i=1;i<e.length;i++){const r=t.parse(e[i],1+n.length);if(!r)return null;n.push(Ei(r.type))}t.error(`Expected arguments of type ${i}, but found (${n.join(", ")}) instead.`)}return null}static register(e,t){Ki.definitions=t;for(const i in t)e[i]=Ki}}function Ji(e){return Array.isArray(e)?`(${e.map(Ei).join(", ")})`:`(${Ei(e.type)}...)`}class en{constructor(e,t,i){this.type=bi,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");const i=e[1];if("object"!=typeof i||Array.isArray(i))return t.error("Collator options argument must be an object.");const n=void 0===i["case-sensitive"]?t.parse(!1,1,Ai):t.parseObjectValue(i["case-sensitive"],1,"case-sensitive",Ai);if(!n)return null;const r=void 0===i["diacritic-sensitive"]?t.parse(!1,1,Ai):t.parseObjectValue(i["diacritic-sensitive"],1,"diacritic-sensitive",Ai);if(!r)return null;let o=null;return i.locale&&(o=t.parseObjectValue(i.locale,1,"locale",_i),!o)?null:new en(n,r,o)}evaluate(e){return new Li(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}function tn(e,t,i=0,n=e.length-1,r=rn){for(;n>i;){if(n-i>600){const o=n-i+1,s=t-i+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);tn(e,t,Math.max(i,Math.floor(t-s*l/o+c)),Math.min(n,Math.floor(t+(o-s)*l/o+c)),r)}const o=e[t];let s=i,a=n;for(nn(e,i,t),r(e[n],o)>0&&nn(e,i,n);s<a;){for(nn(e,s,a),s++,a--;r(e[s],o)<0;)s++;for(;r(e[a],o)>0;)a--}0===r(e[i],o)?nn(e,i,a):(a++,nn(e,a,n)),a<=t&&(i=a+1),t<=a&&(n=a-1)}}function nn(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}function rn(e,t){return e<t?-1:e>t?1:0}function on(e){let t=0;for(let i,n,r=0,o=e.length,s=o-1;r<o;s=r++)i=e[r],n=e[s],t+=(n.x-i.x)*(i.y+n.y);return t}function sn(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function an(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function ln(e,t,i){const n=e[0]-t[0],r=e[1]-t[1],o=e[0]-i[0],s=e[1]-i[1];return n*s-o*r==0&&n*o<=0&&r*s<=0}function cn(e,t,i=!1){let n=!1;for(let a=0,l=t.length;a<l;a++){const l=t[a];for(let t=0,a=l.length,c=a-1;t<a;c=t++){const a=l[c],h=l[t];if(ln(e,a,h))return i;(o=a)[1]>(r=e)[1]!=(s=h)[1]>r[1]&&r[0]<(s[0]-o[0])*(r[1]-o[1])/(s[1]-o[1])+o[0]&&(n=!n)}}var r,o,s;return n}function hn(e,t,i,n){const r=n[0]-i[0],o=n[1]-i[1],s=(e[0]-i[0])*o-r*(e[1]-i[1]),a=(t[0]-i[0])*o-r*(t[1]-i[1]);return s>0&&a<0||s<0&&a>0}function un(e,t,i,n){return 0!=(r=[n[0]-i[0],n[1]-i[1]])[0]*(o=[t[0]-e[0],t[1]-e[1]])[1]-r[1]*o[0]&&!(!hn(e,t,i,n)||!hn(i,n,e,t));var r,o}function dn(e){const t=new ve(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new ve(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const n of e[0])t.x>n.x&&(t.x=n.x),t.y>n.y&&(t.y=n.y),i.x<n.x&&(i.x=n.x),i.y<n.y&&(i.y=n.y);return{min:t,max:i}}const pn=8192;function fn(e,t){const i=(180+e[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,r=Math.pow(2,t.z);return[Math.round(i*r*pn),Math.round(n*r*pn)]}function mn(e,t){for(let i=0;i<t.length;i++)if(cn(e,t[i]))return!0;return!1}function gn(e,t,i){for(const n of i)for(let i=0,r=n.length,o=r-1;i<r;o=i++)if(un(e,t,n[o],n[i]))return!0;return!1}function _n(e,t){for(let i=0;i<e.length;++i)if(!cn(e[i],t))return!1;for(let i=0;i<e.length-1;++i)if(gn(e[i],e[i+1],t))return!1;return!0}function An(e,t){for(let i=0;i<t.length;i++)if(_n(e,t[i]))return!0;return!1}function yn(e,t,i){const n=[];for(let r=0;r<e.length;r++){const o=[];for(let n=0;n<e[r].length;n++){const s=fn(e[r][n],i);sn(t,s),o.push(s)}n.push(o)}return n}function vn(e,t,i){const n=[];for(let r=0;r<e.length;r++){const o=yn(e[r],t,i);n.push(o)}return n}function xn(e,t,i,n){if(e[0]<i[0]||e[0]>i[2]){const t=.5*n;let r=e[0]-i[0]>t?-n:i[0]-e[0]>t?n:0;0===r&&(r=e[0]-i[2]>t?-n:i[2]-e[0]>t?n:0),e[0]+=r}sn(t,e)}function bn(e,t,i,n){const r=Math.pow(2,n.z)*pn,o=[n.x*pn,n.y*pn],s=[];if(!e)return s;for(const n of e)for(const e of n){const n=[e.x+o[0],e.y+o[1]];xn(n,t,i,r),s.push(n)}return s}function wn(e,t,i,n){const r=Math.pow(2,n.z)*pn,o=[n.x*pn,n.y*pn],s=[];if(!e)return s;for(const i of e){const e=[];for(const n of i){const i=[n.x+o[0],n.y+o[1]];sn(t,i),e.push(i)}s.push(e)}if(t[2]-t[0]<=r/2){(a=t)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(const e of s)for(const n of e)xn(n,t,i,r)}var a;return s}class Cn{constructor(e,t){this.type=Ai,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Fi(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const i=t.features[e].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Cn(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new Cn(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new Cn(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const i=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],r=e.canonicalID();if(!r)return!1;if("Polygon"===t.type){const o=yn(t.coordinates,n,r),s=bn(e.geometry(),i,n,r);if(!an(i,n))return!1;for(const e of s)if(!cn(e,o))return!1}if("MultiPolygon"===t.type){const o=vn(t.coordinates,n,r),s=bn(e.geometry(),i,n,r);if(!an(i,n))return!1;for(const e of s)if(!mn(e,o))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const i=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],r=e.canonicalID();if(!r)return!1;if("Polygon"===t.type){const o=yn(t.coordinates,n,r),s=wn(e.geometry(),i,n,r);if(!an(i,n))return!1;for(const e of s)if(!_n(e,o))return!1}if("MultiPolygon"===t.type){const o=vn(t.coordinates,n,r),s=wn(e.geometry(),i,n,r);if(!an(i,n))return!1;for(const e of s)if(!An(e,o))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const Tn={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},En=1/298.257223563,Sn=En*(2-En),In=Math.PI/180;class Mn{static fromTile(e,t,i){const n=Math.PI*(1-2*(e+.5)/Math.pow(2,t)),r=Math.atan(.5*(Math.exp(n)-Math.exp(-n)))/In;return new Mn(r,i)}static get units(){return Tn}constructor(e,t){if(void 0===e)throw new Error("No latitude given.");if(t&&!Tn[t])throw new Error(`Unknown unit ${t}. Use one of: ${Object.keys(Tn).join(", ")}`);const i=6378.137*In*(t?Tn[t]:1),n=Math.cos(e*In),r=1/(1-Sn*(1-n*n)),o=Math.sqrt(r);this.kx=i*o*n,this.ky=i*o*r*(1-Sn)}distance(e,t){const i=Ln(e[0]-t[0])*this.kx,n=(e[1]-t[1])*this.ky;return Math.sqrt(i*i+n*n)}bearing(e,t){const i=Ln(t[0]-e[0])*this.kx;return Math.atan2(i,(t[1]-e[1])*this.ky)/In}destination(e,t,i){const n=i*In;return this.offset(e,Math.sin(n)*t,Math.cos(n)*t)}offset(e,t,i){return[e[0]+t/this.kx,e[1]+i/this.ky]}lineDistance(e){let t=0;for(let i=0;i<e.length-1;i++)t+=this.distance(e[i],e[i+1]);return t}area(e){let t=0;for(let i=0;i<e.length;i++){const n=e[i];for(let e=0,r=n.length,o=r-1;e<r;o=e++)t+=Ln(n[e][0]-n[o][0])*(n[e][1]+n[o][1])*(i?-1:1)}return Math.abs(t)/2*this.kx*this.ky}along(e,t){let i=0;if(t<=0)return e[0];for(let n=0;n<e.length-1;n++){const r=e[n],o=e[n+1],s=this.distance(r,o);if(i+=s,i>t)return Dn(r,o,(t-(i-s))/s)}return e[e.length-1]}pointToSegmentDistance(e,t,i){let[n,r]=t,o=Ln(i[0]-n)*this.kx,s=(i[1]-r)*this.ky;if(0!==o||0!==s){const t=(Ln(e[0]-n)*this.kx*o+(e[1]-r)*this.ky*s)/(o*o+s*s);t>1?(n=i[0],r=i[1]):t>0&&(n+=o/this.kx*t,r+=s/this.ky*t)}return o=Ln(e[0]-n)*this.kx,s=(e[1]-r)*this.ky,Math.sqrt(o*o+s*s)}pointOnLine(e,t){let i=1/0,n=e[0][0],r=e[0][1],o=0,s=0;for(let a=0;a<e.length-1;a++){let l=e[a][0],c=e[a][1],h=Ln(e[a+1][0]-l)*this.kx,u=(e[a+1][1]-c)*this.ky,d=0;0===h&&0===u||(d=(Ln(t[0]-l)*this.kx*h+(t[1]-c)*this.ky*u)/(h*h+u*u),d>1?(l=e[a+1][0],c=e[a+1][1]):d>0&&(l+=h/this.kx*d,c+=u/this.ky*d)),h=Ln(t[0]-l)*this.kx,u=(t[1]-c)*this.ky;const p=h*h+u*u;p<i&&(i=p,n=l,r=c,o=a,s=d)}return{point:[n,r],index:o,t:Math.max(0,Math.min(1,s))}}lineSlice(e,t,i){let n=this.pointOnLine(i,e),r=this.pointOnLine(i,t);if(n.index>r.index||n.index===r.index&&n.t>r.t){const e=n;n=r,r=e}const o=[n.point],s=n.index+1,a=r.index;!Pn(i[s],o[0])&&s<=a&&o.push(i[s]);for(let e=s+1;e<=a;e++)o.push(i[e]);return Pn(i[a],r.point)||o.push(r.point),o}lineSliceAlong(e,t,i){let n=0;const r=[];for(let o=0;o<i.length-1;o++){const s=i[o],a=i[o+1],l=this.distance(s,a);if(n+=l,n>e&&0===r.length&&r.push(Dn(s,a,(e-(n-l))/l)),n>=t)return r.push(Dn(s,a,(t-(n-l))/l)),r;n>e&&r.push(a)}return r}bufferPoint(e,t){const i=t/this.ky,n=t/this.kx;return[e[0]-n,e[1]-i,e[0]+n,e[1]+i]}bufferBBox(e,t){const i=t/this.ky,n=t/this.kx;return[e[0]-n,e[1]-i,e[2]+n,e[3]+i]}insideBBox(e,t){return Ln(e[0]-t[0])>=0&&Ln(e[0]-t[2])<=0&&e[1]>=t[1]&&e[1]<=t[3]}}function Pn(e,t){return e[0]===t[0]&&e[1]===t[1]}function Dn(e,t,i){const n=Ln(t[0]-e[0]);return[e[0]+n*i,e[1]+(t[1]-e[1])*i]}function Ln(e){for(;e<-180;)e+=360;for(;e>180;)e-=360;return e}class zn{constructor(e=[],t=(e,t)=>e<t?-1:e>t?1:0){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:i}=this,n=t[e];for(;e>0;){const r=e-1>>1,o=t[r];if(i(n,o)>=0)break;t[e]=o,e=r}t[e]=n}_down(e){const{data:t,compare:i}=this,n=this.length>>1,r=t[e];for(;e<n;){let n=1+(e<<1);const o=n+1;if(o<this.length&&i(t[o],t[n])<0&&(n=o),i(t[n],r)>=0)break;t[e]=t[n],e=n}t[e]=r}}var On=8192;function Rn(e,t){return t.dist-e.dist}const kn=100,Bn=50;function Fn(e){const t=[1/0,1/0,-1/0,-1/0];if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}function Nn(e){return e[1]-e[0]+1}function Vn(e,t){const i=e[1]>=e[0]&&e[1]<t;return i||console.warn("Distance Expression: Index is out of range"),i}function jn(e,t){if(e[0]>e[1])return[null,null];const i=Nn(e);if(t){if(2===i)return[e,null];const t=Math.floor(i/2);return[[e[0],e[0]+t],[e[0]+t,e[1]]]}{if(1===i)return[e,null];const t=Math.floor(i/2)-1;return[[e[0],e[0]+t],[e[0]+t+1,e[1]]]}}function Un(e,t){const i=[1/0,1/0,-1/0,-1/0];if(!Vn(t,e.length))return i;for(let n=t[0];n<=t[1];++n)sn(i,e[n]);return i}function Hn(e){const t=[1/0,1/0,-1/0,-1/0];for(let i=0;i<e.length;++i)for(let n=0;n<e[i].length;++n)sn(t,e[i][n]);return t}function Gn(e,t,i){if(Fn(e)||Fn(t))return NaN;let n=0,r=0;return e[2]<t[0]&&(n=t[0]-e[2]),e[0]>t[2]&&(n=e[0]-t[2]),e[1]>t[3]&&(r=e[1]-t[3]),e[3]<t[1]&&(r=t[1]-e[3]),i.distance([0,0],[n,r])}function Zn(e){return 360*e-180}function Wn(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}function qn(e,t){const i=Math.pow(2,t.z),n=(e.y/On+t.y)/i;return[Zn((e.x/On+t.x)/i),Wn(n)]}function Xn(e,t){const i=[];for(let n=0;n<e.length;++n)i.push(qn(e[n],t));return i}function $n(e,t,i){const n=i.pointOnLine(t,e).point;return i.distance(e,n)}function Yn(e,t,i,n,r){const o=i.slice(n[0],n[1]+1);let s=1/0;for(let i=t[0];i<=t[1];++i)if(0===(s=Math.min(s,$n(e[i],o,r))))return 0;return s}function Qn(e,t,i,n,r){const o=Math.min(r.pointToSegmentDistance(e,i,n),r.pointToSegmentDistance(t,i,n)),s=Math.min(r.pointToSegmentDistance(i,e,t),r.pointToSegmentDistance(n,e,t));return Math.min(o,s)}function Kn(e,t,i,n,r){if(!Vn(t,e.length)||!Vn(n,i.length))return NaN;let o=1/0;for(let s=t[0];s<t[1];++s)for(let t=n[0];t<n[1];++t){if(un(e[s],e[s+1],i[t],i[t+1]))return 0;o=Math.min(o,Qn(e[s],e[s+1],i[t],i[t+1],r))}return o}function Jn(e,t,i,n,r){if(!Vn(t,e.length)||!Vn(n,i.length))return NaN;let o=1/0;for(let s=t[0];s<=t[1];++s)for(let t=n[0];t<=n[1];++t)if(0===(o=Math.min(o,r.distance(e[s],i[t]))))return o;return o}function er(e,t,i){if(cn(e,t,!0))return 0;let n=1/0;for(const r of t){const t=r.length;if(t<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(r[0]!==r[t-1]&&0===(n=Math.min(n,i.pointToSegmentDistance(e,r[t-1],r[0]))))return n;if(0===(n=Math.min(n,$n(e,r,i))))return n}return n}function tr(e,t,i,n){if(!Vn(t,e.length))return NaN;for(let n=t[0];n<=t[1];++n)if(cn(e[n],i,!0))return 0;let r=1/0;for(let o=t[0];o<t[1];++o)for(const t of i)for(let i=0,s=t.length,a=s-1;i<s;a=i++){if(un(e[o],e[o+1],t[a],t[i]))return 0;r=Math.min(r,Qn(e[o],e[o+1],t[a],t[i],n))}return r}function ir(e,t){for(const i of e)for(let e=0;e<=i.length-1;++e)if(cn(i[e],t,!0))return!0;return!1}function nr(e,t,i,n=1/0){const r=Hn(e),o=Hn(t);if(n!==1/0&&Gn(r,o,i)>=n)return n;if(an(r,o)){if(ir(e,t))return 0}else if(ir(t,e))return 0;let s=n;for(const n of e)for(let e=0,r=n.length,o=r-1;e<r;o=e++)for(const r of t)for(let t=0,a=r.length,l=a-1;t<a;l=t++){if(un(n[o],n[e],r[l],r[t]))return 0;s=Math.min(s,Qn(n[o],n[e],r[l],r[t],i))}return s}function rr(e,t,i,n,r,o,s){if(null===o||null===s)return;const a=Gn(Un(n,o),Un(r,s),i);a<t&&e.push({dist:a,range1:o,range2:s})}function or(e,t,i,n,r=1/0){let o=Math.min(n.distance(e[0],i[0][0]),r);if(0===o)return o;const s=new zn([{dist:0,range1:[0,e.length-1],range2:[0,0]}],Rn),a=t?Bn:kn,l=Hn(i);for(;s.length;){const r=s.pop();if(r.dist>=o)continue;const c=r.range1;if(Nn(c)<=a){if(!Vn(c,e.length))return NaN;if(t){const t=tr(e,c,i,n);if(0===(o=Math.min(o,t)))return o}else for(let t=c[0];t<=c[1];++t){const r=er(e[t],i,n);if(0===(o=Math.min(o,r)))return o}}else{const i=jn(c,t);if(null!==i[0]){const t=Gn(Un(e,i[0]),l,n);t<o&&s.push({dist:t,range1:i[0],range2:[0,0]})}if(null!==i[1]){const t=Gn(Un(e,i[1]),l,n);t<o&&s.push({dist:t,range1:i[1],range2:[0,0]})}}}return o}function sr(e,t,i,n,r,o=1/0){let s=Math.min(o,r.distance(e[0],i[0]));if(0===s)return s;const a=new zn([{dist:0,range1:[0,e.length-1],range2:[0,i.length-1]}],Rn),l=t?Bn:kn,c=n?Bn:kn;for(;a.length;){const o=a.pop();if(o.dist>=s)continue;const h=o.range1,u=o.range2;if(Nn(h)<=l&&Nn(u)<=c){if(!Vn(h,e.length)||!Vn(u,i.length))return NaN;if(t&&n?s=Math.min(s,Kn(e,h,i,u,r)):t||n?t&&!n?s=Math.min(s,Yn(i,u,e,h,r)):!t&&n&&(s=Math.min(s,Yn(e,h,i,u,r))):s=Math.min(s,Jn(e,h,i,u,r)),0===s)return s}else{const o=jn(h,t),l=jn(u,n);rr(a,s,r,e,i,o[0],l[0]),rr(a,s,r,e,i,o[0],l[1]),rr(a,s,r,e,i,o[1],l[0]),rr(a,s,r,e,i,o[1],l[1])}}return s}function ar(e,t,i,n,r=1/0){let o=r;const s=Un(e,[0,e.length-1]);for(const r of i)if(!(o!==1/0&&Gn(s,Un(r,[0,r.length-1]),n)>=o)&&(o=Math.min(o,sr(e,t,r,!0,n,o)),0===o))return o;return o}function lr(e,t,i,n,r=1/0){let o=r;const s=Un(e,[0,e.length-1]);for(const r of i){if(o!==1/0&&Gn(s,Hn(r),n)>=o)continue;const i=or(e,t,r,n,o);if(isNaN(i))return i;if(0===(o=Math.min(o,i)))return o}return o}function cr(e){return"Point"===e||"MultiPoint"===e||"LineString"===e||"MultiLineString"===e||"Polygon"===e||"MultiPolygon"===e}class hr{constructor(e,t){this.type=gi,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(Fi(e[1])){const t=e[1];if("FeatureCollection"===t.type){for(let e=0;e<t.features.length;++e)if(cr(t.features[e].geometry.type))return new hr(t,t.features[e].geometry)}else if("Feature"===t.type){if(cr(t.geometry.type))return new hr(t,t.geometry)}else if(cr(t.type))return new hr(t,t)}return t.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const t=e.geometry(),i=e.canonicalID();if(null!=t&&null!=i){if("Point"===e.geometryType())return function(e,t,i){const n=[];for(const i of e)for(const e of i)n.push(qn(e,t));const r=new Mn(n[0][1],"meters");return"Point"===i.type||"MultiPoint"===i.type||"LineString"===i.type?sr(n,!1,"Point"===i.type?[i.coordinates]:i.coordinates,"LineString"===i.type,r):"MultiLineString"===i.type?ar(n,!1,i.coordinates,r):"Polygon"===i.type||"MultiPolygon"===i.type?lr(n,!1,"Polygon"===i.type?[i.coordinates]:i.coordinates,r):null}(t,i,this.geometries);if("LineString"===e.geometryType())return function(e,t,i){const n=[];for(const i of e){const e=[];for(const n of i)e.push(qn(n,t));n.push(e)}const r=new Mn(n[0][0][1],"meters");if("Point"===i.type||"MultiPoint"===i.type||"LineString"===i.type)return ar("Point"===i.type?[i.coordinates]:i.coordinates,"LineString"===i.type,n,r);if("MultiLineString"===i.type){let e=1/0;for(let t=0;t<i.coordinates.length;t++){const o=ar(i.coordinates[t],!0,n,r,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}if("Polygon"===i.type||"MultiPolygon"===i.type){let e=1/0;for(let t=0;t<n.length;t++){const o=lr(n[t],!0,"Polygon"===i.type?[i.coordinates]:i.coordinates,r,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}return null}(t,i,this.geometries);if("Polygon"===e.geometryType())return function(e,t,i){const n=[];for(const i of function(e){const t=e.length;if(t<=1)return[e];const i=[];let n,r;for(let o=0;o<t;o++){const t=on(e[o]);0!==t&&(e[o].area=Math.abs(t),void 0===r&&(r=t<0),r===t<0?(n&&i.push(n),n=[e[o]]):n.push(e[o]))}return n&&i.push(n),i}(e)){const e=[];for(let n=0;n<i.length;++n)e.push(Xn(i[n],t));n.push(e)}const r=new Mn(n[0][0][0][1],"meters");if("Point"===i.type||"MultiPoint"===i.type||"LineString"===i.type)return lr("Point"===i.type?[i.coordinates]:i.coordinates,"LineString"===i.type,n,r);if("MultiLineString"===i.type){let e=1/0;for(let t=0;t<i.coordinates.length;t++){const o=lr(i.coordinates[t],!0,n,r,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}return"Polygon"===i.type||"MultiPolygon"===i.type?function(e,t,i){let n=1/0;for(const r of e)for(const e of t){const t=nr(r,e,i,n);if(isNaN(t))return t;if(0===(n=Math.min(n,t)))return n}return n}("Polygon"===i.type?[i.coordinates]:i.coordinates,n,r):null}(t,i,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function ur(e){if(e instanceof Ki){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof Cn)return!1;if(e instanceof hr)return!1;if(e instanceof Ar)return e.featureConstant;let t=!0;return e.eachChild(e=>{t&&!ur(e)&&(t=!1)}),t}function dr(e){if(e instanceof Ki&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild(e=>{t&&!dr(e)&&(t=!1)}),t}function pr(e){if(e instanceof Ar)return new Set([e.key]);let t=new Set;return e.eachChild(e=>{t=new Set([...t,...pr(e)])}),t}function fr(e,t){if(e instanceof Ki&&t.indexOf(e.name)>=0)return!1;let i=!0;return e.eachChild(e=>{i&&!fr(e,t)&&(i=!1)}),i}function mr(e,t,i){return[e,t,i].filter(Boolean).join("")}function gr(e,t){switch(e){case"string":return Vi(t);case"number":return+t;case"boolean":return!!t;case"color":return oi.parse(t);case"formatted":return Oi.fromString(Vi(t));case"resolvedImage":return ki.build(Vi(t))}return t}function _r(e,t,i,n){return void 0!==n&&(e=n*Math.round(e/n)),void 0!==t&&e<t&&(e=t),void 0!==i&&e>i&&(e=i),e}class Ar{constructor(e,t,i,n=!1){this.type=e,this.key=t,this.scope=i,this.featureConstant=n}static parse(e,t){let i=t.expectedType;if(null==i&&(i=xi),e.length<2||e.length>3)return t.error("Invalid number of arguments for 'config' expression.");const n=t.parse(e[1],1);if(!(n instanceof ji))return t.error("Key name of 'config' expression must be a string literal.");let r,o=!0;const s=Vi(n.value);if(e.length>=3){const i=t.parse(e[2],2);if(!(i instanceof ji))return t.error("Scope of 'config' expression must be a string literal.");r=Vi(i.value)}if(t.options){const e=mr(s,r,t._scope),i=t.options.get(e);i&&(o=ur(i.value||i.default))}return new Ar(i,s,r,o)}evaluate(e){const t=mr(this.key,this.scope,e.scope),i=e.getConfig(t);if(!i)return null;const{type:n,value:r,values:o,minValue:s,maxValue:a,stepValue:l}=i,c=i.default.evaluate(e);let h=c;if(r){const t=e.scope;e.scope=(t||"").split("").slice(1).join(""),h=r.evaluate(e),e.scope=t}return n&&(h=gr(n,h)),void 0===h||void 0===s&&void 0===a&&void 0===l||("number"==typeof h?h=_r(h,s,a,l):Array.isArray(h)&&(h=h.map(e=>"number"==typeof e?_r(e,s,a,l):e))),void 0!==r&&void 0!==h&&o&&!o.includes(h)&&(h=c,n&&(h=gr(n,h))),(n&&n!==this.type||void 0!==h&&!Di(Ni(h),this.type))&&(h=gr(this.type.kind,h)),h}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.scope),e}}class yr{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const i=e[1];return t.scope.has(i)?new yr(i,t.scope.get(i)):t.error(`Unknown variable "${i}". Make sure "${i}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class vr{constructor(e,t=[],i,n=new fi,r=[],o,s){this.registry=e,this.path=t,this.key=t.map(e=>"string"==typeof e?`['${e}']`:`[${e}]`).join(""),this.scope=n,this.errors=r,this.expectedType=i,this._scope=o,this.options=s}parse(e,t,i,n,r={}){return t||i?this.concat(t,null,i,n)._parse(e,r):this._parse(e,r)}parseObjectValue(e,t,i,n,r,o={}){return this.concat(t,i,n,r)._parse(e,o)}_parse(e,t){function i(e,t,i){return"assert"===i?new Gi(t,[e]):"coerce"===i?new $i(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const n="string"==typeof e[0]?this.registry[e[0]]:void 0;if(n){let r=n.parse(e,this);if(!r)return null;if(this.expectedType){const e=this.expectedType,n=r.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==n.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==n.kind&&"string"!==n.kind){if(this.checkSubtype(e,n))return null}else r=i(r,e,t.typeAnnotation||"coerce");else r=i(r,e,t.typeAnnotation||"assert")}if(!(r instanceof ji)&&"resolvedImage"!==r.type.kind&&xr(r)){const t=new Qi(this._scope,this.options);try{r=new ji(r.type,r.evaluate(t))}catch(e){return this.error(e.message),null}}return r}return $i.parse(["to-array",e],this)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,i,n){let r="number"==typeof e?this.path.concat(e):this.path;r="string"==typeof t?r.concat(t):r;const o=n?this.scope.concat(n):this.scope;return new vr(this.registry,r,i||null,o,this.errors,this._scope,this.options)}error(e,...t){const i=`${this.key}${t.map(e=>`[${e}]`).join("")}`;this.errors.push(new pi(i,e))}checkSubtype(e,t){const i=Ii(e,t);return i&&this.error(i),i}}function xr(e){if(e instanceof yr)return xr(e.boundExpression);if(e instanceof Ki&&"error"===e.name)return!1;if(e instanceof en)return!1;if(e instanceof Cn)return!1;if(e instanceof hr)return!1;if(e instanceof Ar)return!1;const t=e instanceof $i||e instanceof Gi;let i=!0;return e.eachChild(e=>{i=t?i&&xr(e):i&&e instanceof ji}),!!i&&ur(e)&&fr(e,["zoom","heatmap-density","worldview","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function br(e,t){const i=e.length-1;let n,r,o=0,s=i,a=0;for(;o<=s;)if(a=Math.floor((o+s)/2),n=e[a],r=e[a+1],n<=t){if(a===i||t<r)return a;o=a+1}else{if(!(n>t))throw new Ui("Input is not a number.");s=a-1}return 0}class wr{constructor(e,t,i){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of i)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const i=t.parse(e[1],1,gi);if(!i)return null;const n=[];let r=null;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(let i=1;i<e.length;i+=2){const o=1===i?-1/0:e[i],s=e[i+1],a=i,l=i+1;if("number"!=typeof o)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',a);if(n.length&&n[n.length-1][0]>=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const c=t.parse(s,l,r);if(!c)return null;r=r||c.type,n.push([o,c])}return new wr(r,i,n)}evaluate(e){const t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);const n=this.input.evaluate(e);if(n<=t[0])return i[0].evaluate(e);const r=t.length;return n>=t[r-1]?i[r-1].evaluate(e):i[br(t,n)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}const Cr=.95047,Tr=1.08883,Er=4/29,Sr=6/29,Ir=3*Sr*Sr,Mr=Sr*Sr*Sr,Pr=Math.PI/180,Dr=180/Math.PI;function Lr(e){return e>Mr?Math.pow(e,1/3):e/Ir+Er}function zr(e){return e>Sr?e*e*e:Ir*(e-Er)}function Or(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Rr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kr(e){const t=Rr(e.r),i=Rr(e.g),n=Rr(e.b),r=Lr((.4124564*t+.3575761*i+.1804375*n)/Cr),o=Lr((.2126729*t+.7151522*i+.072175*n)/1);return{l:116*o-16,a:500*(r-o),b:200*(o-Lr((.0193339*t+.119192*i+.9503041*n)/Tr)),alpha:e.a}}function Br(e){let t=(e.l+16)/116,i=isNaN(e.a)?t:t+e.a/500,n=isNaN(e.b)?t:t-e.b/200;return t=1*zr(t),i=Cr*zr(i),n=Tr*zr(n),new oi(Or(3.2404542*i-1.5371385*t-.4985314*n),Or(-.969266*i+1.8760108*t+.041556*n),Or(.0556434*i-.2040259*t+1.0572252*n),e.alpha)}function Fr(e,t,i){const n=t-e;return e+i*(n>180||n<-180?n-360*Math.round(n/360):n)}const Nr={forward:kr,reverse:Br,interpolate:function(e,t,i){return{l:ci(e.l,t.l,i),a:ci(e.a,t.a,i),b:ci(e.b,t.b,i),alpha:ci(e.alpha,t.alpha,i)}}},Vr={forward:function(e){const{l:t,a:i,b:n}=kr(e),r=Math.atan2(n,i)*Dr;return{h:r<0?r+360:r,c:Math.sqrt(i*i+n*n),l:t,alpha:e.a}},reverse:function(e){const t=e.h*Pr,i=e.c;return Br({l:e.l,a:Math.cos(t)*i,b:Math.sin(t)*i,alpha:e.alpha})},interpolate:function(e,t,i){return{h:Fr(e.h,t.h,i),c:ci(e.c,t.c,i),l:ci(e.l,t.l,i),alpha:ci(e.alpha,t.alpha,i)}}};var jr=Object.freeze({__proto__:null,hcl:Vr,lab:Nr});class Ur{constructor(e,t,i,n,r){this.type=e,this.operator=t,this.interpolation=i,this.input=n,this.labels=[],this.outputs=[];for(const[e,t]of r)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,i,n){let r=0;if("exponential"===e.name)r=Hr(t,e.base,i,n);else if("linear"===e.name)r=Hr(t,1,i,n);else if("cubic-bezier"===e.name){const o=e.controlPoints;r=new Ae(o[0],o[1],o[2],o[3]).solve(Hr(t,1,i,n))}return r}static parse(e,t){let[i,n,r,...o]=e;if(!Array.isArray(n)||0===n.length)return t.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){const e=n[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:e}}else{if("cubic-bezier"!==n[0])return t.error(`Unknown interpolation type ${String(n[0])}`,1,0);{const e=n.slice(1);if(4!==e.length||e.some(e=>"number"!=typeof e||e<0||e>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length-1>3&&(e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(r=t.parse(r,2,gi),!r)return null;const s=[];let a=null;"interpolate-hcl"===i||"interpolate-lab"===i?a=yi:t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(let e=0;e<o.length;e+=2){const i=o[e],n=o[e+1],r=e+3,l=e+4;if("number"!=typeof i)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',r);if(s.length&&s[s.length-1][0]>=i)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',r);const c=t.parse(n,l,a);if(!c)return null;a=a||c.type,s.push([i,c])}return"number"===a.kind||"color"===a.kind||"array"===a.kind&&"number"===a.itemType.kind&&"number"==typeof a.N?new Ur(a,i,n,r,s):t.error(`Type ${Ei(a)} is not interpolatable.`)}evaluate(e){const t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);const n=this.input.evaluate(e);if(n<=t[0])return i[0].evaluate(e);const r=t.length;if(n>=t[r-1])return i[r-1].evaluate(e);const o=br(t,n),s=Ur.interpolationFactor(this.interpolation,n,t[o],t[o+1]),a=i[o].evaluate(e),l=i[o+1].evaluate(e);return"interpolate"===this.operator?ui[this.type.kind.toLowerCase()](a,l,s):"interpolate-hcl"===this.operator?Vr.reverse(Vr.interpolate(Vr.forward(a),Vr.forward(l),s)):Nr.reverse(Nr.interpolate(Nr.forward(a),Nr.forward(l),s))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier",...this.interpolation.controlPoints];const t=[this.operator,e,this.input.serialize()];for(let e=0;e<this.labels.length;e++)t.push(this.labels[e],this.outputs[e].serialize());return t}}function Hr(e,t,i,n){const r=n-i,o=e-i;return 0===r?0:1===t?o/r:(Math.pow(t,o)-1)/(Math.pow(t,r)-1)}class Gr{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let i=null;const n=t.expectedType;n&&"value"!==n.kind&&(i=n);const r=[];for(const n of e.slice(1)){const e=t.parse(n,1+r.length,i,void 0,{typeAnnotation:"omit"});if(!e)return null;i=i||e.type,r.push(e)}const o=n&&r.some(e=>Ii(n,e.type));return new Gr(o?xi:i,r)}evaluate(e){let t,i=null,n=0;for(const r of this.args){if(n++,i=r.evaluate(e),i&&i instanceof ki&&!i.available&&(t||(t=i),i=null,n===this.args.length))return t;if(null!==i)break}return i}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class Zr{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const i=[];for(let n=1;n<e.length-1;n+=2){const r=e[n];if("string"!=typeof r)return t.error(`Expected string, but found ${typeof r} instead.`,n);if(/[^a-zA-Z0-9_]/.test(r))return t.error("Variable names must contain only alphanumeric characters or '_'.",n);const o=t.parse(e[n+1],n+1);if(!o)return null;i.push([r,o])}const n=t.parse(e[e.length-1],e.length-1,t.expectedType,i);return n?new Zr(i,n):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[t,i]of this.bindings)e.push(t,i.serialize());return e.push(this.result.serialize()),e}}class Wr{constructor(e,t,i){this.type=e,this.index=t,this.input=i}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,gi),n=t.parse(e[2],2,Ti(t.expectedType||xi));return i&&n?new Wr(n.type.itemType,i,n):null}evaluate(e){const t=this.index.evaluate(e),i=this.input.evaluate(e);if(t<0)throw new Ui(`Array index out of bounds: ${t} < 0.`);if(t>=i.length)throw new Ui(`Array index out of bounds: ${t} > ${i.length-1}.`);if(t!==Math.floor(t))throw new Ui(`Array index must be an integer, but found ${t} instead. Use at-interpolated to retrieve interpolated result with a fractional index.`);return i[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class qr{constructor(e,t,i){this.type=e,this.index=t,this.input=i}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,gi),n=t.parse(e[2],2,Ti(t.expectedType||xi));return i&&n?new qr(n.type.itemType,i,n):null}evaluate(e){const t=this.index.evaluate(e),i=this.input.evaluate(e);if(t<0)throw new Ui(`Array index out of bounds: ${t} < 0.`);if(t>i.length-1)throw new Ui(`Array index out of bounds: ${t} > ${i.length-1}.`);if(t===Math.floor(t))return i[t];const n=Math.floor(t),r=Math.ceil(t),o=i[n],s=i[r];if("number"!=typeof o||"number"!=typeof s)throw new Ui(`Cannot interpolate between non-number values at index ${t}.`);const a=t-n;return o*(1-a)+s*a}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Xr{constructor(e,t){this.type=Ai,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,xi),n=t.parse(e[2],2,xi);return i&&n?Mi(i.type,[Ai,_i,gi,mi,xi])?new Xr(i,n):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ei(i.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(null==i)return!1;if(!Pi(t,["boolean","string","number","null"]))throw new Ui(`Expected first argument to be of type boolean, string, number or null, but found ${Ei(Ni(t))} instead.`);if(!Pi(i,["string","array"]))throw new Ui(`Expected second argument to be of type array or string, but found ${Ei(Ni(i))} instead.`);return i.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class $r{constructor(e,t,i){this.type=gi,this.needle=e,this.haystack=t,this.fromIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,xi),n=t.parse(e[2],2,xi);if(!i||!n)return null;if(!Mi(i.type,[Ai,_i,gi,mi,xi]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ei(i.type)} instead`);if(4===e.length){const r=t.parse(e[3],3,gi);return r?new $r(i,n,r):null}return new $r(i,n)}evaluate(e){const t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!Pi(t,["boolean","string","number","null"]))throw new Ui(`Expected first argument to be of type boolean, string, number or null, but found ${Ei(Ni(t))} instead.`);if(!Pi(i,["string","array"]))throw new Ui(`Expected second argument to be of type array or string, but found ${Ei(Ni(i))} instead.`);if(this.fromIndex){const n=this.fromIndex.evaluate(e);return i.indexOf(t,n)}return i.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Yr{constructor(e,t,i,n,r,o){this.inputType=e,this.type=t,this.input=i,this.cases=n,this.outputs=r,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let i,n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const r={},o=[];for(let s=2;s<e.length-1;s+=2){let a=e[s];const l=e[s+1];Array.isArray(a)||(a=[a]);const c=t.concat(s);if(0===a.length)return c.error("Expected at least one branch label.");for(const e of a){if("number"!=typeof e&&"string"!=typeof e)return c.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(i){if(c.checkSubtype(i,Ni(e)))return null}else i=Ni(e);if(void 0!==r[String(e)])return c.error("Branch labels must be unique.");r[String(e)]=o.length}const h=t.parse(l,s,n);if(!h)return null;n=n||h.type,o.push(h)}const s=t.parse(e[1],1,xi);if(!s)return null;const a=t.parse(e[e.length-1],e.length-1,n);return a?"value"!==s.type.kind&&t.concat(1).checkSubtype(i,s.type)?null:new Yr(i,n,s,r,o,a):null}evaluate(e){const t=this.input.evaluate(e);return(Di(Ni(t),this.inputType)&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),i=[],n={};for(const e of t){const t=n[this.cases[e]];void 0===t?(n[this.cases[e]]=i.length,i.push([this.cases[e],[e]])):i[t][1].push(e)}const r=e=>"number"===this.inputType.kind?Number(e):e;for(const[t,n]of i)e.push(1===n.length?r(n[0]):n.map(r)),e.push(this.outputs[t].serialize());return e.push(this.otherwise.serialize()),e}}class Qr{constructor(e,t,i){this.type=e,this.branches=t,this.otherwise=i}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let i;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);const n=[];for(let r=1;r<e.length-1;r+=2){const o=t.parse(e[r],r,Ai);if(!o)return null;const s=t.parse(e[r+1],r+1,i);if(!s)return null;n.push([o,s]),i=i||s.type}const r=t.parse(e[e.length-1],e.length-1,i);return r?new Qr(i,n,r):null}evaluate(e){for(const[t,i]of this.branches)if(t.evaluate(e))return i.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,i]of this.branches)e(t),e(i);e(this.otherwise)}outputDefined(){return this.branches.every(([e,t])=>t.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class Kr{constructor(e,t,i,n){this.type=e,this.input=t,this.beginIndex=i,this.endIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,xi),n=t.parse(e[2],2,gi);if(!i||!n)return null;if(!Mi(i.type,[Ti(xi),_i,xi]))return t.error(`Expected first argument to be of type array or string, but found ${Ei(i.type)} instead`);if(4===e.length){const r=t.parse(e[3],3,gi);return r?new Kr(i.type,i,n,r):null}return new Kr(i.type,i,n)}evaluate(e){const t=this.input.evaluate(e),i=this.beginIndex.evaluate(e);if(!Pi(t,["string","array"]))throw new Ui(`Expected first argument to be of type array or string, but found ${Ei(Ni(t))} instead.`);if(this.endIndex){const n=this.endIndex.evaluate(e);return t.slice(i,n)}return t.slice(i)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function Jr(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function eo(e,t,i,n){return 0===n.compare(t,i)}function to(e,t,i){const n="=="!==e&&"!="!==e;return class r{constructor(e,t,i){this.type=Ai,this.lhs=e,this.rhs=t,this.collator=i,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const i=e[0];let o=t.parse(e[1],1,xi);if(!o)return null;if(!Jr(i,o.type))return t.concat(1).error(`"${i}" comparisons are not supported for type '${Ei(o.type)}'.`);let s=t.parse(e[2],2,xi);if(!s)return null;if(!Jr(i,s.type))return t.concat(2).error(`"${i}" comparisons are not supported for type '${Ei(s.type)}'.`);if(o.type.kind!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return t.error(`Cannot compare types '${Ei(o.type)}' and '${Ei(s.type)}'.`);n&&("value"===o.type.kind&&"value"!==s.type.kind?o=new Gi(s.type,[o]):"value"!==o.type.kind&&"value"===s.type.kind&&(s=new Gi(o.type,[s])));let a=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return t.error("Cannot use collator to compare non-string types.");if(a=t.parse(e[3],3,bi),!a)return null}return new r(o,s,a)}evaluate(r){const o=this.lhs.evaluate(r),s=this.rhs.evaluate(r);if(n&&this.hasUntypedArgument){const t=Ni(o),i=Ni(s);if(t.kind!==i.kind||"string"!==t.kind&&"number"!==t.kind)throw new Ui(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${i.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const e=Ni(o),i=Ni(s);if("string"!==e.kind||"string"!==i.kind)return t(r,o,s)}return this.collator?i(r,o,s,this.collator.evaluate(r)):t(r,o,s)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild(e=>{t.push(e.serialize())}),t}}}const io=to("==",function(e,t,i){return t===i},eo),no=to("!=",function(e,t,i){return t!==i},function(e,t,i,n){return!eo(0,t,i,n)}),ro=to("<",function(e,t,i){return t<i},function(e,t,i,n){return n.compare(t,i)<0}),oo=to(">",function(e,t,i){return t>i},function(e,t,i,n){return n.compare(t,i)>0}),so=to("<=",function(e,t,i){return t<=i},function(e,t,i,n){return n.compare(t,i)<=0}),ao=to(">=",function(e,t,i){return t>=i},function(e,t,i,n){return n.compare(t,i)>=0});class lo{constructor(e,t,i,n,r,o){this.type=_i,this.number=e,this.locale=t,this.currency=i,this.unit=n,this.minFractionDigits=r,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const i=t.parse(e[1],1,gi);if(!i)return null;const n=e[2];if("object"!=typeof n||Array.isArray(n))return t.error("NumberFormat options argument must be an object.");let r=null;if(n.locale&&(r=t.parseObjectValue(n.locale,2,"locale",_i),!r))return null;let o=null;if(n.currency&&(o=t.parseObjectValue(n.currency,2,"currency",_i),!o))return null;let s=null;if(n.unit&&(s=t.parseObjectValue(n.unit,2,"unit",_i),!s))return null;let a=null;if(n["min-fraction-digits"]&&(a=t.parseObjectValue(n["min-fraction-digits"],2,"min-fraction-digits",gi),!a))return null;let l=null;return n["max-fraction-digits"]&&(l=t.parseObjectValue(n["max-fraction-digits"],2,"max-fraction-digits",gi),!l)?null:new lo(i,r,o,s,a,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class co{constructor(e){this.type=gi,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const i=t.parse(e[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?t.error(`Expected argument of type string or array, but found ${Ei(i.type)} instead.`):new co(i):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Ui(`Expected value to be of type string or array, but found ${Ei(Ni(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(t=>{e.push(t.serialize())}),e}}function ho(e){return function(){e=1831565813+(e|=0)|0;let t=Math.imul(e^e>>>15,1|e);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296}}const uo={"==":io,"!=":no,">":oo,"<":ro,">=":ao,"<=":so,array:Gi,at:Wr,"at-interpolated":qr,boolean:Gi,case:Qr,coalesce:Gr,collator:en,format:Zi,image:Wi,in:Xr,"index-of":$r,interpolate:Ur,"interpolate-hcl":Ur,"interpolate-lab":Ur,length:co,let:Zr,literal:ji,match:Yr,number:Gi,"number-format":lo,object:Gi,slice:Kr,step:wr,string:Gi,"to-boolean":$i,"to-color":$i,"to-number":$i,"to-string":$i,var:yr,within:Cn,distance:hr,config:Ar};function po(e,[t,i,n,r]){t=t.evaluate(e),i=i.evaluate(e),n=n.evaluate(e);const o=r?r.evaluate(e):1,s=Bi(t,i,n,o);if(s)throw new Ui(s);return new oi(t/255,i/255,n/255,o)}function fo(e,[t,i,n,r]){t=t.evaluate(e),i=i.evaluate(e),n=n.evaluate(e);const o=r?r.evaluate(e):1,s=function(e,t,i,n){return"number"==typeof e&&e>=0&&e<=360?"number"==typeof t&&t>=0&&t<=100&&"number"==typeof i&&i>=0&&i<=100?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:`Invalid hsla value [${[e,t,i,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${("number"==typeof n?[e,t,i,n]:[e,t,i]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${("number"==typeof n?[e,t,i,n]:[e,t,i]).join(", ")}]: 'h' must be between 0 and 360.`}(t,i,n,o);if(s)throw new Ui(s);const a=`hsla(${t}, ${i}%, ${n}%, ${o})`,l=oi.parse(a);if(!l)throw new Ui(`Failed to parse HSLA color: ${a}`);return l}function mo(e,t){return e in t}function go(e,t){const i=t[e];return void 0===i?null:i}function _o(e){return{type:e}}function Ao(e){return{result:"success",value:e}}function yo(e){return{result:"error",value:e}}function vo(e,t){return!!e&&!!e.parameters&&e.parameters.indexOf(t)>-1}function xo(e){return"data-driven"===e["property-type"]}function bo(e){return vo(e.expression,"measure-light")}function wo(e){return vo(e.expression,"zoom")}function Co(e){return!!e.expression&&e.expression.interpolated}function To(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Eo(e){return e}function So(e,t){const i="color"===t.type,n=e.stops&&"object"==typeof e.stops[0][0],r=n||!(n||void 0!==e.property),o=e.type||(Co(t)?"exponential":"interval");if(i&&((e=di({},e)).stops&&(e.stops=e.stops.map(e=>[e[0],oi.parse(e[1])])),e.default=oi.parse(e.default?e.default:t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!jr[e.colorSpace])throw new Error(`Unknown color space: ${e.colorSpace}`);let s,a,l;if("exponential"===o)s=Do;else if("interval"===o)s=Po;else if("categorical"===o){s=Mo,a=Object.create(null);for(const t of e.stops)a[t[0]]=t[1];l=typeof e.stops[0][0]}else{if("identity"!==o)throw new Error(`Unknown function type "${o}"`);s=Lo}if(n){const i={},n=[];for(let t=0;t<e.stops.length;t++){const r=e.stops[t],o=r[0].zoom;void 0===i[o]&&(i[o]={zoom:o,type:e.type,property:e.property,default:e.default,stops:[]},n.push(o)),i[o].stops.push([r[0].value,r[1]])}const r=[];for(const e of n)r.push([i[e].zoom,So(i[e],t)]);const o={name:"linear"};return{kind:"composite",interpolationType:o,interpolationFactor:Ur.interpolationFactor.bind(void 0,o),zoomStops:r.map(e=>e[0]),evaluate:({zoom:i},n)=>Do({stops:r,base:e.base},t,i).evaluate(i,n)}}if(r){const i="exponential"===o?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:i,interpolationFactor:Ur.interpolationFactor.bind(void 0,i),zoomStops:e.stops.map(e=>e[0]),evaluate:({zoom:i})=>s(e,t,i,a,l)}}return{kind:"source",evaluate(i,n){const r=n&&n.properties?n.properties[e.property]:void 0;return void 0===r?Io(e.default,t.default):s(e,t,r,a,l)}}}function Io(e,t,i){return void 0!==e?e:void 0!==t?t:void 0!==i?i:void 0}function Mo(e,t,i,n,r){return Io(typeof i===r?n[i]:void 0,e.default,t.default)}function Po(e,t,i){if("number"!==qi(i))return Io(e.default,t.default);const n=e.stops.length;if(1===n)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[n-1][0])return e.stops[n-1][1];const r=br(e.stops.map(e=>e[0]),i);return e.stops[r][1]}function Do(e,t,i){const n=void 0!==e.base?e.base:1;if("number"!==qi(i))return Io(e.default,t.default);const r=e.stops.length;if(1===r)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[r-1][0])return e.stops[r-1][1];const o=br(e.stops.map(e=>e[0]),i),s=function(e,t,i,n){const r=n-i,o=e-i;return 0===r?0:1===t?o/r:(Math.pow(t,o)-1)/(Math.pow(t,r)-1)}(i,n,e.stops[o][0],e.stops[o+1][0]),a=e.stops[o][1],l=e.stops[o+1][1];let c=ui[t.type]||Eo;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=jr[e.colorSpace];c=(e,i)=>t.reverse(t.interpolate(t.forward(e),t.forward(i),s))}return"function"==typeof a.evaluate?{evaluate(...e){const t=a.evaluate.apply(void 0,e),i=l.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==i)return c(t,i,s)}}:c(a,l,s)}function Lo(e,t,i){return"color"===t.type?i=oi.parse(i):"formatted"===t.type?i=Oi.fromString(i.toString()):"resolvedImage"===t.type?i=ki.build(i.toString()):qi(i)===t.type||"enum"===t.type&&t.values[i]||(i=void 0),Io(i,e.default,t.default)}Ki.register(uo,{error:[{kind:"error"},[_i],(e,[t])=>{throw new Ui(t.evaluate(e))}],typeof:[_i,[xi],(e,[t])=>Ei(Ni(t.evaluate(e)))],"to-rgba":[Ti(gi,4),[yi],(e,[t])=>t.evaluate(e).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Ti(gi,4),[yi],(e,[t])=>t.evaluate(e).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[yi,[gi,gi,gi],po],rgba:[yi,[gi,gi,gi,gi],po],hsl:[yi,[gi,gi,gi],fo],hsla:[yi,[gi,gi,gi,gi],fo],has:{type:Ai,overloads:[[[_i],(e,[t])=>mo(t.evaluate(e),e.properties())],[[_i,vi],(e,[t,i])=>mo(t.evaluate(e),i.evaluate(e))]]},get:{type:xi,overloads:[[[_i],(e,[t])=>go(t.evaluate(e),e.properties())],[[_i,vi],(e,[t,i])=>go(t.evaluate(e),i.evaluate(e))]]},"feature-state":[xi,[_i],(e,[t])=>go(t.evaluate(e),e.featureState||{})],properties:[vi,[],e=>e.properties()],"geometry-type":[_i,[],e=>e.geometryType()],worldview:[_i,[],e=>e.globals.worldview||""],id:[xi,[],e=>e.id()],zoom:[gi,[],e=>e.globals.zoom],pitch:[gi,[],e=>e.globals.pitch||0],"distance-from-center":[gi,[],e=>e.distanceFromCenter()],"measure-light":[gi,[_i],(e,[t])=>e.measureLight(t.evaluate(e))],"heatmap-density":[gi,[],e=>e.globals.heatmapDensity||0],"line-progress":[gi,[],e=>e.globals.lineProgress||0],"raster-value":[gi,[],e=>e.globals.rasterValue||0],"raster-particle-speed":[gi,[],e=>e.globals.rasterParticleSpeed||0],"sky-radial-progress":[gi,[],e=>e.globals.skyRadialProgress||0],accumulated:[xi,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[gi,_o(gi),(e,t)=>{let i=0;for(const n of t)i+=n.evaluate(e);return i}],"*":[gi,_o(gi),(e,t)=>{let i=1;for(const n of t)i*=n.evaluate(e);return i}],"-":{type:gi,overloads:[[[gi,gi],(e,[t,i])=>t.evaluate(e)-i.evaluate(e)],[[gi],(e,[t])=>-t.evaluate(e)]]},"/":[gi,[gi,gi],(e,[t,i])=>t.evaluate(e)/i.evaluate(e)],"%":[gi,[gi,gi],(e,[t,i])=>t.evaluate(e)%i.evaluate(e)],ln2:[gi,[],()=>Math.LN2],pi:[gi,[],()=>Math.PI],e:[gi,[],()=>Math.E],"^":[gi,[gi,gi],(e,[t,i])=>Math.pow(t.evaluate(e),i.evaluate(e))],sqrt:[gi,[gi],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[gi,[gi],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[gi,[gi],(e,[t])=>Math.log(t.evaluate(e))],log2:[gi,[gi],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[gi,[gi],(e,[t])=>Math.sin(t.evaluate(e))],cos:[gi,[gi],(e,[t])=>Math.cos(t.evaluate(e))],tan:[gi,[gi],(e,[t])=>Math.tan(t.evaluate(e))],asin:[gi,[gi],(e,[t])=>Math.asin(t.evaluate(e))],acos:[gi,[gi],(e,[t])=>Math.acos(t.evaluate(e))],atan:[gi,[gi],(e,[t])=>Math.atan(t.evaluate(e))],min:[gi,_o(gi),(e,t)=>Math.min(...t.map(t=>t.evaluate(e)))],max:[gi,_o(gi),(e,t)=>Math.max(...t.map(t=>t.evaluate(e)))],abs:[gi,[gi],(e,[t])=>Math.abs(t.evaluate(e))],round:[gi,[gi],(e,[t])=>{const i=t.evaluate(e);return i<0?-Math.round(-i):Math.round(i)}],floor:[gi,[gi],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[gi,[gi],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Ai,[_i,xi],(e,[t,i])=>e.properties()[t.value]===i.value],"filter-id-==":[Ai,[xi],(e,[t])=>e.id()===t.value],"filter-type-==":[Ai,[_i],(e,[t])=>e.geometryType()===t.value],"filter-<":[Ai,[_i,xi],(e,[t,i])=>{const n=e.properties()[t.value],r=i.value;return typeof n==typeof r&&n<r}],"filter-id-<":[Ai,[xi],(e,[t])=>{const i=e.id(),n=t.value;return typeof i==typeof n&&i<n}],"filter->":[Ai,[_i,xi],(e,[t,i])=>{const n=e.properties()[t.value],r=i.value;return typeof n==typeof r&&n>r}],"filter-id->":[Ai,[xi],(e,[t])=>{const i=e.id(),n=t.value;return typeof i==typeof n&&i>n}],"filter-<=":[Ai,[_i,xi],(e,[t,i])=>{const n=e.properties()[t.value],r=i.value;return typeof n==typeof r&&n<=r}],"filter-id-<=":[Ai,[xi],(e,[t])=>{const i=e.id(),n=t.value;return typeof i==typeof n&&i<=n}],"filter->=":[Ai,[_i,xi],(e,[t,i])=>{const n=e.properties()[t.value],r=i.value;return typeof n==typeof r&&n>=r}],"filter-id->=":[Ai,[xi],(e,[t])=>{const i=e.id(),n=t.value;return typeof i==typeof n&&i>=n}],"filter-has":[Ai,[xi],(e,[t])=>t.value in e.properties()],"filter-has-id":[Ai,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[Ai,[Ti(_i)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[Ai,[Ti(xi)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[Ai,[_i,Ti(xi)],(e,[t,i])=>i.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[Ai,[_i,Ti(xi)],(e,[t,i])=>function(e,t,i,n){for(;i<=n;){const r=i+n>>1;if(t[r]===e)return!0;t[r]>e?n=r-1:i=r+1}return!1}(e.properties()[t.value],i.value,0,i.value.length-1)],all:{type:Ai,overloads:[[[Ai,Ai],(e,[t,i])=>t.evaluate(e)&&i.evaluate(e)],[_o(Ai),(e,t)=>{for(const i of t)if(!i.evaluate(e))return!1;return!0}]]},any:{type:Ai,overloads:[[[Ai,Ai],(e,[t,i])=>t.evaluate(e)||i.evaluate(e)],[_o(Ai),(e,t)=>{for(const i of t)if(i.evaluate(e))return!0;return!1}]]},"!":[Ai,[Ai],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Ai,[_i],(e,[t])=>{const i=e.globals&&e.globals.isSupportedScript;return!i||i(t.evaluate(e))}],upcase:[_i,[_i],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[_i,[_i],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[_i,_o(xi),(e,t)=>t.map(t=>Vi(t.evaluate(e))).join("")],"resolved-locale":[_i,[bi],(e,[t])=>t.evaluate(e).resolvedLocale()],random:[gi,[gi,gi,xi],(e,t)=>{const[i,n,r]=t.map(t=>t.evaluate(e));if(i>n)return i;if(i===n)return i;let o;if("string"==typeof r)o=function(e){let t=0;if(0===e.length)return t;for(let i=0;i<e.length;i++)t=(t<<5)-t+e.charCodeAt(i),t|=0;return t}(r);else{if("number"!=typeof r)throw new Ui(`Invalid seed input: ${r}`);o=r}return i+ho(o)()*(n-i)}]});class zo{constructor(e,t,i,n){this.expression=e,this._warningHistory={},this._evaluator=new Qi(i,n),this._defaultValue=t?function(e){return"color"===e.type&&(To(e.default)||Array.isArray(e.default))?new oi(0,0,0,0):"color"===e.type?oi.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null,this.configDependencies=pr(e)}evaluateWithoutErrorHandling(e,t,i,n,r,o,s,a){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=i,this._evaluator.canonical=n||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,i,n,r,o,s,a){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=i||null,this._evaluator.canonical=n||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new Ui(`Expected value to be one of ${Object.keys(this._enumValues).map(e=>JSON.stringify(e)).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${e.message}`)),this._defaultValue}}}function Oo(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in uo}function Ro(e,t,i,n){const r=new vr(uo,[],t?function(e){const t={color:yi,string:_i,number:gi,enum:_i,boolean:Ai,formatted:wi,resolvedImage:Ci};return"array"===e.type?Ti(t[e.value]||xi,e.length):t[e.type]}(t):void 0,void 0,void 0,i,n),o=r.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return o?Ao(new zo(o,t,i,n)):yo(r.errors)}class ko{constructor(e,t,i,n){this.kind=e,this._styleExpression=t,this.isLightConstant=i,this.isLineProgressConstant=n,this.isStateDependent="constant"!==e&&!dr(t.expression),this.configDependencies=pr(t.expression)}evaluateWithoutErrorHandling(e,t,i,n,r,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,n,r,o)}evaluate(e,t,i,n,r,o){return this._styleExpression.evaluate(e,t,i,n,r,o)}}class Bo{constructor(e,t,i,n,r,o){this.kind=e,this.zoomStops=i,this._styleExpression=t,this.isStateDependent="camera"!==e&&!dr(t.expression),this.isLightConstant=r,this.isLineProgressConstant=o,this.configDependencies=pr(t.expression),this.interpolationType=n}evaluateWithoutErrorHandling(e,t,i,n,r,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,n,r,o)}evaluate(e,t,i,n,r,o){return this._styleExpression.evaluate(e,t,i,n,r,o)}interpolationFactor(e,t,i){return this.interpolationType?Ur.interpolationFactor(this.interpolationType,e,t,i):0}}function Fo(e,t,i,n){if("error"===(e=Ro(e,t,i,n)).result)return e;const r=e.value.expression,o=ur(r);if(!o&&!xo(t))return yo([new pi("","data expressions not supported")]);const s=fr(r,["zoom","pitch","distance-from-center"]);if(!s&&!wo(t))return yo([new pi("","zoom expressions not supported")]);const a=fr(r,["measure-light"]);if(!a&&!bo(t))return yo([new pi("","measure-light expression not supported")]);const l=fr(r,["line-progress"]);if(!l&&!function(e){return vo(e.expression,"line-progress")}(t))return yo([new pi("","line-progress expression not supported")]);const c=t.expression&&t.expression.relaxZoomRestriction,h=Vo(r);return h||s||c?h instanceof pi?yo([h]):h instanceof Ur&&!Co(t)?yo([new pi("",'"interpolate" expressions cannot be used with this property')]):Ao(h?new Bo(o&&l?"camera":"composite",e.value,h.labels,h instanceof Ur?h.interpolation:void 0,a,l):new ko(o&&l?"constant":"source",e.value,a,l)):yo([new pi("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class No{constructor(e,t){this._parameters=e,this._specification=t,di(this,So(this._parameters,this._specification))}static deserialize(e){return new No(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Vo(e){let t=null;if(e instanceof Zr)t=Vo(e.result);else if(e instanceof Gr){for(const i of e.args)if(t=Vo(i),t)break}else(e instanceof wr||e instanceof Ur)&&e.input instanceof Ki&&"zoom"===e.input.name&&(t=e);return t instanceof pi||e.eachChild(e=>{const i=Vo(e);i instanceof pi?t=i:t&&i&&t!==i&&(t=new pi("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}var jo,Uo,Ho=function(){if(Uo)return jo;Uo=1,jo=t;var e=3;function t(t,i,n){var r=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var o=new Int32Array(this.arrayBuffer);t=o[0],this.d=(i=o[1])+2*(n=o[2]);for(var s=0;s<this.d*this.d;s++){var a=o[e+s],l=o[e+s+1];r.push(a===l?null:o.subarray(a,l))}var c=o[e+r.length+1];this.keys=o.subarray(o[e+r.length],c),this.bboxes=o.subarray(c),this.insert=this._insertReadonly}else{this.d=i+2*n;for(var h=0;h<this.d*this.d;h++)r.push([]);this.keys=[],this.bboxes=[]}this.n=i,this.extent=t,this.padding=n,this.scale=i/t,this.uid=0;var u=n/i*t;this.min=-u,this.max=t+u}return t.prototype.insert=function(e,t,i,n,r){this._forEachCell(t,i,n,r,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(r)},t.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},t.prototype._insertCell=function(e,t,i,n,r,o){this.cells[r].push(o)},t.prototype.query=function(e,t,i,n,r){var o=this.min,s=this.max;if(e<=o&&t<=o&&s<=i&&s<=n&&!r)return Array.prototype.slice.call(this.keys);var a=[];return this._forEachCell(e,t,i,n,this._queryCell,a,{},r),a},t.prototype._queryCell=function(e,t,i,n,r,o,s,a){var l=this.cells[r];if(null!==l)for(var c=this.keys,h=this.bboxes,u=0;u<l.length;u++){var d=l[u];if(void 0===s[d]){var p=4*d;(a?a(h[p+0],h[p+1],h[p+2],h[p+3]):e<=h[p+2]&&t<=h[p+3]&&i>=h[p+0]&&n>=h[p+1])?(s[d]=!0,o.push(c[d])):s[d]=!1}}},t.prototype._forEachCell=function(e,t,i,n,r,o,s,a){for(var l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),h=this._convertToCellCoord(i),u=this._convertToCellCoord(n),d=l;d<=h;d++)for(var p=c;p<=u;p++){var f=this.d*p+d;if((!a||a(this._convertFromCellCoord(d),this._convertFromCellCoord(p),this._convertFromCellCoord(d+1),this._convertFromCellCoord(p+1)))&&r.call(this,e,t,i,n,f,o,s,a))return}},t.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},t.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},t.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,i=e+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var o=new Int32Array(i+n+this.keys.length+this.bboxes.length);o[0]=this.extent,o[1]=this.n,o[2]=this.padding;for(var s=i,a=0;a<t.length;a++){var l=t[a];o[e+a]=s,o.set(l,s),s+=l.length}return o[e+t.length]=s,o.set(this.keys,s),o[e+t.length+1]=s+=this.keys.length,o.set(this.bboxes,s),s+=this.bboxes.length,o.buffer},jo}(),Go=fe(Ho);const Zo={};function Wo(e,t,i={}){Object.defineProperty(e,"_classRegistryKey",{value:t,writable:!1}),Zo[t]={klass:e,omit:i.omit||[]}}Wo(Object,"Object"),Go.serialize=function(e,t){const i=e.toArrayBuffer();return t&&t.add(i),{buffer:i}},Go.deserialize=function(e){return new Go(e.buffer)},Object.defineProperty(Go,"name",{value:"Grid"}),Wo(Go,"Grid"),"undefined"!=typeof DOMMatrix&&Wo(DOMMatrix,"DOMMatrix"),Wo(oi,"Color"),Wo(Error,"Error"),Wo(Oi,"Formatted"),Wo(zi,"FormattedSection"),Wo(zt,"AJAXError"),Wo(ki,"ResolvedImage"),Wo(No,"StylePropertyFunction"),Wo(zo,"StyleExpression",{omit:["_evaluator"]}),Wo(ti,"ImageId"),Wo(Ri,"ImageVariant"),Wo(Bo,"ZoomDependentExpression"),Wo(ko,"ZoomConstantExpression"),Wo(Ki,"CompoundExpression",{omit:["_evaluate"]});for(const e in uo)Zo[uo[e]._classRegistryKey]||Wo(uo[e],`Expression${e}`);function qo(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Xo(e){return self.ImageBitmap&&e instanceof ImageBitmap}function $o(e,t){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(qo(e)||Xo(e))return t&&t.add(e),e;if(ArrayBuffer.isView(e))return t&&t.add(e.buffer),e;if(e instanceof ImageData)return t&&t.add(e.data.buffer),e;if(Array.isArray(e)){const i=[];for(const n of e)i.push($o(n,t));return i}if(e instanceof Map){const i={$name:"Map",entries:[]};for(const[n,r]of e.entries())i.entries.push($o(n),$o(r,t));return i}if(e instanceof Set){const t={$name:"Set"};let i=0;for(const n of e.values())t[++i]=$o(n);return t}if(e instanceof DOMMatrix){const t={$name:"DOMMatrix"},i=["is2D","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","a","b","c","d","e","f"];for(const n of i)t[n]=e[n];return t}if("bigint"==typeof e)return{$name:"BigInt",value:e.toString()};if("object"==typeof e){const i=e.constructor,n=i._classRegistryKey;if(!n)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const r=i.serialize?i.serialize(e,t):{};if(!i.serialize){for(const i in e)e.hasOwnProperty(i)&&(Zo[n].omit.indexOf(i)>=0||(r[i]=$o(e[i],t)));e instanceof Error&&(r.message=e.message)}if(r.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==n&&(r.$name=n),r}throw new Error("can't serialize object of type "+typeof e)}function Yo(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||qo(e)||Xo(e)||ArrayBuffer.isView(e)||e instanceof ImageData)return e;if(Array.isArray(e))return e.map(Yo);if("object"==typeof e){const t=e.$name||"Object";if("Map"===t){const t=e.entries||[],i=new Map;for(let e=0;e<t.length;e+=2)i.set(Yo(t[e]),Yo(t[e+1]));return i}if("Set"===t){const t=new Set;for(const i of Object.keys(e))"$name"!==i&&t.add(Yo(e[i]));return t}if("DOMMatrix"===t){let t;return t=e.is2D?[e.a,e.b,e.c,e.d,e.e,e.f]:[e.m11,e.m12,e.m13,e.m14,e.m21,e.m22,e.m23,e.m24,e.m31,e.m32,e.m33,e.m34,e.m41,e.m42,e.m43,e.m44],new DOMMatrix(t)}if("BigInt"===t)return BigInt(e.value);const{klass:i}=Zo[t];if(!i)throw new Error(`Can't deserialize unregistered class "${t}".`);if(i.deserialize)return i.deserialize(e);const n=Object.create(i.prototype);for(const t of Object.keys(e))"$name"!==t&&(n[t]=Yo(e[t]));return n}throw new Error("can't deserialize object of type "+typeof e)}const Qo={"Latin-1 Supplement":e=>e>=128&&e<=255,Arabic:e=>e>=1536&&e<=1791,"Arabic Supplement":e=>e>=1872&&e<=1919,"Arabic Extended-A":e=>e>=2208&&e<=2303,"Hangul Jamo":e=>e>=4352&&e<=4607,"Unified Canadian Aboriginal Syllabics":e=>e>=5120&&e<=5759,Khmer:e=>e>=6016&&e<=6143,"Unified Canadian Aboriginal Syllabics Extended":e=>e>=6320&&e<=6399,"General Punctuation":e=>e>=8192&&e<=8303,"Letterlike Symbols":e=>e>=8448&&e<=8527,"Number Forms":e=>e>=8528&&e<=8591,"Miscellaneous Technical":e=>e>=8960&&e<=9215,"Control Pictures":e=>e>=9216&&e<=9279,"Optical Character Recognition":e=>e>=9280&&e<=9311,"Enclosed Alphanumerics":e=>e>=9312&&e<=9471,"Geometric Shapes":e=>e>=9632&&e<=9727,"Miscellaneous Symbols":e=>e>=9728&&e<=9983,"Miscellaneous Symbols and Arrows":e=>e>=11008&&e<=11263,"CJK Radicals Supplement":e=>e>=11904&&e<=12031,"Kangxi Radicals":e=>e>=12032&&e<=12255,"Ideographic Description Characters":e=>e>=12272&&e<=12287,"CJK Symbols and Punctuation":e=>e>=12288&&e<=12351,Hiragana:e=>e>=12352&&e<=12447,Katakana:e=>e>=12448&&e<=12543,Bopomofo:e=>e>=12544&&e<=12591,"Hangul Compatibility Jamo":e=>e>=12592&&e<=12687,Kanbun:e=>e>=12688&&e<=12703,"Bopomofo Extended":e=>e>=12704&&e<=12735,"CJK Strokes":e=>e>=12736&&e<=12783,"Katakana Phonetic Extensions":e=>e>=12784&&e<=12799,"Enclosed CJK Letters and Months":e=>e>=12800&&e<=13055,"CJK Compatibility":e=>e>=13056&&e<=13311,"CJK Unified Ideographs Extension A":e=>e>=13312&&e<=19903,"Yijing Hexagram Symbols":e=>e>=19904&&e<=19967,"CJK Unified Ideographs":e=>e>=19968&&e<=40959,"Yi Syllables":e=>e>=40960&&e<=42127,"Yi Radicals":e=>e>=42128&&e<=42191,"Hangul Jamo Extended-A":e=>e>=43360&&e<=43391,"Hangul Syllables":e=>e>=44032&&e<=55215,"Hangul Jamo Extended-B":e=>e>=55216&&e<=55295,"Private Use Area":e=>e>=57344&&e<=63743,"CJK Compatibility Ideographs":e=>e>=63744&&e<=64255,"Arabic Presentation Forms-A":e=>e>=64336&&e<=65023,"Vertical Forms":e=>e>=65040&&e<=65055,"CJK Compatibility Forms":e=>e>=65072&&e<=65103,"Small Form Variants":e=>e>=65104&&e<=65135,"Arabic Presentation Forms-B":e=>e>=65136&&e<=65279,"Halfwidth and Fullwidth Forms":e=>e>=65280&&e<=65519,Osage:e=>e>=66736&&e<=66815,"CJK Unified Ideographs Extension B":e=>e>=131072&&e<=173791};function Ko(e){for(const t of e)if(ts(t.charCodeAt(0)))return!0;return!1}function Jo(e){for(const t of e)if(!es(t.charCodeAt(0)))return!1;return!0}function es(e){return!(Qo.Arabic(e)||Qo["Arabic Supplement"](e)||Qo["Arabic Extended-A"](e)||Qo["Arabic Presentation Forms-A"](e)||Qo["Arabic Presentation Forms-B"](e))}function ts(e){return!(746!==e&&747!==e&&(e<4352||!(Qo["Bopomofo Extended"](e)||Qo.Bopomofo(e)||Qo["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||Qo["CJK Compatibility Ideographs"](e)||Qo["CJK Compatibility"](e)||Qo["CJK Radicals Supplement"](e)||Qo["CJK Strokes"](e)||!(!Qo["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||Qo["CJK Unified Ideographs Extension A"](e)||Qo["CJK Unified Ideographs"](e)||Qo["Enclosed CJK Letters and Months"](e)||Qo["Hangul Compatibility Jamo"](e)||Qo["Hangul Jamo Extended-A"](e)||Qo["Hangul Jamo Extended-B"](e)||Qo["Hangul Jamo"](e)||Qo["Hangul Syllables"](e)||Qo.Hiragana(e)||Qo["Ideographic Description Characters"](e)||Qo.Kanbun(e)||Qo["Kangxi Radicals"](e)||Qo["Katakana Phonetic Extensions"](e)||Qo.Katakana(e)&&12540!==e||!(!Qo["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!Qo["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Qo["Unified Canadian Aboriginal Syllabics"](e)||Qo["Unified Canadian Aboriginal Syllabics Extended"](e)||Qo["Vertical Forms"](e)||Qo["Yijing Hexagram Symbols"](e)||Qo["Yi Syllables"](e)||Qo["Yi Radicals"](e))))}function is(e){return!(ts(e)||function(e){return!!(Qo["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Qo["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||Qo["Letterlike Symbols"](e)||Qo["Number Forms"](e)||Qo["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||Qo["Control Pictures"](e)&&9251!==e||Qo["Optical Character Recognition"](e)||Qo["Enclosed Alphanumerics"](e)||Qo["Geometric Shapes"](e)||Qo["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Qo["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Qo["CJK Symbols and Punctuation"](e)||Qo.Katakana(e)||Qo["Private Use Area"](e)||Qo["CJK Compatibility Forms"](e)||Qo["Small Form Variants"](e)||Qo["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function ns(e){return Qo.Arabic(e)||Qo["Arabic Supplement"](e)||Qo["Arabic Extended-A"](e)||Qo["Arabic Presentation Forms-A"](e)||Qo["Arabic Presentation Forms-B"](e)}function rs(e){return e>=1424&&e<=2303||Qo["Arabic Presentation Forms-A"](e)||Qo["Arabic Presentation Forms-B"](e)}function os(e,t){return!(!t&&rs(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||Qo.Khmer(e))}function ss(e){for(const t of e)if(rs(t.charCodeAt(0)))return!0;return!1}const as={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let ls=null,cs=as.unavailable,hs=null;const us=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(cs=as.error),ls&&ls(e)};function ds(){ps.fire(new Yt("pluginStateChange",{pluginStatus:cs,pluginURL:hs}))}const ps=new ei,fs=function(){return cs},ms=function(){if(cs!==as.deferred||!hs)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");cs=as.loading,ds(),hs&&kt({url:hs},e=>{e?us(e):(cs=as.loaded,ds())})},gs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>cs===as.loaded||null!=gs.applyArabicShaping,isLoading:()=>cs===as.loading,setState(e){cs=e.pluginStatus,hs=e.pluginURL},isParsing:()=>cs===as.parsing,isParsed:()=>cs===as.parsed,getPluginURL:()=>hs};class _s{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.transition=t.transition,this.pitch=t.pitch,this.brightness=t.brightness,this.worldview=t.worldview):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(e,t){for(const i of e)if(!os(i.charCodeAt(0),t))return!1;return!0}(e,gs.isLoaded())}}class As{constructor(e,t,i,n){this.property=e,this.value=t,this.expression=function(e,t,i,n){if(To(e))return new No(e,t);if(Oo(e)||Array.isArray(e)&&e.length>0){const r=Fo(e,t,i,n);if("error"===r.result)throw new Error(r.value.map(e=>`${e.key}: ${e.message}`).join(", "));return r.value}{let i=e;return"string"==typeof e&&"color"===t.type&&(i=oi.parse(e)),{kind:"constant",configDependencies:new Set,evaluate:()=>i}}}(void 0===t?e.specification.default:t,e.specification,i,n)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,i){return this.property.possiblyEvaluate(this,e,t,i)}}class ys{constructor(e,t,i){this.property=e,this.value=new As(e,void 0,t,i)}transitioned(e,t){return new xs(this.property,this.value,t,Oe({},e.transition,this.transition),e.now)}untransitioned(){return new xs(this.property,this.value,null,{},0)}}class vs{constructor(e,t,i){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=t,this._options=i,this.configDependencies=new Set}getValue(e){return je(this._values[e].value.value)}setValue(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ys(this._values[e].property,this._scope,this._options)),this._values[e].value=new As(this._values[e].property,null===t?void 0:je(t),this._scope,this._options),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]))}setTransitionOrValue(e,t){t&&(this._options=t);const i=this._properties.properties;if(e)for(const t in e){const n=e[t];if(t.endsWith("-transition")){const e=t.slice(0,-11);i[e]&&this.setTransition(e,n)}else i.hasOwnProperty(t)&&this.setValue(t,n)}}getTransition(e){return je(this._values[e].transition)}setTransition(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ys(this._values[e].property)),this._values[e].transition=je(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const i=this.getValue(t);void 0!==i&&(e[t]=i);const n=this.getTransition(t);void 0!==n&&(e[`${t}-transition`]=n)}return e}transitioned(e,t){const i=new bs(this._properties);for(const n of Object.keys(this._values))i._values[n]=this._values[n].transitioned(e,t._values[n]);return i}untransitioned(){const e=new bs(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class xs{constructor(e,t,i,n,r){const o=n.delay||0,s=n.duration||0;r=r||0,this.property=e,this.value=t,this.begin=r+o,this.end=this.begin+s,e.specification.transition&&(n.delay||n.duration)&&(this.prior=i)}possiblyEvaluate(e,t,i){const n=e.now||0,r=this.value.possiblyEvaluate(e,t,i),o=this.prior;if(o){if(n>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(n<this.begin)return o.possiblyEvaluate(e,t,i);{const s=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,i),r,Se(s))}}return r}}class bs{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,i){const n=new Ts(this._properties);for(const r of Object.keys(this._values))n._values[r]=this._values[r].possiblyEvaluate(e,t,i);return n}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class ws{constructor(e,t,i){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=t,this._options=i,this.configDependencies=new Set}getValue(e){return je(this._values[e].value)}setValue(e,t){this._values[e]=new As(this._values[e].property,null===t?void 0:je(t),this._scope,this._options),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]))}serialize(){const e={};for(const t of Object.keys(this._values)){const i=this.getValue(t);void 0!==i&&(e[t]=i)}return e}possiblyEvaluate(e,t,i){const n=new Ts(this._properties);for(const r of Object.keys(this._values))n._values[r]=this._values[r].possiblyEvaluate(e,t,i);return n}}class Cs{constructor(e,t,i){this.property=e,this.value=t,this.parameters=i}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,i,n){return this.property.evaluate(this.value,this.parameters,e,t,i,n)}}class Ts{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Es{constructor(e){this.specification=e}possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,i){const n=ui[this.specification.type];return n?n(e,t,i):e}}class Ss{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,i,n){return new Cs(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},i,n)}:e.expression,t)}interpolate(e,t,i){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new Cs(this,{kind:"constant",value:void 0},e.parameters);const n=ui[this.specification.type];return n?new Cs(this,{kind:"constant",value:n(e.value.value,t.value.value,i)},e.parameters):e}evaluate(e,t,i,n,r,o){return"constant"===e.kind?e.value:e.evaluate(t,i,n,r,o)}}class Is{constructor(e){this.specification=e}possiblyEvaluate(e,t,i,n){return!!e.expression.evaluate(t,null,{},i,n)}interpolate(){return!1}}class Ms{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const t=new _s(0,{});for(const i in e){const n=e[i];n.specification.overridable&&this.overridableProperties.push(i);const r=this.defaultPropertyValues[i]=new As(n,void 0),o=this.defaultTransitionablePropertyValues[i]=new ys(n);this.defaultTransitioningPropertyValues[i]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=r.possiblyEvaluate(t)}}}Wo(Ss,"DataDrivenProperty"),Wo(Es,"DataConstantProperty"),Wo(Is,"ColorRampProperty");var Ps=JSON.parse('{"$version":8,"$root":{"version":{"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow"},"rain":{"type":"rain"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor"},"imports":{"type":"array","value":"import"},"iconsets":{"type":"iconsets"},"schema":{"type":"schema"},"sources":{"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"type":"featuresets"}},"featuresets":{"*":{"type":"featureset"}},"featureset":{"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"layer":{"type":"string"},"properties":{"type":"selectorProperty"},"featureNamespace":{"type":"string"},"_uniqueFeatureID":{"type":"boolean"}},"selectorProperty":{"*":{"type":"*"}},"model":{"type":"string"},"import":{"id":{"type":"string"},"url":{"type":"string"},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","expression":{}},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string"},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false},"shadow-quality":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]}},"shadow-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"iconsets":{"*":{"type":"iconset"}},"iconset":["iconset_sprite","iconset_source"],"iconset_sprite":{"type":{"type":"enum","values":{"sprite":1}},"url":{"type":"string"}},"iconset_source":{"type":{"type":"enum","values":{"source":1}},"source":{"type":"string"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"type":"enum","values":{"video":1}},"urls":{"type":"array","value":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"type":"enum","values":{"image":1}},"url":{"type":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string"},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"building":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{},"clip":{}}},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_building","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{}},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"default":"none","expression":{}},"fill-construct-bridge-guard-rail":{"type":"boolean","default":"true","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"circle-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-markup":1},"default":"none","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-extrusion-edge-radius":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}}},"layout_building":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"building-roof-shape":{"type":"enum","values":{"flat":1,"hipped":1,"gabled":1,"parapet":1,"mansard":1,"skillion":1,"pyramidal":1},"default":"flat","expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","default":0,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"default":"none","expression":{}},"line-cross-slope":{"type":"number","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"line-width-unit":{"type":"enum","values":{"pixels":1,"meters":1},"default":"pixels","expression":{"parameters":["zoom"]}}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]}},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]}},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{"parameters":["zoom"]}},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":0.1,"maximum":10,"expression":{}},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":0.1,"maximum":10,"expression":{}},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]}},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]}},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_hillshade":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster-particle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_clip":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_model":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_building":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*"}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"horizon-blend":{"type":"number","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"snow":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.4,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"flake-size":{"type":"number","default":0.71,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"rain":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.57,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"distortion-strength":{"type":"number","default":0.7,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective"}},"colorTheme":{"data":{"type":"string","expression":{}}},"indoor":{"floorplanFeaturesetId":{"type":"string","expression":{}},"buildingFeaturesetId":{"type":"string","expression":{}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator"},"center":{"type":"array","length":2,"value":"number","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string"},"exaggeration":{"type":"number","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_building","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-bridge-guard-rail-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"},"fill-tunnel-structure-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-height-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"flat"},"fill-extrusion-base-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"terrain"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true}},"paint_building":{"building-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-ambient-occlusion-wall-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-cast-shadows":{"type":"boolean","default":true},"building-color":{"type":"color","default":"rgba(193, 154, 127, 1)","use-theme":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light","line-progress"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-gradient":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["line-progress"]}},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1]},"line-trim-fade-range":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-trim-color":{"type":"color","default":"transparent","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-border-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"use-theme":true,"expression":{"interpolated":true,"parameters":["heatmap-density"]}},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-image-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{}},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-value"]}},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"raster-array-band":{"type":"string"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-particle-speed"]}},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-shadow-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]}},"background-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]}},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]}},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"use-theme":true,"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white","use-theme":true},"sky-atmosphere-color":{"type":"color","default":"white","use-theme":true},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"property-type":"data-driven"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"use-theme":true,"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d"},"model-cast-shadows":{"type":"boolean","default":true},"model-receive-shadows":{"type":"boolean","default":true},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"model-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function Ds(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Ls(e){if(Array.isArray(e))return e.map(Ls);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const i in e)t[i]=Ls(e[i]);return t}return Ds(e)}function zs(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!zs(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function Os(e,t="",i=null,n="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};zs(e)||(e=js(e));const r=e;let o=!0;try{o=function(e){if(!Bs(e))return e;let t=Ls(e);return ks(t),t=Rs(t),t}(r)}catch(e){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(r,null,2)}\n `)}let s=null,a=null;if("background"!==n&&"sky"!==n&&"slot"!==n){a=Ps[`filter_${n}`];const e=Ro(o,a,t,i);if("error"===e.result)throw new Error(e.value.map(e=>`${e.key}: ${e.message}`).join(", "));s=(t,i,n)=>e.value.evaluate(t,i,{},n)}let l=null,c=null;if(o!==r){const e=Ro(r,a,t,i);if("error"===e.result)throw new Error(e.value.map(e=>`${e.key}: ${e.message}`).join(", "));l=(t,i,n,r,o)=>e.value.evaluate(t,i,{},n,void 0,void 0,r,o),c=!ur(e.value.expression)}return{filter:s,dynamicFilter:l||void 0,needGeometry:Vs(o),needFeature:!!c}}function Rs(e){if(!Array.isArray(e))return e;const t=function(e){if(Fs.has(e[0]))for(let t=1;t<e.length;t++)if(Bs(e[t]))return!0;return e}(e);return!0===t?t:t.map(e=>Rs(e))}function ks(e){let t=!1;const i=[];if("case"===e[0]){for(let n=1;n<e.length-1;n+=2)t=t||Bs(e[n]),i.push(e[n+1]);i.push(e[e.length-1])}else if("match"===e[0]){t=t||Bs(e[1]);for(let t=2;t<e.length-1;t+=2)i.push(e[t+1]);i.push(e[e.length-1])}else if("step"===e[0]){t=t||Bs(e[1]);for(let t=1;t<e.length-1;t+=2)i.push(e[t+1])}t&&(e.length=0,e.push("any",...i));for(let t=1;t<e.length;t++)ks(e[t])}function Bs(e){if(!Array.isArray(e))return!1;if("pitch"===(t=e[0])||"distance-from-center"===t)return!0;var t;for(let t=1;t<e.length;t++)if(Bs(e[t]))return!0;return!1}const Fs=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Ns(e,t){return e<t?-1:e>t?1:0}function Vs(e){if(!Array.isArray(e))return!1;if("within"===e[0]||"distance"===e[0])return!0;for(let t=1;t<e.length;t++)if(Vs(e[t]))return!0;return!1}function js(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?Us(e[1],e[2],"=="):"!="===t?Zs(Us(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?Us(e[1],e[2],t):"any"===t?(i=e.slice(1),["any"].concat(i.map(js))):"all"===t?["all"].concat(e.slice(1).map(js)):"none"===t?["all"].concat(e.slice(1).map(js).map(Zs)):"in"===t?Hs(e[1],e.slice(2)):"!in"===t?Zs(Hs(e[1],e.slice(2))):"has"===t?Gs(e[1]):"!has"!==t||Zs(Gs(e[1]));var i}function Us(e,t,i){switch(e){case"$type":return[`filter-type-${i}`,t];case"$id":return[`filter-id-${i}`,t];default:return[`filter-${i}`,e,t]}}function Hs(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(e=>typeof e!=typeof t[0])?["filter-in-large",e,["literal",t.sort(Ns)]]:["filter-in-small",e,["literal",t]]}}function Gs(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Zs(e){return["!",e]}const Ws="";function qs(e,t){return t?`${e}${Ws}${t}`:e}const Xs="-transition",$s=new Set(["fill","line","background","hillshade","raster"]);class Ys extends ei{constructor(e,t,i,n,r){if(super(),this.id=e.id,this.fqid=qs(this.id,i),this.type=e.type,this.scope=i,this.lut=n,this.options=r,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,this.configDependencies=new Set,"custom"!==e.type){if(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type&&"background"!==e.type&&"sky"!==e.type&&"slot"!==e.type){this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter;const t=Ro(this.filter,Ps[`filter_${e.type}`]);"error"!==t.result&&(this.configDependencies=new Set([...this.configDependencies,...t.value.configDependencies]))}if(e.slot&&(this.slot=e.slot),t.layout&&(this._unevaluatedLayout=new ws(t.layout,this.scope,r),this.configDependencies=new Set([...this.configDependencies,...this._unevaluatedLayout.configDependencies])),t.paint){this._transitionablePaint=new vs(t.paint,this.scope,r);for(const t in e.paint)this.setPaintProperty(t,e.paint[t]);for(const t in e.layout)this.setLayoutProperty(t,e.layout[t]);this.configDependencies=new Set([...this.configDependencies,...this._transitionablePaint.configDependencies]),this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ts(t.paint)}}}onAdd(e){}onRemove(e){}isDraped(e){return!this.is3D(!0)&&$s.has(this.type)}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t){if("custom"===this.type&&"visibility"===e)return void(this.visibility=t);const i=this._unevaluatedLayout;i._properties.properties[e]&&(i.setValue(e,t),this.configDependencies=new Set([...this.configDependencies,...i.configDependencies]),"visibility"===e&&this.possiblyEvaluateVisibility())}possiblyEvaluateVisibility(){this._unevaluatedLayout._values.visibility&&(this.visibility=this._unevaluatedLayout._values.visibility.possiblyEvaluate({zoom:0}))}getPaintProperty(e){return e.endsWith(Xs)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t){const i=this._transitionablePaint,n=i._properties.properties;if(e.endsWith(Xs)){const r=e.slice(0,-11);return n[r]&&i.setTransition(r,t||void 0),!1}if(!n[e])return!1;const r=i._values[e],o=r.value.isDataDriven(),s=r.value;i.setValue(e,t),this.configDependencies=new Set([...this.configDependencies,...i.configDependencies]),this._handleSpecialPaintPropertyUpdate(e);const a=i._values[e].value,l=a.isDataDriven(),c=e.endsWith("pattern")||"line-dasharray"===e;return l||o||c||this._handleOverridablePaintPropertyUpdate(e,s,a)}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getDefaultProgramParams(e,t,i){return null}_handleOverridablePaintPropertyUpdate(e,t,i){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){return Ve({id:this.id,type:this.type,slot:this.slot,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()},(e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length))}is3D(e){return!1}hasElevation(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}hasShadowPass(){return!1}canCastShadows(){return!1}hasLightBeamPass(){return!1}cutoffRange(){return 0}tileCoverLift(){return 0}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof Cs&&xo(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}compileFilter(e){this._filterCompiled||(this._featureFilter=Os(this.filter,this.scope,e),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}getLayerRenderingStats(){return this._stats}resetLayerRenderingStats(e){this._stats&&("shadow"===e.renderPass?this._stats.numRenderedVerticesInShadowPass=0:this._stats.numRenderedVerticesInTransparentPass=0)}queryRadius(e){}queryIntersectsFeature(e,t,i,n,r,o,s,a,l){}}const Qs={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Ks{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Js{constructor(){this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&t.add(e.arrayBuffer),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("StructArray#_refreshViews() must be implemented by each concrete StructArray layout")}emplace(...e){throw new Error("StructArray#emplace() must be implemented by each concrete StructArray layout")}emplaceBack(...e){throw new Error("StructArray#emplaceBack() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function ea(e,t=1){let i=0,n=0;return{members:e.map(e=>{const r=Qs[e.type].BYTES_PER_ELEMENT,o=i=ta(i,Math.max(t,r)),s=e.components||1;return n=Math.max(n,r),i+=r*s,{name:e.name,type:e.type,components:s,offset:o}}),size:ta(i,Math.max(n,t)),alignment:t}}function ta(e,t){return Math.ceil(e/t)*t}class ia extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const n=2*e;return this.int16[n+0]=t,this.int16[n+1]=i,e}}ia.prototype.bytesPerElement=4,Wo(ia,"StructArrayLayout2i4");class na extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i)}emplace(e,t,i,n){const r=3*e;return this.int16[r+0]=t,this.int16[r+1]=i,this.int16[r+2]=n,e}}na.prototype.bytesPerElement=6,Wo(na,"StructArrayLayout3i6");class ra extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,n)}emplace(e,t,i,n,r){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=i,this.int16[o+2]=n,this.int16[o+3]=r,e}}ra.prototype.bytesPerElement=8,Wo(ra,"StructArrayLayout4i8");class oa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}oa.prototype.bytesPerElement=4,Wo(oa,"StructArrayLayout1f4");class sa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i)}emplace(e,t,i,n){const r=4*e,o=2*e;return this.int16[r+0]=t,this.int16[r+1]=i,this.float32[o+1]=n,e}}sa.prototype.bytesPerElement=8,Wo(sa,"StructArrayLayout2i1f8");class aa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i)}emplace(e,t,i,n){const r=4*e;return this.int16[r+0]=t,this.int16[r+1]=i,this.int16[r+2]=n,e}}aa.prototype.bytesPerElement=8,Wo(aa,"StructArrayLayout3i8");class la extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,n,r)}emplace(e,t,i,n,r,o){const s=5*e;return this.int16[s+0]=t,this.int16[s+1]=i,this.int16[s+2]=n,this.int16[s+3]=r,this.int16[s+4]=o,e}}la.prototype.bytesPerElement=10,Wo(la,"StructArrayLayout5i10");class ca extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,n,r,o,s)}emplace(e,t,i,n,r,o,s,a){const l=6*e,c=12*e,h=3*e;return this.int16[l+0]=t,this.int16[l+1]=i,this.uint8[c+4]=n,this.uint8[c+5]=r,this.uint8[c+6]=o,this.uint8[c+7]=s,this.float32[h+2]=a,e}}ca.prototype.bytesPerElement=12,Wo(ca,"StructArrayLayout2i4ub1f12");class ha extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i)}emplace(e,t,i,n){const r=3*e;return this.float32[r+0]=t,this.float32[r+1]=i,this.float32[r+2]=n,e}}ha.prototype.bytesPerElement=12,Wo(ha,"StructArrayLayout3f12");class ua extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,n,r)}emplace(e,t,i,n,r,o){const s=6*e,a=3*e;return this.uint16[s+0]=t,this.uint16[s+1]=i,this.uint16[s+2]=n,this.uint16[s+3]=r,this.float32[a+2]=o,e}}ua.prototype.bytesPerElement=12,Wo(ua,"StructArrayLayout4ui1f12");class da extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,n)}emplace(e,t,i,n,r){const o=4*e;return this.uint16[o+0]=t,this.uint16[o+1]=i,this.uint16[o+2]=n,this.uint16[o+3]=r,e}}da.prototype.bytesPerElement=8,Wo(da,"StructArrayLayout4ui8");class pa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,n,r,o)}emplace(e,t,i,n,r,o,s){const a=6*e;return this.int16[a+0]=t,this.int16[a+1]=i,this.int16[a+2]=n,this.int16[a+3]=r,this.int16[a+4]=o,this.int16[a+5]=s,e}}pa.prototype.bytesPerElement=12,Wo(pa,"StructArrayLayout6i12");class fa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h,u){const d=this.length;return this.resize(d+1),this.emplace(d,e,t,i,n,r,o,s,a,l,c,h,u)}emplace(e,t,i,n,r,o,s,a,l,c,h,u,d){const p=12*e;return this.int16[p+0]=t,this.int16[p+1]=i,this.int16[p+2]=n,this.int16[p+3]=r,this.uint16[p+4]=o,this.uint16[p+5]=s,this.uint16[p+6]=a,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=h,this.int16[p+10]=u,this.int16[p+11]=d,e}}fa.prototype.bytesPerElement=24,Wo(fa,"StructArrayLayout4i4ui4i24");class ma extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,n,r,o)}emplace(e,t,i,n,r,o,s){const a=10*e,l=5*e;return this.int16[a+0]=t,this.int16[a+1]=i,this.int16[a+2]=n,this.float32[l+2]=r,this.float32[l+3]=o,this.float32[l+4]=s,e}}ma.prototype.bytesPerElement=20,Wo(ma,"StructArrayLayout3i3f20");class ga extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,n)}emplace(e,t,i,n,r){const o=4*e;return this.float32[o+0]=t,this.float32[o+1]=i,this.float32[o+2]=n,this.float32[o+3]=r,e}}ga.prototype.bytesPerElement=16,Wo(ga,"StructArrayLayout4f16");class _a extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}_a.prototype.bytesPerElement=4,Wo(_a,"StructArrayLayout1ul4");class Aa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const n=2*e;return this.uint16[n+0]=t,this.uint16[n+1]=i,e}}Aa.prototype.bytesPerElement=4,Wo(Aa,"StructArrayLayout2ui4");class ya extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h,u,d){const p=this.length;return this.resize(p+1),this.emplace(p,e,t,i,n,r,o,s,a,l,c,h,u,d)}emplace(e,t,i,n,r,o,s,a,l,c,h,u,d,p){const f=20*e,m=10*e;return this.int16[f+0]=t,this.int16[f+1]=i,this.int16[f+2]=n,this.int16[f+3]=r,this.int16[f+4]=o,this.float32[m+3]=s,this.float32[m+4]=a,this.float32[m+5]=l,this.float32[m+6]=c,this.int16[f+14]=h,this.uint32[m+8]=u,this.uint16[f+18]=d,this.uint16[f+19]=p,e}}ya.prototype.bytesPerElement=40,Wo(ya,"StructArrayLayout5i4f1i1ul2ui40");class va extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,n,r,o,s)}emplace(e,t,i,n,r,o,s,a){const l=8*e;return this.int16[l+0]=t,this.int16[l+1]=i,this.int16[l+2]=n,this.int16[l+4]=r,this.int16[l+5]=o,this.int16[l+6]=s,this.int16[l+7]=a,e}}va.prototype.bytesPerElement=16,Wo(va,"StructArrayLayout3i2i2i16");class xa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,n,r)}emplace(e,t,i,n,r,o){const s=4*e,a=8*e;return this.float32[s+0]=t,this.float32[s+1]=i,this.float32[s+2]=n,this.int16[a+6]=r,this.int16[a+7]=o,e}}xa.prototype.bytesPerElement=16,Wo(xa,"StructArrayLayout2f1f2i16");class ba extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,n,r,o)}emplace(e,t,i,n,r,o,s){const a=20*e,l=5*e;return this.uint8[a+0]=t,this.uint8[a+1]=i,this.float32[l+1]=n,this.float32[l+2]=r,this.float32[l+3]=o,this.float32[l+4]=s,e}}ba.prototype.bytesPerElement=20,Wo(ba,"StructArrayLayout2ub4f20");class wa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i)}emplace(e,t,i,n){const r=3*e;return this.uint16[r+0]=t,this.uint16[r+1]=i,this.uint16[r+2]=n,e}}wa.prototype.bytesPerElement=6,Wo(wa,"StructArrayLayout3ui6");class Ca extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v){const x=this.length;return this.resize(x+1),this.emplace(x,e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v)}emplace(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v,x){const b=30*e,w=15*e,C=60*e;return this.int16[b+0]=t,this.int16[b+1]=i,this.int16[b+2]=n,this.float32[w+2]=r,this.float32[w+3]=o,this.uint16[b+8]=s,this.uint16[b+9]=a,this.uint32[w+5]=l,this.uint32[w+6]=c,this.uint32[w+7]=h,this.uint16[b+16]=u,this.uint16[b+17]=d,this.uint16[b+18]=p,this.float32[w+10]=f,this.float32[w+11]=m,this.uint8[C+48]=g,this.uint8[C+49]=_,this.uint8[C+50]=A,this.uint32[w+13]=y,this.int16[b+28]=v,this.uint8[C+58]=x,e}}Ca.prototype.bytesPerElement=60,Wo(Ca,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class Ta extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v,x,b,w,C,T,E,S,I,M,P,D,L){const z=this.length;return this.resize(z+1),this.emplace(z,e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v,x,b,w,C,T,E,S,I,M,P,D,L)}emplace(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g,_,A,y,v,x,b,w,C,T,E,S,I,M,P,D,L,z){const O=20*e,R=40*e,k=80*e;return this.float32[O+0]=t,this.float32[O+1]=i,this.int16[R+4]=n,this.int16[R+5]=r,this.int16[R+6]=o,this.int16[R+7]=s,this.int16[R+8]=a,this.int16[R+9]=l,this.int16[R+10]=c,this.int16[R+11]=h,this.int16[R+12]=u,this.uint16[R+13]=d,this.uint16[R+14]=p,this.uint16[R+15]=f,this.uint16[R+16]=m,this.uint16[R+17]=g,this.uint16[R+18]=_,this.uint16[R+19]=A,this.uint16[R+20]=y,this.uint16[R+21]=v,this.uint16[R+22]=x,this.uint16[R+23]=b,this.uint16[R+24]=w,this.uint16[R+25]=C,this.uint16[R+26]=T,this.uint16[R+27]=E,this.uint32[O+14]=S,this.float32[O+15]=I,this.float32[O+16]=M,this.float32[O+17]=P,this.float32[O+18]=D,this.uint8[k+76]=L,this.uint16[R+39]=z,e}}Ta.prototype.bytesPerElement=80,Wo(Ta,"StructArrayLayout2f9i15ui1ul4f1ub1ui80");class Ea extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,n,r,o)}emplace(e,t,i,n,r,o,s){const a=6*e;return this.float32[a+0]=t,this.float32[a+1]=i,this.float32[a+2]=n,this.float32[a+3]=r,this.float32[a+4]=o,this.float32[a+5]=s,e}}Ea.prototype.bytesPerElement=24,Wo(Ea,"StructArrayLayout6f24");class Sa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,n,r)}emplace(e,t,i,n,r,o){const s=5*e;return this.float32[s+0]=t,this.float32[s+1]=i,this.float32[s+2]=n,this.float32[s+3]=r,this.float32[s+4]=o,e}}Sa.prototype.bytesPerElement=20,Wo(Sa,"StructArrayLayout5f20");class Ia extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,n,r,o,s)}emplace(e,t,i,n,r,o,s,a){const l=7*e;return this.float32[l+0]=t,this.float32[l+1]=i,this.float32[l+2]=n,this.float32[l+3]=r,this.float32[l+4]=o,this.float32[l+5]=s,this.float32[l+6]=a,e}}Ia.prototype.bytesPerElement=28,Wo(Ia,"StructArrayLayout7f28");class Ma extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h){const u=this.length;return this.resize(u+1),this.emplace(u,e,t,i,n,r,o,s,a,l,c,h)}emplace(e,t,i,n,r,o,s,a,l,c,h,u){const d=11*e;return this.float32[d+0]=t,this.float32[d+1]=i,this.float32[d+2]=n,this.float32[d+3]=r,this.float32[d+4]=o,this.float32[d+5]=s,this.float32[d+6]=a,this.float32[d+7]=l,this.float32[d+8]=c,this.float32[d+9]=h,this.float32[d+10]=u,e}}Ma.prototype.bytesPerElement=44,Wo(Ma,"StructArrayLayout11f44");class Pa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l){const c=this.length;return this.resize(c+1),this.emplace(c,e,t,i,n,r,o,s,a,l)}emplace(e,t,i,n,r,o,s,a,l,c){const h=9*e;return this.float32[h+0]=t,this.float32[h+1]=i,this.float32[h+2]=n,this.float32[h+3]=r,this.float32[h+4]=o,this.float32[h+5]=s,this.float32[h+6]=a,this.float32[h+7]=l,this.float32[h+8]=c,e}}Pa.prototype.bytesPerElement=36,Wo(Pa,"StructArrayLayout9f36");class Da extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const n=2*e;return this.float32[n+0]=t,this.float32[n+1]=i,e}}Da.prototype.bytesPerElement=8,Wo(Da,"StructArrayLayout2f8");class La extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,n)}emplace(e,t,i,n,r){const o=6*e;return this.uint32[3*e+0]=t,this.uint16[o+2]=i,this.uint16[o+3]=n,this.uint16[o+4]=r,e}}La.prototype.bytesPerElement=12,Wo(La,"StructArrayLayout1ul3ui12");class za extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}za.prototype.bytesPerElement=2,Wo(za,"StructArrayLayout1ui2");class Oa extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m)}emplace(e,t,i,n,r,o,s,a,l,c,h,u,d,p,f,m,g){const _=16*e;return this.float32[_+0]=t,this.float32[_+1]=i,this.float32[_+2]=n,this.float32[_+3]=r,this.float32[_+4]=o,this.float32[_+5]=s,this.float32[_+6]=a,this.float32[_+7]=l,this.float32[_+8]=c,this.float32[_+9]=h,this.float32[_+10]=u,this.float32[_+11]=d,this.float32[_+12]=p,this.float32[_+13]=f,this.float32[_+14]=m,this.float32[_+15]=g,e}}Oa.prototype.bytesPerElement=64,Wo(Oa,"StructArrayLayout16f64");class Ra extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,n,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,n,r,o,s)}emplace(e,t,i,n,r,o,s,a){const l=10*e,c=5*e;return this.uint16[l+0]=t,this.uint16[l+1]=i,this.uint16[l+2]=n,this.uint16[l+3]=r,this.float32[c+2]=o,this.float32[c+3]=s,this.float32[c+4]=a,e}}Ra.prototype.bytesPerElement=20,Wo(Ra,"StructArrayLayout4ui3f20");class ka extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.int16[1*e+0]=t,e}}ka.prototype.bytesPerElement=2,Wo(ka,"StructArrayLayout1i2");class Ba extends Js{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint8[1*e+0]=t,e}}Ba.prototype.bytesPerElement=1,Wo(Ba,"StructArrayLayout1ub1");class Fa extends Ks{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}Fa.prototype.size=40;class Na extends ya{get(e){return new Fa(this,e)}}Wo(Na,"CollisionBoxArray");class Va extends Ks{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}Va.prototype.size=60;class ja extends Ca{get(e){return new Va(this,e)}}Wo(ja,"PlacedSymbolArray");class Ua extends Ks{get tileAnchorX(){return this._structArray.float32[this._pos4+0]}get tileAnchorY(){return this._structArray.float32[this._pos4+1]}get projectedAnchorX(){return this._structArray.int16[this._pos2+4]}get projectedAnchorY(){return this._structArray.int16[this._pos2+5]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+6]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+7]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+11]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get key(){return this._structArray.uint16[this._pos2+13]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+14]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+15]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+17]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+19]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+21]}get featureIndex(){return this._structArray.uint16[this._pos2+22]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+23]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numIconVertices(){return this._structArray.uint16[this._pos2+25]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+26]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+27]}get crossTileID(){return this._structArray.uint32[this._pos4+14]}set crossTileID(e){this._structArray.uint32[this._pos4+14]=e}get textOffset0(){return this._structArray.float32[this._pos4+15]}get textOffset1(){return this._structArray.float32[this._pos4+16]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+17]}get zOffset(){return this._structArray.float32[this._pos4+18]}set zOffset(e){this._structArray.float32[this._pos4+18]=e}get hasIconTextFit(){return this._structArray.uint8[this._pos1+76]}get elevationFeatureIndex(){return this._structArray.uint16[this._pos2+39]}}Ua.prototype.size=80;class Ha extends Ta{get(e){return new Ua(this,e)}}Wo(Ha,"SymbolInstanceArray");class Ga extends oa{getoffsetX(e){return this.float32[1*e+0]}}Wo(Ga,"GlyphOffsetArray");class Za extends ia{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}Wo(Za,"SymbolLineVertexArray");class Wa extends Ks{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Wa.prototype.size=12;class qa extends La{get(e){return new Wa(this,e)}}Wo(qa,"FeatureIndexArray");class Xa extends Aa{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}Wo(Xa,"FillExtrusionCentroidArray");class $a extends Ks{get a_join_normal_inside0(){return this._structArray.int16[this._pos2+0]}get a_join_normal_inside1(){return this._structArray.int16[this._pos2+1]}get a_join_normal_inside2(){return this._structArray.int16[this._pos2+2]}}$a.prototype.size=6;class Ya extends na{get(e){return new $a(this,e)}}Wo(Ya,"FillExtrusionWallArray");const Qa=ea([{name:"a_pos",components:2,type:"Int16"}],4),Ka=ea([{name:"a_circle_z_offset",components:1,type:"Float32"}],4),Ja=ea([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class el{constructor(e=[]){this.segments=e}_prepareSegment(e,t,i,n){let r=this.segments[this.segments.length-1];return e>el.MAX_VERTEX_ARRAY_LENGTH&&Ge(`Max vertices per segment is ${el.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!r||r.vertexLength+e>el.MAX_VERTEX_ARRAY_LENGTH||r.sortKey!==n)&&(r={vertexOffset:t,primitiveOffset:i,vertexLength:0,primitiveLength:0},void 0!==n&&(r.sortKey=n),this.segments.push(r)),r}prepareSegment(e,t,i,n){return this._prepareSegment(e,t.length,i.length,n)}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,i,n){return new el([{vertexOffset:e,primitiveOffset:t,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}}function tl(e,t){return 256*(e=Pe(Math.floor(e),0,255))+Pe(Math.floor(t),0,255)}el.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Wo(el,"SegmentVector");const il=ea([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),nl=ea([{name:"a_pattern_b",components:4,type:"Uint16"}]),rl=ea([{name:"a_dash",components:4,type:"Uint16"}]);class ol{constructor(){this.ids=[],this.uniqueIds=[],this.positions=[],this.indexed=!1}add(e,t,i,n){this.ids.push(sl(e)),this.positions.push(t,i,n)}eachPosition(e,t){const i=sl(e);let n=0,r=this.ids.length-1;for(;n<r;){const e=n+r>>1;this.ids[e]>=i?r=e:n=e+1}for(;this.ids[n]===i;)t(this.positions[3*n],this.positions[3*n+1],this.positions[3*n+2]),n++}static serialize(e,t){const i=new Float64Array(e.ids),n=new Uint32Array(e.positions);return al(i,n,0,i.length-1),t&&(t.add(i.buffer),t.add(n.buffer)),{ids:i,positions:n}}static deserialize(e){const t=new ol;let i;t.ids=e.ids,t.positions=e.positions;for(const e of t.ids)e!==i&&t.uniqueIds.push(e),i=e;return t.indexed=!0,t}}function sl(e){const t=+e;return!isNaN(t)&&Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER?t:$t(String(e))}function al(e,t,i,n){for(;i<n;){const r=e[i+n>>1];let o=i-1,s=n+1;for(;;){do{o++}while(e[o]<r);do{s--}while(e[s]>r);if(o>=s)break;ll(e,o,s),ll(t,3*o,3*s),ll(t,3*o+1,3*s+1),ll(t,3*o+2,3*s+2)}s-i<n-s?(al(e,t,i,s),i=s+1):(al(e,t,s+1,n),n=s)}}function ll(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}Wo(ol,"FeaturePositionMap");class cl{constructor(e){this.gl=e.gl,this.initialized=!1}fetchUniformLocation(e,t){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(e,t),this.initialized=!0),!!this.location}set(e,t,i){throw new Error("Uniform#set() must be implemented by each concrete Uniform")}}class hl extends cl{constructor(e){super(e),this.current=0}set(e,t,i){this.fetchUniformLocation(e,t)&&this.current!==i&&(this.current=i,this.gl.uniform1i(this.location,i))}}class ul extends cl{constructor(e){super(e),this.current=0}set(e,t,i){this.fetchUniformLocation(e,t)&&this.current!==i&&(this.current=i,this.gl.uniform1f(this.location,i))}}class dl extends cl{constructor(e){super(e),this.current=[0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]||(this.current=i,this.gl.uniform2f(this.location,i[0],i[1])))}}class pl extends cl{constructor(e){super(e),this.current=[0,0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]||(this.current=i,this.gl.uniform3f(this.location,i[0],i[1],i[2])))}}class fl extends cl{constructor(e){super(e),this.current=[0,0,0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]&&i[3]===this.current[3]||(this.current=i,this.gl.uniform4f(this.location,i[0],i[1],i[2],i[3])))}}class ml extends cl{constructor(e){super(e),this.current=oi.transparent.toPremultipliedRenderColor(null)}set(e,t,i){this.fetchUniformLocation(e,t)&&(i.r===this.current.r&&i.g===this.current.g&&i.b===this.current.b&&i.a===this.current.a||(this.current=i,this.gl.uniform4f(this.location,i.r,i.g,i.b,i.a)))}}const gl=new Float32Array(16);class _l extends cl{constructor(e){super(e),this.current=gl}set(e,t,i){if(this.fetchUniformLocation(e,t)){if(i[12]!==this.current[12]||i[0]!==this.current[0])return this.current=i,void this.gl.uniformMatrix4fv(this.location,!1,i);for(let e=1;e<16;e++)if(i[e]!==this.current[e]){this.current=i,this.gl.uniformMatrix4fv(this.location,!1,i);break}}}}const Al=new Float32Array(9),yl=new Float32Array(4);class vl extends cl{constructor(e){super(e),this.current=yl}set(e,t,i){if(this.fetchUniformLocation(e,t))for(let e=0;e<4;e++)if(i[e]!==this.current[e]){this.current=i,this.gl.uniformMatrix2fv(this.location,!1,i);break}}}function xl(e){return[tl(255*e.r,255*e.g),tl(255*e.b,255*e.a)]}class bl{constructor(e,t,i,n){this.value=e,this.uniformNames=t.map(e=>`u_${e}`),this.type=i,this.context=n}setUniform(e,t,i,n,r){const o=n.constantOr(this.value);t.set(e,r,o instanceof oi?o.toPremultipliedRenderColor(this.lutExpression&&"none"===this.lutExpression.value?null:this.context.lut):o)}getBinding(e,t){return"color"===this.type?new ml(e):new ul(e)}}class wl{constructor(e,t){this.uniformNames=t.map(e=>`u_${e}`),this.pattern=null,this.patternTransition=null,this.pixelRatio=1}setConstantPatternPositions(e,t){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br),this.patternTransition=t?t.tl.concat(t.br):this.pattern}setUniform(e,t,i,n,r){let o=null;"u_pattern"!==r&&"u_dash"!==r||(o=this.pattern),"u_pattern_b"===r&&(o=this.patternTransition),"u_pixel_ratio"===r&&(o=this.pixelRatio),o&&t.set(e,r,o)}getBinding(e,t){return"u_pattern"===t||"u_pattern_b"===t||"u_dash"===t?new fl(e):new ul(e)}}class Cl{constructor(e,t,i,n){this.expression=e,this.type=i,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===i?2:1,offset:0})),this.paintVertexArray=new n}populatePaintArray(e,t,i,n,r,o,s,a){const l=this.paintVertexArray.length,c="composite"===this.expression.kind||"source"===this.expression.kind?this.expression.evaluate(new _s(0,{brightness:o,worldview:a}),t,{},r,n,s):"constant"===this.expression.kind&&this.expression.value,h=!!this.lutExpression&&"none"===("composite"===this.lutExpression.kind||"source"===this.lutExpression.kind?this.lutExpression.evaluate(new _s(0,{brightness:o,worldview:a}),t,{},r,n,s):this.lutExpression.value);this.paintVertexArray.resize(e),this._setPaintValue(l,e,c,h?null:this.context.lut)}updatePaintArray(e,t,i,n,r,o,s,a){const l="composite"===this.expression.kind||"source"===this.expression.kind?this.expression.evaluate({zoom:0,brightness:s,worldview:a},i,n,void 0,r):"constant"===this.expression.kind&&this.expression.value,c=!!this.lutExpression&&"none"===("composite"===this.lutExpression.kind||"source"===this.lutExpression.kind?this.lutExpression.evaluate(new _s(0,{brightness:s,worldview:a}),i,n,void 0,r):this.lutExpression.value);this._setPaintValue(e,t,l,c?null:this.context.lut)}_setPaintValue(e,t,i,n){if("color"===this.type){const r=xl(i.toPremultipliedRenderColor(n));for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,r[0],r[1])}else{for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,i);this.maxValue=Math.max(this.maxValue,Math.abs(i))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.lutExpression&&"constant"!==this.lutExpression.kind&&(this.lutExpression.isStateDependent||!this.lutExpression.isLightConstant)||"constant"!==this.expression.kind&&(this.expression.isStateDependent||!this.expression.isLightConstant)))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Tl{constructor(e,t,i,n,r,o){this.expression=e,this.uniformNames=t.map(e=>`u_${e}_t`),this.type=i,this.useIntegerZoom=n,this.context=r,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===i?4:2,offset:0})),this.paintVertexArray=new o}populatePaintArray(e,t,i,n,r,o,s,a){const l=this.expression.evaluate(new _s(this.context.zoom,{brightness:o,worldview:a}),t,{},r,n,s),c=this.expression.evaluate(new _s(this.context.zoom+1,{brightness:o,worldview:a}),t,{},r,n,s),h=!!this.lutExpression&&"none"===("composite"===this.lutExpression.kind||"source"===this.lutExpression.kind?this.lutExpression.evaluate(new _s(0,{brightness:o,worldview:a}),t,{},r,n,s):this.lutExpression.value),u=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(u,e,l,c,h?null:this.context.lut)}updatePaintArray(e,t,i,n,r,o,s,a){const l=this.expression.evaluate({zoom:this.context.zoom,brightness:s,worldview:a},i,n,void 0,r),c=this.expression.evaluate({zoom:this.context.zoom+1,brightness:s,worldview:a},i,n,void 0,r),h=!!this.lutExpression&&"none"===("composite"===this.lutExpression.kind||"source"===this.lutExpression.kind?this.lutExpression.evaluate(new _s(0,{brightness:s,worldview:a}),i,n,void 0,r):this.lutExpression.value);this._setPaintValue(e,t,l,c,h?null:this.context.lut)}_setPaintValue(e,t,i,n,r){if("color"===this.type){const n=xl(i.toPremultipliedRenderColor(r)),o=xl(i.toPremultipliedRenderColor(r));for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,n[0],n[1],o[0],o[1])}else{for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,i,n);this.maxValue=Math.max(this.maxValue,Math.abs(i),Math.abs(n))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t,i,n,r){const o=this.useIntegerZoom?Math.floor(i.zoom):i.zoom,s=Pe(this.expression.interpolationFactor(o,this.context.zoom,this.context.zoom+1),0,1);t.set(e,r,s)}getBinding(e,t){return new ul(e)}}class El{constructor(e,t,i,n,r){this.expression=e,this.layerId=r,this.paintVertexAttributes=("array"===i?rl:il).members;for(let e=0;e<t.length;++e);this.paintVertexArray=new n,this.paintTransitionVertexArray=new da}populatePaintArray(e,t,i,n){const r=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValues(r,e,t.patterns&&t.patterns[this.layerId],i)}updatePaintArray(e,t,i,n,r,o,s){this._setPaintValues(e,t,i.patterns&&i.patterns[this.layerId],o)}_setPaintValues(e,t,i,n){if(!n||!i)return;const r=n[i[0]],o=n[i[1]];if(r){if(r){const{tl:i,br:n,pixelRatio:o}=r;for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,i[0],i[1],n[0],n[1],o)}if(o){this.paintTransitionVertexArray.resize(this.paintVertexArray.length);const{tl:i,br:n}=o;for(let r=e;r<t;r++)this.paintTransitionVertexArray.emplace(r,i[0],i[1],n[0],n[1])}}}upload(e){const t=this.expression.isStateDependent||!this.expression.isLightConstant;this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,t)),this.paintTransitionVertexArray&&this.paintTransitionVertexArray.length&&(this.paintTransitionVertexBuffer=e.createVertexBuffer(this.paintTransitionVertexArray,nl.members,t))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy(),this.paintTransitionVertexBuffer&&this.paintTransitionVertexBuffer.destroy()}}class Sl{constructor(e,t,i=()=>!0){this.binders={},this._buffers=[],this.context=t;const n=[];for(const r in e.paint._values){const o=e.paint.get(r);if(r.endsWith("-use-theme"))continue;if(!i(r))continue;if(!(o instanceof Cs&&xo(o.property.specification)))continue;const s=Pl(r,e.type),a=o.value,l=o.property.specification.type,c=!!o.property.useIntegerZoom,h="line-dasharray"===r||r.endsWith("pattern"),u=e.paint.get(`${r}-use-theme`),d="line-dasharray"===r&&"constant"!==e.layout.get("line-cap").value.kind||u&&"constant"!==u.value.kind;if("constant"!==a.kind||d)if("source"===a.kind||d||h){const t=zl(r,l,"source");this.binders[r]=h?new El(a,s,l,t,e.id):new Cl(a,s,l,t),n.push(`/a_${r}`)}else{const e=zl(r,l,"composite");this.binders[r]=new Tl(a,s,l,c,t,e),n.push(`/z_${r}`)}else this.binders[r]=h?new wl(a.value,s):new bl(a.value,s,l,t),n.push(`/u_${r}`);u&&(this.binders[r].lutExpression=u.value)}this.cacheKey=n.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof Cl||t instanceof Tl?t.maxValue:0}populatePaintArrays(e,t,i,n,r,o,s,a){for(const l in this.binders){const c=this.binders[l];c.context=this.context,(c instanceof Cl||c instanceof Tl||c instanceof El)&&c.populatePaintArray(e,t,i,n,r,o,s,a)}}setConstantPatternPositions(e,t){for(const i in this.binders){const n=this.binders[i];n instanceof wl&&n.setConstantPatternPositions(e,t)}}getPatternTransitionVertexBuffer(e){const t=this.binders[e];return t instanceof El?t.paintTransitionVertexBuffer:null}updatePaintArrays(e,t,i,n,r,o,s,a,l,c){let h=!1;const u=Object.keys(e),d=0!==u.length&&!a,p=d?u:t.uniqueIds;this.context.lut=r.lut;for(const a in this.binders){const u=this.binders[a];if(u.context=this.context,(u instanceof Cl||u instanceof Tl||u instanceof El)&&u.expression&&u.expression.kind&&"constant"!==u.expression.kind&&(!0===u.expression.isStateDependent||!1===u.expression.isLightConstant)){const f=r.paint.get(a);u.expression=f.value;for(const i of p){const r=e[i.toString()];t.eachPosition(i,(e,t,i)=>{const a=n.feature(e);u.updatePaintArray(t,i,a,r,o,s,l,c)})}if(!d)for(const t of i.uniqueIds){const r=e[t.toString()];i.eachPosition(t,(e,t,i)=>{const a=n.feature(e);u.updatePaintArray(t,i,a,r,o,s,l,c)})}h=!0}}return h}defines(){const e=[];for(const t in this.binders){const i=this.binders[t];(i instanceof bl||i instanceof wl)&&e.push(...i.uniformNames.map(e=>`#define HAS_UNIFORM_${e}`))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const i=this.binders[t];if(i instanceof Cl||i instanceof Tl||i instanceof El)for(let t=0;t<i.paintVertexAttributes.length;t++)e.push(i.paintVertexAttributes[t].name);if(i instanceof El)for(let t=0;t<nl.members.length;t++)e.push(nl.members[t].name)}return e}getBinderUniforms(){const e=[];for(const t in this.binders){const i=this.binders[t];if(i instanceof bl||i instanceof wl||i instanceof Tl)for(const t of i.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e){const t=[];for(const i in this.binders){const n=this.binders[i];if(n instanceof bl||n instanceof wl||n instanceof Tl)for(const r of n.uniformNames)t.push({name:r,property:i,binding:n.getBinding(e,r)})}return t}setUniforms(e,t,i,n,r){for(const{name:t,property:o,binding:s}of i)this.binders[o].setUniform(e,s,r,n.get(o),t)}updatePaintBuffers(){this._buffers=[];for(const e in this.binders){const t=this.binders[e];(t instanceof Cl||t instanceof Tl||t instanceof El)&&t.paintVertexBuffer&&this._buffers.push(t.paintVertexBuffer),t instanceof El&&t.paintTransitionVertexBuffer&&this._buffers.push(t.paintTransitionVertexBuffer)}}upload(e){for(const t in this.binders){const i=this.binders[t];(i instanceof Cl||i instanceof Tl||i instanceof El)&&i.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof Cl||t instanceof Tl||t instanceof El)&&t.destroy()}}}class Il{constructor(e,t,i=()=>!0){this.programConfigurations={};for(const n of e)this.programConfigurations[n.id]=new Sl(n,t,i);this.needsUpload=!1,this._featureMap=new ol,this._featureMapWithoutIds=new ol,this._bufferOffset=0,this._idlessCounter=0}populatePaintArrays(e,t,i,n,r,o,s,a,l){for(const i in this.programConfigurations)this.programConfigurations[i].populatePaintArrays(e,t,n,r,o,s,a,l);void 0!==t.id?this._featureMap.add(t.id,i,this._bufferOffset,e):(this._featureMapWithoutIds.add(this._idlessCounter,i,this._bufferOffset,e),this._idlessCounter+=1),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,i,n,r,o,s,a){for(const l of i)this.needsUpload=this.programConfigurations[l.id].updatePaintArrays(e,this._featureMap,this._featureMapWithoutIds,t,l,n,r,o,s||0,a)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const Ml={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-occlusion-opacity":["occlusion_opacity"],"icon-occlusion-opacity":["occlusion_opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-emissive-strength":["emissive_strength"],"icon-emissive-strength":["emissive_strength"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"symbol-z-offset":["z_offset"],"line-gap-width":["gapwidth"],"line-pattern":["pattern","pixel_ratio","pattern_b"],"fill-pattern":["pattern","pixel_ratio","pattern_b"],"fill-extrusion-pattern":["pattern","pixel_ratio","pattern_b"],"line-dasharray":["dash"],"fill-bridge-guard-rail-color":["structure_color"],"fill-tunnel-structure-color":["structure_color"]};function Pl(e,t){return Ml[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}const Dl={"line-pattern":{source:ua,composite:ua},"fill-pattern":{source:ua,composite:ua},"fill-extrusion-pattern":{source:ua,composite:ua},"line-dasharray":{source:da,composite:da}},Ll={color:{source:Da,composite:ga},number:{source:oa,composite:Da}};function zl(e,t,i){const n=Dl[e];return n&&n[i]||Ll[t][i]}Wo(bl,"ConstantBinder"),Wo(wl,"PatternConstantBinder"),Wo(Cl,"SourceExpressionBinder"),Wo(El,"PatternCompositeBinder"),Wo(Tl,"CompositeExpressionBinder"),Wo(Sl,"ProgramConfiguration",{omit:["_buffers"]}),Wo(Il,"ProgramConfigurationSet");const Ol=On/Math.PI/2,Rl=5,kl=6,Bl=16383,Fl=64,Nl=[Fl,32,16],Vl=-Ol,jl=Ol;function Ul(e,t,i,n=Ol){return i=Ce(i),[e*Math.sin(i)*n,-t*n,e*Math.cos(i)*n]}function Hl(e,t,i){return Ul(Math.cos(Ce(e)),Math.sin(Ce(e)),t,i)}const Gl=6371008.8,Zl=2*Math.PI*Gl;class Wl{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Wl(Le(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,i=this.lat*t,n=e.lat*t,r=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((e.lng-this.lng)*t);return Gl*Math.acos(Math.min(r,1))}toBounds(e=0){const t=360*e/40075017,i=t/Math.cos(Math.PI/180*this.lat);return new ql({lng:this.lng-i,lat:this.lat-t},{lng:this.lng+i,lat:this.lat+t})}toEcef(e){return Hl(this.lat,this.lng,Ol+e*Ol/Gl)}static convert(e){if(e instanceof Wl)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Wl(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Wl(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}class ql{constructor(e,t){if(e)if(t)this.setSouthWest(e).setNorthEast(t);else if(4===e.length){const t=e;this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]])}else{const t=e;this.setSouthWest(t[0]).setNorthEast(t[1])}}setNorthEast(e){return this._ne=e instanceof Wl?new Wl(e.lng,e.lat):Wl.convert(e),this}setSouthWest(e){return this._sw=e instanceof Wl?new Wl(e.lng,e.lat):Wl.convert(e),this}extend(e){const t=this._sw,i=this._ne;let n,r;if(e instanceof Wl)n=e,r=e;else{if(!(e instanceof ql))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(ql.convert(e)):this.extend(Wl.convert(e)):"object"==typeof e&&null!==e&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(Wl.convert(e)):this;if(n=e._sw,r=e._ne,!n||!r)return this}return t||i?(t.lng=Math.min(n.lng,t.lng),t.lat=Math.min(n.lat,t.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Wl(n.lng,n.lat),this._ne=new Wl(r.lng,r.lat)),this}getCenter(){return new Wl((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Wl(this.getWest(),this.getNorth())}getSouthEast(){return new Wl(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:i}=Wl.convert(e);let n=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(n=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=i&&i<=this._ne.lat&&n}static convert(e){if(e)return e instanceof ql?e:new ql(e)}}const Xl=0,$l=25.5;function Yl(e){return Zl*Math.cos(e*Math.PI/180)}function Ql(e){return(180+e)/360}function Kl(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Jl(e,t){return e/Yl(t)}function ec(e){return 360*e-180}function tc(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}function ic(e,t){return e*Yl(tc(t))}const nc=85.051129;function rc(e){return Math.cos(Ce(Pe(e,-85.051129,nc)))}function oc(e,t){const i=Pe(t,Xl,$l),n=Math.pow(2,i);return rc(e)*Zl/(512*n)}function sc(e){return 1/Math.cos(e*Math.PI/180)}function ac(e,t=0){const i=Math.exp(Math.PI*(1-(e.y+t/On)/(1<<e.z)*2));return 80150034*i/(i*i+1)/On/(1<<e.z)}class lc{constructor(e,t,i=0){this.x=+e,this.y=+t,this.z=+i}static fromLngLat(e,t=0){const i=Wl.convert(e);return new lc(Ql(i.lng),Kl(i.lat),Jl(t,i.lat))}toLngLat(){return new Wl(ec(this.x),tc(this.y))}toAltitude(){return ic(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Zl*sc(tc(this.y))}}function cc(e,t,i,n,r,o,s,a,l){const c=(t+n)/2,h=(i+r)/2,u=new ve(c,h);a(u),function(e,t,i,n,r,o){const s=i-r,a=n-o;return Math.abs((n-t)*s-(i-e)*a)/Math.hypot(s,a)}(u.x,u.y,o.x,o.y,s.x,s.y)>=l?(cc(e,t,i,c,h,o,u,a,l),cc(e,c,h,n,r,u,s,a,l)):e.push(s)}function hc(e,t,i){let n=e[0],r=n.x,o=n.y;t(n);const s=[n];for(let a=1;a<e.length;a++){const l=e[a],{x:c,y:h}=l;t(l),cc(s,r,o,c,h,n,l,t,i),r=c,o=h,n=l}return s}function uc(e,t,i,n){if(n(t,i)){const r=t.add(i)._mult(.5);uc(e,t,r,n),uc(e,r,i,n)}else e.push(i)}function dc(e,t){let i=e[0];const n=[i];for(let r=1;r<e.length;r++){const o=e[r];uc(n,i,o,t),i=o}return n}const pc=Math.pow(2,14)-1,fc=-pc-1;function mc(e,t){const i=Math.round(e.x*t),n=Math.round(e.y*t);return e.x=Pe(i,fc,pc),e.y=Pe(n,fc,pc),(i<e.x||i>e.x+1||n<e.y||n>e.y+1)&&Ge("Geometry exceeds allowed extent, reduce your vector tile buffer size"),e}function gc(e,t,i){const n=e.loadGeometry(),r=e.extent,o=On/r;if(t&&i&&i.projection.isReprojectedInTileSpace){const o=1<<t.z,{scale:s,x:a,y:l,projection:c}=i,h=e=>{const i=ec((t.x+e.x/r)/o),n=tc((t.y+e.y/r)/o),h=c.project(i,n);e.x=(h.x*s-a)*r,e.y=(h.y*s-l)*r};for(let t=0;t<n.length;t++)if(1!==e.type)n[t]=hc(n[t],h,1);else{const e=[];for(const i of n[t])i.x<0||i.x>=r||i.y<0||i.y>=r||(h(i),e.push(i));n[t]=e}}for(const e of n)for(const t of e)mc(t,o);return n}function _c(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?gc(e):[]}}var Ac,yc,vc,xc,bc,wc,Cc,Tc={};function Ec(){if(yc)return Ac;yc=1;var e=ye();function t(e,t,n,r,o){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=o,e.readFields(i,this,t)}function i(e,t,i){1==e?t.id=i.readVarint():2==e?function(e,t){for(var i=e.readVarint()+e.pos;e.pos<i;){var n=t._keys[e.readVarint()],r=t._values[e.readVarint()];t.properties[n]=r}}(i,t):3==e?t.type=i.readVarint():4==e&&(t._geometry=i.pos)}function n(e){for(var t,i,n=0,r=0,o=e.length,s=o-1;r<o;s=r++)n+=((i=e[s]).x-(t=e[r]).x)*(t.y+i.y);return n}return Ac=t,t.types=["Unknown","Point","LineString","Polygon"],t.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var i,n=t.readVarint()+t.pos,r=1,o=0,s=0,a=0,l=[];t.pos<n;){if(o<=0){var c=t.readVarint();r=7&c,o=c>>3}if(o--,1===r||2===r)s+=t.readSVarint(),a+=t.readSVarint(),1===r&&(i&&l.push(i),i=[]),i.push(new e(s,a));else{if(7!==r)throw new Error("unknown command "+r);i&&i.push(i[0].clone())}}return i&&l.push(i),l},t.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,i=1,n=0,r=0,o=0,s=1/0,a=-1/0,l=1/0,c=-1/0;e.pos<t;){if(n<=0){var h=e.readVarint();i=7&h,n=h>>3}if(n--,1===i||2===i)(r+=e.readSVarint())<s&&(s=r),r>a&&(a=r),(o+=e.readSVarint())<l&&(l=o),o>c&&(c=o);else if(7!==i)throw new Error("unknown command "+i)}return[s,l,a,c]},t.prototype.toGeoJSON=function(e,i,r){var o,s,a=this.extent*Math.pow(2,r),l=this.extent*e,c=this.extent*i,h=this.loadGeometry(),u=t.types[this.type];function d(e){for(var t=0;t<e.length;t++){var i=e[t];e[t]=[360*(i.x+l)/a-180,360/Math.PI*Math.atan(Math.exp((180-360*(i.y+c)/a)*Math.PI/180))-90]}}switch(this.type){case 1:var p=[];for(o=0;o<h.length;o++)p[o]=h[o][0];d(h=p);break;case 2:for(o=0;o<h.length;o++)d(h[o]);break;case 3:for(h=function(e){var t=e.length;if(t<=1)return[e];for(var i,r,o=[],s=0;s<t;s++){var a=n(e[s]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(i&&o.push(i),i=[e[s]]):i.push(e[s]))}return i&&o.push(i),o}(h),o=0;o<h.length;o++)for(s=0;s<h[o].length;s++)d(h[o][s])}1===h.length?h=h[0]:u="Multi"+u;var f={type:"Feature",geometry:{type:u,coordinates:h},properties:this.properties};return"id"in this&&(f.id=this.id),f},Ac}function Sc(){if(xc)return vc;xc=1;var e=Ec();function t(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(i,this,t),this.length=this._features.length}function i(e,t,i){15===e?t.version=i.readVarint():1===e?t.name=i.readString():5===e?t.extent=i.readVarint():2===e?t._features.push(i.pos):3===e?t._keys.push(i.readString()):4===e&&t._values.push(function(e){for(var t=null,i=e.readVarint()+e.pos;e.pos<i;){var n=e.readVarint()>>3;t=1===n?e.readString():2===n?e.readFloat():3===n?e.readDouble():4===n?e.readVarint64():5===n?e.readVarint():6===n?e.readSVarint():7===n?e.readBoolean():null}return t}(i))}return vc=t,t.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var i=this._pbf.readVarint()+this._pbf.pos;return new e(this._pbf,i,this.extent,this._keys,this._values)},vc}function Ic(){return Cc||(Cc=1,Tc.VectorTile=function(){if(wc)return bc;wc=1;var e=Sc();function t(t,i,n){if(3===t){var r=new e(n,n.readVarint()+n.pos);r.length&&(i[r.name]=r)}}return bc=function(e,i){this.layers=e.readFields(t,{},i)},bc}(),Tc.VectorTileFeature=Ec(),Tc.VectorTileLayer=Sc()),Tc}var Mc=Ic();const Pc="3d_elevation_id",Dc="level";class Lc{constructor(){this._valid=!1}reset(e){return this.feature=e,this._valid=!0,this._geometry=e.loadGeometry(),0!==this._geometry.length&&0!==this._geometry[0].length||(this._valid=!1),this}geometry(e,t){return this._valid&&e(t(this._geometry)),this}require(e,t,i){return this.get(e,!0,t,i)}optional(e,t,i){return this.get(e,!1,t,i)}success(){return this._valid}get(e,t,i,n){const r=this.feature.properties.hasOwnProperty(e)?+this.feature.properties[e]:void 0;return this._valid&&void 0!==r&&!Number.isNaN(r)?i(n?n(r):r):t&&(this._valid=!1),this}}class zc{constructor(e,t){this.featureFunc=e,this.vertexFunc=t}parseFeature(e,t,i){return this.featureFunc(e,t,i)}parseVertex(e,t,i){return this.vertexFunc(e,t,i)}}const Oc=new zc((e,t,i)=>e.reset(t).require(Pc,e=>{i.id=e}).optional("fixed_height_relative",e=>{i.constantHeight=e},kc.decodeRelativeHeight).geometry(e=>{i.bounds=e},dn).success(),(e,t,i)=>e.reset(t).require(Pc,e=>{i.id=e}).require("elevation_idx",e=>{i.idx=e}).require("extent",e=>{i.extent=e}).require("height_relative",e=>{i.height=e},kc.decodeRelativeHeight).geometry(e=>{i.position=e},kc.getPoint).success()),Rc=new zc((e,t,i)=>e.reset(t).require(Pc,e=>{i.id=e}).optional("fixed_height",e=>{i.constantHeight=e},kc.decodeMetricHeight).geometry(e=>{i.bounds=e},dn).success(),(e,t,i)=>e.reset(t).require(Pc,e=>{i.id=e}).require("elevation_idx",e=>{i.idx=e}).require("extent",e=>{i.extent=e}).require("height",e=>{i.height=e},kc.decodeMetricHeight).geometry(e=>{i.position=e},kc.getPoint).success());class kc{static getPoint(e){return ae(e[0][0].x,e[0][0].y)}static decodeRelativeHeight(e){return 1e-4*e*5}static decodeMetricHeight(e){return 1e-4*e}static parse(e){const t=[],i=[],n=e.length,r=new Lc;for(let s=0;s<n;s++){const n=e.feature(s),a=n.properties.hasOwnProperty("version")?String(n.properties.version):void 0,l=(o=a)?"1.0.1"===o?Rc:void 0:Oc;if(void 0===l){Ge(`Unknown elevation feature version number ${a||"(unknown)"}`);continue}const c=n.properties.hasOwnProperty("type")?n.properties.type:void 0;if(c)if("Point"===Mc.VectorTileFeature.types[n.type]&&"curve_point"===c){const e={};l.parseVertex(r,n,e)&&t.push(e)}else if("Polygon"===Mc.VectorTileFeature.types[n.type]&&"curve_meta"===c){const e={};l.parseFeature(r,n,e)&&i.push(e)}}var o;return{vertices:t,features:i}}}class Bc{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,i){const n=pe(t,this.dir);if(Math.abs(n)<1e-6)return!1;const r=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1])/n;return i[0]=this.pos[0]+this.dir[0]*r,i[1]=this.pos[1]+this.dir[1]*r,!0}}class Fc{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,i){const n=R(t,this.dir);if(Math.abs(n)<1e-6)return!1;const r=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1]+(e[2]-this.pos[2])*t[2])/n;return i[0]=this.pos[0]+this.dir[0]*r,i[1]=this.pos[1]+this.dir[1]*r,i[2]=this.pos[2]+this.dir[2]*r,!0}closestPointOnSphere(e,i,n){if(function(e,i){var n=e[0],r=e[1],o=e[2],s=i[0],a=i[1],l=i[2];return Math.abs(n-s)<=t*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=t*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=t*Math.max(1,Math.abs(o),Math.abs(l))}(this.pos,e)||0===i)return n[0]=n[1]=n[2]=0,!1;const[r,o,s]=this.dir,a=this.pos[0]-e[0],l=this.pos[1]-e[1],c=this.pos[2]-e[2],h=r*r+o*o+s*s,u=2*(a*r+l*o+c*s),d=u*u-4*h*(a*a+l*l+c*c-i*i);if(d<0){const e=Math.max(-u/2,0),t=a+r*e,h=l+o*e,d=c+s*e,p=Math.hypot(t,h,d);return n[0]=t*i/p,n[1]=h*i/p,n[2]=d*i/p,!1}{const e=(-u-Math.sqrt(d))/(2*h);if(e<0){const e=Math.hypot(a,l,c);return n[0]=a*i/e,n[1]=l*i/e,n[2]=c*i/e,!1}return n[0]=a+r*e,n[1]=l+o*e,n[2]=c+s*e,!0}}}class Nc{constructor(e,t,i,n,r){this.TL=e,this.TR=t,this.BR=i,this.BL=n,this.horizon=r}static fromInvProjectionMatrix(e,t,i){const n=[-1,1,1],r=[1,1,1],o=[1,-1,1],s=[-1,-1,1],a=F(n,n,e),l=F(r,r,e),c=F(o,o,e),h=F(s,s,e);return new Nc(a,l,c,h,t/i)}}function Vc(e,t,i){let n=1/0,r=-1/0;const o=[];for(const s of e){U(o,s,t);const e=R(o,i);n=Math.min(n,e),r=Math.max(r,e)}return[n,r]}function jc(e,t){let i=!0;for(let n=0;n<e.planes.length;n++){const r=e.planes[n];let o=0;for(let e=0;e<t.length;e++)o+=R(r,t[e])+r[3]>=0;if(0===o)return 0;o!==t.length&&(i=!1)}return i?2:1}function Uc(e,t){for(const i of e.projections){const n=Vc(t,e.points[0],i.axis);if(i.projection[1]<n[0]||i.projection[0]>n[1])return 0}return 1}function Hc(e,t){let i=0;const n=[0,0,0,0];for(let s=0;s<e.length;s++)n[0]=e[s][0],n[1]=e[s][1],n[2]=e[s][2],n[3]=1,(r=n)[0]*(o=t)[0]+r[1]*o[1]+r[2]*o[2]+r[3]*o[3]>=0&&i++;var r,o;return i}class Gc{constructor(e,t){this.points=e||new Array(8).fill([0,0,0]),this.planes=t||new Array(6).fill([0,0,0,0]),this.bounds=Zc.fromPoints(this.points),this.projections=[],this.frustumEdges=[U([],this.points[2],this.points[3]),U([],this.points[0],this.points[3]),U([],this.points[4],this.points[0]),U([],this.points[5],this.points[1]),U([],this.points[6],this.points[2]),U([],this.points[7],this.points[3])];for(const e of this.frustumEdges){const t=[0,-e[2],e[1]],i=[e[2],0,-e[0]];this.projections.push({axis:t,projection:Vc(this.points,this.points[0],t)}),this.projections.push({axis:i,projection:Vc(this.points,this.points[0],i)})}}static fromInvProjectionMatrix(e,t,i,n){const r=Math.pow(2,i),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(i=>{const o=X([],i,e),s=1/o[3]/t*r;return(a=o)[0]=(l=o)[0]*(c=[s,s,n?1/o[3]:s,s])[0],a[1]=l[1]*c[1],a[2]=l[2]*c[2],a[3]=l[3]*c[3],a;var a,l,c}),s=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(e=>{const t=O([],k([],U([],o[e[0]],o[e[1]]),U([],o[e[2]],o[e[1]]))),i=-R(t,o[e[1]]);return t.concat(i)}),a=[];for(let e=0;e<o.length;e++)a.push([o[e][0],o[e][1],o[e][2]]);return new Gc(a,s)}intersectsPrecise(e,t,i){for(let i=0;i<t.length;i++)if(!Hc(e,t[i]))return 0;for(let t=0;t<this.planes.length;t++)if(!Hc(e,this.planes[t]))return 0;for(const t of i)for(const i of this.frustumEdges){const n=k([],t,i),r=b(n);if(0===r)continue;M(n,n,1/r);const o=Vc(this.points,this.points[0],n),s=Vc(e,this.points[0],n);if(o[0]>s[1]||s[0]>o[1])return 0}return 1}containsPoint(e){for(const t of this.planes){const i=t[3];if(R([t[0],t[1],t[2]],e)+i<0)return!1}return!0}}class Zc{static fromPoints(e){const t=[1/0,1/0,1/0],i=[-1/0,-1/0,-1/0];for(const n of e)S(t,t,n),I(i,i,n);return new Zc(t,i)}static fromTileIdAndHeight(e,t,i){const n=1<<e.canonical.z,r=e.canonical.x,o=e.canonical.y;return new Zc([r/n,o/n,t],[(r+1)/n,(o+1)/n,i])}static applyTransform(e,t){const i=e.getCorners();for(let e=0;e<i.length;++e)F(i[e],i[e],t);return Zc.fromPoints(i)}static applyTransformFast(e,t){const i=[t[12],t[13],t[14]],n=[...i];for(let r=0;r<3;r++)for(let o=0;o<3;o++){const s=t[4*o+r],a=s*e.min[o],l=s*e.max[o];i[r]+=Math.min(a,l),n[r]+=Math.max(a,l)}return new Zc(i,n)}static projectAabbCorners(e,t){const i=e.getCorners();for(let e=0;e<i.length;++e)F(i[e],i[e],t);return i}constructor(e,t){this.min=e,this.max=t,this.center=M([],C([],this.min,this.max),.5)}quadrant(e){const t=[e%2==0,e<2],i=x(this.min),n=x(this.max);for(let e=0;e<t.length;e++)i[e]=t[e]?this.min[e]:this.center[e],n[e]=t[e]?this.center[e]:this.max[e];return n[2]=this.max[2],new Zc(i,n)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}getCorners(){const e=this.min,t=this.max;return[[e[0],e[1],e[2]],[t[0],e[1],e[2]],[t[0],t[1],e[2]],[e[0],t[1],e[2]],[e[0],e[1],t[2]],[t[0],e[1],t[2]],[t[0],t[1],t[2]],[e[0],t[1],t[2]]]}intersects(e){return this.intersectsAabb(e.bounds)?jc(e,this.getCorners()):0}intersectsFlat(e){return this.intersectsAabb(e.bounds)?jc(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsPrecise(e,t){return t||this.intersects(e)?Uc(e,this.getCorners()):0}intersectsPreciseFlat(e,t){return t||this.intersectsFlat(e)?Uc(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsAabb(e){for(let t=0;t<3;++t)if(this.min[t]>e.max[t]||e.min[t]>this.max[t])return!1;return!0}intersectsAabbXY(e){return!(this.min[0]>e.max[0]||e.min[0]>this.max[0]||this.min[1]>e.max[1]||e.min[1]>this.max[1])}encapsulate(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e.min[t]),this.max[t]=Math.max(this.max[t],e.max[t])}encapsulatePoint(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e[t]),this.max[t]=Math.max(this.max[t],e[t])}closestPoint(e){return[Math.max(Math.min(this.max[0],e[0]),this.min[0]),Math.max(Math.min(this.max[1],e[1]),this.min[1]),Math.max(Math.min(this.max[2],e[2]),this.min[2])]}}Wo(Zc,"Aabb");class Wc{constructor(e,t){this.feature=e,this.metersToTile=t,this.index=0}get(){const e=this.feature.vertices[this.index],t=this.feature.vertexProps[this.index].dir,i=t[1],n=-t[0],r=(e.extent+1)*this.metersToTile;return[new ve(Math.trunc(e.position[0]+i*r),Math.trunc(e.position[1]+n*r)),new ve(Math.trunc(e.position[0]-i*r),Math.trunc(e.position[1]-n*r))]}next(){this.index++}valid(){return this.index<this.feature.vertices.length}}class qc{constructor(e,t,i,n,r,o){if(this.vertices=new Array,this.vertexProps=new Array,this.edges=new Array,this.edgeProps=new Array,this.id=e,this.heightRange={min:i,max:i},this.safeArea=t,this.constantHeight=i,null==this.constantHeight&&(null!=this.constantHeight||0!==n.length)){this.vertices=n,this.edges=r,this.edges=this.edges.filter(e=>{return e.a<this.vertices.length&&e.b<this.vertices.length&&!((t=this.vertices[e.a].position)[0]===(i=this.vertices[e.b].position)[0]&&t[1]===i[1]);var t,i}),this.heightRange={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};for(const e of this.vertices)this.vertexProps.push({dir:ae(0,0)}),this.heightRange.min=Math.min(this.heightRange.min,e.height),this.heightRange.max=Math.max(this.heightRange.max,e.height);for(const e of this.edges){const t=this.vertices[e.a].position,i=this.vertices[e.b].position,n=ce(se(),i,t),r=ue(n),o=he(se(),n,1/r);this.edgeProps.push({vec:n,dir:o,len:r});const s=this.vertexProps[e.a].dir,a=this.vertexProps[e.b].dir;le(s,s,o),le(a,a,o)}for(const e of this.vertexProps)0===e.dir[0]&&0===e.dir[1]||de(e.dir,e.dir);this.tessellate(o)}}pointElevation(e){if(null!=this.constantHeight)return this.constantHeight;const t=this.getClosestEdge(e);if(null==t)return 0;const[i,n]=t;return ci(this.vertices[this.edges[i].a].height,this.vertices[this.edges[i].b].height,n)}computeSlopeNormal(e,t){const i=this.getClosestEdge(e);if(!i)return w(0,0,1);const n=i[0],r=this.edges[n],o=this.edgeProps[n].vec,s=w(o[0],o[1],(this.vertices[r.b].height-this.vertices[r.a].height)*t),a=w(s[1],-s[0],0);k(a,a,s);const l=b(a);return l>0?M(a,a,1/l):w(0,0,1)}getSafeArea(){return this.safeArea}isTunnel(){return this.heightRange.max<=-5}getClosestEdge(e){if(0===this.edges.length)return;let t=0,i=Number.POSITIVE_INFINITY,n=0;const r=ae(e.x,e.y);for(let e=0;e<this.edges.length;e++){const o=this.edges[e],s=this.edgeProps[e].dir,a=new Bc(r,this.edgeProps[e].dir),l=this.vertices[o.a].position,c=this.vertices[o.b].position,h=se(),u=se(),d=a.intersectsPlane(l,this.vertexProps[o.a].dir,h),p=a.intersectsPlane(c,this.vertexProps[o.b].dir,u);if(!d||!p)continue;const f=ce(se(),u,h),m=ce(se(),r,h),g=pe(f,f),_=g>0?pe(m,f)/g:0,A=Pe(_,0,1),y=Math.abs((_-A)*this.edgeProps[e].len),v=ce(se(),r,l),x=y+Math.abs(pe(v,ae(s[1],-s[0])));x<i&&(t=e,i=x,n=A)}return[t,n]}tessellate(e){for(let t=this.edges.length-1;t>=0;--t){const i=this.edges[t].a,n=this.edges[t].b,{position:r,height:o,extent:s}=this.vertices[i],{position:a,height:l,extent:c}=this.vertices[n],h=this.vertexProps[i].dir,u=this.vertexProps[n].dir,d=w(r[0]/e,r[1]/e,o),p=w(a[0]/e,a[1]/e,l),f=w(h[1],-h[0],0);M(f,f,s);const m=w(u[1],-u[0],0);if(M(m,m,c),this.distSqLines(w(d[0]+.5*f[0],d[1]+.5*f[1],d[2]+.5*f[2]),w(p[0]-.5*m[0],p[1]-.5*m[1],p[2]-.5*m[2]),w(d[0]-.5*f[0],d[1]-.5*f[1],d[2]-.5*f[2]),w(p[0]+.5*m[0],p[1]+.5*m[1],p[2]+.5*m[2]))<=.0025000000000000005)continue;const g=this.vertices.length,_=le(se(),r,a);this.vertices.push({position:he(_,_,.5),height:.5*(o+l),extent:.5*(s+c)});const A=le(se(),h,u);this.vertexProps.push({dir:de(A,A)}),this.edges.splice(t,1),this.edgeProps.splice(t,1),this.edges.push({a:i,b:g}),this.edges.push({a:g,b:n});const y=ce(se(),this.vertices[g].position,r),v=ue(y),x={vec:y,dir:he(se(),y,1/v),len:v};this.edgeProps.push(x),this.edgeProps.push(x)}}distSqLines(e,t,i,n){const r=T(v(),t,e),o=T(v(),n,i),s=T(v(),e,i),a=R(r,r),l=R(r,o),c=R(r,s),h=R(o,o),u=R(o,s),d=a*h-l*l;if(0===d){const t=R(s,o)/R(o,o);return D(B(v(),i,n,t),e)}const p=(l*u-c*h)/d,f=(a*u-l*c)/d;return D(B(v(),e,t,p),B(v(),i,n,f))}}class Xc{static parseFrom(e,t){const i=kc.parse(e);if(!i)return[];let{vertices:n,features:r}=i;const o=1/ac(t);r.sort((e,t)=>e.id-t.id),n.sort((e,t)=>e.id-t.id||e.idx-t.idx),n=n.filter((e,t,i)=>t===i.findIndex(t=>t.id===e.id&&t.idx===e.idx));const s=new Array;let a=0;const l=n.length;for(const e of r){if(e.constantHeight){s.push(new qc(e.id,e.bounds,e.constantHeight));continue}for(;a!==l&&n[a].id<e.id;)a++;if(a===l||n[a].id!==e.id)continue;const t=new Array,i=new Array,r=a;for(;a!==l&&n[a].id===e.id;){const e=n[a];if(t.push({position:e.position,height:e.height,extent:e.extent}),a!==r&&n[a-1].idx===e.idx-1){const e=a-r;i.push({a:e-1,b:e})}a++}s.push(new qc(e.id,e.bounds,void 0,t,i,o))}return s}static getElevationFeature(e,t){if(!t)return;const i=+e.properties[Pc];return Number.isNaN(i)?void 0:t.find(e=>e.id===i)}}class $c{constructor(e,t){this.zScale=1,this.xOffset=0,this.yOffset=0,e.equals(t)||(this.zScale=Math.pow(2,t.z-e.z),this.xOffset=(e.x*this.zScale-t.x)*On,this.yOffset=(e.y*this.zScale-t.y)*On)}constantElevation(e,t){if(null!=e.constantHeight)return this.computeBiasedHeight(e.constantHeight,t)}pointElevation(e,t,i){const n=this.constantElevation(t,i);return null!=n?n:(e.x=e.x*this.zScale+this.xOffset,e.y=e.y*this.zScale+this.yOffset,this.computeBiasedHeight(t.pointElevation(e),i))}computeBiasedHeight(e,t){return t<=0?e:e+t*De(0,t,e>=0?e:Math.abs(.5*e))}}Wo(qc,"ElevationFeature");class Yc{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.fqid),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new ia,this.indexArray=new wa,this.segments=new el,this.programConfigurations=new Il(e.layers,{zoom:e.zoom,lut:e.lut}),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.elevationMode=this.layers[0].layout.get("circle-elevation-reference"),this.hasElevation=!1,"none"!==this.elevationMode&&(this.elevatedLayoutVertexArray=new oa),this.worldview=e.worldview}updateFootprints(e,t){}populate(e,t,i,n){const r=this.layers[0],o=[];let s=null;"circle"===r.type&&(s=r.layout.get("circle-sort-key"));for(const{feature:t,id:r,index:a,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,c=_c(t,e);if(!this.layers[0]._featureFilter.filter(new _s(this.zoom,{worldview:this.worldview}),c,i))continue;const h=s?s.evaluate(c,{},i):void 0,u={id:r,properties:t.properties,type:t.type,sourceLayerIndex:l,index:a,geometry:e?c.geometry:gc(t,i,n),patterns:{},sortKey:h};o.push(u)}s&&o.sort((e,t)=>e.sortKey-t.sortKey);let a=null;"globe"===n.projection.name&&(this.globeExtVertexArray=new pa,a=n.projection);for(const n of o){const{geometry:r,index:o,sourceLayerIndex:s}=n,l=e[o].feature;this.addFeature(n,r,o,t.availableImages,i,a,t.brightness,t.elevationFeatures),t.featureIndex.insert(l,r,o,s,this.index)}this.hasElevation||(this.elevatedLayoutVertexArray=void 0)}update(e,t,i,n,r,o,s){this.programConfigurations.updatePaintArrays(e,t,r,i,n,o,s,this.worldview)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Qa.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Ja.members)),this.elevatedLayoutVertexArray&&(this.elevatedLayoutVertexBuffer=e.createVertexBuffer(this.elevatedLayoutVertexArray,Ka.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy(),this.elevatedLayoutVertexBuffer&&this.elevatedLayoutVertexBuffer.destroy())}addFeature(e,t,i,n,r,o,s,a){let l;"none"!==this.elevationMode&&(l=Xc.getElevationFeature(e,a));for(const i of t)for(const t of i){const i=t.x,n=t.y;if(i<0||i>=On||n<0||n>=On)continue;if(o){const e=o.projectTilePoint(i,n,r),t=o.upVector(r,i,n);this.addGlobeExtVertex(e,t),this.addGlobeExtVertex(e,t),this.addGlobeExtVertex(e,t),this.addGlobeExtVertex(e,t)}const s=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),a=s.vertexLength;if(this.addCircleVertex(i,n,-1,-1),this.addCircleVertex(i,n,1,-1),this.addCircleVertex(i,n,1,1),this.addCircleVertex(i,n,-1,1),"none"!==this.elevationMode){const e=l?l.pointElevation(new ve(i,n)):0;this.hasElevation=this.hasElevation||0!==e;for(let t=0;t<4;t++)this.elevatedLayoutVertexArray.emplaceBack(e)}this.indexArray.emplaceBack(a,a+1,a+2),this.indexArray.emplaceBack(a,a+2,a+3),s.vertexLength+=4,s.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,{},n,r,s,void 0,this.worldview)}addCircleVertex(e,t,i,n){this.layoutVertexArray.emplaceBack(2*e+(i+1)/2,2*t+(n+1)/2)}addGlobeExtVertex(e,t){const i=16384;this.globeExtVertexArray.emplaceBack(e.x,e.y,e.z,t[0]*i,t[1]*i,t[2]*i)}}function Qc(e,t){for(let i=0;i<e.length;i++)if(lh(t,e[i]))return!0;for(let i=0;i<t.length;i++)if(lh(e,t[i]))return!0;return!!th(e,t)}function Kc(e,t,i){return!!lh(e,t)||!!oh(t,e,i)}function Jc(e,t){if(1===e.length)return ah(t,e[0]);for(let i=0;i<t.length;i++){const n=t[i];for(let t=0;t<n.length;t++)if(lh(e,n[t]))return!0}for(let i=0;i<e.length;i++)if(ah(t,e[i]))return!0;for(let i=0;i<t.length;i++)if(th(e,t[i]))return!0;return!1}function eh(e,t,i){if(e.length>1){if(th(e,t))return!0;for(let n=0;n<t.length;n++)if(oh(t[n],e,i))return!0}for(let n=0;n<e.length;n++)if(oh(e[n],t,i))return!0;return!1}function th(e,t){if(0===e.length||0===t.length)return!1;for(let i=0;i<e.length-1;i++){const n=e[i],r=e[i+1];for(let e=0;e<t.length-1;e++)if(ih(n,r,t[e],t[e+1]))return!0}return!1}function ih(e,t,i,n){return Ze(e,i,n)!==Ze(t,i,n)&&Ze(e,t,i)!==Ze(e,t,n)}function nh(e,t,i){return(e.x-i.x)*(t.y-i.y)-(e.y-i.y)*(t.x-i.x)}function rh(e,t,i,n){const r=nh(e,t,n),o=nh(e,t,i);if(Math.sign(r)===Math.sign(o))return;const s=nh(i,n,e),a=s+o-r;return Math.sign(s)!==Math.sign(a)?[s/(s-a),o/(o-r)]:void 0}function oh(e,t,i){const n=i*i;if(1===t.length)return e.distSqr(t[0])<n;for(let i=1;i<t.length;i++)if(sh(e,t[i-1],t[i])<n)return!0;return!1}function sh(e,t,i){const n=t.distSqr(i);if(0===n)return e.distSqr(t);const r=((e.x-t.x)*(i.x-t.x)+(e.y-t.y)*(i.y-t.y))/n;return e.distSqr(r<0?t:r>1?i:i.sub(t)._mult(r)._add(t))}function ah(e,t){let i,n,r,o=!1;for(let s=0;s<e.length;s++){i=e[s];for(let e=0,s=i.length-1;e<i.length;s=e++)n=i[e],r=i[s],n.y>t.y!=r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(o=!o)}return o}function lh(e,t){let i=!1;for(let n=0,r=e.length-1;n<e.length;r=n++){const o=e[n],s=e[r];o.y>t.y!=s.y>t.y&&t.x<(s.x-o.x)*(t.y-o.y)/(s.y-o.y)+o.x&&(i=!i)}return i}function ch(e,t,i,n,r){for(const o of e)if(t<=o.x&&i<=o.y&&n>=o.x&&r>=o.y)return!0;const o=[new ve(t,i),new ve(t,r),new ve(n,r),new ve(n,i)];if(e.length>2)for(const t of o)if(lh(e,t))return!0;for(let t=0;t<e.length-1;t++)if(hh(e[t],e[t+1],o))return!0;return!1}function hh(e,t,i){const n=i[0],r=i[2];if(e.x<n.x&&t.x<n.x||e.x>r.x&&t.x>r.x||e.y<n.y&&t.y<n.y||e.y>r.y&&t.y>r.y)return!1;const o=Ze(e,t,i[0]);return o!==Ze(e,t,i[1])||o!==Ze(e,t,i[2])||o!==Ze(e,t,i[3])}function uh(e,t,i,n,r,o){let s=t.y-e.y,a=e.x-t.x;if(o=o||0){const e=s*s+a*a;if(0===e)return!0;const t=Math.sqrt(e);s/=t,a/=t}return!((i.x-e.x)*s+(i.y-e.y)*a-o<0||(n.x-e.x)*s+(n.y-e.y)*a-o<0||(r.x-e.x)*s+(r.y-e.y)*a-o<0)}function dh(e,t,i,n,r,o,s){return!(uh(e,t,n,r,o,s)||uh(t,i,n,r,o,s)||uh(i,e,n,r,o,s)||uh(n,r,e,t,i,s)||uh(r,o,e,t,i,s)||uh(o,n,e,t,i,s))}function ph(e,t,i){const n=t.paint.get(e).value;return"constant"===n.kind?n.value:i.programConfigurations.get(t.id).getMaxValue(e)}function fh(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function mh(e,t,i,n,r){if(!t[0]&&!t[1])return e;const o=ve.convert(t)._mult(r);"viewport"===i&&o._rotate(-n);const s=[];for(let t=0;t<e.length;t++)s.push(e[t].sub(o));return s}function gh(e,t,i,n){const r=ve.convert(e)._mult(n);return"viewport"===t&&r._rotate(-i),r}let _h,Ah;function yh(e,t,i){var n=2*Math.PI*6378137/256/Math.pow(2,i);return[e*n-2*Math.PI*6378137/2,t*n-2*Math.PI*6378137/2]}Wo(Yc,"CircleBucket",{omit:["layers"]});class vh{constructor(e,t,i){this.z=e,this.x=t,this.y=i,this.key=wh(0,e,e,t,i)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t){const i=function(e,t,i){var n=yh(256*e,256*(t=Math.pow(2,i)-t-1),i),r=yh(256*(e+1),256*(t+1),i);return n[0]+","+n[1]+","+r[0]+","+r[1]}(this.x,this.y,this.z),n=function(e,t,i){let n,r="";for(let o=e;o>0;o--)n=1<<o-1,r+=(t&n?1:0)+(i&n?2:0);return r}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",n).replace("{bbox-epsg-3857}",i)}toString(){return`${this.z}/${this.x}/${this.y}`}}class xh{constructor(e,t){this.wrap=e,this.canonical=t,this.key=wh(e,t.z,t.z,t.x,t.y)}}class bh{constructor(e,t,i,n,r){this.overscaledZ=e,this.wrap=t,this.canonical=new vh(i,+n,+r),this.key=0===t&&e===i?this.canonical.key:wh(t,e,i,n,r)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const t=this.canonical.z-e;return e>this.canonical.z?new bh(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new bh(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t=!0){if(this.overscaledZ===e&&t)return this.key;if(e>this.canonical.z)return wh(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const i=this.canonical.z-e;return wh(this.wrap*+t,e,e,this.canonical.x>>i,this.canonical.y>>i)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.z<this.canonical.z&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new bh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,i=2*this.canonical.x,n=2*this.canonical.y;return[new bh(t,this.wrap,t,i,n),new bh(t,this.wrap,t,i+1,n),new bh(t,this.wrap,t,i,n+1),new bh(t,this.wrap,t,i+1,n+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new bh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new bh(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new xh(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function wh(e,t,i,n,r){const o=1<<Math.min(i,22);let s=o*(r%o)+n%o;return e&&i<22&&(s+=o*o*((e<0?-2*e-1:2*e)%(1<<2*(22-i)))),16*(32*s+i)+(t-i)}const Ch=[e=>{let t=e.canonical.x-1,i=e.wrap;return t<0&&(t=(1<<e.canonical.z)-1,i--),new bh(e.overscaledZ,i,e.canonical.z,t,e.canonical.y)},e=>{let t=e.canonical.x+1,i=e.wrap;return t===1<<e.canonical.z&&(t=0,i++),new bh(e.overscaledZ,i,e.canonical.z,t,e.canonical.y)},e=>new bh(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,(0===e.canonical.y?1<<e.canonical.z:e.canonical.y)-1),e=>new bh(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y===(1<<e.canonical.z)-1?0:e.canonical.y+1)];Wo(vh,"CanonicalTileID"),Wo(bh,"OverscaledTileID",{omit:["projMatrix","expandedProjMatrix"]});const Th=ea([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:Eh}=Th,Sh=ea([{name:"a_pos_3",components:3,type:"Int16"}]);var Ih=ea([{name:"a_pos",type:"Int16",components:2}]);function Mh(e){return e*Ol/Gl}const Ph=[new Zc([Vl,Vl,Vl],[jl,jl,jl]),new Zc([Vl,Vl,Vl],[0,0,jl]),new Zc([0,Vl,Vl],[jl,0,jl]),new Zc([Vl,0,Vl],[0,jl,jl]),new Zc([0,0,Vl],[jl,jl,jl])];function Dh(e,t,i,n=!0){const r=M([],e._camera.position,e.worldSize),o=[t,i,1,1];X(o,o,e.pixelMatrixInverse),W(o,o,1/o[3]);const s=O([],U([],o,r)),a=e.globeMatrix,l=[a[12],a[13],a[14]],c=U([],l,r),h=b(c),u=O([],c),d=e.worldSize/(2*Math.PI),p=R(u,s),f=Math.asin(d/h);if(f<Math.acos(p)){if(!n)return null;const e=[],t=[];M(e,s,h/p),O(t,U(t,e,c)),O(s,C(s,c,M(s,t,Math.tan(f)*h)))}const m=[];new Fc(r,s).closestPointOnSphere(l,d,m);const g=O([],Qe(a,0)),_=O([],Qe(a,1)),A=O([],Qe(a,2)),y=R(g,m),v=R(_,m),x=R(A,m),w=Te(Math.asin(-v/d));let T=Te(Math.atan2(y,x));T=e.center.lng+function(e,t){const i=(t-e+180)%360-180;return i<-180?i+360:i}(e.center.lng,T);const E=Ql(T),S=Pe(Kl(w),0,1);return new lc(E,S)}class Lh{constructor(e,t,i){this.a=U([],e,i),this.b=U([],t,i),this.center=i;const n=O([],this.a),r=O([],this.b);this.angle=Math.acos(R(n,r))}}function zh(e,t){if(0===e.angle)return null;let i;return i=0===e.a[t]?1/e.angle*.5*Math.PI:1/e.angle*Math.atan(e.b[t]/e.a[t]/Math.sin(e.angle)-1/Math.tan(e.angle)),i<0||i>1?null:function(e,t,i,n){const r=Math.sin(i);return e*(Math.sin((1-n)*i)/r)+t*(Math.sin(n*i)/r)}(e.a[t],e.b[t],e.angle,Pe(i,0,1))+e.center[t]}function Oh(e){if(e.z<=1)return Ph[e.z+2*e.y+e.x];const t=Nh(Fh(e));return Zc.fromPoints(t)}function Rh(e,t,i){return M(e,e,1-i),P(e,e,t,i)}function kh(e,t,i){for(const n of e)F(n,n,t),M(n,n,i)}function Bh(e,t,i,n){const r=t/e.worldSize,o=e.globeMatrix;if(i.z<=1){const e=Oh(i).getCorners();return kh(e,o,r),Zc.fromPoints(e)}const s=Fh(i,n),a=Nh(s,Ol+Mh(e._tileCoverLift));kh(a,o,r);const l=Number.MAX_VALUE,c=[-l,-l,-l],h=[l,l,l];if(s.contains(e.center)){for(const e of a)S(h,h,e),I(c,c,e);c[2]=0;const t=e.point,i=[t.x*r,t.y*r,0];return S(h,h,i),I(c,c,i),new Zc(h,c)}if(e._tileCoverLift>0){for(const e of a)S(h,h,e),I(c,c,e);return new Zc(h,c)}const u=[o[12]*r,o[13]*r,o[14]*r],d=s.getCenter(),p=Pe(e.center.lat,-85.051129,nc),f=Pe(d.lat,-85.051129,nc),m=Ql(e.center.lng),g=Kl(p);let _=m-Ql(d.lng);const A=g-Kl(f);_>.5?_-=1:_<-.5&&(_+=1);let y=0;Math.abs(_)>Math.abs(A)?y=_>=0?1:3:(y=A>=0?0:2,P(u,u,[o[4]*r,o[5]*r,o[6]*r],-Math.sin(Ce(A>=0?s.getSouth():s.getNorth()))*Ol));const v=a[y],x=a[(y+1)%4],b=new Lh(v,x,u),w=[zh(b,0)||v[0],zh(b,1)||v[1],zh(b,2)||v[2]],T=Xh(e.zoom);if(T>0){const n=function({x:e,y:t,z:i},n,r,o,s){const a=1/(1<<i);let l=e*a,c=l+a,h=t*a,u=h+a,d=0;const p=(l+c)/2-o;return p>.5?d=-1:p<-.5&&(d=1),l=((l+d)*n-(o*=n))*r+o,c=((c+d)*n-o)*r+o,h=(h*n-(s*=n))*r+s,u=(u*n-s)*r+s,[[l,u,0],[c,u,0],[c,h,0],[l,h,0]]}(i,t,e._pixelsPerMercatorPixel,m,g);for(let e=0;e<a.length;e++)Rh(a[e],n[e],T);const r=C([],n[y],n[(y+1)%4]);M(r,r,.5),Rh(w,r,T)}for(const e of a)S(h,h,e),I(c,c,e);return h[2]=Math.min(v[2],x[2]),S(h,h,w),I(c,c,w),new Zc(h,c)}function Fh({x:e,y:t,z:i},n=!1){const r=1/(1<<i),o=new Wl(ec(e*r),t===(1<<i)-1&&n?-90:tc((t+1)*r)),s=new Wl(ec((e+1)*r),0===t&&n?90:tc(t*r));return new ql(o,s)}function Nh(e,t=Ol){const i=Ce(e.getNorth()),n=Ce(e.getSouth()),r=Math.cos(i),o=Math.cos(n),s=Math.sin(i),a=Math.sin(n),l=e.getWest(),c=e.getEast();return[Ul(o,a,l,t),Ul(o,a,c,t),Ul(r,s,c,t),Ul(r,s,l,t)]}function Vh(e,t,i,n){const r=1<<i.z,o=(e/On+i.x)/r;return Hl(tc((t/On+i.y)/r),ec(o),n)}function jh({min:e,max:t}){return Bl/Math.max(t[0]-e[0],t[1]-e[1],t[2]-e[2])}const Uh=new Float64Array(16);function Hh(e){const t=jh(e),i=g(Uh,[t,t,t]);return u(i,i,z([],e.min))}function Gh(e){const t=(n=e.min,(i=Uh)[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=n[0],i[13]=n[1],i[14]=n[2],i[15]=1,i);var i,n;const r=1/jh(e);return d(t,t,[r,r,r])}function Zh(e){const t=On/(2*Math.PI);return e/(2*Math.PI)/t}function Wh(e,t){return On/(512*Math.pow(2,e))*jh(Oh(t))}function qh(e,t,i,n,r){const o=Zh(i),s=[e,t,-i/(2*Math.PI)],a=l(new Float64Array(16));return u(a,a,s),d(a,a,[o,o,o]),p(a,a,Ce(-r)),f(a,a,Ce(-n)),a}function Xh(e){return De(Rl,kl,e)}function $h(e,t){const i=Hl(t.lat,t.lng),n=function(e){const t=Hl(e._center.lat,e._center.lng);let i=k([],w(0,1,0),t);const n=_([],-e.angle,t);i=F(i,i,n),_(n,-e._pitch,i);const r=O([],t);return M(r,r,Mh(e.cameraToCenterDistance/e.pixelsPerMeter)),F(r,r,n),C([],t,r)}(e);return s=(r=T([],n,i))[0],a=r[1],l=r[2],c=(o=i)[0],h=o[1],u=o[2],p=(d=Math.sqrt(s*s+a*a+l*l)*Math.sqrt(c*c+h*h+u*u))&&R(r,o)/d,Math.acos(Math.min(Math.max(p,-1),1));var r,o,s,a,l,c,h,u,d,p}function Yh(e,t){return $h(e,t)>Math.PI/2*1.01}const Qh=Ce(85),Kh=Math.cos(Qh),Jh=Math.sin(Qh),eu=a(),tu=e=>{const t=[];return"map"===e.paint.get("circle-pitch-alignment")&&t.push("PITCH_WITH_MAP"),"map"===e.paint.get("circle-pitch-scale")&&t.push("SCALE_WITH_MAP"),t};function iu(e,t,i,n,r,o,s,a,l){if(o&&e.queryGeometry.isAboveHorizon)return!1;o&&(l*=e.pixelToTileUnitsFactor);const c=e.tileID.canonical,h=i.projection.upVectorScale(c,i.center.lat,i.worldSize).metersToTile;for(const u of t)for(const t of u){const u=t.add(a),d=r&&i.elevation?i.elevation.exaggeration()*r.getElevationAt(u.x,u.y,!0):0,p=i.projection.projectTilePoint(u.x,u.y,c);if(d>0){const e=i.projection.upVector(c,u.x,u.y);p.x+=e[0]*h*d,p.y+=e[1]*h*d,p.z+=e[2]*h*d}const f=o?u:nu(p.x,p.y,p.z,n),m=o?e.tilespaceRays.map(e=>su(e,d)):e.queryGeometry.screenGeometry,g=X([],[p.x,p.y,p.z,1],n);if(!s&&o?l*=g[3]/i.cameraToCenterDistance:s&&!o&&(l*=i.cameraToCenterDistance/g[3]),o){const e=tc((t.y/On+c.y)/(1<<c.z));l/=i.projection.pixelsPerMeter(e,1)/Jl(1,e)}if(Kc(m,f,l))return!0}return!1}function nu(e,t,i,n){const r=X([],[e,t,i,1],n);return new ve(r[0]/r[3],r[1]/r[3])}const ru=w(0,0,0),ou=w(0,0,1);function su(e,t){const i=v();return ru[2]=t,e.intersectsPlane(ru,ou,i),new ve(i[0],i[1])}class au extends Yc{}let lu,cu,hu,uu;function du(e,{width:t,height:i},n,r){if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==t*i*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(t*i*n);return e.width=t,e.height=i,e.data=r,e}function pu(e,t,i){const{width:n,height:r}=t;n===e.width&&r===e.height||(fu(e,t,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,n),height:Math.min(e.height,r)},i,null),e.width=n,e.height=r,e.data=t.data)}function fu(e,t,i,n,r,o,s,a){if(0===r.width||0===r.height)return t;if(r.width>e.width||r.height>e.height||i.x>e.width-r.width||i.y>e.height-r.height)throw new RangeError("out of range source coordinates for image copy");if(r.width>t.width||r.height>t.height||n.x>t.width-r.width||n.y>t.height-r.height)throw new RangeError("out of range destination coordinates for image copy");const l=e.data,c=t.data,h=4===o&&a;for(let a=0;a<r.height;a++){const u=((i.y+a)*e.width+i.x)*o,d=((n.y+a)*t.width+n.x)*o;if(h)for(let e=0;e<r.width;e++){const t=u+e*o+3,i=d+e*o;c[i+0]=255,c[i+1]=255,c[i+2]=255,c[i+3]=l[t]}else if(s)for(let e=0;e<r.width;e++){const t=u+e*o,i=d+e*o,n=new oi(l[t+0]/255,l[t+1]/255,l[t+2]/255,l[t+3]).toNonPremultipliedRenderColor(s).toArray();c[i+0]=n[0],c[i+1]=n[1],c[i+2]=n[2],c[i+3]=n[3]}else for(let e=0;e<r.width*o;e++)c[d+e]=l[u+e]}return t}Wo(au,"HeatmapBucket",{omit:["layers"]});class mu{constructor(e,t){du(this,e,1,t)}resize(e){pu(this,new mu(e),1)}clone(){return new mu({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,i,n,r){fu(e,t,i,n,r,1,null)}}class gu{constructor(e,t){du(this,e,4,t)}resize(e){pu(this,new gu(e),4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new gu({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,i,n,r,o,s){fu(e,t,i,n,r,4,o,s)}}class _u{constructor(e,t){this.width=e.width,this.height=e.height,this.data=t instanceof Uint8Array?new Float32Array(t.buffer):t}}function Au(e){const t={},i=e.resolution||256,n=e.clips?e.clips.length:1,r=e.image||new gu({width:i,height:n}),o=(i,n,o)=>{t[e.evaluationKey]=o;const s=e.expression.evaluate(t),a=s?s.toNonPremultipliedRenderColor(null):null;a&&(r.data[i+n+0]=Math.floor(255*a.r),r.data[i+n+1]=Math.floor(255*a.g),r.data[i+n+2]=Math.floor(255*a.b),r.data[i+n+3]=Math.floor(255*a.a))};if(e.clips)for(let t=0,r=0;t<n;++t,r+=4*i)for(let n=0,s=0;n<i;n++,s+=4){const a=n/(i-1),{start:l,end:c}=e.clips[t];o(r,s,l*(1-a)+c*a)}else for(let e=0,t=0;e<i;e++,t+=4)o(0,t,e/(i-1));return r}Wo(mu,"AlphaImage"),Wo(gu,"RGBAImage");const yu=ea([{name:"a_pos",components:2,type:"Int16"}],4),vu=ea([{name:"a_road_z_offset",components:1,type:"Float32"}],4),xu=ea([{name:"a_pos",components:2,type:"Int16"},{name:"a_height",components:1,type:"Float32"}],4),bu=ea([{name:"a_pos_normal_3",components:3,type:"Int16"}],4);function wu(e,t,i=2){const n=t&&t.length,r=n?t[0]*i:e.length;let o=Cu(e,0,r,i,!0);const s=[];if(!o||o.next===o.prev)return s;let a,l,c;if(n&&(o=function(e,t,i,n){const r=[];for(let i=0,o=t.length;i<o;i++){const s=Cu(e,t[i]*n,i<o-1?t[i+1]*n:e.length,n,!1);s===s.next&&(s.steiner=!0),r.push(Ru(s))}r.sort(Du);for(let e=0;e<r.length;e++)i=Lu(r[e],i);return i}(e,t,o,i)),e.length>80*i){a=1/0,l=1/0;let t=-1/0,n=-1/0;for(let o=i;o<r;o+=i){const i=e[o],r=e[o+1];i<a&&(a=i),r<l&&(l=r),i>t&&(t=i),r>n&&(n=r)}c=Math.max(t-a,n-l),c=0!==c?32767/c:0}return Eu(o,s,i,a,l,c,0),s}function Cu(e,t,i,n,r){let o;if(r===function(e,t,i,n){let r=0;for(let o=t,s=i-n;o<i;o+=n)r+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return r}(e,t,i,n)>0)for(let r=t;r<i;r+=n)o=Wu(r/n|0,e[r],e[r+1],o);else for(let r=i-n;r>=t;r-=n)o=Wu(r/n|0,e[r],e[r+1],o);return o&&Vu(o,o.next)&&(qu(o),o=o.next),o}function Tu(e,t){if(!e)return e;t||(t=e);let i,n=e;do{if(i=!1,n.steiner||!Vu(n,n.next)&&0!==Nu(n.prev,n,n.next))n=n.next;else{if(qu(n),n=t=n.prev,n===n.next)break;i=!0}}while(i||n!==t);return t}function Eu(e,t,i,n,r,o,s){if(!e)return;!s&&o&&function(e,t,i,n){let r=e;do{0===r.z&&(r.z=Ou(r.x,r.y,t,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,function(e){let t,i=1;do{let n,r=e;e=null;let o=null;for(t=0;r;){t++;let s=r,a=0;for(let e=0;e<i&&(a++,s=s.nextZ,s);e++);let l=i;for(;a>0||l>0&&s;)0!==a&&(0===l||!s||r.z<=s.z)?(n=r,r=r.nextZ,a--):(n=s,s=s.nextZ,l--),o?o.nextZ=n:e=n,n.prevZ=o,o=n;r=s}o.nextZ=null,i*=2}while(t>1)}(r)}(e,n,r,o);let a=e;for(;e.prev!==e.next;){const l=e.prev,c=e.next;if(o?Iu(e,n,r,o):Su(e))t.push(l.i,e.i,c.i),qu(e),e=c.next,a=c.next;else if((e=c)===a){s?1===s?Eu(e=Mu(Tu(e),t),t,i,n,r,o,2):2===s&&Pu(e,t,i,n,r,o):Eu(Tu(e),t,i,n,r,o,1);break}}}function Su(e){const t=e.prev,i=e,n=e.next;if(Nu(t,i,n)>=0)return!1;const r=t.x,o=i.x,s=n.x,a=t.y,l=i.y,c=n.y,h=Math.min(r,o,s),u=Math.min(a,l,c),d=Math.max(r,o,s),p=Math.max(a,l,c);let f=n.next;for(;f!==t;){if(f.x>=h&&f.x<=d&&f.y>=u&&f.y<=p&&Bu(r,a,o,l,s,c,f.x,f.y)&&Nu(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function Iu(e,t,i,n){const r=e.prev,o=e,s=e.next;if(Nu(r,o,s)>=0)return!1;const a=r.x,l=o.x,c=s.x,h=r.y,u=o.y,d=s.y,p=Math.min(a,l,c),f=Math.min(h,u,d),m=Math.max(a,l,c),g=Math.max(h,u,d),_=Ou(p,f,t,i,n),A=Ou(m,g,t,i,n);let y=e.prevZ,v=e.nextZ;for(;y&&y.z>=_&&v&&v.z<=A;){if(y.x>=p&&y.x<=m&&y.y>=f&&y.y<=g&&y!==r&&y!==s&&Bu(a,h,l,u,c,d,y.x,y.y)&&Nu(y.prev,y,y.next)>=0)return!1;if(y=y.prevZ,v.x>=p&&v.x<=m&&v.y>=f&&v.y<=g&&v!==r&&v!==s&&Bu(a,h,l,u,c,d,v.x,v.y)&&Nu(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;y&&y.z>=_;){if(y.x>=p&&y.x<=m&&y.y>=f&&y.y<=g&&y!==r&&y!==s&&Bu(a,h,l,u,c,d,y.x,y.y)&&Nu(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;v&&v.z<=A;){if(v.x>=p&&v.x<=m&&v.y>=f&&v.y<=g&&v!==r&&v!==s&&Bu(a,h,l,u,c,d,v.x,v.y)&&Nu(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function Mu(e,t){let i=e;do{const n=i.prev,r=i.next.next;!Vu(n,r)&&ju(n,i,i.next,r)&&Gu(n,r)&&Gu(r,n)&&(t.push(n.i,i.i,r.i),qu(i),qu(i.next),i=e=r),i=i.next}while(i!==e);return Tu(i)}function Pu(e,t,i,n,r,o){let s=e;do{let e=s.next.next;for(;e!==s.prev;){if(s.i!==e.i&&Fu(s,e)){let a=Zu(s,e);return s=Tu(s,s.next),a=Tu(a,a.next),Eu(s,t,i,n,r,o,0),void Eu(a,t,i,n,r,o,0)}e=e.next}s=s.next}while(s!==e)}function Du(e,t){let i=e.x-t.x;return 0===i&&(i=e.y-t.y,0===i)&&(i=(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)),i}function Lu(e,t){const i=function(e,t){let i=t;const n=e.x,r=e.y;let o,s=-1/0;if(Vu(e,i))return i;do{if(Vu(e,i.next))return i.next;if(r<=i.y&&r>=i.next.y&&i.next.y!==i.y){const e=i.x+(r-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(e<=n&&e>s&&(s=e,o=i.x<i.next.x?i:i.next,e===n))return o}i=i.next}while(i!==t);if(!o)return null;const a=o,l=o.x,c=o.y;let h=1/0;i=o;do{if(n>=i.x&&i.x>=l&&n!==i.x&&ku(r<c?n:s,r,l,c,r<c?s:n,r,i.x,i.y)){const t=Math.abs(r-i.y)/(n-i.x);Gu(i,e)&&(t<h||t===h&&(i.x>o.x||i.x===o.x&&zu(o,i)))&&(o=i,h=t)}i=i.next}while(i!==a);return o}(e,t);if(!i)return t;const n=Zu(i,e);return Tu(n,n.next),Tu(i,i.next)}function zu(e,t){return Nu(e.prev,e,t.prev)<0&&Nu(t.next,e,e.next)<0}function Ou(e,t,i,n,r){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Ru(e){let t=e,i=e;do{(t.x<i.x||t.x===i.x&&t.y<i.y)&&(i=t),t=t.next}while(t!==e);return i}function ku(e,t,i,n,r,o,s,a){return(r-s)*(t-a)>=(e-s)*(o-a)&&(e-s)*(n-a)>=(i-s)*(t-a)&&(i-s)*(o-a)>=(r-s)*(n-a)}function Bu(e,t,i,n,r,o,s,a){return!(e===s&&t===a)&&ku(e,t,i,n,r,o,s,a)}function Fu(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&ju(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(Gu(e,t)&&Gu(t,e)&&function(e,t){let i=e,n=!1;const r=(e.x+t.x)/2,o=(e.y+t.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&r<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==e);return n}(e,t)&&(Nu(e.prev,e,t.prev)||Nu(e,t.prev,t))||Vu(e,t)&&Nu(e.prev,e,e.next)>0&&Nu(t.prev,t,t.next)>0)}function Nu(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function Vu(e,t){return e.x===t.x&&e.y===t.y}function ju(e,t,i,n){const r=Hu(Nu(e,t,i)),o=Hu(Nu(e,t,n)),s=Hu(Nu(i,n,e)),a=Hu(Nu(i,n,t));return r!==o&&s!==a||!(0!==r||!Uu(e,i,t))||!(0!==o||!Uu(e,n,t))||!(0!==s||!Uu(i,e,n))||!(0!==a||!Uu(i,t,n))}function Uu(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function Hu(e){return e>0?1:e<0?-1:0}function Gu(e,t){return Nu(e.prev,e,e.next)<0?Nu(e,t,e.next)>=0&&Nu(e,e.prev,t)>=0:Nu(e,t,e.prev)<0||Nu(e,e.next,t)<0}function Zu(e,t){const i=Xu(e.i,e.x,e.y),n=Xu(t.i,t.x,t.y),r=e.next,o=t.prev;return e.next=t,t.prev=e,i.next=r,r.prev=i,n.next=i,i.prev=n,o.next=n,n.prev=o,n}function Wu(e,t,i,n){const r=Xu(e,t,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function qu(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Xu(e,t,i){return{i:e,x:t,y:i,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function $u(e,t){const i=e.length;if(i<=1)return[e];const n=[];let r,o;for(let t=0;t<i;t++){const i=We(e[t]);0!==i&&(e[t].area=Math.abs(i),void 0===o&&(o=i<0),o===i<0?(r&&n.push(r),r=[e[t]]):r.push(e[t]))}if(r&&n.push(r),t>1)for(let e=0;e<n.length;e++)n[e].length<=t||(tn(n[e],t,1,n[e].length-1,Yu),n[e]=n[e].slice(0,t));return n}function Yu(e,t){return t.area-e.area}function Qu(e,t,i=1){if(!e)return null;const n="string"==typeof e?ki.from(e).getPrimary():e.getPrimary(),r="string"==typeof e?null:e.getSecondary();for(const e of[n,r]){if(!e)continue;const n=e.id.toString();t.has(n)||t.set(n,[]),e.scaleSelf(i),t.get(n).push(e)}return{primary:n.toString(),secondary:r?r.toString():null}}function Ku(e,t,i,n){const r=n.patternDependencies;let o=!1;for(const n of t){const t=n.paint.get(`${e}-pattern`);t.isConstant()||(o=!0),Qu(t.constantOr(null),r,i)&&(o=!0)}return o}function Ju(e,t,i,n,r,o){const s=o.patternDependencies;for(const a of t){const t=a.paint.get(`${e}-pattern`).value;if("constant"!==t.kind){let e=t.evaluate({zoom:n},i,{},o.availableImages);e=e&&e.name?e.name:e;const l=Qu(e,s,r);if(!l)continue;const{primary:c,secondary:h}=l;c&&(i.patterns[a.id]=[c,h].filter(Boolean))}}return i}class ed{constructor(){this.polygons=new Map}add(e,...t){this.polygons.has(e)?this.polygons.get(e).push(...t):this.polygons.set(e,t)}merge(e){for(const[t,i]of e.polygons)this.add(t,...i)}}class td{constructor(){this.portals=[]}static evaluate(e){if(0===e.length)return new td;let t=[];for(const i of e)t.push(...i.portals);if(0===t.length)return new td;const i=(e,t)=>e<=0&&t<=0||e>=On&&t>=On;for(const e of t){const t=e.va,n=e.vb;(i(t.x,n.x)||i(t.y,n.y))&&(e.type="border")}const n=t.filter(e=>"unevaluated"!==e.type),r=t.filter(e=>"unevaluated"===e.type);if(0===r.length)return new td;r.sort((e,t)=>e.hash===t.hash?e.isTunnel===t.isTunnel?0:e.isTunnel?-1:1:e.hash<t.hash?1:-1),t=n.concat(r);let o=n.length,s=o,a=o;do{if(s++,s===t.length||t[o].hash!==t[s].hash){if(s-o==2){a<o&&(t[a]=t[o],t[o]=null);const e=t[a],i=t[s-1];e.type=e.isTunnel!==i.isTunnel?"tunnel":"polygon",e.connection={a:e.connection.a,b:i.connection.a},a++}o=s}}while(o!==t.length);return t.splice(a),t.sort((e,t)=>e.hash<t.hash?1:-1),{portals:t}}}Wo(td,"ElevationPortalGraph"),Wo(ed,"ElevationPolygons");class id{constructor(e,t,i){this.outPositions=e,this.outNormals=t,this.outIndices=i,this.vertexLookup=new Map,this.buffer=new ArrayBuffer(4),this.view=new DataView(this.buffer)}addVertex(e,t,i){let n=e[2];null!=i&&(n*=i);const r=this.getVec3Bits(e)<<96n|this.getVec3Bits(t),o=this.vertexLookup.get(r);if(null!=o)return o;const s=this.outPositions.length;this.vertexLookup.set(r,s);const a=Math.trunc(16384*t[0]),l=Math.trunc(16384*t[1]),c=Math.trunc(16384*t[2]);return this.outPositions.emplaceBack(e[0],e[1],n),this.outNormals.emplaceBack(a,l,c),s}addVertices(e,t,...i){const n=[];for(const r of i){const i=this.addVertex(r,e,t);n.push(i)}return n}addTriangles(e,t,i){if(t&&i){const n=1===i.length,r=w(0,0,0);for(let o=0;o<e.length;o+=3){const s=t[e[o+0]],a=t[e[o+1]],l=t[e[o+2]],c=n?i[0]:i[e[o+1]],h=n?i[0]:i[e[o+2]],u=this.addVertex(w(s.x,s.y,n?i[0]:i[e[o+0]]),r),d=this.addVertex(w(a.x,a.y,c),r),p=this.addVertex(w(l.x,l.y,h),r);this.outIndices.emplaceBack(u,d,p)}}else for(let t=0;t<e.length;t+=3)this.outIndices.emplaceBack(e[t+0],e[t+1],e[t+2])}addQuad(e,t){const i=this.addVertices(t,void 0,...e.map(e=>w(e.coord.x,e.coord.y,e.height))),[n,r,o,s]=i;this.addTriangles([n,r,o,o,s,n])}getVertexCount(){return this.outPositions.length}clearVertexLookup(){this.vertexLookup.clear()}getBits(e){return this.view.setFloat32(0,e),BigInt(this.view.getUint32(0))}getVec3Bits(e){return this.getBits(e[0])<<64n|this.getBits(e[1])<<32n|this.getBits(e[2])}}class nd{constructor(e,t,i,n){this.unevaluatedPortals=new td,this.portalPolygons=new ed,this.bridgeFeatureSections=[],this.tunnelFeatureSections=[],this.vertexHashLookup=new Map,this.unevalVertices=[],this.unevalHeights=[],this.unevalTriangles=[],this.unevalTunnelTriangles=[],this.unevalEdges=[],this.vertexPositions=new sa,this.vertexNormals=new aa,this.indexArray=new wa,this.tileToMeters=ac(e),this.bridgeProgramConfigurations=new Il(t,{zoom:i,lut:n},e=>"fill-tunnel-structure-color"!==e),this.tunnelProgramConfigurations=new Il(t,{zoom:i,lut:n},e=>"fill-bridge-guard-rail-color"!==e)}addVertices(e,t){const i=this.unevalVertices.length;for(let i=0;i<e.length;i++)this.unevalVertices.push(e[i]),this.unevalHeights.push(t[i]);return i}addTriangles(e,t,i){const n=i?this.unevalTunnelTriangles:this.unevalTriangles;for(const i of e)n.push(i+t)}addRenderableRing(e,t,i,n,r,o){const s=[new ve(r.min.x,r.min.y),new ve(r.max.x,r.min.y),new ve(r.max.x,r.max.y),new ve(r.min.x,r.max.y)];for(let a=0;a<i-1;a++){const i=t+a,l=i+1,c=this.unevalVertices[i],h=this.unevalVertices[l];if(!(c.x>=r.min.x&&c.x<=r.max.x&&c.y>=r.min.y&&c.y<=r.max.y||h.x>=r.min.x&&h.x<=r.max.x&&h.y>=r.min.y&&h.y<=r.max.y||hh(c,h,s)))continue;if(this.isOnBorder(c.x,h.x)||this.isOnBorder(c.y,h.y))continue;const u=nd.computeEdgeHash(this.unevalVertices[i],this.unevalVertices[l]);let d,p=this.vertexHashLookup.get(nd.computePosHash(c));null!=p?d=p.next:(p=this.vertexHashLookup.get(nd.computePosHash(h)),d=null!=p?p.prev:u),this.unevalEdges.push({polygonIdx:e,a:i,b:l,hash:u,portalHash:d,isTunnel:n,type:"unevaluated",featureInfo:o})}}addPortalCandidates(e,t,i,n,r){if(0===t.length)return;this.portalPolygons.add(e,{geometry:t,zLevel:r});const o=t[0];this.vertexHashLookup.clear();let s=nd.computeEdgeHash(o[o.length-2],o[o.length-1]);for(let t=0;t<o.length-1;t++){const r=o[t+0],a=o[t+1],l=ae(a.x-r.x,a.y-r.y),c=ue(l);if(0===c)continue;let h="unevaluated";const u=n.pointElevation(r),d=n.pointElevation(a);Math.abs(u)<.01&&Math.abs(d)<.01?h="entrance":(this.isOnBorder(r.x,a.x)||this.isOnBorder(r.y,a.y))&&(h="border");const p=nd.computeEdgeHash(r,a);this.unevaluatedPortals.portals.push({connection:{a:e,b:void 0},va:r,vb:a,vab:l,length:c,hash:p,isTunnel:i,type:h});const f=nd.computePosHash(r);this.vertexHashLookup.set(f,{prev:s,next:p}),s=p}}construct(e){if(0===this.unevalVertices.length)return;const t=()=>({vertexOffset:0,primitiveOffset:this.indexArray.length}),i=e=>{e.primitiveLength=this.indexArray.length-e.primitiveOffset},n=new id(this.vertexPositions,this.vertexNormals,this.indexArray);this.prepareEdges(e.portals,this.unevalEdges);const r=t(),o=t(),s=t(),a=(e,t)=>{e.sort((e,i)=>e.type===t&&i.type!==t?-1:e.type!==t&&i.type===t?1:0);const i=e.findIndex(e=>e.type!==t);return i>=0?i:e.length};let l=0;this.unevalEdges.length>0&&(l=a(this.unevalEdges,"none"),this.constructBridgeStructures(n,this.unevalVertices,this.unevalHeights,this.unevalEdges,{min:0,max:l},this.tileToMeters)),i(s);const c=t(),h=t();if(this.unevalEdges.length>0){const e=this.unevalEdges.splice(l),t=a(e,"tunnel")+l;this.unevalEdges.push(...e),this.constructTunnelStructures(n,this.unevalVertices,this.unevalHeights,this.unevalEdges,{min:0,max:l},{min:l,max:t})}i(c),n.addTriangles(this.unevalTriangles,this.unevalVertices,this.unevalHeights),i(h),n.addTriangles(this.unevalTunnelTriangles,this.unevalVertices,this.unevalHeights),i(o),n.addTriangles(this.unevalTunnelTriangles,this.unevalVertices,[-.1]),i(r),this.maskSegments=el.simpleSegment(0,h.primitiveOffset,0,h.primitiveLength),this.depthSegments=el.simpleSegment(0,o.primitiveOffset,0,o.primitiveLength),this.renderableBridgeSegments=el.simpleSegment(0,s.primitiveOffset,0,s.primitiveLength),this.renderableTunnelSegments=el.simpleSegment(0,c.primitiveOffset,0,c.primitiveLength),this.shadowCasterSegments=el.simpleSegment(0,r.primitiveOffset,0,r.primitiveLength)}update(e,t,i,n,r,o,s,a){this.bridgeProgramConfigurations.updatePaintArrays(e,t,r,i,n,o,s,a),this.tunnelProgramConfigurations.updatePaintArrays(e,t,r,i,n,o,s,a)}upload(e){this.vertexBuffer||0===this.vertexPositions.length||0===this.vertexNormals.length||0===this.indexArray.length||(this.vertexBuffer=e.createVertexBuffer(this.vertexPositions,xu.members),this.vertexBufferNormal=e.createVertexBuffer(this.vertexNormals,bu.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.bridgeProgramConfigurations.upload(e),this.tunnelProgramConfigurations.upload(e))}destroy(){this.vertexBuffer&&(this.vertexBuffer.destroy(),this.vertexBufferNormal.destroy(),this.indexBuffer.destroy()),this.maskSegments&&(this.maskSegments.destroy(),this.depthSegments.destroy(),this.renderableBridgeSegments.destroy(),this.renderableTunnelSegments.destroy(),this.shadowCasterSegments.destroy()),this.bridgeProgramConfigurations.destroy(),this.tunnelProgramConfigurations.destroy()}populatePaintArrays(e,t,i,n,r){const o=(o,s)=>{for(let a=0;a<s.length-1;a++){const l=s[a].featureIndex,c=s[a+1].vertexStart,h=e.feature(l);o.populatePaintArrays(c,h,l,{},i,t,n,void 0,r)}};o(this.bridgeProgramConfigurations,this.bridgeFeatureSections),o(this.tunnelProgramConfigurations,this.tunnelFeatureSections)}computeVertexConnections(e,t,i,n,r){const o=new Map;for(let s=n;s<r;s++){const n=i[s],r=n.a,a=n.b,l=nd.computePosHash(e[r]),c=nd.computePosHash(e[a]);o.has(l)||o.set(l,{}),o.has(c)||o.set(c,{});const h=o.get(l),u=o.get(c);t[r]<=0&&t[a]<=0||(h.to=a,u.from=r)}return o}constructBridgeStructures(e,t,i,n,r,o){e.clearVertexLookup();const s=this.computeVertexConnections(t,i,n,r.min,r.max),a=1/o,l=.5*a,c=e=>w(t[e].x,t[e].y,i[e]*a),h=e=>{const i=s.get(nd.computePosHash(t[e])),n=i.from,r=i.to;if(!n||!r)return;const o=c(n),a=c(e),l=c(r),h=w(0,0,0);if(!j(o,a)){const e=U(v(),a,o);C(h,h,O(e,e))}if(!j(l,a)){const e=U(v(),l,a);C(h,h,O(e,e))}const u=G(h);return u>0?M(h,h,1/u):void 0};let u=Number.POSITIVE_INFINITY;this.sortSubarray(n,r.min,r.max,(e,t)=>e.featureInfo.featureIndex-t.featureInfo.featureIndex);for(let s=r.min;s<r.max;s++){const r=n[s];if(!r.featureInfo.guardRailEnabled)continue;const c=this.prepareEdgePoints(t,i,r,(e,t)=>e>t);if(null==c)continue;const d=c[0],p=c[1],f=w(d.coord.x,d.coord.y,a*d.height),m=w(p.coord.x,p.coord.y,a*p.height);if(j(f,m))continue;const g=U(v(),m,f);O(g,g);const _=e=>O(e,e),A=h(r.a)||g,y=h(r.b)||g,x=_(w(A[1],-A[0],0)),b=_(w(y[1],-y[0],0)),T=_(k(v(),x,A)),E=_(k(v(),b,y)),S=v(),I=[C(v(),f,M(S,U(S,x,T),l)),C(v(),f,M(S,C(S,x,T),l)),C(v(),f,M(S,T,l)),f],P=[C(v(),m,M(S,U(S,b,E),l)),C(v(),m,M(S,C(S,b,E),l)),C(v(),m,M(S,E,l)),m];u=this.addFeatureSection(r.featureInfo.featureIndex,u,this.bridgeFeatureSections,e);const[D,L]=e.addVertices(x,o,I[0],I[1]),[R,B]=e.addVertices(b,o,P[0],P[1]);e.addTriangles([D,L,R,L,B,R]);const[F,N]=e.addVertices(T,o,I[1],I[2]),[V,H]=e.addVertices(E,o,P[1],P[2]);e.addTriangles([F,N,V,N,H,V]);const[G,Z]=e.addVertices(z(x,x),o,I[2],I[3]),[W,q]=e.addVertices(z(b,b),o,P[2],P[3]);e.addTriangles([G,Z,W,Z,q,W])}this.bridgeFeatureSections.push({featureIndex:Number.POSITIVE_INFINITY,vertexStart:e.getVertexCount()})}constructTunnelStructures(e,t,i,n,r,o){e.clearVertexLookup();let s=Number.POSITIVE_INFINITY;const a=(e,t)=>e.featureInfo.featureIndex-t.featureInfo.featureIndex;this.sortSubarray(n,r.min,r.max,a),this.sortSubarray(n,o.min,o.max,a);const l=e=>O(e,e);for(let o=r.min;o<r.max;o++){const r=this.prepareEdgePoints(t,i,n[o],(e,t)=>e<t);if(null==r)continue;const[a,c]=r,h=l(w(-(c.coord.y-a.coord.y),c.coord.x-a.coord.x,0));s=this.addFeatureSection(n[o].featureInfo.featureIndex,s,this.tunnelFeatureSections,e),e.addQuad([a,c,{coord:c.coord,height:n[o].isTunnel?-.1:0},{coord:a.coord,height:n[o].isTunnel?-.1:0}],h)}for(let r=o.min;r<o.max;r++){const o=n[r];o.isTunnel&&([o.a,o.b]=[o.b,o.a]);const a=t[o.a],c=t[o.b],h=l(w(-(c.y-a.y),c.x-a.x,0));s=this.addFeatureSection(o.featureInfo.featureIndex,s,this.tunnelFeatureSections,e),e.addQuad([{coord:c,height:0},{coord:a,height:0},{coord:a,height:i[o.a]+4},{coord:c,height:i[o.b]+4}],h),e.addQuad([{coord:a,height:0},{coord:c,height:0},{coord:c,height:i[o.b]+4},{coord:a,height:i[o.a]+4}],h)}this.tunnelFeatureSections.push({featureIndex:Number.POSITIVE_INFINITY,vertexStart:e.getVertexCount()})}prepareEdgePoints(e,t,i,n){let r=t[i.a],o=t[i.b];const s=n(r,0),a=n(o,0);if(s&&a)return[{coord:e[i.a],height:r},{coord:e[i.b],height:o}];if(!s&&!a)return;const l=e[i.a].clone(),c=e[i.b].clone();if(s){if(!a){const e=o/(o-r);c.x=ci(c.x,l.x,e),c.y=ci(c.y,l.y,e),o=ci(o,r,e)}}else{const e=r/(r-o);l.x=ci(l.x,c.x,e),l.y=ci(l.y,c.y,e),r=ci(r,o,e)}return[{coord:l,height:r},{coord:c,height:o}]}prepareEdges(e,t){if(0===t.length)return;t.sort((e,t)=>e.hash===t.hash?t.polygonIdx-e.polygonIdx:t.hash>e.hash?1:-1);let i=0,n=0,r=0,o=t[i].polygonIdx;do{n++,(n===t.length||t[i].hash!==t[n].hash)&&((1==n-i||t[n-1].polygonIdx!==o)&&(r<i&&(t[r]=t[i],t[i]=null),t[r].type="none",r++),i=n,i!==t.length&&(o=t[i].polygonIdx))}while(i!==t.length);if(t.splice(r),0!==t.length&&0!==e.length){t.sort((e,t)=>e.portalHash<t.portalHash?1:-1);let i=0,n=0;for(;i!==t.length&&n!==e.length;){const r=t[i],o=e[n];r.portalHash>o.hash?i++:o.hash>r.portalHash?n++:(r.type=o.type,i++)}}}isOnBorder(e,t){return e<=0&&t<=0||e>=On&&t>=On}addFeatureSection(e,t,i,n){return e!==t&&(t=e,i.push({featureIndex:e,vertexStart:n.getVertexCount()}),n.clearVertexLookup()),t}sortSubarray(e,t,i,n){const r=e.slice(t,i);r.sort(n),e.splice(t,r.length,...r)}static computeEdgeHash(e,t){return(e.y===t.y&&e.x>t.x||e.y>t.y)&&([e,t]=[t,e]),BigInt(nd.computePosHash(e))<<32n|BigInt(nd.computePosHash(t))}static computePosHash(e){return((65535&e.x)<<16|65535&e.y)>>>0}}var rd,od={exports:{}},sd=(rd||(rd=1,function(e,t){!function(e){function t(e,t){return e>t?1:e<t?-1:0}var i=function(e,i){void 0===e&&(e=t),void 0===i&&(i=!1),this._compare=e,this._root=null,this._size=0,this._noDuplicates=!!i},n={size:{configurable:!0}};function r(e,t,i,n,o){var s=o-n;if(s>0){var a=n+Math.floor(s/2),l={key:t[a],data:i[a],parent:e};return l.left=r(l,t,i,n,a),l.right=r(l,t,i,a+1,o),l}return null}function o(e,t,i,n,r){if(!(i>=n)){for(var s=e[i+n>>1],a=i-1,l=n+1;;){do{a++}while(r(e[a],s)<0);do{l--}while(r(e[l],s)>0);if(a>=l)break;var c=e[a];e[a]=e[l],e[l]=c,c=t[a],t[a]=t[l],t[l]=c}o(e,t,i,l,r),o(e,t,l+1,n,r)}}i.prototype.rotateLeft=function(e){var t=e.right;t&&(e.right=t.left,t.left&&(t.left.parent=e),t.parent=e.parent),e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.left=e),e.parent=t},i.prototype.rotateRight=function(e){var t=e.left;t&&(e.left=t.right,t.right&&(t.right.parent=e),t.parent=e.parent),e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.right=e),e.parent=t},i.prototype._splay=function(e){for(;e.parent;){var t=e.parent;t.parent?t.left===e&&t.parent.left===t?(this.rotateRight(t.parent),this.rotateRight(t)):t.right===e&&t.parent.right===t?(this.rotateLeft(t.parent),this.rotateLeft(t)):t.left===e&&t.parent.right===t?(this.rotateRight(t),this.rotateLeft(t)):(this.rotateLeft(t),this.rotateRight(t)):t.left===e?this.rotateRight(t):this.rotateLeft(t)}},i.prototype.splay=function(e){for(var t,i,n,r,o;e.parent;)(i=(t=e.parent).parent)&&i.parent?((n=i.parent).left===i?n.left=e:n.right=e,e.parent=n):(e.parent=null,this._root=e),r=e.left,o=e.right,e===t.left?(i&&(i.left===t?(t.right?(i.left=t.right,i.left.parent=i):i.left=null,t.right=i,i.parent=t):(r?(i.right=r,r.parent=i):i.right=null,e.left=i,i.parent=e)),o?(t.left=o,o.parent=t):t.left=null,e.right=t,t.parent=e):(i&&(i.right===t?(t.left?(i.right=t.left,i.right.parent=i):i.right=null,t.left=i,i.parent=t):(o?(i.left=o,o.parent=i):i.left=null,e.right=i,i.parent=e)),r?(t.right=r,r.parent=t):t.right=null,e.left=t,t.parent=e)},i.prototype.replace=function(e,t){e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.parent=e.parent)},i.prototype.minNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.left;)e=e.left;return e},i.prototype.maxNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.right;)e=e.right;return e},i.prototype.insert=function(e,t){var i=this._root,n=null,r=this._compare;if(this._noDuplicates)for(;i;){if(n=i,0===r(i.key,e))return;i=r(i.key,e)<0?i.right:i.left}else for(;i;)n=i,i=r(i.key,e)<0?i.right:i.left;return i={key:e,data:t,left:null,right:null,parent:n},n?r(n.key,i.key)<0?n.right=i:n.left=i:this._root=i,this.splay(i),this._size++,i},i.prototype.find=function(e){for(var t=this._root,i=this._compare;t;){var n=i(t.key,e);if(n<0)t=t.right;else{if(!(n>0))return t;t=t.left}}return null},i.prototype.contains=function(e){for(var t=this._root,i=this._compare;t;){var n=i(e,t.key);if(0===n)return!0;t=n<0?t.left:t.right}return!1},i.prototype.remove=function(e){var t=this.find(e);if(!t)return!1;if(this.splay(t),t.left)if(t.right){var i=this.minNode(t.right);i.parent!==t&&(this.replace(i,i.right),i.right=t.right,i.right.parent=i),this.replace(t,i),i.left=t.left,i.left.parent=i}else this.replace(t,t.left);else this.replace(t,t.right);return this._size--,!0},i.prototype.removeNode=function(e){if(!e)return!1;if(this.splay(e),e.left)if(e.right){var t=this.minNode(e.right);t.parent!==e&&(this.replace(t,t.right),t.right=e.right,t.right.parent=t),this.replace(e,t),t.left=e.left,t.left.parent=t}else this.replace(e,e.left);else this.replace(e,e.right);return this._size--,!0},i.prototype.erase=function(e){var t=this.find(e);if(t){this.splay(t);var i=t.left,n=t.right,r=null;i&&(i.parent=null,r=this.maxNode(i),this.splay(r),this._root=r),n&&(i?r.right=n:this._root=n,n.parent=r),this._size--}},i.prototype.pop=function(){var e=this._root,t=null;if(e){for(;e.left;)e=e.left;t={key:e.key,data:e.data},this.remove(e.key)}return t},i.prototype.next=function(e){var t=e;if(t)if(t.right)for(t=t.right;t&&t.left;)t=t.left;else for(t=e.parent;t&&t.right===e;)e=t,t=t.parent;return t},i.prototype.prev=function(e){var t=e;if(t)if(t.left)for(t=t.left;t&&t.right;)t=t.right;else for(t=e.parent;t&&t.left===e;)e=t,t=t.parent;return t},i.prototype.forEach=function(e){for(var t=this._root,i=[],n=!1,r=0;!n;)t?(i.push(t),t=t.left):i.length>0?(e(t=i.pop(),r++),t=t.right):n=!0;return this},i.prototype.range=function(e,t,i,n){for(var r=[],o=this._compare,s=this._root;0!==r.length||s;)if(s)r.push(s),s=s.left;else{if(o((s=r.pop()).key,t)>0)break;if(o(s.key,e)>=0&&i.call(n,s))return this;s=s.right}return this},i.prototype.keys=function(){for(var e=this._root,t=[],i=[],n=!1;!n;)e?(t.push(e),e=e.left):t.length>0?(e=t.pop(),i.push(e.key),e=e.right):n=!0;return i},i.prototype.values=function(){for(var e=this._root,t=[],i=[],n=!1;!n;)e?(t.push(e),e=e.left):t.length>0?(e=t.pop(),i.push(e.data),e=e.right):n=!0;return i},i.prototype.at=function(e){for(var t=this._root,i=[],n=!1,r=0;!n;)if(t)i.push(t),t=t.left;else if(i.length>0){if(t=i.pop(),r===e)return t;r++,t=t.right}else n=!0;return null},i.prototype.load=function(e,t,i){if(void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===i&&(i=!1),0!==this._size)throw new Error("bulk-load: tree is not empty");var n=e.length;return i&&o(e,t,0,n-1,this._compare),this._root=r(null,e,t,0,n),this._size=n,this},i.prototype.min=function(){var e=this.minNode(this._root);return e?e.key:null},i.prototype.max=function(){var e=this.maxNode(this._root);return e?e.key:null},i.prototype.isEmpty=function(){return null===this._root},n.size.get=function(){return this._size},i.createTree=function(e,t,n,r,o){return new i(n,o).load(e,t,r)},Object.defineProperties(i.prototype,n);var s=0,a=1,l=2,c=3,h=0,u=1,d=2,p=3;function f(e,t,i){null===t?(e.inOut=!1,e.otherInOut=!0):(e.isSubject===t.isSubject?(e.inOut=!t.inOut,e.otherInOut=t.otherInOut):(e.inOut=!t.otherInOut,e.otherInOut=t.isVertical()?!t.inOut:t.inOut),t&&(e.prevInResult=!m(t,i)||t.isVertical()?t.prevInResult:t));var n=m(e,i);e.resultTransition=n?function(e,t){var i,n=!e.inOut,r=!e.otherInOut;switch(t){case h:i=n&&r;break;case u:i=n||r;break;case p:i=n^r;break;case d:i=e.isSubject?n&&!r:r&&!n}return i?1:-1}(e,i):0}function m(e,t){switch(e.type){case s:switch(t){case h:return!e.otherInOut;case u:return e.otherInOut;case d:return e.isSubject&&e.otherInOut||!e.isSubject&&!e.otherInOut;case p:return!0}break;case l:return t===h||t===u;case c:return t===d;case a:return!1}return!1}var g=function(e,t,i,n,r){this.left=t,this.point=e,this.otherEvent=i,this.isSubject=n,this.type=r||s,this.inOut=!1,this.otherInOut=!1,this.prevInResult=null,this.resultTransition=0,this.otherPos=-1,this.outputContourId=-1,this.isExteriorRing=!0},_={inResult:{configurable:!0}};function A(e,t){return e[0]===t[0]&&e[1]===t[1]}g.prototype.isBelow=function(e){var t=this.point,i=this.otherEvent.point;return this.left?(t[0]-e[0])*(i[1]-e[1])-(i[0]-e[0])*(t[1]-e[1])>0:(i[0]-e[0])*(t[1]-e[1])-(t[0]-e[0])*(i[1]-e[1])>0},g.prototype.isAbove=function(e){return!this.isBelow(e)},g.prototype.isVertical=function(){return this.point[0]===this.otherEvent.point[0]},_.inResult.get=function(){return 0!==this.resultTransition},g.prototype.clone=function(){var e=new g(this.point,this.left,this.otherEvent,this.isSubject,this.type);return e.contourId=this.contourId,e.resultTransition=this.resultTransition,e.prevInResult=this.prevInResult,e.isExteriorRing=this.isExteriorRing,e.inOut=this.inOut,e.otherInOut=this.otherInOut,e},Object.defineProperties(g.prototype,_);var y=11102230246251565e-32,v=134217729,x=(3+8*y)*y;function b(e,t,i,n,r){var o,s,a,l,c=t[0],h=n[0],u=0,d=0;h>c==h>-c?(o=c,c=t[++u]):(o=h,h=n[++d]);var p=0;if(u<e&&d<i)for(h>c==h>-c?(a=o-((s=c+o)-c),c=t[++u]):(a=o-((s=h+o)-h),h=n[++d]),o=s,0!==a&&(r[p++]=a);u<e&&d<i;)h>c==h>-c?(a=o-((s=o+c)-(l=s-o))+(c-l),c=t[++u]):(a=o-((s=o+h)-(l=s-o))+(h-l),h=n[++d]),o=s,0!==a&&(r[p++]=a);for(;u<e;)a=o-((s=o+c)-(l=s-o))+(c-l),c=t[++u],o=s,0!==a&&(r[p++]=a);for(;d<i;)a=o-((s=o+h)-(l=s-o))+(h-l),h=n[++d],o=s,0!==a&&(r[p++]=a);return 0===o&&0!==p||(r[p++]=o),p}function w(e){return new Float64Array(e)}var C=33306690738754716e-32,T=22204460492503146e-32,E=11093356479670487e-47,S=w(4),I=w(8),M=w(12),P=w(16),D=w(4);function L(e,t,i){var n=function(e,t,i,n,r,o){var s=(t-o)*(i-r),a=(e-r)*(n-o),l=s-a;if(0===s||0===a||s>0!=a>0)return l;var c=Math.abs(s+a);return Math.abs(l)>=C*c?l:-function(e,t,i,n,r,o,s){var a,l,c,h,u,d,p,f,m,g,_,A,y,w,C,L,z,O,R=e-r,k=i-r,B=t-o,F=n-o;S[0]=(C=(f=R-(p=(d=v*R)-(d-R)))*(g=F-(m=(d=v*F)-(d-F)))-((w=R*F)-p*m-f*m-p*g))-((_=C-(z=(f=B-(p=(d=v*B)-(d-B)))*(g=k-(m=(d=v*k)-(d-k)))-((L=B*k)-p*m-f*m-p*g)))+(u=C-_))+(u-z),S[1]=(y=w-((A=w+_)-(u=A-w))+(_-u))-((_=y-L)+(u=y-_))+(u-L),S[2]=A-((O=A+_)-(u=O-A))+(_-u),S[3]=O;var N=function(e,t){for(var i=t[0],n=1;n<4;n++)i+=t[n];return i}(0,S),V=T*s;if(N>=V||-N>=V)return N;if(a=e-(R+(u=e-R))+(u-r),c=i-(k+(u=i-k))+(u-r),l=t-(B+(u=t-B))+(u-o),h=n-(F+(u=n-F))+(u-o),0===a&&0===l&&0===c&&0===h)return N;if(V=E*s+x*Math.abs(N),(N+=R*h+F*a-(B*c+k*l))>=V||-N>=V)return N;D[0]=(C=(f=a-(p=(d=v*a)-(d-a)))*(g=F-(m=(d=v*F)-(d-F)))-((w=a*F)-p*m-f*m-p*g))-((_=C-(z=(f=l-(p=(d=v*l)-(d-l)))*(g=k-(m=(d=v*k)-(d-k)))-((L=l*k)-p*m-f*m-p*g)))+(u=C-_))+(u-z),D[1]=(y=w-((A=w+_)-(u=A-w))+(_-u))-((_=y-L)+(u=y-_))+(u-L),D[2]=A-((O=A+_)-(u=O-A))+(_-u),D[3]=O;var j=b(4,S,4,D,I);D[0]=(C=(f=R-(p=(d=v*R)-(d-R)))*(g=h-(m=(d=v*h)-(d-h)))-((w=R*h)-p*m-f*m-p*g))-((_=C-(z=(f=B-(p=(d=v*B)-(d-B)))*(g=c-(m=(d=v*c)-(d-c)))-((L=B*c)-p*m-f*m-p*g)))+(u=C-_))+(u-z),D[1]=(y=w-((A=w+_)-(u=A-w))+(_-u))-((_=y-L)+(u=y-_))+(u-L),D[2]=A-((O=A+_)-(u=O-A))+(_-u),D[3]=O;var U=b(j,I,4,D,M);D[0]=(C=(f=a-(p=(d=v*a)-(d-a)))*(g=h-(m=(d=v*h)-(d-h)))-((w=a*h)-p*m-f*m-p*g))-((_=C-(z=(f=l-(p=(d=v*l)-(d-l)))*(g=c-(m=(d=v*c)-(d-c)))-((L=l*c)-p*m-f*m-p*g)))+(u=C-_))+(u-z),D[1]=(y=w-((A=w+_)-(u=A-w))+(_-u))-((_=y-L)+(u=y-_))+(u-L),D[2]=A-((O=A+_)-(u=O-A))+(_-u),D[3]=O;var H=b(U,M,4,D,P);return P[H-1]}(e,t,i,n,r,o,c)}(e[0],e[1],t[0],t[1],i[0],i[1]);return n>0?-1:n<0?1:0}function z(e,t){var i=e.point,n=t.point;return i[0]>n[0]?1:i[0]<n[0]?-1:i[1]!==n[1]?i[1]>n[1]?1:-1:function(e,t,i){return e.left!==t.left?e.left?1:-1:0!==L(i,e.otherEvent.point,t.otherEvent.point)?e.isBelow(t.otherEvent.point)?-1:1:!e.isSubject&&t.isSubject?1:-1}(e,t,i)}function O(e,t,i){var n=new g(t,!1,e,e.isSubject),r=new g(t,!0,e.otherEvent,e.isSubject);return A(e.point,e.otherEvent.point)&&console.warn("what is that, a collapsed segment?",e),n.contourId=r.contourId=e.contourId,z(r,e.otherEvent)>0&&(e.otherEvent.left=!0,r.left=!1),e.otherEvent.otherEvent=r,e.otherEvent=n,i.push(r),i.push(n),i}function R(e,t){return e[0]*t[1]-e[1]*t[0]}function k(e,t){return e[0]*t[0]+e[1]*t[1]}function B(e,t,i){var n=function(e,t,i,n){var r=[t[0]-e[0],t[1]-e[1]],o=[n[0]-i[0],n[1]-i[1]];function s(e,t,i){return[e[0]+t*i[0],e[1]+t*i[1]]}var a=[i[0]-e[0],i[1]-e[1]],l=R(r,o),c=l*l,h=k(r,r);if(c>0){var u=R(a,o)/l;if(u<0||u>1)return null;var d=R(a,r)/l;return d<0||d>1?null:0===u||1===u?[s(e,u,r)]:0===d||1===d?[s(i,d,o)]:[s(e,u,r)]}if((c=(l=R(a,r))*l)>0)return null;var p=k(r,a)/h,f=p+k(r,o)/h,m=Math.min(p,f),g=Math.max(p,f);return m<=1&&g>=0?1===m?[s(e,m>0?m:0,r)]:0===g?[s(e,g<1?g:1,r)]:[s(e,m>0?m:0,r),s(e,g<1?g:1,r)]:null}(e.point,e.otherEvent.point,t.point,t.otherEvent.point),r=n?n.length:0;if(0===r)return 0;if(1===r&&(A(e.point,t.point)||A(e.otherEvent.point,t.otherEvent.point)))return 0;if(2===r&&e.isSubject===t.isSubject)return 0;if(1===r)return A(e.point,n[0])||A(e.otherEvent.point,n[0])||O(e,n[0],i),A(t.point,n[0])||A(t.otherEvent.point,n[0])||O(t,n[0],i),1;var o=[],s=!1,h=!1;return A(e.point,t.point)?s=!0:1===z(e,t)?o.push(t,e):o.push(e,t),A(e.otherEvent.point,t.otherEvent.point)?h=!0:1===z(e.otherEvent,t.otherEvent)?o.push(t.otherEvent,e.otherEvent):o.push(e.otherEvent,t.otherEvent),s&&h||s?(t.type=a,e.type=t.inOut===e.inOut?l:c,s&&!h&&O(o[1].otherEvent,o[0].point,i),2):h?(O(o[0],o[1].point,i),3):o[0]!==o[3].otherEvent?(O(o[0],o[1].point,i),O(o[1],o[2].point,i),3):(O(o[0],o[1].point,i),O(o[3].otherEvent,o[2].point,i),3)}function F(e,t){if(e===t)return 0;if(0!==L(e.point,e.otherEvent.point,t.point)||0!==L(e.point,e.otherEvent.point,t.otherEvent.point))return A(e.point,t.point)?e.isBelow(t.otherEvent.point)?-1:1:e.point[0]===t.point[0]?e.point[1]<t.point[1]?-1:1:1===z(e,t)?t.isAbove(e.point)?-1:1:e.isBelow(t.point)?-1:1;if(e.isSubject!==t.isSubject)return e.isSubject?-1:1;var i=e.point,n=t.point;return i[0]===n[0]&&i[1]===n[1]?(i=e.otherEvent.point)[0]===(n=t.otherEvent.point)[0]&&i[1]===n[1]?0:e.contourId>t.contourId?1:-1:1===z(e,t)?1:-1}var N=function(){this.points=[],this.holeIds=[],this.holeOf=null,this.depth=null};function V(e,t,i,n){var r,o=e+1,s=t[e].point,a=t.length;for(o<a&&(r=t[o].point);o<a&&r[0]===s[0]&&r[1]===s[1];){if(!i[o])return o;++o<a&&(r=t[o].point)}for(o=e-1;i[o]&&o>n;)o--;return o}N.prototype.isExterior=function(){return null==this.holeOf};var j=H,U=H;function H(e,t){if(!(this instanceof H))return new H(e,t);if(this.data=e||[],this.length=this.data.length,this.compare=t||G,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}function G(e,t){return e<t?-1:e>t?1:0}H.prototype={push:function(e){this.data.push(e),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var e=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),e}},peek:function(){return this.data[0]},_up:function(e){for(var t=this.data,i=this.compare,n=t[e];e>0;){var r=e-1>>1,o=t[r];if(i(n,o)>=0)break;t[e]=o,e=r}t[e]=n},_down:function(e){for(var t=this.data,i=this.compare,n=this.length>>1,r=t[e];e<n;){var o=1+(e<<1),s=o+1,a=t[o];if(s<this.length&&i(t[s],a)<0&&(o=s,a=t[s]),i(a,r)>=0)break;t[e]=a,e=o}t[e]=r}},j.default=U;var Z=Math.max,W=Math.min,q=0;function X(e,t,i,n,r,o){var s,a,l,c,h,u;for(s=0,a=e.length-1;s<a;s++)if(c=e[s+1],h=new g(l=e[s],!1,void 0,t),u=new g(c,!1,h,t),h.otherEvent=u,l[0]!==c[0]||l[1]!==c[1]){h.contourId=u.contourId=i,o||(h.isExteriorRing=!1,u.isExteriorRing=!1),z(h,u)>0?u.left=!0:h.left=!0;var d=l[0],p=l[1];r[0]=W(r[0],d),r[1]=W(r[1],p),r[2]=Z(r[2],d),r[3]=Z(r[3],p),n.push(h),n.push(u)}}var $=[];function Y(e,t,n){"number"==typeof e[0][0][0]&&(e=[e]),"number"==typeof t[0][0][0]&&(t=[t]);var r=function(e,t,i){var n=null;return e.length*t.length==0&&(i===h?n=$:i===d?n=e:i!==u&&i!==p||(n=0===e.length?t:e)),n}(e,t,n);if(r)return r===$?null:r;var o=[1/0,1/0,-1/0,-1/0],s=[1/0,1/0,-1/0,-1/0],a=function(e,t,i,n,r){var o,s,a,l,c,h,u=new j(null,z);for(a=0,l=e.length;a<l;a++)for(c=0,h=(o=e[a]).length;c<h;c++)(s=0===c)&&q++,X(o[c],!0,q,u,i,s);for(a=0,l=t.length;a<l;a++)for(c=0,h=(o=t[a]).length;c<h;c++)s=0===c,r===d&&(s=!1),s&&q++,X(o[c],!1,q,u,n,s);return u}(e,t,o,s,n);if(r=function(e,t,i,n,r){var o=null;return(i[0]>n[2]||n[0]>i[2]||i[1]>n[3]||n[1]>i[3])&&(r===h?o=$:r===d?o=e:r!==u&&r!==p||(o=e.concat(t))),o}(e,t,o,s,n))return r===$?null:r;for(var l=function(e){var t,i,n=function(e){var t,i,n,r,o=[];for(i=0,n=e.length;i<n;i++)((t=e[i]).left&&t.inResult||!t.left&&t.otherEvent.inResult)&&o.push(t);for(var s=!1;!s;)for(s=!0,i=0,n=o.length;i<n;i++)i+1<n&&1===z(o[i],o[i+1])&&(r=o[i],o[i]=o[i+1],o[i+1]=r,s=!1);for(i=0,n=o.length;i<n;i++)(t=o[i]).otherPos=i;for(i=0,n=o.length;i<n;i++)(t=o[i]).left||(r=t.otherPos,t.otherPos=t.otherEvent.otherPos,t.otherEvent.otherPos=r);return o}(e),r={},o=[],s=function(){if(!r[t]){var e=o.length,i=function(e,t,i){var n=new N;if(null!=e.prevInResult){var r=e.prevInResult,o=r.outputContourId;if(r.resultTransition>0){var s=t[o];if(null!=s.holeOf){var a=s.holeOf;t[a].holeIds.push(i),n.holeOf=a,n.depth=t[o].depth}else t[o].holeIds.push(i),n.holeOf=o,n.depth=t[o].depth+1}else n.holeOf=null,n.depth=t[o].depth}else n.holeOf=null,n.depth=0;return n}(n[t],o,e),s=function(t){r[t]=!0,t<n.length&&n[t]&&(n[t].outputContourId=e)},a=t,l=t;for(i.points.push(n[t].point);s(a),s(a=n[a].otherPos),i.points.push(n[a].point),!((a=V(a,n,r,l))==l||a>=n.length)&&n[a];);o.push(i)}};for(t=0,i=n.length;t<i;t++)s();return o}(function(e,t,n,r,o,s){for(var a,l,c,u=new i(F),p=[],m=Math.min(r[2],o[2]);0!==e.length;){var g=e.pop();if(p.push(g),s===h&&g.point[0]>m||s===d&&g.point[0]>r[2])break;if(g.left){l=a=u.insert(g),a=a!==(c=u.minNode())?u.prev(a):null,l=u.next(l);var _=a?a.key:null;if(f(g,_,s),l&&2===B(g,l.key,e)&&(f(g,_,s),f(l.key,g,s)),a&&2===B(a.key,g,e)){var A=a;f(_,(A=A!==c?u.prev(A):null)?A.key:null,s),f(g,_,s)}}else l=a=u.find(g=g.otherEvent),a&&l&&(a=a!==c?u.prev(a):null,l=u.next(l),u.remove(g),l&&a&&B(a.key,l.key,e))}return p}(a,0,0,o,s,n)),c=[],m=0;m<l.length;m++){var g=l[m];if(g.isExterior()){for(var _=[g.points],A=0;A<g.holeIds.length;A++)_.push(l[g.holeIds[A]].points);c.push(_)}}return c}var Q={UNION:u,DIFFERENCE:d,INTERSECTION:h,XOR:p};e.diff=function(e,t){return Y(e,t,d)},e.intersection=function(e,t){return Y(e,t,h)},e.operations=Q,e.union=function(e,t){return Y(e,t,u)},e.xor=function(e,t){return Y(e,t,p)},Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,od.exports)),od.exports);
|
|
25
25
|
/**
|
|
26
26
|
* martinez v0.7.4
|
|
27
27
|
* Martinez polygon clipping algorithm, does boolean operation on polygons (multipolygons, polygons with holes etc): intersection, union, difference, xor
|