@performant-software/geospatial 3.1.18-beta.1 → 3.1.18-beta.10

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.
Files changed (126) hide show
  1. package/dist/index.cjs13.js +1 -1
  2. package/dist/index.cjs13.js.map +1 -1
  3. package/dist/index.cjs15.js +1 -1
  4. package/dist/index.cjs191.js +1 -1
  5. package/dist/index.cjs2.js +1 -1
  6. package/dist/index.cjs2.js.map +1 -1
  7. package/dist/index.cjs205.js +1 -1
  8. package/dist/index.cjs215.js +1 -1
  9. package/dist/index.cjs216.js +1 -1
  10. package/dist/index.cjs217.js +1 -1
  11. package/dist/index.cjs235.js +1 -1
  12. package/dist/index.cjs242.js +1 -1
  13. package/dist/index.cjs242.js.map +1 -1
  14. package/dist/index.cjs243.js +1 -1
  15. package/dist/index.cjs243.js.map +1 -1
  16. package/dist/index.cjs244.js +1 -1
  17. package/dist/index.cjs244.js.map +1 -1
  18. package/dist/index.cjs245.js +1 -1
  19. package/dist/index.cjs245.js.map +1 -1
  20. package/dist/index.cjs246.js +1 -1
  21. package/dist/index.cjs246.js.map +1 -1
  22. package/dist/index.cjs252.js +1 -1
  23. package/dist/index.cjs254.js +1 -1
  24. package/dist/index.cjs258.js +1 -1
  25. package/dist/index.cjs259.js +1 -1
  26. package/dist/index.cjs262.js +1 -1
  27. package/dist/index.cjs265.js +1 -1
  28. package/dist/index.cjs265.js.map +1 -1
  29. package/dist/index.cjs266.js +1 -1
  30. package/dist/index.cjs266.js.map +1 -1
  31. package/dist/index.cjs267.js +1 -1
  32. package/dist/index.cjs267.js.map +1 -1
  33. package/dist/index.cjs268.js +1 -1
  34. package/dist/index.cjs268.js.map +1 -1
  35. package/dist/index.cjs29.js +1 -1
  36. package/dist/index.cjs32.js +1 -1
  37. package/dist/index.cjs34.js +1 -1
  38. package/dist/index.cjs35.js +1 -1
  39. package/dist/index.cjs39.js +1 -1
  40. package/dist/index.cjs73.js +1 -1
  41. package/dist/index.cjs73.js.map +1 -1
  42. package/dist/index.cjs74.js +1 -1
  43. package/dist/index.cjs75.js +9 -1
  44. package/dist/index.cjs75.js.map +1 -1
  45. package/dist/index.cjs76.js +17 -1
  46. package/dist/index.cjs76.js.map +1 -1
  47. package/dist/index.cjs77.js +743 -1
  48. package/dist/index.cjs77.js.map +1 -1
  49. package/dist/index.cjs78.js +1 -9
  50. package/dist/index.cjs78.js.map +1 -1
  51. package/dist/index.cjs79.js +1 -17
  52. package/dist/index.cjs79.js.map +1 -1
  53. package/dist/index.cjs80.js +1 -1
  54. package/dist/index.cjs80.js.map +1 -1
  55. package/dist/index.cjs81.js +1 -1
  56. package/dist/index.cjs81.js.map +1 -1
  57. package/dist/index.cjs82.js +1 -743
  58. package/dist/index.cjs82.js.map +1 -1
  59. package/dist/index.cjs83.js +1 -1
  60. package/dist/index.cjs83.js.map +1 -1
  61. package/dist/index.es13.js +62 -49
  62. package/dist/index.es13.js.map +1 -1
  63. package/dist/index.es15.js +1 -1
  64. package/dist/index.es191.js +1 -1
  65. package/dist/index.es2.js +7 -7
  66. package/dist/index.es2.js.map +1 -1
  67. package/dist/index.es205.js +2 -2
  68. package/dist/index.es215.js +1 -1
  69. package/dist/index.es216.js +1 -1
  70. package/dist/index.es217.js +1 -1
  71. package/dist/index.es235.js +1 -1
  72. package/dist/index.es242.js +3 -21
  73. package/dist/index.es242.js.map +1 -1
  74. package/dist/index.es243.js +20 -22
  75. package/dist/index.es243.js.map +1 -1
  76. package/dist/index.es244.js +22 -7
  77. package/dist/index.es244.js.map +1 -1
  78. package/dist/index.es245.js +6 -3
  79. package/dist/index.es245.js.map +1 -1
  80. package/dist/index.es246.js +6 -4
  81. package/dist/index.es246.js.map +1 -1
  82. package/dist/index.es252.js +1 -1
  83. package/dist/index.es254.js +1 -1
  84. package/dist/index.es258.js +1 -1
  85. package/dist/index.es259.js +2 -2
  86. package/dist/index.es262.js +1 -1
  87. package/dist/index.es265.js +2 -69
  88. package/dist/index.es265.js.map +1 -1
  89. package/dist/index.es266.js +15 -4
  90. package/dist/index.es266.js.map +1 -1
  91. package/dist/index.es267.js +4 -15
  92. package/dist/index.es267.js.map +1 -1
  93. package/dist/index.es268.js +69 -2
  94. package/dist/index.es268.js.map +1 -1
  95. package/dist/index.es29.js +2 -2
  96. package/dist/index.es32.js +2 -2
  97. package/dist/index.es34.js +2 -2
  98. package/dist/index.es35.js +2 -2
  99. package/dist/index.es39.js +1 -1
  100. package/dist/index.es73.js +7 -1992
  101. package/dist/index.es73.js.map +1 -1
  102. package/dist/index.es74.js +2 -6
  103. package/dist/index.es74.js.map +1 -1
  104. package/dist/index.es75.js +26 -2
  105. package/dist/index.es75.js.map +1 -1
  106. package/dist/index.es76.js +588 -7
  107. package/dist/index.es76.js.map +1 -1
  108. package/dist/index.es77.js +21352 -2
  109. package/dist/index.es77.js.map +1 -1
  110. package/dist/index.es78.js +2 -26
  111. package/dist/index.es78.js.map +1 -1
  112. package/dist/index.es79.js +1960 -556
  113. package/dist/index.es79.js.map +1 -1
  114. package/dist/index.es80.js +5 -105
  115. package/dist/index.es80.js.map +1 -1
  116. package/dist/index.es81.js +2 -10
  117. package/dist/index.es81.js.map +1 -1
  118. package/dist/index.es82.js +104 -21350
  119. package/dist/index.es82.js.map +1 -1
  120. package/dist/index.es83.js +10 -2
  121. package/dist/index.es83.js.map +1 -1
  122. package/package.json +1 -1
  123. package/src/components/CertaintyLayer.js +10 -4
  124. package/src/utils/Map.js +35 -36
  125. package/types/components/CertaintyLayer.js.flow +10 -4
  126. package/types/utils/Map.js.flow +35 -36
