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

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 (104) 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.cjs215.js +1 -1
  6. package/dist/index.cjs216.js +1 -1
  7. package/dist/index.cjs217.js +1 -1
  8. package/dist/index.cjs235.js +1 -1
  9. package/dist/index.cjs244.js +1 -1
  10. package/dist/index.cjs244.js.map +1 -1
  11. package/dist/index.cjs245.js +1 -1
  12. package/dist/index.cjs245.js.map +1 -1
  13. package/dist/index.cjs246.js +1 -1
  14. package/dist/index.cjs246.js.map +1 -1
  15. package/dist/index.cjs254.js +1 -1
  16. package/dist/index.cjs258.js +1 -1
  17. package/dist/index.cjs259.js +1 -1
  18. package/dist/index.cjs262.js +1 -1
  19. package/dist/index.cjs265.js +1 -1
  20. package/dist/index.cjs265.js.map +1 -1
  21. package/dist/index.cjs266.js +1 -1
  22. package/dist/index.cjs266.js.map +1 -1
  23. package/dist/index.cjs267.js +1 -1
  24. package/dist/index.cjs267.js.map +1 -1
  25. package/dist/index.cjs29.js +1 -1
  26. package/dist/index.cjs32.js +1 -1
  27. package/dist/index.cjs34.js +1 -1
  28. package/dist/index.cjs35.js +1 -1
  29. package/dist/index.cjs39.js +1 -1
  30. package/dist/index.cjs73.js +1 -1
  31. package/dist/index.cjs73.js.map +1 -1
  32. package/dist/index.cjs74.js +1 -1
  33. package/dist/index.cjs75.js +1 -9
  34. package/dist/index.cjs75.js.map +1 -1
  35. package/dist/index.cjs76.js +1 -17
  36. package/dist/index.cjs76.js.map +1 -1
  37. package/dist/index.cjs77.js +1 -743
  38. package/dist/index.cjs77.js.map +1 -1
  39. package/dist/index.cjs78.js +9 -1
  40. package/dist/index.cjs78.js.map +1 -1
  41. package/dist/index.cjs79.js +17 -1
  42. package/dist/index.cjs79.js.map +1 -1
  43. package/dist/index.cjs80.js +1 -1
  44. package/dist/index.cjs80.js.map +1 -1
  45. package/dist/index.cjs81.js +1 -1
  46. package/dist/index.cjs81.js.map +1 -1
  47. package/dist/index.cjs82.js +743 -1
  48. package/dist/index.cjs82.js.map +1 -1
  49. package/dist/index.cjs83.js +1 -1
  50. package/dist/index.cjs83.js.map +1 -1
  51. package/dist/index.es13.js +45 -35
  52. package/dist/index.es13.js.map +1 -1
  53. package/dist/index.es15.js +1 -1
  54. package/dist/index.es191.js +1 -1
  55. package/dist/index.es215.js +1 -1
  56. package/dist/index.es216.js +1 -1
  57. package/dist/index.es217.js +1 -1
  58. package/dist/index.es235.js +1 -1
  59. package/dist/index.es244.js +6 -4
  60. package/dist/index.es244.js.map +1 -1
  61. package/dist/index.es245.js +3 -8
  62. package/dist/index.es245.js.map +1 -1
  63. package/dist/index.es246.js +6 -3
  64. package/dist/index.es246.js.map +1 -1
  65. package/dist/index.es254.js +1 -1
  66. package/dist/index.es258.js +1 -1
  67. package/dist/index.es259.js +2 -2
  68. package/dist/index.es262.js +1 -1
  69. package/dist/index.es265.js +69 -15
  70. package/dist/index.es265.js.map +1 -1
  71. package/dist/index.es266.js +4 -69
  72. package/dist/index.es266.js.map +1 -1
  73. package/dist/index.es267.js +15 -4
  74. package/dist/index.es267.js.map +1 -1
  75. package/dist/index.es29.js +2 -2
  76. package/dist/index.es32.js +2 -2
  77. package/dist/index.es34.js +2 -2
  78. package/dist/index.es35.js +2 -2
  79. package/dist/index.es39.js +1 -1
  80. package/dist/index.es73.js +1992 -7
  81. package/dist/index.es73.js.map +1 -1
  82. package/dist/index.es74.js +6 -2
  83. package/dist/index.es74.js.map +1 -1
  84. package/dist/index.es75.js +2 -26
  85. package/dist/index.es75.js.map +1 -1
  86. package/dist/index.es76.js +7 -588
  87. package/dist/index.es76.js.map +1 -1
  88. package/dist/index.es77.js +2 -21352
  89. package/dist/index.es77.js.map +1 -1
  90. package/dist/index.es78.js +26 -2
  91. package/dist/index.es78.js.map +1 -1
  92. package/dist/index.es79.js +556 -1960
  93. package/dist/index.es79.js.map +1 -1
  94. package/dist/index.es80.js +105 -5
  95. package/dist/index.es80.js.map +1 -1
  96. package/dist/index.es81.js +10 -2
  97. package/dist/index.es81.js.map +1 -1
  98. package/dist/index.es82.js +21350 -104
  99. package/dist/index.es82.js.map +1 -1
  100. package/dist/index.es83.js +2 -10
  101. package/dist/index.es83.js.map +1 -1
  102. package/package.json +1 -1
  103. package/src/utils/Map.js +28 -18
  104. package/types/utils/Map.js.flow +28 -18
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var t={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=e.createContext&&e.createContext(t);exports.DefaultContext=t;exports.IconContext=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
2
2
  //# sourceMappingURL=index.cjs83.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs83.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs83.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,9 +1,9 @@
1
- import { WarpedMapLayer as c } from "./index.es68.js";
2
- import { bbox as n } from "./index.es69.js";
3
- import { bboxPolygon as u } from "./index.es70.js";
4
- import { buffer as y } from "./index.es71.js";
5
- import d from "./index.es72.js";
6
- import { featureCollection as s, feature as g } from "./index.es67.js";
1
+ import { WarpedMapLayer as u } from "./index.es68.js";
2
+ import { bbox as m } from "./index.es69.js";
3
+ import { bboxPolygon as y } from "./index.es70.js";
4
+ import { buffer as d } from "./index.es71.js";
5
+ import g from "./index.es72.js";
6
+ import { featureCollection as a, feature as C } from "./index.es67.js";
7
7
  import p from "./index.es36.js";
8
8
  import "./index.es37.js";
9
9
  import "./index.es38.js";
@@ -32,29 +32,38 @@ import "./index.es60.js";
32
32
  import "./index.es61.js";
33
33
  import "./index.es62.js";
34
34
  import "./index.es63.js";
35
- const _ = -90, L = 90, I = -180, M = 180, m = (t, r) => d(t.coordinates, r, { units: "kilometers", steps: 32 }), b = (t, r) => {
36
- const o = [];
37
- for (const e of t)
38
- if (r(e))
39
- if (e.geometry?.type === "FeatureCollection")
40
- for (const i of e.geometry.features)
41
- i.geometry?.type === "Point" && o.push(m(i.geometry, r(e)));
42
- else if (e.geometry.type === "GeometryCollection")
43
- for (const i of e.geometry.geometries)
44
- i.type === "Point" && o.push(m(i, r(e)));
45
- else e.geometry?.type === "Point" && o.push(m(e.geometry, r(e)));
46
- return s(o);
47
- }, v = (t, r, o = {}) => {
48
- const e = new c(r);
49
- t.addLayer(e), o.url ? e.addGeoreferenceAnnotationByUrl(o.url) : o.manifest && e.addGeoreferenceAnnotation(o.manifest), o.opacity && e.setOpacity(o.opacity);
35
+ const _ = -90, L = 90, I = -180, M = 180, n = (t, r) => g(t.coordinates, r, { units: "kilometers", steps: 32 }), s = (t, r) => {
36
+ const e = r(t);
37
+ if (e) {
38
+ if (t.geometry?.type === "FeatureCollection") {
39
+ for (const o of t.geometry.features)
40
+ if (o.geometry?.type === "Point")
41
+ return n(o.geometry, e);
42
+ } else if (t.geometry?.type === "GeometryCollection") {
43
+ for (const o of t.geometry.geometries)
44
+ if (o.type === "Point")
45
+ return n(o, e);
46
+ } else if (t.geometry?.type === "Point")
47
+ return n(t.geometry, e);
48
+ }
49
+ }, b = (t, r) => {
50
+ const e = [];
51
+ for (const o of t) {
52
+ const i = s(o, r);
53
+ i && e.push(i);
54
+ }
55
+ return a(e);
56
+ }, v = (t, r, e = {}) => {
57
+ const o = new u(r);
58
+ t.addLayer(o), e.url ? o.addGeoreferenceAnnotationByUrl(e.url) : e.manifest && o.addGeoreferenceAnnotation(e.manifest), e.opacity && o.setOpacity(e.opacity);
50
59
  }, x = (t, r = null) => {
51
- const o = n(t);
52
- if (!l(o))
60
+ const e = m(t);
61
+ if (!l(e))
53
62
  return null;
54
- const e = u(o);
63
+ const o = y(e);
55
64
  let i;
56
- return r ? i = y(e, r, { units: "miles" }) : i = e, n(i);
57
- }, A = (t, r) => t && t.removeLayer(r), B = (t, r, o, e) => {
65
+ return r ? i = d(o, r, { units: "miles" }) : i = o, m(i);
66
+ }, A = (t, r) => t && t.removeLayer(r), B = (t, r, e, o) => {
58
67
  const i = {
59
68
  id: t.record_id,
60
69
  ccode: [],
@@ -66,25 +75,26 @@ const _ = -90, L = 90, I = -180, M = 180, m = (t, r) => d(t.coordinates, r, { un
66
75
  type: t.type,
67
76
  items: [r],
68
77
  url: t.url,
69
- originalProperties: e || {}
70
- }, a = parseInt(t.record_id, 10);
71
- return g(o, i, { id: a });
72
- }, G = (t) => s(t), l = (t) => p.every(t, p.isFinite), T = (t) => {
78
+ originalProperties: o || {}
79
+ }, c = parseInt(t.record_id, 10);
80
+ return C(e, i, { id: c });
81
+ }, F = (t) => a(t), l = (t) => p.every(t, p.isFinite), G = (t) => {
73
82
  let r = !1;
74
83
  if (t) {
75
- const [o, e] = t;
76
- r = o >= _ && o <= L && e >= I && e <= M;
84
+ const [e, o] = t;
85
+ r = e >= _ && e <= L && o >= I && o <= M;
77
86
  }
78
87
  return r;
79
88
  }, st = {
80
89
  addGeoreferenceLayer: v,
81
- getCertaintyCircles: b,
90
+ getCertaintyCircle: s,
91
+ getCertaintyCircleFeatureCollection: b,
82
92
  getBoundingBox: x,
83
93
  removeLayer: A,
84
94
  toFeature: B,
85
- toFeatureCollection: G,
95
+ toFeatureCollection: F,
86
96
  validateBoundingBox: l,
87
- validateCoordinates: T
97
+ validateCoordinates: G
88
98
  };
89
99
  export {
90
100
  st as default
@@ -1 +1 @@
1
- {"version":3,"file":"index.es13.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\n/**\n * Returns a GeoJSON feature collection containing circles for each item in the given array.\n */\nconst getCertaintyCircles = (\n items,\n getCertaintyRadius: (item: any) => number | undefined\n) => {\n const features = [];\n\n for (const item of items) {\n if (getCertaintyRadius(item)) {\n if (item.geometry?.type === 'FeatureCollection') {\n for (const childFeature of item.geometry.features) {\n if (childFeature.geometry?.type === 'Point') {\n features.push(buildCircle(childFeature.geometry, getCertaintyRadius(item)));\n }\n }\n } else if (item.geometry.type === 'GeometryCollection') {\n for (const geometry of item.geometry.geometries) {\n if (geometry.type === 'Point') {\n features.push(buildCircle(geometry, getCertaintyRadius(item)));\n }\n }\n } else if (item.geometry?.type === 'Point') {\n features.push(buildCircle(item.geometry, getCertaintyRadius(item)));\n }\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 getCertaintyCircles,\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","getCertaintyCircles","items","getCertaintyRadius","features","item","childFeature","geometry","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAMA,IAAe,KACfC,IAAe,IACfC,IAAgB,MAChBC,IAAgB,KAQhBC,IAAc,CAACC,GAAOC,MAC1BC,EAAOF,EAAM,aAAaC,GAAQ,EAAE,OAAO,cAAc,OAAO,IAAI,GAMhEE,IAAsB,CAC1BC,GACAC,MACG;AACH,QAAMC,IAAW,CAAA;AAEjB,aAAWC,KAAQH;AACjB,QAAIC,EAAmBE,CAAI;AACzB,UAAIA,EAAK,UAAU,SAAS;AAC1B,mBAAWC,KAAgBD,EAAK,SAAS;AACvC,UAAIC,EAA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AOA,EAAO,OAAO,IAAI,CAACG,OAAqB,EAAE,SAAAA,IAAU;AAAA,IAC3D,MAAMH,EAAO;AAAA,IACb,OAAO,CAACtB,CAAI;AAAA,IACZ,KAAKsB,EAAO;AAAA,IACZ,oBAAoBC,KAAsB,CAAA;AAAA,EAAC,GAGvCG,IAAK,SAASJ,EAAO,WAAW,EAAE;AACxC,SAAOK,EAAQzB,GAAUsB,GAAY,EAAE,IAAAE,GAAI;AAC7C,GASME,IAAsB,CAAC7B,MAAyBI,EAAkBJ,CAAQ,GAS1EgB,IAAsB,CAACc,MAA+BC,EAAE,MAAMD,GAAaC,EAAE,QAAQ,GASrFC,IAAsB,CAACC,MAAgB;AAC3C,MAAIC,IAAQ;AAEZ,MAAID,GAAa;AACf,UAAM,CAACE,GAAUC,CAAS,IAAIH;AAE9B,IAAAC,IAAQC,KAAY9C,KACf8C,KAAY7C,KACZ8C,KAAa7C,KACb6C,KAAa5C;AAAA,EACpB;AAEA,SAAO0C;AACT,GAEAG,KAAe;AAAA,EACb,sBAAAhC;AAAA,EACA,qBAAAR;AAAA,EACA,gBAAAc;AAAA,EACA,aAAAU;AAAA,EACA,WAAAC;AAAA,EACA,qBAAAO;AAAA,EACA,qBAAAb;AAAA,EACA,qBAAAgB;AACF;"}
1
+ {"version":3,"file":"index.es13.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAMA,IAAe,KACfC,IAAe,IACfC,IAAgB,MAChBC,IAAgB,KAQhBC,IAAc,CAACC,GAAOC,MAC1BC,EAAOF,EAAM,aAAaC,GAAQ,EAAE,OAAO,cAAc,OAAO,IAAI,GAGhEE,IAAqB,CAACC,GAAMC,MAA0D;AAC1F,QAAMC,IAAkBD,EAAmBD,CAAI;AAE/C,MAAIE;AACF,QAAIF,EAAK,UAAU,SAAS;AAC1B,iBAAWG,KAAgBH,EAAK,SAAS;AACvC,YAAIG,EAAa,UAAU,SAAS;AAClC,iBAAOR,EAAYQ,EAAa,UAAUD,CAAe;AAAA,eAGpDF,EAAK,UAAU,SAAS;AACjC,iBAAWI,KAAYJ,EAAK,SAAS;AACnC,YAAII,EAAS,SAAS;AACpB,iBAAOT,EAAYS,GAAUF,CAAe;AAAA,eAGvCF,EAAK,UAAU,SAAS;AACjC,aAAOL,EAAYK,EAAK,UAAUE,CAAe;AAAA;AAGvD,GAKMG,IAAsC,CAC1CC,GACAL,MACG;AACH,QAAMM,IAAW,CAAA;AAEjB,aAAWP,KAAQM,GAAO;AACxB,UAAMR,IAASC,EAAmBC,GAAMC,CAAkB;AAC1D,IAAIH,KACFS,EAAS,KAAKT,CAAM;AAAA,E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ea,IAAsB,CAACc,MAA+BC,EAAE,MAAMD,GAAaC,EAAE,QAAQ,GASrFC,IAAsB,CAACC,MAAgB;AAC3C,MAAIC,IAAQ;AAEZ,MAAID,GAAa;AACf,UAAM,CAACE,GAAUC,CAAS,IAAIH;AAE9B,IAAAC,IAAQC,KAAYhD,KACfgD,KAAY/C,KACZgD,KAAa/C,KACb+C,KAAa9C;AAAA,EACpB;AAEA,SAAO4C;AACT,GAEAG,KAAe;AAAA,EACb,sBAAAhC;AAAA,EACA,oBAAAV;AAAA,EACA,qCAAAM;AAAA,EACA,gBAAAU;AAAA,EACA,aAAAU;AAAA,EACA,WAAAC;AAAA,EACA,qBAAAO;AAAA,EACA,qBAAAb;AAAA,EACA,qBAAAgB;AACF;"}
@@ -1,4 +1,4 @@
1
- import { __require as r } from "./index.es73.js";
1
+ import { __require as r } from "./index.es76.js";
2
2
  var i = r();
3
3
  export {
4
4
  i as j
@@ -1,4 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./index.es80.js";
1
+ import { getDefaultExportFromCjs as r } from "./index.es74.js";
2
2
  import { __require as t } from "./index.es240.js";
3
3
  var s = t();
4
4
  const m = /* @__PURE__ */ r(s);
@@ -1,4 +1,4 @@
1
- import e from "./index.es245.js";
1
+ import e from "./index.es244.js";
2
2
  import t from "./index.es217.js";
3
3
  const f = e(t);
4
4
  export {
@@ -1,4 +1,4 @@
1
- import t from "./index.es244.js";
1
+ import t from "./index.es246.js";
2
2
  const o = t("length");
3
3
  export {
4
4
  o as default
@@ -1,4 +1,4 @@
1
- import t from "./index.es244.js";
1
+ import t from "./index.es246.js";
2
2
  const o = t("byteLength");
3
3
  export {
4
4
  o as default
@@ -1,4 +1,4 @@
1
- import e from "./index.es245.js";
1
+ import e from "./index.es244.js";
2
2
  import r from "./index.es216.js";
3
3
  const i = e(r);
4
4
  export {
@@ -1,9 +1,11 @@
1
- function t(r) {
2
- return function(n) {
3
- return n?.[r];
1
+ import { MAX_ARRAY_INDEX as o } from "./index.es37.js";
2
+ function u(e) {
3
+ return function(t) {
4
+ var r = e(t);
5
+ return typeof r == "number" && r >= 0 && r <= o;
4
6
  };
5
7
  }
6
8
  export {
7
- t as default
9
+ u as default
8
10
  };
9
11
  //# sourceMappingURL=index.es244.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es244.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,GAAK;AAC3C,SAAO,SAASC,GAAK;AACnB,WAA8BA,IAAID,CAAG;AAAA,EACvC;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es244.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":";AAGA,SAAwBA,EAAwBC,GAAiB;AAC/D,SAAO,SAASC,GAAY;AAC1B,QAAIC,IAAeF,EAAgBC,CAAU;AAC7C,WAAO,OAAOC,KAAgB,YAAYA,KAAgB,KAAKA,KAAgBC;AAAA,EACjF;AACF;","x_google_ignoreList":[0]}
@@ -1,11 +1,6 @@
1
- import { MAX_ARRAY_INDEX as o } from "./index.es37.js";
2
- function u(e) {
3
- return function(t) {
4
- var r = e(t);
5
- return typeof r == "number" && r >= 0 && r <= o;
6
- };
7
- }
1
+ import t from "./index.es213.js";
2
+ const a = t("Object");
8
3
  export {
9
- u as default
4
+ a as default
10
5
  };
11
6
  //# sourceMappingURL=index.es245.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es245.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":";AAGA,SAAwBA,EAAwBC,GAAiB;AAC/D,SAAO,SAASC,GAAY;AAC1B,QAAIC,IAAeF,EAAgBC,CAAU;AAC7C,WAAO,OAAOC,KAAgB,YAAYA,KAAgB,KAAKA,KAAgBC;AAAA,EACjF;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es245.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":";AAEA,MAAAA,IAAeC,EAAU,QAAQ;","x_google_ignoreList":[0]}
@@ -1,6 +1,9 @@
1
- import t from "./index.es213.js";
2
- const a = t("Object");
1
+ function t(r) {
2
+ return function(n) {
3
+ return n?.[r];
4
+ };
5
+ }
3
6
  export {
4
- a as default
7
+ t as default
5
8
  };
6
9
  //# sourceMappingURL=index.es246.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es246.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":";AAEA,MAAAA,IAAeC,EAAU,QAAQ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es246.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,GAAK;AAC3C,SAAO,SAASC,GAAK;AACnB,WAA8BA,IAAID,CAAG;AAAA,EACvC;AACF;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import a from "./index.es267.js";
1
+ import a from "./index.es266.js";
2
2
  function g(f, v, h, o) {
3
3
  this.x = f, this.z = v, this.o = h, this.e = o, this.v = !1, this.n = this.p = null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import L from "./index.es266.js";
1
+ import L from "./index.es265.js";
2
2
  import { pi as f, halfPi as A, abs as N, epsilon as l, atan as P, sin as v, cos as S } from "./index.es250.js";
3
3
  const j = L(
4
4
  function() {
@@ -1,8 +1,8 @@
1
1
  import { cartesian as Q, cartesianCross as T, cartesianDot as R, cartesianScale as g, cartesianAddInPlace as y, spherical as U } from "./index.es249.js";
2
2
  import { circleStream as $ } from "./index.es248.js";
3
3
  import { pi as v, cos as F, epsilon as x, abs as G, sqrt as b } from "./index.es250.js";
4
- import J from "./index.es267.js";
5
- import m from "./index.es266.js";
4
+ import J from "./index.es266.js";
5
+ import m from "./index.es265.js";
6
6
  function fn(S, V) {
7
7
  var A = F(S), C = A > 0, W = G(A) > x;
8
8
  function X(n, i, o, e) {
@@ -1,5 +1,5 @@
1
1
  import c from "./index.es264.js";
2
- import n from "./index.es265.js";
2
+ import n from "./index.es267.js";
3
3
  function S(l, a, r) {
4
4
  var f = a[1][0] - a[0][0], m = a[1][1] - a[0][1], i = l.clipExtent && l.clipExtent();
5
5
  l.scale(150).translate([0, 0]), i != null && l.clipExtent(null), c(r, l.stream(n));
@@ -1,19 +1,73 @@
1
- import r from "./index.es268.js";
2
- var o = 1 / 0, f = o, t = -o, a = t, d = {
3
- point: u,
4
- lineStart: r,
5
- lineEnd: r,
6
- polygonStart: r,
7
- polygonEnd: r,
8
- result: function() {
9
- var n = [[o, f], [t, a]];
10
- return t = a = -(f = o = 1 / 0), n;
11
- }
12
- };
13
- function u(n, i) {
14
- n < o && (o = n), n > t && (t = n), i < f && (f = i), i > a && (a = i);
1
+ import A from "./index.es252.js";
2
+ import D from "./index.es254.js";
3
+ import { halfPi as S, epsilon as R } from "./index.es250.js";
4
+ import F from "./index.es196.js";
5
+ import "./index.es195.js";
6
+ import G from "./index.es255.js";
7
+ function T(e, p, m, v) {
8
+ return function(g, n) {
9
+ var d = p(n), j = g.invert(v[0], v[1]), h = A(), c = p(h), l = !1, a, f, u, r = {
10
+ point: y,
11
+ lineStart: x,
12
+ lineEnd: s,
13
+ polygonStart: function() {
14
+ r.point = B, r.lineStart = w, r.lineEnd = z, f = [], a = [];
15
+ },
16
+ polygonEnd: function() {
17
+ r.point = y, r.lineStart = x, r.lineEnd = s, f = G(f);
18
+ var o = F(a, j);
19
+ f.length ? (l || (n.polygonStart(), l = !0), D(f, J, o, m, n)) : o && (l || (n.polygonStart(), l = !0), n.lineStart(), m(null, null, 1, n), n.lineEnd()), l && (n.polygonEnd(), l = !1), f = a = null;
20
+ },
21
+ sphere: function() {
22
+ n.polygonStart(), n.lineStart(), m(null, null, 1, n), n.lineEnd(), n.polygonEnd();
23
+ }
24
+ };
25
+ function y(o, t) {
26
+ var i = g(o, t);
27
+ e(o = i[0], t = i[1]) && n.point(o, t);
28
+ }
29
+ function q(o, t) {
30
+ var i = g(o, t);
31
+ d.point(i[0], i[1]);
32
+ }
33
+ function x() {
34
+ r.point = q, d.lineStart();
35
+ }
36
+ function s() {
37
+ r.point = y, d.lineEnd();
38
+ }
39
+ function B(o, t) {
40
+ u.push([o, t]);
41
+ var i = g(o, t);
42
+ c.point(i[0], i[1]);
43
+ }
44
+ function w() {
45
+ c.lineStart(), u = [];
46
+ }
47
+ function z() {
48
+ B(u[0][0], u[0][1]), c.lineEnd();
49
+ var o = c.clean(), t = h.result(), i, I = t.length, P, E, C;
50
+ if (u.pop(), a.push(u), u = null, !!I) {
51
+ if (o & 1) {
52
+ if (E = t[0], (P = E.length - 1) > 0) {
53
+ for (l || (n.polygonStart(), l = !0), n.lineStart(), i = 0; i < P; ++i) n.point((C = E[i])[0], C[1]);
54
+ n.lineEnd();
55
+ }
56
+ return;
57
+ }
58
+ I > 1 && o & 2 && t.push(t.pop().concat(t.shift())), f.push(t.filter(H));
59
+ }
60
+ }
61
+ return r;
62
+ };
63
+ }
64
+ function H(e) {
65
+ return e.length > 1;
66
+ }
67
+ function J(e, p) {
68
+ return ((e = e.x)[0] < 0 ? e[1] - S - R : S - e[1]) - ((p = p.x)[0] < 0 ? p[1] - S - R : S - p[1]);
15
69
  }
16
70
  export {
17
- d as default
71
+ T as default
18
72
  };
19
73
  //# sourceMappingURL=index.es265.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es265.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":";AAEA,IAAIA,IAAK,OACLC,IAAKD,GACLE,IAAK,CAACF,GACNG,IAAKD,GAELE,IAAe;AAAA,EACjB,OAAOC;AAAA,EACP,WAAWC;AAAA,EACX,SAASA;AAAA,EACT,cAAcA;AAAA,EACd,YAAYA;AAAA,EACZ,QAAQ,WAAW;AACjB,QAAIC,IAAS,CAAC,CAACP,GAAIC,CAAE,GAAG,CAACC,GAAIC,CAAE,CAAC;AAChC,WAAAD,IAAKC,IAAK,EAAEF,IAAKD,IAAK,QACfO;AAAA,EACT;AACF;AAEA,SAASF,EAAYG,GAAGC,GAAG;AACzB,EAAID,IAAIR,MAAIA,IAAKQ,IACbA,IAAIN,MAAIA,IAAKM,IACbC,IAAIR,MAAIA,IAAKQ,IACbA,IAAIN,MAAIA,IAAKM;AACnB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es265.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","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AG,IAAI2B,GAAG,EAAE,EAAG,CAAA3B,EAAK,OAAOU,IAAQkB,EAAQ,CAAC,GAAG,CAAC,GAAGlB,EAAM,CAAC,CAAC;AACpE,YAAAV,EAAK,QAAA;AAAA,UACP;AACA;AAAA,QACF;AAIA,QAAI0B,IAAI,KAAKF,IAAQ,KAAGC,EAAa,KAAKA,EAAa,IAAA,EAAM,OAAOA,EAAa,MAAA,CAAO,CAAC,GAEzFjB,EAAS,KAAKiB,EAAa,OAAOI,CAAY,CAAC;AAAA;AAAA,IACjD;AAEA,WAAOnC;AAAA,EACT;AACF;AAEA,SAASmC,EAAaD,GAAS;AAC7B,SAAOA,EAAQ,SAAS;AAC1B;AAIA,SAASR,EAAoBU,GAAGC,GAAG;AACjC,WAASD,IAAIA,EAAE,GAAG,CAAC,IAAI,IAAIA,EAAE,CAAC,IAAIE,IAASC,IAAUD,IAASF,EAAE,CAAC,OACxDC,IAAIA,EAAE,GAAG,CAAC,IAAI,IAAIA,EAAE,CAAC,IAAIC,IAASC,IAAUD,IAASD,EAAE,CAAC;AACnE;","x_google_ignoreList":[0]}
@@ -1,73 +1,8 @@
1
- import A from "./index.es252.js";
2
- import D from "./index.es254.js";
3
- import { halfPi as S, epsilon as R } from "./index.es250.js";
4
- import F from "./index.es196.js";
5
- import "./index.es195.js";
6
- import G from "./index.es255.js";
7
- function T(e, p, m, v) {
8
- return function(g, n) {
9
- var d = p(n), j = g.invert(v[0], v[1]), h = A(), c = p(h), l = !1, a, f, u, r = {
10
- point: y,
11
- lineStart: x,
12
- lineEnd: s,
13
- polygonStart: function() {
14
- r.point = B, r.lineStart = w, r.lineEnd = z, f = [], a = [];
15
- },
16
- polygonEnd: function() {
17
- r.point = y, r.lineStart = x, r.lineEnd = s, f = G(f);
18
- var o = F(a, j);
19
- f.length ? (l || (n.polygonStart(), l = !0), D(f, J, o, m, n)) : o && (l || (n.polygonStart(), l = !0), n.lineStart(), m(null, null, 1, n), n.lineEnd()), l && (n.polygonEnd(), l = !1), f = a = null;
20
- },
21
- sphere: function() {
22
- n.polygonStart(), n.lineStart(), m(null, null, 1, n), n.lineEnd(), n.polygonEnd();
23
- }
24
- };
25
- function y(o, t) {
26
- var i = g(o, t);
27
- e(o = i[0], t = i[1]) && n.point(o, t);
28
- }
29
- function q(o, t) {
30
- var i = g(o, t);
31
- d.point(i[0], i[1]);
32
- }
33
- function x() {
34
- r.point = q, d.lineStart();
35
- }
36
- function s() {
37
- r.point = y, d.lineEnd();
38
- }
39
- function B(o, t) {
40
- u.push([o, t]);
41
- var i = g(o, t);
42
- c.point(i[0], i[1]);
43
- }
44
- function w() {
45
- c.lineStart(), u = [];
46
- }
47
- function z() {
48
- B(u[0][0], u[0][1]), c.lineEnd();
49
- var o = c.clean(), t = h.result(), i, I = t.length, P, E, C;
50
- if (u.pop(), a.push(u), u = null, !!I) {
51
- if (o & 1) {
52
- if (E = t[0], (P = E.length - 1) > 0) {
53
- for (l || (n.polygonStart(), l = !0), n.lineStart(), i = 0; i < P; ++i) n.point((C = E[i])[0], C[1]);
54
- n.lineEnd();
55
- }
56
- return;
57
- }
58
- I > 1 && o & 2 && t.push(t.pop().concat(t.shift())), f.push(t.filter(H));
59
- }
60
- }
61
- return r;
62
- };
63
- }
64
- function H(e) {
65
- return e.length > 1;
66
- }
67
- function J(e, p) {
68
- return ((e = e.x)[0] < 0 ? e[1] - S - R : S - e[1]) - ((p = p.x)[0] < 0 ? p[1] - S - R : S - p[1]);
1
+ import { abs as n, epsilon as r } from "./index.es250.js";
2
+ function i(o, t) {
3
+ return n(o[0] - t[0]) < r && n(o[1] - t[1]) < r;
69
4
  }
70
5
  export {
71
- T as default
6
+ i as default
72
7
  };
73
8
  //# sourceMappingURL=index.es266.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es266.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":";;;;;;AAMA,SAAAA,EAAwBC,GAAcC,GAAUC,GAAaC,GAAO;AAClE,SAAO,SAASC,GAAQC,GAAM;AAC5B,QAAIC,IAAOL,EAASI,CAAI,GACpBE,IAAeH,EAAO,OAAOD,EAAM,CAAC,GAAGA,EAAM,CAAC,CAAC,GAC/CK,IAAaC,KACbC,IAAWT,EAASO,CAAU,GAC9BG,IAAiB,IACjBC,GACAC,GACAC,GAEAf,IAAO;AAAA,MACT,OAAAgB;AAAA,MACA,WAAAC;AAAA,MACA,SAAAC;AAAA,MACA,cAAc,WAAW;AACvB,QAAAlB,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S;AAC1B;AAIA,SAASR,EAAoBU,GAAGC,GAAG;AACjC,WAASD,IAAIA,EAAE,GAAG,CAAC,IAAI,IAAIA,EAAE,CAAC,IAAIE,IAASC,IAAUD,IAASF,EAAE,CAAC,OACxDC,IAAIA,EAAE,GAAG,CAAC,IAAI,IAAIA,EAAE,CAAC,IAAIC,IAASC,IAAUD,IAASD,EAAE,CAAC;AACnE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es266.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":";AAEA,SAAAA,EAAwBC,GAAGC,GAAG;AAC5B,SAAOC,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE,KAAWD,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE;AAC1D;","x_google_ignoreList":[0]}
@@ -1,8 +1,19 @@
1
- import { abs as n, epsilon as r } from "./index.es250.js";
2
- function i(o, t) {
3
- return n(o[0] - t[0]) < r && n(o[1] - t[1]) < r;
1
+ import r from "./index.es268.js";
2
+ var o = 1 / 0, f = o, t = -o, a = t, d = {
3
+ point: u,
4
+ lineStart: r,
5
+ lineEnd: r,
6
+ polygonStart: r,
7
+ polygonEnd: r,
8
+ result: function() {
9
+ var n = [[o, f], [t, a]];
10
+ return t = a = -(f = o = 1 / 0), n;
11
+ }
12
+ };
13
+ function u(n, i) {
14
+ n < o && (o = n), n > t && (t = n), i < f && (f = i), i > a && (a = i);
4
15
  }
5
16
  export {
6
- i as default
17
+ d as default
7
18
  };
8
19
  //# sourceMappingURL=index.es267.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es267.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":";AAEA,SAAAA,EAAwBC,GAAGC,GAAG;AAC5B,SAAOC,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE,KAAWD,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE;AAC1D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es267.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":";AAEA,IAAIA,IAAK,OACLC,IAAKD,GACLE,IAAK,CAACF,GACNG,IAAKD,GAELE,IAAe;AAAA,EACjB,OAAOC;AAAA,EACP,WAAWC;AAAA,EACX,SAASA;AAAA,EACT,cAAcA;AAAA,EACd,YAAYA;AAAA,EACZ,QAAQ,WAAW;AACjB,QAAIC,IAAS,CAAC,CAACP,GAAIC,CAAE,GAAG,CAACC,GAAIC,CAAE,CAAC;AAChC,WAAAD,IAAKC,IAAK,EAAEF,IAAKD,IAAK,QACfO;AAAA,EACT;AACF;AAEA,SAASF,EAAYG,GAAGC,GAAG;AACzB,EAAID,IAAIR,MAAIA,IAAKQ,IACbA,IAAIN,MAAIA,IAAKM,IACbC,IAAIR,MAAIA,IAAKQ,IACbA,IAAIN,MAAIA,IAAKM;AACnB;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./index.es80.js";
2
- import { __require as o } from "./index.es79.js";
1
+ import { getDefaultExportFromCjs as r } from "./index.es74.js";
2
+ import { __require as o } from "./index.es73.js";
3
3
  var a = o();
4
4
  const p = /* @__PURE__ */ r(a);
5
5
  export {
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as f } from "./index.es80.js";
2
- import { __require as n } from "./index.es77.js";
1
+ import { getDefaultExportFromCjs as f } from "./index.es74.js";
2
+ import { __require as n } from "./index.es82.js";
3
3
  function s(t, i) {
4
4
  for (var o = 0; o < i.length; o++) {
5
5
  const e = i[o];
@@ -1,5 +1,5 @@
1
- import { GenIcon as a } from "./index.es82.js";
2
- import "./index.es83.js";
1
+ import { GenIcon as a } from "./index.es80.js";
2
+ import "./index.es81.js";
3
3
  function l(t) {
4
4
  return a({ 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);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { GenIcon as o } from "./index.es82.js";
2
- import "./index.es83.js";
1
+ import { GenIcon as o } from "./index.es80.js";
2
+ import "./index.es81.js";
3
3
  function e(t) {
4
4
  return o({ 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: [] }] })(t);
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { supportsDataView as e } from "./index.es37.js";
2
- import a from "./index.es246.js";
2
+ import a from "./index.es245.js";
3
3
  var i = e && (!/\[native code\]/.test(String(DataView)) || a(new DataView(new ArrayBuffer(8)))), o = typeof Map < "u" && a(/* @__PURE__ */ new Map());
4
4
  export {
5
5
  i as hasDataViewBug,