!function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["./rolldown-runtime-legacy-Djb2rrqm.js","./index-legacy-Bbj6l0yZ.js","./utils-CjIvvA5e-legacy-BArgSH63.js","./maplibre-CUYkxr-D-legacy-CdWVgCz2.js"],function(e,r){var n,i,o,l,c,u,y,a;function s(e,t,r){switch(e){case"fill":return{"fill-color":t,"fill-opacity":.25};case"line":return{"line-color":t,"line-width":"LineString"===r?6:2};default:return{}}}return e("default",function({sources:e}){let r=(0,y.useMemo)(()=>Array.isArray(e)&&0!==e.length?e.map(e=>t(t({},e),{},{geoJson:e.geometry?l(e.geometry,e.type):null})):[],[e]);return 0===(null==r?void 0:r.length)?null:(0,a.jsx)(a.Fragment,{children:null==r?void 0:r.map(e=>(0,a.jsx)("div",{children:e.geoJson&&(0,a.jsx)(u,{id:e.key,type:"geojson",data:e.geoJson,children:e.layer&&(Array.isArray(e.layer)?e.layer.map((t,r)=>(0,a.jsx)(c,{id:`${e.key}-${r}`,type:t.type,paint:s(t.type,t.color,e.type)},`${e.key}-${r}`)):(0,a.jsx)(c,{id:e.key,type:e.layer.type,paint:s(e.layer.type,e.layer.color,e.type)}))},e.key)},e.key))})}),{setters:[function(e){n=e.a},function(e){i=e.St,o=e.q},function(e){l=e.t},function(e){c=e.a,u=e.i}],execute:function(){y=n(i(),1),a=o()}}})}();
//# sourceMappingURL=Maptiler-BQliPE7n-legacy-FaYxD5rQ.js.map