@@ -1,2 +1,2 @@
1
- "use strict";const y=require("./index.cjs68.js"),s=require("./index.cjs69.js"),d=require("./index.cjs70.js"),p=require("./index.cjs71.js"),g=require("./index.cjs72.js"),u=require("./index.cjs67.js"),a=require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");require("./index.cjs50.js");require("./index.cjs51.js");require("./index.cjs52.js");require("./index.cjs53.js");require("./index.cjs54.js");require("./index.cjs55.js");require("./index.cjs56.js");require("./index.cjs57.js");require("./index.cjs58.js");require("./index.cjs59.js");require("./index.cjs60.js");require("./index.cjs61.js");require("./index.cjs62.js");require("./index.cjs63.js");const m=-90,x=90,C=-180,L=180,n=(e,i)=>g.default(e.coordinates,i,{units:"kilometers",steps:32}),l=(e,i)=>{const r=i(e);if(r){if(e.geometry?.type==="FeatureCollection"){for(const t of e.geometry.features)if(t.geometry?.type==="Point")return n(t.geometry,r)}else if(e.geometry?.type==="GeometryCollection"){for(const t of e.geometry.geometries)if(t.type==="Point")return n(t,r)}else if(e.geometry?.type==="Point")return n(e.geometry,r)}},_=(e,i)=>{const r=[];for(const t of e){const o=l(t,i);o&&r.push(o)}return u.featureCollection(r)},b=(e,i,r={})=>{const t=new y.WarpedMapLayer(i);e.addLayer(t),r.url?t.addGeoreferenceAnnotationByUrl(r.url):r.manifest&&t.addGeoreferenceAnnotation(r.manifest),r.opacity&&t.setOpacity(r.opacity)},M=(e,i=null)=>{const r=s.bbox(e);if(!c(r))return null;const t=d.bboxPolygon(r);let o;return i?o=p.buffer(t,i,{units:"miles"}):o=t,s.bbox(o)},I=(e,i)=>e&&e.removeLayer(i),v=(e,i,r,t)=>{const o={id:e.record_id,ccode:[],title:e.name,uuid:e.uuid,record_id:e.record_id,name:e.name,names:e.names?.map(q=>({toponym:q})),type:e.type,items:[i],url:e.url,originalProperties:t||{}},f=parseInt(e.record_id,10);return u.feature(r,o,{id:f})},A=e=>u.featureCollection(e),c=e=>a.every(e,a.isFinite),B=e=>{let i=!1;if(e){const[r,t]=e;i=r>=m&&r<=x&&t>=C&&t<=L}return i},F={addGeoreferenceLayer:b,getCertaintyCircle:l,getCertaintyCircleFeatureCollection:_,getBoundingBox:M,removeLayer:I,toFeature:v,toFeatureCollection:A,validateBoundingBox:c,validateCoordinates:B};module.exports=F;
1
+ "use strict";const y=require("./index.cjs68.js"),s=require("./index.cjs69.js"),d=require("./index.cjs70.js"),f=require("./index.cjs71.js"),p=require("./index.cjs72.js"),a=require("./index.cjs67.js"),l=require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");require("./index.cjs50.js");require("./index.cjs51.js");require("./index.cjs52.js");require("./index.cjs53.js");require("./index.cjs54.js");require("./index.cjs55.js");require("./index.cjs56.js");require("./index.cjs57.js");require("./index.cjs58.js");require("./index.cjs59.js");require("./index.cjs60.js");require("./index.cjs61.js");require("./index.cjs62.js");require("./index.cjs63.js");const g=-90,m=90,x=-180,L=180,u=(e,i)=>p.default(e.coordinates,i,{units:"kilometers",steps:32}),_=(e,i)=>{if(e.geometry?.type==="FeatureCollection"){let r=[];for(const t of e.geometry.features)if(t.geometry?.type==="Point"){const{geometry:n,type:o}=u(t.geometry,i);r.push({...t,geometry:n,type:o})}return{...e,geometry:{type:"GeometryCollection",geometries:r}}}else{if(e?.type==="GeometryCollection")return{...e,geometries:e.geometries.map(r=>r.type==="Point"?u(r,i):r)};if(e.geometry?.type==="Point"){const{geometry:r,type:t}=u(e.geometry,i);return{...e,geometry:r,type:t}}}return e},b=(e,i,r={})=>{const t=new y.WarpedMapLayer(i);e.addLayer(t),r.url?t.addGeoreferenceAnnotationByUrl(r.url):r.manifest&&t.addGeoreferenceAnnotation(r.manifest),r.opacity&&t.setOpacity(r.opacity)},C=(e,i=null)=>{const r=s.bbox(e);if(!c(r))return null;const t=d.bboxPolygon(r);let n;return i?n=f.buffer(t,i,{units:"miles"}):n=t,s.bbox(n)},M=(e,i)=>e&&e.removeLayer(i),G=(e,i,r,t)=>{const n={id:e.record_id,ccode:[],title:e.name,uuid:e.uuid,record_id:e.record_id,name:e.name,names:e.names?.map(q=>({toponym:q})),type:e.type,items:[i],url:e.url,originalProperties:t||{}},o=parseInt(e.record_id,10);return a.feature(r,n,{id:o})},I=e=>a.featureCollection(e),c=e=>l.every(e,l.isFinite),v=e=>{let i=!1;if(e){const[r,t]=e;i=r>=g&&r<=m&&t>=x&&t<=L}return i},A={addGeoreferenceLayer:b,toCertaintyCircle:_,getBoundingBox:C,removeLayer:M,toFeature:G,toFeatureCollection:I,validateBoundingBox:c,validateCoordinates:v};module.exports=A;
2
2
  //# sourceMappingURL=index.cjs13.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs13.js","sources":["../src/utils/Map.js"],"sourcesContent":["// @flow\n\nimport { WarpedMapLayer } from '@allmaps/maplibre';\nimport {\n bbox,\n bboxPolygon,\n buffer,\n feature,\n featureCollection\n} from '@turf/turf';\nimport _ from 'underscore';\nimport circle from '@turf/circle';\n\nconst MIN_LATITUDE = -90;\nconst MAX_LATITUDE = 90;\nconst MIN_LONGITUDE = -180;\nconst MAX_LONGITUDE = 180;\n\n/**\n * Returns a GeoJSON circle feature with the given center point and radius.\n * @param point - The center point of the circle.\n * @param radius - The radius of the circle in kilometers.\n * @returns {Feature<Geometry, Properties>} - The GeoJSON circle feature.\n */\nconst buildCircle = (point, radius) => (\n circle(point.coordinates, radius, { units: 'kilometers', steps: 32 })\n);\n\nconst getCertaintyCircle = (item, getCertaintyRadius: (item: any) => number | undefined) => {\n const certaintyRadius = getCertaintyRadius(item);\n\n if (certaintyRadius) {\n if (item.geometry?.type === 'FeatureCollection') {\n for (const childFeature of item.geometry.features) {\n if (childFeature.geometry?.type === 'Point') {\n return buildCircle(childFeature.geometry, certaintyRadius);\n }\n }\n } else if (item.geometry?.type === 'GeometryCollection') {\n for (const geometry of item.geometry.geometries) {\n if (geometry.type === 'Point') {\n return buildCircle(geometry, certaintyRadius);\n }\n }\n } else if (item.geometry?.type === 'Point') {\n return buildCircle(item.geometry, certaintyRadius);\n }\n }\n};\n\n/**\n * Returns a GeoJSON feature collection containing circles for each item in the given array.\n */\nconst getCertaintyCircleFeatureCollection = (\n items,\n getCertaintyRadius: (item: any) => number | undefined\n) => {\n const features = [];\n\n for (const item of items) {\n const circle = getCertaintyCircle(item, getCertaintyRadius);\n if (circle) {\n features.push(circle);\n }\n }\n\n return featureCollection(features);\n};\n\n/**\n * Adds the geo-referenced image layer to the passed map.\n *\n * @param map\n * @param layerId\n * @param options\n */\nconst addGeoreferenceLayer = (map, layerId, options = {}) => {\n const warpedMapLayer = new WarpedMapLayer(layerId);\n map.addLayer(warpedMapLayer);\n\n if (options.url) {\n warpedMapLayer.addGeoreferenceAnnotationByUrl(options.url);\n } else if (options.manifest) {\n warpedMapLayer.addGeoreferenceAnnotation(options.manifest);\n }\n\n if (options.opacity) {\n warpedMapLayer.setOpacity(options.opacity);\n }\n};\n\n/**\n * Returns a bounding box for the passed geometry (with optional buffer).\n *\n * @param data\n * @param bufferDistance\n *\n * @returns {BBox}\n */\nconst getBoundingBox = (data, bufferDistance = null) => {\n // Convert the GeoJSON into a bounding box\n const box = bbox(data);\n\n if (!validateBoundingBox(box)) {\n return null;\n }\n\n // Convert the bounding box to a polygon\n const polygon = bboxPolygon(box);\n\n // Create a buffer around the polygon (if a distance is provided)\n let polygonBuffer;\n\n if (bufferDistance) {\n polygonBuffer = buffer(polygon, bufferDistance, { units: 'miles' });\n } else {\n polygonBuffer = polygon;\n }\n\n // Convert the buffer to a bounding box\n return bbox(polygonBuffer);\n};\n\n/**\n * Removes a layer from the passed map.\n *\n * @param map\n * @param layerId\n *\n * @returns {*}\n */\nconst removeLayer = (map, layerId) => map && map.removeLayer(layerId);\n\n/**\n * Wraps the passed record in a feature.\n *\n * @param record\n * @param item\n * @param geometry\n * @param originalProperties\n *\n * @returns {Feature<Geometry, {\n * id: *,\n * ccode: [],\n * title: *,\n * uuid: *,\n * record_id: *,\n * name: *,\n * names: *,\n * type: *,\n * items: [*],\n * url: *\n * }>}\n */\nconst toFeature = (record: any, item: any, geometry: any, originalProperties?: any) => {\n const properties = {\n id: record.record_id,\n ccode: [],\n title: record.name,\n uuid: record.uuid,\n record_id: record.record_id,\n name: record.name,\n names: record.names?.map((toponym: string) => ({ toponym })),\n type: record.type,\n items: [item],\n url: record.url,\n originalProperties: originalProperties || {}\n };\n\n const id = parseInt(record.record_id, 10);\n return feature(geometry, properties, { id });\n};\n\n/**\n * Returns a feature collection for the passed set of features.\n *\n * @param features\n *\n * @returns {FeatureCollection<Geometry, GeoJsonProperties>}\n */\nconst toFeatureCollection = (features: Array<any>) => featureCollection(features);\n\n/**\n * Validates that the passed bounding box contains finite coordinates.\n *\n * @param boundingBox\n *\n * @returns {*}\n */\nconst validateBoundingBox = (boundingBox: Array<number>) => _.every(boundingBox, _.isFinite);\n\n/**\n * Returns true if the passed coordinates are valid.\n *\n * @param coordinates\n *\n * @returns {boolean}\n */\nconst validateCoordinates = (coordinates) => {\n let valid = false;\n\n if (coordinates) {\n const [latitude, longitude] = coordinates;\n\n valid = latitude >= MIN_LATITUDE\n && latitude <= MAX_LATITUDE\n && longitude >= MIN_LONGITUDE\n && longitude <= MAX_LONGITUDE;\n }\n\n return valid;\n};\n\nexport default {\n addGeoreferenceLayer,\n getCertaintyCircle,\n getCertaintyCircleFeatureCollection,\n getBoundingBox,\n removeLayer,\n toFeature,\n toFeatureCollection,\n validateBoundingBox,\n validateCoordinates\n};\n"],"names":["MIN_LATITUDE","MAX_LATITUDE","MIN_LONGITUDE","MAX_LONGITUDE","buildCircle","point","radius","circle","getCertaintyCircle","item","getCertaintyRadius","certaintyRadius","childFeature","geometry","getCertaintyCircleFeatureCollection","items","features","featureCollection","addGeoreferenceLayer","map","layerId","options","warpedMapLayer","WarpedMapLayer","getBoundingBox","data","bufferDistance","box","bbox","validateBoundingBox","polygon","bboxPolygon","polygonBuffer","buffer","removeLayer","toFeature","record","originalProperties","properties","toponym","id","feature","toFeatureCollection","boundingBox","_","validateCoordinates","coordinates","valid","latitude","longitude","MapUtils"],"mappings":"y9BAaA,MAAMA,EAAe,IACfC,EAAe,GACfC,EAAgB,KAChBC,EAAgB,IAQhBC,EAAc,CAACC,EAAOC,IAC1BC,EAAAA,QAAOF,EAAM,YAAaC,EAAQ,CAAE,MAAO,aAAc,MAAO,GAAI,EAGhEE,EAAqB,CAACC,EAAMC,IAA0D,CAC1F,MAAMC,EAAkBD,EAAmBD,CAAI,EAE/C,GAAIE,GACF,GAAIF,EAAK,UAAU,OAAS,qBAC1B,UAAWG,KAAgBH,EAAK,SAAS,SACvC,GAAIG,EAAa,UAAU,OAAS,QAClC,OAAOR,EAAYQ,EAAa,SAAUD,CAAe,UAGpDF,EAAK,UAAU,OAAS,sBACjC,UAAWI,KAAYJ,EAAK,SAAS,WACnC,GAAII,EAAS,OAAS,QACpB,OAAOT,EAAYS,EAAUF,CAAe,UAGvCF,EAAK,UAAU,OAAS,QACjC,OAAOL,EAAYK,EAAK,SAAUE,CAAe,EAGvD,EAKMG,EAAsC,CAC1CC,EACAL,IACG,CACH,MAAMM,EAAW,CAAA,EAEjB,UAAWP,KAAQM,EAAO,CACxB,MAAMR,EAASC,EAAmBC,EAAMC,CAAkB,EACtDH,GACFS,EAAS,KAAKT,CAAM,CAExB,CAEA,OAAOU,EAAAA,kBAAkBD,CAAQ,CACnC,EASME,EAAuB,CAACC,EAAKC,EAASC,EAAU,CAAA,IAAO,CAC3D,MAAMC,EAAiB,IAAIC,EAAAA,eAAeH,CAAO,EACjDD,EAAI,SAASG,CAAc,EAEvBD,EAAQ,IACVC,EAAe,+BAA+BD,EAAQ,GAAG,EAChDA,EAAQ,UACjBC,EAAe,0BAA0BD,EAAQ,QAAQ,EAGvDA,EAAQ,SACVC,EAAe,WAAWD,EAAQ,OAAO,CAE7C,EAUMG,EAAiB,CAACC,EAAMC,EAAiB,OAAS,CAEtD,MAAMC,EAAMC,EAAAA,KAAKH,CAAI,EAErB,GAAI,CAACI,EAAoBF,CAAG,EAC1B,OAAO,KAIT,MAAMG,EAAUC,EAAAA,YAAYJ,CAAG,EAG/B,IAAIK,EAEJ,OAAIN,EACFM,EAAgBC,EAAAA,OAAOH,EAASJ,EAAgB,CAAE,MAAO,QAAS,EAElEM,EAAgBF,EAIXF,EAAAA,KAAKI,CAAa,CAC3B,EAUME,EAAc,CAACf,EAAKC,IAAYD,GAAOA,EAAI,YAAYC,CAAO,EAuB9De,EAAY,CAACC,EAAa3B,EAAWI,EAAewB,IAA6B,CACrF,MAAMC,EAAa,CACjB,GAAIF,EAAO,UACX,MAAO,CAAA,EACP,MAAOA,EAAO,KACd,KAAMA,EAAO,KACb,UAAWA,EAAO,UAClB,KAAMA,EAAO,KACb,MAAOA,EAAO,OAAO,IAAKG,IAAqB,CAAE,QAAAA,GAAU,EAC3D,KAAMH,EAAO,KACb,MAAO,CAAC3B,CAAI,EACZ,IAAK2B,EAAO,IACZ,mBAAoBC,GAAsB,CAAA,CAAC,EAGvCG,EAAK,SAASJ,EAAO,UAAW,EAAE,EACxC,OAAOK,EAAAA,QAAQ5B,EAAUyB,EAAY,CAAE,GAAAE,EAAI,CAC7C,EASME,EAAuB1B,GAAyBC,EAAAA,kBAAkBD,CAAQ,EAS1Ea,EAAuBc,GAA+BC,EAAE,MAAMD,EAAaC,EAAE,QAAQ,EASrFC,EAAuBC,GAAgB,CAC3C,IAAIC,EAAQ,GAEZ,GAAID,EAAa,CACf,KAAM,CAACE,EAAUC,CAAS,EAAIH,EAE9BC,EAAQC,GAAYhD,GACfgD,GAAY/C,GACZgD,GAAa/C,GACb+C,GAAa9C,CACpB,CAEA,OAAO4C,CACT,EAEAG,EAAe,CACb,qBAAAhC,EACA,mBAAAV,EACA,oCAAAM,EACA,eAAAU,EACA,YAAAU,EACA,UAAAC,EACA,oBAAAO,EACA,oBAAAb,EACA,oBAAAgB,CACF"}
1
+ {"version":3,"file":"index.cjs13.js","sources":["../src/utils/Map.js"],"sourcesContent":["// @flow\n\nimport { WarpedMapLayer } from '@allmaps/maplibre';\nimport {\n bbox,\n bboxPolygon,\n buffer,\n feature,\n featureCollection\n} from '@turf/turf';\nimport _ from 'underscore';\nimport circle from '@turf/circle';\n\nconst MIN_LATITUDE = -90;\nconst MAX_LATITUDE = 90;\nconst MIN_LONGITUDE = -180;\nconst MAX_LONGITUDE = 180;\n\n/**\n * Returns a GeoJSON circle feature with the given center point and radius.\n * @param point - The center point of the circle.\n * @param radius - The radius of the circle in kilometers.\n * @returns {Feature<Geometry, Properties>} - The GeoJSON circle feature.\n */\nconst buildCircle = (point, radius) => (\n circle(point.coordinates, radius, { units: 'kilometers', steps: 32 })\n);\n\nconst toCertaintyCircle = (item, radius: number) => {\n if (item.geometry?.type === 'FeatureCollection') {\n let children = [];\n\n for (const childFeature of item.geometry.features) {\n if (childFeature.geometry?.type === 'Point') {\n const { geometry, type } = buildCircle(childFeature.geometry, radius);\n children.push({\n ...childFeature,\n geometry,\n type\n });\n }\n }\n\n return {\n ...item,\n geometry: {\n type: 'GeometryCollection',\n geometries: children\n }\n };\n } else if (item?.type === 'GeometryCollection') {\n return {\n ...item,\n geometries: item.geometries.map((geometry) => geometry.type === 'Point'\n ? buildCircle(geometry, radius)\n : geometry)\n };\n } else if (item.geometry?.type === 'Point') {\n const { geometry, type } = buildCircle(item.geometry, radius);\n return {\n ...item,\n geometry,\n type\n };\n }\n\n return item;\n};\n\n/**\n * Adds the geo-referenced image layer to the passed map.\n *\n * @param map\n * @param layerId\n * @param options\n */\nconst addGeoreferenceLayer = (map, layerId, options = {}) => {\n const warpedMapLayer = new WarpedMapLayer(layerId);\n map.addLayer(warpedMapLayer);\n\n if (options.url) {\n warpedMapLayer.addGeoreferenceAnnotationByUrl(options.url);\n } else if (options.manifest) {\n warpedMapLayer.addGeoreferenceAnnotation(options.manifest);\n }\n\n if (options.opacity) {\n warpedMapLayer.setOpacity(options.opacity);\n }\n};\n\n/**\n * Returns a bounding box for the passed geometry (with optional buffer).\n *\n * @param data\n * @param bufferDistance\n *\n * @returns {BBox}\n */\nconst getBoundingBox = (data, bufferDistance = null) => {\n // Convert the GeoJSON into a bounding box\n const box = bbox(data);\n\n if (!validateBoundingBox(box)) {\n return null;\n }\n\n // Convert the bounding box to a polygon\n const polygon = bboxPolygon(box);\n\n // Create a buffer around the polygon (if a distance is provided)\n let polygonBuffer;\n\n if (bufferDistance) {\n polygonBuffer = buffer(polygon, bufferDistance, { units: 'miles' });\n } else {\n polygonBuffer = polygon;\n }\n\n // Convert the buffer to a bounding box\n return bbox(polygonBuffer);\n};\n\n/**\n * Removes a layer from the passed map.\n *\n * @param map\n * @param layerId\n *\n * @returns {*}\n */\nconst removeLayer = (map, layerId) => map && map.removeLayer(layerId);\n\n/**\n * Wraps the passed record in a feature.\n *\n * @param record\n * @param item\n * @param geometry\n * @param originalProperties\n *\n * @returns {Feature<Geometry, {\n * id: *,\n * ccode: [],\n * title: *,\n * uuid: *,\n * record_id: *,\n * name: *,\n * names: *,\n * type: *,\n * items: [*],\n * url: *\n * }>}\n */\nconst toFeature = (record: any, item: any, geometry: any, originalProperties?: any) => {\n const properties = {\n id: record.record_id,\n ccode: [],\n title: record.name,\n uuid: record.uuid,\n record_id: record.record_id,\n name: record.name,\n names: record.names?.map((toponym: string) => ({ toponym })),\n type: record.type,\n items: [item],\n url: record.url,\n originalProperties: originalProperties || {}\n };\n\n const id = parseInt(record.record_id, 10);\n return feature(geometry, properties, { id });\n};\n\n/**\n * Returns a feature collection for the passed set of features.\n *\n * @param features\n *\n * @returns {FeatureCollection<Geometry, GeoJsonProperties>}\n */\nconst toFeatureCollection = (features: Array<any>) => featureCollection(features);\n\n/**\n * Validates that the passed bounding box contains finite coordinates.\n *\n * @param boundingBox\n *\n * @returns {*}\n */\nconst validateBoundingBox = (boundingBox: Array<number>) => _.every(boundingBox, _.isFinite);\n\n/**\n * Returns true if the passed coordinates are valid.\n *\n * @param coordinates\n *\n * @returns {boolean}\n */\nconst validateCoordinates = (coordinates) => {\n let valid = false;\n\n if (coordinates) {\n const [latitude, longitude] = coordinates;\n\n valid = latitude >= MIN_LATITUDE\n && latitude <= MAX_LATITUDE\n && longitude >= MIN_LONGITUDE\n && longitude <= MAX_LONGITUDE;\n }\n\n return valid;\n};\n\nexport default {\n addGeoreferenceLayer,\n toCertaintyCircle,\n getBoundingBox,\n removeLayer,\n toFeature,\n toFeatureCollection,\n validateBoundingBox,\n validateCoordinates\n};\n"],"names":["MIN_LATITUDE","MAX_LATITUDE","MIN_LONGITUDE","MAX_LONGITUDE","buildCircle","point","radius","circle","toCertaintyCircle","item","children","childFeature","geometry","type","addGeoreferenceLayer","map","layerId","options","warpedMapLayer","WarpedMapLayer","getBoundingBox","data","bufferDistance","box","bbox","validateBoundingBox","polygon","bboxPolygon","polygonBuffer","buffer","removeLayer","toFeature","record","originalProperties","properties","toponym","id","feature","toFeatureCollection","features","featureCollection","boundingBox","_","validateCoordinates","coordinates","valid","latitude","longitude","MapUtils"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs76.js");var t=e.__require();exports.jsxRuntimeExports=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs73.js");var t=e.__require();exports.jsxRuntimeExports=t;
2
2
  //# sourceMappingURL=index.cjs15.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs74.js"),r=require("./index.cjs240.js");var t=r.__require();const e=s.getDefaultExportFromCjs(t);module.exports=e;
1
+ "use strict";const s=require("./index.cjs80.js"),r=require("./index.cjs240.js");var t=r.__require();const e=s.getDefaultExportFromCjs(t);module.exports=e;
2
2
  //# sourceMappingURL=index.cjs191.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs15.js");require("react");require("./index.cjs16.js");require("./index.cjs17.js");require("./index.cjs18.js");require("./index.cjs19.js");require("./index.cjs20.js");require("./index.cjs21.js");require("./index.cjs22.js");require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs25.js");const u=require("./index.cjs26.js"),s=require("./index.cjs27.js");require("./index.cjs28.js");const i=require("./index.cjs14.js"),n=require("./index.cjs13.js"),q=e=>{const t=n.getCertaintyCircles([e.geometry],()=>e.certaintyRadius);return r.jsxRuntimeExports.jsx(u.Source,{data:t,type:"geojson",children:r.jsxRuntimeExports.jsx(s.Layer,{...i.fill,id:"certainty-layer",paint:{...i.fill.paint}})})};module.exports=q;
1
+ "use strict";const r=require("./index.cjs15.js"),u=require("react");require("./index.cjs16.js");require("./index.cjs17.js");require("./index.cjs18.js");require("./index.cjs19.js");require("./index.cjs20.js");require("./index.cjs21.js");require("./index.cjs22.js");require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs25.js");const n=require("./index.cjs26.js"),s=require("./index.cjs27.js");require("./index.cjs28.js");const t=require("./index.cjs14.js"),a=require("./index.cjs13.js"),c=e=>{const i=u.useMemo(()=>e.geometry?a.toCertaintyCircle(e.geometry,e.certaintyRadius):{},[e.geometry,e.certaintyRadius]);return r.jsxRuntimeExports.jsx(n.Source,{data:i,type:"geojson",children:r.jsxRuntimeExports.jsx(s.Layer,{...t.fill,id:"certainty-layer",paint:{...t.fill.paint}})})};module.exports=c;
2
2
  //# sourceMappingURL=index.cjs2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs2.js","sources":["../src/components/CertaintyLayer.js"],"sourcesContent":["// @flow\n\nimport React from 'react';\nimport { Layer, Source } from 'react-map-gl/maplibre';\nimport MapStyles from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n geometry?: any,\n certaintyRadius: number\n};\n\n/**\n * Renders circles with the given certainty_radius circumference around all points in a new layer.\n */\nconst CertaintyLayer = (props: Props) => {\n const circles = MapUtils.getCertaintyCircles([props.geometry], () => props.certaintyRadius);\n\n return (\n <Source\n data={circles}\n type='geojson'\n >\n <Layer\n {...MapStyles.fill}\n id='certainty-layer'\n paint={{\n ...MapStyles.fill.paint,\n }}\n />\n </Source>\n );\n};\n\nexport default CertaintyLayer;\n\n"],"names":["CertaintyLayer","props","circles","MapUtils","jsx","Source","Layer","MapStyles"],"mappings":"0fAeMA,EAAkBC,GAAiB,CACvC,MAAMC,EAAUC,EAAS,oBAAoB,CAACF,EAAM,QAAQ,EAAG,IAAMA,EAAM,eAAe,EAE1F,OACEG,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CACC,KAAMH,EACN,KAAK,UAEL,SAAAE,EAAAA,kBAAAA,IAACE,EAAAA,MAAA,CACE,GAAGC,EAAU,KACd,GAAG,kBACH,MAAO,CACL,GAAGA,EAAU,KAAK,KAAA,CACpB,CAAA,CACF,CAAA,CAGN"}
1
+ {"version":3,"file":"index.cjs2.js","sources":["../src/components/CertaintyLayer.js"],"sourcesContent":["// @flow\n\nimport React, { useMemo } from 'react';\nimport { Layer, Source } from 'react-map-gl/maplibre';\nimport MapStyles from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n geometry?: any,\n certaintyRadius: number\n};\n\n/**\n * Renders circles with the given certainty_radius circumference around all points in a new layer.\n */\nconst CertaintyLayer = (props: Props) => {\n const data = useMemo(() => {\n if (props.geometry) {\n return MapUtils.toCertaintyCircle(props.geometry, props.certaintyRadius);\n } else {\n return {};\n }\n }, [props.geometry, props.certaintyRadius]);\n\n return (\n <Source\n data={data}\n type='geojson'\n >\n <Layer\n {...MapStyles.fill}\n id='certainty-layer'\n paint={{\n ...MapStyles.fill.paint\n }}\n />\n </Source>\n );\n};\n\nexport default CertaintyLayer;\n\n"],"names":["CertaintyLayer","props","data","useMemo","MapUtils","jsx","Source","Layer","MapStyles"],"mappings":"4fAeMA,EAAkBC,GAAiB,CACvC,MAAMC,EAAOC,EAAAA,QAAQ,IACfF,EAAM,SACDG,EAAS,kBAAkBH,EAAM,SAAUA,EAAM,eAAe,EAEhE,CAAA,EAER,CAACA,EAAM,SAAUA,EAAM,eAAe,CAAC,EAE1C,OACEI,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CACC,KAAAJ,EACA,KAAK,UAEL,SAAAG,EAAAA,kBAAAA,IAACE,EAAAA,MAAA,CACE,GAAGC,EAAU,KACd,GAAG,kBACH,MAAO,CACL,GAAGA,EAAU,KAAK,KAAA,CACpB,CAAA,CACF,CAAA,CAGN"}
@@ -1,2 +1,2 @@
1
- "use strict";const d=require("./index.cjs242.js"),p=require("./index.cjs243.js"),i=require("./index.cjs210.js"),c={version:8,sources:{},layers:[]},u={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},h={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},m={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},f=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],v=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class l{constructor(t,o,a){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{const s=this.props[m[e.type]];s?s(e):e.type==="error"&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||d.transformToViewState(this._map.transform);const s=this.props[h[e.type]];s&&s(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=d.transformToViewState(e),d.applyViewStateToTransform(e,this.props)),this._onPointerEvent=e=>{(e.type==="mousemove"||e.type==="mouseout")&&this._updateHover(e);const s=this.props[u[e.type]];s&&(this.props.interactiveLayerIds&&e.type!=="mouseover"&&e.type!=="mouseout"&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),s(e),delete e.features)},this._MapClass=t,this.props=o,this._initialize(a)}get map(){return this._map}setProps(t){const o=this.props;this.props=t;const a=this._updateSettings(t,o),e=this._updateSize(t),s=this._updateViewState(t);this._updateStyle(t,o),this._updateStyleComponents(t),this._updateHandlers(t,o),(a||e||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const a=l.savedMaps.pop();if(!a)return null;const e=a.map,s=e.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);e._container=o;const n=e._resizeObserver;n&&(n.disconnect(),n.observe(o)),a.setProps({...t,styleDiffing:!1}),e.resize();const{initialViewState:r}=t;return r&&(r.bounds?e.fitBounds(r.bounds,{...r.fitBoundsOptions,duration:0}):a._updateViewState(r)),e.isStyleLoaded()?e.fire("load"):e.once("style.load",()=>e.fire("load")),e._update(),a}_initialize(t){const{props:o}=this,{mapStyle:a=c}=o,e={...o,...o.initialViewState,container:t,style:p.normalizeStyle(a)},s=e.initialViewState||e.viewState||e;if(Object.assign(e,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const r=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=r,o.gl)}const n=new this._MapClass(e);s.padding&&n.setPadding(s.padding),o.cursor&&(n.getCanvas().style.cursor=o.cursor),n.transformCameraUpdate=this._onCameraUpdate,n.on("style.load",()=>{this._styleComponents={light:n.getLight(),sky:n.getSky(),projection:n.getProjection?.(),terrain:n.getTerrain()},this._updateStyleComponents(this.props)}),n.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const r in u)n.on(r,this._onPointerEvent);for(const r in h)n.on(r,this._onCameraEvent);for(const r in m)n.on(r,this._onEvent);this._map=n}recycle(){this.map.getContainer().querySelector("[mapboxgl-children]")?.remove(),l.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_updateSize(t){const{viewState:o}=t;if(o){const a=this._map;if(o.width!==a.transform.width||o.height!==a.transform.height)return a.resize(),!0}return!1}_updateViewState(t){const o=this._map,a=o.transform;if(!o.isMoving()){const s=d.applyViewStateToTransform(a,t);if(Object.keys(s).length>0)return this._internalUpdate=!0,o.jumpTo(s),this._internalUpdate=!1,!0}return!1}_updateSettings(t,o){const a=this._map;let e=!1;for(const s of f)s in t&&!i.deepEqual(t[s],o[s])&&(e=!0,a[`set${s[0].toUpperCase()}${s.slice(1)}`]?.call(a,t[s]));return e}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:a=c,styleDiffing:e=!0}=t,s={diff:e};"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(p.normalizeStyle(a),s)}}_updateStyleComponents({light:t,projection:o,sky:a,terrain:e}){const s=this._map,n=this._styleComponents;s.style._loaded&&(t&&!i.deepEqual(t,n.light)&&(n.light=t,s.setLight(t)),o&&!i.deepEqual(o,n.projection)&&o!==n.projection?.type&&(n.projection=typeof o=="string"?{type:o}:o,s.setProjection?.(n.projection)),a&&!i.deepEqual(a,n.sky)&&(n.sky=a,s.setSky(a)),e!==void 0&&!i.deepEqual(e,n.terrain)&&(!e||s.getSource(e.source))&&(n.terrain=e,s.setTerrain(e)))}_updateHandlers(t,o){const a=this._map;for(const e of v){const s=t[e]??!0,n=o[e]??!0;i.deepEqual(s,n)||(s?a[e].enable(s):a[e].disable())}}_queryRenderedFeatures(t){const o=this._map,{interactiveLayerIds:a=[]}=this.props;try{return o.queryRenderedFeatures(t,{layers:a.filter(o.getLayer.bind(o))})}catch{return[]}}_updateHover(t){const{props:o}=this;if(o.interactiveLayerIds&&(o.onMouseMove||o.onMouseEnter||o.onMouseLeave)){const e=t.type,s=this._hoveredFeatures?.length>0,n=this._queryRenderedFeatures(t.point),r=n.length>0;!r&&s&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=n,r&&!s&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=e}else this._hoveredFeatures=null}}l.savedMaps=[];module.exports=l;
1
+ "use strict";const d=require("./index.cjs243.js"),p=require("./index.cjs244.js"),i=require("./index.cjs210.js"),c={version:8,sources:{},layers:[]},u={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},h={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},m={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},f=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],v=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class l{constructor(t,o,a){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{const s=this.props[m[e.type]];s?s(e):e.type==="error"&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||d.transformToViewState(this._map.transform);const s=this.props[h[e.type]];s&&s(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=d.transformToViewState(e),d.applyViewStateToTransform(e,this.props)),this._onPointerEvent=e=>{(e.type==="mousemove"||e.type==="mouseout")&&this._updateHover(e);const s=this.props[u[e.type]];s&&(this.props.interactiveLayerIds&&e.type!=="mouseover"&&e.type!=="mouseout"&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),s(e),delete e.features)},this._MapClass=t,this.props=o,this._initialize(a)}get map(){return this._map}setProps(t){const o=this.props;this.props=t;const a=this._updateSettings(t,o),e=this._updateSize(t),s=this._updateViewState(t);this._updateStyle(t,o),this._updateStyleComponents(t),this._updateHandlers(t,o),(a||e||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const a=l.savedMaps.pop();if(!a)return null;const e=a.map,s=e.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);e._container=o;const n=e._resizeObserver;n&&(n.disconnect(),n.observe(o)),a.setProps({...t,styleDiffing:!1}),e.resize();const{initialViewState:r}=t;return r&&(r.bounds?e.fitBounds(r.bounds,{...r.fitBoundsOptions,duration:0}):a._updateViewState(r)),e.isStyleLoaded()?e.fire("load"):e.once("style.load",()=>e.fire("load")),e._update(),a}_initialize(t){const{props:o}=this,{mapStyle:a=c}=o,e={...o,...o.initialViewState,container:t,style:p.normalizeStyle(a)},s=e.initialViewState||e.viewState||e;if(Object.assign(e,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const r=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=r,o.gl)}const n=new this._MapClass(e);s.padding&&n.setPadding(s.padding),o.cursor&&(n.getCanvas().style.cursor=o.cursor),n.transformCameraUpdate=this._onCameraUpdate,n.on("style.load",()=>{this._styleComponents={light:n.getLight(),sky:n.getSky(),projection:n.getProjection?.(),terrain:n.getTerrain()},this._updateStyleComponents(this.props)}),n.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const r in u)n.on(r,this._onPointerEvent);for(const r in h)n.on(r,this._onCameraEvent);for(const r in m)n.on(r,this._onEvent);this._map=n}recycle(){this.map.getContainer().querySelector("[mapboxgl-children]")?.remove(),l.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_updateSize(t){const{viewState:o}=t;if(o){const a=this._map;if(o.width!==a.transform.width||o.height!==a.transform.height)return a.resize(),!0}return!1}_updateViewState(t){const o=this._map,a=o.transform;if(!o.isMoving()){const s=d.applyViewStateToTransform(a,t);if(Object.keys(s).length>0)return this._internalUpdate=!0,o.jumpTo(s),this._internalUpdate=!1,!0}return!1}_updateSettings(t,o){const a=this._map;let e=!1;for(const s of f)s in t&&!i.deepEqual(t[s],o[s])&&(e=!0,a[`set${s[0].toUpperCase()}${s.slice(1)}`]?.call(a,t[s]));return e}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:a=c,styleDiffing:e=!0}=t,s={diff:e};"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(p.normalizeStyle(a),s)}}_updateStyleComponents({light:t,projection:o,sky:a,terrain:e}){const s=this._map,n=this._styleComponents;s.style._loaded&&(t&&!i.deepEqual(t,n.light)&&(n.light=t,s.setLight(t)),o&&!i.deepEqual(o,n.projection)&&o!==n.projection?.type&&(n.projection=typeof o=="string"?{type:o}:o,s.setProjection?.(n.projection)),a&&!i.deepEqual(a,n.sky)&&(n.sky=a,s.setSky(a)),e!==void 0&&!i.deepEqual(e,n.terrain)&&(!e||s.getSource(e.source))&&(n.terrain=e,s.setTerrain(e)))}_updateHandlers(t,o){const a=this._map;for(const e of v){const s=t[e]??!0,n=o[e]??!0;i.deepEqual(s,n)||(s?a[e].enable(s):a[e].disable())}}_queryRenderedFeatures(t){const o=this._map,{interactiveLayerIds:a=[]}=this.props;try{return o.queryRenderedFeatures(t,{layers:a.filter(o.getLayer.bind(o))})}catch{return[]}}_updateHover(t){const{props:o}=this;if(o.interactiveLayerIds&&(o.onMouseMove||o.onMouseEnter||o.onMouseLeave)){const e=t.type,s=this._hoveredFeatures?.length>0,n=this._queryRenderedFeatures(t.point),r=n.length>0;!r&&s&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=n,r&&!s&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=e}else this._hoveredFeatures=null}}l.savedMaps=[];module.exports=l;
2
2
  //# sourceMappingURL=index.cjs205.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs244.js"),t=require("./index.cjs217.js"),r=e(t);module.exports=r;
1
+ "use strict";const e=require("./index.cjs246.js"),t=require("./index.cjs217.js"),r=e(t);module.exports=r;
2
2
  //# sourceMappingURL=index.cjs215.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs246.js"),e=t("length");module.exports=e;
1
+ "use strict";const t=require("./index.cjs245.js"),e=t("length");module.exports=e;
2
2
  //# sourceMappingURL=index.cjs216.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs246.js"),e=t("byteLength");module.exports=e;
1
+ "use strict";const t=require("./index.cjs245.js"),e=t("byteLength");module.exports=e;
2
2
  //# sourceMappingURL=index.cjs217.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs244.js"),r=require("./index.cjs216.js"),t=e(r);module.exports=t;
1
+ "use strict";const e=require("./index.cjs246.js"),r=require("./index.cjs216.js"),t=e(r);module.exports=t;
2
2
  //# sourceMappingURL=index.cjs235.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs210.js");function d(n){return{longitude:n.center.lng,latitude:n.center.lat,zoom:n.zoom,pitch:n.pitch,bearing:n.bearing,padding:n.padding}}function g(n,t){const e=t.viewState||t,i={};if("longitude"in e&&"latitude"in e&&(e.longitude!==n.center.lng||e.latitude!==n.center.lat)){const a=n.center.constructor;i.center=new a(e.longitude,e.latitude)}return"zoom"in e&&e.zoom!==n.zoom&&(i.zoom=e.zoom),"bearing"in e&&e.bearing!==n.bearing&&(i.bearing=e.bearing),"pitch"in e&&e.pitch!==n.pitch&&(i.pitch=e.pitch),e.padding&&n.padding&&!o.deepEqual(e.padding,n.padding)&&(i.padding=e.padding),i}exports.applyViewStateToTransform=g;exports.transformToViewState=d;
1
+ "use strict";const t=require("./index.cjs213.js"),e=t("Object");module.exports=e;
2
2
  //# sourceMappingURL=index.cjs242.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs242.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/transform.js"],"sourcesContent":["import { deepEqual } from \"./deep-equal.js\";\n/**\n * Capture a transform's current state\n * @param transform\n * @returns descriptor of the view state\n */\nexport function transformToViewState(tr) {\n return {\n longitude: tr.center.lng,\n latitude: tr.center.lat,\n zoom: tr.zoom,\n pitch: tr.pitch,\n bearing: tr.bearing,\n padding: tr.padding\n };\n}\n/* eslint-disable complexity */\n/**\n * Applies requested view state to a transform\n * @returns an object containing detected changes\n */\nexport function applyViewStateToTransform(\n/** An object that describes Maplibre's camera state */\ntr, \n/** Props from Map component */\nprops) {\n const v = props.viewState || props;\n const changes = {};\n if ('longitude' in v &&\n 'latitude' in v &&\n (v.longitude !== tr.center.lng || v.latitude !== tr.center.lat)) {\n const LngLat = tr.center.constructor;\n // @ts-expect-error we should not import LngLat class from maplibre-gl because we don't know the source of mapLib\n changes.center = new LngLat(v.longitude, v.latitude);\n }\n if ('zoom' in v && v.zoom !== tr.zoom) {\n changes.zoom = v.zoom;\n }\n if ('bearing' in v && v.bearing !== tr.bearing) {\n changes.bearing = v.bearing;\n }\n if ('pitch' in v && v.pitch !== tr.pitch) {\n changes.pitch = v.pitch;\n }\n if (v.padding && tr.padding && !deepEqual(v.padding, tr.padding)) {\n changes.padding = v.padding;\n }\n return changes;\n}\n//# sourceMappingURL=transform.js.map"],"names":["transformToViewState","tr","applyViewStateToTransform","props","v","changes","LngLat","deepEqual"],"mappings":"qHAMO,SAASA,EAAqBC,EAAI,CACrC,MAAO,CACH,UAAWA,EAAG,OAAO,IACrB,SAAUA,EAAG,OAAO,IACpB,KAAMA,EAAG,KACT,MAAOA,EAAG,MACV,QAASA,EAAG,QACZ,QAASA,EAAG,OAAA,CAEpB,CAMO,SAASC,EAEhBD,EAEAE,EAAO,CACH,MAAMC,EAAID,EAAM,WAAaA,EACvBE,EAAU,CAAA,EAChB,GAAI,cAAeD,GACf,aAAcA,IACbA,EAAE,YAAcH,EAAG,OAAO,KAAOG,EAAE,WAAaH,EAAG,OAAO,KAAM,CACjE,MAAMK,EAASL,EAAG,OAAO,YAEzBI,EAAQ,OAAS,IAAIC,EAAOF,EAAE,UAAWA,EAAE,QAAQ,CACvD,CACA,MAAI,SAAUA,GAAKA,EAAE,OAASH,EAAG,OAC7BI,EAAQ,KAAOD,EAAE,MAEjB,YAAaA,GAAKA,EAAE,UAAYH,EAAG,UACnCI,EAAQ,QAAUD,EAAE,SAEpB,UAAWA,GAAKA,EAAE,QAAUH,EAAG,QAC/BI,EAAQ,MAAQD,EAAE,OAElBA,EAAE,SAAWH,EAAG,SAAW,CAACM,YAAUH,EAAE,QAASH,EAAG,OAAO,IAC3DI,EAAQ,QAAUD,EAAE,SAEjBC,CACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs242.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":"kDAEAA,EAAeC,EAAU,QAAQ","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function c(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const f=e.layers.map(r=>{let n=null;"interactive"in r&&(n=Object.assign({},r),delete n.interactive);const o=t[r.ref];if(o){n=n||Object.assign({},r),delete n.ref;for(const i of a)i in o&&(n[i]=o[i])}return n||r});return{...e,layers:f}}exports.normalizeStyle=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs210.js");function d(n){return{longitude:n.center.lng,latitude:n.center.lat,zoom:n.zoom,pitch:n.pitch,bearing:n.bearing,padding:n.padding}}function g(n,t){const e=t.viewState||t,i={};if("longitude"in e&&"latitude"in e&&(e.longitude!==n.center.lng||e.latitude!==n.center.lat)){const a=n.center.constructor;i.center=new a(e.longitude,e.latitude)}return"zoom"in e&&e.zoom!==n.zoom&&(i.zoom=e.zoom),"bearing"in e&&e.bearing!==n.bearing&&(i.bearing=e.bearing),"pitch"in e&&e.pitch!==n.pitch&&(i.pitch=e.pitch),e.padding&&n.padding&&!o.deepEqual(e.padding,n.padding)&&(i.padding=e.padding),i}exports.applyViewStateToTransform=g;exports.transformToViewState=d;
2
2
  //# sourceMappingURL=index.cjs243.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs243.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"gFAAA,MAAMA,EAAW,CAAC,OAAQ,SAAU,eAAgB,UAAW,UAAW,SAAU,QAAQ,EAIrF,SAASC,EAAeC,EAAO,CAClC,GAAI,CAACA,EACD,OAAO,KAQX,GANI,OAAOA,GAAU,WAGjB,SAAUA,IACVA,EAAQA,EAAM,KAAA,GAEd,CAACA,EAAM,QACP,OAAOA,EAEX,MAAMC,EAAa,CAAA,EACnB,UAAWC,KAASF,EAAM,OACtBC,EAAWC,EAAM,EAAE,EAAIA,EAE3B,MAAMC,EAASH,EAAM,OAAO,IAAIE,GAAS,CACrC,IAAIE,EAAkB,KAClB,gBAAiBF,IACjBE,EAAkB,OAAO,OAAO,CAAA,EAAIF,CAAK,EAGzC,OAAOE,EAAgB,aAI3B,MAAMC,EAAWJ,EAAWC,EAAM,GAAG,EACrC,GAAIG,EAAU,CACVD,EAAkBA,GAAmB,OAAO,OAAO,CAAA,EAAIF,CAAK,EAE5D,OAAOE,EAAgB,IAEvB,UAAWE,KAAYR,EACfQ,KAAYD,IACZD,EAAgBE,CAAQ,EAAID,EAASC,CAAQ,EAGzD,CACA,OAAOF,GAAmBF,CAC9B,CAAC,EAED,MAAO,CAAE,GAAGF,EAAO,OAAAG,CAAA,CACvB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs243.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/transform.js"],"sourcesContent":["import { deepEqual } from \"./deep-equal.js\";\n/**\n * Capture a transform's current state\n * @param transform\n * @returns descriptor of the view state\n */\nexport function transformToViewState(tr) {\n return {\n longitude: tr.center.lng,\n latitude: tr.center.lat,\n zoom: tr.zoom,\n pitch: tr.pitch,\n bearing: tr.bearing,\n padding: tr.padding\n };\n}\n/* eslint-disable complexity */\n/**\n * Applies requested view state to a transform\n * @returns an object containing detected changes\n */\nexport function applyViewStateToTransform(\n/** An object that describes Maplibre's camera state */\ntr, \n/** Props from Map component */\nprops) {\n const v = props.viewState || props;\n const changes = {};\n if ('longitude' in v &&\n 'latitude' in v &&\n (v.longitude !== tr.center.lng || v.latitude !== tr.center.lat)) {\n const LngLat = tr.center.constructor;\n // @ts-expect-error we should not import LngLat class from maplibre-gl because we don't know the source of mapLib\n changes.center = new LngLat(v.longitude, v.latitude);\n }\n if ('zoom' in v && v.zoom !== tr.zoom) {\n changes.zoom = v.zoom;\n }\n if ('bearing' in v && v.bearing !== tr.bearing) {\n changes.bearing = v.bearing;\n }\n if ('pitch' in v && v.pitch !== tr.pitch) {\n changes.pitch = v.pitch;\n }\n if (v.padding && tr.padding && !deepEqual(v.padding, tr.padding)) {\n changes.padding = v.padding;\n }\n return changes;\n}\n//# sourceMappingURL=transform.js.map"],"names":["transformToViewState","tr","applyViewStateToTransform","props","v","changes","LngLat","deepEqual"],"mappings":"qHAMO,SAASA,EAAqBC,EAAI,CACrC,MAAO,CACH,UAAWA,EAAG,OAAO,IACrB,SAAUA,EAAG,OAAO,IACpB,KAAMA,EAAG,KACT,MAAOA,EAAG,MACV,QAASA,EAAG,QACZ,QAASA,EAAG,OAAA,CAEpB,CAMO,SAASC,EAEhBD,EAEAE,EAAO,CACH,MAAMC,EAAID,EAAM,WAAaA,EACvBE,EAAU,CAAA,EAChB,GAAI,cAAeD,GACf,aAAcA,IACbA,EAAE,YAAcH,EAAG,OAAO,KAAOG,EAAE,WAAaH,EAAG,OAAO,KAAM,CACjE,MAAMK,EAASL,EAAG,OAAO,YAEzBI,EAAQ,OAAS,IAAIC,EAAOF,EAAE,UAAWA,EAAE,QAAQ,CACvD,CACA,MAAI,SAAUA,GAAKA,EAAE,OAASH,EAAG,OAC7BI,EAAQ,KAAOD,EAAE,MAEjB,YAAaA,GAAKA,EAAE,UAAYH,EAAG,UACnCI,EAAQ,QAAUD,EAAE,SAEpB,UAAWA,GAAKA,EAAE,QAAUH,EAAG,QAC/BI,EAAQ,MAAQD,EAAE,OAElBA,EAAE,SAAWH,EAAG,SAAW,CAACM,YAAUH,EAAE,QAASH,EAAG,OAAO,IAC3DI,EAAQ,QAAUD,EAAE,SAEjBC,CACX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./index.cjs37.js");function u(r){return function(t){var e=r(t);return typeof e=="number"&&e>=0&&e<=n.MAX_ARRAY_INDEX}}module.exports=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function c(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const f=e.layers.map(r=>{let n=null;"interactive"in r&&(n=Object.assign({},r),delete n.interactive);const o=t[r.ref];if(o){n=n||Object.assign({},r),delete n.ref;for(const i of a)i in o&&(n[i]=o[i])}return n||r});return{...e,layers:f}}exports.normalizeStyle=c;
2
2
  //# sourceMappingURL=index.cjs244.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs244.js","sources":["../node_modules/underscore/modules/_createSizePropertyCheck.js"],"sourcesContent":["import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n"],"names":["createSizePropertyCheck","getSizeProperty","collection","sizeProperty","MAX_ARRAY_INDEX"],"mappings":"iDAGA,SAAwBA,EAAwBC,EAAiB,CAC/D,OAAO,SAASC,EAAY,CAC1B,IAAIC,EAAeF,EAAgBC,CAAU,EAC7C,OAAO,OAAOC,GAAgB,UAAYA,GAAgB,GAAKA,GAAgBC,EAAAA,eACjF,CACF","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs244.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"gFAAA,MAAMA,EAAW,CAAC,OAAQ,SAAU,eAAgB,UAAW,UAAW,SAAU,QAAQ,EAIrF,SAASC,EAAeC,EAAO,CAClC,GAAI,CAACA,EACD,OAAO,KAQX,GANI,OAAOA,GAAU,WAGjB,SAAUA,IACVA,EAAQA,EAAM,KAAA,GAEd,CAACA,EAAM,QACP,OAAOA,EAEX,MAAMC,EAAa,CAAA,EACnB,UAAWC,KAASF,EAAM,OACtBC,EAAWC,EAAM,EAAE,EAAIA,EAE3B,MAAMC,EAASH,EAAM,OAAO,IAAIE,GAAS,CACrC,IAAIE,EAAkB,KAClB,gBAAiBF,IACjBE,EAAkB,OAAO,OAAO,CAAA,EAAIF,CAAK,EAGzC,OAAOE,EAAgB,aAI3B,MAAMC,EAAWJ,EAAWC,EAAM,GAAG,EACrC,GAAIG,EAAU,CACVD,EAAkBA,GAAmB,OAAO,OAAO,CAAA,EAAIF,CAAK,EAE5D,OAAOE,EAAgB,IAEvB,UAAWE,KAAYR,EACfQ,KAAYD,IACZD,EAAgBE,CAAQ,EAAID,EAASC,CAAQ,EAGzD,CACA,OAAOF,GAAmBF,CAC9B,CAAC,EAED,MAAO,CAAE,GAAGF,EAAO,OAAAG,CAAA,CACvB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs213.js"),e=t("Object");module.exports=e;
1
+ "use strict";function n(t){return function(r){return r?.[t]}}module.exports=n;
2
2
  //# sourceMappingURL=index.cjs245.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs245.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":"kDAEAA,EAAeC,EAAU,QAAQ","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs245.js","sources":["../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"aACA,SAAwBA,EAAgBC,EAAK,CAC3C,OAAO,SAASC,EAAK,CACnB,OAA8BA,IAAID,CAAG,CACvC,CACF","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";function n(t){return function(r){return r?.[t]}}module.exports=n;
1
+ "use strict";const n=require("./index.cjs37.js");function u(r){return function(t){var e=r(t);return typeof e=="number"&&e>=0&&e<=n.MAX_ARRAY_INDEX}}module.exports=u;
2
2
  //# sourceMappingURL=index.cjs246.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs246.js","sources":["../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"aACA,SAAwBA,EAAgBC,EAAK,CAC3C,OAAO,SAASC,EAAK,CACnB,OAA8BA,IAAID,CAAG,CACvC,CACF","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs246.js","sources":["../node_modules/underscore/modules/_createSizePropertyCheck.js"],"sourcesContent":["import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n"],"names":["createSizePropertyCheck","getSizeProperty","collection","sizeProperty","MAX_ARRAY_INDEX"],"mappings":"iDAGA,SAAwBA,EAAwBC,EAAiB,CAC/D,OAAO,SAASC,EAAY,CAC1B,IAAIC,EAAeF,EAAgBC,CAAU,EAC7C,OAAO,OAAOC,GAAgB,UAAYA,GAAgB,GAAKA,GAAgBC,EAAAA,eACjF,CACF","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs268.js");function r(){var n=[],t;return{point:function(i,u){t.push([i,u])},lineStart:function(){n.push(t=[])},lineEnd:e,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],t=null,i}}}module.exports=r;
1
+ "use strict";const e=require("./index.cjs265.js");function r(){var n=[],t;return{point:function(i,u){t.push([i,u])},lineStart:function(){n.push(t=[])},lineEnd:e,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],t=null,i}}}module.exports=r;
2
2
  //# sourceMappingURL=index.cjs252.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const A=require("./index.cjs266.js");function d(h,v,f,o){this.x=h,this.z=v,this.o=f,this.e=o,this.v=!1,this.n=this.p=null}function B(h,v,f,o,n){var x=[],s=[],l,z;if(h.forEach(function(w){if(!((g=w.length-1)<=0)){var g,u=w[0],q=w[g],t;if(A(u,q)){for(n.lineStart(),l=0;l<g;++l)n.point((u=w[l])[0],u[1]);n.lineEnd();return}x.push(t=new d(u,w,null,!0)),s.push(t.o=new d(u,null,t,!1)),x.push(t=new d(q,w,null,!1)),s.push(t.o=new d(q,null,t,!0))}}),!!x.length){for(s.sort(v),P(x),P(s),l=0,z=s.length;l<z;++l)s[l].e=f=!f;for(var k=x[0],p,E;;){for(var i=k,e=!0;i.v;)if((i=i.n)===k)return;p=i.z,n.lineStart();do{if(i.v=i.o.v=!0,i.e){if(e)for(l=0,z=p.length;l<z;++l)n.point((E=p[l])[0],E[1]);else o(i.x,i.n.x,1,n);i=i.n}else{if(e)for(p=i.p.z,l=p.length-1;l>=0;--l)n.point((E=p[l])[0],E[1]);else o(i.x,i.p.x,-1,n);i=i.p}i=i.o,p=i.z,e=!e}while(!i.v);n.lineEnd()}}}function P(h){if(v=h.length){for(var v,f=0,o=h[0],n;++f<v;)o.n=n=h[f],n.p=o,o=n;o.n=n=h[0],n.p=o}}module.exports=B;
1
+ "use strict";const A=require("./index.cjs267.js");function d(h,v,f,o){this.x=h,this.z=v,this.o=f,this.e=o,this.v=!1,this.n=this.p=null}function B(h,v,f,o,n){var x=[],s=[],l,z;if(h.forEach(function(w){if(!((g=w.length-1)<=0)){var g,u=w[0],q=w[g],t;if(A(u,q)){for(n.lineStart(),l=0;l<g;++l)n.point((u=w[l])[0],u[1]);n.lineEnd();return}x.push(t=new d(u,w,null,!0)),s.push(t.o=new d(u,null,t,!1)),x.push(t=new d(q,w,null,!1)),s.push(t.o=new d(q,null,t,!0))}}),!!x.length){for(s.sort(v),P(x),P(s),l=0,z=s.length;l<z;++l)s[l].e=f=!f;for(var k=x[0],p,E;;){for(var i=k,e=!0;i.v;)if((i=i.n)===k)return;p=i.z,n.lineStart();do{if(i.v=i.o.v=!0,i.e){if(e)for(l=0,z=p.length;l<z;++l)n.point((E=p[l])[0],E[1]);else o(i.x,i.n.x,1,n);i=i.n}else{if(e)for(p=i.p.z,l=p.length-1;l>=0;--l)n.point((E=p[l])[0],E[1]);else o(i.x,i.p.x,-1,n);i=i.p}i=i.o,p=i.z,e=!e}while(!i.v);n.lineEnd()}}}function P(h){if(v=h.length){for(var v,f=0,o=h[0],n;++f<v;)o.n=n=h[f],n.p=o,o=n;o.n=n=h[0],n.p=o}}module.exports=B;
2
2
  //# sourceMappingURL=index.cjs254.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs265.js"),i=require("./index.cjs250.js"),N=s(function(){return!0},P,A,[-i.pi,-i.halfPi]);function P(p){var l=NaN,t=NaN,n=NaN,o;return{lineStart:function(){p.lineStart(),o=1},point:function(c,e){var u=c>0?i.pi:-i.pi,f=i.abs(c-l);i.abs(f-i.pi)<i.epsilon?(p.point(l,t=(t+e)/2>0?i.halfPi:-i.halfPi),p.point(n,t),p.lineEnd(),p.lineStart(),p.point(u,t),p.point(c,t),o=0):n!==u&&f>=i.pi&&(i.abs(l-n)<i.epsilon&&(l-=n*i.epsilon),i.abs(c-u)<i.epsilon&&(c-=u*i.epsilon),t=v(l,t,c,e),p.point(n,t),p.lineEnd(),p.lineStart(),p.point(u,t),o=0),p.point(l=c,t=e),n=u},lineEnd:function(){p.lineEnd(),l=t=NaN},clean:function(){return 2-o}}}function v(p,l,t,n){var o,c,e=i.sin(p-t);return i.abs(e)>i.epsilon?i.atan((i.sin(l)*(c=i.cos(n))*i.sin(t)-i.sin(n)*(o=i.cos(l))*i.sin(p))/(o*c*e)):(l+n)/2}function A(p,l,t,n){var o;if(p==null)o=t*i.halfPi,n.point(-i.pi,o),n.point(0,o),n.point(i.pi,o),n.point(i.pi,0),n.point(i.pi,-o),n.point(0,-o),n.point(-i.pi,-o),n.point(-i.pi,0),n.point(-i.pi,o);else if(i.abs(p[0]-l[0])>i.epsilon){var c=p[0]<l[0]?i.pi:-i.pi;o=t*c/2,n.point(-c,o),n.point(0,o),n.point(c,o)}else n.point(l[0],l[1])}module.exports=N;
1
+ "use strict";const s=require("./index.cjs268.js"),i=require("./index.cjs250.js"),N=s(function(){return!0},P,A,[-i.pi,-i.halfPi]);function P(p){var l=NaN,t=NaN,n=NaN,o;return{lineStart:function(){p.lineStart(),o=1},point:function(c,e){var u=c>0?i.pi:-i.pi,f=i.abs(c-l);i.abs(f-i.pi)<i.epsilon?(p.point(l,t=(t+e)/2>0?i.halfPi:-i.halfPi),p.point(n,t),p.lineEnd(),p.lineStart(),p.point(u,t),p.point(c,t),o=0):n!==u&&f>=i.pi&&(i.abs(l-n)<i.epsilon&&(l-=n*i.epsilon),i.abs(c-u)<i.epsilon&&(c-=u*i.epsilon),t=v(l,t,c,e),p.point(n,t),p.lineEnd(),p.lineStart(),p.point(u,t),o=0),p.point(l=c,t=e),n=u},lineEnd:function(){p.lineEnd(),l=t=NaN},clean:function(){return 2-o}}}function v(p,l,t,n){var o,c,e=i.sin(p-t);return i.abs(e)>i.epsilon?i.atan((i.sin(l)*(c=i.cos(n))*i.sin(t)-i.sin(n)*(o=i.cos(l))*i.sin(p))/(o*c*e)):(l+n)/2}function A(p,l,t,n){var o;if(p==null)o=t*i.halfPi,n.point(-i.pi,o),n.point(0,o),n.point(i.pi,o),n.point(i.pi,0),n.point(i.pi,-o),n.point(0,-o),n.point(-i.pi,-o),n.point(-i.pi,0),n.point(-i.pi,o);else if(i.abs(p[0]-l[0])>i.epsilon){var c=p[0]<l[0]?i.pi:-i.pi;o=t*c/2,n.point(-c,o),n.point(0,o),n.point(c,o)}else n.point(l[0],l[1])}module.exports=N;
2
2
  //# sourceMappingURL=index.cjs258.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs249.js"),Q=require("./index.cjs248.js"),e=require("./index.cjs250.js"),j=require("./index.cjs266.js"),T=require("./index.cjs265.js");function U(d,G){var D=e.cos(d),x=D>0,J=e.abs(D)>e.epsilon;function K(n,i,o,r){Q.circleStream(r,d,G,o,n,i)}function L(n,i){return e.cos(n)*e.cos(i)>D}function M(n){var i,o,r,C,u;return{lineStart:function(){C=r=!1,u=1},point:function(s,v){var c=[s,v],a,l=L(s,v),z=x?l?0:k(s,v):l?k(s+(s<0?e.pi:-e.pi),v):0;if(!i&&(C=r=l)&&n.lineStart(),l!==r&&(a=h(i,c),(!a||j(i,a)||j(c,a))&&(c[0]+=e.epsilon,c[1]+=e.epsilon,l=L(c[0],c[1]))),l!==r)u=0,l?(n.lineStart(),a=h(c,i),n.point(a[0],a[1])):(a=h(i,c),n.point(a[0],a[1]),n.lineEnd()),i=a;else if(J&&i&&x^l){var p;!(z&o)&&(p=h(c,i,!0))&&(u=0,x?(n.lineStart(),n.point(p[0][0],p[0][1]),n.point(p[1][0],p[1][1]),n.lineEnd()):(n.point(p[1][0],p[1][1]),n.lineEnd(),n.lineStart(),n.point(p[0][0],p[0][1])))}l&&(!i||!j(i,c))&&n.point(c[0],c[1]),i=c,r=l,o=z},lineEnd:function(){r&&n.lineEnd(),i=null},clean:function(){return u|(C&&r)<<1}}}function h(n,i,o){var r=t.cartesian(n),C=t.cartesian(i),u=[1,0,0],s=t.cartesianCross(r,C),v=t.cartesianDot(s,s),c=s[0],a=v-c*c;if(!a)return!o&&n;var l=D*v/a,z=-D*c/a,p=t.cartesianCross(u,s),S=t.cartesianScale(u,l),N=t.cartesianScale(s,z);t.cartesianAddInPlace(S,N);var I=p,B=t.cartesianDot(S,I),R=t.cartesianDot(I,I),w=B*B-R*(t.cartesianDot(S,S)-1);if(!(w<0)){var y=e.sqrt(w),f=t.cartesianScale(I,(-B-y)/R);if(t.cartesianAddInPlace(f,S),f=t.spherical(f),!o)return f;var q=n[0],P=i[0],E=n[1],A=i[1],H;P<q&&(H=q,q=P,P=H);var b=P-q,g=e.abs(b-e.pi)<e.epsilon,O=g||b<e.epsilon;if(!g&&A<E&&(H=E,E=A,A=H),O?g?E+A>0^f[1]<(e.abs(f[0]-q)<e.epsilon?E:A):E<=f[1]&&f[1]<=A:b>e.pi^(q<=f[0]&&f[0]<=P)){var F=t.cartesianScale(I,(-B+y)/R);return t.cartesianAddInPlace(F,S),[f,t.spherical(F)]}}}function k(n,i){var o=x?d:e.pi-d,r=0;return n<-o?r|=1:n>o&&(r|=2),i<-o?r|=4:i>o&&(r|=8),r}return T(L,M,K,x?[0,-d]:[-e.pi,d-e.pi])}module.exports=U;
1
+ "use strict";const t=require("./index.cjs249.js"),Q=require("./index.cjs248.js"),e=require("./index.cjs250.js"),j=require("./index.cjs267.js"),T=require("./index.cjs268.js");function U(d,G){var D=e.cos(d),x=D>0,J=e.abs(D)>e.epsilon;function K(n,i,o,r){Q.circleStream(r,d,G,o,n,i)}function L(n,i){return e.cos(n)*e.cos(i)>D}function M(n){var i,o,r,C,u;return{lineStart:function(){C=r=!1,u=1},point:function(s,v){var c=[s,v],a,l=L(s,v),z=x?l?0:k(s,v):l?k(s+(s<0?e.pi:-e.pi),v):0;if(!i&&(C=r=l)&&n.lineStart(),l!==r&&(a=h(i,c),(!a||j(i,a)||j(c,a))&&(c[0]+=e.epsilon,c[1]+=e.epsilon,l=L(c[0],c[1]))),l!==r)u=0,l?(n.lineStart(),a=h(c,i),n.point(a[0],a[1])):(a=h(i,c),n.point(a[0],a[1]),n.lineEnd()),i=a;else if(J&&i&&x^l){var p;!(z&o)&&(p=h(c,i,!0))&&(u=0,x?(n.lineStart(),n.point(p[0][0],p[0][1]),n.point(p[1][0],p[1][1]),n.lineEnd()):(n.point(p[1][0],p[1][1]),n.lineEnd(),n.lineStart(),n.point(p[0][0],p[0][1])))}l&&(!i||!j(i,c))&&n.point(c[0],c[1]),i=c,r=l,o=z},lineEnd:function(){r&&n.lineEnd(),i=null},clean:function(){return u|(C&&r)<<1}}}function h(n,i,o){var r=t.cartesian(n),C=t.cartesian(i),u=[1,0,0],s=t.cartesianCross(r,C),v=t.cartesianDot(s,s),c=s[0],a=v-c*c;if(!a)return!o&&n;var l=D*v/a,z=-D*c/a,p=t.cartesianCross(u,s),S=t.cartesianScale(u,l),N=t.cartesianScale(s,z);t.cartesianAddInPlace(S,N);var I=p,B=t.cartesianDot(S,I),R=t.cartesianDot(I,I),w=B*B-R*(t.cartesianDot(S,S)-1);if(!(w<0)){var y=e.sqrt(w),f=t.cartesianScale(I,(-B-y)/R);if(t.cartesianAddInPlace(f,S),f=t.spherical(f),!o)return f;var q=n[0],P=i[0],E=n[1],A=i[1],H;P<q&&(H=q,q=P,P=H);var b=P-q,g=e.abs(b-e.pi)<e.epsilon,O=g||b<e.epsilon;if(!g&&A<E&&(H=E,E=A,A=H),O?g?E+A>0^f[1]<(e.abs(f[0]-q)<e.epsilon?E:A):E<=f[1]&&f[1]<=A:b>e.pi^(q<=f[0]&&f[0]<=P)){var F=t.cartesianScale(I,(-B+y)/R);return t.cartesianAddInPlace(F,S),[f,t.spherical(F)]}}}function k(n,i){var o=x?d:e.pi-d,r=0;return n<-o?r|=1:n>o&&(r|=2),i<-o?r|=4:i>o&&(r|=8),r}return T(L,M,K,x?[0,-d]:[-e.pi,d-e.pi])}module.exports=U;
2
2
  //# sourceMappingURL=index.cjs259.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index.cjs264.js"),s=require("./index.cjs267.js");function f(t,l,u){var e=l[1][0]-l[0][0],n=l[1][1]-l[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),a!=null&&t.clipExtent(null),b(u,t.stream(s));var i=s.result(),r=Math.min(e/(i[1][0]-i[0][0]),n/(i[1][1]-i[0][1])),c=+l[0][0]+(e-r*(i[1][0]+i[0][0]))/2,E=+l[0][1]+(n-r*(i[1][1]+i[0][1]))/2;return a!=null&&t.clipExtent(a),t.scale(r*150).translate([c,E])}function m(t,l,u){return f(t,[[0,0],l],u)}exports.fitExtent=f;exports.fitSize=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index.cjs264.js"),s=require("./index.cjs266.js");function f(t,l,u){var e=l[1][0]-l[0][0],n=l[1][1]-l[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),a!=null&&t.clipExtent(null),b(u,t.stream(s));var i=s.result(),r=Math.min(e/(i[1][0]-i[0][0]),n/(i[1][1]-i[0][1])),c=+l[0][0]+(e-r*(i[1][0]+i[0][0]))/2,E=+l[0][1]+(n-r*(i[1][1]+i[0][1]))/2;return a!=null&&t.clipExtent(a),t.scale(r*150).translate([c,E])}function m(t,l,u){return f(t,[[0,0],l],u)}exports.fitExtent=f;exports.fitSize=m;
2
2
  //# sourceMappingURL=index.cjs262.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const w=require("./index.cjs252.js"),z=require("./index.cjs254.js"),g=require("./index.cjs250.js"),A=require("./index.cjs196.js");require("./index.cjs195.js");const D=require("./index.cjs255.js");function F(r,u,d,s){return function(c,n){var h=u(n),C=c.invert(s[0],s[1]),v=w(),a=u(v),l=!1,S,f,p,o={point:y,lineStart:q,lineEnd:m,polygonStart:function(){o.point=P,o.lineStart=$,o.lineEnd=j,f=[],S=[]},polygonEnd:function(){o.point=y,o.lineStart=q,o.lineEnd=m,f=D(f);var e=A(S,C);f.length?(l||(n.polygonStart(),l=!0),z(f,H,e,d,n)):e&&(l||(n.polygonStart(),l=!0),n.lineStart(),d(null,null,1,n),n.lineEnd()),l&&(n.polygonEnd(),l=!1),f=S=null},sphere:function(){n.polygonStart(),n.lineStart(),d(null,null,1,n),n.lineEnd(),n.polygonEnd()}};function y(e,t){var i=c(e,t);r(e=i[0],t=i[1])&&n.point(e,t)}function R(e,t){var i=c(e,t);h.point(i[0],i[1])}function q(){o.point=R,h.lineStart()}function m(){o.point=y,h.lineEnd()}function P(e,t){p.push([e,t]);var i=c(e,t);a.point(i[0],i[1])}function $(){a.lineStart(),p=[]}function j(){P(p[0][0],p[0][1]),a.lineEnd();var e=a.clean(),t=v.result(),i,x=t.length,I,E,B;if(p.pop(),S.push(p),p=null,!!x){if(e&1){if(E=t[0],(I=E.length-1)>0){for(l||(n.polygonStart(),l=!0),n.lineStart(),i=0;i<I;++i)n.point((B=E[i])[0],B[1]);n.lineEnd()}return}x>1&&e&2&&t.push(t.pop().concat(t.shift())),f.push(t.filter(G))}}return o}}function G(r){return r.length>1}function H(r,u){return((r=r.x)[0]<0?r[1]-g.halfPi-g.epsilon:g.halfPi-r[1])-((u=u.x)[0]<0?u[1]-g.halfPi-g.epsilon:g.halfPi-u[1])}module.exports=F;
1
+ "use strict";function o(){}module.exports=o;
2
2
  //# sourceMappingURL=index.cjs265.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs265.js","sources":["../../../node_modules/d3-geo/src/clip/index.js"],"sourcesContent":["import clipBuffer from \"./buffer\";\nimport clipPolygon from \"./polygon\";\nimport {epsilon, halfPi} from \"../math\";\nimport polygonContains from \"../polygonContains\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(rotate, sink) {\n var line = clipLine(sink),\n rotatedStart = rotate.invert(start[0], start[1]),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, rotatedStart);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipPolygon(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n var point = rotate(lambda, phi);\n if (pointVisible(lambda = point[0], phi = point[1])) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n var point = rotate(lambda, phi);\n line.point(point[0], point[1]);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n var point = rotate(lambda, phi);\n ringSink.point(point[0], point[1]);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n"],"names":["clip","pointVisible","clipLine","interpolate","start","rotate","sink","line","rotatedStart","ringBuffer","clipBuffer","ringSink","polygonStarted","polygon","segments","ring","point","lineStart","lineEnd","pointRing","ringStart","ringEnd","merge","startInside","polygonContains","clipPolygon","compareIntersection","lambda","phi","pointLine","clean","ringSegments","n","m","segment","validSegment","a","b","halfPi","epsilon"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs265.js","sources":["../../../node_modules/d3-geo/src/noop.js"],"sourcesContent":["export default function noop() {}\n"],"names":["noop"],"mappings":"aAAA,SAAwBA,GAAO,CAAC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs250.js");function n(t,e){return s.abs(t[0]-e[0])<s.epsilon&&s.abs(t[1]-e[1])<s.epsilon}module.exports=n;
1
+ "use strict";const r=require("./index.cjs265.js");var t=1/0,e=t,i=-t,u=i,f={point:s,lineStart:r,lineEnd:r,polygonStart:r,polygonEnd:r,result:function(){var n=[[t,e],[i,u]];return i=u=-(e=t=1/0),n}};function s(n,o){n<t&&(t=n),n>i&&(i=n),o<e&&(e=o),o>u&&(u=o)}module.exports=f;
2
2
  //# sourceMappingURL=index.cjs266.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs266.js","sources":["../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"names":["pointEqual","a","b","abs","epsilon"],"mappings":"kDAEA,SAAAA,EAAwBC,EAAGC,EAAG,CAC5B,OAAOC,EAAAA,IAAIF,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAAIE,EAAAA,SAAWD,EAAAA,IAAIF,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAAIE,EAAAA,OAC1D","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs266.js","sources":["../../../node_modules/d3-geo/src/path/bounds.js"],"sourcesContent":["import noop from \"../noop\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n"],"names":["x0","y0","x1","y1","boundsStream","boundsPoint","noop","bounds","x","y"],"mappings":"kDAEA,IAAIA,EAAK,IACLC,EAAKD,EACLE,EAAK,CAACF,EACNG,EAAKD,EAELE,EAAe,CACjB,MAAOC,EACP,UAAWC,EACX,QAASA,EACT,aAAcA,EACd,WAAYA,EACZ,OAAQ,UAAW,CACjB,IAAIC,EAAS,CAAC,CAACP,EAAIC,CAAE,EAAG,CAACC,EAAIC,CAAE,CAAC,EAChC,OAAAD,EAAKC,EAAK,EAAEF,EAAKD,EAAK,KACfO,CACT,CACF,EAEA,SAASF,EAAYG,EAAGC,EAAG,CACrBD,EAAIR,IAAIA,EAAKQ,GACbA,EAAIN,IAAIA,EAAKM,GACbC,EAAIR,IAAIA,EAAKQ,GACbA,EAAIN,IAAIA,EAAKM,EACnB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs268.js");var t=1/0,e=t,i=-t,u=i,f={point:s,lineStart:r,lineEnd:r,polygonStart:r,polygonEnd:r,result:function(){var n=[[t,e],[i,u]];return i=u=-(e=t=1/0),n}};function s(n,o){n<t&&(t=n),n>i&&(i=n),o<e&&(e=o),o>u&&(u=o)}module.exports=f;
1
+ "use strict";const s=require("./index.cjs250.js");function n(t,e){return s.abs(t[0]-e[0])<s.epsilon&&s.abs(t[1]-e[1])<s.epsilon}module.exports=n;
2
2
  //# sourceMappingURL=index.cjs267.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs267.js","sources":["../../../node_modules/d3-geo/src/path/bounds.js"],"sourcesContent":["import noop from \"../noop\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n"],"names":["x0","y0","x1","y1","boundsStream","boundsPoint","noop","bounds","x","y"],"mappings":"kDAEA,IAAIA,EAAK,IACLC,EAAKD,EACLE,EAAK,CAACF,EACNG,EAAKD,EAELE,EAAe,CACjB,MAAOC,EACP,UAAWC,EACX,QAASA,EACT,aAAcA,EACd,WAAYA,EACZ,OAAQ,UAAW,CACjB,IAAIC,EAAS,CAAC,CAACP,EAAIC,CAAE,EAAG,CAACC,EAAIC,CAAE,CAAC,EAChC,OAAAD,EAAKC,EAAK,EAAEF,EAAKD,EAAK,KACfO,CACT,CACF,EAEA,SAASF,EAAYG,EAAGC,EAAG,CACrBD,EAAIR,IAAIA,EAAKQ,GACbA,EAAIN,IAAIA,EAAKM,GACbC,EAAIR,IAAIA,EAAKQ,GACbA,EAAIN,IAAIA,EAAKM,EACnB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs267.js","sources":["../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"names":["pointEqual","a","b","abs","epsilon"],"mappings":"kDAEA,SAAAA,EAAwBC,EAAGC,EAAG,CAC5B,OAAOC,EAAAA,IAAIF,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAAIE,EAAAA,SAAWD,EAAAA,IAAIF,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAAIE,EAAAA,OAC1D","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";function o(){}module.exports=o;
1
+ "use strict";const w=require("./index.cjs252.js"),z=require("./index.cjs254.js"),g=require("./index.cjs250.js"),A=require("./index.cjs196.js");require("./index.cjs195.js");const D=require("./index.cjs255.js");function F(r,u,d,s){return function(c,n){var h=u(n),C=c.invert(s[0],s[1]),v=w(),a=u(v),l=!1,S,f,p,o={point:y,lineStart:q,lineEnd:m,polygonStart:function(){o.point=P,o.lineStart=$,o.lineEnd=j,f=[],S=[]},polygonEnd:function(){o.point=y,o.lineStart=q,o.lineEnd=m,f=D(f);var e=A(S,C);f.length?(l||(n.polygonStart(),l=!0),z(f,H,e,d,n)):e&&(l||(n.polygonStart(),l=!0),n.lineStart(),d(null,null,1,n),n.lineEnd()),l&&(n.polygonEnd(),l=!1),f=S=null},sphere:function(){n.polygonStart(),n.lineStart(),d(null,null,1,n),n.lineEnd(),n.polygonEnd()}};function y(e,t){var i=c(e,t);r(e=i[0],t=i[1])&&n.point(e,t)}function R(e,t){var i=c(e,t);h.point(i[0],i[1])}function q(){o.point=R,h.lineStart()}function m(){o.point=y,h.lineEnd()}function P(e,t){p.push([e,t]);var i=c(e,t);a.point(i[0],i[1])}function $(){a.lineStart(),p=[]}function j(){P(p[0][0],p[0][1]),a.lineEnd();var e=a.clean(),t=v.result(),i,x=t.length,I,E,B;if(p.pop(),S.push(p),p=null,!!x){if(e&1){if(E=t[0],(I=E.length-1)>0){for(l||(n.polygonStart(),l=!0),n.lineStart(),i=0;i<I;++i)n.point((B=E[i])[0],B[1]);n.lineEnd()}return}x>1&&e&2&&t.push(t.pop().concat(t.shift())),f.push(t.filter(G))}}return o}}function G(r){return r.length>1}function H(r,u){return((r=r.x)[0]<0?r[1]-g.halfPi-g.epsilon:g.halfPi-r[1])-((u=u.x)[0]<0?u[1]-g.halfPi-g.epsilon:g.halfPi-u[1])}module.exports=F;
2
2
  //# sourceMappingURL=index.cjs268.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs268.js","sources":["../../../node_modules/d3-geo/src/noop.js"],"sourcesContent":["export default function noop() {}\n"],"names":["noop"],"mappings":"aAAA,SAAwBA,GAAO,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs268.js","sources":["../../../node_modules/d3-geo/src/clip/index.js"],"sourcesContent":["import clipBuffer from \"./buffer\";\nimport clipPolygon from \"./polygon\";\nimport {epsilon, halfPi} from \"../math\";\nimport polygonContains from \"../polygonContains\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(rotate, sink) {\n var line = clipLine(sink),\n rotatedStart = rotate.invert(start[0], start[1]),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, rotatedStart);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipPolygon(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n var point = rotate(lambda, phi);\n if (pointVisible(lambda = point[0], phi = point[1])) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n var point = rotate(lambda, phi);\n line.point(point[0], point[1]);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n var point = rotate(lambda, phi);\n ringSink.point(point[0], point[1]);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n"],"names":["clip","pointVisible","clipLine","interpolate","start","rotate","sink","line","rotatedStart","ringBuffer","clipBuffer","ringSink","polygonStarted","polygon","segments","ring","point","lineStart","lineEnd","pointRing","ringStart","ringEnd","merge","startInside","polygonContains","clipPolygon","compareIntersection","lambda","phi","pointLine","clean","ringSegments","n","m","segment","validSegment","a","b","halfPi","epsilon"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs74.js"),e=require("./index.cjs73.js");var o=e.__require();const s=r.getDefaultExportFromCjs(o);module.exports=s;
1
+ "use strict";const r=require("./index.cjs80.js"),e=require("./index.cjs79.js");var o=e.__require();const s=r.getDefaultExportFromCjs(o);module.exports=s;
2
2
  //# sourceMappingURL=index.cjs29.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs74.js"),u=require("./index.cjs82.js");function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const l=Object.getOwnPropertyDescriptor(e,r);l&&Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=u.__require();const s=a.getDefaultExportFromCjs(i),p=c({__proto__:null,default:s},[i]);exports.Li=p;exports.default=s;exports.maplibreGlExports=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs80.js"),u=require("./index.cjs77.js");function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const l=Object.getOwnPropertyDescriptor(e,r);l&&Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=u.__require();const s=a.getDefaultExportFromCjs(i),p=c({__proto__:null,default:s},[i]);exports.Li=p;exports.default=s;exports.maplibreGlExports=i;
2
2
  //# sourceMappingURL=index.cjs32.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs80.js");require("./index.cjs81.js");function c(t){return a.GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.6.6 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.6.6 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.6.6 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535z"},child:[]},{tag:"path",attr:{d:"m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.6.6 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0z"},child:[]}]})(t)}exports.BsStack=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs82.js");require("./index.cjs83.js");function c(t){return a.GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.6.6 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.6.6 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.6.6 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535z"},child:[]},{tag:"path",attr:{d:"m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.6.6 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0z"},child:[]}]})(t)}exports.BsStack=c;
2
2
  //# sourceMappingURL=index.cjs34.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs80.js");require("./index.cjs81.js");function r(e){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}exports.IoCheckmarkOutline=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs82.js");require("./index.cjs83.js");function r(e){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}exports.IoCheckmarkOutline=r;
2
2
  //# sourceMappingURL=index.cjs35.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs37.js"),e=require("./index.cjs245.js");var t=a.supportsDataView&&(!/\[native code\]/.test(String(DataView))||e(new DataView(new ArrayBuffer(8)))),i=typeof Map<"u"&&e(new Map);exports.hasDataViewBug=t;exports.isIE11=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs37.js"),e=require("./index.cjs242.js");var t=a.supportsDataView&&(!/\[native code\]/.test(String(DataView))||e(new DataView(new ArrayBuffer(8)))),i=typeof Map<"u"&&e(new Map);exports.hasDataViewBug=t;exports.isIE11=i;
2
2
  //# sourceMappingURL=index.cjs39.js.map